// GENERATED CODE - DO NOT MODIFY BY HAND
// coverage:ignore-file
// ignore_for_file: type=lint
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark

part of 'hatching_models.dart';

// **************************************************************************
// FreezedGenerator
// **************************************************************************

// dart format off
T _$identity<T>(T value) => value;

/// @nodoc
mixin _$HatchingModel {

 int? get id; Poultry? get poultry; ChainCompany? get chainCompany; num? get age; dynamic get inspectionLosses; VetFarm? get vetFarm; ActiveKill? get activeKill; KillingInfo? get killingInfo; FreeGovernmentalInfo? get freeGovernmentalInfo; ReportInfo? get reportInfo; String? get key; String? get createDate; String? get modifyDate; bool? get trash; bool? get hasChainCompany; int? get poultryIdForeignKey; int? get poultryHatchingIdKey; num? get quantity; num? get losses; num? get leftOver; num? get killedQuantity; num? get extraKilledQuantity; num? get governmentalKilledQuantity; num? get governmentalQuantity; num? get freeKilledQuantity; num? get freeQuantity; num? get chainKilledQuantity; num? get chainKilledWeight; num? get outProvinceKilledWeight; num? get outProvinceKilledQuantity; num? get exportKilledWeight; num? get exportKilledQuantity; num? get totalCommitment; String? get commitmentType; num? get totalCommitmentQuantity; num? get totalFreeCommitmentQuantity; num? get totalFreeCommitmentWeight; num? get totalKilledWeight; num? get totalAverageKilledWeight; num? get requestLeftOver; num? get hall; String? get date; String? get predicateDate; String? get chickenBreed; num? get period; String? get allowHatching; String? get state; bool? get archive; bool? get violation; String? get message; Registrar? get registrar; List<BreedItem>? get breed; num? get cityNumber; String? get cityName; num? get provinceNumber; String? get provinceName; LastChange? get lastChange; num? get chickenAge; num? get nowAge; LatestHatchingChange? get latestHatchingChange; String? get violationReport; String? get violationMessage; List<String>? get violationImage; String? get violationReporter; String? get violationReportDate; String? get violationReportEditor; String? get violationReportEditDate; num? get totalLosses; num? get directLosses; String? get directLossesInputer; String? get directLossesDate; String? get directLossesEditor; String? get directLossesLastEditDate; String? get endPeriodLossesInputer; String? get endPeriodLossesDate; String? get endPeriodLossesEditor; String? get endPeriodLossesLastEditDate; String? get breedingUniqueId; String? get licenceNumber; bool? get temporaryTrash; bool? get temporaryDeleted; String? get firstDateInputArchive; String? get secondDateInputArchive; String? get inputArchiver; String? get outputArchiveDate; String? get outputArchiver; num? get barDifferenceRequestWeight; num? get barDifferenceRequestQuantity; String? get healthCertificate; num? get samasatDischargePercentage; String? get personTypeName; String? get interactTypeName; String? get unionTypeName; String? get certId; num? get increaseQuantity; String? get tenantFullname; String? get tenantNationalCode; String? get tenantMobile; String? get tenantCity; bool? get hasTenant; String? get archiveDate; String? get createdBy; String? get modifiedBy;
/// Create a copy of HatchingModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$HatchingModelCopyWith<HatchingModel> get copyWith => _$HatchingModelCopyWithImpl<HatchingModel>(this as HatchingModel, _$identity);

  /// Serializes this HatchingModel to a JSON map.
  Map<String, dynamic> toJson();


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is HatchingModel&&(identical(other.id, id) || other.id == id)&&(identical(other.poultry, poultry) || other.poultry == poultry)&&(identical(other.chainCompany, chainCompany) || other.chainCompany == chainCompany)&&(identical(other.age, age) || other.age == age)&&const DeepCollectionEquality().equals(other.inspectionLosses, inspectionLosses)&&(identical(other.vetFarm, vetFarm) || other.vetFarm == vetFarm)&&(identical(other.activeKill, activeKill) || other.activeKill == activeKill)&&(identical(other.killingInfo, killingInfo) || other.killingInfo == killingInfo)&&(identical(other.freeGovernmentalInfo, freeGovernmentalInfo) || other.freeGovernmentalInfo == freeGovernmentalInfo)&&(identical(other.reportInfo, reportInfo) || other.reportInfo == reportInfo)&&(identical(other.key, key) || other.key == key)&&(identical(other.createDate, createDate) || other.createDate == createDate)&&(identical(other.modifyDate, modifyDate) || other.modifyDate == modifyDate)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.hasChainCompany, hasChainCompany) || other.hasChainCompany == hasChainCompany)&&(identical(other.poultryIdForeignKey, poultryIdForeignKey) || other.poultryIdForeignKey == poultryIdForeignKey)&&(identical(other.poultryHatchingIdKey, poultryHatchingIdKey) || other.poultryHatchingIdKey == poultryHatchingIdKey)&&(identical(other.quantity, quantity) || other.quantity == quantity)&&(identical(other.losses, losses) || other.losses == losses)&&(identical(other.leftOver, leftOver) || other.leftOver == leftOver)&&(identical(other.killedQuantity, killedQuantity) || other.killedQuantity == killedQuantity)&&(identical(other.extraKilledQuantity, extraKilledQuantity) || other.extraKilledQuantity == extraKilledQuantity)&&(identical(other.governmentalKilledQuantity, governmentalKilledQuantity) || other.governmentalKilledQuantity == governmentalKilledQuantity)&&(identical(other.governmentalQuantity, governmentalQuantity) || other.governmentalQuantity == governmentalQuantity)&&(identical(other.freeKilledQuantity, freeKilledQuantity) || other.freeKilledQuantity == freeKilledQuantity)&&(identical(other.freeQuantity, freeQuantity) || other.freeQuantity == freeQuantity)&&(identical(other.chainKilledQuantity, chainKilledQuantity) || other.chainKilledQuantity == chainKilledQuantity)&&(identical(other.chainKilledWeight, chainKilledWeight) || other.chainKilledWeight == chainKilledWeight)&&(identical(other.outProvinceKilledWeight, outProvinceKilledWeight) || other.outProvinceKilledWeight == outProvinceKilledWeight)&&(identical(other.outProvinceKilledQuantity, outProvinceKilledQuantity) || other.outProvinceKilledQuantity == outProvinceKilledQuantity)&&(identical(other.exportKilledWeight, exportKilledWeight) || other.exportKilledWeight == exportKilledWeight)&&(identical(other.exportKilledQuantity, exportKilledQuantity) || other.exportKilledQuantity == exportKilledQuantity)&&(identical(other.totalCommitment, totalCommitment) || other.totalCommitment == totalCommitment)&&(identical(other.commitmentType, commitmentType) || other.commitmentType == commitmentType)&&(identical(other.totalCommitmentQuantity, totalCommitmentQuantity) || other.totalCommitmentQuantity == totalCommitmentQuantity)&&(identical(other.totalFreeCommitmentQuantity, totalFreeCommitmentQuantity) || other.totalFreeCommitmentQuantity == totalFreeCommitmentQuantity)&&(identical(other.totalFreeCommitmentWeight, totalFreeCommitmentWeight) || other.totalFreeCommitmentWeight == totalFreeCommitmentWeight)&&(identical(other.totalKilledWeight, totalKilledWeight) || other.totalKilledWeight == totalKilledWeight)&&(identical(other.totalAverageKilledWeight, totalAverageKilledWeight) || other.totalAverageKilledWeight == totalAverageKilledWeight)&&(identical(other.requestLeftOver, requestLeftOver) || other.requestLeftOver == requestLeftOver)&&(identical(other.hall, hall) || other.hall == hall)&&(identical(other.date, date) || other.date == date)&&(identical(other.predicateDate, predicateDate) || other.predicateDate == predicateDate)&&(identical(other.chickenBreed, chickenBreed) || other.chickenBreed == chickenBreed)&&(identical(other.period, period) || other.period == period)&&(identical(other.allowHatching, allowHatching) || other.allowHatching == allowHatching)&&(identical(other.state, state) || other.state == state)&&(identical(other.archive, archive) || other.archive == archive)&&(identical(other.violation, violation) || other.violation == violation)&&(identical(other.message, message) || other.message == message)&&(identical(other.registrar, registrar) || other.registrar == registrar)&&const DeepCollectionEquality().equals(other.breed, breed)&&(identical(other.cityNumber, cityNumber) || other.cityNumber == cityNumber)&&(identical(other.cityName, cityName) || other.cityName == cityName)&&(identical(other.provinceNumber, provinceNumber) || other.provinceNumber == provinceNumber)&&(identical(other.provinceName, provinceName) || other.provinceName == provinceName)&&(identical(other.lastChange, lastChange) || other.lastChange == lastChange)&&(identical(other.chickenAge, chickenAge) || other.chickenAge == chickenAge)&&(identical(other.nowAge, nowAge) || other.nowAge == nowAge)&&(identical(other.latestHatchingChange, latestHatchingChange) || other.latestHatchingChange == latestHatchingChange)&&(identical(other.violationReport, violationReport) || other.violationReport == violationReport)&&(identical(other.violationMessage, violationMessage) || other.violationMessage == violationMessage)&&const DeepCollectionEquality().equals(other.violationImage, violationImage)&&(identical(other.violationReporter, violationReporter) || other.violationReporter == violationReporter)&&(identical(other.violationReportDate, violationReportDate) || other.violationReportDate == violationReportDate)&&(identical(other.violationReportEditor, violationReportEditor) || other.violationReportEditor == violationReportEditor)&&(identical(other.violationReportEditDate, violationReportEditDate) || other.violationReportEditDate == violationReportEditDate)&&(identical(other.totalLosses, totalLosses) || other.totalLosses == totalLosses)&&(identical(other.directLosses, directLosses) || other.directLosses == directLosses)&&(identical(other.directLossesInputer, directLossesInputer) || other.directLossesInputer == directLossesInputer)&&(identical(other.directLossesDate, directLossesDate) || other.directLossesDate == directLossesDate)&&(identical(other.directLossesEditor, directLossesEditor) || other.directLossesEditor == directLossesEditor)&&(identical(other.directLossesLastEditDate, directLossesLastEditDate) || other.directLossesLastEditDate == directLossesLastEditDate)&&(identical(other.endPeriodLossesInputer, endPeriodLossesInputer) || other.endPeriodLossesInputer == endPeriodLossesInputer)&&(identical(other.endPeriodLossesDate, endPeriodLossesDate) || other.endPeriodLossesDate == endPeriodLossesDate)&&(identical(other.endPeriodLossesEditor, endPeriodLossesEditor) || other.endPeriodLossesEditor == endPeriodLossesEditor)&&(identical(other.endPeriodLossesLastEditDate, endPeriodLossesLastEditDate) || other.endPeriodLossesLastEditDate == endPeriodLossesLastEditDate)&&(identical(other.breedingUniqueId, breedingUniqueId) || other.breedingUniqueId == breedingUniqueId)&&(identical(other.licenceNumber, licenceNumber) || other.licenceNumber == licenceNumber)&&(identical(other.temporaryTrash, temporaryTrash) || other.temporaryTrash == temporaryTrash)&&(identical(other.temporaryDeleted, temporaryDeleted) || other.temporaryDeleted == temporaryDeleted)&&(identical(other.firstDateInputArchive, firstDateInputArchive) || other.firstDateInputArchive == firstDateInputArchive)&&(identical(other.secondDateInputArchive, secondDateInputArchive) || other.secondDateInputArchive == secondDateInputArchive)&&(identical(other.inputArchiver, inputArchiver) || other.inputArchiver == inputArchiver)&&(identical(other.outputArchiveDate, outputArchiveDate) || other.outputArchiveDate == outputArchiveDate)&&(identical(other.outputArchiver, outputArchiver) || other.outputArchiver == outputArchiver)&&(identical(other.barDifferenceRequestWeight, barDifferenceRequestWeight) || other.barDifferenceRequestWeight == barDifferenceRequestWeight)&&(identical(other.barDifferenceRequestQuantity, barDifferenceRequestQuantity) || other.barDifferenceRequestQuantity == barDifferenceRequestQuantity)&&(identical(other.healthCertificate, healthCertificate) || other.healthCertificate == healthCertificate)&&(identical(other.samasatDischargePercentage, samasatDischargePercentage) || other.samasatDischargePercentage == samasatDischargePercentage)&&(identical(other.personTypeName, personTypeName) || other.personTypeName == personTypeName)&&(identical(other.interactTypeName, interactTypeName) || other.interactTypeName == interactTypeName)&&(identical(other.unionTypeName, unionTypeName) || other.unionTypeName == unionTypeName)&&(identical(other.certId, certId) || other.certId == certId)&&(identical(other.increaseQuantity, increaseQuantity) || other.increaseQuantity == increaseQuantity)&&(identical(other.tenantFullname, tenantFullname) || other.tenantFullname == tenantFullname)&&(identical(other.tenantNationalCode, tenantNationalCode) || other.tenantNationalCode == tenantNationalCode)&&(identical(other.tenantMobile, tenantMobile) || other.tenantMobile == tenantMobile)&&(identical(other.tenantCity, tenantCity) || other.tenantCity == tenantCity)&&(identical(other.hasTenant, hasTenant) || other.hasTenant == hasTenant)&&(identical(other.archiveDate, archiveDate) || other.archiveDate == archiveDate)&&(identical(other.createdBy, createdBy) || other.createdBy == createdBy)&&(identical(other.modifiedBy, modifiedBy) || other.modifiedBy == modifiedBy));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hashAll([runtimeType,id,poultry,chainCompany,age,const DeepCollectionEquality().hash(inspectionLosses),vetFarm,activeKill,killingInfo,freeGovernmentalInfo,reportInfo,key,createDate,modifyDate,trash,hasChainCompany,poultryIdForeignKey,poultryHatchingIdKey,quantity,losses,leftOver,killedQuantity,extraKilledQuantity,governmentalKilledQuantity,governmentalQuantity,freeKilledQuantity,freeQuantity,chainKilledQuantity,chainKilledWeight,outProvinceKilledWeight,outProvinceKilledQuantity,exportKilledWeight,exportKilledQuantity,totalCommitment,commitmentType,totalCommitmentQuantity,totalFreeCommitmentQuantity,totalFreeCommitmentWeight,totalKilledWeight,totalAverageKilledWeight,requestLeftOver,hall,date,predicateDate,chickenBreed,period,allowHatching,state,archive,violation,message,registrar,const DeepCollectionEquality().hash(breed),cityNumber,cityName,provinceNumber,provinceName,lastChange,chickenAge,nowAge,latestHatchingChange,violationReport,violationMessage,const DeepCollectionEquality().hash(violationImage),violationReporter,violationReportDate,violationReportEditor,violationReportEditDate,totalLosses,directLosses,directLossesInputer,directLossesDate,directLossesEditor,directLossesLastEditDate,endPeriodLossesInputer,endPeriodLossesDate,endPeriodLossesEditor,endPeriodLossesLastEditDate,breedingUniqueId,licenceNumber,temporaryTrash,temporaryDeleted,firstDateInputArchive,secondDateInputArchive,inputArchiver,outputArchiveDate,outputArchiver,barDifferenceRequestWeight,barDifferenceRequestQuantity,healthCertificate,samasatDischargePercentage,personTypeName,interactTypeName,unionTypeName,certId,increaseQuantity,tenantFullname,tenantNationalCode,tenantMobile,tenantCity,hasTenant,archiveDate,createdBy,modifiedBy]);

@override
String toString() {
  return 'HatchingModel(id: $id, poultry: $poultry, chainCompany: $chainCompany, age: $age, inspectionLosses: $inspectionLosses, vetFarm: $vetFarm, activeKill: $activeKill, killingInfo: $killingInfo, freeGovernmentalInfo: $freeGovernmentalInfo, reportInfo: $reportInfo, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, hasChainCompany: $hasChainCompany, poultryIdForeignKey: $poultryIdForeignKey, poultryHatchingIdKey: $poultryHatchingIdKey, quantity: $quantity, losses: $losses, leftOver: $leftOver, killedQuantity: $killedQuantity, extraKilledQuantity: $extraKilledQuantity, governmentalKilledQuantity: $governmentalKilledQuantity, governmentalQuantity: $governmentalQuantity, freeKilledQuantity: $freeKilledQuantity, freeQuantity: $freeQuantity, chainKilledQuantity: $chainKilledQuantity, chainKilledWeight: $chainKilledWeight, outProvinceKilledWeight: $outProvinceKilledWeight, outProvinceKilledQuantity: $outProvinceKilledQuantity, exportKilledWeight: $exportKilledWeight, exportKilledQuantity: $exportKilledQuantity, totalCommitment: $totalCommitment, commitmentType: $commitmentType, totalCommitmentQuantity: $totalCommitmentQuantity, totalFreeCommitmentQuantity: $totalFreeCommitmentQuantity, totalFreeCommitmentWeight: $totalFreeCommitmentWeight, totalKilledWeight: $totalKilledWeight, totalAverageKilledWeight: $totalAverageKilledWeight, requestLeftOver: $requestLeftOver, hall: $hall, date: $date, predicateDate: $predicateDate, chickenBreed: $chickenBreed, period: $period, allowHatching: $allowHatching, state: $state, archive: $archive, violation: $violation, message: $message, registrar: $registrar, breed: $breed, cityNumber: $cityNumber, cityName: $cityName, provinceNumber: $provinceNumber, provinceName: $provinceName, lastChange: $lastChange, chickenAge: $chickenAge, nowAge: $nowAge, latestHatchingChange: $latestHatchingChange, violationReport: $violationReport, violationMessage: $violationMessage, violationImage: $violationImage, violationReporter: $violationReporter, violationReportDate: $violationReportDate, violationReportEditor: $violationReportEditor, violationReportEditDate: $violationReportEditDate, totalLosses: $totalLosses, directLosses: $directLosses, directLossesInputer: $directLossesInputer, directLossesDate: $directLossesDate, directLossesEditor: $directLossesEditor, directLossesLastEditDate: $directLossesLastEditDate, endPeriodLossesInputer: $endPeriodLossesInputer, endPeriodLossesDate: $endPeriodLossesDate, endPeriodLossesEditor: $endPeriodLossesEditor, endPeriodLossesLastEditDate: $endPeriodLossesLastEditDate, breedingUniqueId: $breedingUniqueId, licenceNumber: $licenceNumber, temporaryTrash: $temporaryTrash, temporaryDeleted: $temporaryDeleted, firstDateInputArchive: $firstDateInputArchive, secondDateInputArchive: $secondDateInputArchive, inputArchiver: $inputArchiver, outputArchiveDate: $outputArchiveDate, outputArchiver: $outputArchiver, barDifferenceRequestWeight: $barDifferenceRequestWeight, barDifferenceRequestQuantity: $barDifferenceRequestQuantity, healthCertificate: $healthCertificate, samasatDischargePercentage: $samasatDischargePercentage, personTypeName: $personTypeName, interactTypeName: $interactTypeName, unionTypeName: $unionTypeName, certId: $certId, increaseQuantity: $increaseQuantity, tenantFullname: $tenantFullname, tenantNationalCode: $tenantNationalCode, tenantMobile: $tenantMobile, tenantCity: $tenantCity, hasTenant: $hasTenant, archiveDate: $archiveDate, createdBy: $createdBy, modifiedBy: $modifiedBy)';
}


}

/// @nodoc
abstract mixin class $HatchingModelCopyWith<$Res>  {
  factory $HatchingModelCopyWith(HatchingModel value, $Res Function(HatchingModel) _then) = _$HatchingModelCopyWithImpl;
@useResult
$Res call({
 int? id, Poultry? poultry, ChainCompany? chainCompany, num? age, dynamic inspectionLosses, VetFarm? vetFarm, ActiveKill? activeKill, KillingInfo? killingInfo, FreeGovernmentalInfo? freeGovernmentalInfo, ReportInfo? reportInfo, String? key, String? createDate, String? modifyDate, bool? trash, bool? hasChainCompany, int? poultryIdForeignKey, int? poultryHatchingIdKey, num? quantity, num? losses, num? leftOver, num? killedQuantity, num? extraKilledQuantity, num? governmentalKilledQuantity, num? governmentalQuantity, num? freeKilledQuantity, num? freeQuantity, num? chainKilledQuantity, num? chainKilledWeight, num? outProvinceKilledWeight, num? outProvinceKilledQuantity, num? exportKilledWeight, num? exportKilledQuantity, num? totalCommitment, String? commitmentType, num? totalCommitmentQuantity, num? totalFreeCommitmentQuantity, num? totalFreeCommitmentWeight, num? totalKilledWeight, num? totalAverageKilledWeight, num? requestLeftOver, num? hall, String? date, String? predicateDate, String? chickenBreed, num? period, String? allowHatching, String? state, bool? archive, bool? violation, String? message, Registrar? registrar, List<BreedItem>? breed, num? cityNumber, String? cityName, num? provinceNumber, String? provinceName, LastChange? lastChange, num? chickenAge, num? nowAge, LatestHatchingChange? latestHatchingChange, String? violationReport, String? violationMessage, List<String>? violationImage, String? violationReporter, String? violationReportDate, String? violationReportEditor, String? violationReportEditDate, num? totalLosses, num? directLosses, String? directLossesInputer, String? directLossesDate, String? directLossesEditor, String? directLossesLastEditDate, String? endPeriodLossesInputer, String? endPeriodLossesDate, String? endPeriodLossesEditor, String? endPeriodLossesLastEditDate, String? breedingUniqueId, String? licenceNumber, bool? temporaryTrash, bool? temporaryDeleted, String? firstDateInputArchive, String? secondDateInputArchive, String? inputArchiver, String? outputArchiveDate, String? outputArchiver, num? barDifferenceRequestWeight, num? barDifferenceRequestQuantity, String? healthCertificate, num? samasatDischargePercentage, String? personTypeName, String? interactTypeName, String? unionTypeName, String? certId, num? increaseQuantity, String? tenantFullname, String? tenantNationalCode, String? tenantMobile, String? tenantCity, bool? hasTenant, String? archiveDate, String? createdBy, String? modifiedBy
});


$PoultryCopyWith<$Res>? get poultry;$ChainCompanyCopyWith<$Res>? get chainCompany;$VetFarmCopyWith<$Res>? get vetFarm;$ActiveKillCopyWith<$Res>? get activeKill;$KillingInfoCopyWith<$Res>? get killingInfo;$FreeGovernmentalInfoCopyWith<$Res>? get freeGovernmentalInfo;$ReportInfoCopyWith<$Res>? get reportInfo;$RegistrarCopyWith<$Res>? get registrar;$LastChangeCopyWith<$Res>? get lastChange;$LatestHatchingChangeCopyWith<$Res>? get latestHatchingChange;

}
/// @nodoc
class _$HatchingModelCopyWithImpl<$Res>
    implements $HatchingModelCopyWith<$Res> {
  _$HatchingModelCopyWithImpl(this._self, this._then);

  final HatchingModel _self;
  final $Res Function(HatchingModel) _then;

/// Create a copy of HatchingModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? poultry = freezed,Object? chainCompany = freezed,Object? age = freezed,Object? inspectionLosses = freezed,Object? vetFarm = freezed,Object? activeKill = freezed,Object? killingInfo = freezed,Object? freeGovernmentalInfo = freezed,Object? reportInfo = freezed,Object? key = freezed,Object? createDate = freezed,Object? modifyDate = freezed,Object? trash = freezed,Object? hasChainCompany = freezed,Object? poultryIdForeignKey = freezed,Object? poultryHatchingIdKey = freezed,Object? quantity = freezed,Object? losses = freezed,Object? leftOver = freezed,Object? killedQuantity = freezed,Object? extraKilledQuantity = freezed,Object? governmentalKilledQuantity = freezed,Object? governmentalQuantity = freezed,Object? freeKilledQuantity = freezed,Object? freeQuantity = freezed,Object? chainKilledQuantity = freezed,Object? chainKilledWeight = freezed,Object? outProvinceKilledWeight = freezed,Object? outProvinceKilledQuantity = freezed,Object? exportKilledWeight = freezed,Object? exportKilledQuantity = freezed,Object? totalCommitment = freezed,Object? commitmentType = freezed,Object? totalCommitmentQuantity = freezed,Object? totalFreeCommitmentQuantity = freezed,Object? totalFreeCommitmentWeight = freezed,Object? totalKilledWeight = freezed,Object? totalAverageKilledWeight = freezed,Object? requestLeftOver = freezed,Object? hall = freezed,Object? date = freezed,Object? predicateDate = freezed,Object? chickenBreed = freezed,Object? period = freezed,Object? allowHatching = freezed,Object? state = freezed,Object? archive = freezed,Object? violation = freezed,Object? message = freezed,Object? registrar = freezed,Object? breed = freezed,Object? cityNumber = freezed,Object? cityName = freezed,Object? provinceNumber = freezed,Object? provinceName = freezed,Object? lastChange = freezed,Object? chickenAge = freezed,Object? nowAge = freezed,Object? latestHatchingChange = freezed,Object? violationReport = freezed,Object? violationMessage = freezed,Object? violationImage = freezed,Object? violationReporter = freezed,Object? violationReportDate = freezed,Object? violationReportEditor = freezed,Object? violationReportEditDate = freezed,Object? totalLosses = freezed,Object? directLosses = freezed,Object? directLossesInputer = freezed,Object? directLossesDate = freezed,Object? directLossesEditor = freezed,Object? directLossesLastEditDate = freezed,Object? endPeriodLossesInputer = freezed,Object? endPeriodLossesDate = freezed,Object? endPeriodLossesEditor = freezed,Object? endPeriodLossesLastEditDate = freezed,Object? breedingUniqueId = freezed,Object? licenceNumber = freezed,Object? temporaryTrash = freezed,Object? temporaryDeleted = freezed,Object? firstDateInputArchive = freezed,Object? secondDateInputArchive = freezed,Object? inputArchiver = freezed,Object? outputArchiveDate = freezed,Object? outputArchiver = freezed,Object? barDifferenceRequestWeight = freezed,Object? barDifferenceRequestQuantity = freezed,Object? healthCertificate = freezed,Object? samasatDischargePercentage = freezed,Object? personTypeName = freezed,Object? interactTypeName = freezed,Object? unionTypeName = freezed,Object? certId = freezed,Object? increaseQuantity = freezed,Object? tenantFullname = freezed,Object? tenantNationalCode = freezed,Object? tenantMobile = freezed,Object? tenantCity = freezed,Object? hasTenant = freezed,Object? archiveDate = freezed,Object? createdBy = freezed,Object? modifiedBy = freezed,}) {
  return _then(_self.copyWith(
id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
as int?,poultry: freezed == poultry ? _self.poultry : poultry // ignore: cast_nullable_to_non_nullable
as Poultry?,chainCompany: freezed == chainCompany ? _self.chainCompany : chainCompany // ignore: cast_nullable_to_non_nullable
as ChainCompany?,age: freezed == age ? _self.age : age // ignore: cast_nullable_to_non_nullable
as num?,inspectionLosses: freezed == inspectionLosses ? _self.inspectionLosses : inspectionLosses // ignore: cast_nullable_to_non_nullable
as dynamic,vetFarm: freezed == vetFarm ? _self.vetFarm : vetFarm // ignore: cast_nullable_to_non_nullable
as VetFarm?,activeKill: freezed == activeKill ? _self.activeKill : activeKill // ignore: cast_nullable_to_non_nullable
as ActiveKill?,killingInfo: freezed == killingInfo ? _self.killingInfo : killingInfo // ignore: cast_nullable_to_non_nullable
as KillingInfo?,freeGovernmentalInfo: freezed == freeGovernmentalInfo ? _self.freeGovernmentalInfo : freeGovernmentalInfo // ignore: cast_nullable_to_non_nullable
as FreeGovernmentalInfo?,reportInfo: freezed == reportInfo ? _self.reportInfo : reportInfo // ignore: cast_nullable_to_non_nullable
as ReportInfo?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable
as String?,createDate: freezed == createDate ? _self.createDate : createDate // ignore: cast_nullable_to_non_nullable
as String?,modifyDate: freezed == modifyDate ? _self.modifyDate : modifyDate // ignore: cast_nullable_to_non_nullable
as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable
as bool?,hasChainCompany: freezed == hasChainCompany ? _self.hasChainCompany : hasChainCompany // ignore: cast_nullable_to_non_nullable
as bool?,poultryIdForeignKey: freezed == poultryIdForeignKey ? _self.poultryIdForeignKey : poultryIdForeignKey // ignore: cast_nullable_to_non_nullable
as int?,poultryHatchingIdKey: freezed == poultryHatchingIdKey ? _self.poultryHatchingIdKey : poultryHatchingIdKey // ignore: cast_nullable_to_non_nullable
as int?,quantity: freezed == quantity ? _self.quantity : quantity // ignore: cast_nullable_to_non_nullable
as num?,losses: freezed == losses ? _self.losses : losses // ignore: cast_nullable_to_non_nullable
as num?,leftOver: freezed == leftOver ? _self.leftOver : leftOver // ignore: cast_nullable_to_non_nullable
as num?,killedQuantity: freezed == killedQuantity ? _self.killedQuantity : killedQuantity // ignore: cast_nullable_to_non_nullable
as num?,extraKilledQuantity: freezed == extraKilledQuantity ? _self.extraKilledQuantity : extraKilledQuantity // ignore: cast_nullable_to_non_nullable
as num?,governmentalKilledQuantity: freezed == governmentalKilledQuantity ? _self.governmentalKilledQuantity : governmentalKilledQuantity // ignore: cast_nullable_to_non_nullable
as num?,governmentalQuantity: freezed == governmentalQuantity ? _self.governmentalQuantity : governmentalQuantity // ignore: cast_nullable_to_non_nullable
as num?,freeKilledQuantity: freezed == freeKilledQuantity ? _self.freeKilledQuantity : freeKilledQuantity // ignore: cast_nullable_to_non_nullable
as num?,freeQuantity: freezed == freeQuantity ? _self.freeQuantity : freeQuantity // ignore: cast_nullable_to_non_nullable
as num?,chainKilledQuantity: freezed == chainKilledQuantity ? _self.chainKilledQuantity : chainKilledQuantity // ignore: cast_nullable_to_non_nullable
as num?,chainKilledWeight: freezed == chainKilledWeight ? _self.chainKilledWeight : chainKilledWeight // ignore: cast_nullable_to_non_nullable
as num?,outProvinceKilledWeight: freezed == outProvinceKilledWeight ? _self.outProvinceKilledWeight : outProvinceKilledWeight // ignore: cast_nullable_to_non_nullable
as num?,outProvinceKilledQuantity: freezed == outProvinceKilledQuantity ? _self.outProvinceKilledQuantity : outProvinceKilledQuantity // ignore: cast_nullable_to_non_nullable
as num?,exportKilledWeight: freezed == exportKilledWeight ? _self.exportKilledWeight : exportKilledWeight // ignore: cast_nullable_to_non_nullable
as num?,exportKilledQuantity: freezed == exportKilledQuantity ? _self.exportKilledQuantity : exportKilledQuantity // ignore: cast_nullable_to_non_nullable
as num?,totalCommitment: freezed == totalCommitment ? _self.totalCommitment : totalCommitment // ignore: cast_nullable_to_non_nullable
as num?,commitmentType: freezed == commitmentType ? _self.commitmentType : commitmentType // ignore: cast_nullable_to_non_nullable
as String?,totalCommitmentQuantity: freezed == totalCommitmentQuantity ? _self.totalCommitmentQuantity : totalCommitmentQuantity // ignore: cast_nullable_to_non_nullable
as num?,totalFreeCommitmentQuantity: freezed == totalFreeCommitmentQuantity ? _self.totalFreeCommitmentQuantity : totalFreeCommitmentQuantity // ignore: cast_nullable_to_non_nullable
as num?,totalFreeCommitmentWeight: freezed == totalFreeCommitmentWeight ? _self.totalFreeCommitmentWeight : totalFreeCommitmentWeight // ignore: cast_nullable_to_non_nullable
as num?,totalKilledWeight: freezed == totalKilledWeight ? _self.totalKilledWeight : totalKilledWeight // ignore: cast_nullable_to_non_nullable
as num?,totalAverageKilledWeight: freezed == totalAverageKilledWeight ? _self.totalAverageKilledWeight : totalAverageKilledWeight // ignore: cast_nullable_to_non_nullable
as num?,requestLeftOver: freezed == requestLeftOver ? _self.requestLeftOver : requestLeftOver // ignore: cast_nullable_to_non_nullable
as num?,hall: freezed == hall ? _self.hall : hall // ignore: cast_nullable_to_non_nullable
as num?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable
as String?,predicateDate: freezed == predicateDate ? _self.predicateDate : predicateDate // ignore: cast_nullable_to_non_nullable
as String?,chickenBreed: freezed == chickenBreed ? _self.chickenBreed : chickenBreed // ignore: cast_nullable_to_non_nullable
as String?,period: freezed == period ? _self.period : period // ignore: cast_nullable_to_non_nullable
as num?,allowHatching: freezed == allowHatching ? _self.allowHatching : allowHatching // ignore: cast_nullable_to_non_nullable
as String?,state: freezed == state ? _self.state : state // ignore: cast_nullable_to_non_nullable
as String?,archive: freezed == archive ? _self.archive : archive // ignore: cast_nullable_to_non_nullable
as bool?,violation: freezed == violation ? _self.violation : violation // ignore: cast_nullable_to_non_nullable
as bool?,message: freezed == message ? _self.message : message // ignore: cast_nullable_to_non_nullable
as String?,registrar: freezed == registrar ? _self.registrar : registrar // ignore: cast_nullable_to_non_nullable
as Registrar?,breed: freezed == breed ? _self.breed : breed // ignore: cast_nullable_to_non_nullable
as List<BreedItem>?,cityNumber: freezed == cityNumber ? _self.cityNumber : cityNumber // ignore: cast_nullable_to_non_nullable
as num?,cityName: freezed == cityName ? _self.cityName : cityName // ignore: cast_nullable_to_non_nullable
as String?,provinceNumber: freezed == provinceNumber ? _self.provinceNumber : provinceNumber // ignore: cast_nullable_to_non_nullable
as num?,provinceName: freezed == provinceName ? _self.provinceName : provinceName // ignore: cast_nullable_to_non_nullable
as String?,lastChange: freezed == lastChange ? _self.lastChange : lastChange // ignore: cast_nullable_to_non_nullable
as LastChange?,chickenAge: freezed == chickenAge ? _self.chickenAge : chickenAge // ignore: cast_nullable_to_non_nullable
as num?,nowAge: freezed == nowAge ? _self.nowAge : nowAge // ignore: cast_nullable_to_non_nullable
as num?,latestHatchingChange: freezed == latestHatchingChange ? _self.latestHatchingChange : latestHatchingChange // ignore: cast_nullable_to_non_nullable
as LatestHatchingChange?,violationReport: freezed == violationReport ? _self.violationReport : violationReport // ignore: cast_nullable_to_non_nullable
as String?,violationMessage: freezed == violationMessage ? _self.violationMessage : violationMessage // ignore: cast_nullable_to_non_nullable
as String?,violationImage: freezed == violationImage ? _self.violationImage : violationImage // ignore: cast_nullable_to_non_nullable
as List<String>?,violationReporter: freezed == violationReporter ? _self.violationReporter : violationReporter // ignore: cast_nullable_to_non_nullable
as String?,violationReportDate: freezed == violationReportDate ? _self.violationReportDate : violationReportDate // ignore: cast_nullable_to_non_nullable
as String?,violationReportEditor: freezed == violationReportEditor ? _self.violationReportEditor : violationReportEditor // ignore: cast_nullable_to_non_nullable
as String?,violationReportEditDate: freezed == violationReportEditDate ? _self.violationReportEditDate : violationReportEditDate // ignore: cast_nullable_to_non_nullable
as String?,totalLosses: freezed == totalLosses ? _self.totalLosses : totalLosses // ignore: cast_nullable_to_non_nullable
as num?,directLosses: freezed == directLosses ? _self.directLosses : directLosses // ignore: cast_nullable_to_non_nullable
as num?,directLossesInputer: freezed == directLossesInputer ? _self.directLossesInputer : directLossesInputer // ignore: cast_nullable_to_non_nullable
as String?,directLossesDate: freezed == directLossesDate ? _self.directLossesDate : directLossesDate // ignore: cast_nullable_to_non_nullable
as String?,directLossesEditor: freezed == directLossesEditor ? _self.directLossesEditor : directLossesEditor // ignore: cast_nullable_to_non_nullable
as String?,directLossesLastEditDate: freezed == directLossesLastEditDate ? _self.directLossesLastEditDate : directLossesLastEditDate // ignore: cast_nullable_to_non_nullable
as String?,endPeriodLossesInputer: freezed == endPeriodLossesInputer ? _self.endPeriodLossesInputer : endPeriodLossesInputer // ignore: cast_nullable_to_non_nullable
as String?,endPeriodLossesDate: freezed == endPeriodLossesDate ? _self.endPeriodLossesDate : endPeriodLossesDate // ignore: cast_nullable_to_non_nullable
as String?,endPeriodLossesEditor: freezed == endPeriodLossesEditor ? _self.endPeriodLossesEditor : endPeriodLossesEditor // ignore: cast_nullable_to_non_nullable
as String?,endPeriodLossesLastEditDate: freezed == endPeriodLossesLastEditDate ? _self.endPeriodLossesLastEditDate : endPeriodLossesLastEditDate // ignore: cast_nullable_to_non_nullable
as String?,breedingUniqueId: freezed == breedingUniqueId ? _self.breedingUniqueId : breedingUniqueId // ignore: cast_nullable_to_non_nullable
as String?,licenceNumber: freezed == licenceNumber ? _self.licenceNumber : licenceNumber // ignore: cast_nullable_to_non_nullable
as String?,temporaryTrash: freezed == temporaryTrash ? _self.temporaryTrash : temporaryTrash // ignore: cast_nullable_to_non_nullable
as bool?,temporaryDeleted: freezed == temporaryDeleted ? _self.temporaryDeleted : temporaryDeleted // ignore: cast_nullable_to_non_nullable
as bool?,firstDateInputArchive: freezed == firstDateInputArchive ? _self.firstDateInputArchive : firstDateInputArchive // ignore: cast_nullable_to_non_nullable
as String?,secondDateInputArchive: freezed == secondDateInputArchive ? _self.secondDateInputArchive : secondDateInputArchive // ignore: cast_nullable_to_non_nullable
as String?,inputArchiver: freezed == inputArchiver ? _self.inputArchiver : inputArchiver // ignore: cast_nullable_to_non_nullable
as String?,outputArchiveDate: freezed == outputArchiveDate ? _self.outputArchiveDate : outputArchiveDate // ignore: cast_nullable_to_non_nullable
as String?,outputArchiver: freezed == outputArchiver ? _self.outputArchiver : outputArchiver // ignore: cast_nullable_to_non_nullable
as String?,barDifferenceRequestWeight: freezed == barDifferenceRequestWeight ? _self.barDifferenceRequestWeight : barDifferenceRequestWeight // ignore: cast_nullable_to_non_nullable
as num?,barDifferenceRequestQuantity: freezed == barDifferenceRequestQuantity ? _self.barDifferenceRequestQuantity : barDifferenceRequestQuantity // ignore: cast_nullable_to_non_nullable
as num?,healthCertificate: freezed == healthCertificate ? _self.healthCertificate : healthCertificate // ignore: cast_nullable_to_non_nullable
as String?,samasatDischargePercentage: freezed == samasatDischargePercentage ? _self.samasatDischargePercentage : samasatDischargePercentage // ignore: cast_nullable_to_non_nullable
as num?,personTypeName: freezed == personTypeName ? _self.personTypeName : personTypeName // ignore: cast_nullable_to_non_nullable
as String?,interactTypeName: freezed == interactTypeName ? _self.interactTypeName : interactTypeName // ignore: cast_nullable_to_non_nullable
as String?,unionTypeName: freezed == unionTypeName ? _self.unionTypeName : unionTypeName // ignore: cast_nullable_to_non_nullable
as String?,certId: freezed == certId ? _self.certId : certId // ignore: cast_nullable_to_non_nullable
as String?,increaseQuantity: freezed == increaseQuantity ? _self.increaseQuantity : increaseQuantity // ignore: cast_nullable_to_non_nullable
as num?,tenantFullname: freezed == tenantFullname ? _self.tenantFullname : tenantFullname // ignore: cast_nullable_to_non_nullable
as String?,tenantNationalCode: freezed == tenantNationalCode ? _self.tenantNationalCode : tenantNationalCode // ignore: cast_nullable_to_non_nullable
as String?,tenantMobile: freezed == tenantMobile ? _self.tenantMobile : tenantMobile // ignore: cast_nullable_to_non_nullable
as String?,tenantCity: freezed == tenantCity ? _self.tenantCity : tenantCity // ignore: cast_nullable_to_non_nullable
as String?,hasTenant: freezed == hasTenant ? _self.hasTenant : hasTenant // ignore: cast_nullable_to_non_nullable
as bool?,archiveDate: freezed == archiveDate ? _self.archiveDate : archiveDate // ignore: cast_nullable_to_non_nullable
as String?,createdBy: freezed == createdBy ? _self.createdBy : createdBy // ignore: cast_nullable_to_non_nullable
as String?,modifiedBy: freezed == modifiedBy ? _self.modifiedBy : modifiedBy // ignore: cast_nullable_to_non_nullable
as String?,
  ));
}
/// Create a copy of HatchingModel
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$PoultryCopyWith<$Res>? get poultry {
    if (_self.poultry == null) {
    return null;
  }

  return $PoultryCopyWith<$Res>(_self.poultry!, (value) {
    return _then(_self.copyWith(poultry: value));
  });
}/// Create a copy of HatchingModel
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$ChainCompanyCopyWith<$Res>? get chainCompany {
    if (_self.chainCompany == null) {
    return null;
  }

  return $ChainCompanyCopyWith<$Res>(_self.chainCompany!, (value) {
    return _then(_self.copyWith(chainCompany: value));
  });
}/// Create a copy of HatchingModel
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$VetFarmCopyWith<$Res>? get vetFarm {
    if (_self.vetFarm == null) {
    return null;
  }

  return $VetFarmCopyWith<$Res>(_self.vetFarm!, (value) {
    return _then(_self.copyWith(vetFarm: value));
  });
}/// Create a copy of HatchingModel
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$ActiveKillCopyWith<$Res>? get activeKill {
    if (_self.activeKill == null) {
    return null;
  }

  return $ActiveKillCopyWith<$Res>(_self.activeKill!, (value) {
    return _then(_self.copyWith(activeKill: value));
  });
}/// Create a copy of HatchingModel
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$KillingInfoCopyWith<$Res>? get killingInfo {
    if (_self.killingInfo == null) {
    return null;
  }

  return $KillingInfoCopyWith<$Res>(_self.killingInfo!, (value) {
    return _then(_self.copyWith(killingInfo: value));
  });
}/// Create a copy of HatchingModel
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$FreeGovernmentalInfoCopyWith<$Res>? get freeGovernmentalInfo {
    if (_self.freeGovernmentalInfo == null) {
    return null;
  }

  return $FreeGovernmentalInfoCopyWith<$Res>(_self.freeGovernmentalInfo!, (value) {
    return _then(_self.copyWith(freeGovernmentalInfo: value));
  });
}/// Create a copy of HatchingModel
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$ReportInfoCopyWith<$Res>? get reportInfo {
    if (_self.reportInfo == null) {
    return null;
  }

  return $ReportInfoCopyWith<$Res>(_self.reportInfo!, (value) {
    return _then(_self.copyWith(reportInfo: value));
  });
}/// Create a copy of HatchingModel
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$RegistrarCopyWith<$Res>? get registrar {
    if (_self.registrar == null) {
    return null;
  }

  return $RegistrarCopyWith<$Res>(_self.registrar!, (value) {
    return _then(_self.copyWith(registrar: value));
  });
}/// Create a copy of HatchingModel
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$LastChangeCopyWith<$Res>? get lastChange {
    if (_self.lastChange == null) {
    return null;
  }

  return $LastChangeCopyWith<$Res>(_self.lastChange!, (value) {
    return _then(_self.copyWith(lastChange: value));
  });
}/// Create a copy of HatchingModel
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$LatestHatchingChangeCopyWith<$Res>? get latestHatchingChange {
    if (_self.latestHatchingChange == null) {
    return null;
  }

  return $LatestHatchingChangeCopyWith<$Res>(_self.latestHatchingChange!, (value) {
    return _then(_self.copyWith(latestHatchingChange: value));
  });
}
}


