// 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,
      fkRole: fields[1] as int,
      fkTitre: fields[2] as int,
      firstName: fields[3] as String,
      sectName: fields[4] as String?,
      dateNaissance: fields[5] as DateTime?,
      dateEmbauche: fields[6] as DateTime?,
      chkActive: fields[7] as int,
      name: fields[8] as String,
      username: fields[9] as String,
      email: fields[10] as String,
    );
  }

  @override
  void write(BinaryWriter writer, MembreModel obj) {
    writer
      ..writeByte(11)
      ..writeByte(0)
      ..write(obj.id)
      ..writeByte(1)
      ..write(obj.fkRole)
      ..writeByte(2)
      ..write(obj.fkTitre)
      ..writeByte(3)
      ..write(obj.firstName)
      ..writeByte(4)
      ..write(obj.sectName)
      ..writeByte(5)
      ..write(obj.dateNaissance)
      ..writeByte(6)
      ..write(obj.dateEmbauche)
      ..writeByte(7)
      ..write(obj.chkActive)
      ..writeByte(8)
      ..write(obj.name)
      ..writeByte(9)
      ..write(obj.username)
      ..writeByte(10)
      ..write(obj.email);
  }

  @override
  int get hashCode => typeId.hashCode;

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