// 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 'kill_request_poultry.dart';

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

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

/// @nodoc
mixin _$KillRequestPoultry {

 UserProfile? get userprofile; Address? get address; PoultryOwner? get poultryOwner; PoultryTenant? get poultryTenant; List<Hatching>? get hatching; List<int>? get registerVetHalls; Allow? get allow; ProvinceAllowChooseKillHouse? get provinceAllowChooseKillHouse; bool? get provinceAllowSellFree; VetFarm? get vetFarm; LastHatchingDifferentRequestQuantity? get lastHatchingDiffrentRequestQuantity; UserBankInfo? get userBankInfo; int? get leftOverOwnHatching; 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; int? get operatingLicenceCapacity; int? get numberOfHalls; bool? get tenant; bool? get hasTenant; String? get personType; String? get economicCode; String? get systemCode; String? get epidemiologicalCode; String? get breedingUniqueId; int? get totalCapacity; String? get licenceNumber; String? get healthCertificateNumber; int? get numberOfRequests; String? get hatchingDate; String? get lastPartyDate; int? get numberOfIncubators; int? get herdAgeByDay; int? get herdAgeByWeek; int? get numberOfParty; String? get communicationType; String? get cooperative; String? get dateOfRegister; String? get unitStatus; bool? get active; String? get identityDocuments; String? get samasatUserCode; int? get baseOrder; String? get incubationDate; int? get walletAmount; int? get city; int? get cityNumber; String? get cityName; int? get provinceNumber; String? get provinceName; int? get walletIdForeignKey; int? get poultryIdKey; double? get lat; double? get long; String? get date; int? get killingAveAge; int? get activeLeftOver; int? get killingAveCount; double? get killingAveWeight; double? get killingLiveWeight; double? get killingCarcassesWeight; double? get killingLossWeightPercent; double? get realKillingAveWeight; double? get realKillingLiveWeight; double? get realKillingCarcassesWeight; double? get realKillingLossWeightPercent; int? get interestLicenseId; bool? get orderLimit; int? get owner; int? get wallet;
/// Create a copy of KillRequestPoultry
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$KillRequestPoultryCopyWith<KillRequestPoultry> get copyWith => _$KillRequestPoultryCopyWithImpl<KillRequestPoultry>(this as KillRequestPoultry, _$identity);

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


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is KillRequestPoultry&&(identical(other.userprofile, userprofile) || other.userprofile == userprofile)&&(identical(other.address, address) || other.address == address)&&(identical(other.poultryOwner, poultryOwner) || other.poultryOwner == poultryOwner)&&(identical(other.poultryTenant, poultryTenant) || other.poultryTenant == poultryTenant)&&const DeepCollectionEquality().equals(other.hatching, hatching)&&const DeepCollectionEquality().equals(other.registerVetHalls, registerVetHalls)&&(identical(other.allow, allow) || other.allow == allow)&&(identical(other.provinceAllowChooseKillHouse, provinceAllowChooseKillHouse) || other.provinceAllowChooseKillHouse == provinceAllowChooseKillHouse)&&(identical(other.provinceAllowSellFree, provinceAllowSellFree) || other.provinceAllowSellFree == provinceAllowSellFree)&&(identical(other.vetFarm, vetFarm) || other.vetFarm == vetFarm)&&(identical(other.lastHatchingDiffrentRequestQuantity, lastHatchingDiffrentRequestQuantity) || other.lastHatchingDiffrentRequestQuantity == lastHatchingDiffrentRequestQuantity)&&(identical(other.userBankInfo, userBankInfo) || other.userBankInfo == userBankInfo)&&(identical(other.leftOverOwnHatching, leftOverOwnHatching) || other.leftOverOwnHatching == leftOverOwnHatching)&&(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)&&(identical(other.identityDocuments, identityDocuments) || 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.wallet, wallet) || other.wallet == wallet));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hashAll([runtimeType,userprofile,address,poultryOwner,poultryTenant,const DeepCollectionEquality().hash(hatching),const DeepCollectionEquality().hash(registerVetHalls),allow,provinceAllowChooseKillHouse,provinceAllowSellFree,vetFarm,lastHatchingDiffrentRequestQuantity,userBankInfo,leftOverOwnHatching,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,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,wallet]);

@override
String toString() {
  return 'KillRequestPoultry(userprofile: $userprofile, address: $address, poultryOwner: $poultryOwner, poultryTenant: $poultryTenant, hatching: $hatching, registerVetHalls: $registerVetHalls, allow: $allow, provinceAllowChooseKillHouse: $provinceAllowChooseKillHouse, provinceAllowSellFree: $provinceAllowSellFree, vetFarm: $vetFarm, lastHatchingDiffrentRequestQuantity: $lastHatchingDiffrentRequestQuantity, userBankInfo: $userBankInfo, leftOverOwnHatching: $leftOverOwnHatching, 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, wallet: $wallet)';
}


}

