// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'passage_model.dart';

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

class PassageModelAdapter extends TypeAdapter<PassageModel> {
  @override
  final int typeId = 4;

  @override
  PassageModel read(BinaryReader reader) {
    final numOfFields = reader.readByte();
    final fields = <int, dynamic>{
      for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
    };
    return PassageModel(
      id: fields[0] as int,
      fkOperation: fields[1] as int,
      fkSector: fields[2] as int?,
      fkUser: fields[3] as int,
      fkType: fields[4] as int,
      fkAdresse: fields[5] as String,
      passedAt: fields[6] as DateTime?,
      numero: fields[7] as String,
      rue: fields[8] as String,
      rueBis: fields[9] as String,
      ville: fields[10] as String,
      residence: fields[11] as String,
      fkHabitat: fields[12] as int,
      appt: fields[13] as String,
      niveau: fields[14] as String,
      gpsLat: fields[15] as String,
      gpsLng: fields[16] as String,
      nomRecu: fields[17] as String,
      remarque: fields[18] as String,
      montant: fields[19] as String,
      fkTypeReglement: fields[20] as int,
      emailErreur: fields[21] as String,
      nbPassages: fields[22] as int,
      name: fields[23] as String,
      email: fields[24] as String,
      phone: fields[25] as String,
      lastSyncedAt: fields[26] as DateTime,
      isActive: fields[27] as bool,
      isSynced: fields[28] as bool,
      stripePaymentId: fields[29] as String?,
      stripePaymentLinkId: fields[30] as String?,
      stripePaymentLinkUrl: fields[31] as String?,
    );
  }

  @override
  void write(BinaryWriter writer, PassageModel obj) {
    writer
      ..writeByte(32)
      ..writeByte(0)
      ..write(obj.id)
      ..writeByte(1)
      ..write(obj.fkOperation)
      ..writeByte(2)
      ..write(obj.fkSector)
      ..writeByte(3)
      ..write(obj.fkUser)
      ..writeByte(4)
      ..write(obj.fkType)
      ..writeByte(5)
      ..write(obj.fkAdresse)
      ..writeByte(6)
      ..write(obj.passedAt)
      ..writeByte(7)
      ..write(obj.numero)
      ..writeByte(8)
      ..write(obj.rue)
      ..writeByte(9)
      ..write(obj.rueBis)
      ..writeByte(10)
      ..write(obj.ville)
      ..writeByte(11)
      ..write(obj.residence)
      ..writeByte(12)
      ..write(obj.fkHabitat)
      ..writeByte(13)
      ..write(obj.appt)
      ..writeByte(14)
      ..write(obj.niveau)
      ..writeByte(15)
      ..write(obj.gpsLat)
      ..writeByte(16)
      ..write(obj.gpsLng)
      ..writeByte(17)
      ..write(obj.nomRecu)
      ..writeByte(18)
      ..write(obj.remarque)
      ..writeByte(19)
      ..write(obj.montant)
      ..writeByte(20)
      ..write(obj.fkTypeReglement)
      ..writeByte(21)
      ..write(obj.emailErreur)
      ..writeByte(22)
      ..write(obj.nbPassages)
      ..writeByte(23)
      ..write(obj.name)
      ..writeByte(24)
      ..write(obj.email)
      ..writeByte(25)
      ..write(obj.phone)
      ..writeByte(26)
      ..write(obj.lastSyncedAt)
      ..writeByte(27)
      ..write(obj.isActive)
      ..writeByte(28)
      ..write(obj.isSynced)
      ..writeByte(29)
      ..write(obj.stripePaymentId)
      ..writeByte(30)
      ..write(obj.stripePaymentLinkId)
      ..writeByte(31)
      ..write(obj.stripePaymentLinkUrl);
  }

  @override
  int get hashCode => typeId.hashCode;

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