// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'sector_model.dart';

// **************************************************************************
// TypeAdapterGenerator
// **************************************************************************

class SectorModelAdapter extends TypeAdapter<SectorModel> {
  @override
  final int typeId = 3;

  @override
  SectorModel read(BinaryReader reader) {
    final numOfFields = reader.readByte();
    final fields = <int, dynamic>{
      for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
    };
    return SectorModel(
      id: fields[0] as int,
      libelle: fields[1] as String,
      color: fields[2] as String,
      sector: fields[3] as String,
    );
  }

  @override
  void write(BinaryWriter writer, SectorModel obj) {
    writer
      ..writeByte(4)
      ..writeByte(0)
      ..write(obj.id)
      ..writeByte(1)
      ..write(obj.libelle)
      ..writeByte(2)
      ..write(obj.color)
      ..writeByte(3)
      ..write(obj.sector);
  }

  @override
  int get hashCode => typeId.hashCode;

  @override
  bool operator ==(Object other) =>
      identical(this, other) ||
      other is SectorModelAdapter &&
          runtimeType == other.runtimeType &&
          typeId == other.typeId;
}
