// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'amicale_model.dart';

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

class AmicaleModelAdapter extends TypeAdapter<AmicaleModel> {
  @override
  final int typeId = 11;

  @override
  AmicaleModel read(BinaryReader reader) {
    final numOfFields = reader.readByte();
    final fields = <int, dynamic>{
      for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
    };
    return AmicaleModel(
      id: fields[0] as int,
      name: fields[1] as String,
      adresse1: fields[2] as String,
      adresse2: fields[3] as String,
      codePostal: fields[4] as String,
      ville: fields[5] as String,
      fkRegion: fields[6] as int?,
      libRegion: fields[7] as String?,
      fkType: fields[8] as int?,
      phone: fields[9] as String,
      mobile: fields[10] as String,
      email: fields[11] as String,
      gpsLat: fields[12] as String,
      gpsLng: fields[13] as String,
      stripeId: fields[14] as String,
      stripeLocationId: fields[27] as String?,
      chkDemo: fields[15] as bool,
      chkCopieMailRecu: fields[16] as bool,
      chkAcceptSms: fields[17] as bool,
      chkActive: fields[18] as bool,
      chkStripe: fields[19] as bool,
      createdAt: fields[20] as DateTime?,
      updatedAt: fields[21] as DateTime?,
      chkMdpManuel: fields[22] as bool,
      chkUsernameManuel: fields[23] as bool,
      logoBase64: fields[24] as String?,
      chkUserDeletePass: fields[25] as bool,
      chkLotActif: fields[26] as bool,
    );
  }

  @override
  void write(BinaryWriter writer, AmicaleModel obj) {
    writer
      ..writeByte(28)
      ..writeByte(0)
      ..write(obj.id)
      ..writeByte(1)
      ..write(obj.name)
      ..writeByte(2)
      ..write(obj.adresse1)
      ..writeByte(3)
      ..write(obj.adresse2)
      ..writeByte(4)
      ..write(obj.codePostal)
      ..writeByte(5)
      ..write(obj.ville)
      ..writeByte(6)
      ..write(obj.fkRegion)
      ..writeByte(7)
      ..write(obj.libRegion)
      ..writeByte(8)
      ..write(obj.fkType)
      ..writeByte(9)
      ..write(obj.phone)
      ..writeByte(10)
      ..write(obj.mobile)
      ..writeByte(11)
      ..write(obj.email)
      ..writeByte(12)
      ..write(obj.gpsLat)
      ..writeByte(13)
      ..write(obj.gpsLng)
      ..writeByte(14)
      ..write(obj.stripeId)
      ..writeByte(27)
      ..write(obj.stripeLocationId)
      ..writeByte(15)
      ..write(obj.chkDemo)
      ..writeByte(16)
      ..write(obj.chkCopieMailRecu)
      ..writeByte(17)
      ..write(obj.chkAcceptSms)
      ..writeByte(18)
      ..write(obj.chkActive)
      ..writeByte(19)
      ..write(obj.chkStripe)
      ..writeByte(20)
      ..write(obj.createdAt)
      ..writeByte(21)
      ..write(obj.updatedAt)
      ..writeByte(22)
      ..write(obj.chkMdpManuel)
      ..writeByte(23)
      ..write(obj.chkUsernameManuel)
      ..writeByte(24)
      ..write(obj.logoBase64)
      ..writeByte(25)
      ..write(obj.chkUserDeletePass)
      ..writeByte(26)
      ..write(obj.chkLotActif);
  }

  @override
  int get hashCode => typeId.hashCode;

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