/// Adds pattern-matching-related methods to [HatchingModel].
extension HatchingModelPatterns on HatchingModel {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _HatchingModel value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _HatchingModel() when $default != null:
return $default(_that);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case final Subclass2 value:
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _HatchingModel value)  $default,){
final _that = this;
switch (_that) {
case _HatchingModel():
return $default(_that);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _HatchingModel value)?  $default,){
final _that = this;
switch (_that) {
case _HatchingModel() when $default != null:
return $default(_that);case _:
  return null;

}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( int? id,  Poultry? poultry,  ChainCompany? chainCompany,  num? age,  dynamic inspectionLosses,  VetFarm? vetFarm,  ActiveKill? activeKill,  KillingInfo? killingInfo,  FreeGovernmentalInfo? freeGovernmentalInfo,  ReportInfo? reportInfo,  String? key,  String? createDate,  String? modifyDate,  bool? trash,  bool? hasChainCompany,  int? poultryIdForeignKey,  int? poultryHatchingIdKey,  num? quantity,  num? losses,  num? leftOver,  num? killedQuantity,  num? extraKilledQuantity,  num? governmentalKilledQuantity,  num? governmentalQuantity,  num? freeKilledQuantity,  num? freeQuantity,  num? chainKilledQuantity,  num? chainKilledWeight,  num? outProvinceKilledWeight,  num? outProvinceKilledQuantity,  num? exportKilledWeight,  num? exportKilledQuantity,  num? totalCommitment,  String? commitmentType,  num? totalCommitmentQuantity,  num? totalFreeCommitmentQuantity,  num? totalFreeCommitmentWeight,  num? totalKilledWeight,  num? totalAverageKilledWeight,  num? requestLeftOver,  num? hall,  String? date,  String? predicateDate,  String? chickenBreed,  num? period,  String? allowHatching,  String? state,  bool? archive,  bool? violation,  String? message,  Registrar? registrar,  List<BreedItem>? breed,  num? cityNumber,  String? cityName,  num? provinceNumber,  String? provinceName,  LastChange? lastChange,  num? chickenAge,  num? nowAge,  LatestHatchingChange? latestHatchingChange,  String? violationReport,  String? violationMessage,  List<String>? violationImage,  String? violationReporter,  String? violationReportDate,  String? violationReportEditor,  String? violationReportEditDate,  num? totalLosses,  num? directLosses,  String? directLossesInputer,  String? directLossesDate,  String? directLossesEditor,  String? directLossesLastEditDate,  String? endPeriodLossesInputer,  String? endPeriodLossesDate,  String? endPeriodLossesEditor,  String? endPeriodLossesLastEditDate,  String? breedingUniqueId,  String? licenceNumber,  bool? temporaryTrash,  bool? temporaryDeleted,  String? firstDateInputArchive,  String? secondDateInputArchive,  String? inputArchiver,  String? outputArchiveDate,  String? outputArchiver,  num? barDifferenceRequestWeight,  num? barDifferenceRequestQuantity,  String? healthCertificate,  num? samasatDischargePercentage,  String? personTypeName,  String? interactTypeName,  String? unionTypeName,  String? certId,  num? increaseQuantity,  String? tenantFullname,  String? tenantNationalCode,  String? tenantMobile,  String? tenantCity,  bool? hasTenant,  String? archiveDate,  String? createdBy,  String? modifiedBy)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _HatchingModel() when $default != null:
return $default(_that.id,_that.poultry,_that.chainCompany,_that.age,_that.inspectionLosses,_that.vetFarm,_that.activeKill,_that.killingInfo,_that.freeGovernmentalInfo,_that.reportInfo,_that.key,_that.createDate,_that.modifyDate,_that.trash,_that.hasChainCompany,_that.poultryIdForeignKey,_that.poultryHatchingIdKey,_that.quantity,_that.losses,_that.leftOver,_that.killedQuantity,_that.extraKilledQuantity,_that.governmentalKilledQuantity,_that.governmentalQuantity,_that.freeKilledQuantity,_that.freeQuantity,_that.chainKilledQuantity,_that.chainKilledWeight,_that.outProvinceKilledWeight,_that.outProvinceKilledQuantity,_that.exportKilledWeight,_that.exportKilledQuantity,_that.totalCommitment,_that.commitmentType,_that.totalCommitmentQuantity,_that.totalFreeCommitmentQuantity,_that.totalFreeCommitmentWeight,_that.totalKilledWeight,_that.totalAverageKilledWeight,_that.requestLeftOver,_that.hall,_that.date,_that.predicateDate,_that.chickenBreed,_that.period,_that.allowHatching,_that.state,_that.archive,_that.violation,_that.message,_that.registrar,_that.breed,_that.cityNumber,_that.cityName,_that.provinceNumber,_that.provinceName,_that.lastChange,_that.chickenAge,_that.nowAge,_that.latestHatchingChange,_that.violationReport,_that.violationMessage,_that.violationImage,_that.violationReporter,_that.violationReportDate,_that.violationReportEditor,_that.violationReportEditDate,_that.totalLosses,_that.directLosses,_that.directLossesInputer,_that.directLossesDate,_that.directLossesEditor,_that.directLossesLastEditDate,_that.endPeriodLossesInputer,_that.endPeriodLossesDate,_that.endPeriodLossesEditor,_that.endPeriodLossesLastEditDate,_that.breedingUniqueId,_that.licenceNumber,_that.temporaryTrash,_that.temporaryDeleted,_that.firstDateInputArchive,_that.secondDateInputArchive,_that.inputArchiver,_that.outputArchiveDate,_that.outputArchiver,_that.barDifferenceRequestWeight,_that.barDifferenceRequestQuantity,_that.healthCertificate,_that.samasatDischargePercentage,_that.personTypeName,_that.interactTypeName,_that.unionTypeName,_that.certId,_that.increaseQuantity,_that.tenantFullname,_that.tenantNationalCode,_that.tenantMobile,_that.tenantCity,_that.hasTenant,_that.archiveDate,_that.createdBy,_that.modifiedBy);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case Subclass2(:final field2):
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( int? id,  Poultry? poultry,  ChainCompany? chainCompany,  num? age,  dynamic inspectionLosses,  VetFarm? vetFarm,  ActiveKill? activeKill,  KillingInfo? killingInfo,  FreeGovernmentalInfo? freeGovernmentalInfo,  ReportInfo? reportInfo,  String? key,  String? createDate,  String? modifyDate,  bool? trash,  bool? hasChainCompany,  int? poultryIdForeignKey,  int? poultryHatchingIdKey,  num? quantity,  num? losses,  num? leftOver,  num? killedQuantity,  num? extraKilledQuantity,  num? governmentalKilledQuantity,  num? governmentalQuantity,  num? freeKilledQuantity,  num? freeQuantity,  num? chainKilledQuantity,  num? chainKilledWeight,  num? outProvinceKilledWeight,  num? outProvinceKilledQuantity,  num? exportKilledWeight,  num? exportKilledQuantity,  num? totalCommitment,  String? commitmentType,  num? totalCommitmentQuantity,  num? totalFreeCommitmentQuantity,  num? totalFreeCommitmentWeight,  num? totalKilledWeight,  num? totalAverageKilledWeight,  num? requestLeftOver,  num? hall,  String? date,  String? predicateDate,  String? chickenBreed,  num? period,  String? allowHatching,  String? state,  bool? archive,  bool? violation,  String? message,  Registrar? registrar,  List<BreedItem>? breed,  num? cityNumber,  String? cityName,  num? provinceNumber,  String? provinceName,  LastChange? lastChange,  num? chickenAge,  num? nowAge,  LatestHatchingChange? latestHatchingChange,  String? violationReport,  String? violationMessage,  List<String>? violationImage,  String? violationReporter,  String? violationReportDate,  String? violationReportEditor,  String? violationReportEditDate,  num? totalLosses,  num? directLosses,  String? directLossesInputer,  String? directLossesDate,  String? directLossesEditor,  String? directLossesLastEditDate,  String? endPeriodLossesInputer,  String? endPeriodLossesDate,  String? endPeriodLossesEditor,  String? endPeriodLossesLastEditDate,  String? breedingUniqueId,  String? licenceNumber,  bool? temporaryTrash,  bool? temporaryDeleted,  String? firstDateInputArchive,  String? secondDateInputArchive,  String? inputArchiver,  String? outputArchiveDate,  String? outputArchiver,  num? barDifferenceRequestWeight,  num? barDifferenceRequestQuantity,  String? healthCertificate,  num? samasatDischargePercentage,  String? personTypeName,  String? interactTypeName,  String? unionTypeName,  String? certId,  num? increaseQuantity,  String? tenantFullname,  String? tenantNationalCode,  String? tenantMobile,  String? tenantCity,  bool? hasTenant,  String? archiveDate,  String? createdBy,  String? modifiedBy)  $default,) {final _that = this;
switch (_that) {
case _HatchingModel():
return $default(_that.id,_that.poultry,_that.chainCompany,_that.age,_that.inspectionLosses,_that.vetFarm,_that.activeKill,_that.killingInfo,_that.freeGovernmentalInfo,_that.reportInfo,_that.key,_that.createDate,_that.modifyDate,_that.trash,_that.hasChainCompany,_that.poultryIdForeignKey,_that.poultryHatchingIdKey,_that.quantity,_that.losses,_that.leftOver,_that.killedQuantity,_that.extraKilledQuantity,_that.governmentalKilledQuantity,_that.governmentalQuantity,_that.freeKilledQuantity,_that.freeQuantity,_that.chainKilledQuantity,_that.chainKilledWeight,_that.outProvinceKilledWeight,_that.outProvinceKilledQuantity,_that.exportKilledWeight,_that.exportKilledQuantity,_that.totalCommitment,_that.commitmentType,_that.totalCommitmentQuantity,_that.totalFreeCommitmentQuantity,_that.totalFreeCommitmentWeight,_that.totalKilledWeight,_that.totalAverageKilledWeight,_that.requestLeftOver,_that.hall,_that.date,_that.predicateDate,_that.chickenBreed,_that.period,_that.allowHatching,_that.state,_that.archive,_that.violation,_that.message,_that.registrar,_that.breed,_that.cityNumber,_that.cityName,_that.provinceNumber,_that.provinceName,_that.lastChange,_that.chickenAge,_that.nowAge,_that.latestHatchingChange,_that.violationReport,_that.violationMessage,_that.violationImage,_that.violationReporter,_that.violationReportDate,_that.violationReportEditor,_that.violationReportEditDate,_that.totalLosses,_that.directLosses,_that.directLossesInputer,_that.directLossesDate,_that.directLossesEditor,_that.directLossesLastEditDate,_that.endPeriodLossesInputer,_that.endPeriodLossesDate,_that.endPeriodLossesEditor,_that.endPeriodLossesLastEditDate,_that.breedingUniqueId,_that.licenceNumber,_that.temporaryTrash,_that.temporaryDeleted,_that.firstDateInputArchive,_that.secondDateInputArchive,_that.inputArchiver,_that.outputArchiveDate,_that.outputArchiver,_that.barDifferenceRequestWeight,_that.barDifferenceRequestQuantity,_that.healthCertificate,_that.samasatDischargePercentage,_that.personTypeName,_that.interactTypeName,_that.unionTypeName,_that.certId,_that.increaseQuantity,_that.tenantFullname,_that.tenantNationalCode,_that.tenantMobile,_that.tenantCity,_that.hasTenant,_that.archiveDate,_that.createdBy,_that.modifiedBy);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( int? id,  Poultry? poultry,  ChainCompany? chainCompany,  num? age,  dynamic inspectionLosses,  VetFarm? vetFarm,  ActiveKill? activeKill,  KillingInfo? killingInfo,  FreeGovernmentalInfo? freeGovernmentalInfo,  ReportInfo? reportInfo,  String? key,  String? createDate,  String? modifyDate,  bool? trash,  bool? hasChainCompany,  int? poultryIdForeignKey,  int? poultryHatchingIdKey,  num? quantity,  num? losses,  num? leftOver,  num? killedQuantity,  num? extraKilledQuantity,  num? governmentalKilledQuantity,  num? governmentalQuantity,  num? freeKilledQuantity,  num? freeQuantity,  num? chainKilledQuantity,  num? chainKilledWeight,  num? outProvinceKilledWeight,  num? outProvinceKilledQuantity,  num? exportKilledWeight,  num? exportKilledQuantity,  num? totalCommitment,  String? commitmentType,  num? totalCommitmentQuantity,  num? totalFreeCommitmentQuantity,  num? totalFreeCommitmentWeight,  num? totalKilledWeight,  num? totalAverageKilledWeight,  num? requestLeftOver,  num? hall,  String? date,  String? predicateDate,  String? chickenBreed,  num? period,  String? allowHatching,  String? state,  bool? archive,  bool? violation,  String? message,  Registrar? registrar,  List<BreedItem>? breed,  num? cityNumber,  String? cityName,  num? provinceNumber,  String? provinceName,  LastChange? lastChange,  num? chickenAge,  num? nowAge,  LatestHatchingChange? latestHatchingChange,  String? violationReport,  String? violationMessage,  List<String>? violationImage,  String? violationReporter,  String? violationReportDate,  String? violationReportEditor,  String? violationReportEditDate,  num? totalLosses,  num? directLosses,  String? directLossesInputer,  String? directLossesDate,  String? directLossesEditor,  String? directLossesLastEditDate,  String? endPeriodLossesInputer,  String? endPeriodLossesDate,  String? endPeriodLossesEditor,  String? endPeriodLossesLastEditDate,  String? breedingUniqueId,  String? licenceNumber,  bool? temporaryTrash,  bool? temporaryDeleted,  String? firstDateInputArchive,  String? secondDateInputArchive,  String? inputArchiver,  String? outputArchiveDate,  String? outputArchiver,  num? barDifferenceRequestWeight,  num? barDifferenceRequestQuantity,  String? healthCertificate,  num? samasatDischargePercentage,  String? personTypeName,  String? interactTypeName,  String? unionTypeName,  String? certId,  num? increaseQuantity,  String? tenantFullname,  String? tenantNationalCode,  String? tenantMobile,  String? tenantCity,  bool? hasTenant,  String? archiveDate,  String? createdBy,  String? modifiedBy)?  $default,) {final _that = this;
switch (_that) {
case _HatchingModel() when $default != null:
return $default(_that.id,_that.poultry,_that.chainCompany,_that.age,_that.inspectionLosses,_that.vetFarm,_that.activeKill,_that.killingInfo,_that.freeGovernmentalInfo,_that.reportInfo,_that.key,_that.createDate,_that.modifyDate,_that.trash,_that.hasChainCompany,_that.poultryIdForeignKey,_that.poultryHatchingIdKey,_that.quantity,_that.losses,_that.leftOver,_that.killedQuantity,_that.extraKilledQuantity,_that.governmentalKilledQuantity,_that.governmentalQuantity,_that.freeKilledQuantity,_that.freeQuantity,_that.chainKilledQuantity,_that.chainKilledWeight,_that.outProvinceKilledWeight,_that.outProvinceKilledQuantity,_that.exportKilledWeight,_that.exportKilledQuantity,_that.totalCommitment,_that.commitmentType,_that.totalCommitmentQuantity,_that.totalFreeCommitmentQuantity,_that.totalFreeCommitmentWeight,_that.totalKilledWeight,_that.totalAverageKilledWeight,_that.requestLeftOver,_that.hall,_that.date,_that.predicateDate,_that.chickenBreed,_that.period,_that.allowHatching,_that.state,_that.archive,_that.violation,_that.message,_that.registrar,_that.breed,_that.cityNumber,_that.cityName,_that.provinceNumber,_that.provinceName,_that.lastChange,_that.chickenAge,_that.nowAge,_that.latestHatchingChange,_that.violationReport,_that.violationMessage,_that.violationImage,_that.violationReporter,_that.violationReportDate,_that.violationReportEditor,_that.violationReportEditDate,_that.totalLosses,_that.directLosses,_that.directLossesInputer,_that.directLossesDate,_that.directLossesEditor,_that.directLossesLastEditDate,_that.endPeriodLossesInputer,_that.endPeriodLossesDate,_that.endPeriodLossesEditor,_that.endPeriodLossesLastEditDate,_that.breedingUniqueId,_that.licenceNumber,_that.temporaryTrash,_that.temporaryDeleted,_that.firstDateInputArchive,_that.secondDateInputArchive,_that.inputArchiver,_that.outputArchiveDate,_that.outputArchiver,_that.barDifferenceRequestWeight,_that.barDifferenceRequestQuantity,_that.healthCertificate,_that.samasatDischargePercentage,_that.personTypeName,_that.interactTypeName,_that.unionTypeName,_that.certId,_that.increaseQuantity,_that.tenantFullname,_that.tenantNationalCode,_that.tenantMobile,_that.tenantCity,_that.hasTenant,_that.archiveDate,_that.createdBy,_that.modifiedBy);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _HatchingModel implements HatchingModel {
  const _HatchingModel({this.id, this.poultry, this.chainCompany, this.age, this.inspectionLosses, this.vetFarm, this.activeKill, this.killingInfo, this.freeGovernmentalInfo, this.reportInfo, this.key, this.createDate, this.modifyDate, this.trash, this.hasChainCompany, this.poultryIdForeignKey, this.poultryHatchingIdKey, this.quantity, this.losses, this.leftOver, this.killedQuantity, this.extraKilledQuantity, this.governmentalKilledQuantity, this.governmentalQuantity, this.freeKilledQuantity, this.freeQuantity, this.chainKilledQuantity, this.chainKilledWeight, this.outProvinceKilledWeight, this.outProvinceKilledQuantity, this.exportKilledWeight, this.exportKilledQuantity, this.totalCommitment, this.commitmentType, this.totalCommitmentQuantity, this.totalFreeCommitmentQuantity, this.totalFreeCommitmentWeight, this.totalKilledWeight, this.totalAverageKilledWeight, this.requestLeftOver, this.hall, this.date, this.predicateDate, this.chickenBreed, this.period, this.allowHatching, this.state, this.archive, this.violation, this.message, this.registrar, final  List<BreedItem>? breed, this.cityNumber, this.cityName, this.provinceNumber, this.provinceName, this.lastChange, this.chickenAge, this.nowAge, this.latestHatchingChange, this.violationReport, this.violationMessage, final  List<String>? violationImage, this.violationReporter, this.violationReportDate, this.violationReportEditor, this.violationReportEditDate, this.totalLosses, this.directLosses, this.directLossesInputer, this.directLossesDate, this.directLossesEditor, this.directLossesLastEditDate, this.endPeriodLossesInputer, this.endPeriodLossesDate, this.endPeriodLossesEditor, this.endPeriodLossesLastEditDate, this.breedingUniqueId, this.licenceNumber, this.temporaryTrash, this.temporaryDeleted, this.firstDateInputArchive, this.secondDateInputArchive, this.inputArchiver, this.outputArchiveDate, this.outputArchiver, this.barDifferenceRequestWeight, this.barDifferenceRequestQuantity, this.healthCertificate, this.samasatDischargePercentage, this.personTypeName, this.interactTypeName, this.unionTypeName, this.certId, this.increaseQuantity, this.tenantFullname, this.tenantNationalCode, this.tenantMobile, this.tenantCity, this.hasTenant, this.archiveDate, this.createdBy, this.modifiedBy}): _breed = breed,_violationImage = violationImage;
  factory _HatchingModel.fromJson(Map<String, dynamic> json) => _$HatchingModelFromJson(json);

@override final  int? id;
@override final  Poultry? poultry;
@override final  ChainCompany? chainCompany;
@override final  num? age;
@override final  dynamic inspectionLosses;
@override final  VetFarm? vetFarm;
@override final  ActiveKill? activeKill;
@override final  KillingInfo? killingInfo;
@override final  FreeGovernmentalInfo? freeGovernmentalInfo;
@override final  ReportInfo? reportInfo;
@override final  String? key;
@override final  String? createDate;
@override final  String? modifyDate;
@override final  bool? trash;
@override final  bool? hasChainCompany;
@override final  int? poultryIdForeignKey;
@override final  int? poultryHatchingIdKey;
@override final  num? quantity;
@override final  num? losses;
@override final  num? leftOver;
@override final  num? killedQuantity;
@override final  num? extraKilledQuantity;
@override final  num? governmentalKilledQuantity;
@override final  num? governmentalQuantity;
@override final  num? freeKilledQuantity;
@override final  num? freeQuantity;
@override final  num? chainKilledQuantity;
@override final  num? chainKilledWeight;
@override final  num? outProvinceKilledWeight;
@override final  num? outProvinceKilledQuantity;
@override final  num? exportKilledWeight;
@override final  num? exportKilledQuantity;
@override final  num? totalCommitment;
@override final  String? commitmentType;
@override final  num? totalCommitmentQuantity;
@override final  num? totalFreeCommitmentQuantity;
@override final  num? totalFreeCommitmentWeight;
@override final  num? totalKilledWeight;
@override final  num? totalAverageKilledWeight;
@override final  num? requestLeftOver;
@override final  num? hall;
@override final  String? date;
@override final  String? predicateDate;
@override final  String? chickenBreed;
@override final  num? period;
@override final  String? allowHatching;
@override final  String? state;
@override final  bool? archive;
@override final  bool? violation;
@override final  String? message;
@override final  Registrar? registrar;
 final  List<BreedItem>? _breed;
@override List<BreedItem>? get breed {
  final value = _breed;
  if (value == null) return null;
  if (_breed is EqualUnmodifiableListView) return _breed;
  // ignore: implicit_dynamic_type
  return EqualUnmodifiableListView(value);
}

@override final  num? cityNumber;
@override final  String? cityName;
@override final  num? provinceNumber;
@override final  String? provinceName;
@override final  LastChange? lastChange;
@override final  num? chickenAge;
@override final  num? nowAge;
@override final  LatestHatchingChange? latestHatchingChange;
@override final  String? violationReport;
@override final  String? violationMessage;
 final  List<String>? _violationImage;
@override List<String>? get violationImage {
  final value = _violationImage;
  if (value == null) return null;
  if (_violationImage is EqualUnmodifiableListView) return _violationImage;
  // ignore: implicit_dynamic_type
  return EqualUnmodifiableListView(value);
}

@override final  String? violationReporter;
@override final  String? violationReportDate;
@override final  String? violationReportEditor;
@override final  String? violationReportEditDate;
@override final  num? totalLosses;
@override final  num? directLosses;
@override final  String? directLossesInputer;
@override final  String? directLossesDate;
@override final  String? directLossesEditor;
@override final  String? directLossesLastEditDate;
@override final  String? endPeriodLossesInputer;
@override final  String? endPeriodLossesDate;
@override final  String? endPeriodLossesEditor;
@override final  String? endPeriodLossesLastEditDate;
@override final  String? breedingUniqueId;
@override final  String? licenceNumber;
@override final  bool? temporaryTrash;
@override final  bool? temporaryDeleted;
@override final  String? firstDateInputArchive;
@override final  String? secondDateInputArchive;
@override final  String? inputArchiver;
@override final  String? outputArchiveDate;
@override final  String? outputArchiver;
@override final  num? barDifferenceRequestWeight;
@override final  num? barDifferenceRequestQuantity;
@override final  String? healthCertificate;
@override final  num? samasatDischargePercentage;
@override final  String? personTypeName;
@override final  String? interactTypeName;
@override final  String? unionTypeName;
@override final  String? certId;
@override final  num? increaseQuantity;
@override final  String? tenantFullname;
@override final  String? tenantNationalCode;
@override final  String? tenantMobile;
@override final  String? tenantCity;
@override final  bool? hasTenant;
@override final  String? archiveDate;
@override final  String? createdBy;
@override final  String? modifiedBy;

/// Create a copy of HatchingModel
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$HatchingModelCopyWith<_HatchingModel> get copyWith => __$HatchingModelCopyWithImpl<_HatchingModel>(this, _$identity);

@override
Map<String, dynamic> toJson() {
  return _$HatchingModelToJson(this, );
}

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _HatchingModel&&(identical(other.id, id) || other.id == id)&&(identical(other.poultry, poultry) || other.poultry == poultry)&&(identical(other.chainCompany, chainCompany) || other.chainCompany == chainCompany)&&(identical(other.age, age) || other.age == age)&&const DeepCollectionEquality().equals(other.inspectionLosses, inspectionLosses)&&(identical(other.vetFarm, vetFarm) || other.vetFarm == vetFarm)&&(identical(other.activeKill, activeKill) || other.activeKill == activeKill)&&(identical(other.killingInfo, killingInfo) || other.killingInfo == killingInfo)&&(identical(other.freeGovernmentalInfo, freeGovernmentalInfo) || other.freeGovernmentalInfo == freeGovernmentalInfo)&&(identical(other.reportInfo, reportInfo) || other.reportInfo == reportInfo)&&(identical(other.key, key) || other.key == key)&&(identical(other.createDate, createDate) || other.createDate == createDate)&&(identical(other.modifyDate, modifyDate) || other.modifyDate == modifyDate)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.hasChainCompany, hasChainCompany) || other.hasChainCompany == hasChainCompany)&&(identical(other.poultryIdForeignKey, poultryIdForeignKey) || other.poultryIdForeignKey == poultryIdForeignKey)&&(identical(other.poultryHatchingIdKey, poultryHatchingIdKey) || other.poultryHatchingIdKey == poultryHatchingIdKey)&&(identical(other.quantity, quantity) || other.quantity == quantity)&&(identical(other.losses, losses) || other.losses == losses)&&(identical(other.leftOver, leftOver) || other.leftOver == leftOver)&&(identical(other.killedQuantity, killedQuantity) || other.killedQuantity == killedQuantity)&&(identical(other.extraKilledQuantity, extraKilledQuantity) || other.extraKilledQuantity == extraKilledQuantity)&&(identical(other.governmentalKilledQuantity, governmentalKilledQuantity) || other.governmentalKilledQuantity == governmentalKilledQuantity)&&(identical(other.governmentalQuantity, governmentalQuantity) || other.governmentalQuantity == governmentalQuantity)&&(identical(other.freeKilledQuantity, freeKilledQuantity) || other.freeKilledQuantity == freeKilledQuantity)&&(identical(other.freeQuantity, freeQuantity) || other.freeQuantity == freeQuantity)&&(identical(other.chainKilledQuantity, chainKilledQuantity) || other.chainKilledQuantity == chainKilledQuantity)&&(identical(other.chainKilledWeight, chainKilledWeight) || other.chainKilledWeight == chainKilledWeight)&&(identical(other.outProvinceKilledWeight, outProvinceKilledWeight) || other.outProvinceKilledWeight == outProvinceKilledWeight)&&(identical(other.outProvinceKilledQuantity, outProvinceKilledQuantity) || other.outProvinceKilledQuantity == outProvinceKilledQuantity)&&(identical(other.exportKilledWeight, exportKilledWeight) || other.exportKilledWeight == exportKilledWeight)&&(identical(other.exportKilledQuantity, exportKilledQuantity) || other.exportKilledQuantity == exportKilledQuantity)&&(identical(other.totalCommitment, totalCommitment) || other.totalCommitment == totalCommitment)&&(identical(other.commitmentType, commitmentType) || other.commitmentType == commitmentType)&&(identical(other.totalCommitmentQuantity, totalCommitmentQuantity) || other.totalCommitmentQuantity == totalCommitmentQuantity)&&(identical(other.totalFreeCommitmentQuantity, totalFreeCommitmentQuantity) || other.totalFreeCommitmentQuantity == totalFreeCommitmentQuantity)&&(identical(other.totalFreeCommitmentWeight, totalFreeCommitmentWeight) || other.totalFreeCommitmentWeight == totalFreeCommitmentWeight)&&(identical(other.totalKilledWeight, totalKilledWeight) || other.totalKilledWeight == totalKilledWeight)&&(identical(other.totalAverageKilledWeight, totalAverageKilledWeight) || other.totalAverageKilledWeight == totalAverageKilledWeight)&&(identical(other.requestLeftOver, requestLeftOver) || other.requestLeftOver == requestLeftOver)&&(identical(other.hall, hall) || other.hall == hall)&&(identical(other.date, date) || other.date == date)&&(identical(other.predicateDate, predicateDate) || other.predicateDate == predicateDate)&&(identical(other.chickenBreed, chickenBreed) || other.chickenBreed == chickenBreed)&&(identical(other.period, period) || other.period == period)&&(identical(other.allowHatching, allowHatching) || other.allowHatching == allowHatching)&&(identical(other.state, state) || other.state == state)&&(identical(other.archive, archive) || other.archive == archive)&&(identical(other.violation, violation) || other.violation == violation)&&(identical(other.message, message) || other.message == message)&&(identical(other.registrar, registrar) || other.registrar == registrar)&&const DeepCollectionEquality().equals(other._breed, _breed)&&(identical(other.cityNumber, cityNumber) || other.cityNumber == cityNumber)&&(identical(other.cityName, cityName) || other.cityName == cityName)&&(identical(other.provinceNumber, provinceNumber) || other.provinceNumber == provinceNumber)&&(identical(other.provinceName, provinceName) || other.provinceName == provinceName)&&(identical(other.lastChange, lastChange) || other.lastChange == lastChange)&&(identical(other.chickenAge, chickenAge) || other.chickenAge == chickenAge)&&(identical(other.nowAge, nowAge) || other.nowAge == nowAge)&&(identical(other.latestHatchingChange, latestHatchingChange) || other.latestHatchingChange == latestHatchingChange)&&(identical(other.violationReport, violationReport) || other.violationReport == violationReport)&&(identical(other.violationMessage, violationMessage) || other.violationMessage == violationMessage)&&const DeepCollectionEquality().equals(other._violationImage, _violationImage)&&(identical(other.violationReporter, violationReporter) || other.violationReporter == violationReporter)&&(identical(other.violationReportDate, violationReportDate) || other.violationReportDate == violationReportDate)&&(identical(other.violationReportEditor, violationReportEditor) || other.violationReportEditor == violationReportEditor)&&(identical(other.violationReportEditDate, violationReportEditDate) || other.violationReportEditDate == violationReportEditDate)&&(identical(other.totalLosses, totalLosses) || other.totalLosses == totalLosses)&&(identical(other.directLosses, directLosses) || other.directLosses == directLosses)&&(identical(other.directLossesInputer, directLossesInputer) || other.directLossesInputer == directLossesInputer)&&(identical(other.directLossesDate, directLossesDate) || other.directLossesDate == directLossesDate)&&(identical(other.directLossesEditor, directLossesEditor) || other.directLossesEditor == directLossesEditor)&&(identical(other.directLossesLastEditDate, directLossesLastEditDate) || other.directLossesLastEditDate == directLossesLastEditDate)&&(identical(other.endPeriodLossesInputer, endPeriodLossesInputer) || other.endPeriodLossesInputer == endPeriodLossesInputer)&&(identical(other.endPeriodLossesDate, endPeriodLossesDate) || other.endPeriodLossesDate == endPeriodLossesDate)&&(identical(other.endPeriodLossesEditor, endPeriodLossesEditor) || other.endPeriodLossesEditor == endPeriodLossesEditor)&&(identical(other.endPeriodLossesLastEditDate, endPeriodLossesLastEditDate) || other.endPeriodLossesLastEditDate == endPeriodLossesLastEditDate)&&(identical(other.breedingUniqueId, breedingUniqueId) || other.breedingUniqueId == breedingUniqueId)&&(identical(other.licenceNumber, licenceNumber) || other.licenceNumber == licenceNumber)&&(identical(other.temporaryTrash, temporaryTrash) || other.temporaryTrash == temporaryTrash)&&(identical(other.temporaryDeleted, temporaryDeleted) || other.temporaryDeleted == temporaryDeleted)&&(identical(other.firstDateInputArchive, firstDateInputArchive) || other.firstDateInputArchive == firstDateInputArchive)&&(identical(other.secondDateInputArchive, secondDateInputArchive) || other.secondDateInputArchive == secondDateInputArchive)&&(identical(other.inputArchiver, inputArchiver) || other.inputArchiver == inputArchiver)&&(identical(other.outputArchiveDate, outputArchiveDate) || other.outputArchiveDate == outputArchiveDate)&&(identical(other.outputArchiver, outputArchiver) || other.outputArchiver == outputArchiver)&&(identical(other.barDifferenceRequestWeight, barDifferenceRequestWeight) || other.barDifferenceRequestWeight == barDifferenceRequestWeight)&&(identical(other.barDifferenceRequestQuantity, barDifferenceRequestQuantity) || other.barDifferenceRequestQuantity == barDifferenceRequestQuantity)&&(identical(other.healthCertificate, healthCertificate) || other.healthCertificate == healthCertificate)&&(identical(other.samasatDischargePercentage, samasatDischargePercentage) || other.samasatDischargePercentage == samasatDischargePercentage)&&(identical(other.personTypeName, personTypeName) || other.personTypeName == personTypeName)&&(identical(other.interactTypeName, interactTypeName) || other.interactTypeName == interactTypeName)&&(identical(other.unionTypeName, unionTypeName) || other.unionTypeName == unionTypeName)&&(identical(other.certId, certId) || other.certId == certId)&&(identical(other.increaseQuantity, increaseQuantity) || other.increaseQuantity == increaseQuantity)&&(identical(other.tenantFullname, tenantFullname) || other.tenantFullname == tenantFullname)&&(identical(other.tenantNationalCode, tenantNationalCode) || other.tenantNationalCode == tenantNationalCode)&&(identical(other.tenantMobile, tenantMobile) || other.tenantMobile == tenantMobile)&&(identical(other.tenantCity, tenantCity) || other.tenantCity == tenantCity)&&(identical(other.hasTenant, hasTenant) || other.hasTenant == hasTenant)&&(identical(other.archiveDate, archiveDate) || other.archiveDate == archiveDate)&&(identical(other.createdBy, createdBy) || other.createdBy == createdBy)&&(identical(other.modifiedBy, modifiedBy) || other.modifiedBy == modifiedBy));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hashAll([runtimeType,id,poultry,chainCompany,age,const DeepCollectionEquality().hash(inspectionLosses),vetFarm,activeKill,killingInfo,freeGovernmentalInfo,reportInfo,key,createDate,modifyDate,trash,hasChainCompany,poultryIdForeignKey,poultryHatchingIdKey,quantity,losses,leftOver,killedQuantity,extraKilledQuantity,governmentalKilledQuantity,governmentalQuantity,freeKilledQuantity,freeQuantity,chainKilledQuantity,chainKilledWeight,outProvinceKilledWeight,outProvinceKilledQuantity,exportKilledWeight,exportKilledQuantity,totalCommitment,commitmentType,totalCommitmentQuantity,totalFreeCommitmentQuantity,totalFreeCommitmentWeight,totalKilledWeight,totalAverageKilledWeight,requestLeftOver,hall,date,predicateDate,chickenBreed,period,allowHatching,state,archive,violation,message,registrar,const DeepCollectionEquality().hash(_breed),cityNumber,cityName,provinceNumber,provinceName,lastChange,chickenAge,nowAge,latestHatchingChange,violationReport,violationMessage,const DeepCollectionEquality().hash(_violationImage),violationReporter,violationReportDate,violationReportEditor,violationReportEditDate,totalLosses,directLosses,directLossesInputer,directLossesDate,directLossesEditor,directLossesLastEditDate,endPeriodLossesInputer,endPeriodLossesDate,endPeriodLossesEditor,endPeriodLossesLastEditDate,breedingUniqueId,licenceNumber,temporaryTrash,temporaryDeleted,firstDateInputArchive,secondDateInputArchive,inputArchiver,outputArchiveDate,outputArchiver,barDifferenceRequestWeight,barDifferenceRequestQuantity,healthCertificate,samasatDischargePercentage,personTypeName,interactTypeName,unionTypeName,certId,increaseQuantity,tenantFullname,tenantNationalCode,tenantMobile,tenantCity,hasTenant,archiveDate,createdBy,modifiedBy]);

@override
String toString() {
  return 'HatchingModel(id: $id, poultry: $poultry, chainCompany: $chainCompany, age: $age, inspectionLosses: $inspectionLosses, vetFarm: $vetFarm, activeKill: $activeKill, killingInfo: $killingInfo, freeGovernmentalInfo: $freeGovernmentalInfo, reportInfo: $reportInfo, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, hasChainCompany: $hasChainCompany, poultryIdForeignKey: $poultryIdForeignKey, poultryHatchingIdKey: $poultryHatchingIdKey, quantity: $quantity, losses: $losses, leftOver: $leftOver, killedQuantity: $killedQuantity, extraKilledQuantity: $extraKilledQuantity, governmentalKilledQuantity: $governmentalKilledQuantity, governmentalQuantity: $governmentalQuantity, freeKilledQuantity: $freeKilledQuantity, freeQuantity: $freeQuantity, chainKilledQuantity: $chainKilledQuantity, chainKilledWeight: $chainKilledWeight, outProvinceKilledWeight: $outProvinceKilledWeight, outProvinceKilledQuantity: $outProvinceKilledQuantity, exportKilledWeight: $exportKilledWeight, exportKilledQuantity: $exportKilledQuantity, totalCommitment: $totalCommitment, commitmentType: $commitmentType, totalCommitmentQuantity: $totalCommitmentQuantity, totalFreeCommitmentQuantity: $totalFreeCommitmentQuantity, totalFreeCommitmentWeight: $totalFreeCommitmentWeight, totalKilledWeight: $totalKilledWeight, totalAverageKilledWeight: $totalAverageKilledWeight, requestLeftOver: $requestLeftOver, hall: $hall, date: $date, predicateDate: $predicateDate, chickenBreed: $chickenBreed, period: $period, allowHatching: $allowHatching, state: $state, archive: $archive, violation: $violation, message: $message, registrar: $registrar, breed: $breed, cityNumber: $cityNumber, cityName: $cityName, provinceNumber: $provinceNumber, provinceName: $provinceName, lastChange: $lastChange, chickenAge: $chickenAge, nowAge: $nowAge, latestHatchingChange: $latestHatchingChange, violationReport: $violationReport, violationMessage: $violationMessage, violationImage: $violationImage, violationReporter: $violationReporter, violationReportDate: $violationReportDate, violationReportEditor: $violationReportEditor, violationReportEditDate: $violationReportEditDate, totalLosses: $totalLosses, directLosses: $directLosses, directLossesInputer: $directLossesInputer, directLossesDate: $directLossesDate, directLossesEditor: $directLossesEditor, directLossesLastEditDate: $directLossesLastEditDate, endPeriodLossesInputer: $endPeriodLossesInputer, endPeriodLossesDate: $endPeriodLossesDate, endPeriodLossesEditor: $endPeriodLossesEditor, endPeriodLossesLastEditDate: $endPeriodLossesLastEditDate, breedingUniqueId: $breedingUniqueId, licenceNumber: $licenceNumber, temporaryTrash: $temporaryTrash, temporaryDeleted: $temporaryDeleted, firstDateInputArchive: $firstDateInputArchive, secondDateInputArchive: $secondDateInputArchive, inputArchiver: $inputArchiver, outputArchiveDate: $outputArchiveDate, outputArchiver: $outputArchiver, barDifferenceRequestWeight: $barDifferenceRequestWeight, barDifferenceRequestQuantity: $barDifferenceRequestQuantity, healthCertificate: $healthCertificate, samasatDischargePercentage: $samasatDischargePercentage, personTypeName: $personTypeName, interactTypeName: $interactTypeName, unionTypeName: $unionTypeName, certId: $certId, increaseQuantity: $increaseQuantity, tenantFullname: $tenantFullname, tenantNationalCode: $tenantNationalCode, tenantMobile: $tenantMobile, tenantCity: $tenantCity, hasTenant: $hasTenant, archiveDate: $archiveDate, createdBy: $createdBy, modifiedBy: $modifiedBy)';
}


}