/// @nodoc
abstract mixin class $KillRequestPoultryCopyWith<$Res>  {
  factory $KillRequestPoultryCopyWith(KillRequestPoultry value, $Res Function(KillRequestPoultry) _then) = _$KillRequestPoultryCopyWithImpl;
@useResult
$Res call({
 UserProfile? userprofile, Address? address, PoultryOwner? poultryOwner, PoultryTenant? poultryTenant, List<Hatching>? hatching, List<int>? registerVetHalls, Allow? allow, ProvinceAllowChooseKillHouse? provinceAllowChooseKillHouse, bool? provinceAllowSellFree, VetFarm? vetFarm, LastHatchingDifferentRequestQuantity? lastHatchingDiffrentRequestQuantity, UserBankInfo? userBankInfo, int? leftOverOwnHatching, String? key, bool? trash, int? ownerIdForeignKey, int? userIdForeignKey, int? addressIdForeignKey, bool? hasChainCompany, int? userBankIdForeignKey, String? cityOperator, String? unitName, String? gisCode, int? operatingLicenceCapacity, int? numberOfHalls, bool? tenant, bool? hasTenant, String? personType, String? economicCode, String? systemCode, String? epidemiologicalCode, String? breedingUniqueId, int? totalCapacity, String? licenceNumber, String? healthCertificateNumber, int? numberOfRequests, String? hatchingDate, String? lastPartyDate, int? numberOfIncubators, int? herdAgeByDay, int? herdAgeByWeek, int? numberOfParty, String? communicationType, String? cooperative, String? dateOfRegister, String? unitStatus, bool? active, String? identityDocuments, String? samasatUserCode, int? baseOrder, String? incubationDate, int? walletAmount, int? city, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, int? walletIdForeignKey, int? poultryIdKey, double? lat, double? long, String? date, int? killingAveAge, int? activeLeftOver, int? killingAveCount, double? killingAveWeight, double? killingLiveWeight, double? killingCarcassesWeight, double? killingLossWeightPercent, double? realKillingAveWeight, double? realKillingLiveWeight, double? realKillingCarcassesWeight, double? realKillingLossWeightPercent, int? interestLicenseId, bool? orderLimit, int? owner, int? wallet
});


$UserProfileCopyWith<$Res>? get userprofile;$AddressCopyWith<$Res>? get address;$PoultryOwnerCopyWith<$Res>? get poultryOwner;$PoultryTenantCopyWith<$Res>? get poultryTenant;$AllowCopyWith<$Res>? get allow;$ProvinceAllowChooseKillHouseCopyWith<$Res>? get provinceAllowChooseKillHouse;$VetFarmCopyWith<$Res>? get vetFarm;$LastHatchingDifferentRequestQuantityCopyWith<$Res>? get lastHatchingDiffrentRequestQuantity;$UserBankInfoCopyWith<$Res>? get userBankInfo;

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

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

/// Create a copy of KillRequestPoultry
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? userprofile = freezed,Object? address = freezed,Object? poultryOwner = freezed,Object? poultryTenant = freezed,Object? hatching = freezed,Object? registerVetHalls = freezed,Object? allow = freezed,Object? provinceAllowChooseKillHouse = freezed,Object? provinceAllowSellFree = freezed,Object? vetFarm = freezed,Object? lastHatchingDiffrentRequestQuantity = freezed,Object? userBankInfo = freezed,Object? leftOverOwnHatching = 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? wallet = freezed,}) {
  return _then(_self.copyWith(
userprofile: freezed == userprofile ? _self.userprofile : userprofile // ignore: cast_nullable_to_non_nullable
as UserProfile?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable
as Address?,poultryOwner: freezed == poultryOwner ? _self.poultryOwner : poultryOwner // ignore: cast_nullable_to_non_nullable
as PoultryOwner?,poultryTenant: freezed == poultryTenant ? _self.poultryTenant : poultryTenant // ignore: cast_nullable_to_non_nullable
as PoultryTenant?,hatching: freezed == hatching ? _self.hatching : hatching // ignore: cast_nullable_to_non_nullable
as List<Hatching>?,registerVetHalls: freezed == registerVetHalls ? _self.registerVetHalls : registerVetHalls // ignore: cast_nullable_to_non_nullable
as List<int>?,allow: freezed == allow ? _self.allow : allow // ignore: cast_nullable_to_non_nullable
as Allow?,provinceAllowChooseKillHouse: freezed == provinceAllowChooseKillHouse ? _self.provinceAllowChooseKillHouse : provinceAllowChooseKillHouse // ignore: cast_nullable_to_non_nullable
as ProvinceAllowChooseKillHouse?,provinceAllowSellFree: freezed == provinceAllowSellFree ? _self.provinceAllowSellFree : provinceAllowSellFree // ignore: cast_nullable_to_non_nullable
as bool?,vetFarm: freezed == vetFarm ? _self.vetFarm : vetFarm // ignore: cast_nullable_to_non_nullable
as VetFarm?,lastHatchingDiffrentRequestQuantity: freezed == lastHatchingDiffrentRequestQuantity ? _self.lastHatchingDiffrentRequestQuantity : lastHatchingDiffrentRequestQuantity // ignore: cast_nullable_to_non_nullable
as LastHatchingDifferentRequestQuantity?,userBankInfo: freezed == userBankInfo ? _self.userBankInfo : userBankInfo // ignore: cast_nullable_to_non_nullable
as UserBankInfo?,leftOverOwnHatching: freezed == leftOverOwnHatching ? _self.leftOverOwnHatching : leftOverOwnHatching // ignore: cast_nullable_to_non_nullable
as int?,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 int?,numberOfHalls: freezed == numberOfHalls ? _self.numberOfHalls : numberOfHalls // ignore: cast_nullable_to_non_nullable
as int?,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 int?,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 int?,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 int?,herdAgeByDay: freezed == herdAgeByDay ? _self.herdAgeByDay : herdAgeByDay // ignore: cast_nullable_to_non_nullable
as int?,herdAgeByWeek: freezed == herdAgeByWeek ? _self.herdAgeByWeek : herdAgeByWeek // ignore: cast_nullable_to_non_nullable
as int?,numberOfParty: freezed == numberOfParty ? _self.numberOfParty : numberOfParty // ignore: cast_nullable_to_non_nullable
as int?,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 String?,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 int?,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 int?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable
as int?,cityNumber: freezed == cityNumber ? _self.cityNumber : cityNumber // ignore: cast_nullable_to_non_nullable
as int?,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 int?,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 double?,long: freezed == long ? _self.long : long // ignore: cast_nullable_to_non_nullable
as double?,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 int?,activeLeftOver: freezed == activeLeftOver ? _self.activeLeftOver : activeLeftOver // ignore: cast_nullable_to_non_nullable
as int?,killingAveCount: freezed == killingAveCount ? _self.killingAveCount : killingAveCount // ignore: cast_nullable_to_non_nullable
as int?,killingAveWeight: freezed == killingAveWeight ? _self.killingAveWeight : killingAveWeight // ignore: cast_nullable_to_non_nullable
as double?,killingLiveWeight: freezed == killingLiveWeight ? _self.killingLiveWeight : killingLiveWeight // ignore: cast_nullable_to_non_nullable
as double?,killingCarcassesWeight: freezed == killingCarcassesWeight ? _self.killingCarcassesWeight : killingCarcassesWeight // ignore: cast_nullable_to_non_nullable
as double?,killingLossWeightPercent: freezed == killingLossWeightPercent ? _self.killingLossWeightPercent : killingLossWeightPercent // ignore: cast_nullable_to_non_nullable
as double?,realKillingAveWeight: freezed == realKillingAveWeight ? _self.realKillingAveWeight : realKillingAveWeight // ignore: cast_nullable_to_non_nullable
as double?,realKillingLiveWeight: freezed == realKillingLiveWeight ? _self.realKillingLiveWeight : realKillingLiveWeight // ignore: cast_nullable_to_non_nullable
as double?,realKillingCarcassesWeight: freezed == realKillingCarcassesWeight ? _self.realKillingCarcassesWeight : realKillingCarcassesWeight // ignore: cast_nullable_to_non_nullable
as double?,realKillingLossWeightPercent: freezed == realKillingLossWeightPercent ? _self.realKillingLossWeightPercent : realKillingLossWeightPercent // ignore: cast_nullable_to_non_nullable
as double?,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?,wallet: freezed == wallet ? _self.wallet : wallet // ignore: cast_nullable_to_non_nullable
as int?,
  ));
}
/// Create a copy of KillRequestPoultry
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$UserProfileCopyWith<$Res>? get userprofile {
    if (_self.userprofile == null) {
    return null;
  }

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

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

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

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

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

  return $ProvinceAllowChooseKillHouseCopyWith<$Res>(_self.provinceAllowChooseKillHouse!, (value) {
    return _then(_self.copyWith(provinceAllowChooseKillHouse: value));
  });
}/// Create a copy of KillRequestPoultry
/// 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 KillRequestPoultry
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$LastHatchingDifferentRequestQuantityCopyWith<$Res>? get lastHatchingDiffrentRequestQuantity {
    if (_self.lastHatchingDiffrentRequestQuantity == null) {
    return null;
  }

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

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


/// Adds pattern-matching-related methods to [KillRequestPoultry].
extension KillRequestPoultryPatterns on KillRequestPoultry {
/// 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( _KillRequestPoultry value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _KillRequestPoultry() 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( _KillRequestPoultry value)  $default,){
final _that = this;
switch (_that) {
case _KillRequestPoultry():
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( _KillRequestPoultry value)?  $default,){
final _that = this;
switch (_that) {
case _KillRequestPoultry() 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( UserProfile? userprofile,  Address? address,  PoultryOwner? poultryOwner,  PoultryTenant? poultryTenant,  List<Hatching>? hatching,  List<int>? registerVetHalls,  Allow? allow,  ProvinceAllowChooseKillHouse? provinceAllowChooseKillHouse,  bool? provinceAllowSellFree,  VetFarm? vetFarm,  LastHatchingDifferentRequestQuantity? lastHatchingDiffrentRequestQuantity,  UserBankInfo? userBankInfo,  int? leftOverOwnHatching,  String? key,  bool? trash,  int? ownerIdForeignKey,  int? userIdForeignKey,  int? addressIdForeignKey,  bool? hasChainCompany,  int? userBankIdForeignKey,  String? cityOperator,  String? unitName,  String? gisCode,  int? operatingLicenceCapacity,  int? numberOfHalls,  bool? tenant,  bool? hasTenant,  String? personType,  String? economicCode,  String? systemCode,  String? epidemiologicalCode,  String? breedingUniqueId,  int? totalCapacity,  String? licenceNumber,  String? healthCertificateNumber,  int? numberOfRequests,  String? hatchingDate,  String? lastPartyDate,  int? numberOfIncubators,  int? herdAgeByDay,  int? herdAgeByWeek,  int? numberOfParty,  String? communicationType,  String? cooperative,  String? dateOfRegister,  String? unitStatus,  bool? active,  String? identityDocuments,  String? samasatUserCode,  int? baseOrder,  String? incubationDate,  int? walletAmount,  int? city,  int? cityNumber,  String? cityName,  int? provinceNumber,  String? provinceName,  int? walletIdForeignKey,  int? poultryIdKey,  double? lat,  double? long,  String? date,  int? killingAveAge,  int? activeLeftOver,  int? killingAveCount,  double? killingAveWeight,  double? killingLiveWeight,  double? killingCarcassesWeight,  double? killingLossWeightPercent,  double? realKillingAveWeight,  double? realKillingLiveWeight,  double? realKillingCarcassesWeight,  double? realKillingLossWeightPercent,  int? interestLicenseId,  bool? orderLimit,  int? owner,  int? wallet)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _KillRequestPoultry() when $default != null:
return $default(_that.userprofile,_that.address,_that.poultryOwner,_that.poultryTenant,_that.hatching,_that.registerVetHalls,_that.allow,_that.provinceAllowChooseKillHouse,_that.provinceAllowSellFree,_that.vetFarm,_that.lastHatchingDiffrentRequestQuantity,_that.userBankInfo,_that.leftOverOwnHatching,_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.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( UserProfile? userprofile,  Address? address,  PoultryOwner? poultryOwner,  PoultryTenant? poultryTenant,  List<Hatching>? hatching,  List<int>? registerVetHalls,  Allow? allow,  ProvinceAllowChooseKillHouse? provinceAllowChooseKillHouse,  bool? provinceAllowSellFree,  VetFarm? vetFarm,  LastHatchingDifferentRequestQuantity? lastHatchingDiffrentRequestQuantity,  UserBankInfo? userBankInfo,  int? leftOverOwnHatching,  String? key,  bool? trash,  int? ownerIdForeignKey,  int? userIdForeignKey,  int? addressIdForeignKey,  bool? hasChainCompany,  int? userBankIdForeignKey,  String? cityOperator,  String? unitName,  String? gisCode,  int? operatingLicenceCapacity,  int? numberOfHalls,  bool? tenant,  bool? hasTenant,  String? personType,  String? economicCode,  String? systemCode,  String? epidemiologicalCode,  String? breedingUniqueId,  int? totalCapacity,  String? licenceNumber,  String? healthCertificateNumber,  int? numberOfRequests,  String? hatchingDate,  String? lastPartyDate,  int? numberOfIncubators,  int? herdAgeByDay,  int? herdAgeByWeek,  int? numberOfParty,  String? communicationType,  String? cooperative,  String? dateOfRegister,  String? unitStatus,  bool? active,  String? identityDocuments,  String? samasatUserCode,  int? baseOrder,  String? incubationDate,  int? walletAmount,  int? city,  int? cityNumber,  String? cityName,  int? provinceNumber,  String? provinceName,  int? walletIdForeignKey,  int? poultryIdKey,  double? lat,  double? long,  String? date,  int? killingAveAge,  int? activeLeftOver,  int? killingAveCount,  double? killingAveWeight,  double? killingLiveWeight,  double? killingCarcassesWeight,  double? killingLossWeightPercent,  double? realKillingAveWeight,  double? realKillingLiveWeight,  double? realKillingCarcassesWeight,  double? realKillingLossWeightPercent,  int? interestLicenseId,  bool? orderLimit,  int? owner,  int? wallet)  $default,) {final _that = this;
switch (_that) {
case _KillRequestPoultry():
return $default(_that.userprofile,_that.address,_that.poultryOwner,_that.poultryTenant,_that.hatching,_that.registerVetHalls,_that.allow,_that.provinceAllowChooseKillHouse,_that.provinceAllowSellFree,_that.vetFarm,_that.lastHatchingDiffrentRequestQuantity,_that.userBankInfo,_that.leftOverOwnHatching,_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.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( UserProfile? userprofile,  Address? address,  PoultryOwner? poultryOwner,  PoultryTenant? poultryTenant,  List<Hatching>? hatching,  List<int>? registerVetHalls,  Allow? allow,  ProvinceAllowChooseKillHouse? provinceAllowChooseKillHouse,  bool? provinceAllowSellFree,  VetFarm? vetFarm,  LastHatchingDifferentRequestQuantity? lastHatchingDiffrentRequestQuantity,  UserBankInfo? userBankInfo,  int? leftOverOwnHatching,  String? key,  bool? trash,  int? ownerIdForeignKey,  int? userIdForeignKey,  int? addressIdForeignKey,  bool? hasChainCompany,  int? userBankIdForeignKey,  String? cityOperator,  String? unitName,  String? gisCode,  int? operatingLicenceCapacity,  int? numberOfHalls,  bool? tenant,  bool? hasTenant,  String? personType,  String? economicCode,  String? systemCode,  String? epidemiologicalCode,  String? breedingUniqueId,  int? totalCapacity,  String? licenceNumber,  String? healthCertificateNumber,  int? numberOfRequests,  String? hatchingDate,  String? lastPartyDate,  int? numberOfIncubators,  int? herdAgeByDay,  int? herdAgeByWeek,  int? numberOfParty,  String? communicationType,  String? cooperative,  String? dateOfRegister,  String? unitStatus,  bool? active,  String? identityDocuments,  String? samasatUserCode,  int? baseOrder,  String? incubationDate,  int? walletAmount,  int? city,  int? cityNumber,  String? cityName,  int? provinceNumber,  String? provinceName,  int? walletIdForeignKey,  int? poultryIdKey,  double? lat,  double? long,  String? date,  int? killingAveAge,  int? activeLeftOver,  int? killingAveCount,  double? killingAveWeight,  double? killingLiveWeight,  double? killingCarcassesWeight,  double? killingLossWeightPercent,  double? realKillingAveWeight,  double? realKillingLiveWeight,  double? realKillingCarcassesWeight,  double? realKillingLossWeightPercent,  int? interestLicenseId,  bool? orderLimit,  int? owner,  int? wallet)?  $default,) {final _that = this;
switch (_that) {
case _KillRequestPoultry() when $default != null:
return $default(_that.userprofile,_that.address,_that.poultryOwner,_that.poultryTenant,_that.hatching,_that.registerVetHalls,_that.allow,_that.provinceAllowChooseKillHouse,_that.provinceAllowSellFree,_that.vetFarm,_that.lastHatchingDiffrentRequestQuantity,_that.userBankInfo,_that.leftOverOwnHatching,_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.wallet);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _KillRequestPoultry implements KillRequestPoultry {
  const _KillRequestPoultry({this.userprofile, this.address, this.poultryOwner, this.poultryTenant, final  List<Hatching>? hatching, final  List<int>? registerVetHalls, this.allow, this.provinceAllowChooseKillHouse, this.provinceAllowSellFree, this.vetFarm, this.lastHatchingDiffrentRequestQuantity, this.userBankInfo, this.leftOverOwnHatching, 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.wallet}): _hatching = hatching,_registerVetHalls = registerVetHalls;
  factory _KillRequestPoultry.fromJson(Map<String, dynamic> json) => _$KillRequestPoultryFromJson(json);

@override final  UserProfile? userprofile;
@override final  Address? address;
@override final  PoultryOwner? poultryOwner;
@override final  PoultryTenant? poultryTenant;
 final  List<Hatching>? _hatching;
@override List<Hatching>? get hatching {
  final value = _hatching;
  if (value == null) return null;
  if (_hatching is EqualUnmodifiableListView) return _hatching;
  // ignore: implicit_dynamic_type
  return EqualUnmodifiableListView(value);
}

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

@override final  Allow? allow;
@override final  ProvinceAllowChooseKillHouse? provinceAllowChooseKillHouse;
@override final  bool? provinceAllowSellFree;
@override final  VetFarm? vetFarm;
@override final  LastHatchingDifferentRequestQuantity? lastHatchingDiffrentRequestQuantity;
@override final  UserBankInfo? userBankInfo;
@override final  int? leftOverOwnHatching;
@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  int? operatingLicenceCapacity;
@override final  int? 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  int? totalCapacity;
@override final  String? licenceNumber;
@override final  String? healthCertificateNumber;
@override final  int? numberOfRequests;
@override final  String? hatchingDate;
@override final  String? lastPartyDate;
@override final  int? numberOfIncubators;
@override final  int? herdAgeByDay;
@override final  int? herdAgeByWeek;
@override final  int? numberOfParty;
@override final  String? communicationType;
@override final  String? cooperative;
@override final  String? dateOfRegister;
@override final  String? unitStatus;
@override final  bool? active;
@override final  String? identityDocuments;
@override final  String? samasatUserCode;
@override final  int? baseOrder;
@override final  String? incubationDate;
@override final  int? walletAmount;
@override final  int? city;
@override final  int? cityNumber;
@override final  String? cityName;
@override final  int? provinceNumber;
@override final  String? provinceName;
@override final  int? walletIdForeignKey;
@override final  int? poultryIdKey;
@override final  double? lat;
@override final  double? long;
@override final  String? date;
@override final  int? killingAveAge;
@override final  int? activeLeftOver;
@override final  int? killingAveCount;
@override final  double? killingAveWeight;
@override final  double? killingLiveWeight;
@override final  double? killingCarcassesWeight;
@override final  double? killingLossWeightPercent;
@override final  double? realKillingAveWeight;
@override final  double? realKillingLiveWeight;
@override final  double? realKillingCarcassesWeight;
@override final  double? realKillingLossWeightPercent;
@override final  int? interestLicenseId;
@override final  bool? orderLimit;
@override final  int? owner;
@override final  int? wallet;

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

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

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _KillRequestPoultry&&(identical(other.userprofile, userprofile) || other.userprofile == userprofile)&&(identical(other.address, address) || other.address == address)&&(identical(other.poultryOwner, poultryOwner) || other.poultryOwner == poultryOwner)&&(identical(other.poultryTenant, poultryTenant) || other.poultryTenant == poultryTenant)&&const DeepCollectionEquality().equals(other._hatching, _hatching)&&const DeepCollectionEquality().equals(other._registerVetHalls, _registerVetHalls)&&(identical(other.allow, allow) || other.allow == allow)&&(identical(other.provinceAllowChooseKillHouse, provinceAllowChooseKillHouse) || other.provinceAllowChooseKillHouse == provinceAllowChooseKillHouse)&&(identical(other.provinceAllowSellFree, provinceAllowSellFree) || other.provinceAllowSellFree == provinceAllowSellFree)&&(identical(other.vetFarm, vetFarm) || other.vetFarm == vetFarm)&&(identical(other.lastHatchingDiffrentRequestQuantity, lastHatchingDiffrentRequestQuantity) || other.lastHatchingDiffrentRequestQuantity == lastHatchingDiffrentRequestQuantity)&&(identical(other.userBankInfo, userBankInfo) || other.userBankInfo == userBankInfo)&&(identical(other.leftOverOwnHatching, leftOverOwnHatching) || other.leftOverOwnHatching == leftOverOwnHatching)&&(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)&&(identical(other.identityDocuments, identityDocuments) || 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.wallet, wallet) || other.wallet == wallet));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hashAll([runtimeType,userprofile,address,poultryOwner,poultryTenant,const DeepCollectionEquality().hash(_hatching),const DeepCollectionEquality().hash(_registerVetHalls),allow,provinceAllowChooseKillHouse,provinceAllowSellFree,vetFarm,lastHatchingDiffrentRequestQuantity,userBankInfo,leftOverOwnHatching,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,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,wallet]);

@override
String toString() {
  return 'KillRequestPoultry(userprofile: $userprofile, address: $address, poultryOwner: $poultryOwner, poultryTenant: $poultryTenant, hatching: $hatching, registerVetHalls: $registerVetHalls, allow: $allow, provinceAllowChooseKillHouse: $provinceAllowChooseKillHouse, provinceAllowSellFree: $provinceAllowSellFree, vetFarm: $vetFarm, lastHatchingDiffrentRequestQuantity: $lastHatchingDiffrentRequestQuantity, userBankInfo: $userBankInfo, leftOverOwnHatching: $leftOverOwnHatching, 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, wallet: $wallet)';
}


}

/// @nodoc
abstract mixin class _$KillRequestPoultryCopyWith<$Res> implements $KillRequestPoultryCopyWith<$Res> {
  factory _$KillRequestPoultryCopyWith(_KillRequestPoultry value, $Res Function(_KillRequestPoultry) _then) = __$KillRequestPoultryCopyWithImpl;
@override @useResult
$Res call({
 UserProfile? userprofile, Address? address, PoultryOwner? poultryOwner, PoultryTenant? poultryTenant, List<Hatching>? hatching, List<int>? registerVetHalls, Allow? allow, ProvinceAllowChooseKillHouse? provinceAllowChooseKillHouse, bool? provinceAllowSellFree, VetFarm? vetFarm, LastHatchingDifferentRequestQuantity? lastHatchingDiffrentRequestQuantity, UserBankInfo? userBankInfo, int? leftOverOwnHatching, String? key, bool? trash, int? ownerIdForeignKey, int? userIdForeignKey, int? addressIdForeignKey, bool? hasChainCompany, int? userBankIdForeignKey, String? cityOperator, String? unitName, String? gisCode, int? operatingLicenceCapacity, int? numberOfHalls, bool? tenant, bool? hasTenant, String? personType, String? economicCode, String? systemCode, String? epidemiologicalCode, String? breedingUniqueId, int? totalCapacity, String? licenceNumber, String? healthCertificateNumber, int? numberOfRequests, String? hatchingDate, String? lastPartyDate, int? numberOfIncubators, int? herdAgeByDay, int? herdAgeByWeek, int? numberOfParty, String? communicationType, String? cooperative, String? dateOfRegister, String? unitStatus, bool? active, String? identityDocuments, String? samasatUserCode, int? baseOrder, String? incubationDate, int? walletAmount, int? city, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, int? walletIdForeignKey, int? poultryIdKey, double? lat, double? long, String? date, int? killingAveAge, int? activeLeftOver, int? killingAveCount, double? killingAveWeight, double? killingLiveWeight, double? killingCarcassesWeight, double? killingLossWeightPercent, double? realKillingAveWeight, double? realKillingLiveWeight, double? realKillingCarcassesWeight, double? realKillingLossWeightPercent, int? interestLicenseId, bool? orderLimit, int? owner, int? wallet
});


@override $UserProfileCopyWith<$Res>? get userprofile;@override $AddressCopyWith<$Res>? get address;@override $PoultryOwnerCopyWith<$Res>? get poultryOwner;@override $PoultryTenantCopyWith<$Res>? get poultryTenant;@override $AllowCopyWith<$Res>? get allow;@override $ProvinceAllowChooseKillHouseCopyWith<$Res>? get provinceAllowChooseKillHouse;@override $VetFarmCopyWith<$Res>? get vetFarm;@override $LastHatchingDifferentRequestQuantityCopyWith<$Res>? get lastHatchingDiffrentRequestQuantity;@override $UserBankInfoCopyWith<$Res>? get userBankInfo;

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

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

/// Create a copy of KillRequestPoultry
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? userprofile = freezed,Object? address = freezed,Object? poultryOwner = freezed,Object? poultryTenant = freezed,Object? hatching = freezed,Object? registerVetHalls = freezed,Object? allow = freezed,Object? provinceAllowChooseKillHouse = freezed,Object? provinceAllowSellFree = freezed,Object? vetFarm = freezed,Object? lastHatchingDiffrentRequestQuantity = freezed,Object? userBankInfo = freezed,Object? leftOverOwnHatching = 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? wallet = freezed,}) {
  return _then(_KillRequestPoultry(
userprofile: freezed == userprofile ? _self.userprofile : userprofile // ignore: cast_nullable_to_non_nullable
as UserProfile?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable
as Address?,poultryOwner: freezed == poultryOwner ? _self.poultryOwner : poultryOwner // ignore: cast_nullable_to_non_nullable
as PoultryOwner?,poultryTenant: freezed == poultryTenant ? _self.poultryTenant : poultryTenant // ignore: cast_nullable_to_non_nullable
as PoultryTenant?,hatching: freezed == hatching ? _self._hatching : hatching // ignore: cast_nullable_to_non_nullable
as List<Hatching>?,registerVetHalls: freezed == registerVetHalls ? _self._registerVetHalls : registerVetHalls // ignore: cast_nullable_to_non_nullable
as List<int>?,allow: freezed == allow ? _self.allow : allow // ignore: cast_nullable_to_non_nullable
as Allow?,provinceAllowChooseKillHouse: freezed == provinceAllowChooseKillHouse ? _self.provinceAllowChooseKillHouse : provinceAllowChooseKillHouse // ignore: cast_nullable_to_non_nullable
as ProvinceAllowChooseKillHouse?,provinceAllowSellFree: freezed == provinceAllowSellFree ? _self.provinceAllowSellFree : provinceAllowSellFree // ignore: cast_nullable_to_non_nullable
as bool?,vetFarm: freezed == vetFarm ? _self.vetFarm : vetFarm // ignore: cast_nullable_to_non_nullable
as VetFarm?,lastHatchingDiffrentRequestQuantity: freezed == lastHatchingDiffrentRequestQuantity ? _self.lastHatchingDiffrentRequestQuantity : lastHatchingDiffrentRequestQuantity // ignore: cast_nullable_to_non_nullable
as LastHatchingDifferentRequestQuantity?,userBankInfo: freezed == userBankInfo ? _self.userBankInfo : userBankInfo // ignore: cast_nullable_to_non_nullable
as UserBankInfo?,leftOverOwnHatching: freezed == leftOverOwnHatching ? _self.leftOverOwnHatching : leftOverOwnHatching // ignore: cast_nullable_to_non_nullable
as int?,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 int?,numberOfHalls: freezed == numberOfHalls ? _self.numberOfHalls : numberOfHalls // ignore: cast_nullable_to_non_nullable
as int?,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 int?,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 int?,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 int?,herdAgeByDay: freezed == herdAgeByDay ? _self.herdAgeByDay : herdAgeByDay // ignore: cast_nullable_to_non_nullable
as int?,herdAgeByWeek: freezed == herdAgeByWeek ? _self.herdAgeByWeek : herdAgeByWeek // ignore: cast_nullable_to_non_nullable
as int?,numberOfParty: freezed == numberOfParty ? _self.numberOfParty : numberOfParty // ignore: cast_nullable_to_non_nullable
as int?,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 String?,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 int?,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 int?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable
as int?,cityNumber: freezed == cityNumber ? _self.cityNumber : cityNumber // ignore: cast_nullable_to_non_nullable
as int?,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 int?,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 double?,long: freezed == long ? _self.long : long // ignore: cast_nullable_to_non_nullable
as double?,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 int?,activeLeftOver: freezed == activeLeftOver ? _self.activeLeftOver : activeLeftOver // ignore: cast_nullable_to_non_nullable
as int?,killingAveCount: freezed == killingAveCount ? _self.killingAveCount : killingAveCount // ignore: cast_nullable_to_non_nullable
as int?,killingAveWeight: freezed == killingAveWeight ? _self.killingAveWeight : killingAveWeight // ignore: cast_nullable_to_non_nullable
as double?,killingLiveWeight: freezed == killingLiveWeight ? _self.killingLiveWeight : killingLiveWeight // ignore: cast_nullable_to_non_nullable
as double?,killingCarcassesWeight: freezed == killingCarcassesWeight ? _self.killingCarcassesWeight : killingCarcassesWeight // ignore: cast_nullable_to_non_nullable
as double?,killingLossWeightPercent: freezed == killingLossWeightPercent ? _self.killingLossWeightPercent : killingLossWeightPercent // ignore: cast_nullable_to_non_nullable
as double?,realKillingAveWeight: freezed == realKillingAveWeight ? _self.realKillingAveWeight : realKillingAveWeight // ignore: cast_nullable_to_non_nullable
as double?,realKillingLiveWeight: freezed == realKillingLiveWeight ? _self.realKillingLiveWeight : realKillingLiveWeight // ignore: cast_nullable_to_non_nullable
as double?,realKillingCarcassesWeight: freezed == realKillingCarcassesWeight ? _self.realKillingCarcassesWeight : realKillingCarcassesWeight // ignore: cast_nullable_to_non_nullable
as double?,realKillingLossWeightPercent: freezed == realKillingLossWeightPercent ? _self.realKillingLossWeightPercent : realKillingLossWeightPercent // ignore: cast_nullable_to_non_nullable
as double?,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?,wallet: freezed == wallet ? _self.wallet : wallet // ignore: cast_nullable_to_non_nullable
as int?,
  ));
}

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

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

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

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

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

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

  return $ProvinceAllowChooseKillHouseCopyWith<$Res>(_self.provinceAllowChooseKillHouse!, (value) {
    return _then(_self.copyWith(provinceAllowChooseKillHouse: value));
  });
}/// Create a copy of KillRequestPoultry
/// 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 KillRequestPoultry
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$LastHatchingDifferentRequestQuantityCopyWith<$Res>? get lastHatchingDiffrentRequestQuantity {
    if (_self.lastHatchingDiffrentRequestQuantity == null) {
    return null;
  }

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

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


/// @nodoc
mixin _$UserProfile {

 String? get userKey; int? get baseOrder; String? get fullName; String? get mobile; String? get city; String? get province; String? get breedingUniqueId;
/// Create a copy of UserProfile
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$UserProfileCopyWith<UserProfile> get copyWith => _$UserProfileCopyWithImpl<UserProfile>(this as UserProfile, _$identity);

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


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is UserProfile&&(identical(other.userKey, userKey) || other.userKey == userKey)&&(identical(other.baseOrder, baseOrder) || other.baseOrder == baseOrder)&&(identical(other.fullName, fullName) || other.fullName == fullName)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.city, city) || other.city == city)&&(identical(other.province, province) || other.province == province)&&(identical(other.breedingUniqueId, breedingUniqueId) || other.breedingUniqueId == breedingUniqueId));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,userKey,baseOrder,fullName,mobile,city,province,breedingUniqueId);

@override
String toString() {
  return 'UserProfile(userKey: $userKey, baseOrder: $baseOrder, fullName: $fullName, mobile: $mobile, city: $city, province: $province, breedingUniqueId: $breedingUniqueId)';
}


}

/// @nodoc
abstract mixin class $UserProfileCopyWith<$Res>  {
  factory $UserProfileCopyWith(UserProfile value, $Res Function(UserProfile) _then) = _$UserProfileCopyWithImpl;
@useResult
$Res call({
 String? userKey, int? baseOrder, String? fullName, String? mobile, String? city, String? province, String? breedingUniqueId
});




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

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

/// Create a copy of UserProfile
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? userKey = freezed,Object? baseOrder = freezed,Object? fullName = freezed,Object? mobile = freezed,Object? city = freezed,Object? province = freezed,Object? breedingUniqueId = freezed,}) {
  return _then(_self.copyWith(
userKey: freezed == userKey ? _self.userKey : userKey // ignore: cast_nullable_to_non_nullable
as String?,baseOrder: freezed == baseOrder ? _self.baseOrder : baseOrder // ignore: cast_nullable_to_non_nullable
as int?,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?,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?,breedingUniqueId: freezed == breedingUniqueId ? _self.breedingUniqueId : breedingUniqueId // ignore: cast_nullable_to_non_nullable
as String?,
  ));
}

}


