// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'membre_model.dart';

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

class MembreModelAdapter extends TypeAdapter<MembreModel> {
  @override
  final int typeId = 5;

  @override
  MembreModel read(BinaryReader reader) {
    final numOfFields = reader.readByte();
    final fields = <int, dynamic>{
      for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
    };
    return MembreModel(
      id: fields[0] as int,
      fkEntite: fields[1] as int?,
      role: fields[2] as int,
      fkTitre: fields[3] as int?,
      name: fields[4] as String?,
      firstName: fields[5] as String?,
      username: fields[6] as String?,
      sectName: fields[7] as String?,
      email: fields[8] as String,
      phone: fields[9] as String?,
      mobile: fields[10] as String?,
      dateNaissance: fields[11] as DateTime?,
      dateEmbauche: fields[12] as DateTime?,
      createdAt: fields[13] as DateTime,
      isActive: fields[14] as bool,
      opeUserId: fields[15] as int?,
    );
  }

  @override
  void write(BinaryWriter writer, MembreModel obj) {
    writer
      ..writeByte(16)
      ..writeByte(0)
      ..write(obj.id)
      ..writeByte(1)
      ..write(obj.fkEntite)
      ..writeByte(2)
      ..write(obj.role)
      ..writeByte(3)
      ..write(obj.fkTitre)
      ..writeByte(4)
      ..write(obj.name)
      ..writeByte(5)
      ..write(obj.firstName)
      ..writeByte(6)
      ..write(obj.username)
      ..writeByte(7)
      ..write(obj.sectName)
      ..writeByte(8)
      ..write(obj.email)
      ..writeByte(9)
      ..write(obj.phone)
      ..writeByte(10)
      ..write(obj.mobile)
      ..writeByte(11)
      ..write(obj.dateNaissance)
      ..writeByte(12)
      ..write(obj.dateEmbauche)
      ..writeByte(13)
      ..write(obj.createdAt)
      ..writeByte(14)
      ..write(obj.isActive)
      ..writeByte(15)
      ..write(obj.opeUserId);
  }

  @override
  int get hashCode => typeId.hashCode;

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