/// @nodoc
abstract mixin class _$HatchingModelCopyWith<$Res> implements $HatchingModelCopyWith<$Res> {
  factory _$HatchingModelCopyWith(_HatchingModel value, $Res Function(_HatchingModel) _then) = __$HatchingModelCopyWithImpl;
@override @useResult
$Res call({
 int? id, Poultry? poultry, ChainCompany? chainCompany, num? age, dynamic inspectionLosses, VetFarm? vetFarm, ActiveKill? activeKill, KillingInfo? killingInfo, FreeGovernmentalInfo? freeGovernmentalInfo, ReportInfo? reportInfo, String? key, String? createDate, String? modifyDate, bool? trash, bool? hasChainCompany, int? poultryIdForeignKey, int? poultryHatchingIdKey, num? quantity, num? losses, num? leftOver, num? killedQuantity, num? extraKilledQuantity, num? governmentalKilledQuantity, num? governmentalQuantity, num? freeKilledQuantity, num? freeQuantity, num? chainKilledQuantity, num? chainKilledWeight, num? outProvinceKilledWeight, num? outProvinceKilledQuantity, num? exportKilledWeight, num? exportKilledQuantity, num? totalCommitment, String? commitmentType, num? totalCommitmentQuantity, num? totalFreeCommitmentQuantity, num? totalFreeCommitmentWeight, num? totalKilledWeight, num? totalAverageKilledWeight, num? requestLeftOver, num? hall, String? date, String? predicateDate, String? chickenBreed, num? period, String? allowHatching, String? state, bool? archive, bool? violation, String? message, Registrar? registrar, List<BreedItem>? breed, num? cityNumber, String? cityName, num? provinceNumber, String? provinceName, LastChange? lastChange, num? chickenAge, num? nowAge, LatestHatchingChange? latestHatchingChange, String? violationReport, String? violationMessage, List<String>? violationImage, String? violationReporter, String? violationReportDate, String? violationReportEditor, String? violationReportEditDate, num? totalLosses, num? directLosses, String? directLossesInputer, String? directLossesDate, String? directLossesEditor, String? directLossesLastEditDate, String? endPeriodLossesInputer, String? endPeriodLossesDate, String? endPeriodLossesEditor, String? endPeriodLossesLastEditDate, String? breedingUniqueId, String? licenceNumber, bool? temporaryTrash, bool? temporaryDeleted, String? firstDateInputArchive, String? secondDateInputArchive, String? inputArchiver, String? outputArchiveDate, String? outputArchiver, num? barDifferenceRequestWeight, num? barDifferenceRequestQuantity, String? healthCertificate, num? samasatDischargePercentage, String? personTypeName, String? interactTypeName, String? unionTypeName, String? certId, num? increaseQuantity, String? tenantFullname, String? tenantNationalCode, String? tenantMobile, String? tenantCity, bool? hasTenant, String? archiveDate, String? createdBy, String? modifiedBy
});


@override $PoultryCopyWith<$Res>? get poultry;@override $ChainCompanyCopyWith<$Res>? get chainCompany;@override $VetFarmCopyWith<$Res>? get vetFarm;@override $ActiveKillCopyWith<$Res>? get activeKill;@override $KillingInfoCopyWith<$Res>? get killingInfo;@override $FreeGovernmentalInfoCopyWith<$Res>? get freeGovernmentalInfo;@override $ReportInfoCopyWith<$Res>? get reportInfo;@override $RegistrarCopyWith<$Res>? get registrar;@override $LastChangeCopyWith<$Res>? get lastChange;@override $LatestHatchingChangeCopyWith<$Res>? get latestHatchingChange;

}
/// @nodoc
class __$HatchingModelCopyWithImpl<$Res>
    implements _$HatchingModelCopyWith<$Res> {
  __$HatchingModelCopyWithImpl(this._self, this._then);

  final _HatchingModel _self;
  final $Res Function(_HatchingModel) _then;

/// Create a copy of HatchingModel
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? poultry = freezed,Object? chainCompany = freezed,Object? age = freezed,Object? inspectionLosses = freezed,Object? vetFarm = freezed,Object? activeKill = freezed,Object? killingInfo = freezed,Object? freeGovernmentalInfo = freezed,Object? reportInfo = freezed,Object? key = freezed,Object? createDate = freezed,Object? modifyDate = freezed,Object? trash = freezed,Object? hasChainCompany = freezed,Object? poultryIdForeignKey = freezed,Object? poultryHatchingIdKey = freezed,Object? quantity = freezed,Object? losses = freezed,Object? leftOver = freezed,Object? killedQuantity = freezed,Object? extraKilledQuantity = freezed,Object? governmentalKilledQuantity = freezed,Object? governmentalQuantity = freezed,Object? freeKilledQuantity = freezed,Object? freeQuantity = freezed,Object? chainKilledQuantity = freezed,Object? chainKilledWeight = freezed,Object? outProvinceKilledWeight = freezed,Object? outProvinceKilledQuantity = freezed,Object? exportKilledWeight = freezed,Object? exportKilledQuantity = freezed,Object? totalCommitment = freezed,Object? commitmentType = freezed,Object? totalCommitmentQuantity = freezed,Object? totalFreeCommitmentQuantity = freezed,Object? totalFreeCommitmentWeight = freezed,Object? totalKilledWeight = freezed,Object? totalAverageKilledWeight = freezed,Object? requestLeftOver = freezed,Object? hall = freezed,Object? date = freezed,Object? predicateDate = freezed,Object? chickenBreed = freezed,Object? period = freezed,Object? allowHatching = freezed,Object? state = freezed,Object? archive = freezed,Object? violation = freezed,Object? message = freezed,Object? registrar = freezed,Object? breed = freezed,Object? cityNumber = freezed,Object? cityName = freezed,Object? provinceNumber = freezed,Object? provinceName = freezed,Object? lastChange = freezed,Object? chickenAge = freezed,Object? nowAge = freezed,Object? latestHatchingChange = freezed,Object? violationReport = freezed,Object? violationMessage = freezed,Object? violationImage = freezed,Object? violationReporter = freezed,Object? violationReportDate = freezed,Object? violationReportEditor = freezed,Object? violationReportEditDate = freezed,Object? totalLosses = freezed,Object? directLosses = freezed,Object? directLossesInputer = freezed,Object? directLossesDate = freezed,Object? directLossesEditor = freezed,Object? directLossesLastEditDate = freezed,Object? endPeriodLossesInputer = freezed,Object? endPeriodLossesDate = freezed,Object? endPeriodLossesEditor = freezed,Object? endPeriodLossesLastEditDate = freezed,Object? breedingUniqueId = freezed,Object? licenceNumber = freezed,Object? temporaryTrash = freezed,Object? temporaryDeleted = freezed,Object? firstDateInputArchive = freezed,Object? secondDateInputArchive = freezed,Object? inputArchiver = freezed,Object? outputArchiveDate = freezed,Object? outputArchiver = freezed,Object? barDifferenceRequestWeight = freezed,Object? barDifferenceRequestQuantity = freezed,Object? healthCertificate = freezed,Object? samasatDischargePercentage = freezed,Object? personTypeName = freezed,Object? interactTypeName = freezed,Object? unionTypeName = freezed,Object? certId = freezed,Object? increaseQuantity = freezed,Object? tenantFullname = freezed,Object? tenantNationalCode = freezed,Object? tenantMobile = freezed,Object? tenantCity = freezed,Object? hasTenant = freezed,Object? archiveDate = freezed,Object? createdBy = freezed,Object? modifiedBy = freezed,}) {
  return _then(_HatchingModel(
id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
as int?,poultry: freezed == poultry ? _self.poultry : poultry // ignore: cast_nullable_to_non_nullable
as Poultry?,chainCompany: freezed == chainCompany ? _self.chainCompany : chainCompany // ignore: cast_nullable_to_non_nullable
as ChainCompany?,age: freezed == age ? _self.age : age // ignore: cast_nullable_to_non_nullable
as num?,inspectionLosses: freezed == inspectionLosses ? _self.inspectionLosses : inspectionLosses // ignore: cast_nullable_to_non_nullable
as dynamic,vetFarm: freezed == vetFarm ? _self.vetFarm : vetFarm // ignore: cast_nullable_to_non_nullable
as VetFarm?,activeKill: freezed == activeKill ? _self.activeKill : activeKill // ignore: cast_nullable_to_non_nullable
as ActiveKill?,killingInfo: freezed == killingInfo ? _self.killingInfo : killingInfo // ignore: cast_nullable_to_non_nullable
as KillingInfo?,freeGovernmentalInfo: freezed == freeGovernmentalInfo ? _self.freeGovernmentalInfo : freeGovernmentalInfo // ignore: cast_nullable_to_non_nullable
as FreeGovernmentalInfo?,reportInfo: freezed == reportInfo ? _self.reportInfo : reportInfo // ignore: cast_nullable_to_non_nullable
as ReportInfo?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable
as String?,createDate: freezed == createDate ? _self.createDate : createDate // ignore: cast_nullable_to_non_nullable
as String?,modifyDate: freezed == modifyDate ? _self.modifyDate : modifyDate // ignore: cast_nullable_to_non_nullable
as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable
as bool?,hasChainCompany: freezed == hasChainCompany ? _self.hasChainCompany : hasChainCompany // ignore: cast_nullable_to_non_nullable
as bool?,poultryIdForeignKey: freezed == poultryIdForeignKey ? _self.poultryIdForeignKey : poultryIdForeignKey // ignore: cast_nullable_to_non_nullable
as int?,poultryHatchingIdKey: freezed == poultryHatchingIdKey ? _self.poultryHatchingIdKey : poultryHatchingIdKey // ignore: cast_nullable_to_non_nullable
as int?,quantity: freezed == quantity ? _self.quantity : quantity // ignore: cast_nullable_to_non_nullable
as num?,losses: freezed == losses ? _self.losses : losses // ignore: cast_nullable_to_non_nullable
as num?,leftOver: freezed == leftOver ? _self.leftOver : leftOver // ignore: cast_nullable_to_non_nullable
as num?,killedQuantity: freezed == killedQuantity ? _self.killedQuantity : killedQuantity // ignore: cast_nullable_to_non_nullable
as num?,extraKilledQuantity: freezed == extraKilledQuantity ? _self.extraKilledQuantity : extraKilledQuantity // ignore: cast_nullable_to_non_nullable
as num?,governmentalKilledQuantity: freezed == governmentalKilledQuantity ? _self.governmentalKilledQuantity : governmentalKilledQuantity // ignore: cast_nullable_to_non_nullable
as num?,governmentalQuantity: freezed == governmentalQuantity ? _self.governmentalQuantity : governmentalQuantity // ignore: cast_nullable_to_non_nullable
as num?,freeKilledQuantity: freezed == freeKilledQuantity ? _self.freeKilledQuantity : freeKilledQuantity // ignore: cast_nullable_to_non_nullable
as num?,freeQuantity: freezed == freeQuantity ? _self.freeQuantity : freeQuantity // ignore: cast_nullable_to_non_nullable
as num?,chainKilledQuantity: freezed == chainKilledQuantity ? _self.chainKilledQuantity : chainKilledQuantity // ignore: cast_nullable_to_non_nullable
as num?,chainKilledWeight: freezed == chainKilledWeight ? _self.chainKilledWeight : chainKilledWeight // ignore: cast_nullable_to_non_nullable
as num?,outProvinceKilledWeight: freezed == outProvinceKilledWeight ? _self.outProvinceKilledWeight : outProvinceKilledWeight // ignore: cast_nullable_to_non_nullable
as num?,outProvinceKilledQuantity: freezed == outProvinceKilledQuantity ? _self.outProvinceKilledQuantity : outProvinceKilledQuantity // ignore: cast_nullable_to_non_nullable
as num?,exportKilledWeight: freezed == exportKilledWeight ? _self.exportKilledWeight : exportKilledWeight // ignore: cast_nullable_to_non_nullable
as num?,exportKilledQuantity: freezed == exportKilledQuantity ? _self.exportKilledQuantity : exportKilledQuantity // ignore: cast_nullable_to_non_nullable
as num?,totalCommitment: freezed == totalCommitment ? _self.totalCommitment : totalCommitment // ignore: cast_nullable_to_non_nullable
as num?,commitmentType: freezed == commitmentType ? _self.commitmentType : commitmentType // ignore: cast_nullable_to_non_nullable
as String?,totalCommitmentQuantity: freezed == totalCommitmentQuantity ? _self.totalCommitmentQuantity : totalCommitmentQuantity // ignore: cast_nullable_to_non_nullable
as num?,totalFreeCommitmentQuantity: freezed == totalFreeCommitmentQuantity ? _self.totalFreeCommitmentQuantity : totalFreeCommitmentQuantity // ignore: cast_nullable_to_non_nullable
as num?,totalFreeCommitmentWeight: freezed == totalFreeCommitmentWeight ? _self.totalFreeCommitmentWeight : totalFreeCommitmentWeight // ignore: cast_nullable_to_non_nullable
as num?,totalKilledWeight: freezed == totalKilledWeight ? _self.totalKilledWeight : totalKilledWeight // ignore: cast_nullable_to_non_nullable
as num?,totalAverageKilledWeight: freezed == totalAverageKilledWeight ? _self.totalAverageKilledWeight : totalAverageKilledWeight // ignore: cast_nullable_to_non_nullable
as num?,requestLeftOver: freezed == requestLeftOver ? _self.requestLeftOver : requestLeftOver // ignore: cast_nullable_to_non_nullable
as num?,hall: freezed == hall ? _self.hall : hall // ignore: cast_nullable_to_non_nullable
as num?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable
as String?,predicateDate: freezed == predicateDate ? _self.predicateDate : predicateDate // ignore: cast_nullable_to_non_nullable
as String?,chickenBreed: freezed == chickenBreed ? _self.chickenBreed : chickenBreed // ignore: cast_nullable_to_non_nullable
as String?,period: freezed == period ? _self.period : period // ignore: cast_nullable_to_non_nullable
as num?,allowHatching: freezed == allowHatching ? _self.allowHatching : allowHatching // ignore: cast_nullable_to_non_nullable
as String?,state: freezed == state ? _self.state : state // ignore: cast_nullable_to_non_nullable
as String?,archive: freezed == archive ? _self.archive : archive // ignore: cast_nullable_to_non_nullable
as bool?,violation: freezed == violation ? _self.violation : violation // ignore: cast_nullable_to_non_nullable
as bool?,message: freezed == message ? _self.message : message // ignore: cast_nullable_to_non_nullable
as String?,registrar: freezed == registrar ? _self.registrar : registrar // ignore: cast_nullable_to_non_nullable
as Registrar?,breed: freezed == breed ? _self._breed : breed // ignore: cast_nullable_to_non_nullable
as List<BreedItem>?,cityNumber: freezed == cityNumber ? _self.cityNumber : cityNumber // ignore: cast_nullable_to_non_nullable
as num?,cityName: freezed == cityName ? _self.cityName : cityName // ignore: cast_nullable_to_non_nullable
as String?,provinceNumber: freezed == provinceNumber ? _self.provinceNumber : provinceNumber // ignore: cast_nullable_to_non_nullable
as num?,provinceName: freezed == provinceName ? _self.provinceName : provinceName // ignore: cast_nullable_to_non_nullable
as String?,lastChange: freezed == lastChange ? _self.lastChange : lastChange // ignore: cast_nullable_to_non_nullable
as LastChange?,chickenAge: freezed == chickenAge ? _self.chickenAge : chickenAge // ignore: cast_nullable_to_non_nullable
as num?,nowAge: freezed == nowAge ? _self.nowAge : nowAge // ignore: cast_nullable_to_non_nullable
as num?,latestHatchingChange: freezed == latestHatchingChange ? _self.latestHatchingChange : latestHatchingChange // ignore: cast_nullable_to_non_nullable
as LatestHatchingChange?,violationReport: freezed == violationReport ? _self.violationReport : violationReport // ignore: cast_nullable_to_non_nullable
as String?,violationMessage: freezed == violationMessage ? _self.violationMessage : violationMessage // ignore: cast_nullable_to_non_nullable
as String?,violationImage: freezed == violationImage ? _self._violationImage : violationImage // ignore: cast_nullable_to_non_nullable
as List<String>?,violationReporter: freezed == violationReporter ? _self.violationReporter : violationReporter // ignore: cast_nullable_to_non_nullable
as String?,violationReportDate: freezed == violationReportDate ? _self.violationReportDate : violationReportDate // ignore: cast_nullable_to_non_nullable
as String?,violationReportEditor: freezed == violationReportEditor ? _self.violationReportEditor : violationReportEditor // ignore: cast_nullable_to_non_nullable
as String?,violationReportEditDate: freezed == violationReportEditDate ? _self.violationReportEditDate : violationReportEditDate // ignore: cast_nullable_to_non_nullable
as String?,totalLosses: freezed == totalLosses ? _self.totalLosses : totalLosses // ignore: cast_nullable_to_non_nullable
as num?,directLosses: freezed == directLosses ? _self.directLosses : directLosses // ignore: cast_nullable_to_non_nullable
as num?,directLossesInputer: freezed == directLossesInputer ? _self.directLossesInputer : directLossesInputer // ignore: cast_nullable_to_non_nullable
as String?,directLossesDate: freezed == directLossesDate ? _self.directLossesDate : directLossesDate // ignore: cast_nullable_to_non_nullable
as String?,directLossesEditor: freezed == directLossesEditor ? _self.directLossesEditor : directLossesEditor // ignore: cast_nullable_to_non_nullable
as String?,directLossesLastEditDate: freezed == directLossesLastEditDate ? _self.directLossesLastEditDate : directLossesLastEditDate // ignore: cast_nullable_to_non_nullable
as String?,endPeriodLossesInputer: freezed == endPeriodLossesInputer ? _self.endPeriodLossesInputer : endPeriodLossesInputer // ignore: cast_nullable_to_non_nullable
as String?,endPeriodLossesDate: freezed == endPeriodLossesDate ? _self.endPeriodLossesDate : endPeriodLossesDate // ignore: cast_nullable_to_non_nullable
as String?,endPeriodLossesEditor: freezed == endPeriodLossesEditor ? _self.endPeriodLossesEditor : endPeriodLossesEditor // ignore: cast_nullable_to_non_nullable
as String?,endPeriodLossesLastEditDate: freezed == endPeriodLossesLastEditDate ? _self.endPeriodLossesLastEditDate : endPeriodLossesLastEditDate // ignore: cast_nullable_to_non_nullable
as String?,breedingUniqueId: freezed == breedingUniqueId ? _self.breedingUniqueId : breedingUniqueId // ignore: cast_nullable_to_non_nullable
as String?,licenceNumber: freezed == licenceNumber ? _self.licenceNumber : licenceNumber // ignore: cast_nullable_to_non_nullable
as String?,temporaryTrash: freezed == temporaryTrash ? _self.temporaryTrash : temporaryTrash // ignore: cast_nullable_to_non_nullable
as bool?,temporaryDeleted: freezed == temporaryDeleted ? _self.temporaryDeleted : temporaryDeleted // ignore: cast_nullable_to_non_nullable
as bool?,firstDateInputArchive: freezed == firstDateInputArchive ? _self.firstDateInputArchive : firstDateInputArchive // ignore: cast_nullable_to_non_nullable
as String?,secondDateInputArchive: freezed == secondDateInputArchive ? _self.secondDateInputArchive : secondDateInputArchive // ignore: cast_nullable_to_non_nullable
as String?,inputArchiver: freezed == inputArchiver ? _self.inputArchiver : inputArchiver // ignore: cast_nullable_to_non_nullable
as String?,outputArchiveDate: freezed == outputArchiveDate ? _self.outputArchiveDate : outputArchiveDate // ignore: cast_nullable_to_non_nullable
as String?,outputArchiver: freezed == outputArchiver ? _self.outputArchiver : outputArchiver // ignore: cast_nullable_to_non_nullable
as String?,barDifferenceRequestWeight: freezed == barDifferenceRequestWeight ? _self.barDifferenceRequestWeight : barDifferenceRequestWeight // ignore: cast_nullable_to_non_nullable
as num?,barDifferenceRequestQuantity: freezed == barDifferenceRequestQuantity ? _self.barDifferenceRequestQuantity : barDifferenceRequestQuantity // ignore: cast_nullable_to_non_nullable
as num?,healthCertificate: freezed == healthCertificate ? _self.healthCertificate : healthCertificate // ignore: cast_nullable_to_non_nullable
as String?,samasatDischargePercentage: freezed == samasatDischargePercentage ? _self.samasatDischargePercentage : samasatDischargePercentage // ignore: cast_nullable_to_non_nullable
as num?,personTypeName: freezed == personTypeName ? _self.personTypeName : personTypeName // ignore: cast_nullable_to_non_nullable
as String?,interactTypeName: freezed == interactTypeName ? _self.interactTypeName : interactTypeName // ignore: cast_nullable_to_non_nullable
as String?,unionTypeName: freezed == unionTypeName ? _self.unionTypeName : unionTypeName // ignore: cast_nullable_to_non_nullable
as String?,certId: freezed == certId ? _self.certId : certId // ignore: cast_nullable_to_non_nullable
as String?,increaseQuantity: freezed == increaseQuantity ? _self.increaseQuantity : increaseQuantity // ignore: cast_nullable_to_non_nullable
as num?,tenantFullname: freezed == tenantFullname ? _self.tenantFullname : tenantFullname // ignore: cast_nullable_to_non_nullable
as String?,tenantNationalCode: freezed == tenantNationalCode ? _self.tenantNationalCode : tenantNationalCode // ignore: cast_nullable_to_non_nullable
as String?,tenantMobile: freezed == tenantMobile ? _self.tenantMobile : tenantMobile // ignore: cast_nullable_to_non_nullable
as String?,tenantCity: freezed == tenantCity ? _self.tenantCity : tenantCity // ignore: cast_nullable_to_non_nullable
as String?,hasTenant: freezed == hasTenant ? _self.hasTenant : hasTenant // ignore: cast_nullable_to_non_nullable
as bool?,archiveDate: freezed == archiveDate ? _self.archiveDate : archiveDate // ignore: cast_nullable_to_non_nullable
as String?,createdBy: freezed == createdBy ? _self.createdBy : createdBy // ignore: cast_nullable_to_non_nullable
as String?,modifiedBy: freezed == modifiedBy ? _self.modifiedBy : modifiedBy // ignore: cast_nullable_to_non_nullable
as String?,
  ));
}

/// Create a copy of HatchingModel
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$PoultryCopyWith<$Res>? get poultry {
    if (_self.poultry == null) {
    return null;
  }

  return $PoultryCopyWith<$Res>(_self.poultry!, (value) {
    return _then(_self.copyWith(poultry: value));
  });
}/// Create a copy of HatchingModel
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$ChainCompanyCopyWith<$Res>? get chainCompany {
    if (_self.chainCompany == null) {
    return null;
  }

  return $ChainCompanyCopyWith<$Res>(_self.chainCompany!, (value) {
    return _then(_self.copyWith(chainCompany: value));
  });
}/// Create a copy of HatchingModel
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$VetFarmCopyWith<$Res>? get vetFarm {
    if (_self.vetFarm == null) {
    return null;
  }

  return $VetFarmCopyWith<$Res>(_self.vetFarm!, (value) {
    return _then(_self.copyWith(vetFarm: value));
  });
}/// Create a copy of HatchingModel
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$ActiveKillCopyWith<$Res>? get activeKill {
    if (_self.activeKill == null) {
    return null;
  }

  return $ActiveKillCopyWith<$Res>(_self.activeKill!, (value) {
    return _then(_self.copyWith(activeKill: value));
  });
}/// Create a copy of HatchingModel
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$KillingInfoCopyWith<$Res>? get killingInfo {
    if (_self.killingInfo == null) {
    return null;
  }

  return $KillingInfoCopyWith<$Res>(_self.killingInfo!, (value) {
    return _then(_self.copyWith(killingInfo: value));
  });
}/// Create a copy of HatchingModel
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$FreeGovernmentalInfoCopyWith<$Res>? get freeGovernmentalInfo {
    if (_self.freeGovernmentalInfo == null) {
    return null;
  }

  return $FreeGovernmentalInfoCopyWith<$Res>(_self.freeGovernmentalInfo!, (value) {
    return _then(_self.copyWith(freeGovernmentalInfo: value));
  });
}/// Create a copy of HatchingModel
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$ReportInfoCopyWith<$Res>? get reportInfo {
    if (_self.reportInfo == null) {
    return null;
  }

  return $ReportInfoCopyWith<$Res>(_self.reportInfo!, (value) {
    return _then(_self.copyWith(reportInfo: value));
  });
}/// Create a copy of HatchingModel
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$RegistrarCopyWith<$Res>? get registrar {
    if (_self.registrar == null) {
    return null;
  }

  return $RegistrarCopyWith<$Res>(_self.registrar!, (value) {
    return _then(_self.copyWith(registrar: value));
  });
}/// Create a copy of HatchingModel
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$LastChangeCopyWith<$Res>? get lastChange {
    if (_self.lastChange == null) {
    return null;
  }

  return $LastChangeCopyWith<$Res>(_self.lastChange!, (value) {
    return _then(_self.copyWith(lastChange: value));
  });
}/// Create a copy of HatchingModel
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$LatestHatchingChangeCopyWith<$Res>? get latestHatchingChange {
    if (_self.latestHatchingChange == null) {
    return null;
  }

  return $LatestHatchingChangeCopyWith<$Res>(_self.latestHatchingChange!, (value) {
    return _then(_self.copyWith(latestHatchingChange: value));
  });
}
}


/// @nodoc
mixin _$Poultry {

 int? get id; PoultryUser? get user; PoultryAddress? get address; String? get key; bool? get trash; int? get ownerIdForeignKey; int? get userIdForeignKey; int? get addressIdForeignKey; bool? get hasChainCompany; int? get userBankIdForeignKey; String? get cityOperator; String? get unitName; String? get gisCode; num? get operatingLicenceCapacity; num? get numberOfHalls; bool? get tenant; bool? get hasTenant; String? get personType; String? get economicCode; String? get systemCode; String? get epidemiologicalCode; String? get breedingUniqueId; num? get totalCapacity; String? get licenceNumber; String? get healthCertificateNumber; num? get numberOfRequests; String? get hatchingDate; String? get lastPartyDate; num? get numberOfIncubators; num? get herdAgeByDay; num? get herdAgeByWeek; num? get numberOfParty; String? get communicationType; String? get cooperative; String? get dateOfRegister; String? get unitStatus; bool? get active; dynamic get identityDocuments; String? get samasatUserCode; String? get baseOrder; String? get incubationDate; num? get walletAmount; num? get city; num? get cityNumber; String? get cityName; num? get provinceNumber; String? get provinceName; int? get walletIdForeignKey; int? get poultryIdKey; num? get lat; num? get long; String? get date; num? get killingAveAge; num? get activeLeftOver; num? get killingAveCount; num? get killingAveWeight; num? get killingLiveWeight; num? get killingCarcassesWeight; num? get killingLossWeightPercent; num? get realKillingAveWeight; num? get realKillingLiveWeight; num? get realKillingCarcassesWeight; num? get realKillingLossWeightPercent; int? get interestLicenseId; bool? get orderLimit; int? get owner; int? get userBankInfo; int? get wallet;
/// Create a copy of Poultry
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$PoultryCopyWith<Poultry> get copyWith => _$PoultryCopyWithImpl<Poultry>(this as Poultry, _$identity);

  /// Serializes this Poultry to a JSON map.
  Map<String, dynamic> toJson();


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is Poultry&&(identical(other.id, id) || other.id == id)&&(identical(other.user, user) || other.user == user)&&(identical(other.address, address) || other.address == address)&&(identical(other.key, key) || other.key == key)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.ownerIdForeignKey, ownerIdForeignKey) || other.ownerIdForeignKey == ownerIdForeignKey)&&(identical(other.userIdForeignKey, userIdForeignKey) || other.userIdForeignKey == userIdForeignKey)&&(identical(other.addressIdForeignKey, addressIdForeignKey) || other.addressIdForeignKey == addressIdForeignKey)&&(identical(other.hasChainCompany, hasChainCompany) || other.hasChainCompany == hasChainCompany)&&(identical(other.userBankIdForeignKey, userBankIdForeignKey) || other.userBankIdForeignKey == userBankIdForeignKey)&&(identical(other.cityOperator, cityOperator) || other.cityOperator == cityOperator)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.gisCode, gisCode) || other.gisCode == gisCode)&&(identical(other.operatingLicenceCapacity, operatingLicenceCapacity) || other.operatingLicenceCapacity == operatingLicenceCapacity)&&(identical(other.numberOfHalls, numberOfHalls) || other.numberOfHalls == numberOfHalls)&&(identical(other.tenant, tenant) || other.tenant == tenant)&&(identical(other.hasTenant, hasTenant) || other.hasTenant == hasTenant)&&(identical(other.personType, personType) || other.personType == personType)&&(identical(other.economicCode, economicCode) || other.economicCode == economicCode)&&(identical(other.systemCode, systemCode) || other.systemCode == systemCode)&&(identical(other.epidemiologicalCode, epidemiologicalCode) || other.epidemiologicalCode == epidemiologicalCode)&&(identical(other.breedingUniqueId, breedingUniqueId) || other.breedingUniqueId == breedingUniqueId)&&(identical(other.totalCapacity, totalCapacity) || other.totalCapacity == totalCapacity)&&(identical(other.licenceNumber, licenceNumber) || other.licenceNumber == licenceNumber)&&(identical(other.healthCertificateNumber, healthCertificateNumber) || other.healthCertificateNumber == healthCertificateNumber)&&(identical(other.numberOfRequests, numberOfRequests) || other.numberOfRequests == numberOfRequests)&&(identical(other.hatchingDate, hatchingDate) || other.hatchingDate == hatchingDate)&&(identical(other.lastPartyDate, lastPartyDate) || other.lastPartyDate == lastPartyDate)&&(identical(other.numberOfIncubators, numberOfIncubators) || other.numberOfIncubators == numberOfIncubators)&&(identical(other.herdAgeByDay, herdAgeByDay) || other.herdAgeByDay == herdAgeByDay)&&(identical(other.herdAgeByWeek, herdAgeByWeek) || other.herdAgeByWeek == herdAgeByWeek)&&(identical(other.numberOfParty, numberOfParty) || other.numberOfParty == numberOfParty)&&(identical(other.communicationType, communicationType) || other.communicationType == communicationType)&&(identical(other.cooperative, cooperative) || other.cooperative == cooperative)&&(identical(other.dateOfRegister, dateOfRegister) || other.dateOfRegister == dateOfRegister)&&(identical(other.unitStatus, unitStatus) || other.unitStatus == unitStatus)&&(identical(other.active, active) || other.active == active)&&const DeepCollectionEquality().equals(other.identityDocuments, identityDocuments)&&(identical(other.samasatUserCode, samasatUserCode) || other.samasatUserCode == samasatUserCode)&&(identical(other.baseOrder, baseOrder) || other.baseOrder == baseOrder)&&(identical(other.incubationDate, incubationDate) || other.incubationDate == incubationDate)&&(identical(other.walletAmount, walletAmount) || other.walletAmount == walletAmount)&&(identical(other.city, city) || other.city == city)&&(identical(other.cityNumber, cityNumber) || other.cityNumber == cityNumber)&&(identical(other.cityName, cityName) || other.cityName == cityName)&&(identical(other.provinceNumber, provinceNumber) || other.provinceNumber == provinceNumber)&&(identical(other.provinceName, provinceName) || other.provinceName == provinceName)&&(identical(other.walletIdForeignKey, walletIdForeignKey) || other.walletIdForeignKey == walletIdForeignKey)&&(identical(other.poultryIdKey, poultryIdKey) || other.poultryIdKey == poultryIdKey)&&(identical(other.lat, lat) || other.lat == lat)&&(identical(other.long, long) || other.long == long)&&(identical(other.date, date) || other.date == date)&&(identical(other.killingAveAge, killingAveAge) || other.killingAveAge == killingAveAge)&&(identical(other.activeLeftOver, activeLeftOver) || other.activeLeftOver == activeLeftOver)&&(identical(other.killingAveCount, killingAveCount) || other.killingAveCount == killingAveCount)&&(identical(other.killingAveWeight, killingAveWeight) || other.killingAveWeight == killingAveWeight)&&(identical(other.killingLiveWeight, killingLiveWeight) || other.killingLiveWeight == killingLiveWeight)&&(identical(other.killingCarcassesWeight, killingCarcassesWeight) || other.killingCarcassesWeight == killingCarcassesWeight)&&(identical(other.killingLossWeightPercent, killingLossWeightPercent) || other.killingLossWeightPercent == killingLossWeightPercent)&&(identical(other.realKillingAveWeight, realKillingAveWeight) || other.realKillingAveWeight == realKillingAveWeight)&&(identical(other.realKillingLiveWeight, realKillingLiveWeight) || other.realKillingLiveWeight == realKillingLiveWeight)&&(identical(other.realKillingCarcassesWeight, realKillingCarcassesWeight) || other.realKillingCarcassesWeight == realKillingCarcassesWeight)&&(identical(other.realKillingLossWeightPercent, realKillingLossWeightPercent) || other.realKillingLossWeightPercent == realKillingLossWeightPercent)&&(identical(other.interestLicenseId, interestLicenseId) || other.interestLicenseId == interestLicenseId)&&(identical(other.orderLimit, orderLimit) || other.orderLimit == orderLimit)&&(identical(other.owner, owner) || other.owner == owner)&&(identical(other.userBankInfo, userBankInfo) || other.userBankInfo == userBankInfo)&&(identical(other.wallet, wallet) || other.wallet == wallet));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hashAll([runtimeType,id,user,address,key,trash,ownerIdForeignKey,userIdForeignKey,addressIdForeignKey,hasChainCompany,userBankIdForeignKey,cityOperator,unitName,gisCode,operatingLicenceCapacity,numberOfHalls,tenant,hasTenant,personType,economicCode,systemCode,epidemiologicalCode,breedingUniqueId,totalCapacity,licenceNumber,healthCertificateNumber,numberOfRequests,hatchingDate,lastPartyDate,numberOfIncubators,herdAgeByDay,herdAgeByWeek,numberOfParty,communicationType,cooperative,dateOfRegister,unitStatus,active,const DeepCollectionEquality().hash(identityDocuments),samasatUserCode,baseOrder,incubationDate,walletAmount,city,cityNumber,cityName,provinceNumber,provinceName,walletIdForeignKey,poultryIdKey,lat,long,date,killingAveAge,activeLeftOver,killingAveCount,killingAveWeight,killingLiveWeight,killingCarcassesWeight,killingLossWeightPercent,realKillingAveWeight,realKillingLiveWeight,realKillingCarcassesWeight,realKillingLossWeightPercent,interestLicenseId,orderLimit,owner,userBankInfo,wallet]);