/// Adds pattern-matching-related methods to [UserProfile].
extension UserProfilePatterns on UserProfile {
/// 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( _UserProfile value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _UserProfile() 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( _UserProfile value)  $default,){
final _that = this;
switch (_that) {
case _UserProfile():
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( _UserProfile value)?  $default,){
final _that = this;
switch (_that) {
case _UserProfile() 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? userKey,  int? baseOrder,  String? fullName,  String? mobile,  String? city,  String? province,  String? breedingUniqueId)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _UserProfile() when $default != null:
return $default(_that.userKey,_that.baseOrder,_that.fullName,_that.mobile,_that.city,_that.province,_that.breedingUniqueId);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? userKey,  int? baseOrder,  String? fullName,  String? mobile,  String? city,  String? province,  String? breedingUniqueId)  $default,) {final _that = this;
switch (_that) {
case _UserProfile():
return $default(_that.userKey,_that.baseOrder,_that.fullName,_that.mobile,_that.city,_that.province,_that.breedingUniqueId);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? userKey,  int? baseOrder,  String? fullName,  String? mobile,  String? city,  String? province,  String? breedingUniqueId)?  $default,) {final _that = this;
switch (_that) {
case _UserProfile() when $default != null:
return $default(_that.userKey,_that.baseOrder,_that.fullName,_that.mobile,_that.city,_that.province,_that.breedingUniqueId);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _UserProfile implements UserProfile {
  const _UserProfile({this.userKey, this.baseOrder, this.fullName, this.mobile, this.city, this.province, this.breedingUniqueId});
  factory _UserProfile.fromJson(Map<String, dynamic> json) => _$UserProfileFromJson(json);

@override final  String? userKey;
@override final  int? baseOrder;
@override final  String? fullName;
@override final  String? mobile;
@override final  String? city;
@override final  String? province;
@override final  String? breedingUniqueId;

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

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

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _UserProfile&&(identical(other.userKey, userKey) || other.userKey == userKey)&&(identical(other.baseOrder, baseOrder) || other.baseOrder == baseOrder)&&(identical(other.fullName, fullName) || other.fullName == fullName)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.city, city) || other.city == city)&&(identical(other.province, province) || other.province == province)&&(identical(other.breedingUniqueId, breedingUniqueId) || other.breedingUniqueId == breedingUniqueId));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,userKey,baseOrder,fullName,mobile,city,province,breedingUniqueId);

