// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'user_sector_model.dart';

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

class UserSectorModelAdapter extends TypeAdapter<UserSectorModel> {
  @override
  final int typeId = 7;

  @override
  UserSectorModel read(BinaryReader reader) {
    final numOfFields = reader.readByte();
    final fields = <int, dynamic>{
      for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
    };
    return UserSectorModel(
      id: fields[0] as int,
      firstName: fields[1] as String?,
      sectName: fields[2] as String?,
      fkSector: fields[3] as int,
      name: fields[4] as String?,
    );
  }

  @override
  void write(BinaryWriter writer, UserSectorModel obj) {
    writer
      ..writeByte(5)
      ..writeByte(0)
      ..write(obj.id)
      ..writeByte(1)
      ..write(obj.firstName)
      ..writeByte(2)
      ..write(obj.sectName)
      ..writeByte(3)
      ..write(obj.fkSector)
      ..writeByte(4)
      ..write(obj.name);
  }

  @override
  int get hashCode => typeId.hashCode;

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