@override
String toString() {
  return 'Poultry(id: $id, user: $user, address: $address, key: $key, trash: $trash, ownerIdForeignKey: $ownerIdForeignKey, userIdForeignKey: $userIdForeignKey, addressIdForeignKey: $addressIdForeignKey, hasChainCompany: $hasChainCompany, userBankIdForeignKey: $userBankIdForeignKey, cityOperator: $cityOperator, unitName: $unitName, gisCode: $gisCode, operatingLicenceCapacity: $operatingLicenceCapacity, numberOfHalls: $numberOfHalls, tenant: $tenant, hasTenant: $hasTenant, personType: $personType, economicCode: $economicCode, systemCode: $systemCode, epidemiologicalCode: $epidemiologicalCode, breedingUniqueId: $breedingUniqueId, totalCapacity: $totalCapacity, licenceNumber: $licenceNumber, healthCertificateNumber: $healthCertificateNumber, numberOfRequests: $numberOfRequests, hatchingDate: $hatchingDate, lastPartyDate: $lastPartyDate, numberOfIncubators: $numberOfIncubators, herdAgeByDay: $herdAgeByDay, herdAgeByWeek: $herdAgeByWeek, numberOfParty: $numberOfParty, communicationType: $communicationType, cooperative: $cooperative, dateOfRegister: $dateOfRegister, unitStatus: $unitStatus, active: $active, identityDocuments: $identityDocuments, samasatUserCode: $samasatUserCode, baseOrder: $baseOrder, incubationDate: $incubationDate, walletAmount: $walletAmount, city: $city, cityNumber: $cityNumber, cityName: $cityName, provinceNumber: $provinceNumber, provinceName: $provinceName, walletIdForeignKey: $walletIdForeignKey, poultryIdKey: $poultryIdKey, lat: $lat, long: $long, date: $date, killingAveAge: $killingAveAge, activeLeftOver: $activeLeftOver, killingAveCount: $killingAveCount, killingAveWeight: $killingAveWeight, killingLiveWeight: $killingLiveWeight, killingCarcassesWeight: $killingCarcassesWeight, killingLossWeightPercent: $killingLossWeightPercent, realKillingAveWeight: $realKillingAveWeight, realKillingLiveWeight: $realKillingLiveWeight, realKillingCarcassesWeight: $realKillingCarcassesWeight, realKillingLossWeightPercent: $realKillingLossWeightPercent, interestLicenseId: $interestLicenseId, orderLimit: $orderLimit, owner: $owner, userBankInfo: $userBankInfo, wallet: $wallet)';
}


}

/// @nodoc
abstract mixin class $PoultryCopyWith<$Res>  {
  factory $PoultryCopyWith(Poultry value, $Res Function(Poultry) _then) = _$PoultryCopyWithImpl;
@useResult
$Res call({
 int? id, PoultryUser? user, PoultryAddress? address, String? key, bool? trash, int? ownerIdForeignKey, int? userIdForeignKey, int? addressIdForeignKey, bool? hasChainCompany, int? userBankIdForeignKey, String? cityOperator, String? unitName, String? gisCode, num? operatingLicenceCapacity, num? numberOfHalls, bool? tenant, bool? hasTenant, String? personType, String? economicCode, String? systemCode, String? epidemiologicalCode, String? breedingUniqueId, num? totalCapacity, String? licenceNumber, String? healthCertificateNumber, num? numberOfRequests, String? hatchingDate, String? lastPartyDate, num? numberOfIncubators, num? herdAgeByDay, num? herdAgeByWeek, num? numberOfParty, String? communicationType, String? cooperative, String? dateOfRegister, String? unitStatus, bool? active, dynamic identityDocuments, String? samasatUserCode, String? baseOrder, String? incubationDate, num? walletAmount, num? city, num? cityNumber, String? cityName, num? provinceNumber, String? provinceName, int? walletIdForeignKey, int? poultryIdKey, num? lat, num? long, String? date, num? killingAveAge, num? activeLeftOver, num? killingAveCount, num? killingAveWeight, num? killingLiveWeight, num? killingCarcassesWeight, num? killingLossWeightPercent, num? realKillingAveWeight, num? realKillingLiveWeight, num? realKillingCarcassesWeight, num? realKillingLossWeightPercent, int? interestLicenseId, bool? orderLimit, int? owner, int? userBankInfo, int? wallet
});


$PoultryUserCopyWith<$Res>? get user;$PoultryAddressCopyWith<$Res>? get address;

}
/// @nodoc
class _$PoultryCopyWithImpl<$Res>
    implements $PoultryCopyWith<$Res> {
  _$PoultryCopyWithImpl(this._self, this._then);

  final Poultry _self;
  final $Res Function(Poultry) _then;

/// Create a copy of Poultry
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? user = freezed,Object? address = freezed,Object? key = freezed,Object? trash = freezed,Object? ownerIdForeignKey = freezed,Object? userIdForeignKey = freezed,Object? addressIdForeignKey = freezed,Object? hasChainCompany = freezed,Object? userBankIdForeignKey = freezed,Object? cityOperator = freezed,Object? unitName = freezed,Object? gisCode = freezed,Object? operatingLicenceCapacity = freezed,Object? numberOfHalls = freezed,Object? tenant = freezed,Object? hasTenant = freezed,Object? personType = freezed,Object? economicCode = freezed,Object? systemCode = freezed,Object? epidemiologicalCode = freezed,Object? breedingUniqueId = freezed,Object? totalCapacity = freezed,Object? licenceNumber = freezed,Object? healthCertificateNumber = freezed,Object? numberOfRequests = freezed,Object? hatchingDate = freezed,Object? lastPartyDate = freezed,Object? numberOfIncubators = freezed,Object? herdAgeByDay = freezed,Object? herdAgeByWeek = freezed,Object? numberOfParty = freezed,Object? communicationType = freezed,Object? cooperative = freezed,Object? dateOfRegister = freezed,Object? unitStatus = freezed,Object? active = freezed,Object? identityDocuments = freezed,Object? samasatUserCode = freezed,Object? baseOrder = freezed,Object? incubationDate = freezed,Object? walletAmount = freezed,Object? city = freezed,Object? cityNumber = freezed,Object? cityName = freezed,Object? provinceNumber = freezed,Object? provinceName = freezed,Object? walletIdForeignKey = freezed,Object? poultryIdKey = freezed,Object? lat = freezed,Object? long = freezed,Object? date = freezed,Object? killingAveAge = freezed,Object? activeLeftOver = freezed,Object? killingAveCount = freezed,Object? killingAveWeight = freezed,Object? killingLiveWeight = freezed,Object? killingCarcassesWeight = freezed,Object? killingLossWeightPercent = freezed,Object? realKillingAveWeight = freezed,Object? realKillingLiveWeight = freezed,Object? realKillingCarcassesWeight = freezed,Object? realKillingLossWeightPercent = freezed,Object? interestLicenseId = freezed,Object? orderLimit = freezed,Object? owner = freezed,Object? userBankInfo = freezed,Object? wallet = freezed,}) {
  return _then(_self.copyWith(
id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
as int?,user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable
as PoultryUser?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable
as PoultryAddress?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable
as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable
as bool?,ownerIdForeignKey: freezed == ownerIdForeignKey ? _self.ownerIdForeignKey : ownerIdForeignKey // ignore: cast_nullable_to_non_nullable
as int?,userIdForeignKey: freezed == userIdForeignKey ? _self.userIdForeignKey : userIdForeignKey // ignore: cast_nullable_to_non_nullable
as int?,addressIdForeignKey: freezed == addressIdForeignKey ? _self.addressIdForeignKey : addressIdForeignKey // ignore: cast_nullable_to_non_nullable
as int?,hasChainCompany: freezed == hasChainCompany ? _self.hasChainCompany : hasChainCompany // ignore: cast_nullable_to_non_nullable
as bool?,userBankIdForeignKey: freezed == userBankIdForeignKey ? _self.userBankIdForeignKey : userBankIdForeignKey // ignore: cast_nullable_to_non_nullable
as int?,cityOperator: freezed == cityOperator ? _self.cityOperator : cityOperator // ignore: cast_nullable_to_non_nullable
as String?,unitName: freezed == unitName ? _self.unitName : unitName // ignore: cast_nullable_to_non_nullable
as String?,gisCode: freezed == gisCode ? _self.gisCode : gisCode // ignore: cast_nullable_to_non_nullable
as String?,operatingLicenceCapacity: freezed == operatingLicenceCapacity ? _self.operatingLicenceCapacity : operatingLicenceCapacity // ignore: cast_nullable_to_non_nullable
as num?,numberOfHalls: freezed == numberOfHalls ? _self.numberOfHalls : numberOfHalls // ignore: cast_nullable_to_non_nullable
as num?,tenant: freezed == tenant ? _self.tenant : tenant // ignore: cast_nullable_to_non_nullable
as bool?,hasTenant: freezed == hasTenant ? _self.hasTenant : hasTenant // ignore: cast_nullable_to_non_nullable
as bool?,personType: freezed == personType ? _self.personType : personType // ignore: cast_nullable_to_non_nullable
as String?,economicCode: freezed == economicCode ? _self.economicCode : economicCode // ignore: cast_nullable_to_non_nullable
as String?,systemCode: freezed == systemCode ? _self.systemCode : systemCode // ignore: cast_nullable_to_non_nullable
as String?,epidemiologicalCode: freezed == epidemiologicalCode ? _self.epidemiologicalCode : epidemiologicalCode // ignore: cast_nullable_to_non_nullable
as String?,breedingUniqueId: freezed == breedingUniqueId ? _self.breedingUniqueId : breedingUniqueId // ignore: cast_nullable_to_non_nullable
as String?,totalCapacity: freezed == totalCapacity ? _self.totalCapacity : totalCapacity // ignore: cast_nullable_to_non_nullable
as num?,licenceNumber: freezed == licenceNumber ? _self.licenceNumber : licenceNumber // ignore: cast_nullable_to_non_nullable
as String?,healthCertificateNumber: freezed == healthCertificateNumber ? _self.healthCertificateNumber : healthCertificateNumber // ignore: cast_nullable_to_non_nullable
as String?,numberOfRequests: freezed == numberOfRequests ? _self.numberOfRequests : numberOfRequests // ignore: cast_nullable_to_non_nullable
as num?,hatchingDate: freezed == hatchingDate ? _self.hatchingDate : hatchingDate // ignore: cast_nullable_to_non_nullable
as String?,lastPartyDate: freezed == lastPartyDate ? _self.lastPartyDate : lastPartyDate // ignore: cast_nullable_to_non_nullable
as String?,numberOfIncubators: freezed == numberOfIncubators ? _self.numberOfIncubators : numberOfIncubators // ignore: cast_nullable_to_non_nullable
as num?,herdAgeByDay: freezed == herdAgeByDay ? _self.herdAgeByDay : herdAgeByDay // ignore: cast_nullable_to_non_nullable
as num?,herdAgeByWeek: freezed == herdAgeByWeek ? _self.herdAgeByWeek : herdAgeByWeek // ignore: cast_nullable_to_non_nullable
as num?,numberOfParty: freezed == numberOfParty ? _self.numberOfParty : numberOfParty // ignore: cast_nullable_to_non_nullable
as num?,communicationType: freezed == communicationType ? _self.communicationType : communicationType // ignore: cast_nullable_to_non_nullable
as String?,cooperative: freezed == cooperative ? _self.cooperative : cooperative // ignore: cast_nullable_to_non_nullable
as String?,dateOfRegister: freezed == dateOfRegister ? _self.dateOfRegister : dateOfRegister // ignore: cast_nullable_to_non_nullable
as String?,unitStatus: freezed == unitStatus ? _self.unitStatus : unitStatus // ignore: cast_nullable_to_non_nullable
as String?,active: freezed == active ? _self.active : active // ignore: cast_nullable_to_non_nullable
as bool?,identityDocuments: freezed == identityDocuments ? _self.identityDocuments : identityDocuments // ignore: cast_nullable_to_non_nullable
as dynamic,samasatUserCode: freezed == samasatUserCode ? _self.samasatUserCode : samasatUserCode // ignore: cast_nullable_to_non_nullable
as String?,baseOrder: freezed == baseOrder ? _self.baseOrder : baseOrder // ignore: cast_nullable_to_non_nullable
as String?,incubationDate: freezed == incubationDate ? _self.incubationDate : incubationDate // ignore: cast_nullable_to_non_nullable
as String?,walletAmount: freezed == walletAmount ? _self.walletAmount : walletAmount // ignore: cast_nullable_to_non_nullable
as num?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable
as num?,cityNumber: freezed == cityNumber ? _self.cityNumber : cityNumber // ignore: cast_nullable_to_non_nullable
as num?,cityName: freezed == cityName ? _self.cityName : cityName // ignore: cast_nullable_to_non_nullable
as String?,provinceNumber: freezed == provinceNumber ? _self.provinceNumber : provinceNumber // ignore: cast_nullable_to_non_nullable
as num?,provinceName: freezed == provinceName ? _self.provinceName : provinceName // ignore: cast_nullable_to_non_nullable
as String?,walletIdForeignKey: freezed == walletIdForeignKey ? _self.walletIdForeignKey : walletIdForeignKey // ignore: cast_nullable_to_non_nullable
as int?,poultryIdKey: freezed == poultryIdKey ? _self.poultryIdKey : poultryIdKey // ignore: cast_nullable_to_non_nullable
as int?,lat: freezed == lat ? _self.lat : lat // ignore: cast_nullable_to_non_nullable
as num?,long: freezed == long ? _self.long : long // ignore: cast_nullable_to_non_nullable
as num?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable
as String?,killingAveAge: freezed == killingAveAge ? _self.killingAveAge : killingAveAge // ignore: cast_nullable_to_non_nullable
as num?,activeLeftOver: freezed == activeLeftOver ? _self.activeLeftOver : activeLeftOver // ignore: cast_nullable_to_non_nullable
as num?,killingAveCount: freezed == killingAveCount ? _self.killingAveCount : killingAveCount // ignore: cast_nullable_to_non_nullable
as num?,killingAveWeight: freezed == killingAveWeight ? _self.killingAveWeight : killingAveWeight // ignore: cast_nullable_to_non_nullable
as num?,killingLiveWeight: freezed == killingLiveWeight ? _self.killingLiveWeight : killingLiveWeight // ignore: cast_nullable_to_non_nullable
as num?,killingCarcassesWeight: freezed == killingCarcassesWeight ? _self.killingCarcassesWeight : killingCarcassesWeight // ignore: cast_nullable_to_non_nullable
as num?,killingLossWeightPercent: freezed == killingLossWeightPercent ? _self.killingLossWeightPercent : killingLossWeightPercent // ignore: cast_nullable_to_non_nullable
as num?,realKillingAveWeight: freezed == realKillingAveWeight ? _self.realKillingAveWeight : realKillingAveWeight // ignore: cast_nullable_to_non_nullable
as num?,realKillingLiveWeight: freezed == realKillingLiveWeight ? _self.realKillingLiveWeight : realKillingLiveWeight // ignore: cast_nullable_to_non_nullable
as num?,realKillingCarcassesWeight: freezed == realKillingCarcassesWeight ? _self.realKillingCarcassesWeight : realKillingCarcassesWeight // ignore: cast_nullable_to_non_nullable
as num?,realKillingLossWeightPercent: freezed == realKillingLossWeightPercent ? _self.realKillingLossWeightPercent : realKillingLossWeightPercent // ignore: cast_nullable_to_non_nullable
as num?,interestLicenseId: freezed == interestLicenseId ? _self.interestLicenseId : interestLicenseId // ignore: cast_nullable_to_non_nullable
as int?,orderLimit: freezed == orderLimit ? _self.orderLimit : orderLimit // ignore: cast_nullable_to_non_nullable
as bool?,owner: freezed == owner ? _self.owner : owner // ignore: cast_nullable_to_non_nullable
as int?,userBankInfo: freezed == userBankInfo ? _self.userBankInfo : userBankInfo // ignore: cast_nullable_to_non_nullable
as int?,wallet: freezed == wallet ? _self.wallet : wallet // ignore: cast_nullable_to_non_nullable
as int?,
  ));
}
/// Create a copy of Poultry
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$PoultryUserCopyWith<$Res>? get user {
    if (_self.user == null) {
    return null;
  }

  return $PoultryUserCopyWith<$Res>(_self.user!, (value) {
    return _then(_self.copyWith(user: value));
  });
}/// Create a copy of Poultry
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$PoultryAddressCopyWith<$Res>? get address {
    if (_self.address == null) {
    return null;
  }

  return $PoultryAddressCopyWith<$Res>(_self.address!, (value) {
    return _then(_self.copyWith(address: value));
  });
}
}


/// Adds pattern-matching-related methods to [Poultry].
extension PoultryPatterns on Poultry {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _Poultry value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _Poultry() when $default != null:
return $default(_that);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case final Subclass2 value:
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _Poultry value)  $default,){
final _that = this;
switch (_that) {
case _Poultry():
return $default(_that);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _Poultry value)?  $default,){
final _that = this;
switch (_that) {
case _Poultry() when $default != null:
return $default(_that);case _:
  return null;

}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( int? id,  PoultryUser? user,  PoultryAddress? address,  String? key,  bool? trash,  int? ownerIdForeignKey,  int? userIdForeignKey,  int? addressIdForeignKey,  bool? hasChainCompany,  int? userBankIdForeignKey,  String? cityOperator,  String? unitName,  String? gisCode,  num? operatingLicenceCapacity,  num? numberOfHalls,  bool? tenant,  bool? hasTenant,  String? personType,  String? economicCode,  String? systemCode,  String? epidemiologicalCode,  String? breedingUniqueId,  num? totalCapacity,  String? licenceNumber,  String? healthCertificateNumber,  num? numberOfRequests,  String? hatchingDate,  String? lastPartyDate,  num? numberOfIncubators,  num? herdAgeByDay,  num? herdAgeByWeek,  num? numberOfParty,  String? communicationType,  String? cooperative,  String? dateOfRegister,  String? unitStatus,  bool? active,  dynamic identityDocuments,  String? samasatUserCode,  String? baseOrder,  String? incubationDate,  num? walletAmount,  num? city,  num? cityNumber,  String? cityName,  num? provinceNumber,  String? provinceName,  int? walletIdForeignKey,  int? poultryIdKey,  num? lat,  num? long,  String? date,  num? killingAveAge,  num? activeLeftOver,  num? killingAveCount,  num? killingAveWeight,  num? killingLiveWeight,  num? killingCarcassesWeight,  num? killingLossWeightPercent,  num? realKillingAveWeight,  num? realKillingLiveWeight,  num? realKillingCarcassesWeight,  num? realKillingLossWeightPercent,  int? interestLicenseId,  bool? orderLimit,  int? owner,  int? userBankInfo,  int? wallet)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _Poultry() when $default != null:
return $default(_that.id,_that.user,_that.address,_that.key,_that.trash,_that.ownerIdForeignKey,_that.userIdForeignKey,_that.addressIdForeignKey,_that.hasChainCompany,_that.userBankIdForeignKey,_that.cityOperator,_that.unitName,_that.gisCode,_that.operatingLicenceCapacity,_that.numberOfHalls,_that.tenant,_that.hasTenant,_that.personType,_that.economicCode,_that.systemCode,_that.epidemiologicalCode,_that.breedingUniqueId,_that.totalCapacity,_that.licenceNumber,_that.healthCertificateNumber,_that.numberOfRequests,_that.hatchingDate,_that.lastPartyDate,_that.numberOfIncubators,_that.herdAgeByDay,_that.herdAgeByWeek,_that.numberOfParty,_that.communicationType,_that.cooperative,_that.dateOfRegister,_that.unitStatus,_that.active,_that.identityDocuments,_that.samasatUserCode,_that.baseOrder,_that.incubationDate,_that.walletAmount,_that.city,_that.cityNumber,_that.cityName,_that.provinceNumber,_that.provinceName,_that.walletIdForeignKey,_that.poultryIdKey,_that.lat,_that.long,_that.date,_that.killingAveAge,_that.activeLeftOver,_that.killingAveCount,_that.killingAveWeight,_that.killingLiveWeight,_that.killingCarcassesWeight,_that.killingLossWeightPercent,_that.realKillingAveWeight,_that.realKillingLiveWeight,_that.realKillingCarcassesWeight,_that.realKillingLossWeightPercent,_that.interestLicenseId,_that.orderLimit,_that.owner,_that.userBankInfo,_that.wallet);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case Subclass2(:final field2):
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( int? id,  PoultryUser? user,  PoultryAddress? address,  String? key,  bool? trash,  int? ownerIdForeignKey,  int? userIdForeignKey,  int? addressIdForeignKey,  bool? hasChainCompany,  int? userBankIdForeignKey,  String? cityOperator,  String? unitName,  String? gisCode,  num? operatingLicenceCapacity,  num? numberOfHalls,  bool? tenant,  bool? hasTenant,  String? personType,  String? economicCode,  String? systemCode,  String? epidemiologicalCode,  String? breedingUniqueId,  num? totalCapacity,  String? licenceNumber,  String? healthCertificateNumber,  num? numberOfRequests,  String? hatchingDate,  String? lastPartyDate,  num? numberOfIncubators,  num? herdAgeByDay,  num? herdAgeByWeek,  num? numberOfParty,  String? communicationType,  String? cooperative,  String? dateOfRegister,  String? unitStatus,  bool? active,  dynamic identityDocuments,  String? samasatUserCode,  String? baseOrder,  String? incubationDate,  num? walletAmount,  num? city,  num? cityNumber,  String? cityName,  num? provinceNumber,  String? provinceName,  int? walletIdForeignKey,  int? poultryIdKey,  num? lat,  num? long,  String? date,  num? killingAveAge,  num? activeLeftOver,  num? killingAveCount,  num? killingAveWeight,  num? killingLiveWeight,  num? killingCarcassesWeight,  num? killingLossWeightPercent,  num? realKillingAveWeight,  num? realKillingLiveWeight,  num? realKillingCarcassesWeight,  num? realKillingLossWeightPercent,  int? interestLicenseId,  bool? orderLimit,  int? owner,  int? userBankInfo,  int? wallet)  $default,) {final _that = this;
switch (_that) {
case _Poultry():
return $default(_that.id,_that.user,_that.address,_that.key,_that.trash,_that.ownerIdForeignKey,_that.userIdForeignKey,_that.addressIdForeignKey,_that.hasChainCompany,_that.userBankIdForeignKey,_that.cityOperator,_that.unitName,_that.gisCode,_that.operatingLicenceCapacity,_that.numberOfHalls,_that.tenant,_that.hasTenant,_that.personType,_that.economicCode,_that.systemCode,_that.epidemiologicalCode,_that.breedingUniqueId,_that.totalCapacity,_that.licenceNumber,_that.healthCertificateNumber,_that.numberOfRequests,_that.hatchingDate,_that.lastPartyDate,_that.numberOfIncubators,_that.herdAgeByDay,_that.herdAgeByWeek,_that.numberOfParty,_that.communicationType,_that.cooperative,_that.dateOfRegister,_that.unitStatus,_that.active,_that.identityDocuments,_that.samasatUserCode,_that.baseOrder,_that.incubationDate,_that.walletAmount,_that.city,_that.cityNumber,_that.cityName,_that.provinceNumber,_that.provinceName,_that.walletIdForeignKey,_that.poultryIdKey,_that.lat,_that.long,_that.date,_that.killingAveAge,_that.activeLeftOver,_that.killingAveCount,_that.killingAveWeight,_that.killingLiveWeight,_that.killingCarcassesWeight,_that.killingLossWeightPercent,_that.realKillingAveWeight,_that.realKillingLiveWeight,_that.realKillingCarcassesWeight,_that.realKillingLossWeightPercent,_that.interestLicenseId,_that.orderLimit,_that.owner,_that.userBankInfo,_that.wallet);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( int? id,  PoultryUser? user,  PoultryAddress? address,  String? key,  bool? trash,  int? ownerIdForeignKey,  int? userIdForeignKey,  int? addressIdForeignKey,  bool? hasChainCompany,  int? userBankIdForeignKey,  String? cityOperator,  String? unitName,  String? gisCode,  num? operatingLicenceCapacity,  num? numberOfHalls,  bool? tenant,  bool? hasTenant,  String? personType,  String? economicCode,  String? systemCode,  String? epidemiologicalCode,  String? breedingUniqueId,  num? totalCapacity,  String? licenceNumber,  String? healthCertificateNumber,  num? numberOfRequests,  String? hatchingDate,  String? lastPartyDate,  num? numberOfIncubators,  num? herdAgeByDay,  num? herdAgeByWeek,  num? numberOfParty,  String? communicationType,  String? cooperative,  String? dateOfRegister,  String? unitStatus,  bool? active,  dynamic identityDocuments,  String? samasatUserCode,  String? baseOrder,  String? incubationDate,  num? walletAmount,  num? city,  num? cityNumber,  String? cityName,  num? provinceNumber,  String? provinceName,  int? walletIdForeignKey,  int? poultryIdKey,  num? lat,  num? long,  String? date,  num? killingAveAge,  num? activeLeftOver,  num? killingAveCount,  num? killingAveWeight,  num? killingLiveWeight,  num? killingCarcassesWeight,  num? killingLossWeightPercent,  num? realKillingAveWeight,  num? realKillingLiveWeight,  num? realKillingCarcassesWeight,  num? realKillingLossWeightPercent,  int? interestLicenseId,  bool? orderLimit,  int? owner,  int? userBankInfo,  int? wallet)?  $default,) {final _that = this;
switch (_that) {
case _Poultry() when $default != null:
return $default(_that.id,_that.user,_that.address,_that.key,_that.trash,_that.ownerIdForeignKey,_that.userIdForeignKey,_that.addressIdForeignKey,_that.hasChainCompany,_that.userBankIdForeignKey,_that.cityOperator,_that.unitName,_that.gisCode,_that.operatingLicenceCapacity,_that.numberOfHalls,_that.tenant,_that.hasTenant,_that.personType,_that.economicCode,_that.systemCode,_that.epidemiologicalCode,_that.breedingUniqueId,_that.totalCapacity,_that.licenceNumber,_that.healthCertificateNumber,_that.numberOfRequests,_that.hatchingDate,_that.lastPartyDate,_that.numberOfIncubators,_that.herdAgeByDay,_that.herdAgeByWeek,_that.numberOfParty,_that.communicationType,_that.cooperative,_that.dateOfRegister,_that.unitStatus,_that.active,_that.identityDocuments,_that.samasatUserCode,_that.baseOrder,_that.incubationDate,_that.walletAmount,_that.city,_that.cityNumber,_that.cityName,_that.provinceNumber,_that.provinceName,_that.walletIdForeignKey,_that.poultryIdKey,_that.lat,_that.long,_that.date,_that.killingAveAge,_that.activeLeftOver,_that.killingAveCount,_that.killingAveWeight,_that.killingLiveWeight,_that.killingCarcassesWeight,_that.killingLossWeightPercent,_that.realKillingAveWeight,_that.realKillingLiveWeight,_that.realKillingCarcassesWeight,_that.realKillingLossWeightPercent,_that.interestLicenseId,_that.orderLimit,_that.owner,_that.userBankInfo,_that.wallet);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _Poultry implements Poultry {
  const _Poultry({this.id, this.user, this.address, this.key, this.trash, this.ownerIdForeignKey, this.userIdForeignKey, this.addressIdForeignKey, this.hasChainCompany, this.userBankIdForeignKey, this.cityOperator, this.unitName, this.gisCode, this.operatingLicenceCapacity, this.numberOfHalls, this.tenant, this.hasTenant, this.personType, this.economicCode, this.systemCode, this.epidemiologicalCode, this.breedingUniqueId, this.totalCapacity, this.licenceNumber, this.healthCertificateNumber, this.numberOfRequests, this.hatchingDate, this.lastPartyDate, this.numberOfIncubators, this.herdAgeByDay, this.herdAgeByWeek, this.numberOfParty, this.communicationType, this.cooperative, this.dateOfRegister, this.unitStatus, this.active, this.identityDocuments, this.samasatUserCode, this.baseOrder, this.incubationDate, this.walletAmount, this.city, this.cityNumber, this.cityName, this.provinceNumber, this.provinceName, this.walletIdForeignKey, this.poultryIdKey, this.lat, this.long, this.date, this.killingAveAge, this.activeLeftOver, this.killingAveCount, this.killingAveWeight, this.killingLiveWeight, this.killingCarcassesWeight, this.killingLossWeightPercent, this.realKillingAveWeight, this.realKillingLiveWeight, this.realKillingCarcassesWeight, this.realKillingLossWeightPercent, this.interestLicenseId, this.orderLimit, this.owner, this.userBankInfo, this.wallet});
  factory _Poultry.fromJson(Map<String, dynamic> json) => _$PoultryFromJson(json);

@override final  int? id;
@override final  PoultryUser? user;
@override final  PoultryAddress? address;
@override final  String? key;
@override final  bool? trash;
@override final  int? ownerIdForeignKey;
@override final  int? userIdForeignKey;
@override final  int? addressIdForeignKey;
@override final  bool? hasChainCompany;
@override final  int? userBankIdForeignKey;
@override final  String? cityOperator;
@override final  String? unitName;
@override final  String? gisCode;
@override final  num? operatingLicenceCapacity;
@override final  num? numberOfHalls;
@override final  bool? tenant;
@override final  bool? hasTenant;
@override final  String? personType;
@override final  String? economicCode;
@override final  String? systemCode;
@override final  String? epidemiologicalCode;
@override final  String? breedingUniqueId;
@override final  num? totalCapacity;
@override final  String? licenceNumber;
@override final  String? healthCertificateNumber;
@override final  num? numberOfRequests;
@override final  String? hatchingDate;
@override final  String? lastPartyDate;
@override final  num? numberOfIncubators;
@override final  num? herdAgeByDay;
@override final  num? herdAgeByWeek;
@override final  num? numberOfParty;
@override final  String? communicationType;
@override final  String? cooperative;
@override final  String? dateOfRegister;
@override final  String? unitStatus;
@override final  bool? active;
@override final  dynamic identityDocuments;
@override final  String? samasatUserCode;
@override final  String? baseOrder;
@override final  String? incubationDate;
@override final  num? walletAmount;
@override final  num? city;
@override final  num? cityNumber;
@override final  String? cityName;
@override final  num? provinceNumber;
@override final  String? provinceName;
@override final  int? walletIdForeignKey;
@override final  int? poultryIdKey;
@override final  num? lat;
@override final  num? long;
@override final  String? date;
@override final  num? killingAveAge;
@override final  num? activeLeftOver;
@override final  num? killingAveCount;
@override final  num? killingAveWeight;
@override final  num? killingLiveWeight;
@override final  num? killingCarcassesWeight;
@override final  num? killingLossWeightPercent;
@override final  num? realKillingAveWeight;
@override final  num? realKillingLiveWeight;
@override final  num? realKillingCarcassesWeight;
@override final  num? realKillingLossWeightPercent;
@override final  int? interestLicenseId;
@override final  bool? orderLimit;
@override final  int? owner;
@override final  int? userBankInfo;
@override final  int? wallet;

/// Create a copy of Poultry
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$PoultryCopyWith<_Poultry> get copyWith => __$PoultryCopyWithImpl<_Poultry>(this, _$identity);

@override
Map<String, dynamic> toJson() {
  return _$PoultryToJson(this, );
}

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _Poultry&&(identical(other.id, id) || other.id == id)&&(identical(other.user, user) || other.user == user)&&(identical(other.address, address) || other.address == address)&&(identical(other.key, key) || other.key == key)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.ownerIdForeignKey, ownerIdForeignKey) || other.ownerIdForeignKey == ownerIdForeignKey)&&(identical(other.userIdForeignKey, userIdForeignKey) || other.userIdForeignKey == userIdForeignKey)&&(identical(other.addressIdForeignKey, addressIdForeignKey) || other.addressIdForeignKey == addressIdForeignKey)&&(identical(other.hasChainCompany, hasChainCompany) || other.hasChainCompany == hasChainCompany)&&(identical(other.userBankIdForeignKey, userBankIdForeignKey) || other.userBankIdForeignKey == userBankIdForeignKey)&&(identical(other.cityOperator, cityOperator) || other.cityOperator == cityOperator)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.gisCode, gisCode) || other.gisCode == gisCode)&&(identical(other.operatingLicenceCapacity, operatingLicenceCapacity) || other.operatingLicenceCapacity == operatingLicenceCapacity)&&(identical(other.numberOfHalls, numberOfHalls) || other.numberOfHalls == numberOfHalls)&&(identical(other.tenant, tenant) || other.tenant == tenant)&&(identical(other.hasTenant, hasTenant) || other.hasTenant == hasTenant)&&(identical(other.personType, personType) || other.personType == personType)&&(identical(other.economicCode, economicCode) || other.economicCode == economicCode)&&(identical(other.systemCode, systemCode) || other.systemCode == systemCode)&&(identical(other.epidemiologicalCode, epidemiologicalCode) || other.epidemiologicalCode == epidemiologicalCode)&&(identical(other.breedingUniqueId, breedingUniqueId) || other.breedingUniqueId == breedingUniqueId)&&(identical(other.totalCapacity, totalCapacity) || other.totalCapacity == totalCapacity)&&(identical(other.licenceNumber, licenceNumber) || other.licenceNumber == licenceNumber)&&(identical(other.healthCertificateNumber, healthCertificateNumber) || other.healthCertificateNumber == healthCertificateNumber)&&(identical(other.numberOfRequests, numberOfRequests) || other.numberOfRequests == numberOfRequests)&&(identical(other.hatchingDate, hatchingDate) || other.hatchingDate == hatchingDate)&&(identical(other.lastPartyDate, lastPartyDate) || other.lastPartyDate == lastPartyDate)&&(identical(other.numberOfIncubators, numberOfIncubators) || other.numberOfIncubators == numberOfIncubators)&&(identical(other.herdAgeByDay, herdAgeByDay) || other.herdAgeByDay == herdAgeByDay)&&(identical(other.herdAgeByWeek, herdAgeByWeek) || other.herdAgeByWeek == herdAgeByWeek)&&(identical(other.numberOfParty, numberOfParty) || other.numberOfParty == numberOfParty)&&(identical(other.communicationType, communicationType) || other.communicationType == communicationType)&&(identical(other.cooperative, cooperative) || other.cooperative == cooperative)&&(identical(other.dateOfRegister, dateOfRegister) || other.dateOfRegister == dateOfRegister)&&(identical(other.unitStatus, unitStatus) || other.unitStatus == unitStatus)&&(identical(other.active, active) || other.active == active)&&const DeepCollectionEquality().equals(other.identityDocuments, identityDocuments)&&(identical(other.samasatUserCode, samasatUserCode) || other.samasatUserCode == samasatUserCode)&&(identical(other.baseOrder, baseOrder) || other.baseOrder == baseOrder)&&(identical(other.incubationDate, incubationDate) || other.incubationDate == incubationDate)&&(identical(other.walletAmount, walletAmount) || other.walletAmount == walletAmount)&&(identical(other.city, city) || other.city == city)&&(identical(other.cityNumber, cityNumber) || other.cityNumber == cityNumber)&&(identical(other.cityName, cityName) || other.cityName == cityName)&&(identical(other.provinceNumber, provinceNumber) || other.provinceNumber == provinceNumber)&&(identical(other.provinceName, provinceName) || other.provinceName == provinceName)&&(identical(other.walletIdForeignKey, walletIdForeignKey) || other.walletIdForeignKey == walletIdForeignKey)&&(identical(other.poultryIdKey, poultryIdKey) || other.poultryIdKey == poultryIdKey)&&(identical(other.lat, lat) || other.lat == lat)&&(identical(other.long, long) || other.long == long)&&(identical(other.date, date) || other.date == date)&&(identical(other.killingAveAge, killingAveAge) || other.killingAveAge == killingAveAge)&&(identical(other.activeLeftOver, activeLeftOver) || other.activeLeftOver == activeLeftOver)&&(identical(other.killingAveCount, killingAveCount) || other.killingAveCount == killingAveCount)&&(identical(other.killingAveWeight, killingAveWeight) || other.killingAveWeight == killingAveWeight)&&(identical(other.killingLiveWeight, killingLiveWeight) || other.killingLiveWeight == killingLiveWeight)&&(identical(other.killingCarcassesWeight, killingCarcassesWeight) || other.killingCarcassesWeight == killingCarcassesWeight)&&(identical(other.killingLossWeightPercent, killingLossWeightPercent) || other.killingLossWeightPercent == killingLossWeightPercent)&&(identical(other.realKillingAveWeight, realKillingAveWeight) || other.realKillingAveWeight == realKillingAveWeight)&&(identical(other.realKillingLiveWeight, realKillingLiveWeight) || other.realKillingLiveWeight == realKillingLiveWeight)&&(identical(other.realKillingCarcassesWeight, realKillingCarcassesWeight) || other.realKillingCarcassesWeight == realKillingCarcassesWeight)&&(identical(other.realKillingLossWeightPercent, realKillingLossWeightPercent) || other.realKillingLossWeightPercent == realKillingLossWeightPercent)&&(identical(other.interestLicenseId, interestLicenseId) || other.interestLicenseId == interestLicenseId)&&(identical(other.orderLimit, orderLimit) || other.orderLimit == orderLimit)&&(identical(other.owner, owner) || other.owner == owner)&&(identical(other.userBankInfo, userBankInfo) || other.userBankInfo == userBankInfo)&&(identical(other.wallet, wallet) || other.wallet == wallet));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hashAll([runtimeType,id,user,address,key,trash,ownerIdForeignKey,userIdForeignKey,addressIdForeignKey,hasChainCompany,userBankIdForeignKey,cityOperator,unitName,gisCode,operatingLicenceCapacity,numberOfHalls,tenant,hasTenant,personType,economicCode,systemCode,epidemiologicalCode,breedingUniqueId,totalCapacity,licenceNumber,healthCertificateNumber,numberOfRequests,hatchingDate,lastPartyDate,numberOfIncubators,herdAgeByDay,herdAgeByWeek,numberOfParty,communicationType,cooperative,dateOfRegister,unitStatus,active,const DeepCollectionEquality().hash(identityDocuments),samasatUserCode,baseOrder,incubationDate,walletAmount,city,cityNumber,cityName,provinceNumber,provinceName,walletIdForeignKey,poultryIdKey,lat,long,date,killingAveAge,activeLeftOver,killingAveCount,killingAveWeight,killingLiveWeight,killingCarcassesWeight,killingLossWeightPercent,realKillingAveWeight,realKillingLiveWeight,realKillingCarcassesWeight,realKillingLossWeightPercent,interestLicenseId,orderLimit,owner,userBankInfo,wallet]);