@override
String toString() {
  return 'UserProfile(userKey: $userKey, baseOrder: $baseOrder, fullName: $fullName, mobile: $mobile, city: $city, province: $province, breedingUniqueId: $breedingUniqueId)';
}


}

/// @nodoc
abstract mixin class _$UserProfileCopyWith<$Res> implements $UserProfileCopyWith<$Res> {
  factory _$UserProfileCopyWith(_UserProfile value, $Res Function(_UserProfile) _then) = __$UserProfileCopyWithImpl;
@override @useResult
$Res call({
 String? userKey, int? baseOrder, String? fullName, String? mobile, String? city, String? province, String? breedingUniqueId
});




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

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

/// Create a copy of UserProfile
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? userKey = freezed,Object? baseOrder = freezed,Object? fullName = freezed,Object? mobile = freezed,Object? city = freezed,Object? province = freezed,Object? breedingUniqueId = freezed,}) {
  return _then(_UserProfile(
userKey: freezed == userKey ? _self.userKey : userKey // ignore: cast_nullable_to_non_nullable
as String?,baseOrder: freezed == baseOrder ? _self.baseOrder : baseOrder // ignore: cast_nullable_to_non_nullable
as int?,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?,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?,breedingUniqueId: freezed == breedingUniqueId ? _self.breedingUniqueId : breedingUniqueId // ignore: cast_nullable_to_non_nullable
as String?,
  ));
}


}


/// @nodoc
mixin _$Address {

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

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


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is Address&&(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 'Address(province: $province, city: $city, address: $address, postalCode: $postalCode)';
}


}

