// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'user_sector_model.dart';

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

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

  @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(
      userId: fields[0] as int,
      firstName: fields[1] as String?,
      sectName: fields[2] as String?,
      fkSector: fields[3] as int,
      name: fields[4] as String?,
      opeUserId: fields[5] as int,
    );
  }

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

  @override
  int get hashCode => typeId.hashCode;

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