@override
String toString() {
  return 'Poultry(id: $id, user: $user, address: $address, key: $key, trash: $trash, ownerIdForeignKey: $ownerIdForeignKey, userIdForeignKey: $userIdForeignKey, addressIdForeignKey: $addressIdForeignKey, hasChainCompany: $hasChainCompany, userBankIdForeignKey: $userBankIdForeignKey, cityOperator: $cityOperator, unitName: $unitName, gisCode: $gisCode, operatingLicenceCapacity: $operatingLicenceCapacity, numberOfHalls: $numberOfHalls, tenant: $tenant, hasTenant: $hasTenant, personType: $personType, economicCode: $economicCode, systemCode: $systemCode, epidemiologicalCode: $epidemiologicalCode, breedingUniqueId: $breedingUniqueId, totalCapacity: $totalCapacity, licenceNumber: $licenceNumber, healthCertificateNumber: $healthCertificateNumber, numberOfRequests: $numberOfRequests, hatchingDate: $hatchingDate, lastPartyDate: $lastPartyDate, numberOfIncubators: $numberOfIncubators, herdAgeByDay: $herdAgeByDay, herdAgeByWeek: $herdAgeByWeek, numberOfParty: $numberOfParty, communicationType: $communicationType, cooperative: $cooperative, dateOfRegister: $dateOfRegister, unitStatus: $unitStatus, active: $active, identityDocuments: $identityDocuments, samasatUserCode: $samasatUserCode, baseOrder: $baseOrder, incubationDate: $incubationDate, walletAmount: $walletAmount, city: $city, cityNumber: $cityNumber, cityName: $cityName, provinceNumber: $provinceNumber, provinceName: $provinceName, walletIdForeignKey: $walletIdForeignKey, poultryIdKey: $poultryIdKey, lat: $lat, long: $long, date: $date, killingAveAge: $killingAveAge, activeLeftOver: $activeLeftOver, killingAveCount: $killingAveCount, killingAveWeight: $killingAveWeight, killingLiveWeight: $killingLiveWeight, killingCarcassesWeight: $killingCarcassesWeight, killingLossWeightPercent: $killingLossWeightPercent, realKillingAveWeight: $realKillingAveWeight, realKillingLiveWeight: $realKillingLiveWeight, realKillingCarcassesWeight: $realKillingCarcassesWeight, realKillingLossWeightPercent: $realKillingLossWeightPercent, interestLicenseId: $interestLicenseId, orderLimit: $orderLimit, owner: $owner, userBankInfo: $userBankInfo, wallet: $wallet)';
}


}

/// @nodoc
abstract mixin class _$PoultryCopyWith<$Res> implements $PoultryCopyWith<$Res> {
  factory _$PoultryCopyWith(_Poultry value, $Res Function(_Poultry) _then) = __$PoultryCopyWithImpl;
@override @useResult
$Res call({
 int? id, PoultryUser? user, PoultryAddress? address, String? key, bool? trash, int? ownerIdForeignKey, int? userIdForeignKey, int? addressIdForeignKey, bool? hasChainCompany, int? userBankIdForeignKey, String? cityOperator, String? unitName, String? gisCode, num? operatingLicenceCapacity, num? numberOfHalls, bool? tenant, bool? hasTenant, String? personType, String? economicCode, String? systemCode, String? epidemiologicalCode, String? breedingUniqueId, num? totalCapacity, String? licenceNumber, String? healthCertificateNumber, num? numberOfRequests, String? hatchingDate, String? lastPartyDate, num? numberOfIncubators, num? herdAgeByDay, num? herdAgeByWeek, num? numberOfParty, String? communicationType, String? cooperative, String? dateOfRegister, String? unitStatus, bool? active, dynamic identityDocuments, String? samasatUserCode, String? baseOrder, String? incubationDate, num? walletAmount, num? city, num? cityNumber, String? cityName, num? provinceNumber, String? provinceName, int? walletIdForeignKey, int? poultryIdKey, num? lat, num? long, String? date, num? killingAveAge, num? activeLeftOver, num? killingAveCount, num? killingAveWeight, num? killingLiveWeight, num? killingCarcassesWeight, num? killingLossWeightPercent, num? realKillingAveWeight, num? realKillingLiveWeight, num? realKillingCarcassesWeight, num? realKillingLossWeightPercent, int? interestLicenseId, bool? orderLimit, int? owner, int? userBankInfo, int? wallet
});


@override $PoultryUserCopyWith<$Res>? get user;@override $PoultryAddressCopyWith<$Res>? get address;

}
/// @nodoc
class __$PoultryCopyWithImpl<$Res>
    implements _$PoultryCopyWith<$Res> {
  __$PoultryCopyWithImpl(this._self, this._then);

  final _Poultry _self;
  final $Res Function(_Poultry) _then;

/// Create a copy of Poultry
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? user = freezed,Object? address = freezed,Object? key = freezed,Object? trash = freezed,Object? ownerIdForeignKey = freezed,Object? userIdForeignKey = freezed,Object? addressIdForeignKey = freezed,Object? hasChainCompany = freezed,Object? userBankIdForeignKey = freezed,Object? cityOperator = freezed,Object? unitName = freezed,Object? gisCode = freezed,Object? operatingLicenceCapacity = freezed,Object? numberOfHalls = freezed,Object? tenant = freezed,Object? hasTenant = freezed,Object? personType = freezed,Object? economicCode = freezed,Object? systemCode = freezed,Object? epidemiologicalCode = freezed,Object? breedingUniqueId = freezed,Object? totalCapacity = freezed,Object? licenceNumber = freezed,Object? healthCertificateNumber = freezed,Object? numberOfRequests = freezed,Object? hatchingDate = freezed,Object? lastPartyDate = freezed,Object? numberOfIncubators = freezed,Object? herdAgeByDay = freezed,Object? herdAgeByWeek = freezed,Object? numberOfParty = freezed,Object? communicationType = freezed,Object? cooperative = freezed,Object? dateOfRegister = freezed,Object? unitStatus = freezed,Object? active = freezed,Object? identityDocuments = freezed,Object? samasatUserCode = freezed,Object? baseOrder = freezed,Object? incubationDate = freezed,Object? walletAmount = freezed,Object? city = freezed,Object? cityNumber = freezed,Object? cityName = freezed,Object? provinceNumber = freezed,Object? provinceName = freezed,Object? walletIdForeignKey = freezed,Object? poultryIdKey = freezed,Object? lat = freezed,Object? long = freezed,Object? date = freezed,Object? killingAveAge = freezed,Object? activeLeftOver = freezed,Object? killingAveCount = freezed,Object? killingAveWeight = freezed,Object? killingLiveWeight = freezed,Object? killingCarcassesWeight = freezed,Object? killingLossWeightPercent = freezed,Object? realKillingAveWeight = freezed,Object? realKillingLiveWeight = freezed,Object? realKillingCarcassesWeight = freezed,Object? realKillingLossWeightPercent = freezed,Object? interestLicenseId = freezed,Object? orderLimit = freezed,Object? owner = freezed,Object? userBankInfo = freezed,Object? wallet = freezed,}) {
  return _then(_Poultry(
id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
as int?,user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable
as PoultryUser?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable
as PoultryAddress?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable
as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable
as bool?,ownerIdForeignKey: freezed == ownerIdForeignKey ? _self.ownerIdForeignKey : ownerIdForeignKey // ignore: cast_nullable_to_non_nullable
as int?,userIdForeignKey: freezed == userIdForeignKey ? _self.userIdForeignKey : userIdForeignKey // ignore: cast_nullable_to_non_nullable
as int?,addressIdForeignKey: freezed == addressIdForeignKey ? _self.addressIdForeignKey : addressIdForeignKey // ignore: cast_nullable_to_non_nullable
as int?,hasChainCompany: freezed == hasChainCompany ? _self.hasChainCompany : hasChainCompany // ignore: cast_nullable_to_non_nullable
as bool?,userBankIdForeignKey: freezed == userBankIdForeignKey ? _self.userBankIdForeignKey : userBankIdForeignKey // ignore: cast_nullable_to_non_nullable
as int?,cityOperator: freezed == cityOperator ? _self.cityOperator : cityOperator // ignore: cast_nullable_to_non_nullable
as String?,unitName: freezed == unitName ? _self.unitName : unitName // ignore: cast_nullable_to_non_nullable
as String?,gisCode: freezed == gisCode ? _self.gisCode : gisCode // ignore: cast_nullable_to_non_nullable
as String?,operatingLicenceCapacity: freezed == operatingLicenceCapacity ? _self.operatingLicenceCapacity : operatingLicenceCapacity // ignore: cast_nullable_to_non_nullable
as num?,numberOfHalls: freezed == numberOfHalls ? _self.numberOfHalls : numberOfHalls // ignore: cast_nullable_to_non_nullable
as num?,tenant: freezed == tenant ? _self.tenant : tenant // ignore: cast_nullable_to_non_nullable
as bool?,hasTenant: freezed == hasTenant ? _self.hasTenant : hasTenant // ignore: cast_nullable_to_non_nullable
as bool?,personType: freezed == personType ? _self.personType : personType // ignore: cast_nullable_to_non_nullable
as String?,economicCode: freezed == economicCode ? _self.economicCode : economicCode // ignore: cast_nullable_to_non_nullable
as String?,systemCode: freezed == systemCode ? _self.systemCode : systemCode // ignore: cast_nullable_to_non_nullable
as String?,epidemiologicalCode: freezed == epidemiologicalCode ? _self.epidemiologicalCode : epidemiologicalCode // ignore: cast_nullable_to_non_nullable
as String?,breedingUniqueId: freezed == breedingUniqueId ? _self.breedingUniqueId : breedingUniqueId // ignore: cast_nullable_to_non_nullable
as String?,totalCapacity: freezed == totalCapacity ? _self.totalCapacity : totalCapacity // ignore: cast_nullable_to_non_nullable
as num?,licenceNumber: freezed == licenceNumber ? _self.licenceNumber : licenceNumber // ignore: cast_nullable_to_non_nullable
as String?,healthCertificateNumber: freezed == healthCertificateNumber ? _self.healthCertificateNumber : healthCertificateNumber // ignore: cast_nullable_to_non_nullable
as String?,numberOfRequests: freezed == numberOfRequests ? _self.numberOfRequests : numberOfRequests // ignore: cast_nullable_to_non_nullable
as num?,hatchingDate: freezed == hatchingDate ? _self.hatchingDate : hatchingDate // ignore: cast_nullable_to_non_nullable
as String?,lastPartyDate: freezed == lastPartyDate ? _self.lastPartyDate : lastPartyDate // ignore: cast_nullable_to_non_nullable
as String?,numberOfIncubators: freezed == numberOfIncubators ? _self.numberOfIncubators : numberOfIncubators // ignore: cast_nullable_to_non_nullable
as num?,herdAgeByDay: freezed == herdAgeByDay ? _self.herdAgeByDay : herdAgeByDay // ignore: cast_nullable_to_non_nullable
as num?,herdAgeByWeek: freezed == herdAgeByWeek ? _self.herdAgeByWeek : herdAgeByWeek // ignore: cast_nullable_to_non_nullable
as num?,numberOfParty: freezed == numberOfParty ? _self.numberOfParty : numberOfParty // ignore: cast_nullable_to_non_nullable
as num?,communicationType: freezed == communicationType ? _self.communicationType : communicationType // ignore: cast_nullable_to_non_nullable
as String?,cooperative: freezed == cooperative ? _self.cooperative : cooperative // ignore: cast_nullable_to_non_nullable
as String?,dateOfRegister: freezed == dateOfRegister ? _self.dateOfRegister : dateOfRegister // ignore: cast_nullable_to_non_nullable
as String?,unitStatus: freezed == unitStatus ? _self.unitStatus : unitStatus // ignore: cast_nullable_to_non_nullable
as String?,active: freezed == active ? _self.active : active // ignore: cast_nullable_to_non_nullable
as bool?,identityDocuments: freezed == identityDocuments ? _self.identityDocuments : identityDocuments // ignore: cast_nullable_to_non_nullable
as dynamic,samasatUserCode: freezed == samasatUserCode ? _self.samasatUserCode : samasatUserCode // ignore: cast_nullable_to_non_nullable
as String?,baseOrder: freezed == baseOrder ? _self.baseOrder : baseOrder // ignore: cast_nullable_to_non_nullable
as String?,incubationDate: freezed == incubationDate ? _self.incubationDate : incubationDate // ignore: cast_nullable_to_non_nullable
as String?,walletAmount: freezed == walletAmount ? _self.walletAmount : walletAmount // ignore: cast_nullable_to_non_nullable
as num?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable
as num?,cityNumber: freezed == cityNumber ? _self.cityNumber : cityNumber // ignore: cast_nullable_to_non_nullable
as num?,cityName: freezed == cityName ? _self.cityName : cityName // ignore: cast_nullable_to_non_nullable
as String?,provinceNumber: freezed == provinceNumber ? _self.provinceNumber : provinceNumber // ignore: cast_nullable_to_non_nullable
as num?,provinceName: freezed == provinceName ? _self.provinceName : provinceName // ignore: cast_nullable_to_non_nullable
as String?,walletIdForeignKey: freezed == walletIdForeignKey ? _self.walletIdForeignKey : walletIdForeignKey // ignore: cast_nullable_to_non_nullable
as int?,poultryIdKey: freezed == poultryIdKey ? _self.poultryIdKey : poultryIdKey // ignore: cast_nullable_to_non_nullable
as int?,lat: freezed == lat ? _self.lat : lat // ignore: cast_nullable_to_non_nullable
as num?,long: freezed == long ? _self.long : long // ignore: cast_nullable_to_non_nullable
as num?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable
as String?,killingAveAge: freezed == killingAveAge ? _self.killingAveAge : killingAveAge // ignore: cast_nullable_to_non_nullable
as num?,activeLeftOver: freezed == activeLeftOver ? _self.activeLeftOver : activeLeftOver // ignore: cast_nullable_to_non_nullable
as num?,killingAveCount: freezed == killingAveCount ? _self.killingAveCount : killingAveCount // ignore: cast_nullable_to_non_nullable
as num?,killingAveWeight: freezed == killingAveWeight ? _self.killingAveWeight : killingAveWeight // ignore: cast_nullable_to_non_nullable
as num?,killingLiveWeight: freezed == killingLiveWeight ? _self.killingLiveWeight : killingLiveWeight // ignore: cast_nullable_to_non_nullable
as num?,killingCarcassesWeight: freezed == killingCarcassesWeight ? _self.killingCarcassesWeight : killingCarcassesWeight // ignore: cast_nullable_to_non_nullable
as num?,killingLossWeightPercent: freezed == killingLossWeightPercent ? _self.killingLossWeightPercent : killingLossWeightPercent // ignore: cast_nullable_to_non_nullable
as num?,realKillingAveWeight: freezed == realKillingAveWeight ? _self.realKillingAveWeight : realKillingAveWeight // ignore: cast_nullable_to_non_nullable
as num?,realKillingLiveWeight: freezed == realKillingLiveWeight ? _self.realKillingLiveWeight : realKillingLiveWeight // ignore: cast_nullable_to_non_nullable
as num?,realKillingCarcassesWeight: freezed == realKillingCarcassesWeight ? _self.realKillingCarcassesWeight : realKillingCarcassesWeight // ignore: cast_nullable_to_non_nullable
as num?,realKillingLossWeightPercent: freezed == realKillingLossWeightPercent ? _self.realKillingLossWeightPercent : realKillingLossWeightPercent // ignore: cast_nullable_to_non_nullable
as num?,interestLicenseId: freezed == interestLicenseId ? _self.interestLicenseId : interestLicenseId // ignore: cast_nullable_to_non_nullable
as int?,orderLimit: freezed == orderLimit ? _self.orderLimit : orderLimit // ignore: cast_nullable_to_non_nullable
as bool?,owner: freezed == owner ? _self.owner : owner // ignore: cast_nullable_to_non_nullable
as int?,userBankInfo: freezed == userBankInfo ? _self.userBankInfo : userBankInfo // ignore: cast_nullable_to_non_nullable
as int?,wallet: freezed == wallet ? _self.wallet : wallet // ignore: cast_nullable_to_non_nullable
as int?,
  ));
}

/// Create a copy of Poultry
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$PoultryUserCopyWith<$Res>? get user {
    if (_self.user == null) {
    return null;
  }

  return $PoultryUserCopyWith<$Res>(_self.user!, (value) {
    return _then(_self.copyWith(user: value));
  });
}/// Create a copy of Poultry
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$PoultryAddressCopyWith<$Res>? get address {
    if (_self.address == null) {
    return null;
  }

  return $PoultryAddressCopyWith<$Res>(_self.address!, (value) {
    return _then(_self.copyWith(address: value));
  });
}
}


/// @nodoc
mixin _$PoultryUser {

 String? get fullname; String? get mobile;
/// Create a copy of PoultryUser
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$PoultryUserCopyWith<PoultryUser> get copyWith => _$PoultryUserCopyWithImpl<PoultryUser>(this as PoultryUser, _$identity);

  /// Serializes this PoultryUser to a JSON map.
  Map<String, dynamic> toJson();


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is PoultryUser&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.mobile, mobile) || other.mobile == mobile));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,fullname,mobile);

@override
String toString() {
  return 'PoultryUser(fullname: $fullname, mobile: $mobile)';
}


}

/// @nodoc
abstract mixin class $PoultryUserCopyWith<$Res>  {
  factory $PoultryUserCopyWith(PoultryUser value, $Res Function(PoultryUser) _then) = _$PoultryUserCopyWithImpl;
@useResult
$Res call({
 String? fullname, String? mobile
});




}
/// @nodoc
class _$PoultryUserCopyWithImpl<$Res>
    implements $PoultryUserCopyWith<$Res> {
  _$PoultryUserCopyWithImpl(this._self, this._then);

  final PoultryUser _self;
  final $Res Function(PoultryUser) _then;

/// Create a copy of PoultryUser
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? fullname = freezed,Object? mobile = freezed,}) {
  return _then(_self.copyWith(
fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable
as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable
as String?,
  ));
}

}


/// Adds pattern-matching-related methods to [PoultryUser].
extension PoultryUserPatterns on PoultryUser {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _PoultryUser value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _PoultryUser() when $default != null:
return $default(_that);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case final Subclass2 value:
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _PoultryUser value)  $default,){
final _that = this;
switch (_that) {
case _PoultryUser():
return $default(_that);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _PoultryUser value)?  $default,){
final _that = this;
switch (_that) {
case _PoultryUser() when $default != null:
return $default(_that);case _:
  return null;

}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( String? fullname,  String? mobile)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _PoultryUser() when $default != null:
return $default(_that.fullname,_that.mobile);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case Subclass2(:final field2):
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( String? fullname,  String? mobile)  $default,) {final _that = this;
switch (_that) {
case _PoultryUser():
return $default(_that.fullname,_that.mobile);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( String? fullname,  String? mobile)?  $default,) {final _that = this;
switch (_that) {
case _PoultryUser() when $default != null:
return $default(_that.fullname,_that.mobile);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _PoultryUser implements PoultryUser {
  const _PoultryUser({this.fullname, this.mobile});
  factory _PoultryUser.fromJson(Map<String, dynamic> json) => _$PoultryUserFromJson(json);

@override final  String? fullname;
@override final  String? mobile;

/// Create a copy of PoultryUser
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$PoultryUserCopyWith<_PoultryUser> get copyWith => __$PoultryUserCopyWithImpl<_PoultryUser>(this, _$identity);

@override
Map<String, dynamic> toJson() {
  return _$PoultryUserToJson(this, );
}

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _PoultryUser&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.mobile, mobile) || other.mobile == mobile));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,fullname,mobile);

@override
String toString() {
  return 'PoultryUser(fullname: $fullname, mobile: $mobile)';
}


}

/// @nodoc
abstract mixin class _$PoultryUserCopyWith<$Res> implements $PoultryUserCopyWith<$Res> {
  factory _$PoultryUserCopyWith(_PoultryUser value, $Res Function(_PoultryUser) _then) = __$PoultryUserCopyWithImpl;
@override @useResult
$Res call({
 String? fullname, String? mobile
});




}
/// @nodoc
class __$PoultryUserCopyWithImpl<$Res>
    implements _$PoultryUserCopyWith<$Res> {
  __$PoultryUserCopyWithImpl(this._self, this._then);

  final _PoultryUser _self;
  final $Res Function(_PoultryUser) _then;

/// Create a copy of PoultryUser
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? fullname = freezed,Object? mobile = freezed,}) {
  return _then(_PoultryUser(
fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable
as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable
as String?,
  ));
}


}


/// @nodoc
mixin _$PoultryAddress {

 ProvinceRef? get province; CityRef? get city; String? get address; String? get postalCode;
/// Create a copy of PoultryAddress
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$PoultryAddressCopyWith<PoultryAddress> get copyWith => _$PoultryAddressCopyWithImpl<PoultryAddress>(this as PoultryAddress, _$identity);

  /// Serializes this PoultryAddress to a JSON map.
  Map<String, dynamic> toJson();


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is PoultryAddress&&(identical(other.province, province) || other.province == province)&&(identical(other.city, city) || other.city == city)&&(identical(other.address, address) || other.address == address)&&(identical(other.postalCode, postalCode) || other.postalCode == postalCode));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,province,city,address,postalCode);

@override
String toString() {
  return 'PoultryAddress(province: $province, city: $city, address: $address, postalCode: $postalCode)';
}


}

/// @nodoc
abstract mixin class $PoultryAddressCopyWith<$Res>  {
  factory $PoultryAddressCopyWith(PoultryAddress value, $Res Function(PoultryAddress) _then) = _$PoultryAddressCopyWithImpl;
@useResult
$Res call({
 ProvinceRef? province, CityRef? city, String? address, String? postalCode
});


$ProvinceRefCopyWith<$Res>? get province;$CityRefCopyWith<$Res>? get city;

}
/// @nodoc
class _$PoultryAddressCopyWithImpl<$Res>
    implements $PoultryAddressCopyWith<$Res> {
  _$PoultryAddressCopyWithImpl(this._self, this._then);

  final PoultryAddress _self;
  final $Res Function(PoultryAddress) _then;

/// Create a copy of PoultryAddress
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? province = freezed,Object? city = freezed,Object? address = freezed,Object? postalCode = freezed,}) {
  return _then(_self.copyWith(
province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable
as ProvinceRef?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable
as CityRef?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable
as String?,postalCode: freezed == postalCode ? _self.postalCode : postalCode // ignore: cast_nullable_to_non_nullable
as String?,
  ));
}
/// Create a copy of PoultryAddress
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$ProvinceRefCopyWith<$Res>? get province {
    if (_self.province == null) {
    return null;
  }

  return $ProvinceRefCopyWith<$Res>(_self.province!, (value) {
    return _then(_self.copyWith(province: value));
  });
}/// Create a copy of PoultryAddress
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$CityRefCopyWith<$Res>? get city {
    if (_self.city == null) {
    return null;
  }

  return $CityRefCopyWith<$Res>(_self.city!, (value) {
    return _then(_self.copyWith(city: value));
  });
}
}


/// Adds pattern-matching-related methods to [PoultryAddress].
extension PoultryAddressPatterns on PoultryAddress {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _PoultryAddress value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _PoultryAddress() when $default != null:
return $default(_that);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case final Subclass2 value:
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _PoultryAddress value)  $default,){
final _that = this;
switch (_that) {
case _PoultryAddress():
return $default(_that);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _PoultryAddress value)?  $default,){
final _that = this;
switch (_that) {
case _PoultryAddress() when $default != null:
return $default(_that);case _:
  return null;

}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( ProvinceRef? province,  CityRef? city,  String? address,  String? postalCode)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _PoultryAddress() when $default != null:
return $default(_that.province,_that.city,_that.address,_that.postalCode);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case Subclass2(:final field2):
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( ProvinceRef? province,  CityRef? city,  String? address,  String? postalCode)  $default,) {final _that = this;
switch (_that) {
case _PoultryAddress():
return $default(_that.province,_that.city,_that.address,_that.postalCode);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( ProvinceRef? province,  CityRef? city,  String? address,  String? postalCode)?  $default,) {final _that = this;
switch (_that) {
case _PoultryAddress() when $default != null:
return $default(_that.province,_that.city,_that.address,_that.postalCode);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _PoultryAddress implements PoultryAddress {
  const _PoultryAddress({this.province, this.city, this.address, this.postalCode});
  factory _PoultryAddress.fromJson(Map<String, dynamic> json) => _$PoultryAddressFromJson(json);

@override final  ProvinceRef? province;
@override final  CityRef? city;
@override final  String? address;
@override final  String? postalCode;

/// Create a copy of PoultryAddress
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$PoultryAddressCopyWith<_PoultryAddress> get copyWith => __$PoultryAddressCopyWithImpl<_PoultryAddress>(this, _$identity);

@override
Map<String, dynamic> toJson() {
  return _$PoultryAddressToJson(this, );
}

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _PoultryAddress&&(identical(other.province, province) || other.province == province)&&(identical(other.city, city) || other.city == city)&&(identical(other.address, address) || other.address == address)&&(identical(other.postalCode, postalCode) || other.postalCode == postalCode));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,province,city,address,postalCode);

@override
String toString() {
  return 'PoultryAddress(province: $province, city: $city, address: $address, postalCode: $postalCode)';
}


}

/// @nodoc
abstract mixin class _$PoultryAddressCopyWith<$Res> implements $PoultryAddressCopyWith<$Res> {
  factory _$PoultryAddressCopyWith(_PoultryAddress value, $Res Function(_PoultryAddress) _then) = __$PoultryAddressCopyWithImpl;
@override @useResult
$Res call({
 ProvinceRef? province, CityRef? city, String? address, String? postalCode
});


@override $ProvinceRefCopyWith<$Res>? get province;@override $CityRefCopyWith<$Res>? get city;

}
/// @nodoc
class __$PoultryAddressCopyWithImpl<$Res>
    implements _$PoultryAddressCopyWith<$Res> {
  __$PoultryAddressCopyWithImpl(this._self, this._then);

  final _PoultryAddress _self;
  final $Res Function(_PoultryAddress) _then;

/// Create a copy of PoultryAddress
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? province = freezed,Object? city = freezed,Object? address = freezed,Object? postalCode = freezed,}) {
  return _then(_PoultryAddress(
province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable
as ProvinceRef?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable
as CityRef?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable
as String?,postalCode: freezed == postalCode ? _self.postalCode : postalCode // ignore: cast_nullable_to_non_nullable
as String?,
  ));
}

/// Create a copy of PoultryAddress
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$ProvinceRefCopyWith<$Res>? get province {
    if (_self.province == null) {
    return null;
  }

  return $ProvinceRefCopyWith<$Res>(_self.province!, (value) {
    return _then(_self.copyWith(province: value));
  });
}/// Create a copy of PoultryAddress
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$CityRefCopyWith<$Res>? get city {
    if (_self.city == null) {
    return null;
  }

  return $CityRefCopyWith<$Res>(_self.city!, (value) {
    return _then(_self.copyWith(city: value));
  });
}
}


/// @nodoc
mixin _$ProvinceRef {

 String? get key; String? get name;
/// Create a copy of ProvinceRef
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$ProvinceRefCopyWith<ProvinceRef> get copyWith => _$ProvinceRefCopyWithImpl<ProvinceRef>(this as ProvinceRef, _$identity);

  /// Serializes this ProvinceRef to a JSON map.
  Map<String, dynamic> toJson();


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is ProvinceRef&&(identical(other.key, key) || other.key == key)&&(identical(other.name, name) || other.name == name));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,key,name);

@override
String toString() {
  return 'ProvinceRef(key: $key, name: $name)';
}


}

/// @nodoc
abstract mixin class $ProvinceRefCopyWith<$Res>  {
  factory $ProvinceRefCopyWith(ProvinceRef value, $Res Function(ProvinceRef) _then) = _$ProvinceRefCopyWithImpl;
@useResult
$Res call({
 String? key, String? name
});




}
/// @nodoc
class _$ProvinceRefCopyWithImpl<$Res>
    implements $ProvinceRefCopyWith<$Res> {
  _$ProvinceRefCopyWithImpl(this._self, this._then);

  final ProvinceRef _self;
  final $Res Function(ProvinceRef) _then;

/// Create a copy of ProvinceRef
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? key = freezed,Object? name = freezed,}) {
  return _then(_self.copyWith(
key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable
as String?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable
as String?,
  ));
}

}


/// Adds pattern-matching-related methods to [ProvinceRef].
extension ProvinceRefPatterns on ProvinceRef {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _ProvinceRef value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _ProvinceRef() when $default != null:
return $default(_that);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case final Subclass2 value:
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _ProvinceRef value)  $default,){
final _that = this;
switch (_that) {
case _ProvinceRef():
return $default(_that);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _ProvinceRef value)?  $default,){
final _that = this;
switch (_that) {
case _ProvinceRef() when $default != null:
return $default(_that);case _:
  return null;

}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( String? key,  String? name)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _ProvinceRef() when $default != null:
return $default(_that.key,_that.name);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case Subclass2(:final field2):
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( String? key,  String? name)  $default,) {final _that = this;
switch (_that) {
case _ProvinceRef():
return $default(_that.key,_that.name);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( String? key,  String? name)?  $default,) {final _that = this;
switch (_that) {
case _ProvinceRef() when $default != null:
return $default(_that.key,_that.name);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _ProvinceRef implements ProvinceRef {
  const _ProvinceRef({this.key, this.name});
  factory _ProvinceRef.fromJson(Map<String, dynamic> json) => _$ProvinceRefFromJson(json);

@override final  String? key;
@override final  String? name;

/// Create a copy of ProvinceRef
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$ProvinceRefCopyWith<_ProvinceRef> get copyWith => __$ProvinceRefCopyWithImpl<_ProvinceRef>(this, _$identity);

@override
Map<String, dynamic> toJson() {
  return _$ProvinceRefToJson(this, );
}

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _ProvinceRef&&(identical(other.key, key) || other.key == key)&&(identical(other.name, name) || other.name == name));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,key,name);

@override
String toString() {
  return 'ProvinceRef(key: $key, name: $name)';
}


}

/// @nodoc
abstract mixin class _$ProvinceRefCopyWith<$Res> implements $ProvinceRefCopyWith<$Res> {
  factory _$ProvinceRefCopyWith(_ProvinceRef value, $Res Function(_ProvinceRef) _then) = __$ProvinceRefCopyWithImpl;
@override @useResult
$Res call({
 String? key, String? name
});




}
/// @nodoc
class __$ProvinceRefCopyWithImpl<$Res>
    implements _$ProvinceRefCopyWith<$Res> {
  __$ProvinceRefCopyWithImpl(this._self, this._then);

  final _ProvinceRef _self;
  final $Res Function(_ProvinceRef) _then;

/// Create a copy of ProvinceRef
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? key = freezed,Object? name = freezed,}) {
  return _then(_ProvinceRef(
key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable
as String?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable
as String?,
  ));
}


}


/// @nodoc
mixin _$CityRef {

 String? get key; String? get name;
/// Create a copy of CityRef
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$CityRefCopyWith<CityRef> get copyWith => _$CityRefCopyWithImpl<CityRef>(this as CityRef, _$identity);

  /// Serializes this CityRef to a JSON map.
  Map<String, dynamic> toJson();


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is CityRef&&(identical(other.key, key) || other.key == key)&&(identical(other.name, name) || other.name == name));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,key,name);

@override
String toString() {
  return 'CityRef(key: $key, name: $name)';
}


}

/// @nodoc
abstract mixin class $CityRefCopyWith<$Res>  {
  factory $CityRefCopyWith(CityRef value, $Res Function(CityRef) _then) = _$CityRefCopyWithImpl;
@useResult
$Res call({
 String? key, String? name
});




}
/// @nodoc
class _$CityRefCopyWithImpl<$Res>
    implements $CityRefCopyWith<$Res> {
  _$CityRefCopyWithImpl(this._self, this._then);

  final CityRef _self;
  final $Res Function(CityRef) _then;

/// Create a copy of CityRef
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? key = freezed,Object? name = freezed,}) {
  return _then(_self.copyWith(
key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable
as String?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable
as String?,
  ));
}

}


/// Adds pattern-matching-related methods to [CityRef].
extension CityRefPatterns on CityRef {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _CityRef value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _CityRef() when $default != null:
return $default(_that);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case final Subclass2 value:
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _CityRef value)  $default,){
final _that = this;
switch (_that) {
case _CityRef():
return $default(_that);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _CityRef value)?  $default,){
final _that = this;
switch (_that) {
case _CityRef() when $default != null:
return $default(_that);case _:
  return null;

}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( String? key,  String? name)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _CityRef() when $default != null:
return $default(_that.key,_that.name);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case Subclass2(:final field2):
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( String? key,  String? name)  $default,) {final _that = this;
switch (_that) {
case _CityRef():
return $default(_that.key,_that.name);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( String? key,  String? name)?  $default,) {final _that = this;
switch (_that) {
case _CityRef() when $default != null:
return $default(_that.key,_that.name);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _CityRef implements CityRef {
  const _CityRef({this.key, this.name});
  factory _CityRef.fromJson(Map<String, dynamic> json) => _$CityRefFromJson(json);

@override final  String? key;
@override final  String? name;

/// Create a copy of CityRef
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$CityRefCopyWith<_CityRef> get copyWith => __$CityRefCopyWithImpl<_CityRef>(this, _$identity);

@override
Map<String, dynamic> toJson() {
  return _$CityRefToJson(this, );
}

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _CityRef&&(identical(other.key, key) || other.key == key)&&(identical(other.name, name) || other.name == name));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,key,name);

@override
String toString() {
  return 'CityRef(key: $key, name: $name)';
}


}

/// @nodoc
abstract mixin class _$CityRefCopyWith<$Res> implements $CityRefCopyWith<$Res> {
  factory _$CityRefCopyWith(_CityRef value, $Res Function(_CityRef) _then) = __$CityRefCopyWithImpl;
@override @useResult
$Res call({
 String? key, String? name
});




}
/// @nodoc
class __$CityRefCopyWithImpl<$Res>
    implements _$CityRefCopyWith<$Res> {
  __$CityRefCopyWithImpl(this._self, this._then);

  final _CityRef _self;
  final $Res Function(_CityRef) _then;

/// Create a copy of CityRef
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? key = freezed,Object? name = freezed,}) {
  return _then(_CityRef(
key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable
as String?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable
as String?,
  ));
}


}