/// @nodoc
abstract mixin class $AddressCopyWith<$Res>  {
  factory $AddressCopyWith(Address value, $Res Function(Address) _then) = _$AddressCopyWithImpl;
@useResult
$Res call({
 Province? province, City? city, String? address, String? postalCode
});


$ProvinceCopyWith<$Res>? get province;$CityCopyWith<$Res>? get city;

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

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

/// Create a copy of Address
/// 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 Province?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable
as City?,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 Address
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$ProvinceCopyWith<$Res>? get province {
    if (_self.province == null) {
    return null;
  }

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

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


/// Adds pattern-matching-related methods to [Address].
extension AddressPatterns on Address {
/// 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( _Address value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _Address() 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( _Address value)  $default,){
final _that = this;
switch (_that) {
case _Address():
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( _Address value)?  $default,){
final _that = this;
switch (_that) {
case _Address() 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( Province? province,  City? city,  String? address,  String? postalCode)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _Address() 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( Province? province,  City? city,  String? address,  String? postalCode)  $default,) {final _that = this;
switch (_that) {
case _Address():
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( Province? province,  City? city,  String? address,  String? postalCode)?  $default,) {final _that = this;
switch (_that) {
case _Address() when $default != null:
return $default(_that.province,_that.city,_that.address,_that.postalCode);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

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

@override final  Province? province;
@override final  City? city;
@override final  String? address;
@override final  String? postalCode;

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

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

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _Address&&(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 'Address(province: $province, city: $city, address: $address, postalCode: $postalCode)';
}


}

/// @nodoc
abstract mixin class _$AddressCopyWith<$Res> implements $AddressCopyWith<$Res> {
  factory _$AddressCopyWith(_Address value, $Res Function(_Address) _then) = __$AddressCopyWithImpl;
@override @useResult
$Res call({
 Province? province, City? city, String? address, String? postalCode
});


@override $ProvinceCopyWith<$Res>? get province;@override $CityCopyWith<$Res>? get city;

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

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

/// Create a copy of Address
/// 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(_Address(
province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable
as Province?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable
as City?,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 Address
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$ProvinceCopyWith<$Res>? get province {
    if (_self.province == null) {
    return null;
  }

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

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


/// @nodoc
mixin _$Province {

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

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


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is Province&&(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 'Province(key: $key, name: $name)';
}


}

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




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

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

/// Create a copy of Province
/// 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 [Province].
extension ProvincePatterns on Province {
/// 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( _Province value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _Province() 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( _Province value)  $default,){
final _that = this;
switch (_that) {
case _Province():
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( _Province value)?  $default,){
final _that = this;
switch (_that) {
case _Province() 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 _Province() 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 _Province():
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 _Province() when $default != null:
return $default(_that.key,_that.name);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

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

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

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

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

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _Province&&(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 'Province(key: $key, name: $name)';
}


}

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




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

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

/// Create a copy of Province
/// 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(_Province(
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 _$City {

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

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


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is City&&(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 'City(key: $key, name: $name)';
}


}

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




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

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

/// Create a copy of City
/// 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 [City].
extension CityPatterns on City {
/// 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( _City value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _City() 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( _City value)  $default,){
final _that = this;
switch (_that) {
case _City():
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( _City value)?  $default,){
final _that = this;
switch (_that) {
case _City() 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 _City() 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 _City():
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 _City() when $default != null:
return $default(_that.key,_that.name);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

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

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

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

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

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _City&&(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 'City(key: $key, name: $name)';
}


}

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




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

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

/// Create a copy of City
/// 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(_City(
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 _$PoultryOwner {

 String? get fullName; String? get mobile; String? get unitName; int? get numberOfHalls; String? get breedingUniqueId;
/// Create a copy of PoultryOwner
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$PoultryOwnerCopyWith<PoultryOwner> get copyWith => _$PoultryOwnerCopyWithImpl<PoultryOwner>(this as PoultryOwner, _$identity);

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


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is PoultryOwner&&(identical(other.fullName, fullName) || other.fullName == fullName)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.numberOfHalls, numberOfHalls) || other.numberOfHalls == numberOfHalls)&&(identical(other.breedingUniqueId, breedingUniqueId) || other.breedingUniqueId == breedingUniqueId));
}

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

@override
String toString() {
  return 'PoultryOwner(fullName: $fullName, mobile: $mobile, unitName: $unitName, numberOfHalls: $numberOfHalls, breedingUniqueId: $breedingUniqueId)';
}


}

/// @nodoc
abstract mixin class $PoultryOwnerCopyWith<$Res>  {
  factory $PoultryOwnerCopyWith(PoultryOwner value, $Res Function(PoultryOwner) _then) = _$PoultryOwnerCopyWithImpl;
@useResult
$Res call({
 String? fullName, String? mobile, String? unitName, int? numberOfHalls, String? breedingUniqueId
});




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

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

/// Create a copy of PoultryOwner
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? fullName = freezed,Object? mobile = freezed,Object? unitName = freezed,Object? numberOfHalls = freezed,Object? breedingUniqueId = 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?,unitName: freezed == unitName ? _self.unitName : unitName // ignore: cast_nullable_to_non_nullable
as String?,numberOfHalls: freezed == numberOfHalls ? _self.numberOfHalls : numberOfHalls // ignore: cast_nullable_to_non_nullable
as int?,breedingUniqueId: freezed == breedingUniqueId ? _self.breedingUniqueId : breedingUniqueId // ignore: cast_nullable_to_non_nullable
as String?,
  ));
}

}


/// Adds pattern-matching-related methods to [PoultryOwner].
extension PoultryOwnerPatterns on PoultryOwner {
/// 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( _PoultryOwner value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _PoultryOwner() 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( _PoultryOwner value)  $default,){
final _that = this;
switch (_that) {
case _PoultryOwner():
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( _PoultryOwner value)?  $default,){
final _that = this;
switch (_that) {
case _PoultryOwner() 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,  String? unitName,  int? numberOfHalls,  String? breedingUniqueId)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _PoultryOwner() when $default != null:
return $default(_that.fullName,_that.mobile,_that.unitName,_that.numberOfHalls,_that.breedingUniqueId);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,  String? unitName,  int? numberOfHalls,  String? breedingUniqueId)  $default,) {final _that = this;
switch (_that) {
case _PoultryOwner():
return $default(_that.fullName,_that.mobile,_that.unitName,_that.numberOfHalls,_that.breedingUniqueId);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,  String? unitName,  int? numberOfHalls,  String? breedingUniqueId)?  $default,) {final _that = this;
switch (_that) {
case _PoultryOwner() when $default != null:
return $default(_that.fullName,_that.mobile,_that.unitName,_that.numberOfHalls,_that.breedingUniqueId);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _PoultryOwner implements PoultryOwner {
  const _PoultryOwner({this.fullName, this.mobile, this.unitName, this.numberOfHalls, this.breedingUniqueId});
  factory _PoultryOwner.fromJson(Map<String, dynamic> json) => _$PoultryOwnerFromJson(json);

@override final  String? fullName;
@override final  String? mobile;
@override final  String? unitName;
@override final  int? numberOfHalls;
@override final  String? breedingUniqueId;

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

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

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _PoultryOwner&&(identical(other.fullName, fullName) || other.fullName == fullName)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.numberOfHalls, numberOfHalls) || other.numberOfHalls == numberOfHalls)&&(identical(other.breedingUniqueId, breedingUniqueId) || other.breedingUniqueId == breedingUniqueId));
}

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

@override
String toString() {
  return 'PoultryOwner(fullName: $fullName, mobile: $mobile, unitName: $unitName, numberOfHalls: $numberOfHalls, breedingUniqueId: $breedingUniqueId)';
}


}

/// @nodoc
abstract mixin class _$PoultryOwnerCopyWith<$Res> implements $PoultryOwnerCopyWith<$Res> {
  factory _$PoultryOwnerCopyWith(_PoultryOwner value, $Res Function(_PoultryOwner) _then) = __$PoultryOwnerCopyWithImpl;
@override @useResult
$Res call({
 String? fullName, String? mobile, String? unitName, int? numberOfHalls, String? breedingUniqueId
});




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

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

/// Create a copy of PoultryOwner
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? fullName = freezed,Object? mobile = freezed,Object? unitName = freezed,Object? numberOfHalls = freezed,Object? breedingUniqueId = freezed,}) {
  return _then(_PoultryOwner(
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?,unitName: freezed == unitName ? _self.unitName : unitName // ignore: cast_nullable_to_non_nullable
as String?,numberOfHalls: freezed == numberOfHalls ? _self.numberOfHalls : numberOfHalls // ignore: cast_nullable_to_non_nullable
as int?,breedingUniqueId: freezed == breedingUniqueId ? _self.breedingUniqueId : breedingUniqueId // ignore: cast_nullable_to_non_nullable
as String?,
  ));
}


}


/// @nodoc
mixin _$PoultryTenant {

 String? get key; String? get firstName; String? get lastName; String? get fullName; String? get mobile; String? get nationalId; String? get breedingUniqueId;
/// Create a copy of PoultryTenant
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$PoultryTenantCopyWith<PoultryTenant> get copyWith => _$PoultryTenantCopyWithImpl<PoultryTenant>(this as PoultryTenant, _$identity);

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


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is PoultryTenant&&(identical(other.key, key) || other.key == key)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.fullName, fullName) || other.fullName == fullName)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.nationalId, nationalId) || other.nationalId == nationalId)&&(identical(other.breedingUniqueId, breedingUniqueId) || other.breedingUniqueId == breedingUniqueId));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,key,firstName,lastName,fullName,mobile,nationalId,breedingUniqueId);

@override
String toString() {
  return 'PoultryTenant(key: $key, firstName: $firstName, lastName: $lastName, fullName: $fullName, mobile: $mobile, nationalId: $nationalId, breedingUniqueId: $breedingUniqueId)';
}


}

/// @nodoc
abstract mixin class $PoultryTenantCopyWith<$Res>  {
  factory $PoultryTenantCopyWith(PoultryTenant value, $Res Function(PoultryTenant) _then) = _$PoultryTenantCopyWithImpl;
@useResult
$Res call({
 String? key, String? firstName, String? lastName, String? fullName, String? mobile, String? nationalId, String? breedingUniqueId
});




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

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

/// Create a copy of PoultryTenant
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? key = freezed,Object? firstName = freezed,Object? lastName = freezed,Object? fullName = freezed,Object? mobile = freezed,Object? nationalId = freezed,Object? breedingUniqueId = freezed,}) {
  return _then(_self.copyWith(
key: freezed == key ? _self.key : key // 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?,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?,nationalId: freezed == nationalId ? _self.nationalId : nationalId // ignore: cast_nullable_to_non_nullable
as String?,breedingUniqueId: freezed == breedingUniqueId ? _self.breedingUniqueId : breedingUniqueId // ignore: cast_nullable_to_non_nullable
as String?,
  ));
}

}


/// Adds pattern-matching-related methods to [PoultryTenant].
extension PoultryTenantPatterns on PoultryTenant {
/// 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( _PoultryTenant value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _PoultryTenant() 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( _PoultryTenant value)  $default,){
final _that = this;
switch (_that) {
case _PoultryTenant():
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( _PoultryTenant value)?  $default,){
final _that = this;
switch (_that) {
case _PoultryTenant() 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? firstName,  String? lastName,  String? fullName,  String? mobile,  String? nationalId,  String? breedingUniqueId)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _PoultryTenant() when $default != null:
return $default(_that.key,_that.firstName,_that.lastName,_that.fullName,_that.mobile,_that.nationalId,_that.breedingUniqueId);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? firstName,  String? lastName,  String? fullName,  String? mobile,  String? nationalId,  String? breedingUniqueId)  $default,) {final _that = this;
switch (_that) {
case _PoultryTenant():
return $default(_that.key,_that.firstName,_that.lastName,_that.fullName,_that.mobile,_that.nationalId,_that.breedingUniqueId);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? firstName,  String? lastName,  String? fullName,  String? mobile,  String? nationalId,  String? breedingUniqueId)?  $default,) {final _that = this;
switch (_that) {
case _PoultryTenant() when $default != null:
return $default(_that.key,_that.firstName,_that.lastName,_that.fullName,_that.mobile,_that.nationalId,_that.breedingUniqueId);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _PoultryTenant implements PoultryTenant {
  const _PoultryTenant({this.key, this.firstName, this.lastName, this.fullName, this.mobile, this.nationalId, this.breedingUniqueId});
  factory _PoultryTenant.fromJson(Map<String, dynamic> json) => _$PoultryTenantFromJson(json);

@override final  String? key;
@override final  String? firstName;
@override final  String? lastName;
@override final  String? fullName;
@override final  String? mobile;
@override final  String? nationalId;
@override final  String? breedingUniqueId;

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

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

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _PoultryTenant&&(identical(other.key, key) || other.key == key)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.fullName, fullName) || other.fullName == fullName)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.nationalId, nationalId) || other.nationalId == nationalId)&&(identical(other.breedingUniqueId, breedingUniqueId) || other.breedingUniqueId == breedingUniqueId));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,key,firstName,lastName,fullName,mobile,nationalId,breedingUniqueId);

