// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'region_model.dart';

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

class RegionModelAdapter extends TypeAdapter<RegionModel> {
  @override
  final int typeId = 7;

  @override
  RegionModel read(BinaryReader reader) {
    final numOfFields = reader.readByte();
    final fields = <int, dynamic>{
      for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
    };
    return RegionModel(
      id: fields[0] as int,
      fkPays: fields[1] as int,
      libelle: fields[2] as String,
      libelleLong: fields[3] as String?,
      tableOsm: fields[4] as String?,
      departements: fields[5] as String?,
      chkActive: fields[6] as bool,
    );
  }

  @override
  void write(BinaryWriter writer, RegionModel obj) {
    writer
      ..writeByte(7)
      ..writeByte(0)
      ..write(obj.id)
      ..writeByte(1)
      ..write(obj.fkPays)
      ..writeByte(2)
      ..write(obj.libelle)
      ..writeByte(3)
      ..write(obj.libelleLong)
      ..writeByte(4)
      ..write(obj.tableOsm)
      ..writeByte(5)
      ..write(obj.departements)
      ..writeByte(6)
      ..write(obj.chkActive);
  }

  @override
  int get hashCode => typeId.hashCode;

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