/// @nodoc
mixin _$ChainCompany {

 ChainUser? get user; dynamic get userBankInfo; String? get key; bool? get trash; String? get name; String? get city; String? get province; String? get postalCode; String? get address; num? get wallet;
/// Create a copy of ChainCompany
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$ChainCompanyCopyWith<ChainCompany> get copyWith => _$ChainCompanyCopyWithImpl<ChainCompany>(this as ChainCompany, _$identity);

  /// Serializes this ChainCompany to a JSON map.
  Map<String, dynamic> toJson();


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is ChainCompany&&(identical(other.user, user) || other.user == user)&&const DeepCollectionEquality().equals(other.userBankInfo, userBankInfo)&&(identical(other.key, key) || other.key == key)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.name, name) || other.name == name)&&(identical(other.city, city) || other.city == city)&&(identical(other.province, province) || other.province == province)&&(identical(other.postalCode, postalCode) || other.postalCode == postalCode)&&(identical(other.address, address) || other.address == address)&&(identical(other.wallet, wallet) || other.wallet == wallet));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,user,const DeepCollectionEquality().hash(userBankInfo),key,trash,name,city,province,postalCode,address,wallet);

@override
String toString() {
  return 'ChainCompany(user: $user, userBankInfo: $userBankInfo, key: $key, trash: $trash, name: $name, city: $city, province: $province, postalCode: $postalCode, address: $address, wallet: $wallet)';
}


}

/// @nodoc
abstract mixin class $ChainCompanyCopyWith<$Res>  {
  factory $ChainCompanyCopyWith(ChainCompany value, $Res Function(ChainCompany) _then) = _$ChainCompanyCopyWithImpl;
@useResult
$Res call({
 ChainUser? user, dynamic userBankInfo, String? key, bool? trash, String? name, String? city, String? province, String? postalCode, String? address, num? wallet
});


$ChainUserCopyWith<$Res>? get user;

}
/// @nodoc
class _$ChainCompanyCopyWithImpl<$Res>
    implements $ChainCompanyCopyWith<$Res> {
  _$ChainCompanyCopyWithImpl(this._self, this._then);

  final ChainCompany _self;
  final $Res Function(ChainCompany) _then;

/// Create a copy of ChainCompany
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? user = freezed,Object? userBankInfo = freezed,Object? key = freezed,Object? trash = freezed,Object? name = freezed,Object? city = freezed,Object? province = freezed,Object? postalCode = freezed,Object? address = freezed,Object? wallet = freezed,}) {
  return _then(_self.copyWith(
user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable
as ChainUser?,userBankInfo: freezed == userBankInfo ? _self.userBankInfo : userBankInfo // ignore: cast_nullable_to_non_nullable
as dynamic,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable
as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable
as bool?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable
as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable
as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable
as String?,postalCode: freezed == postalCode ? _self.postalCode : postalCode // ignore: cast_nullable_to_non_nullable
as String?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable
as String?,wallet: freezed == wallet ? _self.wallet : wallet // ignore: cast_nullable_to_non_nullable
as num?,
  ));
}
/// Create a copy of ChainCompany
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$ChainUserCopyWith<$Res>? get user {
    if (_self.user == null) {
    return null;
  }

  return $ChainUserCopyWith<$Res>(_self.user!, (value) {
    return _then(_self.copyWith(user: value));
  });
}
}


/// Adds pattern-matching-related methods to [ChainCompany].
extension ChainCompanyPatterns on ChainCompany {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _ChainCompany value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _ChainCompany() when $default != null:
return $default(_that);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case final Subclass2 value:
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _ChainCompany value)  $default,){
final _that = this;
switch (_that) {
case _ChainCompany():
return $default(_that);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _ChainCompany value)?  $default,){
final _that = this;
switch (_that) {
case _ChainCompany() when $default != null:
return $default(_that);case _:
  return null;

}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( ChainUser? user,  dynamic userBankInfo,  String? key,  bool? trash,  String? name,  String? city,  String? province,  String? postalCode,  String? address,  num? wallet)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _ChainCompany() when $default != null:
return $default(_that.user,_that.userBankInfo,_that.key,_that.trash,_that.name,_that.city,_that.province,_that.postalCode,_that.address,_that.wallet);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case Subclass2(:final field2):
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( ChainUser? user,  dynamic userBankInfo,  String? key,  bool? trash,  String? name,  String? city,  String? province,  String? postalCode,  String? address,  num? wallet)  $default,) {final _that = this;
switch (_that) {
case _ChainCompany():
return $default(_that.user,_that.userBankInfo,_that.key,_that.trash,_that.name,_that.city,_that.province,_that.postalCode,_that.address,_that.wallet);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( ChainUser? user,  dynamic userBankInfo,  String? key,  bool? trash,  String? name,  String? city,  String? province,  String? postalCode,  String? address,  num? wallet)?  $default,) {final _that = this;
switch (_that) {
case _ChainCompany() when $default != null:
return $default(_that.user,_that.userBankInfo,_that.key,_that.trash,_that.name,_that.city,_that.province,_that.postalCode,_that.address,_that.wallet);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _ChainCompany implements ChainCompany {
  const _ChainCompany({this.user, this.userBankInfo, this.key, this.trash, this.name, this.city, this.province, this.postalCode, this.address, this.wallet});
  factory _ChainCompany.fromJson(Map<String, dynamic> json) => _$ChainCompanyFromJson(json);

@override final  ChainUser? user;
@override final  dynamic userBankInfo;
@override final  String? key;
@override final  bool? trash;
@override final  String? name;
@override final  String? city;
@override final  String? province;
@override final  String? postalCode;
@override final  String? address;
@override final  num? wallet;

/// Create a copy of ChainCompany
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$ChainCompanyCopyWith<_ChainCompany> get copyWith => __$ChainCompanyCopyWithImpl<_ChainCompany>(this, _$identity);

@override
Map<String, dynamic> toJson() {
  return _$ChainCompanyToJson(this, );
}

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _ChainCompany&&(identical(other.user, user) || other.user == user)&&const DeepCollectionEquality().equals(other.userBankInfo, userBankInfo)&&(identical(other.key, key) || other.key == key)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.name, name) || other.name == name)&&(identical(other.city, city) || other.city == city)&&(identical(other.province, province) || other.province == province)&&(identical(other.postalCode, postalCode) || other.postalCode == postalCode)&&(identical(other.address, address) || other.address == address)&&(identical(other.wallet, wallet) || other.wallet == wallet));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,user,const DeepCollectionEquality().hash(userBankInfo),key,trash,name,city,province,postalCode,address,wallet);

@override
String toString() {
  return 'ChainCompany(user: $user, userBankInfo: $userBankInfo, key: $key, trash: $trash, name: $name, city: $city, province: $province, postalCode: $postalCode, address: $address, wallet: $wallet)';
}


}

/// @nodoc
abstract mixin class _$ChainCompanyCopyWith<$Res> implements $ChainCompanyCopyWith<$Res> {
  factory _$ChainCompanyCopyWith(_ChainCompany value, $Res Function(_ChainCompany) _then) = __$ChainCompanyCopyWithImpl;
@override @useResult
$Res call({
 ChainUser? user, dynamic userBankInfo, String? key, bool? trash, String? name, String? city, String? province, String? postalCode, String? address, num? wallet
});


@override $ChainUserCopyWith<$Res>? get user;

}
/// @nodoc
class __$ChainCompanyCopyWithImpl<$Res>
    implements _$ChainCompanyCopyWith<$Res> {
  __$ChainCompanyCopyWithImpl(this._self, this._then);

  final _ChainCompany _self;
  final $Res Function(_ChainCompany) _then;

/// Create a copy of ChainCompany
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? user = freezed,Object? userBankInfo = freezed,Object? key = freezed,Object? trash = freezed,Object? name = freezed,Object? city = freezed,Object? province = freezed,Object? postalCode = freezed,Object? address = freezed,Object? wallet = freezed,}) {
  return _then(_ChainCompany(
user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable
as ChainUser?,userBankInfo: freezed == userBankInfo ? _self.userBankInfo : userBankInfo // ignore: cast_nullable_to_non_nullable
as dynamic,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable
as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable
as bool?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable
as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable
as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable
as String?,postalCode: freezed == postalCode ? _self.postalCode : postalCode // ignore: cast_nullable_to_non_nullable
as String?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable
as String?,wallet: freezed == wallet ? _self.wallet : wallet // ignore: cast_nullable_to_non_nullable
as num?,
  ));
}

/// Create a copy of ChainCompany
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$ChainUserCopyWith<$Res>? get user {
    if (_self.user == null) {
    return null;
  }

  return $ChainUserCopyWith<$Res>(_self.user!, (value) {
    return _then(_self.copyWith(user: value));
  });
}
}


/// @nodoc
mixin _$ChainUser {

 List<String>? get role; String? get city; String? get province; String? get key; String? get userGateWayId; int? get userDjangoIdForeignKey; int? get provinceIdForeignKey; int? get cityIdForeignKey; int? get systemUserProfileIdKey; String? get fullname; String? get firstName; String? get lastName; String? get nationalCode; String? get nationalCodeImage; String? get nationalId; String? get mobile; String? get birthday; String? get image; String? get password; bool? get active; ChainUserState? get state; num? get baseOrder; num? get cityNumber; String? get cityName; num? get provinceNumber; String? get provinceName; String? get unitName; String? get unitNationalId; String? get unitRegistrationNumber; String? get unitEconomicalNumber; String? get unitProvince; String? get unitCity; String? get unitPostalCode; String? get unitAddress;
/// Create a copy of ChainUser
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$ChainUserCopyWith<ChainUser> get copyWith => _$ChainUserCopyWithImpl<ChainUser>(this as ChainUser, _$identity);

  /// Serializes this ChainUser to a JSON map.
  Map<String, dynamic> toJson();


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is ChainUser&&const DeepCollectionEquality().equals(other.role, role)&&(identical(other.city, city) || other.city == city)&&(identical(other.province, province) || other.province == province)&&(identical(other.key, key) || other.key == key)&&(identical(other.userGateWayId, userGateWayId) || other.userGateWayId == userGateWayId)&&(identical(other.userDjangoIdForeignKey, userDjangoIdForeignKey) || other.userDjangoIdForeignKey == userDjangoIdForeignKey)&&(identical(other.provinceIdForeignKey, provinceIdForeignKey) || other.provinceIdForeignKey == provinceIdForeignKey)&&(identical(other.cityIdForeignKey, cityIdForeignKey) || other.cityIdForeignKey == cityIdForeignKey)&&(identical(other.systemUserProfileIdKey, systemUserProfileIdKey) || other.systemUserProfileIdKey == systemUserProfileIdKey)&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.nationalCode, nationalCode) || other.nationalCode == nationalCode)&&(identical(other.nationalCodeImage, nationalCodeImage) || other.nationalCodeImage == nationalCodeImage)&&(identical(other.nationalId, nationalId) || other.nationalId == nationalId)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.birthday, birthday) || other.birthday == birthday)&&(identical(other.image, image) || other.image == image)&&(identical(other.password, password) || other.password == password)&&(identical(other.active, active) || other.active == active)&&(identical(other.state, state) || other.state == state)&&(identical(other.baseOrder, baseOrder) || other.baseOrder == baseOrder)&&(identical(other.cityNumber, cityNumber) || other.cityNumber == cityNumber)&&(identical(other.cityName, cityName) || other.cityName == cityName)&&(identical(other.provinceNumber, provinceNumber) || other.provinceNumber == provinceNumber)&&(identical(other.provinceName, provinceName) || other.provinceName == provinceName)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.unitNationalId, unitNationalId) || other.unitNationalId == unitNationalId)&&(identical(other.unitRegistrationNumber, unitRegistrationNumber) || other.unitRegistrationNumber == unitRegistrationNumber)&&(identical(other.unitEconomicalNumber, unitEconomicalNumber) || other.unitEconomicalNumber == unitEconomicalNumber)&&(identical(other.unitProvince, unitProvince) || other.unitProvince == unitProvince)&&(identical(other.unitCity, unitCity) || other.unitCity == unitCity)&&(identical(other.unitPostalCode, unitPostalCode) || other.unitPostalCode == unitPostalCode)&&(identical(other.unitAddress, unitAddress) || other.unitAddress == unitAddress));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hashAll([runtimeType,const DeepCollectionEquality().hash(role),city,province,key,userGateWayId,userDjangoIdForeignKey,provinceIdForeignKey,cityIdForeignKey,systemUserProfileIdKey,fullname,firstName,lastName,nationalCode,nationalCodeImage,nationalId,mobile,birthday,image,password,active,state,baseOrder,cityNumber,cityName,provinceNumber,provinceName,unitName,unitNationalId,unitRegistrationNumber,unitEconomicalNumber,unitProvince,unitCity,unitPostalCode,unitAddress]);

@override
String toString() {
  return 'ChainUser(role: $role, city: $city, province: $province, key: $key, userGateWayId: $userGateWayId, userDjangoIdForeignKey: $userDjangoIdForeignKey, provinceIdForeignKey: $provinceIdForeignKey, cityIdForeignKey: $cityIdForeignKey, systemUserProfileIdKey: $systemUserProfileIdKey, fullname: $fullname, firstName: $firstName, lastName: $lastName, nationalCode: $nationalCode, nationalCodeImage: $nationalCodeImage, nationalId: $nationalId, mobile: $mobile, birthday: $birthday, image: $image, password: $password, active: $active, state: $state, baseOrder: $baseOrder, cityNumber: $cityNumber, cityName: $cityName, provinceNumber: $provinceNumber, provinceName: $provinceName, unitName: $unitName, unitNationalId: $unitNationalId, unitRegistrationNumber: $unitRegistrationNumber, unitEconomicalNumber: $unitEconomicalNumber, unitProvince: $unitProvince, unitCity: $unitCity, unitPostalCode: $unitPostalCode, unitAddress: $unitAddress)';
}


}

/// @nodoc
abstract mixin class $ChainUserCopyWith<$Res>  {
  factory $ChainUserCopyWith(ChainUser value, $Res Function(ChainUser) _then) = _$ChainUserCopyWithImpl;
@useResult
$Res call({
 List<String>? role, String? city, String? province, String? key, String? userGateWayId, int? userDjangoIdForeignKey, int? provinceIdForeignKey, int? cityIdForeignKey, int? systemUserProfileIdKey, String? fullname, String? firstName, String? lastName, String? nationalCode, String? nationalCodeImage, String? nationalId, String? mobile, String? birthday, String? image, String? password, bool? active, ChainUserState? state, num? baseOrder, num? cityNumber, String? cityName, num? provinceNumber, String? provinceName, String? unitName, String? unitNationalId, String? unitRegistrationNumber, String? unitEconomicalNumber, String? unitProvince, String? unitCity, String? unitPostalCode, String? unitAddress
});


$ChainUserStateCopyWith<$Res>? get state;

}
/// @nodoc
class _$ChainUserCopyWithImpl<$Res>
    implements $ChainUserCopyWith<$Res> {
  _$ChainUserCopyWithImpl(this._self, this._then);

  final ChainUser _self;
  final $Res Function(ChainUser) _then;

/// Create a copy of ChainUser
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? role = freezed,Object? city = freezed,Object? province = freezed,Object? key = freezed,Object? userGateWayId = freezed,Object? userDjangoIdForeignKey = freezed,Object? provinceIdForeignKey = freezed,Object? cityIdForeignKey = freezed,Object? systemUserProfileIdKey = freezed,Object? fullname = freezed,Object? firstName = freezed,Object? lastName = freezed,Object? nationalCode = freezed,Object? nationalCodeImage = freezed,Object? nationalId = freezed,Object? mobile = freezed,Object? birthday = freezed,Object? image = freezed,Object? password = freezed,Object? active = freezed,Object? state = freezed,Object? baseOrder = freezed,Object? cityNumber = freezed,Object? cityName = freezed,Object? provinceNumber = freezed,Object? provinceName = freezed,Object? unitName = freezed,Object? unitNationalId = freezed,Object? unitRegistrationNumber = freezed,Object? unitEconomicalNumber = freezed,Object? unitProvince = freezed,Object? unitCity = freezed,Object? unitPostalCode = freezed,Object? unitAddress = freezed,}) {
  return _then(_self.copyWith(
role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable
as List<String>?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable
as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable
as String?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable
as String?,userGateWayId: freezed == userGateWayId ? _self.userGateWayId : userGateWayId // ignore: cast_nullable_to_non_nullable
as String?,userDjangoIdForeignKey: freezed == userDjangoIdForeignKey ? _self.userDjangoIdForeignKey : userDjangoIdForeignKey // ignore: cast_nullable_to_non_nullable
as int?,provinceIdForeignKey: freezed == provinceIdForeignKey ? _self.provinceIdForeignKey : provinceIdForeignKey // ignore: cast_nullable_to_non_nullable
as int?,cityIdForeignKey: freezed == cityIdForeignKey ? _self.cityIdForeignKey : cityIdForeignKey // ignore: cast_nullable_to_non_nullable
as int?,systemUserProfileIdKey: freezed == systemUserProfileIdKey ? _self.systemUserProfileIdKey : systemUserProfileIdKey // ignore: cast_nullable_to_non_nullable
as int?,fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable
as String?,firstName: freezed == firstName ? _self.firstName : firstName // ignore: cast_nullable_to_non_nullable
as String?,lastName: freezed == lastName ? _self.lastName : lastName // ignore: cast_nullable_to_non_nullable
as String?,nationalCode: freezed == nationalCode ? _self.nationalCode : nationalCode // ignore: cast_nullable_to_non_nullable
as String?,nationalCodeImage: freezed == nationalCodeImage ? _self.nationalCodeImage : nationalCodeImage // ignore: cast_nullable_to_non_nullable
as String?,nationalId: freezed == nationalId ? _self.nationalId : nationalId // ignore: cast_nullable_to_non_nullable
as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable
as String?,birthday: freezed == birthday ? _self.birthday : birthday // ignore: cast_nullable_to_non_nullable
as String?,image: freezed == image ? _self.image : image // ignore: cast_nullable_to_non_nullable
as String?,password: freezed == password ? _self.password : password // ignore: cast_nullable_to_non_nullable
as String?,active: freezed == active ? _self.active : active // ignore: cast_nullable_to_non_nullable
as bool?,state: freezed == state ? _self.state : state // ignore: cast_nullable_to_non_nullable
as ChainUserState?,baseOrder: freezed == baseOrder ? _self.baseOrder : baseOrder // ignore: cast_nullable_to_non_nullable
as num?,cityNumber: freezed == cityNumber ? _self.cityNumber : cityNumber // ignore: cast_nullable_to_non_nullable
as num?,cityName: freezed == cityName ? _self.cityName : cityName // ignore: cast_nullable_to_non_nullable
as String?,provinceNumber: freezed == provinceNumber ? _self.provinceNumber : provinceNumber // ignore: cast_nullable_to_non_nullable
as num?,provinceName: freezed == provinceName ? _self.provinceName : provinceName // ignore: cast_nullable_to_non_nullable
as String?,unitName: freezed == unitName ? _self.unitName : unitName // ignore: cast_nullable_to_non_nullable
as String?,unitNationalId: freezed == unitNationalId ? _self.unitNationalId : unitNationalId // ignore: cast_nullable_to_non_nullable
as String?,unitRegistrationNumber: freezed == unitRegistrationNumber ? _self.unitRegistrationNumber : unitRegistrationNumber // ignore: cast_nullable_to_non_nullable
as String?,unitEconomicalNumber: freezed == unitEconomicalNumber ? _self.unitEconomicalNumber : unitEconomicalNumber // ignore: cast_nullable_to_non_nullable
as String?,unitProvince: freezed == unitProvince ? _self.unitProvince : unitProvince // ignore: cast_nullable_to_non_nullable
as String?,unitCity: freezed == unitCity ? _self.unitCity : unitCity // ignore: cast_nullable_to_non_nullable
as String?,unitPostalCode: freezed == unitPostalCode ? _self.unitPostalCode : unitPostalCode // ignore: cast_nullable_to_non_nullable
as String?,unitAddress: freezed == unitAddress ? _self.unitAddress : unitAddress // ignore: cast_nullable_to_non_nullable
as String?,
  ));
}
/// Create a copy of ChainUser
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$ChainUserStateCopyWith<$Res>? get state {
    if (_self.state == null) {
    return null;
  }

  return $ChainUserStateCopyWith<$Res>(_self.state!, (value) {
    return _then(_self.copyWith(state: value));
  });
}
}


/// Adds pattern-matching-related methods to [ChainUser].
extension ChainUserPatterns on ChainUser {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _ChainUser value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _ChainUser() when $default != null:
return $default(_that);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case final Subclass2 value:
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _ChainUser value)  $default,){
final _that = this;
switch (_that) {
case _ChainUser():
return $default(_that);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _ChainUser value)?  $default,){
final _that = this;
switch (_that) {
case _ChainUser() when $default != null:
return $default(_that);case _:
  return null;

}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( List<String>? role,  String? city,  String? province,  String? key,  String? userGateWayId,  int? userDjangoIdForeignKey,  int? provinceIdForeignKey,  int? cityIdForeignKey,  int? systemUserProfileIdKey,  String? fullname,  String? firstName,  String? lastName,  String? nationalCode,  String? nationalCodeImage,  String? nationalId,  String? mobile,  String? birthday,  String? image,  String? password,  bool? active,  ChainUserState? state,  num? baseOrder,  num? cityNumber,  String? cityName,  num? provinceNumber,  String? provinceName,  String? unitName,  String? unitNationalId,  String? unitRegistrationNumber,  String? unitEconomicalNumber,  String? unitProvince,  String? unitCity,  String? unitPostalCode,  String? unitAddress)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _ChainUser() when $default != null:
return $default(_that.role,_that.city,_that.province,_that.key,_that.userGateWayId,_that.userDjangoIdForeignKey,_that.provinceIdForeignKey,_that.cityIdForeignKey,_that.systemUserProfileIdKey,_that.fullname,_that.firstName,_that.lastName,_that.nationalCode,_that.nationalCodeImage,_that.nationalId,_that.mobile,_that.birthday,_that.image,_that.password,_that.active,_that.state,_that.baseOrder,_that.cityNumber,_that.cityName,_that.provinceNumber,_that.provinceName,_that.unitName,_that.unitNationalId,_that.unitRegistrationNumber,_that.unitEconomicalNumber,_that.unitProvince,_that.unitCity,_that.unitPostalCode,_that.unitAddress);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case Subclass2(:final field2):
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( List<String>? role,  String? city,  String? province,  String? key,  String? userGateWayId,  int? userDjangoIdForeignKey,  int? provinceIdForeignKey,  int? cityIdForeignKey,  int? systemUserProfileIdKey,  String? fullname,  String? firstName,  String? lastName,  String? nationalCode,  String? nationalCodeImage,  String? nationalId,  String? mobile,  String? birthday,  String? image,  String? password,  bool? active,  ChainUserState? state,  num? baseOrder,  num? cityNumber,  String? cityName,  num? provinceNumber,  String? provinceName,  String? unitName,  String? unitNationalId,  String? unitRegistrationNumber,  String? unitEconomicalNumber,  String? unitProvince,  String? unitCity,  String? unitPostalCode,  String? unitAddress)  $default,) {final _that = this;
switch (_that) {
case _ChainUser():
return $default(_that.role,_that.city,_that.province,_that.key,_that.userGateWayId,_that.userDjangoIdForeignKey,_that.provinceIdForeignKey,_that.cityIdForeignKey,_that.systemUserProfileIdKey,_that.fullname,_that.firstName,_that.lastName,_that.nationalCode,_that.nationalCodeImage,_that.nationalId,_that.mobile,_that.birthday,_that.image,_that.password,_that.active,_that.state,_that.baseOrder,_that.cityNumber,_that.cityName,_that.provinceNumber,_that.provinceName,_that.unitName,_that.unitNationalId,_that.unitRegistrationNumber,_that.unitEconomicalNumber,_that.unitProvince,_that.unitCity,_that.unitPostalCode,_that.unitAddress);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( List<String>? role,  String? city,  String? province,  String? key,  String? userGateWayId,  int? userDjangoIdForeignKey,  int? provinceIdForeignKey,  int? cityIdForeignKey,  int? systemUserProfileIdKey,  String? fullname,  String? firstName,  String? lastName,  String? nationalCode,  String? nationalCodeImage,  String? nationalId,  String? mobile,  String? birthday,  String? image,  String? password,  bool? active,  ChainUserState? state,  num? baseOrder,  num? cityNumber,  String? cityName,  num? provinceNumber,  String? provinceName,  String? unitName,  String? unitNationalId,  String? unitRegistrationNumber,  String? unitEconomicalNumber,  String? unitProvince,  String? unitCity,  String? unitPostalCode,  String? unitAddress)?  $default,) {final _that = this;
switch (_that) {
case _ChainUser() when $default != null:
return $default(_that.role,_that.city,_that.province,_that.key,_that.userGateWayId,_that.userDjangoIdForeignKey,_that.provinceIdForeignKey,_that.cityIdForeignKey,_that.systemUserProfileIdKey,_that.fullname,_that.firstName,_that.lastName,_that.nationalCode,_that.nationalCodeImage,_that.nationalId,_that.mobile,_that.birthday,_that.image,_that.password,_that.active,_that.state,_that.baseOrder,_that.cityNumber,_that.cityName,_that.provinceNumber,_that.provinceName,_that.unitName,_that.unitNationalId,_that.unitRegistrationNumber,_that.unitEconomicalNumber,_that.unitProvince,_that.unitCity,_that.unitPostalCode,_that.unitAddress);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _ChainUser implements ChainUser {
  const _ChainUser({final  List<String>? role, this.city, this.province, this.key, this.userGateWayId, this.userDjangoIdForeignKey, this.provinceIdForeignKey, this.cityIdForeignKey, this.systemUserProfileIdKey, this.fullname, this.firstName, this.lastName, this.nationalCode, this.nationalCodeImage, this.nationalId, this.mobile, this.birthday, this.image, this.password, this.active, this.state, this.baseOrder, this.cityNumber, this.cityName, this.provinceNumber, this.provinceName, this.unitName, this.unitNationalId, this.unitRegistrationNumber, this.unitEconomicalNumber, this.unitProvince, this.unitCity, this.unitPostalCode, this.unitAddress}): _role = role;
  factory _ChainUser.fromJson(Map<String, dynamic> json) => _$ChainUserFromJson(json);

 final  List<String>? _role;
@override List<String>? get role {
  final value = _role;
  if (value == null) return null;
  if (_role is EqualUnmodifiableListView) return _role;
  // ignore: implicit_dynamic_type
  return EqualUnmodifiableListView(value);
}

@override final  String? city;
@override final  String? province;
@override final  String? key;
@override final  String? userGateWayId;
@override final  int? userDjangoIdForeignKey;
@override final  int? provinceIdForeignKey;
@override final  int? cityIdForeignKey;
@override final  int? systemUserProfileIdKey;
@override final  String? fullname;
@override final  String? firstName;
@override final  String? lastName;
@override final  String? nationalCode;
@override final  String? nationalCodeImage;
@override final  String? nationalId;
@override final  String? mobile;
@override final  String? birthday;
@override final  String? image;
@override final  String? password;
@override final  bool? active;
@override final  ChainUserState? state;
@override final  num? baseOrder;
@override final  num? cityNumber;
@override final  String? cityName;
@override final  num? provinceNumber;
@override final  String? provinceName;
@override final  String? unitName;
@override final  String? unitNationalId;
@override final  String? unitRegistrationNumber;
@override final  String? unitEconomicalNumber;
@override final  String? unitProvince;
@override final  String? unitCity;
@override final  String? unitPostalCode;
@override final  String? unitAddress;

/// Create a copy of ChainUser
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$ChainUserCopyWith<_ChainUser> get copyWith => __$ChainUserCopyWithImpl<_ChainUser>(this, _$identity);

@override
Map<String, dynamic> toJson() {
  return _$ChainUserToJson(this, );
}

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _ChainUser&&const DeepCollectionEquality().equals(other._role, _role)&&(identical(other.city, city) || other.city == city)&&(identical(other.province, province) || other.province == province)&&(identical(other.key, key) || other.key == key)&&(identical(other.userGateWayId, userGateWayId) || other.userGateWayId == userGateWayId)&&(identical(other.userDjangoIdForeignKey, userDjangoIdForeignKey) || other.userDjangoIdForeignKey == userDjangoIdForeignKey)&&(identical(other.provinceIdForeignKey, provinceIdForeignKey) || other.provinceIdForeignKey == provinceIdForeignKey)&&(identical(other.cityIdForeignKey, cityIdForeignKey) || other.cityIdForeignKey == cityIdForeignKey)&&(identical(other.systemUserProfileIdKey, systemUserProfileIdKey) || other.systemUserProfileIdKey == systemUserProfileIdKey)&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.nationalCode, nationalCode) || other.nationalCode == nationalCode)&&(identical(other.nationalCodeImage, nationalCodeImage) || other.nationalCodeImage == nationalCodeImage)&&(identical(other.nationalId, nationalId) || other.nationalId == nationalId)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.birthday, birthday) || other.birthday == birthday)&&(identical(other.image, image) || other.image == image)&&(identical(other.password, password) || other.password == password)&&(identical(other.active, active) || other.active == active)&&(identical(other.state, state) || other.state == state)&&(identical(other.baseOrder, baseOrder) || other.baseOrder == baseOrder)&&(identical(other.cityNumber, cityNumber) || other.cityNumber == cityNumber)&&(identical(other.cityName, cityName) || other.cityName == cityName)&&(identical(other.provinceNumber, provinceNumber) || other.provinceNumber == provinceNumber)&&(identical(other.provinceName, provinceName) || other.provinceName == provinceName)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.unitNationalId, unitNationalId) || other.unitNationalId == unitNationalId)&&(identical(other.unitRegistrationNumber, unitRegistrationNumber) || other.unitRegistrationNumber == unitRegistrationNumber)&&(identical(other.unitEconomicalNumber, unitEconomicalNumber) || other.unitEconomicalNumber == unitEconomicalNumber)&&(identical(other.unitProvince, unitProvince) || other.unitProvince == unitProvince)&&(identical(other.unitCity, unitCity) || other.unitCity == unitCity)&&(identical(other.unitPostalCode, unitPostalCode) || other.unitPostalCode == unitPostalCode)&&(identical(other.unitAddress, unitAddress) || other.unitAddress == unitAddress));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hashAll([runtimeType,const DeepCollectionEquality().hash(_role),city,province,key,userGateWayId,userDjangoIdForeignKey,provinceIdForeignKey,cityIdForeignKey,systemUserProfileIdKey,fullname,firstName,lastName,nationalCode,nationalCodeImage,nationalId,mobile,birthday,image,password,active,state,baseOrder,cityNumber,cityName,provinceNumber,provinceName,unitName,unitNationalId,unitRegistrationNumber,unitEconomicalNumber,unitProvince,unitCity,unitPostalCode,unitAddress]);

@override
String toString() {
  return 'ChainUser(role: $role, city: $city, province: $province, key: $key, userGateWayId: $userGateWayId, userDjangoIdForeignKey: $userDjangoIdForeignKey, provinceIdForeignKey: $provinceIdForeignKey, cityIdForeignKey: $cityIdForeignKey, systemUserProfileIdKey: $systemUserProfileIdKey, fullname: $fullname, firstName: $firstName, lastName: $lastName, nationalCode: $nationalCode, nationalCodeImage: $nationalCodeImage, nationalId: $nationalId, mobile: $mobile, birthday: $birthday, image: $image, password: $password, active: $active, state: $state, baseOrder: $baseOrder, cityNumber: $cityNumber, cityName: $cityName, provinceNumber: $provinceNumber, provinceName: $provinceName, unitName: $unitName, unitNationalId: $unitNationalId, unitRegistrationNumber: $unitRegistrationNumber, unitEconomicalNumber: $unitEconomicalNumber, unitProvince: $unitProvince, unitCity: $unitCity, unitPostalCode: $unitPostalCode, unitAddress: $unitAddress)';
}


}

/// @nodoc
abstract mixin class _$ChainUserCopyWith<$Res> implements $ChainUserCopyWith<$Res> {
  factory _$ChainUserCopyWith(_ChainUser value, $Res Function(_ChainUser) _then) = __$ChainUserCopyWithImpl;
@override @useResult
$Res call({
 List<String>? role, String? city, String? province, String? key, String? userGateWayId, int? userDjangoIdForeignKey, int? provinceIdForeignKey, int? cityIdForeignKey, int? systemUserProfileIdKey, String? fullname, String? firstName, String? lastName, String? nationalCode, String? nationalCodeImage, String? nationalId, String? mobile, String? birthday, String? image, String? password, bool? active, ChainUserState? state, num? baseOrder, num? cityNumber, String? cityName, num? provinceNumber, String? provinceName, String? unitName, String? unitNationalId, String? unitRegistrationNumber, String? unitEconomicalNumber, String? unitProvince, String? unitCity, String? unitPostalCode, String? unitAddress
});


@override $ChainUserStateCopyWith<$Res>? get state;

}
/// @nodoc
class __$ChainUserCopyWithImpl<$Res>
    implements _$ChainUserCopyWith<$Res> {
  __$ChainUserCopyWithImpl(this._self, this._then);

  final _ChainUser _self;
  final $Res Function(_ChainUser) _then;

/// Create a copy of ChainUser
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? role = freezed,Object? city = freezed,Object? province = freezed,Object? key = freezed,Object? userGateWayId = freezed,Object? userDjangoIdForeignKey = freezed,Object? provinceIdForeignKey = freezed,Object? cityIdForeignKey = freezed,Object? systemUserProfileIdKey = freezed,Object? fullname = freezed,Object? firstName = freezed,Object? lastName = freezed,Object? nationalCode = freezed,Object? nationalCodeImage = freezed,Object? nationalId = freezed,Object? mobile = freezed,Object? birthday = freezed,Object? image = freezed,Object? password = freezed,Object? active = freezed,Object? state = freezed,Object? baseOrder = freezed,Object? cityNumber = freezed,Object? cityName = freezed,Object? provinceNumber = freezed,Object? provinceName = freezed,Object? unitName = freezed,Object? unitNationalId = freezed,Object? unitRegistrationNumber = freezed,Object? unitEconomicalNumber = freezed,Object? unitProvince = freezed,Object? unitCity = freezed,Object? unitPostalCode = freezed,Object? unitAddress = freezed,}) {
  return _then(_ChainUser(
role: freezed == role ? _self._role : role // ignore: cast_nullable_to_non_nullable
as List<String>?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable
as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable
as String?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable
as String?,userGateWayId: freezed == userGateWayId ? _self.userGateWayId : userGateWayId // ignore: cast_nullable_to_non_nullable
as String?,userDjangoIdForeignKey: freezed == userDjangoIdForeignKey ? _self.userDjangoIdForeignKey : userDjangoIdForeignKey // ignore: cast_nullable_to_non_nullable
as int?,provinceIdForeignKey: freezed == provinceIdForeignKey ? _self.provinceIdForeignKey : provinceIdForeignKey // ignore: cast_nullable_to_non_nullable
as int?,cityIdForeignKey: freezed == cityIdForeignKey ? _self.cityIdForeignKey : cityIdForeignKey // ignore: cast_nullable_to_non_nullable
as int?,systemUserProfileIdKey: freezed == systemUserProfileIdKey ? _self.systemUserProfileIdKey : systemUserProfileIdKey // ignore: cast_nullable_to_non_nullable
as int?,fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable
as String?,firstName: freezed == firstName ? _self.firstName : firstName // ignore: cast_nullable_to_non_nullable
as String?,lastName: freezed == lastName ? _self.lastName : lastName // ignore: cast_nullable_to_non_nullable
as String?,nationalCode: freezed == nationalCode ? _self.nationalCode : nationalCode // ignore: cast_nullable_to_non_nullable
as String?,nationalCodeImage: freezed == nationalCodeImage ? _self.nationalCodeImage : nationalCodeImage // ignore: cast_nullable_to_non_nullable
as String?,nationalId: freezed == nationalId ? _self.nationalId : nationalId // ignore: cast_nullable_to_non_nullable
as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable
as String?,birthday: freezed == birthday ? _self.birthday : birthday // ignore: cast_nullable_to_non_nullable
as String?,image: freezed == image ? _self.image : image // ignore: cast_nullable_to_non_nullable
as String?,password: freezed == password ? _self.password : password // ignore: cast_nullable_to_non_nullable
as String?,active: freezed == active ? _self.active : active // ignore: cast_nullable_to_non_nullable
as bool?,state: freezed == state ? _self.state : state // ignore: cast_nullable_to_non_nullable
as ChainUserState?,baseOrder: freezed == baseOrder ? _self.baseOrder : baseOrder // ignore: cast_nullable_to_non_nullable
as num?,cityNumber: freezed == cityNumber ? _self.cityNumber : cityNumber // ignore: cast_nullable_to_non_nullable
as num?,cityName: freezed == cityName ? _self.cityName : cityName // ignore: cast_nullable_to_non_nullable
as String?,provinceNumber: freezed == provinceNumber ? _self.provinceNumber : provinceNumber // ignore: cast_nullable_to_non_nullable
as num?,provinceName: freezed == provinceName ? _self.provinceName : provinceName // ignore: cast_nullable_to_non_nullable
as String?,unitName: freezed == unitName ? _self.unitName : unitName // ignore: cast_nullable_to_non_nullable
as String?,unitNationalId: freezed == unitNationalId ? _self.unitNationalId : unitNationalId // ignore: cast_nullable_to_non_nullable
as String?,unitRegistrationNumber: freezed == unitRegistrationNumber ? _self.unitRegistrationNumber : unitRegistrationNumber // ignore: cast_nullable_to_non_nullable
as String?,unitEconomicalNumber: freezed == unitEconomicalNumber ? _self.unitEconomicalNumber : unitEconomicalNumber // ignore: cast_nullable_to_non_nullable
as String?,unitProvince: freezed == unitProvince ? _self.unitProvince : unitProvince // ignore: cast_nullable_to_non_nullable
as String?,unitCity: freezed == unitCity ? _self.unitCity : unitCity // ignore: cast_nullable_to_non_nullable
as String?,unitPostalCode: freezed == unitPostalCode ? _self.unitPostalCode : unitPostalCode // ignore: cast_nullable_to_non_nullable
as String?,unitAddress: freezed == unitAddress ? _self.unitAddress : unitAddress // ignore: cast_nullable_to_non_nullable
as String?,
  ));
}