@override
String toString() {
  return 'PoultryTenant(key: $key, firstName: $firstName, lastName: $lastName, fullName: $fullName, mobile: $mobile, nationalId: $nationalId, breedingUniqueId: $breedingUniqueId)';
}


}

/// @nodoc
abstract mixin class _$PoultryTenantCopyWith<$Res> implements $PoultryTenantCopyWith<$Res> {
  factory _$PoultryTenantCopyWith(_PoultryTenant value, $Res Function(_PoultryTenant) _then) = __$PoultryTenantCopyWithImpl;
@override @useResult
$Res call({
 String? key, String? firstName, String? lastName, String? fullName, String? mobile, String? nationalId, String? breedingUniqueId
});




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

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

/// Create a copy of PoultryTenant
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? key = freezed,Object? firstName = freezed,Object? lastName = freezed,Object? fullName = freezed,Object? mobile = freezed,Object? nationalId = freezed,Object? breedingUniqueId = freezed,}) {
  return _then(_PoultryTenant(
key: freezed == key ? _self.key : key // 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?,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?,nationalId: freezed == nationalId ? _self.nationalId : nationalId // ignore: cast_nullable_to_non_nullable
as String?,breedingUniqueId: freezed == breedingUniqueId ? _self.breedingUniqueId : breedingUniqueId // ignore: cast_nullable_to_non_nullable
as String?,
  ));
}


}


/// @nodoc
mixin _$Hatching {

 String? get poultryKey; String? get poultryHatchingKey; String? get poultry; int? get quantity; int? get losses; int? get leftOver; double? get outProvinceKilledQuantity; double? get exportKilledQuantity; int? get hall; String? get date; int? get period; String? get state; int? get age;
/// Create a copy of Hatching
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$HatchingCopyWith<Hatching> get copyWith => _$HatchingCopyWithImpl<Hatching>(this as Hatching, _$identity);

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


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is Hatching&&(identical(other.poultryKey, poultryKey) || other.poultryKey == poultryKey)&&(identical(other.poultryHatchingKey, poultryHatchingKey) || other.poultryHatchingKey == poultryHatchingKey)&&(identical(other.poultry, poultry) || other.poultry == poultry)&&(identical(other.quantity, quantity) || other.quantity == quantity)&&(identical(other.losses, losses) || other.losses == losses)&&(identical(other.leftOver, leftOver) || other.leftOver == leftOver)&&(identical(other.outProvinceKilledQuantity, outProvinceKilledQuantity) || other.outProvinceKilledQuantity == outProvinceKilledQuantity)&&(identical(other.exportKilledQuantity, exportKilledQuantity) || other.exportKilledQuantity == exportKilledQuantity)&&(identical(other.hall, hall) || other.hall == hall)&&(identical(other.date, date) || other.date == date)&&(identical(other.period, period) || other.period == period)&&(identical(other.state, state) || other.state == state)&&(identical(other.age, age) || other.age == age));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,poultryKey,poultryHatchingKey,poultry,quantity,losses,leftOver,outProvinceKilledQuantity,exportKilledQuantity,hall,date,period,state,age);

@override
String toString() {
  return 'Hatching(poultryKey: $poultryKey, poultryHatchingKey: $poultryHatchingKey, poultry: $poultry, quantity: $quantity, losses: $losses, leftOver: $leftOver, outProvinceKilledQuantity: $outProvinceKilledQuantity, exportKilledQuantity: $exportKilledQuantity, hall: $hall, date: $date, period: $period, state: $state, age: $age)';
}


}

/// @nodoc
abstract mixin class $HatchingCopyWith<$Res>  {
  factory $HatchingCopyWith(Hatching value, $Res Function(Hatching) _then) = _$HatchingCopyWithImpl;
@useResult
$Res call({
 String? poultryKey, String? poultryHatchingKey, String? poultry, int? quantity, int? losses, int? leftOver, double? outProvinceKilledQuantity, double? exportKilledQuantity, int? hall, String? date, int? period, String? state, int? age
});




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

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

/// Create a copy of Hatching
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? poultryKey = freezed,Object? poultryHatchingKey = freezed,Object? poultry = freezed,Object? quantity = freezed,Object? losses = freezed,Object? leftOver = freezed,Object? outProvinceKilledQuantity = freezed,Object? exportKilledQuantity = freezed,Object? hall = freezed,Object? date = freezed,Object? period = freezed,Object? state = freezed,Object? age = freezed,}) {
  return _then(_self.copyWith(
poultryKey: freezed == poultryKey ? _self.poultryKey : poultryKey // ignore: cast_nullable_to_non_nullable
as String?,poultryHatchingKey: freezed == poultryHatchingKey ? _self.poultryHatchingKey : poultryHatchingKey // ignore: cast_nullable_to_non_nullable
as String?,poultry: freezed == poultry ? _self.poultry : poultry // ignore: cast_nullable_to_non_nullable
as String?,quantity: freezed == quantity ? _self.quantity : quantity // ignore: cast_nullable_to_non_nullable
as int?,losses: freezed == losses ? _self.losses : losses // ignore: cast_nullable_to_non_nullable
as int?,leftOver: freezed == leftOver ? _self.leftOver : leftOver // ignore: cast_nullable_to_non_nullable
as int?,outProvinceKilledQuantity: freezed == outProvinceKilledQuantity ? _self.outProvinceKilledQuantity : outProvinceKilledQuantity // ignore: cast_nullable_to_non_nullable
as double?,exportKilledQuantity: freezed == exportKilledQuantity ? _self.exportKilledQuantity : exportKilledQuantity // ignore: cast_nullable_to_non_nullable
as double?,hall: freezed == hall ? _self.hall : hall // ignore: cast_nullable_to_non_nullable
as int?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable
as String?,period: freezed == period ? _self.period : period // ignore: cast_nullable_to_non_nullable
as int?,state: freezed == state ? _self.state : state // ignore: cast_nullable_to_non_nullable
as String?,age: freezed == age ? _self.age : age // ignore: cast_nullable_to_non_nullable
as int?,
  ));
}

}


/// Adds pattern-matching-related methods to [Hatching].
extension HatchingPatterns on Hatching {
/// 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( _Hatching value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _Hatching() 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( _Hatching value)  $default,){
final _that = this;
switch (_that) {
case _Hatching():
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( _Hatching value)?  $default,){
final _that = this;
switch (_that) {
case _Hatching() 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? poultryKey,  String? poultryHatchingKey,  String? poultry,  int? quantity,  int? losses,  int? leftOver,  double? outProvinceKilledQuantity,  double? exportKilledQuantity,  int? hall,  String? date,  int? period,  String? state,  int? age)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _Hatching() when $default != null:
return $default(_that.poultryKey,_that.poultryHatchingKey,_that.poultry,_that.quantity,_that.losses,_that.leftOver,_that.outProvinceKilledQuantity,_that.exportKilledQuantity,_that.hall,_that.date,_that.period,_that.state,_that.age);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? poultryKey,  String? poultryHatchingKey,  String? poultry,  int? quantity,  int? losses,  int? leftOver,  double? outProvinceKilledQuantity,  double? exportKilledQuantity,  int? hall,  String? date,  int? period,  String? state,  int? age)  $default,) {final _that = this;
switch (_that) {
case _Hatching():
return $default(_that.poultryKey,_that.poultryHatchingKey,_that.poultry,_that.quantity,_that.losses,_that.leftOver,_that.outProvinceKilledQuantity,_that.exportKilledQuantity,_that.hall,_that.date,_that.period,_that.state,_that.age);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? poultryKey,  String? poultryHatchingKey,  String? poultry,  int? quantity,  int? losses,  int? leftOver,  double? outProvinceKilledQuantity,  double? exportKilledQuantity,  int? hall,  String? date,  int? period,  String? state,  int? age)?  $default,) {final _that = this;
switch (_that) {
case _Hatching() when $default != null:
return $default(_that.poultryKey,_that.poultryHatchingKey,_that.poultry,_that.quantity,_that.losses,_that.leftOver,_that.outProvinceKilledQuantity,_that.exportKilledQuantity,_that.hall,_that.date,_that.period,_that.state,_that.age);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _Hatching implements Hatching {
  const _Hatching({this.poultryKey, this.poultryHatchingKey, this.poultry, this.quantity, this.losses, this.leftOver, this.outProvinceKilledQuantity, this.exportKilledQuantity, this.hall, this.date, this.period, this.state, this.age});
  factory _Hatching.fromJson(Map<String, dynamic> json) => _$HatchingFromJson(json);

@override final  String? poultryKey;
@override final  String? poultryHatchingKey;
@override final  String? poultry;
@override final  int? quantity;
@override final  int? losses;
@override final  int? leftOver;
@override final  double? outProvinceKilledQuantity;
@override final  double? exportKilledQuantity;
@override final  int? hall;
@override final  String? date;
@override final  int? period;
@override final  String? state;
@override final  int? age;

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

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

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _Hatching&&(identical(other.poultryKey, poultryKey) || other.poultryKey == poultryKey)&&(identical(other.poultryHatchingKey, poultryHatchingKey) || other.poultryHatchingKey == poultryHatchingKey)&&(identical(other.poultry, poultry) || other.poultry == poultry)&&(identical(other.quantity, quantity) || other.quantity == quantity)&&(identical(other.losses, losses) || other.losses == losses)&&(identical(other.leftOver, leftOver) || other.leftOver == leftOver)&&(identical(other.outProvinceKilledQuantity, outProvinceKilledQuantity) || other.outProvinceKilledQuantity == outProvinceKilledQuantity)&&(identical(other.exportKilledQuantity, exportKilledQuantity) || other.exportKilledQuantity == exportKilledQuantity)&&(identical(other.hall, hall) || other.hall == hall)&&(identical(other.date, date) || other.date == date)&&(identical(other.period, period) || other.period == period)&&(identical(other.state, state) || other.state == state)&&(identical(other.age, age) || other.age == age));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,poultryKey,poultryHatchingKey,poultry,quantity,losses,leftOver,outProvinceKilledQuantity,exportKilledQuantity,hall,date,period,state,age);

@override
String toString() {
  return 'Hatching(poultryKey: $poultryKey, poultryHatchingKey: $poultryHatchingKey, poultry: $poultry, quantity: $quantity, losses: $losses, leftOver: $leftOver, outProvinceKilledQuantity: $outProvinceKilledQuantity, exportKilledQuantity: $exportKilledQuantity, hall: $hall, date: $date, period: $period, state: $state, age: $age)';
}


}

/// @nodoc
abstract mixin class _$HatchingCopyWith<$Res> implements $HatchingCopyWith<$Res> {
  factory _$HatchingCopyWith(_Hatching value, $Res Function(_Hatching) _then) = __$HatchingCopyWithImpl;
@override @useResult
$Res call({
 String? poultryKey, String? poultryHatchingKey, String? poultry, int? quantity, int? losses, int? leftOver, double? outProvinceKilledQuantity, double? exportKilledQuantity, int? hall, String? date, int? period, String? state, int? age
});




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

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

/// Create a copy of Hatching
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? poultryKey = freezed,Object? poultryHatchingKey = freezed,Object? poultry = freezed,Object? quantity = freezed,Object? losses = freezed,Object? leftOver = freezed,Object? outProvinceKilledQuantity = freezed,Object? exportKilledQuantity = freezed,Object? hall = freezed,Object? date = freezed,Object? period = freezed,Object? state = freezed,Object? age = freezed,}) {
  return _then(_Hatching(
poultryKey: freezed == poultryKey ? _self.poultryKey : poultryKey // ignore: cast_nullable_to_non_nullable
as String?,poultryHatchingKey: freezed == poultryHatchingKey ? _self.poultryHatchingKey : poultryHatchingKey // ignore: cast_nullable_to_non_nullable
as String?,poultry: freezed == poultry ? _self.poultry : poultry // ignore: cast_nullable_to_non_nullable
as String?,quantity: freezed == quantity ? _self.quantity : quantity // ignore: cast_nullable_to_non_nullable
as int?,losses: freezed == losses ? _self.losses : losses // ignore: cast_nullable_to_non_nullable
as int?,leftOver: freezed == leftOver ? _self.leftOver : leftOver // ignore: cast_nullable_to_non_nullable
as int?,outProvinceKilledQuantity: freezed == outProvinceKilledQuantity ? _self.outProvinceKilledQuantity : outProvinceKilledQuantity // ignore: cast_nullable_to_non_nullable
as double?,exportKilledQuantity: freezed == exportKilledQuantity ? _self.exportKilledQuantity : exportKilledQuantity // ignore: cast_nullable_to_non_nullable
as double?,hall: freezed == hall ? _self.hall : hall // ignore: cast_nullable_to_non_nullable
as int?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable
as String?,period: freezed == period ? _self.period : period // ignore: cast_nullable_to_non_nullable
as int?,state: freezed == state ? _self.state : state // ignore: cast_nullable_to_non_nullable
as String?,age: freezed == age ? _self.age : age // ignore: cast_nullable_to_non_nullable
as int?,
  ));
}


}


/// @nodoc
mixin _$Allow {

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

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


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

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

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


}

/// @nodoc
abstract mixin class $AllowCopyWith<$Res>  {
  factory $AllowCopyWith(Allow value, $Res Function(Allow) _then) = _$AllowCopyWithImpl;
@useResult
$Res call({
 bool? city, bool? province
});




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

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

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

}


/// Adds pattern-matching-related methods to [Allow].
extension AllowPatterns on Allow {
/// 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( _Allow value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _Allow() 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( _Allow value)  $default,){
final _that = this;
switch (_that) {
case _Allow():
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( _Allow value)?  $default,){
final _that = this;
switch (_that) {
case _Allow() 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? city,  bool? province)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _Allow() when $default != null:
return $default(_that.city,_that.province);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? city,  bool? province)  $default,) {final _that = this;
switch (_that) {
case _Allow():
return $default(_that.city,_that.province);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? city,  bool? province)?  $default,) {final _that = this;
switch (_that) {
case _Allow() when $default != null:
return $default(_that.city,_that.province);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _Allow implements Allow {
  const _Allow({this.city, this.province});
  factory _Allow.fromJson(Map<String, dynamic> json) => _$AllowFromJson(json);

@override final  bool? city;
@override final  bool? province;

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

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

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

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

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


}

/// @nodoc
abstract mixin class _$AllowCopyWith<$Res> implements $AllowCopyWith<$Res> {
  factory _$AllowCopyWith(_Allow value, $Res Function(_Allow) _then) = __$AllowCopyWithImpl;
@override @useResult
$Res call({
 bool? city, bool? province
});




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

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

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


}


/// @nodoc
mixin _$ProvinceAllowChooseKillHouse {

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

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


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is ProvinceAllowChooseKillHouse&&(identical(other.allowState, allowState) || other.allowState == allowState)&&(identical(other.mandatory, mandatory) || other.mandatory == mandatory));
}

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

@override
String toString() {
  return 'ProvinceAllowChooseKillHouse(allowState: $allowState, mandatory: $mandatory)';
}


}

/// @nodoc
abstract mixin class $ProvinceAllowChooseKillHouseCopyWith<$Res>  {
  factory $ProvinceAllowChooseKillHouseCopyWith(ProvinceAllowChooseKillHouse value, $Res Function(ProvinceAllowChooseKillHouse) _then) = _$ProvinceAllowChooseKillHouseCopyWithImpl;
@useResult
$Res call({
 bool? allowState, bool? mandatory
});




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

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

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

}


/// Adds pattern-matching-related methods to [ProvinceAllowChooseKillHouse].
extension ProvinceAllowChooseKillHousePatterns on ProvinceAllowChooseKillHouse {
/// 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( _ProvinceAllowChooseKillHouse value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _ProvinceAllowChooseKillHouse() 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( _ProvinceAllowChooseKillHouse value)  $default,){
final _that = this;
switch (_that) {
case _ProvinceAllowChooseKillHouse():
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( _ProvinceAllowChooseKillHouse value)?  $default,){
final _that = this;
switch (_that) {
case _ProvinceAllowChooseKillHouse() 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? allowState,  bool? mandatory)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _ProvinceAllowChooseKillHouse() when $default != null:
return $default(_that.allowState,_that.mandatory);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? allowState,  bool? mandatory)  $default,) {final _that = this;
switch (_that) {
case _ProvinceAllowChooseKillHouse():
return $default(_that.allowState,_that.mandatory);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? allowState,  bool? mandatory)?  $default,) {final _that = this;
switch (_that) {
case _ProvinceAllowChooseKillHouse() when $default != null:
return $default(_that.allowState,_that.mandatory);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _ProvinceAllowChooseKillHouse implements ProvinceAllowChooseKillHouse {
  const _ProvinceAllowChooseKillHouse({this.allowState, this.mandatory});
  factory _ProvinceAllowChooseKillHouse.fromJson(Map<String, dynamic> json) => _$ProvinceAllowChooseKillHouseFromJson(json);

@override final  bool? allowState;
@override final  bool? mandatory;

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

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

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _ProvinceAllowChooseKillHouse&&(identical(other.allowState, allowState) || other.allowState == allowState)&&(identical(other.mandatory, mandatory) || other.mandatory == mandatory));
}

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

@override
String toString() {
  return 'ProvinceAllowChooseKillHouse(allowState: $allowState, mandatory: $mandatory)';
}


}

/// @nodoc
abstract mixin class _$ProvinceAllowChooseKillHouseCopyWith<$Res> implements $ProvinceAllowChooseKillHouseCopyWith<$Res> {
  factory _$ProvinceAllowChooseKillHouseCopyWith(_ProvinceAllowChooseKillHouse value, $Res Function(_ProvinceAllowChooseKillHouse) _then) = __$ProvinceAllowChooseKillHouseCopyWithImpl;
@override @useResult
$Res call({
 bool? allowState, bool? mandatory
});




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

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

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


}


/// @nodoc
mixin _$VetFarm {

 String? get fullName; String? get mobile; String? get city; String? get province;
/// 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.fullName, fullName) || other.fullName == fullName)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.city, city) || other.city == city)&&(identical(other.province, province) || other.province == province));
}

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

@override
String toString() {
  return 'VetFarm(fullName: $fullName, mobile: $mobile, city: $city, province: $province)';
}


}

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




}
/// @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? fullName = freezed,Object? mobile = freezed,Object? city = freezed,Object? province = 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?,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?,
  ));
}

}


/// 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? fullName,  String? mobile,  String? city,  String? province)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _VetFarm() when $default != null:
return $default(_that.fullName,_that.mobile,_that.city,_that.province);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,  String? city,  String? province)  $default,) {final _that = this;
switch (_that) {
case _VetFarm():
return $default(_that.fullName,_that.mobile,_that.city,_that.province);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,  String? city,  String? province)?  $default,) {final _that = this;
switch (_that) {
case _VetFarm() when $default != null:
return $default(_that.fullName,_that.mobile,_that.city,_that.province);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

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

@override final  String? fullName;
@override final  String? mobile;
@override final  String? city;
@override final  String? province;

/// 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.fullName, fullName) || other.fullName == fullName)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.city, city) || other.city == city)&&(identical(other.province, province) || other.province == province));
}

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

@override
String toString() {
  return 'VetFarm(fullName: $fullName, mobile: $mobile, city: $city, province: $province)';
}


}

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




}
/// @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? fullName = freezed,Object? mobile = freezed,Object? city = freezed,Object? province = freezed,}) {
  return _then(_VetFarm(
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?,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?,
  ));
}


}


/// @nodoc
mixin _$LastHatchingDifferentRequestQuantity {

 double? get leftExportQuantity; double? get leftPoultryOutProvince; int? get lastHatchingRemainQuantity;
/// Create a copy of LastHatchingDifferentRequestQuantity
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$LastHatchingDifferentRequestQuantityCopyWith<LastHatchingDifferentRequestQuantity> get copyWith => _$LastHatchingDifferentRequestQuantityCopyWithImpl<LastHatchingDifferentRequestQuantity>(this as LastHatchingDifferentRequestQuantity, _$identity);

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


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is LastHatchingDifferentRequestQuantity&&(identical(other.leftExportQuantity, leftExportQuantity) || other.leftExportQuantity == leftExportQuantity)&&(identical(other.leftPoultryOutProvince, leftPoultryOutProvince) || other.leftPoultryOutProvince == leftPoultryOutProvince)&&(identical(other.lastHatchingRemainQuantity, lastHatchingRemainQuantity) || other.lastHatchingRemainQuantity == lastHatchingRemainQuantity));
}

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

@override
String toString() {
  return 'LastHatchingDifferentRequestQuantity(leftExportQuantity: $leftExportQuantity, leftPoultryOutProvince: $leftPoultryOutProvince, lastHatchingRemainQuantity: $lastHatchingRemainQuantity)';
}


}

/// @nodoc
abstract mixin class $LastHatchingDifferentRequestQuantityCopyWith<$Res>  {
  factory $LastHatchingDifferentRequestQuantityCopyWith(LastHatchingDifferentRequestQuantity value, $Res Function(LastHatchingDifferentRequestQuantity) _then) = _$LastHatchingDifferentRequestQuantityCopyWithImpl;
@useResult
$Res call({
 double? leftExportQuantity, double? leftPoultryOutProvince, int? lastHatchingRemainQuantity
});




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

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

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

}