/// Create a copy of ChainUser
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$ChainUserStateCopyWith<$Res>? get state {
    if (_self.state == null) {
    return null;
  }

  return $ChainUserStateCopyWith<$Res>(_self.state!, (value) {
    return _then(_self.copyWith(state: value));
  });
}
}


/// @nodoc
mixin _$ChainUserState {

 String? get city; String? get image; String? get mobile; String? get birthday; String? get province; String? get lastName; String? get firstName; String? get nationalId; String? get nationalCode;
/// Create a copy of ChainUserState
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$ChainUserStateCopyWith<ChainUserState> get copyWith => _$ChainUserStateCopyWithImpl<ChainUserState>(this as ChainUserState, _$identity);

  /// Serializes this ChainUserState to a JSON map.
  Map<String, dynamic> toJson();


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is ChainUserState&&(identical(other.city, city) || other.city == city)&&(identical(other.image, image) || other.image == image)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.birthday, birthday) || other.birthday == birthday)&&(identical(other.province, province) || other.province == province)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.nationalId, nationalId) || other.nationalId == nationalId)&&(identical(other.nationalCode, nationalCode) || other.nationalCode == nationalCode));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,city,image,mobile,birthday,province,lastName,firstName,nationalId,nationalCode);

@override
String toString() {
  return 'ChainUserState(city: $city, image: $image, mobile: $mobile, birthday: $birthday, province: $province, lastName: $lastName, firstName: $firstName, nationalId: $nationalId, nationalCode: $nationalCode)';
}


}

/// @nodoc
abstract mixin class $ChainUserStateCopyWith<$Res>  {
  factory $ChainUserStateCopyWith(ChainUserState value, $Res Function(ChainUserState) _then) = _$ChainUserStateCopyWithImpl;
@useResult
$Res call({
 String? city, String? image, String? mobile, String? birthday, String? province, String? lastName, String? firstName, String? nationalId, String? nationalCode
});




}
/// @nodoc
class _$ChainUserStateCopyWithImpl<$Res>
    implements $ChainUserStateCopyWith<$Res> {
  _$ChainUserStateCopyWithImpl(this._self, this._then);

  final ChainUserState _self;
  final $Res Function(ChainUserState) _then;

/// Create a copy of ChainUserState
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? city = freezed,Object? image = freezed,Object? mobile = freezed,Object? birthday = freezed,Object? province = freezed,Object? lastName = freezed,Object? firstName = freezed,Object? nationalId = freezed,Object? nationalCode = freezed,}) {
  return _then(_self.copyWith(
city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable
as String?,image: freezed == image ? _self.image : image // ignore: cast_nullable_to_non_nullable
as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable
as String?,birthday: freezed == birthday ? _self.birthday : birthday // ignore: cast_nullable_to_non_nullable
as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable
as String?,lastName: freezed == lastName ? _self.lastName : lastName // ignore: cast_nullable_to_non_nullable
as String?,firstName: freezed == firstName ? _self.firstName : firstName // ignore: cast_nullable_to_non_nullable
as String?,nationalId: freezed == nationalId ? _self.nationalId : nationalId // ignore: cast_nullable_to_non_nullable
as String?,nationalCode: freezed == nationalCode ? _self.nationalCode : nationalCode // ignore: cast_nullable_to_non_nullable
as String?,
  ));
}

}


/// Adds pattern-matching-related methods to [ChainUserState].
extension ChainUserStatePatterns on ChainUserState {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _ChainUserState value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _ChainUserState() when $default != null:
return $default(_that);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case final Subclass2 value:
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _ChainUserState value)  $default,){
final _that = this;
switch (_that) {
case _ChainUserState():
return $default(_that);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _ChainUserState value)?  $default,){
final _that = this;
switch (_that) {
case _ChainUserState() when $default != null:
return $default(_that);case _:
  return null;

}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( String? city,  String? image,  String? mobile,  String? birthday,  String? province,  String? lastName,  String? firstName,  String? nationalId,  String? nationalCode)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _ChainUserState() when $default != null:
return $default(_that.city,_that.image,_that.mobile,_that.birthday,_that.province,_that.lastName,_that.firstName,_that.nationalId,_that.nationalCode);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case Subclass2(:final field2):
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( String? city,  String? image,  String? mobile,  String? birthday,  String? province,  String? lastName,  String? firstName,  String? nationalId,  String? nationalCode)  $default,) {final _that = this;
switch (_that) {
case _ChainUserState():
return $default(_that.city,_that.image,_that.mobile,_that.birthday,_that.province,_that.lastName,_that.firstName,_that.nationalId,_that.nationalCode);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( String? city,  String? image,  String? mobile,  String? birthday,  String? province,  String? lastName,  String? firstName,  String? nationalId,  String? nationalCode)?  $default,) {final _that = this;
switch (_that) {
case _ChainUserState() when $default != null:
return $default(_that.city,_that.image,_that.mobile,_that.birthday,_that.province,_that.lastName,_that.firstName,_that.nationalId,_that.nationalCode);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _ChainUserState implements ChainUserState {
  const _ChainUserState({this.city, this.image, this.mobile, this.birthday, this.province, this.lastName, this.firstName, this.nationalId, this.nationalCode});
  factory _ChainUserState.fromJson(Map<String, dynamic> json) => _$ChainUserStateFromJson(json);

@override final  String? city;
@override final  String? image;
@override final  String? mobile;
@override final  String? birthday;
@override final  String? province;
@override final  String? lastName;
@override final  String? firstName;
@override final  String? nationalId;
@override final  String? nationalCode;

/// Create a copy of ChainUserState
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$ChainUserStateCopyWith<_ChainUserState> get copyWith => __$ChainUserStateCopyWithImpl<_ChainUserState>(this, _$identity);

@override
Map<String, dynamic> toJson() {
  return _$ChainUserStateToJson(this, );
}

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _ChainUserState&&(identical(other.city, city) || other.city == city)&&(identical(other.image, image) || other.image == image)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.birthday, birthday) || other.birthday == birthday)&&(identical(other.province, province) || other.province == province)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.nationalId, nationalId) || other.nationalId == nationalId)&&(identical(other.nationalCode, nationalCode) || other.nationalCode == nationalCode));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,city,image,mobile,birthday,province,lastName,firstName,nationalId,nationalCode);

@override
String toString() {
  return 'ChainUserState(city: $city, image: $image, mobile: $mobile, birthday: $birthday, province: $province, lastName: $lastName, firstName: $firstName, nationalId: $nationalId, nationalCode: $nationalCode)';
}


}

/// @nodoc
abstract mixin class _$ChainUserStateCopyWith<$Res> implements $ChainUserStateCopyWith<$Res> {
  factory _$ChainUserStateCopyWith(_ChainUserState value, $Res Function(_ChainUserState) _then) = __$ChainUserStateCopyWithImpl;
@override @useResult
$Res call({
 String? city, String? image, String? mobile, String? birthday, String? province, String? lastName, String? firstName, String? nationalId, String? nationalCode
});




}
/// @nodoc
class __$ChainUserStateCopyWithImpl<$Res>
    implements _$ChainUserStateCopyWith<$Res> {
  __$ChainUserStateCopyWithImpl(this._self, this._then);

  final _ChainUserState _self;
  final $Res Function(_ChainUserState) _then;

/// Create a copy of ChainUserState
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? city = freezed,Object? image = freezed,Object? mobile = freezed,Object? birthday = freezed,Object? province = freezed,Object? lastName = freezed,Object? firstName = freezed,Object? nationalId = freezed,Object? nationalCode = freezed,}) {
  return _then(_ChainUserState(
city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable
as String?,image: freezed == image ? _self.image : image // ignore: cast_nullable_to_non_nullable
as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable
as String?,birthday: freezed == birthday ? _self.birthday : birthday // ignore: cast_nullable_to_non_nullable
as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable
as String?,lastName: freezed == lastName ? _self.lastName : lastName // ignore: cast_nullable_to_non_nullable
as String?,firstName: freezed == firstName ? _self.firstName : firstName // ignore: cast_nullable_to_non_nullable
as String?,nationalId: freezed == nationalId ? _self.nationalId : nationalId // ignore: cast_nullable_to_non_nullable
as String?,nationalCode: freezed == nationalCode ? _self.nationalCode : nationalCode // ignore: cast_nullable_to_non_nullable
as String?,
  ));
}


}


/// @nodoc
mixin _$VetFarm {

 String? get vetFarmFullName; String? get vetFarmMobile;
/// Create a copy of VetFarm
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$VetFarmCopyWith<VetFarm> get copyWith => _$VetFarmCopyWithImpl<VetFarm>(this as VetFarm, _$identity);

  /// Serializes this VetFarm to a JSON map.
  Map<String, dynamic> toJson();


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is VetFarm&&(identical(other.vetFarmFullName, vetFarmFullName) || other.vetFarmFullName == vetFarmFullName)&&(identical(other.vetFarmMobile, vetFarmMobile) || other.vetFarmMobile == vetFarmMobile));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,vetFarmFullName,vetFarmMobile);

@override
String toString() {
  return 'VetFarm(vetFarmFullName: $vetFarmFullName, vetFarmMobile: $vetFarmMobile)';
}


}

/// @nodoc
abstract mixin class $VetFarmCopyWith<$Res>  {
  factory $VetFarmCopyWith(VetFarm value, $Res Function(VetFarm) _then) = _$VetFarmCopyWithImpl;
@useResult
$Res call({
 String? vetFarmFullName, String? vetFarmMobile
});




}
/// @nodoc
class _$VetFarmCopyWithImpl<$Res>
    implements $VetFarmCopyWith<$Res> {
  _$VetFarmCopyWithImpl(this._self, this._then);

  final VetFarm _self;
  final $Res Function(VetFarm) _then;

/// Create a copy of VetFarm
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? vetFarmFullName = freezed,Object? vetFarmMobile = freezed,}) {
  return _then(_self.copyWith(
vetFarmFullName: freezed == vetFarmFullName ? _self.vetFarmFullName : vetFarmFullName // ignore: cast_nullable_to_non_nullable
as String?,vetFarmMobile: freezed == vetFarmMobile ? _self.vetFarmMobile : vetFarmMobile // ignore: cast_nullable_to_non_nullable
as String?,
  ));
}

}


/// Adds pattern-matching-related methods to [VetFarm].
extension VetFarmPatterns on VetFarm {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _VetFarm value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _VetFarm() when $default != null:
return $default(_that);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case final Subclass2 value:
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _VetFarm value)  $default,){
final _that = this;
switch (_that) {
case _VetFarm():
return $default(_that);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _VetFarm value)?  $default,){
final _that = this;
switch (_that) {
case _VetFarm() when $default != null:
return $default(_that);case _:
  return null;

}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( String? vetFarmFullName,  String? vetFarmMobile)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _VetFarm() when $default != null:
return $default(_that.vetFarmFullName,_that.vetFarmMobile);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case Subclass2(:final field2):
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( String? vetFarmFullName,  String? vetFarmMobile)  $default,) {final _that = this;
switch (_that) {
case _VetFarm():
return $default(_that.vetFarmFullName,_that.vetFarmMobile);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( String? vetFarmFullName,  String? vetFarmMobile)?  $default,) {final _that = this;
switch (_that) {
case _VetFarm() when $default != null:
return $default(_that.vetFarmFullName,_that.vetFarmMobile);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _VetFarm implements VetFarm {
  const _VetFarm({this.vetFarmFullName, this.vetFarmMobile});
  factory _VetFarm.fromJson(Map<String, dynamic> json) => _$VetFarmFromJson(json);

@override final  String? vetFarmFullName;
@override final  String? vetFarmMobile;

/// Create a copy of VetFarm
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$VetFarmCopyWith<_VetFarm> get copyWith => __$VetFarmCopyWithImpl<_VetFarm>(this, _$identity);

@override
Map<String, dynamic> toJson() {
  return _$VetFarmToJson(this, );
}

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _VetFarm&&(identical(other.vetFarmFullName, vetFarmFullName) || other.vetFarmFullName == vetFarmFullName)&&(identical(other.vetFarmMobile, vetFarmMobile) || other.vetFarmMobile == vetFarmMobile));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,vetFarmFullName,vetFarmMobile);

@override
String toString() {
  return 'VetFarm(vetFarmFullName: $vetFarmFullName, vetFarmMobile: $vetFarmMobile)';
}


}

/// @nodoc
abstract mixin class _$VetFarmCopyWith<$Res> implements $VetFarmCopyWith<$Res> {
  factory _$VetFarmCopyWith(_VetFarm value, $Res Function(_VetFarm) _then) = __$VetFarmCopyWithImpl;
@override @useResult
$Res call({
 String? vetFarmFullName, String? vetFarmMobile
});




}
/// @nodoc
class __$VetFarmCopyWithImpl<$Res>
    implements _$VetFarmCopyWith<$Res> {
  __$VetFarmCopyWithImpl(this._self, this._then);

  final _VetFarm _self;
  final $Res Function(_VetFarm) _then;

/// Create a copy of VetFarm
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? vetFarmFullName = freezed,Object? vetFarmMobile = freezed,}) {
  return _then(_VetFarm(
vetFarmFullName: freezed == vetFarmFullName ? _self.vetFarmFullName : vetFarmFullName // ignore: cast_nullable_to_non_nullable
as String?,vetFarmMobile: freezed == vetFarmMobile ? _self.vetFarmMobile : vetFarmMobile // ignore: cast_nullable_to_non_nullable
as String?,
  ));
}


}


/// @nodoc
mixin _$ActiveKill {

 bool? get activeKill; num? get countOfRequest;
/// Create a copy of ActiveKill
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$ActiveKillCopyWith<ActiveKill> get copyWith => _$ActiveKillCopyWithImpl<ActiveKill>(this as ActiveKill, _$identity);

  /// Serializes this ActiveKill to a JSON map.
  Map<String, dynamic> toJson();


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is ActiveKill&&(identical(other.activeKill, activeKill) || other.activeKill == activeKill)&&(identical(other.countOfRequest, countOfRequest) || other.countOfRequest == countOfRequest));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,activeKill,countOfRequest);

@override
String toString() {
  return 'ActiveKill(activeKill: $activeKill, countOfRequest: $countOfRequest)';
}


}

/// @nodoc
abstract mixin class $ActiveKillCopyWith<$Res>  {
  factory $ActiveKillCopyWith(ActiveKill value, $Res Function(ActiveKill) _then) = _$ActiveKillCopyWithImpl;
@useResult
$Res call({
 bool? activeKill, num? countOfRequest
});




}
/// @nodoc
class _$ActiveKillCopyWithImpl<$Res>
    implements $ActiveKillCopyWith<$Res> {
  _$ActiveKillCopyWithImpl(this._self, this._then);

  final ActiveKill _self;
  final $Res Function(ActiveKill) _then;

/// Create a copy of ActiveKill
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? activeKill = freezed,Object? countOfRequest = freezed,}) {
  return _then(_self.copyWith(
activeKill: freezed == activeKill ? _self.activeKill : activeKill // ignore: cast_nullable_to_non_nullable
as bool?,countOfRequest: freezed == countOfRequest ? _self.countOfRequest : countOfRequest // ignore: cast_nullable_to_non_nullable
as num?,
  ));
}

}


/// Adds pattern-matching-related methods to [ActiveKill].
extension ActiveKillPatterns on ActiveKill {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _ActiveKill value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _ActiveKill() when $default != null:
return $default(_that);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case final Subclass2 value:
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _ActiveKill value)  $default,){
final _that = this;
switch (_that) {
case _ActiveKill():
return $default(_that);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _ActiveKill value)?  $default,){
final _that = this;
switch (_that) {
case _ActiveKill() when $default != null:
return $default(_that);case _:
  return null;

}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( bool? activeKill,  num? countOfRequest)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _ActiveKill() when $default != null:
return $default(_that.activeKill,_that.countOfRequest);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case Subclass2(:final field2):
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( bool? activeKill,  num? countOfRequest)  $default,) {final _that = this;
switch (_that) {
case _ActiveKill():
return $default(_that.activeKill,_that.countOfRequest);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( bool? activeKill,  num? countOfRequest)?  $default,) {final _that = this;
switch (_that) {
case _ActiveKill() when $default != null:
return $default(_that.activeKill,_that.countOfRequest);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _ActiveKill implements ActiveKill {
  const _ActiveKill({this.activeKill, this.countOfRequest});
  factory _ActiveKill.fromJson(Map<String, dynamic> json) => _$ActiveKillFromJson(json);

@override final  bool? activeKill;
@override final  num? countOfRequest;

/// Create a copy of ActiveKill
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$ActiveKillCopyWith<_ActiveKill> get copyWith => __$ActiveKillCopyWithImpl<_ActiveKill>(this, _$identity);

@override
Map<String, dynamic> toJson() {
  return _$ActiveKillToJson(this, );
}

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _ActiveKill&&(identical(other.activeKill, activeKill) || other.activeKill == activeKill)&&(identical(other.countOfRequest, countOfRequest) || other.countOfRequest == countOfRequest));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,activeKill,countOfRequest);

@override
String toString() {
  return 'ActiveKill(activeKill: $activeKill, countOfRequest: $countOfRequest)';
}


}

/// @nodoc
abstract mixin class _$ActiveKillCopyWith<$Res> implements $ActiveKillCopyWith<$Res> {
  factory _$ActiveKillCopyWith(_ActiveKill value, $Res Function(_ActiveKill) _then) = __$ActiveKillCopyWithImpl;
@override @useResult
$Res call({
 bool? activeKill, num? countOfRequest
});




}
/// @nodoc
class __$ActiveKillCopyWithImpl<$Res>
    implements _$ActiveKillCopyWith<$Res> {
  __$ActiveKillCopyWithImpl(this._self, this._then);

  final _ActiveKill _self;
  final $Res Function(_ActiveKill) _then;

/// Create a copy of ActiveKill
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? activeKill = freezed,Object? countOfRequest = freezed,}) {
  return _then(_ActiveKill(
activeKill: freezed == activeKill ? _self.activeKill : activeKill // ignore: cast_nullable_to_non_nullable
as bool?,countOfRequest: freezed == countOfRequest ? _self.countOfRequest : countOfRequest // ignore: cast_nullable_to_non_nullable
as num?,
  ));
}


}


/// @nodoc
mixin _$KillingInfo {

 String? get violationMessage; num? get provinceKillRequests; num? get provinceKillRequestsQuantity; num? get provinceKillRequestsWeight; num? get killHouseRequests; num? get killHouseRequestsFirstQuantity; num? get killHouseRequestsFirstWeight; num? get barCompleteWithKillHouse; num? get acceptedRealQuantityFinal; num? get acceptedRealWightFinal; num? get wareHouseBars; num? get wareHouseBarsQuantity; num? get wareHouseBarsWeight; num? get wareHouseBarsWeightLose;
/// Create a copy of KillingInfo
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$KillingInfoCopyWith<KillingInfo> get copyWith => _$KillingInfoCopyWithImpl<KillingInfo>(this as KillingInfo, _$identity);

  /// Serializes this KillingInfo to a JSON map.
  Map<String, dynamic> toJson();


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is KillingInfo&&(identical(other.violationMessage, violationMessage) || other.violationMessage == violationMessage)&&(identical(other.provinceKillRequests, provinceKillRequests) || other.provinceKillRequests == provinceKillRequests)&&(identical(other.provinceKillRequestsQuantity, provinceKillRequestsQuantity) || other.provinceKillRequestsQuantity == provinceKillRequestsQuantity)&&(identical(other.provinceKillRequestsWeight, provinceKillRequestsWeight) || other.provinceKillRequestsWeight == provinceKillRequestsWeight)&&(identical(other.killHouseRequests, killHouseRequests) || other.killHouseRequests == killHouseRequests)&&(identical(other.killHouseRequestsFirstQuantity, killHouseRequestsFirstQuantity) || other.killHouseRequestsFirstQuantity == killHouseRequestsFirstQuantity)&&(identical(other.killHouseRequestsFirstWeight, killHouseRequestsFirstWeight) || other.killHouseRequestsFirstWeight == killHouseRequestsFirstWeight)&&(identical(other.barCompleteWithKillHouse, barCompleteWithKillHouse) || other.barCompleteWithKillHouse == barCompleteWithKillHouse)&&(identical(other.acceptedRealQuantityFinal, acceptedRealQuantityFinal) || other.acceptedRealQuantityFinal == acceptedRealQuantityFinal)&&(identical(other.acceptedRealWightFinal, acceptedRealWightFinal) || other.acceptedRealWightFinal == acceptedRealWightFinal)&&(identical(other.wareHouseBars, wareHouseBars) || other.wareHouseBars == wareHouseBars)&&(identical(other.wareHouseBarsQuantity, wareHouseBarsQuantity) || other.wareHouseBarsQuantity == wareHouseBarsQuantity)&&(identical(other.wareHouseBarsWeight, wareHouseBarsWeight) || other.wareHouseBarsWeight == wareHouseBarsWeight)&&(identical(other.wareHouseBarsWeightLose, wareHouseBarsWeightLose) || other.wareHouseBarsWeightLose == wareHouseBarsWeightLose));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,violationMessage,provinceKillRequests,provinceKillRequestsQuantity,provinceKillRequestsWeight,killHouseRequests,killHouseRequestsFirstQuantity,killHouseRequestsFirstWeight,barCompleteWithKillHouse,acceptedRealQuantityFinal,acceptedRealWightFinal,wareHouseBars,wareHouseBarsQuantity,wareHouseBarsWeight,wareHouseBarsWeightLose);

@override
String toString() {
  return 'KillingInfo(violationMessage: $violationMessage, provinceKillRequests: $provinceKillRequests, provinceKillRequestsQuantity: $provinceKillRequestsQuantity, provinceKillRequestsWeight: $provinceKillRequestsWeight, killHouseRequests: $killHouseRequests, killHouseRequestsFirstQuantity: $killHouseRequestsFirstQuantity, killHouseRequestsFirstWeight: $killHouseRequestsFirstWeight, barCompleteWithKillHouse: $barCompleteWithKillHouse, acceptedRealQuantityFinal: $acceptedRealQuantityFinal, acceptedRealWightFinal: $acceptedRealWightFinal, wareHouseBars: $wareHouseBars, wareHouseBarsQuantity: $wareHouseBarsQuantity, wareHouseBarsWeight: $wareHouseBarsWeight, wareHouseBarsWeightLose: $wareHouseBarsWeightLose)';
}


}

/// @nodoc
abstract mixin class $KillingInfoCopyWith<$Res>  {
  factory $KillingInfoCopyWith(KillingInfo value, $Res Function(KillingInfo) _then) = _$KillingInfoCopyWithImpl;
@useResult
$Res call({
 String? violationMessage, num? provinceKillRequests, num? provinceKillRequestsQuantity, num? provinceKillRequestsWeight, num? killHouseRequests, num? killHouseRequestsFirstQuantity, num? killHouseRequestsFirstWeight, num? barCompleteWithKillHouse, num? acceptedRealQuantityFinal, num? acceptedRealWightFinal, num? wareHouseBars, num? wareHouseBarsQuantity, num? wareHouseBarsWeight, num? wareHouseBarsWeightLose
});




}
/// @nodoc
class _$KillingInfoCopyWithImpl<$Res>
    implements $KillingInfoCopyWith<$Res> {
  _$KillingInfoCopyWithImpl(this._self, this._then);

  final KillingInfo _self;
  final $Res Function(KillingInfo) _then;

/// Create a copy of KillingInfo
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? violationMessage = freezed,Object? provinceKillRequests = freezed,Object? provinceKillRequestsQuantity = freezed,Object? provinceKillRequestsWeight = freezed,Object? killHouseRequests = freezed,Object? killHouseRequestsFirstQuantity = freezed,Object? killHouseRequestsFirstWeight = freezed,Object? barCompleteWithKillHouse = freezed,Object? acceptedRealQuantityFinal = freezed,Object? acceptedRealWightFinal = freezed,Object? wareHouseBars = freezed,Object? wareHouseBarsQuantity = freezed,Object? wareHouseBarsWeight = freezed,Object? wareHouseBarsWeightLose = freezed,}) {
  return _then(_self.copyWith(
violationMessage: freezed == violationMessage ? _self.violationMessage : violationMessage // ignore: cast_nullable_to_non_nullable
as String?,provinceKillRequests: freezed == provinceKillRequests ? _self.provinceKillRequests : provinceKillRequests // ignore: cast_nullable_to_non_nullable
as num?,provinceKillRequestsQuantity: freezed == provinceKillRequestsQuantity ? _self.provinceKillRequestsQuantity : provinceKillRequestsQuantity // ignore: cast_nullable_to_non_nullable
as num?,provinceKillRequestsWeight: freezed == provinceKillRequestsWeight ? _self.provinceKillRequestsWeight : provinceKillRequestsWeight // ignore: cast_nullable_to_non_nullable
as num?,killHouseRequests: freezed == killHouseRequests ? _self.killHouseRequests : killHouseRequests // ignore: cast_nullable_to_non_nullable
as num?,killHouseRequestsFirstQuantity: freezed == killHouseRequestsFirstQuantity ? _self.killHouseRequestsFirstQuantity : killHouseRequestsFirstQuantity // ignore: cast_nullable_to_non_nullable
as num?,killHouseRequestsFirstWeight: freezed == killHouseRequestsFirstWeight ? _self.killHouseRequestsFirstWeight : killHouseRequestsFirstWeight // ignore: cast_nullable_to_non_nullable
as num?,barCompleteWithKillHouse: freezed == barCompleteWithKillHouse ? _self.barCompleteWithKillHouse : barCompleteWithKillHouse // ignore: cast_nullable_to_non_nullable
as num?,acceptedRealQuantityFinal: freezed == acceptedRealQuantityFinal ? _self.acceptedRealQuantityFinal : acceptedRealQuantityFinal // ignore: cast_nullable_to_non_nullable
as num?,acceptedRealWightFinal: freezed == acceptedRealWightFinal ? _self.acceptedRealWightFinal : acceptedRealWightFinal // ignore: cast_nullable_to_non_nullable
as num?,wareHouseBars: freezed == wareHouseBars ? _self.wareHouseBars : wareHouseBars // ignore: cast_nullable_to_non_nullable
as num?,wareHouseBarsQuantity: freezed == wareHouseBarsQuantity ? _self.wareHouseBarsQuantity : wareHouseBarsQuantity // ignore: cast_nullable_to_non_nullable
as num?,wareHouseBarsWeight: freezed == wareHouseBarsWeight ? _self.wareHouseBarsWeight : wareHouseBarsWeight // ignore: cast_nullable_to_non_nullable
as num?,wareHouseBarsWeightLose: freezed == wareHouseBarsWeightLose ? _self.wareHouseBarsWeightLose : wareHouseBarsWeightLose // ignore: cast_nullable_to_non_nullable
as num?,
  ));
}

}


/// Adds pattern-matching-related methods to [KillingInfo].
extension KillingInfoPatterns on KillingInfo {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _KillingInfo value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _KillingInfo() when $default != null:
return $default(_that);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case final Subclass2 value:
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _KillingInfo value)  $default,){
final _that = this;
switch (_that) {
case _KillingInfo():
return $default(_that);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _KillingInfo value)?  $default,){
final _that = this;
switch (_that) {
case _KillingInfo() when $default != null:
return $default(_that);case _:
  return null;

}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( String? violationMessage,  num? provinceKillRequests,  num? provinceKillRequestsQuantity,  num? provinceKillRequestsWeight,  num? killHouseRequests,  num? killHouseRequestsFirstQuantity,  num? killHouseRequestsFirstWeight,  num? barCompleteWithKillHouse,  num? acceptedRealQuantityFinal,  num? acceptedRealWightFinal,  num? wareHouseBars,  num? wareHouseBarsQuantity,  num? wareHouseBarsWeight,  num? wareHouseBarsWeightLose)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _KillingInfo() when $default != null:
return $default(_that.violationMessage,_that.provinceKillRequests,_that.provinceKillRequestsQuantity,_that.provinceKillRequestsWeight,_that.killHouseRequests,_that.killHouseRequestsFirstQuantity,_that.killHouseRequestsFirstWeight,_that.barCompleteWithKillHouse,_that.acceptedRealQuantityFinal,_that.acceptedRealWightFinal,_that.wareHouseBars,_that.wareHouseBarsQuantity,_that.wareHouseBarsWeight,_that.wareHouseBarsWeightLose);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case Subclass2(:final field2):
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( String? violationMessage,  num? provinceKillRequests,  num? provinceKillRequestsQuantity,  num? provinceKillRequestsWeight,  num? killHouseRequests,  num? killHouseRequestsFirstQuantity,  num? killHouseRequestsFirstWeight,  num? barCompleteWithKillHouse,  num? acceptedRealQuantityFinal,  num? acceptedRealWightFinal,  num? wareHouseBars,  num? wareHouseBarsQuantity,  num? wareHouseBarsWeight,  num? wareHouseBarsWeightLose)  $default,) {final _that = this;
switch (_that) {
case _KillingInfo():
return $default(_that.violationMessage,_that.provinceKillRequests,_that.provinceKillRequestsQuantity,_that.provinceKillRequestsWeight,_that.killHouseRequests,_that.killHouseRequestsFirstQuantity,_that.killHouseRequestsFirstWeight,_that.barCompleteWithKillHouse,_that.acceptedRealQuantityFinal,_that.acceptedRealWightFinal,_that.wareHouseBars,_that.wareHouseBarsQuantity,_that.wareHouseBarsWeight,_that.wareHouseBarsWeightLose);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( String? violationMessage,  num? provinceKillRequests,  num? provinceKillRequestsQuantity,  num? provinceKillRequestsWeight,  num? killHouseRequests,  num? killHouseRequestsFirstQuantity,  num? killHouseRequestsFirstWeight,  num? barCompleteWithKillHouse,  num? acceptedRealQuantityFinal,  num? acceptedRealWightFinal,  num? wareHouseBars,  num? wareHouseBarsQuantity,  num? wareHouseBarsWeight,  num? wareHouseBarsWeightLose)?  $default,) {final _that = this;
switch (_that) {
case _KillingInfo() when $default != null:
return $default(_that.violationMessage,_that.provinceKillRequests,_that.provinceKillRequestsQuantity,_that.provinceKillRequestsWeight,_that.killHouseRequests,_that.killHouseRequestsFirstQuantity,_that.killHouseRequestsFirstWeight,_that.barCompleteWithKillHouse,_that.acceptedRealQuantityFinal,_that.acceptedRealWightFinal,_that.wareHouseBars,_that.wareHouseBarsQuantity,_that.wareHouseBarsWeight,_that.wareHouseBarsWeightLose);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _KillingInfo implements KillingInfo {
  const _KillingInfo({this.violationMessage, this.provinceKillRequests, this.provinceKillRequestsQuantity, this.provinceKillRequestsWeight, this.killHouseRequests, this.killHouseRequestsFirstQuantity, this.killHouseRequestsFirstWeight, this.barCompleteWithKillHouse, this.acceptedRealQuantityFinal, this.acceptedRealWightFinal, this.wareHouseBars, this.wareHouseBarsQuantity, this.wareHouseBarsWeight, this.wareHouseBarsWeightLose});
  factory _KillingInfo.fromJson(Map<String, dynamic> json) => _$KillingInfoFromJson(json);

@override final  String? violationMessage;
@override final  num? provinceKillRequests;
@override final  num? provinceKillRequestsQuantity;
@override final  num? provinceKillRequestsWeight;
@override final  num? killHouseRequests;
@override final  num? killHouseRequestsFirstQuantity;
@override final  num? killHouseRequestsFirstWeight;
@override final  num? barCompleteWithKillHouse;
@override final  num? acceptedRealQuantityFinal;
@override final  num? acceptedRealWightFinal;
@override final  num? wareHouseBars;
@override final  num? wareHouseBarsQuantity;
@override final  num? wareHouseBarsWeight;
@override final  num? wareHouseBarsWeightLose;

/// Create a copy of KillingInfo
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$KillingInfoCopyWith<_KillingInfo> get copyWith => __$KillingInfoCopyWithImpl<_KillingInfo>(this, _$identity);

@override
Map<String, dynamic> toJson() {
  return _$KillingInfoToJson(this, );
}

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _KillingInfo&&(identical(other.violationMessage, violationMessage) || other.violationMessage == violationMessage)&&(identical(other.provinceKillRequests, provinceKillRequests) || other.provinceKillRequests == provinceKillRequests)&&(identical(other.provinceKillRequestsQuantity, provinceKillRequestsQuantity) || other.provinceKillRequestsQuantity == provinceKillRequestsQuantity)&&(identical(other.provinceKillRequestsWeight, provinceKillRequestsWeight) || other.provinceKillRequestsWeight == provinceKillRequestsWeight)&&(identical(other.killHouseRequests, killHouseRequests) || other.killHouseRequests == killHouseRequests)&&(identical(other.killHouseRequestsFirstQuantity, killHouseRequestsFirstQuantity) || other.killHouseRequestsFirstQuantity == killHouseRequestsFirstQuantity)&&(identical(other.killHouseRequestsFirstWeight, killHouseRequestsFirstWeight) || other.killHouseRequestsFirstWeight == killHouseRequestsFirstWeight)&&(identical(other.barCompleteWithKillHouse, barCompleteWithKillHouse) || other.barCompleteWithKillHouse == barCompleteWithKillHouse)&&(identical(other.acceptedRealQuantityFinal, acceptedRealQuantityFinal) || other.acceptedRealQuantityFinal == acceptedRealQuantityFinal)&&(identical(other.acceptedRealWightFinal, acceptedRealWightFinal) || other.acceptedRealWightFinal == acceptedRealWightFinal)&&(identical(other.wareHouseBars, wareHouseBars) || other.wareHouseBars == wareHouseBars)&&(identical(other.wareHouseBarsQuantity, wareHouseBarsQuantity) || other.wareHouseBarsQuantity == wareHouseBarsQuantity)&&(identical(other.wareHouseBarsWeight, wareHouseBarsWeight) || other.wareHouseBarsWeight == wareHouseBarsWeight)&&(identical(other.wareHouseBarsWeightLose, wareHouseBarsWeightLose) || other.wareHouseBarsWeightLose == wareHouseBarsWeightLose));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,violationMessage,provinceKillRequests,provinceKillRequestsQuantity,provinceKillRequestsWeight,killHouseRequests,killHouseRequestsFirstQuantity,killHouseRequestsFirstWeight,barCompleteWithKillHouse,acceptedRealQuantityFinal,acceptedRealWightFinal,wareHouseBars,wareHouseBarsQuantity,wareHouseBarsWeight,wareHouseBarsWeightLose);

@override
String toString() {
  return 'KillingInfo(violationMessage: $violationMessage, provinceKillRequests: $provinceKillRequests, provinceKillRequestsQuantity: $provinceKillRequestsQuantity, provinceKillRequestsWeight: $provinceKillRequestsWeight, killHouseRequests: $killHouseRequests, killHouseRequestsFirstQuantity: $killHouseRequestsFirstQuantity, killHouseRequestsFirstWeight: $killHouseRequestsFirstWeight, barCompleteWithKillHouse: $barCompleteWithKillHouse, acceptedRealQuantityFinal: $acceptedRealQuantityFinal, acceptedRealWightFinal: $acceptedRealWightFinal, wareHouseBars: $wareHouseBars, wareHouseBarsQuantity: $wareHouseBarsQuantity, wareHouseBarsWeight: $wareHouseBarsWeight, wareHouseBarsWeightLose: $wareHouseBarsWeightLose)';
}


}

/// @nodoc
abstract mixin class _$KillingInfoCopyWith<$Res> implements $KillingInfoCopyWith<$Res> {
  factory _$KillingInfoCopyWith(_KillingInfo value, $Res Function(_KillingInfo) _then) = __$KillingInfoCopyWithImpl;
@override @useResult
$Res call({
 String? violationMessage, num? provinceKillRequests, num? provinceKillRequestsQuantity, num? provinceKillRequestsWeight, num? killHouseRequests, num? killHouseRequestsFirstQuantity, num? killHouseRequestsFirstWeight, num? barCompleteWithKillHouse, num? acceptedRealQuantityFinal, num? acceptedRealWightFinal, num? wareHouseBars, num? wareHouseBarsQuantity, num? wareHouseBarsWeight, num? wareHouseBarsWeightLose
});




}
/// @nodoc
class __$KillingInfoCopyWithImpl<$Res>
    implements _$KillingInfoCopyWith<$Res> {
  __$KillingInfoCopyWithImpl(this._self, this._then);

  final _KillingInfo _self;
  final $Res Function(_KillingInfo) _then;

/// Create a copy of KillingInfo
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? violationMessage = freezed,Object? provinceKillRequests = freezed,Object? provinceKillRequestsQuantity = freezed,Object? provinceKillRequestsWeight = freezed,Object? killHouseRequests = freezed,Object? killHouseRequestsFirstQuantity = freezed,Object? killHouseRequestsFirstWeight = freezed,Object? barCompleteWithKillHouse = freezed,Object? acceptedRealQuantityFinal = freezed,Object? acceptedRealWightFinal = freezed,Object? wareHouseBars = freezed,Object? wareHouseBarsQuantity = freezed,Object? wareHouseBarsWeight = freezed,Object? wareHouseBarsWeightLose = freezed,}) {
  return _then(_KillingInfo(
violationMessage: freezed == violationMessage ? _self.violationMessage : violationMessage // ignore: cast_nullable_to_non_nullable
as String?,provinceKillRequests: freezed == provinceKillRequests ? _self.provinceKillRequests : provinceKillRequests // ignore: cast_nullable_to_non_nullable
as num?,provinceKillRequestsQuantity: freezed == provinceKillRequestsQuantity ? _self.provinceKillRequestsQuantity : provinceKillRequestsQuantity // ignore: cast_nullable_to_non_nullable
as num?,provinceKillRequestsWeight: freezed == provinceKillRequestsWeight ? _self.provinceKillRequestsWeight : provinceKillRequestsWeight // ignore: cast_nullable_to_non_nullable
as num?,killHouseRequests: freezed == killHouseRequests ? _self.killHouseRequests : killHouseRequests // ignore: cast_nullable_to_non_nullable
as num?,killHouseRequestsFirstQuantity: freezed == killHouseRequestsFirstQuantity ? _self.killHouseRequestsFirstQuantity : killHouseRequestsFirstQuantity // ignore: cast_nullable_to_non_nullable
as num?,killHouseRequestsFirstWeight: freezed == killHouseRequestsFirstWeight ? _self.killHouseRequestsFirstWeight : killHouseRequestsFirstWeight // ignore: cast_nullable_to_non_nullable
as num?,barCompleteWithKillHouse: freezed == barCompleteWithKillHouse ? _self.barCompleteWithKillHouse : barCompleteWithKillHouse // ignore: cast_nullable_to_non_nullable
as num?,acceptedRealQuantityFinal: freezed == acceptedRealQuantityFinal ? _self.acceptedRealQuantityFinal : acceptedRealQuantityFinal // ignore: cast_nullable_to_non_nullable
as num?,acceptedRealWightFinal: freezed == acceptedRealWightFinal ? _self.acceptedRealWightFinal : acceptedRealWightFinal // ignore: cast_nullable_to_non_nullable
as num?,wareHouseBars: freezed == wareHouseBars ? _self.wareHouseBars : wareHouseBars // ignore: cast_nullable_to_non_nullable
as num?,wareHouseBarsQuantity: freezed == wareHouseBarsQuantity ? _self.wareHouseBarsQuantity : wareHouseBarsQuantity // ignore: cast_nullable_to_non_nullable
as num?,wareHouseBarsWeight: freezed == wareHouseBarsWeight ? _self.wareHouseBarsWeight : wareHouseBarsWeight // ignore: cast_nullable_to_non_nullable
as num?,wareHouseBarsWeightLose: freezed == wareHouseBarsWeightLose ? _self.wareHouseBarsWeightLose : wareHouseBarsWeightLose // ignore: cast_nullable_to_non_nullable
as num?,
  ));
}


}