/// Adds pattern-matching-related methods to [LastHatchingDifferentRequestQuantity].
extension LastHatchingDifferentRequestQuantityPatterns on LastHatchingDifferentRequestQuantity {
/// 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( _LastHatchingDifferentRequestQuantity value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _LastHatchingDifferentRequestQuantity() 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( _LastHatchingDifferentRequestQuantity value)  $default,){
final _that = this;
switch (_that) {
case _LastHatchingDifferentRequestQuantity():
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( _LastHatchingDifferentRequestQuantity value)?  $default,){
final _that = this;
switch (_that) {
case _LastHatchingDifferentRequestQuantity() 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( double? leftExportQuantity,  double? leftPoultryOutProvince,  int? lastHatchingRemainQuantity)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _LastHatchingDifferentRequestQuantity() when $default != null:
return $default(_that.leftExportQuantity,_that.leftPoultryOutProvince,_that.lastHatchingRemainQuantity);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( double? leftExportQuantity,  double? leftPoultryOutProvince,  int? lastHatchingRemainQuantity)  $default,) {final _that = this;
switch (_that) {
case _LastHatchingDifferentRequestQuantity():
return $default(_that.leftExportQuantity,_that.leftPoultryOutProvince,_that.lastHatchingRemainQuantity);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( double? leftExportQuantity,  double? leftPoultryOutProvince,  int? lastHatchingRemainQuantity)?  $default,) {final _that = this;
switch (_that) {
case _LastHatchingDifferentRequestQuantity() when $default != null:
return $default(_that.leftExportQuantity,_that.leftPoultryOutProvince,_that.lastHatchingRemainQuantity);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _LastHatchingDifferentRequestQuantity implements LastHatchingDifferentRequestQuantity {
  const _LastHatchingDifferentRequestQuantity({this.leftExportQuantity, this.leftPoultryOutProvince, this.lastHatchingRemainQuantity});
  factory _LastHatchingDifferentRequestQuantity.fromJson(Map<String, dynamic> json) => _$LastHatchingDifferentRequestQuantityFromJson(json);

@override final  double? leftExportQuantity;
@override final  double? leftPoultryOutProvince;
@override final  int? lastHatchingRemainQuantity;

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

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

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _LastHatchingDifferentRequestQuantity&&(identical(other.leftExportQuantity, leftExportQuantity) || other.leftExportQuantity == leftExportQuantity)&&(identical(other.leftPoultryOutProvince, leftPoultryOutProvince) || other.leftPoultryOutProvince == leftPoultryOutProvince)&&(identical(other.lastHatchingRemainQuantity, lastHatchingRemainQuantity) || other.lastHatchingRemainQuantity == lastHatchingRemainQuantity));
}

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

@override
String toString() {
  return 'LastHatchingDifferentRequestQuantity(leftExportQuantity: $leftExportQuantity, leftPoultryOutProvince: $leftPoultryOutProvince, lastHatchingRemainQuantity: $lastHatchingRemainQuantity)';
}


}

/// @nodoc
abstract mixin class _$LastHatchingDifferentRequestQuantityCopyWith<$Res> implements $LastHatchingDifferentRequestQuantityCopyWith<$Res> {
  factory _$LastHatchingDifferentRequestQuantityCopyWith(_LastHatchingDifferentRequestQuantity value, $Res Function(_LastHatchingDifferentRequestQuantity) _then) = __$LastHatchingDifferentRequestQuantityCopyWithImpl;
@override @useResult
$Res call({
 double? leftExportQuantity, double? leftPoultryOutProvince, int? lastHatchingRemainQuantity
});




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

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

/// Create a copy of LastHatchingDifferentRequestQuantity
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? leftExportQuantity = freezed,Object? leftPoultryOutProvince = freezed,Object? lastHatchingRemainQuantity = freezed,}) {
  return _then(_LastHatchingDifferentRequestQuantity(
leftExportQuantity: freezed == leftExportQuantity ? _self.leftExportQuantity : leftExportQuantity // ignore: cast_nullable_to_non_nullable
as double?,leftPoultryOutProvince: freezed == leftPoultryOutProvince ? _self.leftPoultryOutProvince : leftPoultryOutProvince // ignore: cast_nullable_to_non_nullable
as double?,lastHatchingRemainQuantity: freezed == lastHatchingRemainQuantity ? _self.lastHatchingRemainQuantity : lastHatchingRemainQuantity // ignore: cast_nullable_to_non_nullable
as int?,
  ));
}


}


/// @nodoc
mixin _$UserBankInfo {

 String? get key; String? get nameOfBankUser; String? get bankName; String? get card; String? get shaba; String? get account; int? get userBankIdKey; String? get provinceName;
/// Create a copy of UserBankInfo
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$UserBankInfoCopyWith<UserBankInfo> get copyWith => _$UserBankInfoCopyWithImpl<UserBankInfo>(this as UserBankInfo, _$identity);

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


@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is UserBankInfo&&(identical(other.key, key) || other.key == key)&&(identical(other.nameOfBankUser, nameOfBankUser) || other.nameOfBankUser == nameOfBankUser)&&(identical(other.bankName, bankName) || other.bankName == bankName)&&(identical(other.card, card) || other.card == card)&&(identical(other.shaba, shaba) || other.shaba == shaba)&&(identical(other.account, account) || other.account == account)&&(identical(other.userBankIdKey, userBankIdKey) || other.userBankIdKey == userBankIdKey)&&(identical(other.provinceName, provinceName) || other.provinceName == provinceName));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,key,nameOfBankUser,bankName,card,shaba,account,userBankIdKey,provinceName);

@override
String toString() {
  return 'UserBankInfo(key: $key, nameOfBankUser: $nameOfBankUser, bankName: $bankName, card: $card, shaba: $shaba, account: $account, userBankIdKey: $userBankIdKey, provinceName: $provinceName)';
}


}

/// @nodoc
abstract mixin class $UserBankInfoCopyWith<$Res>  {
  factory $UserBankInfoCopyWith(UserBankInfo value, $Res Function(UserBankInfo) _then) = _$UserBankInfoCopyWithImpl;
@useResult
$Res call({
 String? key, String? nameOfBankUser, String? bankName, String? card, String? shaba, String? account, int? userBankIdKey, String? provinceName
});




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

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

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

}


/// Adds pattern-matching-related methods to [UserBankInfo].
extension UserBankInfoPatterns on UserBankInfo {
/// 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( _UserBankInfo value)?  $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _UserBankInfo() 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( _UserBankInfo value)  $default,){
final _that = this;
switch (_that) {
case _UserBankInfo():
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( _UserBankInfo value)?  $default,){
final _that = this;
switch (_that) {
case _UserBankInfo() 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? nameOfBankUser,  String? bankName,  String? card,  String? shaba,  String? account,  int? userBankIdKey,  String? provinceName)?  $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _UserBankInfo() when $default != null:
return $default(_that.key,_that.nameOfBankUser,_that.bankName,_that.card,_that.shaba,_that.account,_that.userBankIdKey,_that.provinceName);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? nameOfBankUser,  String? bankName,  String? card,  String? shaba,  String? account,  int? userBankIdKey,  String? provinceName)  $default,) {final _that = this;
switch (_that) {
case _UserBankInfo():
return $default(_that.key,_that.nameOfBankUser,_that.bankName,_that.card,_that.shaba,_that.account,_that.userBankIdKey,_that.provinceName);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? nameOfBankUser,  String? bankName,  String? card,  String? shaba,  String? account,  int? userBankIdKey,  String? provinceName)?  $default,) {final _that = this;
switch (_that) {
case _UserBankInfo() when $default != null:
return $default(_that.key,_that.nameOfBankUser,_that.bankName,_that.card,_that.shaba,_that.account,_that.userBankIdKey,_that.provinceName);case _:
  return null;

}
}

}

/// @nodoc
@JsonSerializable()

class _UserBankInfo implements UserBankInfo {
  const _UserBankInfo({this.key, this.nameOfBankUser, this.bankName, this.card, this.shaba, this.account, this.userBankIdKey, this.provinceName});
  factory _UserBankInfo.fromJson(Map<String, dynamic> json) => _$UserBankInfoFromJson(json);

@override final  String? key;
@override final  String? nameOfBankUser;
@override final  String? bankName;
@override final  String? card;
@override final  String? shaba;
@override final  String? account;
@override final  int? userBankIdKey;
@override final  String? provinceName;

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

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

@override
bool operator ==(Object other) {
  return identical(this, other) || (other.runtimeType == runtimeType&&other is _UserBankInfo&&(identical(other.key, key) || other.key == key)&&(identical(other.nameOfBankUser, nameOfBankUser) || other.nameOfBankUser == nameOfBankUser)&&(identical(other.bankName, bankName) || other.bankName == bankName)&&(identical(other.card, card) || other.card == card)&&(identical(other.shaba, shaba) || other.shaba == shaba)&&(identical(other.account, account) || other.account == account)&&(identical(other.userBankIdKey, userBankIdKey) || other.userBankIdKey == userBankIdKey)&&(identical(other.provinceName, provinceName) || other.provinceName == provinceName));
}

@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,key,nameOfBankUser,bankName,card,shaba,account,userBankIdKey,provinceName);

@override
String toString() {
  return 'UserBankInfo(key: $key, nameOfBankUser: $nameOfBankUser, bankName: $bankName, card: $card, shaba: $shaba, account: $account, userBankIdKey: $userBankIdKey, provinceName: $provinceName)';
}


}

/// @nodoc
abstract mixin class _$UserBankInfoCopyWith<$Res> implements $UserBankInfoCopyWith<$Res> {
  factory _$UserBankInfoCopyWith(_UserBankInfo value, $Res Function(_UserBankInfo) _then) = __$UserBankInfoCopyWithImpl;
@override @useResult
$Res call({
 String? key, String? nameOfBankUser, String? bankName, String? card, String? shaba, String? account, int? userBankIdKey, String? provinceName
});




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

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

/// Create a copy of UserBankInfo
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? key = freezed,Object? nameOfBankUser = freezed,Object? bankName = freezed,Object? card = freezed,Object? shaba = freezed,Object? account = freezed,Object? userBankIdKey = freezed,Object? provinceName = freezed,}) {
  return _then(_UserBankInfo(
key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable
as String?,nameOfBankUser: freezed == nameOfBankUser ? _self.nameOfBankUser : nameOfBankUser // ignore: cast_nullable_to_non_nullable
as String?,bankName: freezed == bankName ? _self.bankName : bankName // ignore: cast_nullable_to_non_nullable
as String?,card: freezed == card ? _self.card : card // ignore: cast_nullable_to_non_nullable
as String?,shaba: freezed == shaba ? _self.shaba : shaba // ignore: cast_nullable_to_non_nullable
as String?,account: freezed == account ? _self.account : account // ignore: cast_nullable_to_non_nullable
as String?,userBankIdKey: freezed == userBankIdKey ? _self.userBankIdKey : userBankIdKey // ignore: cast_nullable_to_non_nullable
as int?,provinceName: freezed == provinceName ? _self.provinceName : provinceName // ignore: cast_nullable_to_non_nullable
as String?,
  ));
}


}

// dart format on