/// @nodoc
mixin _$FreeGovernmentalInfo {

 num? get governmentalAllocatedQuantity; num? get totalCommitmentQuantity; num? get freeAllocatedQuantity; num? get totalFreeCommitmentQuantity; num? get leftTotalFreeCommitmentQuantity;
/// Create a copy of FreeGovernmentalInfo
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$FreeGovernmentalInfoCopyWith<FreeGovernmentalInfo> get copyWith => _$FreeGovernmentalInfoCopyWithImpl<FreeGovernmentalInfo>(this as FreeGovernmentalInfo, _$identity);

  /// Serializes this FreeGovernmentalInfo to a JSON map.
  Map<String, dynamic> toJson();


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is FreeGovernmentalInfo&&(identical(other.governmentalAllocatedQuantity, governmentalAllocatedQuantity) || other.governmentalAllocatedQuantity == governmentalAllocatedQuantity)&&(identical(other.totalCommitmentQuantity, totalCommitmentQuantity) || other.totalCommitmentQuantity == totalCommitmentQuantity)&&(identical(other.freeAllocatedQuantity, freeAllocatedQuantity) || other.freeAllocatedQuantity == freeAllocatedQuantity)&&(identical(other.totalFreeCommitmentQuantity, totalFreeCommitmentQuantity) || other.totalFreeCommitmentQuantity == totalFreeCommitmentQuantity)&&(identical(other.leftTotalFreeCommitmentQuantity, leftTotalFreeCommitmentQuantity) || other.leftTotalFreeCommitmentQuantity == leftTotalFreeCommitmentQuantity));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,governmentalAllocatedQuantity,totalCommitmentQuantity,freeAllocatedQuantity,totalFreeCommitmentQuantity,leftTotalFreeCommitmentQuantity);

@override
String toString() {
  return 'FreeGovernmentalInfo(governmentalAllocatedQuantity: $governmentalAllocatedQuantity, totalCommitmentQuantity: $totalCommitmentQuantity, freeAllocatedQuantity: $freeAllocatedQuantity, totalFreeCommitmentQuantity: $totalFreeCommitmentQuantity, leftTotalFreeCommitmentQuantity: $leftTotalFreeCommitmentQuantity)';
}


}

/// @nodoc
abstract mixin class $FreeGovernmentalInfoCopyWith<$Res>  {
  factory $FreeGovernmentalInfoCopyWith(FreeGovernmentalInfo value, $Res Function(FreeGovernmentalInfo) _then) = _$FreeGovernmentalInfoCopyWithImpl;
@useResult
$Res call({
 num? governmentalAllocatedQuantity, num? totalCommitmentQuantity, num? freeAllocatedQuantity, num? totalFreeCommitmentQuantity, num? leftTotalFreeCommitmentQuantity
});




}
/// @nodoc
class _$FreeGovernmentalInfoCopyWithImpl<$Res>
    implements $FreeGovernmentalInfoCopyWith<$Res> {
  _$FreeGovernmentalInfoCopyWithImpl(this._self, this._then);

  final FreeGovernmentalInfo _self;
  final $Res Function(FreeGovernmentalInfo) _then;

/// Create a copy of FreeGovernmentalInfo
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? governmentalAllocatedQuantity = freezed,Object? totalCommitmentQuantity = freezed,Object? freeAllocatedQuantity = freezed,Object? totalFreeCommitmentQuantity = freezed,Object? leftTotalFreeCommitmentQuantity = freezed,}) {
  return _then(_self.copyWith(
governmentalAllocatedQuantity: freezed == governmentalAllocatedQuantity ? _self.governmentalAllocatedQuantity : governmentalAllocatedQuantity // ignore: cast_nullable_to_non_nullable
as num?,totalCommitmentQuantity: freezed == totalCommitmentQuantity ? _self.totalCommitmentQuantity : totalCommitmentQuantity // ignore: cast_nullable_to_non_nullable
as num?,freeAllocatedQuantity: freezed == freeAllocatedQuantity ? _self.freeAllocatedQuantity : freeAllocatedQuantity // ignore: cast_nullable_to_non_nullable
as num?,totalFreeCommitmentQuantity: freezed == totalFreeCommitmentQuantity ? _self.totalFreeCommitmentQuantity : totalFreeCommitmentQuantity // ignore: cast_nullable_to_non_nullable
as num?,leftTotalFreeCommitmentQuantity: freezed == leftTotalFreeCommitmentQuantity ? _self.leftTotalFreeCommitmentQuantity : leftTotalFreeCommitmentQuantity // ignore: cast_nullable_to_non_nullable
as num?,
  ));
}

}


/// Adds pattern-matching-related methods to [FreeGovernmentalInfo].
extension FreeGovernmentalInfoPatterns on FreeGovernmentalInfo {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _FreeGovernmentalInfo value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _FreeGovernmentalInfo() when $default != null:
return $default(_that);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case final Subclass2 value:
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _FreeGovernmentalInfo value)  $default,){
final _that = this;
switch (_that) {
case _FreeGovernmentalInfo():
return $default(_that);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _FreeGovernmentalInfo value)?  $default,){
final _that = this;
switch (_that) {
case _FreeGovernmentalInfo() when $default != null:
return $default(_that);case _:
  return null;

}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( num? governmentalAllocatedQuantity,  num? totalCommitmentQuantity,  num? freeAllocatedQuantity,  num? totalFreeCommitmentQuantity,  num? leftTotalFreeCommitmentQuantity)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _FreeGovernmentalInfo() when $default != null:
return $default(_that.governmentalAllocatedQuantity,_that.totalCommitmentQuantity,_that.freeAllocatedQuantity,_that.totalFreeCommitmentQuantity,_that.leftTotalFreeCommitmentQuantity);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case Subclass2(:final field2):
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( num? governmentalAllocatedQuantity,  num? totalCommitmentQuantity,  num? freeAllocatedQuantity,  num? totalFreeCommitmentQuantity,  num? leftTotalFreeCommitmentQuantity)  $default,) {final _that = this;
switch (_that) {
case _FreeGovernmentalInfo():
return $default(_that.governmentalAllocatedQuantity,_that.totalCommitmentQuantity,_that.freeAllocatedQuantity,_that.totalFreeCommitmentQuantity,_that.leftTotalFreeCommitmentQuantity);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( num? governmentalAllocatedQuantity,  num? totalCommitmentQuantity,  num? freeAllocatedQuantity,  num? totalFreeCommitmentQuantity,  num? leftTotalFreeCommitmentQuantity)?  $default,) {final _that = this;
switch (_that) {
case _FreeGovernmentalInfo() when $default != null:
return $default(_that.governmentalAllocatedQuantity,_that.totalCommitmentQuantity,_that.freeAllocatedQuantity,_that.totalFreeCommitmentQuantity,_that.leftTotalFreeCommitmentQuantity);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _FreeGovernmentalInfo implements FreeGovernmentalInfo {
  const _FreeGovernmentalInfo({this.governmentalAllocatedQuantity, this.totalCommitmentQuantity, this.freeAllocatedQuantity, this.totalFreeCommitmentQuantity, this.leftTotalFreeCommitmentQuantity});
  factory _FreeGovernmentalInfo.fromJson(Map<String, dynamic> json) => _$FreeGovernmentalInfoFromJson(json);

@override final  num? governmentalAllocatedQuantity;
@override final  num? totalCommitmentQuantity;
@override final  num? freeAllocatedQuantity;
@override final  num? totalFreeCommitmentQuantity;
@override final  num? leftTotalFreeCommitmentQuantity;

/// Create a copy of FreeGovernmentalInfo
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$FreeGovernmentalInfoCopyWith<_FreeGovernmentalInfo> get copyWith => __$FreeGovernmentalInfoCopyWithImpl<_FreeGovernmentalInfo>(this, _$identity);

@override
Map<String, dynamic> toJson() {
  return _$FreeGovernmentalInfoToJson(this, );
}

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _FreeGovernmentalInfo&&(identical(other.governmentalAllocatedQuantity, governmentalAllocatedQuantity) || other.governmentalAllocatedQuantity == governmentalAllocatedQuantity)&&(identical(other.totalCommitmentQuantity, totalCommitmentQuantity) || other.totalCommitmentQuantity == totalCommitmentQuantity)&&(identical(other.freeAllocatedQuantity, freeAllocatedQuantity) || other.freeAllocatedQuantity == freeAllocatedQuantity)&&(identical(other.totalFreeCommitmentQuantity, totalFreeCommitmentQuantity) || other.totalFreeCommitmentQuantity == totalFreeCommitmentQuantity)&&(identical(other.leftTotalFreeCommitmentQuantity, leftTotalFreeCommitmentQuantity) || other.leftTotalFreeCommitmentQuantity == leftTotalFreeCommitmentQuantity));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,governmentalAllocatedQuantity,totalCommitmentQuantity,freeAllocatedQuantity,totalFreeCommitmentQuantity,leftTotalFreeCommitmentQuantity);

@override
String toString() {
  return 'FreeGovernmentalInfo(governmentalAllocatedQuantity: $governmentalAllocatedQuantity, totalCommitmentQuantity: $totalCommitmentQuantity, freeAllocatedQuantity: $freeAllocatedQuantity, totalFreeCommitmentQuantity: $totalFreeCommitmentQuantity, leftTotalFreeCommitmentQuantity: $leftTotalFreeCommitmentQuantity)';
}


}

/// @nodoc
abstract mixin class _$FreeGovernmentalInfoCopyWith<$Res> implements $FreeGovernmentalInfoCopyWith<$Res> {
  factory _$FreeGovernmentalInfoCopyWith(_FreeGovernmentalInfo value, $Res Function(_FreeGovernmentalInfo) _then) = __$FreeGovernmentalInfoCopyWithImpl;
@override @useResult
$Res call({
 num? governmentalAllocatedQuantity, num? totalCommitmentQuantity, num? freeAllocatedQuantity, num? totalFreeCommitmentQuantity, num? leftTotalFreeCommitmentQuantity
});




}
/// @nodoc
class __$FreeGovernmentalInfoCopyWithImpl<$Res>
    implements _$FreeGovernmentalInfoCopyWith<$Res> {
  __$FreeGovernmentalInfoCopyWithImpl(this._self, this._then);

  final _FreeGovernmentalInfo _self;
  final $Res Function(_FreeGovernmentalInfo) _then;

/// Create a copy of FreeGovernmentalInfo
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? governmentalAllocatedQuantity = freezed,Object? totalCommitmentQuantity = freezed,Object? freeAllocatedQuantity = freezed,Object? totalFreeCommitmentQuantity = freezed,Object? leftTotalFreeCommitmentQuantity = freezed,}) {
  return _then(_FreeGovernmentalInfo(
governmentalAllocatedQuantity: freezed == governmentalAllocatedQuantity ? _self.governmentalAllocatedQuantity : governmentalAllocatedQuantity // ignore: cast_nullable_to_non_nullable
as num?,totalCommitmentQuantity: freezed == totalCommitmentQuantity ? _self.totalCommitmentQuantity : totalCommitmentQuantity // ignore: cast_nullable_to_non_nullable
as num?,freeAllocatedQuantity: freezed == freeAllocatedQuantity ? _self.freeAllocatedQuantity : freeAllocatedQuantity // ignore: cast_nullable_to_non_nullable
as num?,totalFreeCommitmentQuantity: freezed == totalFreeCommitmentQuantity ? _self.totalFreeCommitmentQuantity : totalFreeCommitmentQuantity // ignore: cast_nullable_to_non_nullable
as num?,leftTotalFreeCommitmentQuantity: freezed == leftTotalFreeCommitmentQuantity ? _self.leftTotalFreeCommitmentQuantity : leftTotalFreeCommitmentQuantity // ignore: cast_nullable_to_non_nullable
as num?,
  ));
}


}


/// @nodoc
mixin _$ReportInfo {

 bool? get poultryScience; bool? get image;
/// Create a copy of ReportInfo
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$ReportInfoCopyWith<ReportInfo> get copyWith => _$ReportInfoCopyWithImpl<ReportInfo>(this as ReportInfo, _$identity);

  /// Serializes this ReportInfo to a JSON map.
  Map<String, dynamic> toJson();


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is ReportInfo&&(identical(other.poultryScience, poultryScience) || other.poultryScience == poultryScience)&&(identical(other.image, image) || other.image == image));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,poultryScience,image);

@override
String toString() {
  return 'ReportInfo(poultryScience: $poultryScience, image: $image)';
}


}

/// @nodoc
abstract mixin class $ReportInfoCopyWith<$Res>  {
  factory $ReportInfoCopyWith(ReportInfo value, $Res Function(ReportInfo) _then) = _$ReportInfoCopyWithImpl;
@useResult
$Res call({
 bool? poultryScience, bool? image
});




}
/// @nodoc
class _$ReportInfoCopyWithImpl<$Res>
    implements $ReportInfoCopyWith<$Res> {
  _$ReportInfoCopyWithImpl(this._self, this._then);

  final ReportInfo _self;
  final $Res Function(ReportInfo) _then;

/// Create a copy of ReportInfo
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? poultryScience = freezed,Object? image = freezed,}) {
  return _then(_self.copyWith(
poultryScience: freezed == poultryScience ? _self.poultryScience : poultryScience // ignore: cast_nullable_to_non_nullable
as bool?,image: freezed == image ? _self.image : image // ignore: cast_nullable_to_non_nullable
as bool?,
  ));
}

}


/// Adds pattern-matching-related methods to [ReportInfo].
extension ReportInfoPatterns on ReportInfo {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _ReportInfo value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _ReportInfo() when $default != null:
return $default(_that);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case final Subclass2 value:
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _ReportInfo value)  $default,){
final _that = this;
switch (_that) {
case _ReportInfo():
return $default(_that);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _ReportInfo value)?  $default,){
final _that = this;
switch (_that) {
case _ReportInfo() when $default != null:
return $default(_that);case _:
  return null;

}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( bool? poultryScience,  bool? image)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _ReportInfo() when $default != null:
return $default(_that.poultryScience,_that.image);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case Subclass2(:final field2):
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( bool? poultryScience,  bool? image)  $default,) {final _that = this;
switch (_that) {
case _ReportInfo():
return $default(_that.poultryScience,_that.image);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( bool? poultryScience,  bool? image)?  $default,) {final _that = this;
switch (_that) {
case _ReportInfo() when $default != null:
return $default(_that.poultryScience,_that.image);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _ReportInfo implements ReportInfo {
  const _ReportInfo({this.poultryScience, this.image});
  factory _ReportInfo.fromJson(Map<String, dynamic> json) => _$ReportInfoFromJson(json);

@override final  bool? poultryScience;
@override final  bool? image;

/// Create a copy of ReportInfo
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$ReportInfoCopyWith<_ReportInfo> get copyWith => __$ReportInfoCopyWithImpl<_ReportInfo>(this, _$identity);

@override
Map<String, dynamic> toJson() {
  return _$ReportInfoToJson(this, );
}

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _ReportInfo&&(identical(other.poultryScience, poultryScience) || other.poultryScience == poultryScience)&&(identical(other.image, image) || other.image == image));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,poultryScience,image);

@override
String toString() {
  return 'ReportInfo(poultryScience: $poultryScience, image: $image)';
}


}

/// @nodoc
abstract mixin class _$ReportInfoCopyWith<$Res> implements $ReportInfoCopyWith<$Res> {
  factory _$ReportInfoCopyWith(_ReportInfo value, $Res Function(_ReportInfo) _then) = __$ReportInfoCopyWithImpl;
@override @useResult
$Res call({
 bool? poultryScience, bool? image
});




}
/// @nodoc
class __$ReportInfoCopyWithImpl<$Res>
    implements _$ReportInfoCopyWith<$Res> {
  __$ReportInfoCopyWithImpl(this._self, this._then);

  final _ReportInfo _self;
  final $Res Function(_ReportInfo) _then;

/// Create a copy of ReportInfo
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? poultryScience = freezed,Object? image = freezed,}) {
  return _then(_ReportInfo(
poultryScience: freezed == poultryScience ? _self.poultryScience : poultryScience // ignore: cast_nullable_to_non_nullable
as bool?,image: freezed == image ? _self.image : image // ignore: cast_nullable_to_non_nullable
as bool?,
  ));
}


}


/// @nodoc
mixin _$LatestHatchingChange {

 String? get date; String? get role; String? get fullName;
/// Create a copy of LatestHatchingChange
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$LatestHatchingChangeCopyWith<LatestHatchingChange> get copyWith => _$LatestHatchingChangeCopyWithImpl<LatestHatchingChange>(this as LatestHatchingChange, _$identity);

  /// Serializes this LatestHatchingChange to a JSON map.
  Map<String, dynamic> toJson();


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is LatestHatchingChange&&(identical(other.date, date) || other.date == date)&&(identical(other.role, role) || other.role == role)&&(identical(other.fullName, fullName) || other.fullName == fullName));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,date,role,fullName);

@override
String toString() {
  return 'LatestHatchingChange(date: $date, role: $role, fullName: $fullName)';
}


}

/// @nodoc
abstract mixin class $LatestHatchingChangeCopyWith<$Res>  {
  factory $LatestHatchingChangeCopyWith(LatestHatchingChange value, $Res Function(LatestHatchingChange) _then) = _$LatestHatchingChangeCopyWithImpl;
@useResult
$Res call({
 String? date, String? role, String? fullName
});




}
/// @nodoc
class _$LatestHatchingChangeCopyWithImpl<$Res>
    implements $LatestHatchingChangeCopyWith<$Res> {
  _$LatestHatchingChangeCopyWithImpl(this._self, this._then);

  final LatestHatchingChange _self;
  final $Res Function(LatestHatchingChange) _then;

/// Create a copy of LatestHatchingChange
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? date = freezed,Object? role = freezed,Object? fullName = freezed,}) {
  return _then(_self.copyWith(
date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable
as String?,role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable
as String?,fullName: freezed == fullName ? _self.fullName : fullName // ignore: cast_nullable_to_non_nullable
as String?,
  ));
}

}


/// Adds pattern-matching-related methods to [LatestHatchingChange].
extension LatestHatchingChangePatterns on LatestHatchingChange {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _LatestHatchingChange value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _LatestHatchingChange() when $default != null:
return $default(_that);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case final Subclass2 value:
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _LatestHatchingChange value)  $default,){
final _that = this;
switch (_that) {
case _LatestHatchingChange():
return $default(_that);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _LatestHatchingChange value)?  $default,){
final _that = this;
switch (_that) {
case _LatestHatchingChange() when $default != null:
return $default(_that);case _:
  return null;

}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( String? date,  String? role,  String? fullName)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _LatestHatchingChange() when $default != null:
return $default(_that.date,_that.role,_that.fullName);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case Subclass2(:final field2):
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( String? date,  String? role,  String? fullName)  $default,) {final _that = this;
switch (_that) {
case _LatestHatchingChange():
return $default(_that.date,_that.role,_that.fullName);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( String? date,  String? role,  String? fullName)?  $default,) {final _that = this;
switch (_that) {
case _LatestHatchingChange() when $default != null:
return $default(_that.date,_that.role,_that.fullName);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _LatestHatchingChange implements LatestHatchingChange {
  const _LatestHatchingChange({this.date, this.role, this.fullName});
  factory _LatestHatchingChange.fromJson(Map<String, dynamic> json) => _$LatestHatchingChangeFromJson(json);

@override final  String? date;
@override final  String? role;
@override final  String? fullName;

/// Create a copy of LatestHatchingChange
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$LatestHatchingChangeCopyWith<_LatestHatchingChange> get copyWith => __$LatestHatchingChangeCopyWithImpl<_LatestHatchingChange>(this, _$identity);

@override
Map<String, dynamic> toJson() {
  return _$LatestHatchingChangeToJson(this, );
}

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _LatestHatchingChange&&(identical(other.date, date) || other.date == date)&&(identical(other.role, role) || other.role == role)&&(identical(other.fullName, fullName) || other.fullName == fullName));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,date,role,fullName);

@override
String toString() {
  return 'LatestHatchingChange(date: $date, role: $role, fullName: $fullName)';
}


}

/// @nodoc
abstract mixin class _$LatestHatchingChangeCopyWith<$Res> implements $LatestHatchingChangeCopyWith<$Res> {
  factory _$LatestHatchingChangeCopyWith(_LatestHatchingChange value, $Res Function(_LatestHatchingChange) _then) = __$LatestHatchingChangeCopyWithImpl;
@override @useResult
$Res call({
 String? date, String? role, String? fullName
});




}
/// @nodoc
class __$LatestHatchingChangeCopyWithImpl<$Res>
    implements _$LatestHatchingChangeCopyWith<$Res> {
  __$LatestHatchingChangeCopyWithImpl(this._self, this._then);

  final _LatestHatchingChange _self;
  final $Res Function(_LatestHatchingChange) _then;

/// Create a copy of LatestHatchingChange
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? date = freezed,Object? role = freezed,Object? fullName = freezed,}) {
  return _then(_LatestHatchingChange(
date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable
as String?,role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable
as String?,fullName: freezed == fullName ? _self.fullName : fullName // ignore: cast_nullable_to_non_nullable
as String?,
  ));
}


}


/// @nodoc
mixin _$Registrar {

 String? get date; String? get role; String? get fullname;
/// Create a copy of Registrar
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$RegistrarCopyWith<Registrar> get copyWith => _$RegistrarCopyWithImpl<Registrar>(this as Registrar, _$identity);

  /// Serializes this Registrar to a JSON map.
  Map<String, dynamic> toJson();


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is Registrar&&(identical(other.date, date) || other.date == date)&&(identical(other.role, role) || other.role == role)&&(identical(other.fullname, fullname) || other.fullname == fullname));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,date,role,fullname);

@override
String toString() {
  return 'Registrar(date: $date, role: $role, fullname: $fullname)';
}


}

/// @nodoc
abstract mixin class $RegistrarCopyWith<$Res>  {
  factory $RegistrarCopyWith(Registrar value, $Res Function(Registrar) _then) = _$RegistrarCopyWithImpl;
@useResult
$Res call({
 String? date, String? role, String? fullname
});




}
/// @nodoc
class _$RegistrarCopyWithImpl<$Res>
    implements $RegistrarCopyWith<$Res> {
  _$RegistrarCopyWithImpl(this._self, this._then);

  final Registrar _self;
  final $Res Function(Registrar) _then;

/// Create a copy of Registrar
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? date = freezed,Object? role = freezed,Object? fullname = freezed,}) {
  return _then(_self.copyWith(
date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable
as String?,role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable
as String?,fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable
as String?,
  ));
}

}


/// Adds pattern-matching-related methods to [Registrar].
extension RegistrarPatterns on Registrar {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _Registrar value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _Registrar() when $default != null:
return $default(_that);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case final Subclass2 value:
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _Registrar value)  $default,){
final _that = this;
switch (_that) {
case _Registrar():
return $default(_that);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _Registrar value)?  $default,){
final _that = this;
switch (_that) {
case _Registrar() when $default != null:
return $default(_that);case _:
  return null;

}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( String? date,  String? role,  String? fullname)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _Registrar() when $default != null:
return $default(_that.date,_that.role,_that.fullname);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case Subclass2(:final field2):
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( String? date,  String? role,  String? fullname)  $default,) {final _that = this;
switch (_that) {
case _Registrar():
return $default(_that.date,_that.role,_that.fullname);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( String? date,  String? role,  String? fullname)?  $default,) {final _that = this;
switch (_that) {
case _Registrar() when $default != null:
return $default(_that.date,_that.role,_that.fullname);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _Registrar implements Registrar {
  const _Registrar({this.date, this.role, this.fullname});
  factory _Registrar.fromJson(Map<String, dynamic> json) => _$RegistrarFromJson(json);

@override final  String? date;
@override final  String? role;
@override final  String? fullname;

/// Create a copy of Registrar
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$RegistrarCopyWith<_Registrar> get copyWith => __$RegistrarCopyWithImpl<_Registrar>(this, _$identity);

@override
Map<String, dynamic> toJson() {
  return _$RegistrarToJson(this, );
}

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _Registrar&&(identical(other.date, date) || other.date == date)&&(identical(other.role, role) || other.role == role)&&(identical(other.fullname, fullname) || other.fullname == fullname));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,date,role,fullname);

@override
String toString() {
  return 'Registrar(date: $date, role: $role, fullname: $fullname)';
}


}

/// @nodoc
abstract mixin class _$RegistrarCopyWith<$Res> implements $RegistrarCopyWith<$Res> {
  factory _$RegistrarCopyWith(_Registrar value, $Res Function(_Registrar) _then) = __$RegistrarCopyWithImpl;
@override @useResult
$Res call({
 String? date, String? role, String? fullname
});




}
/// @nodoc
class __$RegistrarCopyWithImpl<$Res>
    implements _$RegistrarCopyWith<$Res> {
  __$RegistrarCopyWithImpl(this._self, this._then);

  final _Registrar _self;
  final $Res Function(_Registrar) _then;

/// Create a copy of Registrar
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? date = freezed,Object? role = freezed,Object? fullname = freezed,}) {
  return _then(_Registrar(
date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable
as String?,role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable
as String?,fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable
as String?,
  ));
}


}


/// @nodoc
mixin _$LastChange {

 String? get date; String? get role; String? get type; String? get fullName;
/// Create a copy of LastChange
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$LastChangeCopyWith<LastChange> get copyWith => _$LastChangeCopyWithImpl<LastChange>(this as LastChange, _$identity);

  /// Serializes this LastChange to a JSON map.
  Map<String, dynamic> toJson();


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is LastChange&&(identical(other.date, date) || other.date == date)&&(identical(other.role, role) || other.role == role)&&(identical(other.type, type) || other.type == type)&&(identical(other.fullName, fullName) || other.fullName == fullName));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,date,role,type,fullName);

@override
String toString() {
  return 'LastChange(date: $date, role: $role, type: $type, fullName: $fullName)';
}


}

/// @nodoc
abstract mixin class $LastChangeCopyWith<$Res>  {
  factory $LastChangeCopyWith(LastChange value, $Res Function(LastChange) _then) = _$LastChangeCopyWithImpl;
@useResult
$Res call({
 String? date, String? role, String? type, String? fullName
});




}
/// @nodoc
class _$LastChangeCopyWithImpl<$Res>
    implements $LastChangeCopyWith<$Res> {
  _$LastChangeCopyWithImpl(this._self, this._then);

  final LastChange _self;
  final $Res Function(LastChange) _then;

/// Create a copy of LastChange
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? date = freezed,Object? role = freezed,Object? type = freezed,Object? fullName = freezed,}) {
  return _then(_self.copyWith(
date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable
as String?,role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable
as String?,type: freezed == type ? _self.type : type // ignore: cast_nullable_to_non_nullable
as String?,fullName: freezed == fullName ? _self.fullName : fullName // ignore: cast_nullable_to_non_nullable
as String?,
  ));
}

}


/// Adds pattern-matching-related methods to [LastChange].
extension LastChangePatterns on LastChange {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _LastChange value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _LastChange() when $default != null:
return $default(_that);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case final Subclass2 value:
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _LastChange value)  $default,){
final _that = this;
switch (_that) {
case _LastChange():
return $default(_that);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _LastChange value)?  $default,){
final _that = this;
switch (_that) {
case _LastChange() when $default != null:
return $default(_that);case _:
  return null;

}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( String? date,  String? role,  String? type,  String? fullName)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _LastChange() when $default != null:
return $default(_that.date,_that.role,_that.type,_that.fullName);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case Subclass2(:final field2):
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( String? date,  String? role,  String? type,  String? fullName)  $default,) {final _that = this;
switch (_that) {
case _LastChange():
return $default(_that.date,_that.role,_that.type,_that.fullName);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( String? date,  String? role,  String? type,  String? fullName)?  $default,) {final _that = this;
switch (_that) {
case _LastChange() when $default != null:
return $default(_that.date,_that.role,_that.type,_that.fullName);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _LastChange implements LastChange {
  const _LastChange({this.date, this.role, this.type, this.fullName});
  factory _LastChange.fromJson(Map<String, dynamic> json) => _$LastChangeFromJson(json);

@override final  String? date;
@override final  String? role;
@override final  String? type;
@override final  String? fullName;

/// Create a copy of LastChange
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$LastChangeCopyWith<_LastChange> get copyWith => __$LastChangeCopyWithImpl<_LastChange>(this, _$identity);

@override
Map<String, dynamic> toJson() {
  return _$LastChangeToJson(this, );
}

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _LastChange&&(identical(other.date, date) || other.date == date)&&(identical(other.role, role) || other.role == role)&&(identical(other.type, type) || other.type == type)&&(identical(other.fullName, fullName) || other.fullName == fullName));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,date,role,type,fullName);

@override
String toString() {
  return 'LastChange(date: $date, role: $role, type: $type, fullName: $fullName)';
}


}

/// @nodoc
abstract mixin class _$LastChangeCopyWith<$Res> implements $LastChangeCopyWith<$Res> {
  factory _$LastChangeCopyWith(_LastChange value, $Res Function(_LastChange) _then) = __$LastChangeCopyWithImpl;
@override @useResult
$Res call({
 String? date, String? role, String? type, String? fullName
});




}
/// @nodoc
class __$LastChangeCopyWithImpl<$Res>
    implements _$LastChangeCopyWith<$Res> {
  __$LastChangeCopyWithImpl(this._self, this._then);

  final _LastChange _self;
  final $Res Function(_LastChange) _then;

/// Create a copy of LastChange
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? date = freezed,Object? role = freezed,Object? type = freezed,Object? fullName = freezed,}) {
  return _then(_LastChange(
date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable
as String?,role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable
as String?,type: freezed == type ? _self.type : type // ignore: cast_nullable_to_non_nullable
as String?,fullName: freezed == fullName ? _self.fullName : fullName // ignore: cast_nullable_to_non_nullable
as String?,
  ));
}


}


/// @nodoc
mixin _$BreedItem {

 String? get breed; num? get mainQuantity; num? get remainQuantity;
/// Create a copy of BreedItem
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$BreedItemCopyWith<BreedItem> get copyWith => _$BreedItemCopyWithImpl<BreedItem>(this as BreedItem, _$identity);

  /// Serializes this BreedItem to a JSON map.
  Map<String, dynamic> toJson();


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is BreedItem&&(identical(other.breed, breed) || other.breed == breed)&&(identical(other.mainQuantity, mainQuantity) || other.mainQuantity == mainQuantity)&&(identical(other.remainQuantity, remainQuantity) || other.remainQuantity == remainQuantity));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,breed,mainQuantity,remainQuantity);

@override
String toString() {
  return 'BreedItem(breed: $breed, mainQuantity: $mainQuantity, remainQuantity: $remainQuantity)';
}


}

/// @nodoc
abstract mixin class $BreedItemCopyWith<$Res>  {
  factory $BreedItemCopyWith(BreedItem value, $Res Function(BreedItem) _then) = _$BreedItemCopyWithImpl;
@useResult
$Res call({
 String? breed, num? mainQuantity, num? remainQuantity
});




}
/// @nodoc
class _$BreedItemCopyWithImpl<$Res>
    implements $BreedItemCopyWith<$Res> {
  _$BreedItemCopyWithImpl(this._self, this._then);

  final BreedItem _self;
  final $Res Function(BreedItem) _then;

/// Create a copy of BreedItem
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? breed = freezed,Object? mainQuantity = freezed,Object? remainQuantity = freezed,}) {
  return _then(_self.copyWith(
breed: freezed == breed ? _self.breed : breed // ignore: cast_nullable_to_non_nullable
as String?,mainQuantity: freezed == mainQuantity ? _self.mainQuantity : mainQuantity // ignore: cast_nullable_to_non_nullable
as num?,remainQuantity: freezed == remainQuantity ? _self.remainQuantity : remainQuantity // ignore: cast_nullable_to_non_nullable
as num?,
  ));
}

}


/// Adds pattern-matching-related methods to [BreedItem].
extension BreedItemPatterns on BreedItem {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _BreedItem value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _BreedItem() when $default != null:
return $default(_that);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case final Subclass2 value:
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _BreedItem value)  $default,){
final _that = this;
switch (_that) {
case _BreedItem():
return $default(_that);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case final Subclass value:
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _BreedItem value)?  $default,){
final _that = this;
switch (_that) {
case _BreedItem() when $default != null:
return $default(_that);case _:
  return null;

}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return orElse();
/// }
/// ```

@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( String? breed,  num? mainQuantity,  num? remainQuantity)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _BreedItem() when $default != null:
return $default(_that.breed,_that.mainQuantity,_that.remainQuantity);case _:
  return orElse();

}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case Subclass2(:final field2):
///     return ...;
/// }
/// ```

@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( String? breed,  num? mainQuantity,  num? remainQuantity)  $default,) {final _that = this;
switch (_that) {
case _BreedItem():
return $default(_that.breed,_that.mainQuantity,_that.remainQuantity);case _:
  throw StateError('Unexpected subclass');

}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
///   case Subclass(:final field):
///     return ...;
///   case _:
///     return null;
/// }
/// ```

@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( String? breed,  num? mainQuantity,  num? remainQuantity)?  $default,) {final _that = this;
switch (_that) {
case _BreedItem() when $default != null:
return $default(_that.breed,_that.mainQuantity,_that.remainQuantity);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _BreedItem implements BreedItem {
  const _BreedItem({this.breed, this.mainQuantity, this.remainQuantity});
  factory _BreedItem.fromJson(Map<String, dynamic> json) => _$BreedItemFromJson(json);

@override final  String? breed;
@override final  num? mainQuantity;
@override final  num? remainQuantity;

/// Create a copy of BreedItem
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$BreedItemCopyWith<_BreedItem> get copyWith => __$BreedItemCopyWithImpl<_BreedItem>(this, _$identity);

@override
Map<String, dynamic> toJson() {
  return _$BreedItemToJson(this, );
}

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _BreedItem&&(identical(other.breed, breed) || other.breed == breed)&&(identical(other.mainQuantity, mainQuantity) || other.mainQuantity == mainQuantity)&&(identical(other.remainQuantity, remainQuantity) || other.remainQuantity == remainQuantity));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,breed,mainQuantity,remainQuantity);

@override
String toString() {
  return 'BreedItem(breed: $breed, mainQuantity: $mainQuantity, remainQuantity: $remainQuantity)';
}


}

/// @nodoc
abstract mixin class _$BreedItemCopyWith<$Res> implements $BreedItemCopyWith<$Res> {
  factory _$BreedItemCopyWith(_BreedItem value, $Res Function(_BreedItem) _then) = __$BreedItemCopyWithImpl;
@override @useResult
$Res call({
 String? breed, num? mainQuantity, num? remainQuantity
});




}
/// @nodoc
class __$BreedItemCopyWithImpl<$Res>
    implements _$BreedItemCopyWith<$Res> {
  __$BreedItemCopyWithImpl(this._self, this._then);

  final _BreedItem _self;
  final $Res Function(_BreedItem) _then;

/// Create a copy of BreedItem
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? breed = freezed,Object? mainQuantity = freezed,Object? remainQuantity = freezed,}) {
  return _then(_BreedItem(
breed: freezed == breed ? _self.breed : breed // ignore: cast_nullable_to_non_nullable
as String?,mainQuantity: freezed == mainQuantity ? _self.mainQuantity : mainQuantity // ignore: cast_nullable_to_non_nullable
as num?,remainQuantity: freezed == remainQuantity ? _self.remainQuantity : remainQuantity // ignore: cast_nullable_to_non_nullable
as num?,
  ));
}


}

// dart format on
