diff --git a/packages/chicken/lib/data/data_source/remote/poultry_science/poultry_science_remote.dart b/packages/chicken/lib/data/data_source/remote/poultry_science/poultry_science_remote.dart index 5ba1715..8673a98 100644 --- a/packages/chicken/lib/data/data_source/remote/poultry_science/poultry_science_remote.dart +++ b/packages/chicken/lib/data/data_source/remote/poultry_science/poultry_science_remote.dart @@ -1,8 +1,28 @@ +import 'package:rasadyar_chicken/data/models/response/hatching/hatching_models.dart'; +import 'package:rasadyar_chicken/data/models/response/hatching_report/hatching_report.dart'; import 'package:rasadyar_chicken/data/models/response/poultry_science/home_poultry_science/home_poultry_science_model.dart'; +import 'package:rasadyar_core/core.dart'; abstract class PoultryScienceRemoteDatasource { Future getHomePoultryScience({ required String token, required String type, }); + + Future?> getHatchingPoultry({ + required String token, + Map? queryParameters, + }); + + Future submitPoultryScienceReport({ + required String token, + required IFormData data, + ProgressCallback? onSendProgress, + }); + + + Future?> getPoultryScienceReport({ + required String token, + Map? queryParameters, + }); } diff --git a/packages/chicken/lib/data/data_source/remote/poultry_science/poultry_science_remote_imp.dart b/packages/chicken/lib/data/data_source/remote/poultry_science/poultry_science_remote_imp.dart index 3366c71..035c1e7 100644 --- a/packages/chicken/lib/data/data_source/remote/poultry_science/poultry_science_remote_imp.dart +++ b/packages/chicken/lib/data/data_source/remote/poultry_science/poultry_science_remote_imp.dart @@ -1,3 +1,5 @@ +import 'package:rasadyar_chicken/data/models/response/hatching/hatching_models.dart'; +import 'package:rasadyar_chicken/data/models/response/hatching_report/hatching_report.dart'; import 'package:rasadyar_chicken/data/models/response/poultry_science/home_poultry_science/home_poultry_science_model.dart'; import 'package:rasadyar_core/core.dart'; @@ -14,7 +16,7 @@ class PoultryScienceRemoteDatasourceImp implements PoultryScienceRemoteDatasourc required String type, }) async { var res = await _httpClient.get( - 'poultry_and_hatching_for_poultry_science/', + '/poultry_and_hatching_for_poultry_science/', queryParameters: {'type': type}, headers: {'Authorization': 'Bearer $token'}, fromJson: (json) => HomePoultryScienceModel.fromJson(json), @@ -22,4 +24,52 @@ class PoultryScienceRemoteDatasourceImp implements PoultryScienceRemoteDatasourc return res.data; } + + @override + Future?> getHatchingPoultry({ + required String token, + Map? queryParameters, + }) async { + var res = await _httpClient.get( + '/poultry_and_hatching_for_poultry_science/', + headers: {'Authorization': 'Bearer $token'}, + queryParameters: queryParameters, + fromJson: (json) => PaginationModel.fromJson( + json, + (json) => HatchingModel.fromJson(json as Map), + ), + ); + return res.data; + } + + @override + Future submitPoultryScienceReport({ + required String token, + required IFormData data, + ProgressCallback? onSendProgress, + }) async { + await _httpClient.upload( + '/poultry_science_report/', + headers: {'Authorization': 'Bearer $token'}, + formData: data, + onSendProgress: onSendProgress, + ); + } + + @override + Future?> getPoultryScienceReport({ + required String token, + Map? queryParameters, + }) async { + var res = await _httpClient.get( + '/poultry_science_report/', + headers: {'Authorization': 'Bearer $token'}, + queryParameters: queryParameters, + fromJson: (json) => PaginationModel.fromJson( + json, + (json) => HatchingReport.fromJson(json as Map), + ), + ); + return res.data; + } } diff --git a/packages/chicken/lib/data/models/response/hatching/hatching_models.dart b/packages/chicken/lib/data/models/response/hatching/hatching_models.dart new file mode 100644 index 0000000..cc72dd4 --- /dev/null +++ b/packages/chicken/lib/data/models/response/hatching/hatching_models.dart @@ -0,0 +1,421 @@ +import 'package:freezed_annotation/freezed_annotation.dart'; + +part 'hatching_models.freezed.dart'; +part 'hatching_models.g.dart'; + +@freezed +abstract class HatchingModel with _$HatchingModel{ + const factory HatchingModel({ + int? id, + Poultry? poultry, + ChainCompany? chainCompany, + num? age, + dynamic inspectionLosses, + VetFarm? vetFarm, + ActiveKill? activeKill, + KillingInfo? killingInfo, + FreeGovernmentalInfo? freeGovernmentalInfo, + ReportInfo? reportInfo, + String? key, + String? createDate, + String? modifyDate, + bool? trash, + bool? hasChainCompany, + int? poultryIdForeignKey, + int? poultryHatchingIdKey, + num? quantity, + num? losses, + num? leftOver, + num? killedQuantity, + num? extraKilledQuantity, + num? governmentalKilledQuantity, + num? governmentalQuantity, + num? freeKilledQuantity, + num? freeQuantity, + num? chainKilledQuantity, + num? chainKilledWeight, + num? outProvinceKilledWeight, + num? outProvinceKilledQuantity, + num? exportKilledWeight, + num? exportKilledQuantity, + num? totalCommitment, + String? commitmentType, + num? totalCommitmentQuantity, + num? totalFreeCommitmentQuantity, + num? totalFreeCommitmentWeight, + num? totalKilledWeight, + num? totalAverageKilledWeight, + num? requestLeftOver, + num? hall, + String? date, + String? predicateDate, + String? chickenBreed, + num? period, + String? allowHatching, + String? state, + bool? archive, + bool? violation, + String? message, + Registrar? registrar, + List? breed, + num? cityNumber, + String? cityName, + num? provinceNumber, + String? provinceName, + LastChange? lastChange, + num? chickenAge, + num? nowAge, + LatestHatchingChange? latestHatchingChange, + String? violationReport, + String? violationMessage, + List? violationImage, + String? violationReporter, + String? violationReportDate, + String? violationReportEditor, + String? violationReportEditDate, + num? totalLosses, + num? directLosses, + String? directLossesInputer, + String? directLossesDate, + String? directLossesEditor, + String? directLossesLastEditDate, + String? endPeriodLossesInputer, + String? endPeriodLossesDate, + String? endPeriodLossesEditor, + String? endPeriodLossesLastEditDate, + String? breedingUniqueId, + String? licenceNumber, + bool? temporaryTrash, + bool? temporaryDeleted, + String? firstDateInputArchive, + String? secondDateInputArchive, + String? inputArchiver, + String? outputArchiveDate, + String? outputArchiver, + num? barDifferenceRequestWeight, + num? barDifferenceRequestQuantity, + String? healthCertificate, + num? samasatDischargePercentage, + String? personTypeName, + String? interactTypeName, + String? unionTypeName, + String? certId, + num? increaseQuantity, + String? tenantFullname, + String? tenantNationalCode, + String? tenantMobile, + String? tenantCity, + bool? hasTenant, + String? archiveDate, + String? createdBy, + String? modifiedBy, + }) = _HatchingModel; + + factory HatchingModel.fromJson(Map json) => _$HatchingModelFromJson(json); +} + +@freezed +abstract class Poultry with _$Poultry { + const factory Poultry({ + int? id, + PoultryUser? user, + PoultryAddress? address, + String? key, + bool? trash, + int? ownerIdForeignKey, + int? userIdForeignKey, + int? addressIdForeignKey, + bool? hasChainCompany, + int? userBankIdForeignKey, + String? cityOperator, + String? unitName, + String? gisCode, + num? operatingLicenceCapacity, + num? numberOfHalls, + bool? tenant, + bool? hasTenant, + String? personType, + String? economicCode, + String? systemCode, + String? epidemiologicalCode, + String? breedingUniqueId, + num? totalCapacity, + String? licenceNumber, + String? healthCertificateNumber, + num? numberOfRequests, + String? hatchingDate, + String? lastPartyDate, + num? numberOfIncubators, + num? herdAgeByDay, + num? herdAgeByWeek, + num? numberOfParty, + String? communicationType, + String? cooperative, + String? dateOfRegister, + String? unitStatus, + bool? active, + dynamic identityDocuments, + String? samasatUserCode, + String? baseOrder, + String? incubationDate, + num? walletAmount, + num? city, + num? cityNumber, + String? cityName, + num? provinceNumber, + String? provinceName, + int? walletIdForeignKey, + int? poultryIdKey, + num? lat, + num? long, + String? date, + num? killingAveAge, + num? activeLeftOver, + num? killingAveCount, + num? killingAveWeight, + num? killingLiveWeight, + num? killingCarcassesWeight, + num? killingLossWeightPercent, + num? realKillingAveWeight, + num? realKillingLiveWeight, + num? realKillingCarcassesWeight, + num? realKillingLossWeightPercent, + int? interestLicenseId, + bool? orderLimit, + int? owner, + int? userBankInfo, + int? wallet, + }) = _Poultry; + + factory Poultry.fromJson(Map json) => _$PoultryFromJson(json); +} + +@freezed +abstract class PoultryUser with _$PoultryUser { + const factory PoultryUser({ + String? fullname, + String? mobile, + }) = _PoultryUser; + + factory PoultryUser.fromJson(Map json) => _$PoultryUserFromJson(json); +} + +@freezed +abstract class PoultryAddress with _$PoultryAddress { + const factory PoultryAddress({ + ProvinceRef? province, + CityRef? city, + String? address, + String? postalCode, + }) = _PoultryAddress; + + factory PoultryAddress.fromJson(Map json) => _$PoultryAddressFromJson(json); +} + +@freezed +abstract class ProvinceRef with _$ProvinceRef { + const factory ProvinceRef({ + String? key, + String? name, + }) = _ProvinceRef; + + factory ProvinceRef.fromJson(Map json) => _$ProvinceRefFromJson(json); +} + +@freezed +abstract class CityRef with _$CityRef { + const factory CityRef({ + String? key, + String? name, + }) = _CityRef; + + factory CityRef.fromJson(Map json) => _$CityRefFromJson(json); +} + +@freezed +abstract class ChainCompany with _$ChainCompany { + const factory ChainCompany({ + ChainUser? user, + dynamic userBankInfo, + String? key, + bool? trash, + String? name, + String? city, + String? province, + String? postalCode, + String? address, + num? wallet, + }) = _ChainCompany; + + factory ChainCompany.fromJson(Map json) => _$ChainCompanyFromJson(json); +} + +@freezed +abstract class ChainUser with _$ChainUser { + const factory ChainUser({ + List? role, + String? city, + String? province, + String? key, + String? userGateWayId, + int? userDjangoIdForeignKey, + int? provinceIdForeignKey, + int? cityIdForeignKey, + int? systemUserProfileIdKey, + String? fullname, + String? firstName, + String? lastName, + String? nationalCode, + String? nationalCodeImage, + String? nationalId, + String? mobile, + String? birthday, + String? image, + String? password, + bool? active, + ChainUserState? state, + num? baseOrder, + num? cityNumber, + String? cityName, + num? provinceNumber, + String? provinceName, + String? unitName, + String? unitNationalId, + String? unitRegistrationNumber, + String? unitEconomicalNumber, + String? unitProvince, + String? unitCity, + String? unitPostalCode, + String? unitAddress, + }) = _ChainUser; + + factory ChainUser.fromJson(Map json) => _$ChainUserFromJson(json); +} + +@freezed +abstract class ChainUserState with _$ChainUserState { + const factory ChainUserState({ + String? city, + String? image, + String? mobile, + String? birthday, + String? province, + String? lastName, + String? firstName, + String? nationalId, + String? nationalCode, + }) = _ChainUserState; + + factory ChainUserState.fromJson(Map json) => _$ChainUserStateFromJson(json); +} + +@freezed +abstract class VetFarm with _$VetFarm { + const factory VetFarm({ + String? vetFarmFullName, + String? vetFarmMobile, + }) = _VetFarm; + + factory VetFarm.fromJson(Map json) => _$VetFarmFromJson(json); +} + +@freezed +abstract class ActiveKill with _$ActiveKill { + const factory ActiveKill({ + bool? activeKill, + num? countOfRequest, + }) = _ActiveKill; + + factory ActiveKill.fromJson(Map json) => _$ActiveKillFromJson(json); +} + +@freezed +abstract class KillingInfo with _$KillingInfo { + const factory KillingInfo({ + String? violationMessage, + num? provinceKillRequests, + num? provinceKillRequestsQuantity, + num? provinceKillRequestsWeight, + num? killHouseRequests, + num? killHouseRequestsFirstQuantity, + num? killHouseRequestsFirstWeight, + num? barCompleteWithKillHouse, + num? acceptedRealQuantityFinal, + num? acceptedRealWightFinal, + num? wareHouseBars, + num? wareHouseBarsQuantity, + num? wareHouseBarsWeight, + num? wareHouseBarsWeightLose, + }) = _KillingInfo; + + factory KillingInfo.fromJson(Map json) => _$KillingInfoFromJson(json); +} + +@freezed +abstract class FreeGovernmentalInfo with _$FreeGovernmentalInfo { + const factory FreeGovernmentalInfo({ + num? governmentalAllocatedQuantity, + num? totalCommitmentQuantity, + num? freeAllocatedQuantity, + num? totalFreeCommitmentQuantity, + num? leftTotalFreeCommitmentQuantity, + }) = _FreeGovernmentalInfo; + + factory FreeGovernmentalInfo.fromJson(Map json) => _$FreeGovernmentalInfoFromJson(json); +} + +@freezed +abstract class ReportInfo with _$ReportInfo { + const factory ReportInfo({ + bool? poultryScience, + bool? image, + }) = _ReportInfo; + + factory ReportInfo.fromJson(Map json) => _$ReportInfoFromJson(json); +} + +@freezed +abstract class LatestHatchingChange with _$LatestHatchingChange { + const factory LatestHatchingChange({ + String? date, + String? role, + String? fullName, + }) = _LatestHatchingChange; + + factory LatestHatchingChange.fromJson(Map json) => _$LatestHatchingChangeFromJson(json); +} + +@freezed +abstract class Registrar with _$Registrar { + const factory Registrar({ + String? date, + String? role, + String? fullname, + }) = _Registrar; + + factory Registrar.fromJson(Map json) => _$RegistrarFromJson(json); +} + +@freezed +abstract class LastChange with _$LastChange { + const factory LastChange({ + String? date, + String? role, + String? type, + String? fullName, + }) = _LastChange; + + factory LastChange.fromJson(Map json) => _$LastChangeFromJson(json); +} + +@freezed +abstract class BreedItem with _$BreedItem { + const factory BreedItem({ + String? breed, + num? mainQuantity, + num? remainQuantity, + }) = _BreedItem; + + factory BreedItem.fromJson(Map json) => _$BreedItemFromJson(json); +} + diff --git a/packages/chicken/lib/data/models/response/hatching/hatching_models.freezed.dart b/packages/chicken/lib/data/models/response/hatching/hatching_models.freezed.dart new file mode 100644 index 0000000..4319232 --- /dev/null +++ b/packages/chicken/lib/data/models/response/hatching/hatching_models.freezed.dart @@ -0,0 +1,5918 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// coverage:ignore-file +// ignore_for_file: type=lint +// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark + +part of 'hatching_models.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; + +/// @nodoc +mixin _$HatchingModel { + + int? get id; Poultry? get poultry; ChainCompany? get chainCompany; num? get age; dynamic get inspectionLosses; VetFarm? get vetFarm; ActiveKill? get activeKill; KillingInfo? get killingInfo; FreeGovernmentalInfo? get freeGovernmentalInfo; ReportInfo? get reportInfo; String? get key; String? get createDate; String? get modifyDate; bool? get trash; bool? get hasChainCompany; int? get poultryIdForeignKey; int? get poultryHatchingIdKey; num? get quantity; num? get losses; num? get leftOver; num? get killedQuantity; num? get extraKilledQuantity; num? get governmentalKilledQuantity; num? get governmentalQuantity; num? get freeKilledQuantity; num? get freeQuantity; num? get chainKilledQuantity; num? get chainKilledWeight; num? get outProvinceKilledWeight; num? get outProvinceKilledQuantity; num? get exportKilledWeight; num? get exportKilledQuantity; num? get totalCommitment; String? get commitmentType; num? get totalCommitmentQuantity; num? get totalFreeCommitmentQuantity; num? get totalFreeCommitmentWeight; num? get totalKilledWeight; num? get totalAverageKilledWeight; num? get requestLeftOver; num? get hall; String? get date; String? get predicateDate; String? get chickenBreed; num? get period; String? get allowHatching; String? get state; bool? get archive; bool? get violation; String? get message; Registrar? get registrar; List? get breed; num? get cityNumber; String? get cityName; num? get provinceNumber; String? get provinceName; LastChange? get lastChange; num? get chickenAge; num? get nowAge; LatestHatchingChange? get latestHatchingChange; String? get violationReport; String? get violationMessage; List? get violationImage; String? get violationReporter; String? get violationReportDate; String? get violationReportEditor; String? get violationReportEditDate; num? get totalLosses; num? get directLosses; String? get directLossesInputer; String? get directLossesDate; String? get directLossesEditor; String? get directLossesLastEditDate; String? get endPeriodLossesInputer; String? get endPeriodLossesDate; String? get endPeriodLossesEditor; String? get endPeriodLossesLastEditDate; String? get breedingUniqueId; String? get licenceNumber; bool? get temporaryTrash; bool? get temporaryDeleted; String? get firstDateInputArchive; String? get secondDateInputArchive; String? get inputArchiver; String? get outputArchiveDate; String? get outputArchiver; num? get barDifferenceRequestWeight; num? get barDifferenceRequestQuantity; String? get healthCertificate; num? get samasatDischargePercentage; String? get personTypeName; String? get interactTypeName; String? get unionTypeName; String? get certId; num? get increaseQuantity; String? get tenantFullname; String? get tenantNationalCode; String? get tenantMobile; String? get tenantCity; bool? get hasTenant; String? get archiveDate; String? get createdBy; String? get modifiedBy; +/// Create a copy of HatchingModel +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$HatchingModelCopyWith get copyWith => _$HatchingModelCopyWithImpl(this as HatchingModel, _$identity); + + /// Serializes this HatchingModel to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is HatchingModel&&(identical(other.id, id) || other.id == id)&&(identical(other.poultry, poultry) || other.poultry == poultry)&&(identical(other.chainCompany, chainCompany) || other.chainCompany == chainCompany)&&(identical(other.age, age) || other.age == age)&&const DeepCollectionEquality().equals(other.inspectionLosses, inspectionLosses)&&(identical(other.vetFarm, vetFarm) || other.vetFarm == vetFarm)&&(identical(other.activeKill, activeKill) || other.activeKill == activeKill)&&(identical(other.killingInfo, killingInfo) || other.killingInfo == killingInfo)&&(identical(other.freeGovernmentalInfo, freeGovernmentalInfo) || other.freeGovernmentalInfo == freeGovernmentalInfo)&&(identical(other.reportInfo, reportInfo) || other.reportInfo == reportInfo)&&(identical(other.key, key) || other.key == key)&&(identical(other.createDate, createDate) || other.createDate == createDate)&&(identical(other.modifyDate, modifyDate) || other.modifyDate == modifyDate)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.hasChainCompany, hasChainCompany) || other.hasChainCompany == hasChainCompany)&&(identical(other.poultryIdForeignKey, poultryIdForeignKey) || other.poultryIdForeignKey == poultryIdForeignKey)&&(identical(other.poultryHatchingIdKey, poultryHatchingIdKey) || other.poultryHatchingIdKey == poultryHatchingIdKey)&&(identical(other.quantity, quantity) || other.quantity == quantity)&&(identical(other.losses, losses) || other.losses == losses)&&(identical(other.leftOver, leftOver) || other.leftOver == leftOver)&&(identical(other.killedQuantity, killedQuantity) || other.killedQuantity == killedQuantity)&&(identical(other.extraKilledQuantity, extraKilledQuantity) || other.extraKilledQuantity == extraKilledQuantity)&&(identical(other.governmentalKilledQuantity, governmentalKilledQuantity) || other.governmentalKilledQuantity == governmentalKilledQuantity)&&(identical(other.governmentalQuantity, governmentalQuantity) || other.governmentalQuantity == governmentalQuantity)&&(identical(other.freeKilledQuantity, freeKilledQuantity) || other.freeKilledQuantity == freeKilledQuantity)&&(identical(other.freeQuantity, freeQuantity) || other.freeQuantity == freeQuantity)&&(identical(other.chainKilledQuantity, chainKilledQuantity) || other.chainKilledQuantity == chainKilledQuantity)&&(identical(other.chainKilledWeight, chainKilledWeight) || other.chainKilledWeight == chainKilledWeight)&&(identical(other.outProvinceKilledWeight, outProvinceKilledWeight) || other.outProvinceKilledWeight == outProvinceKilledWeight)&&(identical(other.outProvinceKilledQuantity, outProvinceKilledQuantity) || other.outProvinceKilledQuantity == outProvinceKilledQuantity)&&(identical(other.exportKilledWeight, exportKilledWeight) || other.exportKilledWeight == exportKilledWeight)&&(identical(other.exportKilledQuantity, exportKilledQuantity) || other.exportKilledQuantity == exportKilledQuantity)&&(identical(other.totalCommitment, totalCommitment) || other.totalCommitment == totalCommitment)&&(identical(other.commitmentType, commitmentType) || other.commitmentType == commitmentType)&&(identical(other.totalCommitmentQuantity, totalCommitmentQuantity) || other.totalCommitmentQuantity == totalCommitmentQuantity)&&(identical(other.totalFreeCommitmentQuantity, totalFreeCommitmentQuantity) || other.totalFreeCommitmentQuantity == totalFreeCommitmentQuantity)&&(identical(other.totalFreeCommitmentWeight, totalFreeCommitmentWeight) || other.totalFreeCommitmentWeight == totalFreeCommitmentWeight)&&(identical(other.totalKilledWeight, totalKilledWeight) || other.totalKilledWeight == totalKilledWeight)&&(identical(other.totalAverageKilledWeight, totalAverageKilledWeight) || other.totalAverageKilledWeight == totalAverageKilledWeight)&&(identical(other.requestLeftOver, requestLeftOver) || other.requestLeftOver == requestLeftOver)&&(identical(other.hall, hall) || other.hall == hall)&&(identical(other.date, date) || other.date == date)&&(identical(other.predicateDate, predicateDate) || other.predicateDate == predicateDate)&&(identical(other.chickenBreed, chickenBreed) || other.chickenBreed == chickenBreed)&&(identical(other.period, period) || other.period == period)&&(identical(other.allowHatching, allowHatching) || other.allowHatching == allowHatching)&&(identical(other.state, state) || other.state == state)&&(identical(other.archive, archive) || other.archive == archive)&&(identical(other.violation, violation) || other.violation == violation)&&(identical(other.message, message) || other.message == message)&&(identical(other.registrar, registrar) || other.registrar == registrar)&&const DeepCollectionEquality().equals(other.breed, breed)&&(identical(other.cityNumber, cityNumber) || other.cityNumber == cityNumber)&&(identical(other.cityName, cityName) || other.cityName == cityName)&&(identical(other.provinceNumber, provinceNumber) || other.provinceNumber == provinceNumber)&&(identical(other.provinceName, provinceName) || other.provinceName == provinceName)&&(identical(other.lastChange, lastChange) || other.lastChange == lastChange)&&(identical(other.chickenAge, chickenAge) || other.chickenAge == chickenAge)&&(identical(other.nowAge, nowAge) || other.nowAge == nowAge)&&(identical(other.latestHatchingChange, latestHatchingChange) || other.latestHatchingChange == latestHatchingChange)&&(identical(other.violationReport, violationReport) || other.violationReport == violationReport)&&(identical(other.violationMessage, violationMessage) || other.violationMessage == violationMessage)&&const DeepCollectionEquality().equals(other.violationImage, violationImage)&&(identical(other.violationReporter, violationReporter) || other.violationReporter == violationReporter)&&(identical(other.violationReportDate, violationReportDate) || other.violationReportDate == violationReportDate)&&(identical(other.violationReportEditor, violationReportEditor) || other.violationReportEditor == violationReportEditor)&&(identical(other.violationReportEditDate, violationReportEditDate) || other.violationReportEditDate == violationReportEditDate)&&(identical(other.totalLosses, totalLosses) || other.totalLosses == totalLosses)&&(identical(other.directLosses, directLosses) || other.directLosses == directLosses)&&(identical(other.directLossesInputer, directLossesInputer) || other.directLossesInputer == directLossesInputer)&&(identical(other.directLossesDate, directLossesDate) || other.directLossesDate == directLossesDate)&&(identical(other.directLossesEditor, directLossesEditor) || other.directLossesEditor == directLossesEditor)&&(identical(other.directLossesLastEditDate, directLossesLastEditDate) || other.directLossesLastEditDate == directLossesLastEditDate)&&(identical(other.endPeriodLossesInputer, endPeriodLossesInputer) || other.endPeriodLossesInputer == endPeriodLossesInputer)&&(identical(other.endPeriodLossesDate, endPeriodLossesDate) || other.endPeriodLossesDate == endPeriodLossesDate)&&(identical(other.endPeriodLossesEditor, endPeriodLossesEditor) || other.endPeriodLossesEditor == endPeriodLossesEditor)&&(identical(other.endPeriodLossesLastEditDate, endPeriodLossesLastEditDate) || other.endPeriodLossesLastEditDate == endPeriodLossesLastEditDate)&&(identical(other.breedingUniqueId, breedingUniqueId) || other.breedingUniqueId == breedingUniqueId)&&(identical(other.licenceNumber, licenceNumber) || other.licenceNumber == licenceNumber)&&(identical(other.temporaryTrash, temporaryTrash) || other.temporaryTrash == temporaryTrash)&&(identical(other.temporaryDeleted, temporaryDeleted) || other.temporaryDeleted == temporaryDeleted)&&(identical(other.firstDateInputArchive, firstDateInputArchive) || other.firstDateInputArchive == firstDateInputArchive)&&(identical(other.secondDateInputArchive, secondDateInputArchive) || other.secondDateInputArchive == secondDateInputArchive)&&(identical(other.inputArchiver, inputArchiver) || other.inputArchiver == inputArchiver)&&(identical(other.outputArchiveDate, outputArchiveDate) || other.outputArchiveDate == outputArchiveDate)&&(identical(other.outputArchiver, outputArchiver) || other.outputArchiver == outputArchiver)&&(identical(other.barDifferenceRequestWeight, barDifferenceRequestWeight) || other.barDifferenceRequestWeight == barDifferenceRequestWeight)&&(identical(other.barDifferenceRequestQuantity, barDifferenceRequestQuantity) || other.barDifferenceRequestQuantity == barDifferenceRequestQuantity)&&(identical(other.healthCertificate, healthCertificate) || other.healthCertificate == healthCertificate)&&(identical(other.samasatDischargePercentage, samasatDischargePercentage) || other.samasatDischargePercentage == samasatDischargePercentage)&&(identical(other.personTypeName, personTypeName) || other.personTypeName == personTypeName)&&(identical(other.interactTypeName, interactTypeName) || other.interactTypeName == interactTypeName)&&(identical(other.unionTypeName, unionTypeName) || other.unionTypeName == unionTypeName)&&(identical(other.certId, certId) || other.certId == certId)&&(identical(other.increaseQuantity, increaseQuantity) || other.increaseQuantity == increaseQuantity)&&(identical(other.tenantFullname, tenantFullname) || other.tenantFullname == tenantFullname)&&(identical(other.tenantNationalCode, tenantNationalCode) || other.tenantNationalCode == tenantNationalCode)&&(identical(other.tenantMobile, tenantMobile) || other.tenantMobile == tenantMobile)&&(identical(other.tenantCity, tenantCity) || other.tenantCity == tenantCity)&&(identical(other.hasTenant, hasTenant) || other.hasTenant == hasTenant)&&(identical(other.archiveDate, archiveDate) || other.archiveDate == archiveDate)&&(identical(other.createdBy, createdBy) || other.createdBy == createdBy)&&(identical(other.modifiedBy, modifiedBy) || other.modifiedBy == modifiedBy)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,id,poultry,chainCompany,age,const DeepCollectionEquality().hash(inspectionLosses),vetFarm,activeKill,killingInfo,freeGovernmentalInfo,reportInfo,key,createDate,modifyDate,trash,hasChainCompany,poultryIdForeignKey,poultryHatchingIdKey,quantity,losses,leftOver,killedQuantity,extraKilledQuantity,governmentalKilledQuantity,governmentalQuantity,freeKilledQuantity,freeQuantity,chainKilledQuantity,chainKilledWeight,outProvinceKilledWeight,outProvinceKilledQuantity,exportKilledWeight,exportKilledQuantity,totalCommitment,commitmentType,totalCommitmentQuantity,totalFreeCommitmentQuantity,totalFreeCommitmentWeight,totalKilledWeight,totalAverageKilledWeight,requestLeftOver,hall,date,predicateDate,chickenBreed,period,allowHatching,state,archive,violation,message,registrar,const DeepCollectionEquality().hash(breed),cityNumber,cityName,provinceNumber,provinceName,lastChange,chickenAge,nowAge,latestHatchingChange,violationReport,violationMessage,const DeepCollectionEquality().hash(violationImage),violationReporter,violationReportDate,violationReportEditor,violationReportEditDate,totalLosses,directLosses,directLossesInputer,directLossesDate,directLossesEditor,directLossesLastEditDate,endPeriodLossesInputer,endPeriodLossesDate,endPeriodLossesEditor,endPeriodLossesLastEditDate,breedingUniqueId,licenceNumber,temporaryTrash,temporaryDeleted,firstDateInputArchive,secondDateInputArchive,inputArchiver,outputArchiveDate,outputArchiver,barDifferenceRequestWeight,barDifferenceRequestQuantity,healthCertificate,samasatDischargePercentage,personTypeName,interactTypeName,unionTypeName,certId,increaseQuantity,tenantFullname,tenantNationalCode,tenantMobile,tenantCity,hasTenant,archiveDate,createdBy,modifiedBy]); + +@override +String toString() { + return 'HatchingModel(id: $id, poultry: $poultry, chainCompany: $chainCompany, age: $age, inspectionLosses: $inspectionLosses, vetFarm: $vetFarm, activeKill: $activeKill, killingInfo: $killingInfo, freeGovernmentalInfo: $freeGovernmentalInfo, reportInfo: $reportInfo, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, hasChainCompany: $hasChainCompany, poultryIdForeignKey: $poultryIdForeignKey, poultryHatchingIdKey: $poultryHatchingIdKey, quantity: $quantity, losses: $losses, leftOver: $leftOver, killedQuantity: $killedQuantity, extraKilledQuantity: $extraKilledQuantity, governmentalKilledQuantity: $governmentalKilledQuantity, governmentalQuantity: $governmentalQuantity, freeKilledQuantity: $freeKilledQuantity, freeQuantity: $freeQuantity, chainKilledQuantity: $chainKilledQuantity, chainKilledWeight: $chainKilledWeight, outProvinceKilledWeight: $outProvinceKilledWeight, outProvinceKilledQuantity: $outProvinceKilledQuantity, exportKilledWeight: $exportKilledWeight, exportKilledQuantity: $exportKilledQuantity, totalCommitment: $totalCommitment, commitmentType: $commitmentType, totalCommitmentQuantity: $totalCommitmentQuantity, totalFreeCommitmentQuantity: $totalFreeCommitmentQuantity, totalFreeCommitmentWeight: $totalFreeCommitmentWeight, totalKilledWeight: $totalKilledWeight, totalAverageKilledWeight: $totalAverageKilledWeight, requestLeftOver: $requestLeftOver, hall: $hall, date: $date, predicateDate: $predicateDate, chickenBreed: $chickenBreed, period: $period, allowHatching: $allowHatching, state: $state, archive: $archive, violation: $violation, message: $message, registrar: $registrar, breed: $breed, cityNumber: $cityNumber, cityName: $cityName, provinceNumber: $provinceNumber, provinceName: $provinceName, lastChange: $lastChange, chickenAge: $chickenAge, nowAge: $nowAge, latestHatchingChange: $latestHatchingChange, violationReport: $violationReport, violationMessage: $violationMessage, violationImage: $violationImage, violationReporter: $violationReporter, violationReportDate: $violationReportDate, violationReportEditor: $violationReportEditor, violationReportEditDate: $violationReportEditDate, totalLosses: $totalLosses, directLosses: $directLosses, directLossesInputer: $directLossesInputer, directLossesDate: $directLossesDate, directLossesEditor: $directLossesEditor, directLossesLastEditDate: $directLossesLastEditDate, endPeriodLossesInputer: $endPeriodLossesInputer, endPeriodLossesDate: $endPeriodLossesDate, endPeriodLossesEditor: $endPeriodLossesEditor, endPeriodLossesLastEditDate: $endPeriodLossesLastEditDate, breedingUniqueId: $breedingUniqueId, licenceNumber: $licenceNumber, temporaryTrash: $temporaryTrash, temporaryDeleted: $temporaryDeleted, firstDateInputArchive: $firstDateInputArchive, secondDateInputArchive: $secondDateInputArchive, inputArchiver: $inputArchiver, outputArchiveDate: $outputArchiveDate, outputArchiver: $outputArchiver, barDifferenceRequestWeight: $barDifferenceRequestWeight, barDifferenceRequestQuantity: $barDifferenceRequestQuantity, healthCertificate: $healthCertificate, samasatDischargePercentage: $samasatDischargePercentage, personTypeName: $personTypeName, interactTypeName: $interactTypeName, unionTypeName: $unionTypeName, certId: $certId, increaseQuantity: $increaseQuantity, tenantFullname: $tenantFullname, tenantNationalCode: $tenantNationalCode, tenantMobile: $tenantMobile, tenantCity: $tenantCity, hasTenant: $hasTenant, archiveDate: $archiveDate, createdBy: $createdBy, modifiedBy: $modifiedBy)'; +} + + +} + +/// @nodoc +abstract mixin class $HatchingModelCopyWith<$Res> { + factory $HatchingModelCopyWith(HatchingModel value, $Res Function(HatchingModel) _then) = _$HatchingModelCopyWithImpl; +@useResult +$Res call({ + int? id, Poultry? poultry, ChainCompany? chainCompany, num? age, dynamic inspectionLosses, VetFarm? vetFarm, ActiveKill? activeKill, KillingInfo? killingInfo, FreeGovernmentalInfo? freeGovernmentalInfo, ReportInfo? reportInfo, String? key, String? createDate, String? modifyDate, bool? trash, bool? hasChainCompany, int? poultryIdForeignKey, int? poultryHatchingIdKey, num? quantity, num? losses, num? leftOver, num? killedQuantity, num? extraKilledQuantity, num? governmentalKilledQuantity, num? governmentalQuantity, num? freeKilledQuantity, num? freeQuantity, num? chainKilledQuantity, num? chainKilledWeight, num? outProvinceKilledWeight, num? outProvinceKilledQuantity, num? exportKilledWeight, num? exportKilledQuantity, num? totalCommitment, String? commitmentType, num? totalCommitmentQuantity, num? totalFreeCommitmentQuantity, num? totalFreeCommitmentWeight, num? totalKilledWeight, num? totalAverageKilledWeight, num? requestLeftOver, num? hall, String? date, String? predicateDate, String? chickenBreed, num? period, String? allowHatching, String? state, bool? archive, bool? violation, String? message, Registrar? registrar, List? breed, num? cityNumber, String? cityName, num? provinceNumber, String? provinceName, LastChange? lastChange, num? chickenAge, num? nowAge, LatestHatchingChange? latestHatchingChange, String? violationReport, String? violationMessage, List? violationImage, String? violationReporter, String? violationReportDate, String? violationReportEditor, String? violationReportEditDate, num? totalLosses, num? directLosses, String? directLossesInputer, String? directLossesDate, String? directLossesEditor, String? directLossesLastEditDate, String? endPeriodLossesInputer, String? endPeriodLossesDate, String? endPeriodLossesEditor, String? endPeriodLossesLastEditDate, String? breedingUniqueId, String? licenceNumber, bool? temporaryTrash, bool? temporaryDeleted, String? firstDateInputArchive, String? secondDateInputArchive, String? inputArchiver, String? outputArchiveDate, String? outputArchiver, num? barDifferenceRequestWeight, num? barDifferenceRequestQuantity, String? healthCertificate, num? samasatDischargePercentage, String? personTypeName, String? interactTypeName, String? unionTypeName, String? certId, num? increaseQuantity, String? tenantFullname, String? tenantNationalCode, String? tenantMobile, String? tenantCity, bool? hasTenant, String? archiveDate, String? createdBy, String? modifiedBy +}); + + +$PoultryCopyWith<$Res>? get poultry;$ChainCompanyCopyWith<$Res>? get chainCompany;$VetFarmCopyWith<$Res>? get vetFarm;$ActiveKillCopyWith<$Res>? get activeKill;$KillingInfoCopyWith<$Res>? get killingInfo;$FreeGovernmentalInfoCopyWith<$Res>? get freeGovernmentalInfo;$ReportInfoCopyWith<$Res>? get reportInfo;$RegistrarCopyWith<$Res>? get registrar;$LastChangeCopyWith<$Res>? get lastChange;$LatestHatchingChangeCopyWith<$Res>? get latestHatchingChange; + +} +/// @nodoc +class _$HatchingModelCopyWithImpl<$Res> + implements $HatchingModelCopyWith<$Res> { + _$HatchingModelCopyWithImpl(this._self, this._then); + + final HatchingModel _self; + final $Res Function(HatchingModel) _then; + +/// Create a copy of HatchingModel +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? poultry = freezed,Object? chainCompany = freezed,Object? age = freezed,Object? inspectionLosses = freezed,Object? vetFarm = freezed,Object? activeKill = freezed,Object? killingInfo = freezed,Object? freeGovernmentalInfo = freezed,Object? reportInfo = freezed,Object? key = freezed,Object? createDate = freezed,Object? modifyDate = freezed,Object? trash = freezed,Object? hasChainCompany = freezed,Object? poultryIdForeignKey = freezed,Object? poultryHatchingIdKey = freezed,Object? quantity = freezed,Object? losses = freezed,Object? leftOver = freezed,Object? killedQuantity = freezed,Object? extraKilledQuantity = freezed,Object? governmentalKilledQuantity = freezed,Object? governmentalQuantity = freezed,Object? freeKilledQuantity = freezed,Object? freeQuantity = freezed,Object? chainKilledQuantity = freezed,Object? chainKilledWeight = freezed,Object? outProvinceKilledWeight = freezed,Object? outProvinceKilledQuantity = freezed,Object? exportKilledWeight = freezed,Object? exportKilledQuantity = freezed,Object? totalCommitment = freezed,Object? commitmentType = freezed,Object? totalCommitmentQuantity = freezed,Object? totalFreeCommitmentQuantity = freezed,Object? totalFreeCommitmentWeight = freezed,Object? totalKilledWeight = freezed,Object? totalAverageKilledWeight = freezed,Object? requestLeftOver = freezed,Object? hall = freezed,Object? date = freezed,Object? predicateDate = freezed,Object? chickenBreed = freezed,Object? period = freezed,Object? allowHatching = freezed,Object? state = freezed,Object? archive = freezed,Object? violation = freezed,Object? message = freezed,Object? registrar = freezed,Object? breed = freezed,Object? cityNumber = freezed,Object? cityName = freezed,Object? provinceNumber = freezed,Object? provinceName = freezed,Object? lastChange = freezed,Object? chickenAge = freezed,Object? nowAge = freezed,Object? latestHatchingChange = freezed,Object? violationReport = freezed,Object? violationMessage = freezed,Object? violationImage = freezed,Object? violationReporter = freezed,Object? violationReportDate = freezed,Object? violationReportEditor = freezed,Object? violationReportEditDate = freezed,Object? totalLosses = freezed,Object? directLosses = freezed,Object? directLossesInputer = freezed,Object? directLossesDate = freezed,Object? directLossesEditor = freezed,Object? directLossesLastEditDate = freezed,Object? endPeriodLossesInputer = freezed,Object? endPeriodLossesDate = freezed,Object? endPeriodLossesEditor = freezed,Object? endPeriodLossesLastEditDate = freezed,Object? breedingUniqueId = freezed,Object? licenceNumber = freezed,Object? temporaryTrash = freezed,Object? temporaryDeleted = freezed,Object? firstDateInputArchive = freezed,Object? secondDateInputArchive = freezed,Object? inputArchiver = freezed,Object? outputArchiveDate = freezed,Object? outputArchiver = freezed,Object? barDifferenceRequestWeight = freezed,Object? barDifferenceRequestQuantity = freezed,Object? healthCertificate = freezed,Object? samasatDischargePercentage = freezed,Object? personTypeName = freezed,Object? interactTypeName = freezed,Object? unionTypeName = freezed,Object? certId = freezed,Object? increaseQuantity = freezed,Object? tenantFullname = freezed,Object? tenantNationalCode = freezed,Object? tenantMobile = freezed,Object? tenantCity = freezed,Object? hasTenant = freezed,Object? archiveDate = freezed,Object? createdBy = freezed,Object? modifiedBy = freezed,}) { + return _then(_self.copyWith( +id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable +as int?,poultry: freezed == poultry ? _self.poultry : poultry // ignore: cast_nullable_to_non_nullable +as Poultry?,chainCompany: freezed == chainCompany ? _self.chainCompany : chainCompany // ignore: cast_nullable_to_non_nullable +as ChainCompany?,age: freezed == age ? _self.age : age // ignore: cast_nullable_to_non_nullable +as num?,inspectionLosses: freezed == inspectionLosses ? _self.inspectionLosses : inspectionLosses // ignore: cast_nullable_to_non_nullable +as dynamic,vetFarm: freezed == vetFarm ? _self.vetFarm : vetFarm // ignore: cast_nullable_to_non_nullable +as VetFarm?,activeKill: freezed == activeKill ? _self.activeKill : activeKill // ignore: cast_nullable_to_non_nullable +as ActiveKill?,killingInfo: freezed == killingInfo ? _self.killingInfo : killingInfo // ignore: cast_nullable_to_non_nullable +as KillingInfo?,freeGovernmentalInfo: freezed == freeGovernmentalInfo ? _self.freeGovernmentalInfo : freeGovernmentalInfo // ignore: cast_nullable_to_non_nullable +as FreeGovernmentalInfo?,reportInfo: freezed == reportInfo ? _self.reportInfo : reportInfo // ignore: cast_nullable_to_non_nullable +as ReportInfo?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,createDate: freezed == createDate ? _self.createDate : createDate // ignore: cast_nullable_to_non_nullable +as String?,modifyDate: freezed == modifyDate ? _self.modifyDate : modifyDate // ignore: cast_nullable_to_non_nullable +as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable +as bool?,hasChainCompany: freezed == hasChainCompany ? _self.hasChainCompany : hasChainCompany // ignore: cast_nullable_to_non_nullable +as bool?,poultryIdForeignKey: freezed == poultryIdForeignKey ? _self.poultryIdForeignKey : poultryIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,poultryHatchingIdKey: freezed == poultryHatchingIdKey ? _self.poultryHatchingIdKey : poultryHatchingIdKey // ignore: cast_nullable_to_non_nullable +as int?,quantity: freezed == quantity ? _self.quantity : quantity // ignore: cast_nullable_to_non_nullable +as num?,losses: freezed == losses ? _self.losses : losses // ignore: cast_nullable_to_non_nullable +as num?,leftOver: freezed == leftOver ? _self.leftOver : leftOver // ignore: cast_nullable_to_non_nullable +as num?,killedQuantity: freezed == killedQuantity ? _self.killedQuantity : killedQuantity // ignore: cast_nullable_to_non_nullable +as num?,extraKilledQuantity: freezed == extraKilledQuantity ? _self.extraKilledQuantity : extraKilledQuantity // ignore: cast_nullable_to_non_nullable +as num?,governmentalKilledQuantity: freezed == governmentalKilledQuantity ? _self.governmentalKilledQuantity : governmentalKilledQuantity // ignore: cast_nullable_to_non_nullable +as num?,governmentalQuantity: freezed == governmentalQuantity ? _self.governmentalQuantity : governmentalQuantity // ignore: cast_nullable_to_non_nullable +as num?,freeKilledQuantity: freezed == freeKilledQuantity ? _self.freeKilledQuantity : freeKilledQuantity // ignore: cast_nullable_to_non_nullable +as num?,freeQuantity: freezed == freeQuantity ? _self.freeQuantity : freeQuantity // ignore: cast_nullable_to_non_nullable +as num?,chainKilledQuantity: freezed == chainKilledQuantity ? _self.chainKilledQuantity : chainKilledQuantity // ignore: cast_nullable_to_non_nullable +as num?,chainKilledWeight: freezed == chainKilledWeight ? _self.chainKilledWeight : chainKilledWeight // ignore: cast_nullable_to_non_nullable +as num?,outProvinceKilledWeight: freezed == outProvinceKilledWeight ? _self.outProvinceKilledWeight : outProvinceKilledWeight // ignore: cast_nullable_to_non_nullable +as num?,outProvinceKilledQuantity: freezed == outProvinceKilledQuantity ? _self.outProvinceKilledQuantity : outProvinceKilledQuantity // ignore: cast_nullable_to_non_nullable +as num?,exportKilledWeight: freezed == exportKilledWeight ? _self.exportKilledWeight : exportKilledWeight // ignore: cast_nullable_to_non_nullable +as num?,exportKilledQuantity: freezed == exportKilledQuantity ? _self.exportKilledQuantity : exportKilledQuantity // ignore: cast_nullable_to_non_nullable +as num?,totalCommitment: freezed == totalCommitment ? _self.totalCommitment : totalCommitment // ignore: cast_nullable_to_non_nullable +as num?,commitmentType: freezed == commitmentType ? _self.commitmentType : commitmentType // ignore: cast_nullable_to_non_nullable +as String?,totalCommitmentQuantity: freezed == totalCommitmentQuantity ? _self.totalCommitmentQuantity : totalCommitmentQuantity // ignore: cast_nullable_to_non_nullable +as num?,totalFreeCommitmentQuantity: freezed == totalFreeCommitmentQuantity ? _self.totalFreeCommitmentQuantity : totalFreeCommitmentQuantity // ignore: cast_nullable_to_non_nullable +as num?,totalFreeCommitmentWeight: freezed == totalFreeCommitmentWeight ? _self.totalFreeCommitmentWeight : totalFreeCommitmentWeight // ignore: cast_nullable_to_non_nullable +as num?,totalKilledWeight: freezed == totalKilledWeight ? _self.totalKilledWeight : totalKilledWeight // ignore: cast_nullable_to_non_nullable +as num?,totalAverageKilledWeight: freezed == totalAverageKilledWeight ? _self.totalAverageKilledWeight : totalAverageKilledWeight // ignore: cast_nullable_to_non_nullable +as num?,requestLeftOver: freezed == requestLeftOver ? _self.requestLeftOver : requestLeftOver // ignore: cast_nullable_to_non_nullable +as num?,hall: freezed == hall ? _self.hall : hall // ignore: cast_nullable_to_non_nullable +as num?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?,predicateDate: freezed == predicateDate ? _self.predicateDate : predicateDate // ignore: cast_nullable_to_non_nullable +as String?,chickenBreed: freezed == chickenBreed ? _self.chickenBreed : chickenBreed // ignore: cast_nullable_to_non_nullable +as String?,period: freezed == period ? _self.period : period // ignore: cast_nullable_to_non_nullable +as num?,allowHatching: freezed == allowHatching ? _self.allowHatching : allowHatching // ignore: cast_nullable_to_non_nullable +as String?,state: freezed == state ? _self.state : state // ignore: cast_nullable_to_non_nullable +as String?,archive: freezed == archive ? _self.archive : archive // ignore: cast_nullable_to_non_nullable +as bool?,violation: freezed == violation ? _self.violation : violation // ignore: cast_nullable_to_non_nullable +as bool?,message: freezed == message ? _self.message : message // ignore: cast_nullable_to_non_nullable +as String?,registrar: freezed == registrar ? _self.registrar : registrar // ignore: cast_nullable_to_non_nullable +as Registrar?,breed: freezed == breed ? _self.breed : breed // ignore: cast_nullable_to_non_nullable +as List?,cityNumber: freezed == cityNumber ? _self.cityNumber : cityNumber // ignore: cast_nullable_to_non_nullable +as num?,cityName: freezed == cityName ? _self.cityName : cityName // ignore: cast_nullable_to_non_nullable +as String?,provinceNumber: freezed == provinceNumber ? _self.provinceNumber : provinceNumber // ignore: cast_nullable_to_non_nullable +as num?,provinceName: freezed == provinceName ? _self.provinceName : provinceName // ignore: cast_nullable_to_non_nullable +as String?,lastChange: freezed == lastChange ? _self.lastChange : lastChange // ignore: cast_nullable_to_non_nullable +as LastChange?,chickenAge: freezed == chickenAge ? _self.chickenAge : chickenAge // ignore: cast_nullable_to_non_nullable +as num?,nowAge: freezed == nowAge ? _self.nowAge : nowAge // ignore: cast_nullable_to_non_nullable +as num?,latestHatchingChange: freezed == latestHatchingChange ? _self.latestHatchingChange : latestHatchingChange // ignore: cast_nullable_to_non_nullable +as LatestHatchingChange?,violationReport: freezed == violationReport ? _self.violationReport : violationReport // ignore: cast_nullable_to_non_nullable +as String?,violationMessage: freezed == violationMessage ? _self.violationMessage : violationMessage // ignore: cast_nullable_to_non_nullable +as String?,violationImage: freezed == violationImage ? _self.violationImage : violationImage // ignore: cast_nullable_to_non_nullable +as List?,violationReporter: freezed == violationReporter ? _self.violationReporter : violationReporter // ignore: cast_nullable_to_non_nullable +as String?,violationReportDate: freezed == violationReportDate ? _self.violationReportDate : violationReportDate // ignore: cast_nullable_to_non_nullable +as String?,violationReportEditor: freezed == violationReportEditor ? _self.violationReportEditor : violationReportEditor // ignore: cast_nullable_to_non_nullable +as String?,violationReportEditDate: freezed == violationReportEditDate ? _self.violationReportEditDate : violationReportEditDate // ignore: cast_nullable_to_non_nullable +as String?,totalLosses: freezed == totalLosses ? _self.totalLosses : totalLosses // ignore: cast_nullable_to_non_nullable +as num?,directLosses: freezed == directLosses ? _self.directLosses : directLosses // ignore: cast_nullable_to_non_nullable +as num?,directLossesInputer: freezed == directLossesInputer ? _self.directLossesInputer : directLossesInputer // ignore: cast_nullable_to_non_nullable +as String?,directLossesDate: freezed == directLossesDate ? _self.directLossesDate : directLossesDate // ignore: cast_nullable_to_non_nullable +as String?,directLossesEditor: freezed == directLossesEditor ? _self.directLossesEditor : directLossesEditor // ignore: cast_nullable_to_non_nullable +as String?,directLossesLastEditDate: freezed == directLossesLastEditDate ? _self.directLossesLastEditDate : directLossesLastEditDate // ignore: cast_nullable_to_non_nullable +as String?,endPeriodLossesInputer: freezed == endPeriodLossesInputer ? _self.endPeriodLossesInputer : endPeriodLossesInputer // ignore: cast_nullable_to_non_nullable +as String?,endPeriodLossesDate: freezed == endPeriodLossesDate ? _self.endPeriodLossesDate : endPeriodLossesDate // ignore: cast_nullable_to_non_nullable +as String?,endPeriodLossesEditor: freezed == endPeriodLossesEditor ? _self.endPeriodLossesEditor : endPeriodLossesEditor // ignore: cast_nullable_to_non_nullable +as String?,endPeriodLossesLastEditDate: freezed == endPeriodLossesLastEditDate ? _self.endPeriodLossesLastEditDate : endPeriodLossesLastEditDate // ignore: cast_nullable_to_non_nullable +as String?,breedingUniqueId: freezed == breedingUniqueId ? _self.breedingUniqueId : breedingUniqueId // ignore: cast_nullable_to_non_nullable +as String?,licenceNumber: freezed == licenceNumber ? _self.licenceNumber : licenceNumber // ignore: cast_nullable_to_non_nullable +as String?,temporaryTrash: freezed == temporaryTrash ? _self.temporaryTrash : temporaryTrash // ignore: cast_nullable_to_non_nullable +as bool?,temporaryDeleted: freezed == temporaryDeleted ? _self.temporaryDeleted : temporaryDeleted // ignore: cast_nullable_to_non_nullable +as bool?,firstDateInputArchive: freezed == firstDateInputArchive ? _self.firstDateInputArchive : firstDateInputArchive // ignore: cast_nullable_to_non_nullable +as String?,secondDateInputArchive: freezed == secondDateInputArchive ? _self.secondDateInputArchive : secondDateInputArchive // ignore: cast_nullable_to_non_nullable +as String?,inputArchiver: freezed == inputArchiver ? _self.inputArchiver : inputArchiver // ignore: cast_nullable_to_non_nullable +as String?,outputArchiveDate: freezed == outputArchiveDate ? _self.outputArchiveDate : outputArchiveDate // ignore: cast_nullable_to_non_nullable +as String?,outputArchiver: freezed == outputArchiver ? _self.outputArchiver : outputArchiver // ignore: cast_nullable_to_non_nullable +as String?,barDifferenceRequestWeight: freezed == barDifferenceRequestWeight ? _self.barDifferenceRequestWeight : barDifferenceRequestWeight // ignore: cast_nullable_to_non_nullable +as num?,barDifferenceRequestQuantity: freezed == barDifferenceRequestQuantity ? _self.barDifferenceRequestQuantity : barDifferenceRequestQuantity // ignore: cast_nullable_to_non_nullable +as num?,healthCertificate: freezed == healthCertificate ? _self.healthCertificate : healthCertificate // ignore: cast_nullable_to_non_nullable +as String?,samasatDischargePercentage: freezed == samasatDischargePercentage ? _self.samasatDischargePercentage : samasatDischargePercentage // ignore: cast_nullable_to_non_nullable +as num?,personTypeName: freezed == personTypeName ? _self.personTypeName : personTypeName // ignore: cast_nullable_to_non_nullable +as String?,interactTypeName: freezed == interactTypeName ? _self.interactTypeName : interactTypeName // ignore: cast_nullable_to_non_nullable +as String?,unionTypeName: freezed == unionTypeName ? _self.unionTypeName : unionTypeName // ignore: cast_nullable_to_non_nullable +as String?,certId: freezed == certId ? _self.certId : certId // ignore: cast_nullable_to_non_nullable +as String?,increaseQuantity: freezed == increaseQuantity ? _self.increaseQuantity : increaseQuantity // ignore: cast_nullable_to_non_nullable +as num?,tenantFullname: freezed == tenantFullname ? _self.tenantFullname : tenantFullname // ignore: cast_nullable_to_non_nullable +as String?,tenantNationalCode: freezed == tenantNationalCode ? _self.tenantNationalCode : tenantNationalCode // ignore: cast_nullable_to_non_nullable +as String?,tenantMobile: freezed == tenantMobile ? _self.tenantMobile : tenantMobile // ignore: cast_nullable_to_non_nullable +as String?,tenantCity: freezed == tenantCity ? _self.tenantCity : tenantCity // ignore: cast_nullable_to_non_nullable +as String?,hasTenant: freezed == hasTenant ? _self.hasTenant : hasTenant // ignore: cast_nullable_to_non_nullable +as bool?,archiveDate: freezed == archiveDate ? _self.archiveDate : archiveDate // ignore: cast_nullable_to_non_nullable +as String?,createdBy: freezed == createdBy ? _self.createdBy : createdBy // ignore: cast_nullable_to_non_nullable +as String?,modifiedBy: freezed == modifiedBy ? _self.modifiedBy : modifiedBy // ignore: cast_nullable_to_non_nullable +as String?, + )); +} +/// Create a copy of HatchingModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$PoultryCopyWith<$Res>? get poultry { + if (_self.poultry == null) { + return null; + } + + return $PoultryCopyWith<$Res>(_self.poultry!, (value) { + return _then(_self.copyWith(poultry: value)); + }); +}/// Create a copy of HatchingModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ChainCompanyCopyWith<$Res>? get chainCompany { + if (_self.chainCompany == null) { + return null; + } + + return $ChainCompanyCopyWith<$Res>(_self.chainCompany!, (value) { + return _then(_self.copyWith(chainCompany: value)); + }); +}/// Create a copy of HatchingModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$VetFarmCopyWith<$Res>? get vetFarm { + if (_self.vetFarm == null) { + return null; + } + + return $VetFarmCopyWith<$Res>(_self.vetFarm!, (value) { + return _then(_self.copyWith(vetFarm: value)); + }); +}/// Create a copy of HatchingModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ActiveKillCopyWith<$Res>? get activeKill { + if (_self.activeKill == null) { + return null; + } + + return $ActiveKillCopyWith<$Res>(_self.activeKill!, (value) { + return _then(_self.copyWith(activeKill: value)); + }); +}/// Create a copy of HatchingModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$KillingInfoCopyWith<$Res>? get killingInfo { + if (_self.killingInfo == null) { + return null; + } + + return $KillingInfoCopyWith<$Res>(_self.killingInfo!, (value) { + return _then(_self.copyWith(killingInfo: value)); + }); +}/// Create a copy of HatchingModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$FreeGovernmentalInfoCopyWith<$Res>? get freeGovernmentalInfo { + if (_self.freeGovernmentalInfo == null) { + return null; + } + + return $FreeGovernmentalInfoCopyWith<$Res>(_self.freeGovernmentalInfo!, (value) { + return _then(_self.copyWith(freeGovernmentalInfo: value)); + }); +}/// Create a copy of HatchingModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ReportInfoCopyWith<$Res>? get reportInfo { + if (_self.reportInfo == null) { + return null; + } + + return $ReportInfoCopyWith<$Res>(_self.reportInfo!, (value) { + return _then(_self.copyWith(reportInfo: value)); + }); +}/// Create a copy of HatchingModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$RegistrarCopyWith<$Res>? get registrar { + if (_self.registrar == null) { + return null; + } + + return $RegistrarCopyWith<$Res>(_self.registrar!, (value) { + return _then(_self.copyWith(registrar: value)); + }); +}/// Create a copy of HatchingModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$LastChangeCopyWith<$Res>? get lastChange { + if (_self.lastChange == null) { + return null; + } + + return $LastChangeCopyWith<$Res>(_self.lastChange!, (value) { + return _then(_self.copyWith(lastChange: value)); + }); +}/// Create a copy of HatchingModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$LatestHatchingChangeCopyWith<$Res>? get latestHatchingChange { + if (_self.latestHatchingChange == null) { + return null; + } + + return $LatestHatchingChangeCopyWith<$Res>(_self.latestHatchingChange!, (value) { + return _then(_self.copyWith(latestHatchingChange: value)); + }); +} +} + + +/// Adds pattern-matching-related methods to [HatchingModel]. +extension HatchingModelPatterns on HatchingModel { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _HatchingModel value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _HatchingModel() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _HatchingModel value) $default,){ +final _that = this; +switch (_that) { +case _HatchingModel(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _HatchingModel value)? $default,){ +final _that = this; +switch (_that) { +case _HatchingModel() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( int? id, Poultry? poultry, ChainCompany? chainCompany, num? age, dynamic inspectionLosses, VetFarm? vetFarm, ActiveKill? activeKill, KillingInfo? killingInfo, FreeGovernmentalInfo? freeGovernmentalInfo, ReportInfo? reportInfo, String? key, String? createDate, String? modifyDate, bool? trash, bool? hasChainCompany, int? poultryIdForeignKey, int? poultryHatchingIdKey, num? quantity, num? losses, num? leftOver, num? killedQuantity, num? extraKilledQuantity, num? governmentalKilledQuantity, num? governmentalQuantity, num? freeKilledQuantity, num? freeQuantity, num? chainKilledQuantity, num? chainKilledWeight, num? outProvinceKilledWeight, num? outProvinceKilledQuantity, num? exportKilledWeight, num? exportKilledQuantity, num? totalCommitment, String? commitmentType, num? totalCommitmentQuantity, num? totalFreeCommitmentQuantity, num? totalFreeCommitmentWeight, num? totalKilledWeight, num? totalAverageKilledWeight, num? requestLeftOver, num? hall, String? date, String? predicateDate, String? chickenBreed, num? period, String? allowHatching, String? state, bool? archive, bool? violation, String? message, Registrar? registrar, List? breed, num? cityNumber, String? cityName, num? provinceNumber, String? provinceName, LastChange? lastChange, num? chickenAge, num? nowAge, LatestHatchingChange? latestHatchingChange, String? violationReport, String? violationMessage, List? violationImage, String? violationReporter, String? violationReportDate, String? violationReportEditor, String? violationReportEditDate, num? totalLosses, num? directLosses, String? directLossesInputer, String? directLossesDate, String? directLossesEditor, String? directLossesLastEditDate, String? endPeriodLossesInputer, String? endPeriodLossesDate, String? endPeriodLossesEditor, String? endPeriodLossesLastEditDate, String? breedingUniqueId, String? licenceNumber, bool? temporaryTrash, bool? temporaryDeleted, String? firstDateInputArchive, String? secondDateInputArchive, String? inputArchiver, String? outputArchiveDate, String? outputArchiver, num? barDifferenceRequestWeight, num? barDifferenceRequestQuantity, String? healthCertificate, num? samasatDischargePercentage, String? personTypeName, String? interactTypeName, String? unionTypeName, String? certId, num? increaseQuantity, String? tenantFullname, String? tenantNationalCode, String? tenantMobile, String? tenantCity, bool? hasTenant, String? archiveDate, String? createdBy, String? modifiedBy)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _HatchingModel() when $default != null: +return $default(_that.id,_that.poultry,_that.chainCompany,_that.age,_that.inspectionLosses,_that.vetFarm,_that.activeKill,_that.killingInfo,_that.freeGovernmentalInfo,_that.reportInfo,_that.key,_that.createDate,_that.modifyDate,_that.trash,_that.hasChainCompany,_that.poultryIdForeignKey,_that.poultryHatchingIdKey,_that.quantity,_that.losses,_that.leftOver,_that.killedQuantity,_that.extraKilledQuantity,_that.governmentalKilledQuantity,_that.governmentalQuantity,_that.freeKilledQuantity,_that.freeQuantity,_that.chainKilledQuantity,_that.chainKilledWeight,_that.outProvinceKilledWeight,_that.outProvinceKilledQuantity,_that.exportKilledWeight,_that.exportKilledQuantity,_that.totalCommitment,_that.commitmentType,_that.totalCommitmentQuantity,_that.totalFreeCommitmentQuantity,_that.totalFreeCommitmentWeight,_that.totalKilledWeight,_that.totalAverageKilledWeight,_that.requestLeftOver,_that.hall,_that.date,_that.predicateDate,_that.chickenBreed,_that.period,_that.allowHatching,_that.state,_that.archive,_that.violation,_that.message,_that.registrar,_that.breed,_that.cityNumber,_that.cityName,_that.provinceNumber,_that.provinceName,_that.lastChange,_that.chickenAge,_that.nowAge,_that.latestHatchingChange,_that.violationReport,_that.violationMessage,_that.violationImage,_that.violationReporter,_that.violationReportDate,_that.violationReportEditor,_that.violationReportEditDate,_that.totalLosses,_that.directLosses,_that.directLossesInputer,_that.directLossesDate,_that.directLossesEditor,_that.directLossesLastEditDate,_that.endPeriodLossesInputer,_that.endPeriodLossesDate,_that.endPeriodLossesEditor,_that.endPeriodLossesLastEditDate,_that.breedingUniqueId,_that.licenceNumber,_that.temporaryTrash,_that.temporaryDeleted,_that.firstDateInputArchive,_that.secondDateInputArchive,_that.inputArchiver,_that.outputArchiveDate,_that.outputArchiver,_that.barDifferenceRequestWeight,_that.barDifferenceRequestQuantity,_that.healthCertificate,_that.samasatDischargePercentage,_that.personTypeName,_that.interactTypeName,_that.unionTypeName,_that.certId,_that.increaseQuantity,_that.tenantFullname,_that.tenantNationalCode,_that.tenantMobile,_that.tenantCity,_that.hasTenant,_that.archiveDate,_that.createdBy,_that.modifiedBy);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( int? id, Poultry? poultry, ChainCompany? chainCompany, num? age, dynamic inspectionLosses, VetFarm? vetFarm, ActiveKill? activeKill, KillingInfo? killingInfo, FreeGovernmentalInfo? freeGovernmentalInfo, ReportInfo? reportInfo, String? key, String? createDate, String? modifyDate, bool? trash, bool? hasChainCompany, int? poultryIdForeignKey, int? poultryHatchingIdKey, num? quantity, num? losses, num? leftOver, num? killedQuantity, num? extraKilledQuantity, num? governmentalKilledQuantity, num? governmentalQuantity, num? freeKilledQuantity, num? freeQuantity, num? chainKilledQuantity, num? chainKilledWeight, num? outProvinceKilledWeight, num? outProvinceKilledQuantity, num? exportKilledWeight, num? exportKilledQuantity, num? totalCommitment, String? commitmentType, num? totalCommitmentQuantity, num? totalFreeCommitmentQuantity, num? totalFreeCommitmentWeight, num? totalKilledWeight, num? totalAverageKilledWeight, num? requestLeftOver, num? hall, String? date, String? predicateDate, String? chickenBreed, num? period, String? allowHatching, String? state, bool? archive, bool? violation, String? message, Registrar? registrar, List? breed, num? cityNumber, String? cityName, num? provinceNumber, String? provinceName, LastChange? lastChange, num? chickenAge, num? nowAge, LatestHatchingChange? latestHatchingChange, String? violationReport, String? violationMessage, List? violationImage, String? violationReporter, String? violationReportDate, String? violationReportEditor, String? violationReportEditDate, num? totalLosses, num? directLosses, String? directLossesInputer, String? directLossesDate, String? directLossesEditor, String? directLossesLastEditDate, String? endPeriodLossesInputer, String? endPeriodLossesDate, String? endPeriodLossesEditor, String? endPeriodLossesLastEditDate, String? breedingUniqueId, String? licenceNumber, bool? temporaryTrash, bool? temporaryDeleted, String? firstDateInputArchive, String? secondDateInputArchive, String? inputArchiver, String? outputArchiveDate, String? outputArchiver, num? barDifferenceRequestWeight, num? barDifferenceRequestQuantity, String? healthCertificate, num? samasatDischargePercentage, String? personTypeName, String? interactTypeName, String? unionTypeName, String? certId, num? increaseQuantity, String? tenantFullname, String? tenantNationalCode, String? tenantMobile, String? tenantCity, bool? hasTenant, String? archiveDate, String? createdBy, String? modifiedBy) $default,) {final _that = this; +switch (_that) { +case _HatchingModel(): +return $default(_that.id,_that.poultry,_that.chainCompany,_that.age,_that.inspectionLosses,_that.vetFarm,_that.activeKill,_that.killingInfo,_that.freeGovernmentalInfo,_that.reportInfo,_that.key,_that.createDate,_that.modifyDate,_that.trash,_that.hasChainCompany,_that.poultryIdForeignKey,_that.poultryHatchingIdKey,_that.quantity,_that.losses,_that.leftOver,_that.killedQuantity,_that.extraKilledQuantity,_that.governmentalKilledQuantity,_that.governmentalQuantity,_that.freeKilledQuantity,_that.freeQuantity,_that.chainKilledQuantity,_that.chainKilledWeight,_that.outProvinceKilledWeight,_that.outProvinceKilledQuantity,_that.exportKilledWeight,_that.exportKilledQuantity,_that.totalCommitment,_that.commitmentType,_that.totalCommitmentQuantity,_that.totalFreeCommitmentQuantity,_that.totalFreeCommitmentWeight,_that.totalKilledWeight,_that.totalAverageKilledWeight,_that.requestLeftOver,_that.hall,_that.date,_that.predicateDate,_that.chickenBreed,_that.period,_that.allowHatching,_that.state,_that.archive,_that.violation,_that.message,_that.registrar,_that.breed,_that.cityNumber,_that.cityName,_that.provinceNumber,_that.provinceName,_that.lastChange,_that.chickenAge,_that.nowAge,_that.latestHatchingChange,_that.violationReport,_that.violationMessage,_that.violationImage,_that.violationReporter,_that.violationReportDate,_that.violationReportEditor,_that.violationReportEditDate,_that.totalLosses,_that.directLosses,_that.directLossesInputer,_that.directLossesDate,_that.directLossesEditor,_that.directLossesLastEditDate,_that.endPeriodLossesInputer,_that.endPeriodLossesDate,_that.endPeriodLossesEditor,_that.endPeriodLossesLastEditDate,_that.breedingUniqueId,_that.licenceNumber,_that.temporaryTrash,_that.temporaryDeleted,_that.firstDateInputArchive,_that.secondDateInputArchive,_that.inputArchiver,_that.outputArchiveDate,_that.outputArchiver,_that.barDifferenceRequestWeight,_that.barDifferenceRequestQuantity,_that.healthCertificate,_that.samasatDischargePercentage,_that.personTypeName,_that.interactTypeName,_that.unionTypeName,_that.certId,_that.increaseQuantity,_that.tenantFullname,_that.tenantNationalCode,_that.tenantMobile,_that.tenantCity,_that.hasTenant,_that.archiveDate,_that.createdBy,_that.modifiedBy);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( int? id, Poultry? poultry, ChainCompany? chainCompany, num? age, dynamic inspectionLosses, VetFarm? vetFarm, ActiveKill? activeKill, KillingInfo? killingInfo, FreeGovernmentalInfo? freeGovernmentalInfo, ReportInfo? reportInfo, String? key, String? createDate, String? modifyDate, bool? trash, bool? hasChainCompany, int? poultryIdForeignKey, int? poultryHatchingIdKey, num? quantity, num? losses, num? leftOver, num? killedQuantity, num? extraKilledQuantity, num? governmentalKilledQuantity, num? governmentalQuantity, num? freeKilledQuantity, num? freeQuantity, num? chainKilledQuantity, num? chainKilledWeight, num? outProvinceKilledWeight, num? outProvinceKilledQuantity, num? exportKilledWeight, num? exportKilledQuantity, num? totalCommitment, String? commitmentType, num? totalCommitmentQuantity, num? totalFreeCommitmentQuantity, num? totalFreeCommitmentWeight, num? totalKilledWeight, num? totalAverageKilledWeight, num? requestLeftOver, num? hall, String? date, String? predicateDate, String? chickenBreed, num? period, String? allowHatching, String? state, bool? archive, bool? violation, String? message, Registrar? registrar, List? breed, num? cityNumber, String? cityName, num? provinceNumber, String? provinceName, LastChange? lastChange, num? chickenAge, num? nowAge, LatestHatchingChange? latestHatchingChange, String? violationReport, String? violationMessage, List? violationImage, String? violationReporter, String? violationReportDate, String? violationReportEditor, String? violationReportEditDate, num? totalLosses, num? directLosses, String? directLossesInputer, String? directLossesDate, String? directLossesEditor, String? directLossesLastEditDate, String? endPeriodLossesInputer, String? endPeriodLossesDate, String? endPeriodLossesEditor, String? endPeriodLossesLastEditDate, String? breedingUniqueId, String? licenceNumber, bool? temporaryTrash, bool? temporaryDeleted, String? firstDateInputArchive, String? secondDateInputArchive, String? inputArchiver, String? outputArchiveDate, String? outputArchiver, num? barDifferenceRequestWeight, num? barDifferenceRequestQuantity, String? healthCertificate, num? samasatDischargePercentage, String? personTypeName, String? interactTypeName, String? unionTypeName, String? certId, num? increaseQuantity, String? tenantFullname, String? tenantNationalCode, String? tenantMobile, String? tenantCity, bool? hasTenant, String? archiveDate, String? createdBy, String? modifiedBy)? $default,) {final _that = this; +switch (_that) { +case _HatchingModel() when $default != null: +return $default(_that.id,_that.poultry,_that.chainCompany,_that.age,_that.inspectionLosses,_that.vetFarm,_that.activeKill,_that.killingInfo,_that.freeGovernmentalInfo,_that.reportInfo,_that.key,_that.createDate,_that.modifyDate,_that.trash,_that.hasChainCompany,_that.poultryIdForeignKey,_that.poultryHatchingIdKey,_that.quantity,_that.losses,_that.leftOver,_that.killedQuantity,_that.extraKilledQuantity,_that.governmentalKilledQuantity,_that.governmentalQuantity,_that.freeKilledQuantity,_that.freeQuantity,_that.chainKilledQuantity,_that.chainKilledWeight,_that.outProvinceKilledWeight,_that.outProvinceKilledQuantity,_that.exportKilledWeight,_that.exportKilledQuantity,_that.totalCommitment,_that.commitmentType,_that.totalCommitmentQuantity,_that.totalFreeCommitmentQuantity,_that.totalFreeCommitmentWeight,_that.totalKilledWeight,_that.totalAverageKilledWeight,_that.requestLeftOver,_that.hall,_that.date,_that.predicateDate,_that.chickenBreed,_that.period,_that.allowHatching,_that.state,_that.archive,_that.violation,_that.message,_that.registrar,_that.breed,_that.cityNumber,_that.cityName,_that.provinceNumber,_that.provinceName,_that.lastChange,_that.chickenAge,_that.nowAge,_that.latestHatchingChange,_that.violationReport,_that.violationMessage,_that.violationImage,_that.violationReporter,_that.violationReportDate,_that.violationReportEditor,_that.violationReportEditDate,_that.totalLosses,_that.directLosses,_that.directLossesInputer,_that.directLossesDate,_that.directLossesEditor,_that.directLossesLastEditDate,_that.endPeriodLossesInputer,_that.endPeriodLossesDate,_that.endPeriodLossesEditor,_that.endPeriodLossesLastEditDate,_that.breedingUniqueId,_that.licenceNumber,_that.temporaryTrash,_that.temporaryDeleted,_that.firstDateInputArchive,_that.secondDateInputArchive,_that.inputArchiver,_that.outputArchiveDate,_that.outputArchiver,_that.barDifferenceRequestWeight,_that.barDifferenceRequestQuantity,_that.healthCertificate,_that.samasatDischargePercentage,_that.personTypeName,_that.interactTypeName,_that.unionTypeName,_that.certId,_that.increaseQuantity,_that.tenantFullname,_that.tenantNationalCode,_that.tenantMobile,_that.tenantCity,_that.hasTenant,_that.archiveDate,_that.createdBy,_that.modifiedBy);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _HatchingModel implements HatchingModel { + const _HatchingModel({this.id, this.poultry, this.chainCompany, this.age, this.inspectionLosses, this.vetFarm, this.activeKill, this.killingInfo, this.freeGovernmentalInfo, this.reportInfo, this.key, this.createDate, this.modifyDate, this.trash, this.hasChainCompany, this.poultryIdForeignKey, this.poultryHatchingIdKey, this.quantity, this.losses, this.leftOver, this.killedQuantity, this.extraKilledQuantity, this.governmentalKilledQuantity, this.governmentalQuantity, this.freeKilledQuantity, this.freeQuantity, this.chainKilledQuantity, this.chainKilledWeight, this.outProvinceKilledWeight, this.outProvinceKilledQuantity, this.exportKilledWeight, this.exportKilledQuantity, this.totalCommitment, this.commitmentType, this.totalCommitmentQuantity, this.totalFreeCommitmentQuantity, this.totalFreeCommitmentWeight, this.totalKilledWeight, this.totalAverageKilledWeight, this.requestLeftOver, this.hall, this.date, this.predicateDate, this.chickenBreed, this.period, this.allowHatching, this.state, this.archive, this.violation, this.message, this.registrar, final List? breed, this.cityNumber, this.cityName, this.provinceNumber, this.provinceName, this.lastChange, this.chickenAge, this.nowAge, this.latestHatchingChange, this.violationReport, this.violationMessage, final List? violationImage, this.violationReporter, this.violationReportDate, this.violationReportEditor, this.violationReportEditDate, this.totalLosses, this.directLosses, this.directLossesInputer, this.directLossesDate, this.directLossesEditor, this.directLossesLastEditDate, this.endPeriodLossesInputer, this.endPeriodLossesDate, this.endPeriodLossesEditor, this.endPeriodLossesLastEditDate, this.breedingUniqueId, this.licenceNumber, this.temporaryTrash, this.temporaryDeleted, this.firstDateInputArchive, this.secondDateInputArchive, this.inputArchiver, this.outputArchiveDate, this.outputArchiver, this.barDifferenceRequestWeight, this.barDifferenceRequestQuantity, this.healthCertificate, this.samasatDischargePercentage, this.personTypeName, this.interactTypeName, this.unionTypeName, this.certId, this.increaseQuantity, this.tenantFullname, this.tenantNationalCode, this.tenantMobile, this.tenantCity, this.hasTenant, this.archiveDate, this.createdBy, this.modifiedBy}): _breed = breed,_violationImage = violationImage; + factory _HatchingModel.fromJson(Map json) => _$HatchingModelFromJson(json); + +@override final int? id; +@override final Poultry? poultry; +@override final ChainCompany? chainCompany; +@override final num? age; +@override final dynamic inspectionLosses; +@override final VetFarm? vetFarm; +@override final ActiveKill? activeKill; +@override final KillingInfo? killingInfo; +@override final FreeGovernmentalInfo? freeGovernmentalInfo; +@override final ReportInfo? reportInfo; +@override final String? key; +@override final String? createDate; +@override final String? modifyDate; +@override final bool? trash; +@override final bool? hasChainCompany; +@override final int? poultryIdForeignKey; +@override final int? poultryHatchingIdKey; +@override final num? quantity; +@override final num? losses; +@override final num? leftOver; +@override final num? killedQuantity; +@override final num? extraKilledQuantity; +@override final num? governmentalKilledQuantity; +@override final num? governmentalQuantity; +@override final num? freeKilledQuantity; +@override final num? freeQuantity; +@override final num? chainKilledQuantity; +@override final num? chainKilledWeight; +@override final num? outProvinceKilledWeight; +@override final num? outProvinceKilledQuantity; +@override final num? exportKilledWeight; +@override final num? exportKilledQuantity; +@override final num? totalCommitment; +@override final String? commitmentType; +@override final num? totalCommitmentQuantity; +@override final num? totalFreeCommitmentQuantity; +@override final num? totalFreeCommitmentWeight; +@override final num? totalKilledWeight; +@override final num? totalAverageKilledWeight; +@override final num? requestLeftOver; +@override final num? hall; +@override final String? date; +@override final String? predicateDate; +@override final String? chickenBreed; +@override final num? period; +@override final String? allowHatching; +@override final String? state; +@override final bool? archive; +@override final bool? violation; +@override final String? message; +@override final Registrar? registrar; + final List? _breed; +@override List? get breed { + final value = _breed; + if (value == null) return null; + if (_breed is EqualUnmodifiableListView) return _breed; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + +@override final num? cityNumber; +@override final String? cityName; +@override final num? provinceNumber; +@override final String? provinceName; +@override final LastChange? lastChange; +@override final num? chickenAge; +@override final num? nowAge; +@override final LatestHatchingChange? latestHatchingChange; +@override final String? violationReport; +@override final String? violationMessage; + final List? _violationImage; +@override List? get violationImage { + final value = _violationImage; + if (value == null) return null; + if (_violationImage is EqualUnmodifiableListView) return _violationImage; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + +@override final String? violationReporter; +@override final String? violationReportDate; +@override final String? violationReportEditor; +@override final String? violationReportEditDate; +@override final num? totalLosses; +@override final num? directLosses; +@override final String? directLossesInputer; +@override final String? directLossesDate; +@override final String? directLossesEditor; +@override final String? directLossesLastEditDate; +@override final String? endPeriodLossesInputer; +@override final String? endPeriodLossesDate; +@override final String? endPeriodLossesEditor; +@override final String? endPeriodLossesLastEditDate; +@override final String? breedingUniqueId; +@override final String? licenceNumber; +@override final bool? temporaryTrash; +@override final bool? temporaryDeleted; +@override final String? firstDateInputArchive; +@override final String? secondDateInputArchive; +@override final String? inputArchiver; +@override final String? outputArchiveDate; +@override final String? outputArchiver; +@override final num? barDifferenceRequestWeight; +@override final num? barDifferenceRequestQuantity; +@override final String? healthCertificate; +@override final num? samasatDischargePercentage; +@override final String? personTypeName; +@override final String? interactTypeName; +@override final String? unionTypeName; +@override final String? certId; +@override final num? increaseQuantity; +@override final String? tenantFullname; +@override final String? tenantNationalCode; +@override final String? tenantMobile; +@override final String? tenantCity; +@override final bool? hasTenant; +@override final String? archiveDate; +@override final String? createdBy; +@override final String? modifiedBy; + +/// Create a copy of HatchingModel +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$HatchingModelCopyWith<_HatchingModel> get copyWith => __$HatchingModelCopyWithImpl<_HatchingModel>(this, _$identity); + +@override +Map toJson() { + return _$HatchingModelToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _HatchingModel&&(identical(other.id, id) || other.id == id)&&(identical(other.poultry, poultry) || other.poultry == poultry)&&(identical(other.chainCompany, chainCompany) || other.chainCompany == chainCompany)&&(identical(other.age, age) || other.age == age)&&const DeepCollectionEquality().equals(other.inspectionLosses, inspectionLosses)&&(identical(other.vetFarm, vetFarm) || other.vetFarm == vetFarm)&&(identical(other.activeKill, activeKill) || other.activeKill == activeKill)&&(identical(other.killingInfo, killingInfo) || other.killingInfo == killingInfo)&&(identical(other.freeGovernmentalInfo, freeGovernmentalInfo) || other.freeGovernmentalInfo == freeGovernmentalInfo)&&(identical(other.reportInfo, reportInfo) || other.reportInfo == reportInfo)&&(identical(other.key, key) || other.key == key)&&(identical(other.createDate, createDate) || other.createDate == createDate)&&(identical(other.modifyDate, modifyDate) || other.modifyDate == modifyDate)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.hasChainCompany, hasChainCompany) || other.hasChainCompany == hasChainCompany)&&(identical(other.poultryIdForeignKey, poultryIdForeignKey) || other.poultryIdForeignKey == poultryIdForeignKey)&&(identical(other.poultryHatchingIdKey, poultryHatchingIdKey) || other.poultryHatchingIdKey == poultryHatchingIdKey)&&(identical(other.quantity, quantity) || other.quantity == quantity)&&(identical(other.losses, losses) || other.losses == losses)&&(identical(other.leftOver, leftOver) || other.leftOver == leftOver)&&(identical(other.killedQuantity, killedQuantity) || other.killedQuantity == killedQuantity)&&(identical(other.extraKilledQuantity, extraKilledQuantity) || other.extraKilledQuantity == extraKilledQuantity)&&(identical(other.governmentalKilledQuantity, governmentalKilledQuantity) || other.governmentalKilledQuantity == governmentalKilledQuantity)&&(identical(other.governmentalQuantity, governmentalQuantity) || other.governmentalQuantity == governmentalQuantity)&&(identical(other.freeKilledQuantity, freeKilledQuantity) || other.freeKilledQuantity == freeKilledQuantity)&&(identical(other.freeQuantity, freeQuantity) || other.freeQuantity == freeQuantity)&&(identical(other.chainKilledQuantity, chainKilledQuantity) || other.chainKilledQuantity == chainKilledQuantity)&&(identical(other.chainKilledWeight, chainKilledWeight) || other.chainKilledWeight == chainKilledWeight)&&(identical(other.outProvinceKilledWeight, outProvinceKilledWeight) || other.outProvinceKilledWeight == outProvinceKilledWeight)&&(identical(other.outProvinceKilledQuantity, outProvinceKilledQuantity) || other.outProvinceKilledQuantity == outProvinceKilledQuantity)&&(identical(other.exportKilledWeight, exportKilledWeight) || other.exportKilledWeight == exportKilledWeight)&&(identical(other.exportKilledQuantity, exportKilledQuantity) || other.exportKilledQuantity == exportKilledQuantity)&&(identical(other.totalCommitment, totalCommitment) || other.totalCommitment == totalCommitment)&&(identical(other.commitmentType, commitmentType) || other.commitmentType == commitmentType)&&(identical(other.totalCommitmentQuantity, totalCommitmentQuantity) || other.totalCommitmentQuantity == totalCommitmentQuantity)&&(identical(other.totalFreeCommitmentQuantity, totalFreeCommitmentQuantity) || other.totalFreeCommitmentQuantity == totalFreeCommitmentQuantity)&&(identical(other.totalFreeCommitmentWeight, totalFreeCommitmentWeight) || other.totalFreeCommitmentWeight == totalFreeCommitmentWeight)&&(identical(other.totalKilledWeight, totalKilledWeight) || other.totalKilledWeight == totalKilledWeight)&&(identical(other.totalAverageKilledWeight, totalAverageKilledWeight) || other.totalAverageKilledWeight == totalAverageKilledWeight)&&(identical(other.requestLeftOver, requestLeftOver) || other.requestLeftOver == requestLeftOver)&&(identical(other.hall, hall) || other.hall == hall)&&(identical(other.date, date) || other.date == date)&&(identical(other.predicateDate, predicateDate) || other.predicateDate == predicateDate)&&(identical(other.chickenBreed, chickenBreed) || other.chickenBreed == chickenBreed)&&(identical(other.period, period) || other.period == period)&&(identical(other.allowHatching, allowHatching) || other.allowHatching == allowHatching)&&(identical(other.state, state) || other.state == state)&&(identical(other.archive, archive) || other.archive == archive)&&(identical(other.violation, violation) || other.violation == violation)&&(identical(other.message, message) || other.message == message)&&(identical(other.registrar, registrar) || other.registrar == registrar)&&const DeepCollectionEquality().equals(other._breed, _breed)&&(identical(other.cityNumber, cityNumber) || other.cityNumber == cityNumber)&&(identical(other.cityName, cityName) || other.cityName == cityName)&&(identical(other.provinceNumber, provinceNumber) || other.provinceNumber == provinceNumber)&&(identical(other.provinceName, provinceName) || other.provinceName == provinceName)&&(identical(other.lastChange, lastChange) || other.lastChange == lastChange)&&(identical(other.chickenAge, chickenAge) || other.chickenAge == chickenAge)&&(identical(other.nowAge, nowAge) || other.nowAge == nowAge)&&(identical(other.latestHatchingChange, latestHatchingChange) || other.latestHatchingChange == latestHatchingChange)&&(identical(other.violationReport, violationReport) || other.violationReport == violationReport)&&(identical(other.violationMessage, violationMessage) || other.violationMessage == violationMessage)&&const DeepCollectionEquality().equals(other._violationImage, _violationImage)&&(identical(other.violationReporter, violationReporter) || other.violationReporter == violationReporter)&&(identical(other.violationReportDate, violationReportDate) || other.violationReportDate == violationReportDate)&&(identical(other.violationReportEditor, violationReportEditor) || other.violationReportEditor == violationReportEditor)&&(identical(other.violationReportEditDate, violationReportEditDate) || other.violationReportEditDate == violationReportEditDate)&&(identical(other.totalLosses, totalLosses) || other.totalLosses == totalLosses)&&(identical(other.directLosses, directLosses) || other.directLosses == directLosses)&&(identical(other.directLossesInputer, directLossesInputer) || other.directLossesInputer == directLossesInputer)&&(identical(other.directLossesDate, directLossesDate) || other.directLossesDate == directLossesDate)&&(identical(other.directLossesEditor, directLossesEditor) || other.directLossesEditor == directLossesEditor)&&(identical(other.directLossesLastEditDate, directLossesLastEditDate) || other.directLossesLastEditDate == directLossesLastEditDate)&&(identical(other.endPeriodLossesInputer, endPeriodLossesInputer) || other.endPeriodLossesInputer == endPeriodLossesInputer)&&(identical(other.endPeriodLossesDate, endPeriodLossesDate) || other.endPeriodLossesDate == endPeriodLossesDate)&&(identical(other.endPeriodLossesEditor, endPeriodLossesEditor) || other.endPeriodLossesEditor == endPeriodLossesEditor)&&(identical(other.endPeriodLossesLastEditDate, endPeriodLossesLastEditDate) || other.endPeriodLossesLastEditDate == endPeriodLossesLastEditDate)&&(identical(other.breedingUniqueId, breedingUniqueId) || other.breedingUniqueId == breedingUniqueId)&&(identical(other.licenceNumber, licenceNumber) || other.licenceNumber == licenceNumber)&&(identical(other.temporaryTrash, temporaryTrash) || other.temporaryTrash == temporaryTrash)&&(identical(other.temporaryDeleted, temporaryDeleted) || other.temporaryDeleted == temporaryDeleted)&&(identical(other.firstDateInputArchive, firstDateInputArchive) || other.firstDateInputArchive == firstDateInputArchive)&&(identical(other.secondDateInputArchive, secondDateInputArchive) || other.secondDateInputArchive == secondDateInputArchive)&&(identical(other.inputArchiver, inputArchiver) || other.inputArchiver == inputArchiver)&&(identical(other.outputArchiveDate, outputArchiveDate) || other.outputArchiveDate == outputArchiveDate)&&(identical(other.outputArchiver, outputArchiver) || other.outputArchiver == outputArchiver)&&(identical(other.barDifferenceRequestWeight, barDifferenceRequestWeight) || other.barDifferenceRequestWeight == barDifferenceRequestWeight)&&(identical(other.barDifferenceRequestQuantity, barDifferenceRequestQuantity) || other.barDifferenceRequestQuantity == barDifferenceRequestQuantity)&&(identical(other.healthCertificate, healthCertificate) || other.healthCertificate == healthCertificate)&&(identical(other.samasatDischargePercentage, samasatDischargePercentage) || other.samasatDischargePercentage == samasatDischargePercentage)&&(identical(other.personTypeName, personTypeName) || other.personTypeName == personTypeName)&&(identical(other.interactTypeName, interactTypeName) || other.interactTypeName == interactTypeName)&&(identical(other.unionTypeName, unionTypeName) || other.unionTypeName == unionTypeName)&&(identical(other.certId, certId) || other.certId == certId)&&(identical(other.increaseQuantity, increaseQuantity) || other.increaseQuantity == increaseQuantity)&&(identical(other.tenantFullname, tenantFullname) || other.tenantFullname == tenantFullname)&&(identical(other.tenantNationalCode, tenantNationalCode) || other.tenantNationalCode == tenantNationalCode)&&(identical(other.tenantMobile, tenantMobile) || other.tenantMobile == tenantMobile)&&(identical(other.tenantCity, tenantCity) || other.tenantCity == tenantCity)&&(identical(other.hasTenant, hasTenant) || other.hasTenant == hasTenant)&&(identical(other.archiveDate, archiveDate) || other.archiveDate == archiveDate)&&(identical(other.createdBy, createdBy) || other.createdBy == createdBy)&&(identical(other.modifiedBy, modifiedBy) || other.modifiedBy == modifiedBy)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,id,poultry,chainCompany,age,const DeepCollectionEquality().hash(inspectionLosses),vetFarm,activeKill,killingInfo,freeGovernmentalInfo,reportInfo,key,createDate,modifyDate,trash,hasChainCompany,poultryIdForeignKey,poultryHatchingIdKey,quantity,losses,leftOver,killedQuantity,extraKilledQuantity,governmentalKilledQuantity,governmentalQuantity,freeKilledQuantity,freeQuantity,chainKilledQuantity,chainKilledWeight,outProvinceKilledWeight,outProvinceKilledQuantity,exportKilledWeight,exportKilledQuantity,totalCommitment,commitmentType,totalCommitmentQuantity,totalFreeCommitmentQuantity,totalFreeCommitmentWeight,totalKilledWeight,totalAverageKilledWeight,requestLeftOver,hall,date,predicateDate,chickenBreed,period,allowHatching,state,archive,violation,message,registrar,const DeepCollectionEquality().hash(_breed),cityNumber,cityName,provinceNumber,provinceName,lastChange,chickenAge,nowAge,latestHatchingChange,violationReport,violationMessage,const DeepCollectionEquality().hash(_violationImage),violationReporter,violationReportDate,violationReportEditor,violationReportEditDate,totalLosses,directLosses,directLossesInputer,directLossesDate,directLossesEditor,directLossesLastEditDate,endPeriodLossesInputer,endPeriodLossesDate,endPeriodLossesEditor,endPeriodLossesLastEditDate,breedingUniqueId,licenceNumber,temporaryTrash,temporaryDeleted,firstDateInputArchive,secondDateInputArchive,inputArchiver,outputArchiveDate,outputArchiver,barDifferenceRequestWeight,barDifferenceRequestQuantity,healthCertificate,samasatDischargePercentage,personTypeName,interactTypeName,unionTypeName,certId,increaseQuantity,tenantFullname,tenantNationalCode,tenantMobile,tenantCity,hasTenant,archiveDate,createdBy,modifiedBy]); + +@override +String toString() { + return 'HatchingModel(id: $id, poultry: $poultry, chainCompany: $chainCompany, age: $age, inspectionLosses: $inspectionLosses, vetFarm: $vetFarm, activeKill: $activeKill, killingInfo: $killingInfo, freeGovernmentalInfo: $freeGovernmentalInfo, reportInfo: $reportInfo, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, hasChainCompany: $hasChainCompany, poultryIdForeignKey: $poultryIdForeignKey, poultryHatchingIdKey: $poultryHatchingIdKey, quantity: $quantity, losses: $losses, leftOver: $leftOver, killedQuantity: $killedQuantity, extraKilledQuantity: $extraKilledQuantity, governmentalKilledQuantity: $governmentalKilledQuantity, governmentalQuantity: $governmentalQuantity, freeKilledQuantity: $freeKilledQuantity, freeQuantity: $freeQuantity, chainKilledQuantity: $chainKilledQuantity, chainKilledWeight: $chainKilledWeight, outProvinceKilledWeight: $outProvinceKilledWeight, outProvinceKilledQuantity: $outProvinceKilledQuantity, exportKilledWeight: $exportKilledWeight, exportKilledQuantity: $exportKilledQuantity, totalCommitment: $totalCommitment, commitmentType: $commitmentType, totalCommitmentQuantity: $totalCommitmentQuantity, totalFreeCommitmentQuantity: $totalFreeCommitmentQuantity, totalFreeCommitmentWeight: $totalFreeCommitmentWeight, totalKilledWeight: $totalKilledWeight, totalAverageKilledWeight: $totalAverageKilledWeight, requestLeftOver: $requestLeftOver, hall: $hall, date: $date, predicateDate: $predicateDate, chickenBreed: $chickenBreed, period: $period, allowHatching: $allowHatching, state: $state, archive: $archive, violation: $violation, message: $message, registrar: $registrar, breed: $breed, cityNumber: $cityNumber, cityName: $cityName, provinceNumber: $provinceNumber, provinceName: $provinceName, lastChange: $lastChange, chickenAge: $chickenAge, nowAge: $nowAge, latestHatchingChange: $latestHatchingChange, violationReport: $violationReport, violationMessage: $violationMessage, violationImage: $violationImage, violationReporter: $violationReporter, violationReportDate: $violationReportDate, violationReportEditor: $violationReportEditor, violationReportEditDate: $violationReportEditDate, totalLosses: $totalLosses, directLosses: $directLosses, directLossesInputer: $directLossesInputer, directLossesDate: $directLossesDate, directLossesEditor: $directLossesEditor, directLossesLastEditDate: $directLossesLastEditDate, endPeriodLossesInputer: $endPeriodLossesInputer, endPeriodLossesDate: $endPeriodLossesDate, endPeriodLossesEditor: $endPeriodLossesEditor, endPeriodLossesLastEditDate: $endPeriodLossesLastEditDate, breedingUniqueId: $breedingUniqueId, licenceNumber: $licenceNumber, temporaryTrash: $temporaryTrash, temporaryDeleted: $temporaryDeleted, firstDateInputArchive: $firstDateInputArchive, secondDateInputArchive: $secondDateInputArchive, inputArchiver: $inputArchiver, outputArchiveDate: $outputArchiveDate, outputArchiver: $outputArchiver, barDifferenceRequestWeight: $barDifferenceRequestWeight, barDifferenceRequestQuantity: $barDifferenceRequestQuantity, healthCertificate: $healthCertificate, samasatDischargePercentage: $samasatDischargePercentage, personTypeName: $personTypeName, interactTypeName: $interactTypeName, unionTypeName: $unionTypeName, certId: $certId, increaseQuantity: $increaseQuantity, tenantFullname: $tenantFullname, tenantNationalCode: $tenantNationalCode, tenantMobile: $tenantMobile, tenantCity: $tenantCity, hasTenant: $hasTenant, archiveDate: $archiveDate, createdBy: $createdBy, modifiedBy: $modifiedBy)'; +} + + +} + +/// @nodoc +abstract mixin class _$HatchingModelCopyWith<$Res> implements $HatchingModelCopyWith<$Res> { + factory _$HatchingModelCopyWith(_HatchingModel value, $Res Function(_HatchingModel) _then) = __$HatchingModelCopyWithImpl; +@override @useResult +$Res call({ + int? id, Poultry? poultry, ChainCompany? chainCompany, num? age, dynamic inspectionLosses, VetFarm? vetFarm, ActiveKill? activeKill, KillingInfo? killingInfo, FreeGovernmentalInfo? freeGovernmentalInfo, ReportInfo? reportInfo, String? key, String? createDate, String? modifyDate, bool? trash, bool? hasChainCompany, int? poultryIdForeignKey, int? poultryHatchingIdKey, num? quantity, num? losses, num? leftOver, num? killedQuantity, num? extraKilledQuantity, num? governmentalKilledQuantity, num? governmentalQuantity, num? freeKilledQuantity, num? freeQuantity, num? chainKilledQuantity, num? chainKilledWeight, num? outProvinceKilledWeight, num? outProvinceKilledQuantity, num? exportKilledWeight, num? exportKilledQuantity, num? totalCommitment, String? commitmentType, num? totalCommitmentQuantity, num? totalFreeCommitmentQuantity, num? totalFreeCommitmentWeight, num? totalKilledWeight, num? totalAverageKilledWeight, num? requestLeftOver, num? hall, String? date, String? predicateDate, String? chickenBreed, num? period, String? allowHatching, String? state, bool? archive, bool? violation, String? message, Registrar? registrar, List? breed, num? cityNumber, String? cityName, num? provinceNumber, String? provinceName, LastChange? lastChange, num? chickenAge, num? nowAge, LatestHatchingChange? latestHatchingChange, String? violationReport, String? violationMessage, List? violationImage, String? violationReporter, String? violationReportDate, String? violationReportEditor, String? violationReportEditDate, num? totalLosses, num? directLosses, String? directLossesInputer, String? directLossesDate, String? directLossesEditor, String? directLossesLastEditDate, String? endPeriodLossesInputer, String? endPeriodLossesDate, String? endPeriodLossesEditor, String? endPeriodLossesLastEditDate, String? breedingUniqueId, String? licenceNumber, bool? temporaryTrash, bool? temporaryDeleted, String? firstDateInputArchive, String? secondDateInputArchive, String? inputArchiver, String? outputArchiveDate, String? outputArchiver, num? barDifferenceRequestWeight, num? barDifferenceRequestQuantity, String? healthCertificate, num? samasatDischargePercentage, String? personTypeName, String? interactTypeName, String? unionTypeName, String? certId, num? increaseQuantity, String? tenantFullname, String? tenantNationalCode, String? tenantMobile, String? tenantCity, bool? hasTenant, String? archiveDate, String? createdBy, String? modifiedBy +}); + + +@override $PoultryCopyWith<$Res>? get poultry;@override $ChainCompanyCopyWith<$Res>? get chainCompany;@override $VetFarmCopyWith<$Res>? get vetFarm;@override $ActiveKillCopyWith<$Res>? get activeKill;@override $KillingInfoCopyWith<$Res>? get killingInfo;@override $FreeGovernmentalInfoCopyWith<$Res>? get freeGovernmentalInfo;@override $ReportInfoCopyWith<$Res>? get reportInfo;@override $RegistrarCopyWith<$Res>? get registrar;@override $LastChangeCopyWith<$Res>? get lastChange;@override $LatestHatchingChangeCopyWith<$Res>? get latestHatchingChange; + +} +/// @nodoc +class __$HatchingModelCopyWithImpl<$Res> + implements _$HatchingModelCopyWith<$Res> { + __$HatchingModelCopyWithImpl(this._self, this._then); + + final _HatchingModel _self; + final $Res Function(_HatchingModel) _then; + +/// Create a copy of HatchingModel +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? poultry = freezed,Object? chainCompany = freezed,Object? age = freezed,Object? inspectionLosses = freezed,Object? vetFarm = freezed,Object? activeKill = freezed,Object? killingInfo = freezed,Object? freeGovernmentalInfo = freezed,Object? reportInfo = freezed,Object? key = freezed,Object? createDate = freezed,Object? modifyDate = freezed,Object? trash = freezed,Object? hasChainCompany = freezed,Object? poultryIdForeignKey = freezed,Object? poultryHatchingIdKey = freezed,Object? quantity = freezed,Object? losses = freezed,Object? leftOver = freezed,Object? killedQuantity = freezed,Object? extraKilledQuantity = freezed,Object? governmentalKilledQuantity = freezed,Object? governmentalQuantity = freezed,Object? freeKilledQuantity = freezed,Object? freeQuantity = freezed,Object? chainKilledQuantity = freezed,Object? chainKilledWeight = freezed,Object? outProvinceKilledWeight = freezed,Object? outProvinceKilledQuantity = freezed,Object? exportKilledWeight = freezed,Object? exportKilledQuantity = freezed,Object? totalCommitment = freezed,Object? commitmentType = freezed,Object? totalCommitmentQuantity = freezed,Object? totalFreeCommitmentQuantity = freezed,Object? totalFreeCommitmentWeight = freezed,Object? totalKilledWeight = freezed,Object? totalAverageKilledWeight = freezed,Object? requestLeftOver = freezed,Object? hall = freezed,Object? date = freezed,Object? predicateDate = freezed,Object? chickenBreed = freezed,Object? period = freezed,Object? allowHatching = freezed,Object? state = freezed,Object? archive = freezed,Object? violation = freezed,Object? message = freezed,Object? registrar = freezed,Object? breed = freezed,Object? cityNumber = freezed,Object? cityName = freezed,Object? provinceNumber = freezed,Object? provinceName = freezed,Object? lastChange = freezed,Object? chickenAge = freezed,Object? nowAge = freezed,Object? latestHatchingChange = freezed,Object? violationReport = freezed,Object? violationMessage = freezed,Object? violationImage = freezed,Object? violationReporter = freezed,Object? violationReportDate = freezed,Object? violationReportEditor = freezed,Object? violationReportEditDate = freezed,Object? totalLosses = freezed,Object? directLosses = freezed,Object? directLossesInputer = freezed,Object? directLossesDate = freezed,Object? directLossesEditor = freezed,Object? directLossesLastEditDate = freezed,Object? endPeriodLossesInputer = freezed,Object? endPeriodLossesDate = freezed,Object? endPeriodLossesEditor = freezed,Object? endPeriodLossesLastEditDate = freezed,Object? breedingUniqueId = freezed,Object? licenceNumber = freezed,Object? temporaryTrash = freezed,Object? temporaryDeleted = freezed,Object? firstDateInputArchive = freezed,Object? secondDateInputArchive = freezed,Object? inputArchiver = freezed,Object? outputArchiveDate = freezed,Object? outputArchiver = freezed,Object? barDifferenceRequestWeight = freezed,Object? barDifferenceRequestQuantity = freezed,Object? healthCertificate = freezed,Object? samasatDischargePercentage = freezed,Object? personTypeName = freezed,Object? interactTypeName = freezed,Object? unionTypeName = freezed,Object? certId = freezed,Object? increaseQuantity = freezed,Object? tenantFullname = freezed,Object? tenantNationalCode = freezed,Object? tenantMobile = freezed,Object? tenantCity = freezed,Object? hasTenant = freezed,Object? archiveDate = freezed,Object? createdBy = freezed,Object? modifiedBy = freezed,}) { + return _then(_HatchingModel( +id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable +as int?,poultry: freezed == poultry ? _self.poultry : poultry // ignore: cast_nullable_to_non_nullable +as Poultry?,chainCompany: freezed == chainCompany ? _self.chainCompany : chainCompany // ignore: cast_nullable_to_non_nullable +as ChainCompany?,age: freezed == age ? _self.age : age // ignore: cast_nullable_to_non_nullable +as num?,inspectionLosses: freezed == inspectionLosses ? _self.inspectionLosses : inspectionLosses // ignore: cast_nullable_to_non_nullable +as dynamic,vetFarm: freezed == vetFarm ? _self.vetFarm : vetFarm // ignore: cast_nullable_to_non_nullable +as VetFarm?,activeKill: freezed == activeKill ? _self.activeKill : activeKill // ignore: cast_nullable_to_non_nullable +as ActiveKill?,killingInfo: freezed == killingInfo ? _self.killingInfo : killingInfo // ignore: cast_nullable_to_non_nullable +as KillingInfo?,freeGovernmentalInfo: freezed == freeGovernmentalInfo ? _self.freeGovernmentalInfo : freeGovernmentalInfo // ignore: cast_nullable_to_non_nullable +as FreeGovernmentalInfo?,reportInfo: freezed == reportInfo ? _self.reportInfo : reportInfo // ignore: cast_nullable_to_non_nullable +as ReportInfo?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,createDate: freezed == createDate ? _self.createDate : createDate // ignore: cast_nullable_to_non_nullable +as String?,modifyDate: freezed == modifyDate ? _self.modifyDate : modifyDate // ignore: cast_nullable_to_non_nullable +as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable +as bool?,hasChainCompany: freezed == hasChainCompany ? _self.hasChainCompany : hasChainCompany // ignore: cast_nullable_to_non_nullable +as bool?,poultryIdForeignKey: freezed == poultryIdForeignKey ? _self.poultryIdForeignKey : poultryIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,poultryHatchingIdKey: freezed == poultryHatchingIdKey ? _self.poultryHatchingIdKey : poultryHatchingIdKey // ignore: cast_nullable_to_non_nullable +as int?,quantity: freezed == quantity ? _self.quantity : quantity // ignore: cast_nullable_to_non_nullable +as num?,losses: freezed == losses ? _self.losses : losses // ignore: cast_nullable_to_non_nullable +as num?,leftOver: freezed == leftOver ? _self.leftOver : leftOver // ignore: cast_nullable_to_non_nullable +as num?,killedQuantity: freezed == killedQuantity ? _self.killedQuantity : killedQuantity // ignore: cast_nullable_to_non_nullable +as num?,extraKilledQuantity: freezed == extraKilledQuantity ? _self.extraKilledQuantity : extraKilledQuantity // ignore: cast_nullable_to_non_nullable +as num?,governmentalKilledQuantity: freezed == governmentalKilledQuantity ? _self.governmentalKilledQuantity : governmentalKilledQuantity // ignore: cast_nullable_to_non_nullable +as num?,governmentalQuantity: freezed == governmentalQuantity ? _self.governmentalQuantity : governmentalQuantity // ignore: cast_nullable_to_non_nullable +as num?,freeKilledQuantity: freezed == freeKilledQuantity ? _self.freeKilledQuantity : freeKilledQuantity // ignore: cast_nullable_to_non_nullable +as num?,freeQuantity: freezed == freeQuantity ? _self.freeQuantity : freeQuantity // ignore: cast_nullable_to_non_nullable +as num?,chainKilledQuantity: freezed == chainKilledQuantity ? _self.chainKilledQuantity : chainKilledQuantity // ignore: cast_nullable_to_non_nullable +as num?,chainKilledWeight: freezed == chainKilledWeight ? _self.chainKilledWeight : chainKilledWeight // ignore: cast_nullable_to_non_nullable +as num?,outProvinceKilledWeight: freezed == outProvinceKilledWeight ? _self.outProvinceKilledWeight : outProvinceKilledWeight // ignore: cast_nullable_to_non_nullable +as num?,outProvinceKilledQuantity: freezed == outProvinceKilledQuantity ? _self.outProvinceKilledQuantity : outProvinceKilledQuantity // ignore: cast_nullable_to_non_nullable +as num?,exportKilledWeight: freezed == exportKilledWeight ? _self.exportKilledWeight : exportKilledWeight // ignore: cast_nullable_to_non_nullable +as num?,exportKilledQuantity: freezed == exportKilledQuantity ? _self.exportKilledQuantity : exportKilledQuantity // ignore: cast_nullable_to_non_nullable +as num?,totalCommitment: freezed == totalCommitment ? _self.totalCommitment : totalCommitment // ignore: cast_nullable_to_non_nullable +as num?,commitmentType: freezed == commitmentType ? _self.commitmentType : commitmentType // ignore: cast_nullable_to_non_nullable +as String?,totalCommitmentQuantity: freezed == totalCommitmentQuantity ? _self.totalCommitmentQuantity : totalCommitmentQuantity // ignore: cast_nullable_to_non_nullable +as num?,totalFreeCommitmentQuantity: freezed == totalFreeCommitmentQuantity ? _self.totalFreeCommitmentQuantity : totalFreeCommitmentQuantity // ignore: cast_nullable_to_non_nullable +as num?,totalFreeCommitmentWeight: freezed == totalFreeCommitmentWeight ? _self.totalFreeCommitmentWeight : totalFreeCommitmentWeight // ignore: cast_nullable_to_non_nullable +as num?,totalKilledWeight: freezed == totalKilledWeight ? _self.totalKilledWeight : totalKilledWeight // ignore: cast_nullable_to_non_nullable +as num?,totalAverageKilledWeight: freezed == totalAverageKilledWeight ? _self.totalAverageKilledWeight : totalAverageKilledWeight // ignore: cast_nullable_to_non_nullable +as num?,requestLeftOver: freezed == requestLeftOver ? _self.requestLeftOver : requestLeftOver // ignore: cast_nullable_to_non_nullable +as num?,hall: freezed == hall ? _self.hall : hall // ignore: cast_nullable_to_non_nullable +as num?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?,predicateDate: freezed == predicateDate ? _self.predicateDate : predicateDate // ignore: cast_nullable_to_non_nullable +as String?,chickenBreed: freezed == chickenBreed ? _self.chickenBreed : chickenBreed // ignore: cast_nullable_to_non_nullable +as String?,period: freezed == period ? _self.period : period // ignore: cast_nullable_to_non_nullable +as num?,allowHatching: freezed == allowHatching ? _self.allowHatching : allowHatching // ignore: cast_nullable_to_non_nullable +as String?,state: freezed == state ? _self.state : state // ignore: cast_nullable_to_non_nullable +as String?,archive: freezed == archive ? _self.archive : archive // ignore: cast_nullable_to_non_nullable +as bool?,violation: freezed == violation ? _self.violation : violation // ignore: cast_nullable_to_non_nullable +as bool?,message: freezed == message ? _self.message : message // ignore: cast_nullable_to_non_nullable +as String?,registrar: freezed == registrar ? _self.registrar : registrar // ignore: cast_nullable_to_non_nullable +as Registrar?,breed: freezed == breed ? _self._breed : breed // ignore: cast_nullable_to_non_nullable +as List?,cityNumber: freezed == cityNumber ? _self.cityNumber : cityNumber // ignore: cast_nullable_to_non_nullable +as num?,cityName: freezed == cityName ? _self.cityName : cityName // ignore: cast_nullable_to_non_nullable +as String?,provinceNumber: freezed == provinceNumber ? _self.provinceNumber : provinceNumber // ignore: cast_nullable_to_non_nullable +as num?,provinceName: freezed == provinceName ? _self.provinceName : provinceName // ignore: cast_nullable_to_non_nullable +as String?,lastChange: freezed == lastChange ? _self.lastChange : lastChange // ignore: cast_nullable_to_non_nullable +as LastChange?,chickenAge: freezed == chickenAge ? _self.chickenAge : chickenAge // ignore: cast_nullable_to_non_nullable +as num?,nowAge: freezed == nowAge ? _self.nowAge : nowAge // ignore: cast_nullable_to_non_nullable +as num?,latestHatchingChange: freezed == latestHatchingChange ? _self.latestHatchingChange : latestHatchingChange // ignore: cast_nullable_to_non_nullable +as LatestHatchingChange?,violationReport: freezed == violationReport ? _self.violationReport : violationReport // ignore: cast_nullable_to_non_nullable +as String?,violationMessage: freezed == violationMessage ? _self.violationMessage : violationMessage // ignore: cast_nullable_to_non_nullable +as String?,violationImage: freezed == violationImage ? _self._violationImage : violationImage // ignore: cast_nullable_to_non_nullable +as List?,violationReporter: freezed == violationReporter ? _self.violationReporter : violationReporter // ignore: cast_nullable_to_non_nullable +as String?,violationReportDate: freezed == violationReportDate ? _self.violationReportDate : violationReportDate // ignore: cast_nullable_to_non_nullable +as String?,violationReportEditor: freezed == violationReportEditor ? _self.violationReportEditor : violationReportEditor // ignore: cast_nullable_to_non_nullable +as String?,violationReportEditDate: freezed == violationReportEditDate ? _self.violationReportEditDate : violationReportEditDate // ignore: cast_nullable_to_non_nullable +as String?,totalLosses: freezed == totalLosses ? _self.totalLosses : totalLosses // ignore: cast_nullable_to_non_nullable +as num?,directLosses: freezed == directLosses ? _self.directLosses : directLosses // ignore: cast_nullable_to_non_nullable +as num?,directLossesInputer: freezed == directLossesInputer ? _self.directLossesInputer : directLossesInputer // ignore: cast_nullable_to_non_nullable +as String?,directLossesDate: freezed == directLossesDate ? _self.directLossesDate : directLossesDate // ignore: cast_nullable_to_non_nullable +as String?,directLossesEditor: freezed == directLossesEditor ? _self.directLossesEditor : directLossesEditor // ignore: cast_nullable_to_non_nullable +as String?,directLossesLastEditDate: freezed == directLossesLastEditDate ? _self.directLossesLastEditDate : directLossesLastEditDate // ignore: cast_nullable_to_non_nullable +as String?,endPeriodLossesInputer: freezed == endPeriodLossesInputer ? _self.endPeriodLossesInputer : endPeriodLossesInputer // ignore: cast_nullable_to_non_nullable +as String?,endPeriodLossesDate: freezed == endPeriodLossesDate ? _self.endPeriodLossesDate : endPeriodLossesDate // ignore: cast_nullable_to_non_nullable +as String?,endPeriodLossesEditor: freezed == endPeriodLossesEditor ? _self.endPeriodLossesEditor : endPeriodLossesEditor // ignore: cast_nullable_to_non_nullable +as String?,endPeriodLossesLastEditDate: freezed == endPeriodLossesLastEditDate ? _self.endPeriodLossesLastEditDate : endPeriodLossesLastEditDate // ignore: cast_nullable_to_non_nullable +as String?,breedingUniqueId: freezed == breedingUniqueId ? _self.breedingUniqueId : breedingUniqueId // ignore: cast_nullable_to_non_nullable +as String?,licenceNumber: freezed == licenceNumber ? _self.licenceNumber : licenceNumber // ignore: cast_nullable_to_non_nullable +as String?,temporaryTrash: freezed == temporaryTrash ? _self.temporaryTrash : temporaryTrash // ignore: cast_nullable_to_non_nullable +as bool?,temporaryDeleted: freezed == temporaryDeleted ? _self.temporaryDeleted : temporaryDeleted // ignore: cast_nullable_to_non_nullable +as bool?,firstDateInputArchive: freezed == firstDateInputArchive ? _self.firstDateInputArchive : firstDateInputArchive // ignore: cast_nullable_to_non_nullable +as String?,secondDateInputArchive: freezed == secondDateInputArchive ? _self.secondDateInputArchive : secondDateInputArchive // ignore: cast_nullable_to_non_nullable +as String?,inputArchiver: freezed == inputArchiver ? _self.inputArchiver : inputArchiver // ignore: cast_nullable_to_non_nullable +as String?,outputArchiveDate: freezed == outputArchiveDate ? _self.outputArchiveDate : outputArchiveDate // ignore: cast_nullable_to_non_nullable +as String?,outputArchiver: freezed == outputArchiver ? _self.outputArchiver : outputArchiver // ignore: cast_nullable_to_non_nullable +as String?,barDifferenceRequestWeight: freezed == barDifferenceRequestWeight ? _self.barDifferenceRequestWeight : barDifferenceRequestWeight // ignore: cast_nullable_to_non_nullable +as num?,barDifferenceRequestQuantity: freezed == barDifferenceRequestQuantity ? _self.barDifferenceRequestQuantity : barDifferenceRequestQuantity // ignore: cast_nullable_to_non_nullable +as num?,healthCertificate: freezed == healthCertificate ? _self.healthCertificate : healthCertificate // ignore: cast_nullable_to_non_nullable +as String?,samasatDischargePercentage: freezed == samasatDischargePercentage ? _self.samasatDischargePercentage : samasatDischargePercentage // ignore: cast_nullable_to_non_nullable +as num?,personTypeName: freezed == personTypeName ? _self.personTypeName : personTypeName // ignore: cast_nullable_to_non_nullable +as String?,interactTypeName: freezed == interactTypeName ? _self.interactTypeName : interactTypeName // ignore: cast_nullable_to_non_nullable +as String?,unionTypeName: freezed == unionTypeName ? _self.unionTypeName : unionTypeName // ignore: cast_nullable_to_non_nullable +as String?,certId: freezed == certId ? _self.certId : certId // ignore: cast_nullable_to_non_nullable +as String?,increaseQuantity: freezed == increaseQuantity ? _self.increaseQuantity : increaseQuantity // ignore: cast_nullable_to_non_nullable +as num?,tenantFullname: freezed == tenantFullname ? _self.tenantFullname : tenantFullname // ignore: cast_nullable_to_non_nullable +as String?,tenantNationalCode: freezed == tenantNationalCode ? _self.tenantNationalCode : tenantNationalCode // ignore: cast_nullable_to_non_nullable +as String?,tenantMobile: freezed == tenantMobile ? _self.tenantMobile : tenantMobile // ignore: cast_nullable_to_non_nullable +as String?,tenantCity: freezed == tenantCity ? _self.tenantCity : tenantCity // ignore: cast_nullable_to_non_nullable +as String?,hasTenant: freezed == hasTenant ? _self.hasTenant : hasTenant // ignore: cast_nullable_to_non_nullable +as bool?,archiveDate: freezed == archiveDate ? _self.archiveDate : archiveDate // ignore: cast_nullable_to_non_nullable +as String?,createdBy: freezed == createdBy ? _self.createdBy : createdBy // ignore: cast_nullable_to_non_nullable +as String?,modifiedBy: freezed == modifiedBy ? _self.modifiedBy : modifiedBy // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +/// Create a copy of HatchingModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$PoultryCopyWith<$Res>? get poultry { + if (_self.poultry == null) { + return null; + } + + return $PoultryCopyWith<$Res>(_self.poultry!, (value) { + return _then(_self.copyWith(poultry: value)); + }); +}/// Create a copy of HatchingModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ChainCompanyCopyWith<$Res>? get chainCompany { + if (_self.chainCompany == null) { + return null; + } + + return $ChainCompanyCopyWith<$Res>(_self.chainCompany!, (value) { + return _then(_self.copyWith(chainCompany: value)); + }); +}/// Create a copy of HatchingModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$VetFarmCopyWith<$Res>? get vetFarm { + if (_self.vetFarm == null) { + return null; + } + + return $VetFarmCopyWith<$Res>(_self.vetFarm!, (value) { + return _then(_self.copyWith(vetFarm: value)); + }); +}/// Create a copy of HatchingModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ActiveKillCopyWith<$Res>? get activeKill { + if (_self.activeKill == null) { + return null; + } + + return $ActiveKillCopyWith<$Res>(_self.activeKill!, (value) { + return _then(_self.copyWith(activeKill: value)); + }); +}/// Create a copy of HatchingModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$KillingInfoCopyWith<$Res>? get killingInfo { + if (_self.killingInfo == null) { + return null; + } + + return $KillingInfoCopyWith<$Res>(_self.killingInfo!, (value) { + return _then(_self.copyWith(killingInfo: value)); + }); +}/// Create a copy of HatchingModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$FreeGovernmentalInfoCopyWith<$Res>? get freeGovernmentalInfo { + if (_self.freeGovernmentalInfo == null) { + return null; + } + + return $FreeGovernmentalInfoCopyWith<$Res>(_self.freeGovernmentalInfo!, (value) { + return _then(_self.copyWith(freeGovernmentalInfo: value)); + }); +}/// Create a copy of HatchingModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ReportInfoCopyWith<$Res>? get reportInfo { + if (_self.reportInfo == null) { + return null; + } + + return $ReportInfoCopyWith<$Res>(_self.reportInfo!, (value) { + return _then(_self.copyWith(reportInfo: value)); + }); +}/// Create a copy of HatchingModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$RegistrarCopyWith<$Res>? get registrar { + if (_self.registrar == null) { + return null; + } + + return $RegistrarCopyWith<$Res>(_self.registrar!, (value) { + return _then(_self.copyWith(registrar: value)); + }); +}/// Create a copy of HatchingModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$LastChangeCopyWith<$Res>? get lastChange { + if (_self.lastChange == null) { + return null; + } + + return $LastChangeCopyWith<$Res>(_self.lastChange!, (value) { + return _then(_self.copyWith(lastChange: value)); + }); +}/// Create a copy of HatchingModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$LatestHatchingChangeCopyWith<$Res>? get latestHatchingChange { + if (_self.latestHatchingChange == null) { + return null; + } + + return $LatestHatchingChangeCopyWith<$Res>(_self.latestHatchingChange!, (value) { + return _then(_self.copyWith(latestHatchingChange: value)); + }); +} +} + + +/// @nodoc +mixin _$Poultry { + + int? get id; PoultryUser? get user; PoultryAddress? get address; String? get key; bool? get trash; int? get ownerIdForeignKey; int? get userIdForeignKey; int? get addressIdForeignKey; bool? get hasChainCompany; int? get userBankIdForeignKey; String? get cityOperator; String? get unitName; String? get gisCode; num? get operatingLicenceCapacity; num? get numberOfHalls; bool? get tenant; bool? get hasTenant; String? get personType; String? get economicCode; String? get systemCode; String? get epidemiologicalCode; String? get breedingUniqueId; num? get totalCapacity; String? get licenceNumber; String? get healthCertificateNumber; num? get numberOfRequests; String? get hatchingDate; String? get lastPartyDate; num? get numberOfIncubators; num? get herdAgeByDay; num? get herdAgeByWeek; num? get numberOfParty; String? get communicationType; String? get cooperative; String? get dateOfRegister; String? get unitStatus; bool? get active; dynamic get identityDocuments; String? get samasatUserCode; String? get baseOrder; String? get incubationDate; num? get walletAmount; num? get city; num? get cityNumber; String? get cityName; num? get provinceNumber; String? get provinceName; int? get walletIdForeignKey; int? get poultryIdKey; num? get lat; num? get long; String? get date; num? get killingAveAge; num? get activeLeftOver; num? get killingAveCount; num? get killingAveWeight; num? get killingLiveWeight; num? get killingCarcassesWeight; num? get killingLossWeightPercent; num? get realKillingAveWeight; num? get realKillingLiveWeight; num? get realKillingCarcassesWeight; num? get realKillingLossWeightPercent; int? get interestLicenseId; bool? get orderLimit; int? get owner; int? get userBankInfo; int? get wallet; +/// Create a copy of Poultry +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$PoultryCopyWith get copyWith => _$PoultryCopyWithImpl(this as Poultry, _$identity); + + /// Serializes this Poultry to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is Poultry&&(identical(other.id, id) || other.id == id)&&(identical(other.user, user) || other.user == user)&&(identical(other.address, address) || other.address == address)&&(identical(other.key, key) || other.key == key)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.ownerIdForeignKey, ownerIdForeignKey) || other.ownerIdForeignKey == ownerIdForeignKey)&&(identical(other.userIdForeignKey, userIdForeignKey) || other.userIdForeignKey == userIdForeignKey)&&(identical(other.addressIdForeignKey, addressIdForeignKey) || other.addressIdForeignKey == addressIdForeignKey)&&(identical(other.hasChainCompany, hasChainCompany) || other.hasChainCompany == hasChainCompany)&&(identical(other.userBankIdForeignKey, userBankIdForeignKey) || other.userBankIdForeignKey == userBankIdForeignKey)&&(identical(other.cityOperator, cityOperator) || other.cityOperator == cityOperator)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.gisCode, gisCode) || other.gisCode == gisCode)&&(identical(other.operatingLicenceCapacity, operatingLicenceCapacity) || other.operatingLicenceCapacity == operatingLicenceCapacity)&&(identical(other.numberOfHalls, numberOfHalls) || other.numberOfHalls == numberOfHalls)&&(identical(other.tenant, tenant) || other.tenant == tenant)&&(identical(other.hasTenant, hasTenant) || other.hasTenant == hasTenant)&&(identical(other.personType, personType) || other.personType == personType)&&(identical(other.economicCode, economicCode) || other.economicCode == economicCode)&&(identical(other.systemCode, systemCode) || other.systemCode == systemCode)&&(identical(other.epidemiologicalCode, epidemiologicalCode) || other.epidemiologicalCode == epidemiologicalCode)&&(identical(other.breedingUniqueId, breedingUniqueId) || other.breedingUniqueId == breedingUniqueId)&&(identical(other.totalCapacity, totalCapacity) || other.totalCapacity == totalCapacity)&&(identical(other.licenceNumber, licenceNumber) || other.licenceNumber == licenceNumber)&&(identical(other.healthCertificateNumber, healthCertificateNumber) || other.healthCertificateNumber == healthCertificateNumber)&&(identical(other.numberOfRequests, numberOfRequests) || other.numberOfRequests == numberOfRequests)&&(identical(other.hatchingDate, hatchingDate) || other.hatchingDate == hatchingDate)&&(identical(other.lastPartyDate, lastPartyDate) || other.lastPartyDate == lastPartyDate)&&(identical(other.numberOfIncubators, numberOfIncubators) || other.numberOfIncubators == numberOfIncubators)&&(identical(other.herdAgeByDay, herdAgeByDay) || other.herdAgeByDay == herdAgeByDay)&&(identical(other.herdAgeByWeek, herdAgeByWeek) || other.herdAgeByWeek == herdAgeByWeek)&&(identical(other.numberOfParty, numberOfParty) || other.numberOfParty == numberOfParty)&&(identical(other.communicationType, communicationType) || other.communicationType == communicationType)&&(identical(other.cooperative, cooperative) || other.cooperative == cooperative)&&(identical(other.dateOfRegister, dateOfRegister) || other.dateOfRegister == dateOfRegister)&&(identical(other.unitStatus, unitStatus) || other.unitStatus == unitStatus)&&(identical(other.active, active) || other.active == active)&&const DeepCollectionEquality().equals(other.identityDocuments, identityDocuments)&&(identical(other.samasatUserCode, samasatUserCode) || other.samasatUserCode == samasatUserCode)&&(identical(other.baseOrder, baseOrder) || other.baseOrder == baseOrder)&&(identical(other.incubationDate, incubationDate) || other.incubationDate == incubationDate)&&(identical(other.walletAmount, walletAmount) || other.walletAmount == walletAmount)&&(identical(other.city, city) || other.city == city)&&(identical(other.cityNumber, cityNumber) || other.cityNumber == cityNumber)&&(identical(other.cityName, cityName) || other.cityName == cityName)&&(identical(other.provinceNumber, provinceNumber) || other.provinceNumber == provinceNumber)&&(identical(other.provinceName, provinceName) || other.provinceName == provinceName)&&(identical(other.walletIdForeignKey, walletIdForeignKey) || other.walletIdForeignKey == walletIdForeignKey)&&(identical(other.poultryIdKey, poultryIdKey) || other.poultryIdKey == poultryIdKey)&&(identical(other.lat, lat) || other.lat == lat)&&(identical(other.long, long) || other.long == long)&&(identical(other.date, date) || other.date == date)&&(identical(other.killingAveAge, killingAveAge) || other.killingAveAge == killingAveAge)&&(identical(other.activeLeftOver, activeLeftOver) || other.activeLeftOver == activeLeftOver)&&(identical(other.killingAveCount, killingAveCount) || other.killingAveCount == killingAveCount)&&(identical(other.killingAveWeight, killingAveWeight) || other.killingAveWeight == killingAveWeight)&&(identical(other.killingLiveWeight, killingLiveWeight) || other.killingLiveWeight == killingLiveWeight)&&(identical(other.killingCarcassesWeight, killingCarcassesWeight) || other.killingCarcassesWeight == killingCarcassesWeight)&&(identical(other.killingLossWeightPercent, killingLossWeightPercent) || other.killingLossWeightPercent == killingLossWeightPercent)&&(identical(other.realKillingAveWeight, realKillingAveWeight) || other.realKillingAveWeight == realKillingAveWeight)&&(identical(other.realKillingLiveWeight, realKillingLiveWeight) || other.realKillingLiveWeight == realKillingLiveWeight)&&(identical(other.realKillingCarcassesWeight, realKillingCarcassesWeight) || other.realKillingCarcassesWeight == realKillingCarcassesWeight)&&(identical(other.realKillingLossWeightPercent, realKillingLossWeightPercent) || other.realKillingLossWeightPercent == realKillingLossWeightPercent)&&(identical(other.interestLicenseId, interestLicenseId) || other.interestLicenseId == interestLicenseId)&&(identical(other.orderLimit, orderLimit) || other.orderLimit == orderLimit)&&(identical(other.owner, owner) || other.owner == owner)&&(identical(other.userBankInfo, userBankInfo) || other.userBankInfo == userBankInfo)&&(identical(other.wallet, wallet) || other.wallet == wallet)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,id,user,address,key,trash,ownerIdForeignKey,userIdForeignKey,addressIdForeignKey,hasChainCompany,userBankIdForeignKey,cityOperator,unitName,gisCode,operatingLicenceCapacity,numberOfHalls,tenant,hasTenant,personType,economicCode,systemCode,epidemiologicalCode,breedingUniqueId,totalCapacity,licenceNumber,healthCertificateNumber,numberOfRequests,hatchingDate,lastPartyDate,numberOfIncubators,herdAgeByDay,herdAgeByWeek,numberOfParty,communicationType,cooperative,dateOfRegister,unitStatus,active,const DeepCollectionEquality().hash(identityDocuments),samasatUserCode,baseOrder,incubationDate,walletAmount,city,cityNumber,cityName,provinceNumber,provinceName,walletIdForeignKey,poultryIdKey,lat,long,date,killingAveAge,activeLeftOver,killingAveCount,killingAveWeight,killingLiveWeight,killingCarcassesWeight,killingLossWeightPercent,realKillingAveWeight,realKillingLiveWeight,realKillingCarcassesWeight,realKillingLossWeightPercent,interestLicenseId,orderLimit,owner,userBankInfo,wallet]); + +@override +String toString() { + return 'Poultry(id: $id, user: $user, address: $address, key: $key, trash: $trash, ownerIdForeignKey: $ownerIdForeignKey, userIdForeignKey: $userIdForeignKey, addressIdForeignKey: $addressIdForeignKey, hasChainCompany: $hasChainCompany, userBankIdForeignKey: $userBankIdForeignKey, cityOperator: $cityOperator, unitName: $unitName, gisCode: $gisCode, operatingLicenceCapacity: $operatingLicenceCapacity, numberOfHalls: $numberOfHalls, tenant: $tenant, hasTenant: $hasTenant, personType: $personType, economicCode: $economicCode, systemCode: $systemCode, epidemiologicalCode: $epidemiologicalCode, breedingUniqueId: $breedingUniqueId, totalCapacity: $totalCapacity, licenceNumber: $licenceNumber, healthCertificateNumber: $healthCertificateNumber, numberOfRequests: $numberOfRequests, hatchingDate: $hatchingDate, lastPartyDate: $lastPartyDate, numberOfIncubators: $numberOfIncubators, herdAgeByDay: $herdAgeByDay, herdAgeByWeek: $herdAgeByWeek, numberOfParty: $numberOfParty, communicationType: $communicationType, cooperative: $cooperative, dateOfRegister: $dateOfRegister, unitStatus: $unitStatus, active: $active, identityDocuments: $identityDocuments, samasatUserCode: $samasatUserCode, baseOrder: $baseOrder, incubationDate: $incubationDate, walletAmount: $walletAmount, city: $city, cityNumber: $cityNumber, cityName: $cityName, provinceNumber: $provinceNumber, provinceName: $provinceName, walletIdForeignKey: $walletIdForeignKey, poultryIdKey: $poultryIdKey, lat: $lat, long: $long, date: $date, killingAveAge: $killingAveAge, activeLeftOver: $activeLeftOver, killingAveCount: $killingAveCount, killingAveWeight: $killingAveWeight, killingLiveWeight: $killingLiveWeight, killingCarcassesWeight: $killingCarcassesWeight, killingLossWeightPercent: $killingLossWeightPercent, realKillingAveWeight: $realKillingAveWeight, realKillingLiveWeight: $realKillingLiveWeight, realKillingCarcassesWeight: $realKillingCarcassesWeight, realKillingLossWeightPercent: $realKillingLossWeightPercent, interestLicenseId: $interestLicenseId, orderLimit: $orderLimit, owner: $owner, userBankInfo: $userBankInfo, wallet: $wallet)'; +} + + +} + +/// @nodoc +abstract mixin class $PoultryCopyWith<$Res> { + factory $PoultryCopyWith(Poultry value, $Res Function(Poultry) _then) = _$PoultryCopyWithImpl; +@useResult +$Res call({ + int? id, PoultryUser? user, PoultryAddress? address, String? key, bool? trash, int? ownerIdForeignKey, int? userIdForeignKey, int? addressIdForeignKey, bool? hasChainCompany, int? userBankIdForeignKey, String? cityOperator, String? unitName, String? gisCode, num? operatingLicenceCapacity, num? numberOfHalls, bool? tenant, bool? hasTenant, String? personType, String? economicCode, String? systemCode, String? epidemiologicalCode, String? breedingUniqueId, num? totalCapacity, String? licenceNumber, String? healthCertificateNumber, num? numberOfRequests, String? hatchingDate, String? lastPartyDate, num? numberOfIncubators, num? herdAgeByDay, num? herdAgeByWeek, num? numberOfParty, String? communicationType, String? cooperative, String? dateOfRegister, String? unitStatus, bool? active, dynamic identityDocuments, String? samasatUserCode, String? baseOrder, String? incubationDate, num? walletAmount, num? city, num? cityNumber, String? cityName, num? provinceNumber, String? provinceName, int? walletIdForeignKey, int? poultryIdKey, num? lat, num? long, String? date, num? killingAveAge, num? activeLeftOver, num? killingAveCount, num? killingAveWeight, num? killingLiveWeight, num? killingCarcassesWeight, num? killingLossWeightPercent, num? realKillingAveWeight, num? realKillingLiveWeight, num? realKillingCarcassesWeight, num? realKillingLossWeightPercent, int? interestLicenseId, bool? orderLimit, int? owner, int? userBankInfo, int? wallet +}); + + +$PoultryUserCopyWith<$Res>? get user;$PoultryAddressCopyWith<$Res>? get address; + +} +/// @nodoc +class _$PoultryCopyWithImpl<$Res> + implements $PoultryCopyWith<$Res> { + _$PoultryCopyWithImpl(this._self, this._then); + + final Poultry _self; + final $Res Function(Poultry) _then; + +/// Create a copy of Poultry +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? user = freezed,Object? address = freezed,Object? key = freezed,Object? trash = freezed,Object? ownerIdForeignKey = freezed,Object? userIdForeignKey = freezed,Object? addressIdForeignKey = freezed,Object? hasChainCompany = freezed,Object? userBankIdForeignKey = freezed,Object? cityOperator = freezed,Object? unitName = freezed,Object? gisCode = freezed,Object? operatingLicenceCapacity = freezed,Object? numberOfHalls = freezed,Object? tenant = freezed,Object? hasTenant = freezed,Object? personType = freezed,Object? economicCode = freezed,Object? systemCode = freezed,Object? epidemiologicalCode = freezed,Object? breedingUniqueId = freezed,Object? totalCapacity = freezed,Object? licenceNumber = freezed,Object? healthCertificateNumber = freezed,Object? numberOfRequests = freezed,Object? hatchingDate = freezed,Object? lastPartyDate = freezed,Object? numberOfIncubators = freezed,Object? herdAgeByDay = freezed,Object? herdAgeByWeek = freezed,Object? numberOfParty = freezed,Object? communicationType = freezed,Object? cooperative = freezed,Object? dateOfRegister = freezed,Object? unitStatus = freezed,Object? active = freezed,Object? identityDocuments = freezed,Object? samasatUserCode = freezed,Object? baseOrder = freezed,Object? incubationDate = freezed,Object? walletAmount = freezed,Object? city = freezed,Object? cityNumber = freezed,Object? cityName = freezed,Object? provinceNumber = freezed,Object? provinceName = freezed,Object? walletIdForeignKey = freezed,Object? poultryIdKey = freezed,Object? lat = freezed,Object? long = freezed,Object? date = freezed,Object? killingAveAge = freezed,Object? activeLeftOver = freezed,Object? killingAveCount = freezed,Object? killingAveWeight = freezed,Object? killingLiveWeight = freezed,Object? killingCarcassesWeight = freezed,Object? killingLossWeightPercent = freezed,Object? realKillingAveWeight = freezed,Object? realKillingLiveWeight = freezed,Object? realKillingCarcassesWeight = freezed,Object? realKillingLossWeightPercent = freezed,Object? interestLicenseId = freezed,Object? orderLimit = freezed,Object? owner = freezed,Object? userBankInfo = freezed,Object? wallet = freezed,}) { + return _then(_self.copyWith( +id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable +as int?,user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable +as PoultryUser?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable +as PoultryAddress?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable +as bool?,ownerIdForeignKey: freezed == ownerIdForeignKey ? _self.ownerIdForeignKey : ownerIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,userIdForeignKey: freezed == userIdForeignKey ? _self.userIdForeignKey : userIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,addressIdForeignKey: freezed == addressIdForeignKey ? _self.addressIdForeignKey : addressIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,hasChainCompany: freezed == hasChainCompany ? _self.hasChainCompany : hasChainCompany // ignore: cast_nullable_to_non_nullable +as bool?,userBankIdForeignKey: freezed == userBankIdForeignKey ? _self.userBankIdForeignKey : userBankIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,cityOperator: freezed == cityOperator ? _self.cityOperator : cityOperator // ignore: cast_nullable_to_non_nullable +as String?,unitName: freezed == unitName ? _self.unitName : unitName // ignore: cast_nullable_to_non_nullable +as String?,gisCode: freezed == gisCode ? _self.gisCode : gisCode // ignore: cast_nullable_to_non_nullable +as String?,operatingLicenceCapacity: freezed == operatingLicenceCapacity ? _self.operatingLicenceCapacity : operatingLicenceCapacity // ignore: cast_nullable_to_non_nullable +as num?,numberOfHalls: freezed == numberOfHalls ? _self.numberOfHalls : numberOfHalls // ignore: cast_nullable_to_non_nullable +as num?,tenant: freezed == tenant ? _self.tenant : tenant // ignore: cast_nullable_to_non_nullable +as bool?,hasTenant: freezed == hasTenant ? _self.hasTenant : hasTenant // ignore: cast_nullable_to_non_nullable +as bool?,personType: freezed == personType ? _self.personType : personType // ignore: cast_nullable_to_non_nullable +as String?,economicCode: freezed == economicCode ? _self.economicCode : economicCode // ignore: cast_nullable_to_non_nullable +as String?,systemCode: freezed == systemCode ? _self.systemCode : systemCode // ignore: cast_nullable_to_non_nullable +as String?,epidemiologicalCode: freezed == epidemiologicalCode ? _self.epidemiologicalCode : epidemiologicalCode // ignore: cast_nullable_to_non_nullable +as String?,breedingUniqueId: freezed == breedingUniqueId ? _self.breedingUniqueId : breedingUniqueId // ignore: cast_nullable_to_non_nullable +as String?,totalCapacity: freezed == totalCapacity ? _self.totalCapacity : totalCapacity // ignore: cast_nullable_to_non_nullable +as num?,licenceNumber: freezed == licenceNumber ? _self.licenceNumber : licenceNumber // ignore: cast_nullable_to_non_nullable +as String?,healthCertificateNumber: freezed == healthCertificateNumber ? _self.healthCertificateNumber : healthCertificateNumber // ignore: cast_nullable_to_non_nullable +as String?,numberOfRequests: freezed == numberOfRequests ? _self.numberOfRequests : numberOfRequests // ignore: cast_nullable_to_non_nullable +as num?,hatchingDate: freezed == hatchingDate ? _self.hatchingDate : hatchingDate // ignore: cast_nullable_to_non_nullable +as String?,lastPartyDate: freezed == lastPartyDate ? _self.lastPartyDate : lastPartyDate // ignore: cast_nullable_to_non_nullable +as String?,numberOfIncubators: freezed == numberOfIncubators ? _self.numberOfIncubators : numberOfIncubators // ignore: cast_nullable_to_non_nullable +as num?,herdAgeByDay: freezed == herdAgeByDay ? _self.herdAgeByDay : herdAgeByDay // ignore: cast_nullable_to_non_nullable +as num?,herdAgeByWeek: freezed == herdAgeByWeek ? _self.herdAgeByWeek : herdAgeByWeek // ignore: cast_nullable_to_non_nullable +as num?,numberOfParty: freezed == numberOfParty ? _self.numberOfParty : numberOfParty // ignore: cast_nullable_to_non_nullable +as num?,communicationType: freezed == communicationType ? _self.communicationType : communicationType // ignore: cast_nullable_to_non_nullable +as String?,cooperative: freezed == cooperative ? _self.cooperative : cooperative // ignore: cast_nullable_to_non_nullable +as String?,dateOfRegister: freezed == dateOfRegister ? _self.dateOfRegister : dateOfRegister // ignore: cast_nullable_to_non_nullable +as String?,unitStatus: freezed == unitStatus ? _self.unitStatus : unitStatus // ignore: cast_nullable_to_non_nullable +as String?,active: freezed == active ? _self.active : active // ignore: cast_nullable_to_non_nullable +as bool?,identityDocuments: freezed == identityDocuments ? _self.identityDocuments : identityDocuments // ignore: cast_nullable_to_non_nullable +as dynamic,samasatUserCode: freezed == samasatUserCode ? _self.samasatUserCode : samasatUserCode // ignore: cast_nullable_to_non_nullable +as String?,baseOrder: freezed == baseOrder ? _self.baseOrder : baseOrder // ignore: cast_nullable_to_non_nullable +as String?,incubationDate: freezed == incubationDate ? _self.incubationDate : incubationDate // ignore: cast_nullable_to_non_nullable +as String?,walletAmount: freezed == walletAmount ? _self.walletAmount : walletAmount // ignore: cast_nullable_to_non_nullable +as num?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as num?,cityNumber: freezed == cityNumber ? _self.cityNumber : cityNumber // ignore: cast_nullable_to_non_nullable +as num?,cityName: freezed == cityName ? _self.cityName : cityName // ignore: cast_nullable_to_non_nullable +as String?,provinceNumber: freezed == provinceNumber ? _self.provinceNumber : provinceNumber // ignore: cast_nullable_to_non_nullable +as num?,provinceName: freezed == provinceName ? _self.provinceName : provinceName // ignore: cast_nullable_to_non_nullable +as String?,walletIdForeignKey: freezed == walletIdForeignKey ? _self.walletIdForeignKey : walletIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,poultryIdKey: freezed == poultryIdKey ? _self.poultryIdKey : poultryIdKey // ignore: cast_nullable_to_non_nullable +as int?,lat: freezed == lat ? _self.lat : lat // ignore: cast_nullable_to_non_nullable +as num?,long: freezed == long ? _self.long : long // ignore: cast_nullable_to_non_nullable +as num?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?,killingAveAge: freezed == killingAveAge ? _self.killingAveAge : killingAveAge // ignore: cast_nullable_to_non_nullable +as num?,activeLeftOver: freezed == activeLeftOver ? _self.activeLeftOver : activeLeftOver // ignore: cast_nullable_to_non_nullable +as num?,killingAveCount: freezed == killingAveCount ? _self.killingAveCount : killingAveCount // ignore: cast_nullable_to_non_nullable +as num?,killingAveWeight: freezed == killingAveWeight ? _self.killingAveWeight : killingAveWeight // ignore: cast_nullable_to_non_nullable +as num?,killingLiveWeight: freezed == killingLiveWeight ? _self.killingLiveWeight : killingLiveWeight // ignore: cast_nullable_to_non_nullable +as num?,killingCarcassesWeight: freezed == killingCarcassesWeight ? _self.killingCarcassesWeight : killingCarcassesWeight // ignore: cast_nullable_to_non_nullable +as num?,killingLossWeightPercent: freezed == killingLossWeightPercent ? _self.killingLossWeightPercent : killingLossWeightPercent // ignore: cast_nullable_to_non_nullable +as num?,realKillingAveWeight: freezed == realKillingAveWeight ? _self.realKillingAveWeight : realKillingAveWeight // ignore: cast_nullable_to_non_nullable +as num?,realKillingLiveWeight: freezed == realKillingLiveWeight ? _self.realKillingLiveWeight : realKillingLiveWeight // ignore: cast_nullable_to_non_nullable +as num?,realKillingCarcassesWeight: freezed == realKillingCarcassesWeight ? _self.realKillingCarcassesWeight : realKillingCarcassesWeight // ignore: cast_nullable_to_non_nullable +as num?,realKillingLossWeightPercent: freezed == realKillingLossWeightPercent ? _self.realKillingLossWeightPercent : realKillingLossWeightPercent // ignore: cast_nullable_to_non_nullable +as num?,interestLicenseId: freezed == interestLicenseId ? _self.interestLicenseId : interestLicenseId // ignore: cast_nullable_to_non_nullable +as int?,orderLimit: freezed == orderLimit ? _self.orderLimit : orderLimit // ignore: cast_nullable_to_non_nullable +as bool?,owner: freezed == owner ? _self.owner : owner // ignore: cast_nullable_to_non_nullable +as int?,userBankInfo: freezed == userBankInfo ? _self.userBankInfo : userBankInfo // ignore: cast_nullable_to_non_nullable +as int?,wallet: freezed == wallet ? _self.wallet : wallet // ignore: cast_nullable_to_non_nullable +as int?, + )); +} +/// Create a copy of Poultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$PoultryUserCopyWith<$Res>? get user { + if (_self.user == null) { + return null; + } + + return $PoultryUserCopyWith<$Res>(_self.user!, (value) { + return _then(_self.copyWith(user: value)); + }); +}/// Create a copy of Poultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$PoultryAddressCopyWith<$Res>? get address { + if (_self.address == null) { + return null; + } + + return $PoultryAddressCopyWith<$Res>(_self.address!, (value) { + return _then(_self.copyWith(address: value)); + }); +} +} + + +/// Adds pattern-matching-related methods to [Poultry]. +extension PoultryPatterns on Poultry { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _Poultry value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _Poultry() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _Poultry value) $default,){ +final _that = this; +switch (_that) { +case _Poultry(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _Poultry value)? $default,){ +final _that = this; +switch (_that) { +case _Poultry() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( int? id, PoultryUser? user, PoultryAddress? address, String? key, bool? trash, int? ownerIdForeignKey, int? userIdForeignKey, int? addressIdForeignKey, bool? hasChainCompany, int? userBankIdForeignKey, String? cityOperator, String? unitName, String? gisCode, num? operatingLicenceCapacity, num? numberOfHalls, bool? tenant, bool? hasTenant, String? personType, String? economicCode, String? systemCode, String? epidemiologicalCode, String? breedingUniqueId, num? totalCapacity, String? licenceNumber, String? healthCertificateNumber, num? numberOfRequests, String? hatchingDate, String? lastPartyDate, num? numberOfIncubators, num? herdAgeByDay, num? herdAgeByWeek, num? numberOfParty, String? communicationType, String? cooperative, String? dateOfRegister, String? unitStatus, bool? active, dynamic identityDocuments, String? samasatUserCode, String? baseOrder, String? incubationDate, num? walletAmount, num? city, num? cityNumber, String? cityName, num? provinceNumber, String? provinceName, int? walletIdForeignKey, int? poultryIdKey, num? lat, num? long, String? date, num? killingAveAge, num? activeLeftOver, num? killingAveCount, num? killingAveWeight, num? killingLiveWeight, num? killingCarcassesWeight, num? killingLossWeightPercent, num? realKillingAveWeight, num? realKillingLiveWeight, num? realKillingCarcassesWeight, num? realKillingLossWeightPercent, int? interestLicenseId, bool? orderLimit, int? owner, int? userBankInfo, int? wallet)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _Poultry() when $default != null: +return $default(_that.id,_that.user,_that.address,_that.key,_that.trash,_that.ownerIdForeignKey,_that.userIdForeignKey,_that.addressIdForeignKey,_that.hasChainCompany,_that.userBankIdForeignKey,_that.cityOperator,_that.unitName,_that.gisCode,_that.operatingLicenceCapacity,_that.numberOfHalls,_that.tenant,_that.hasTenant,_that.personType,_that.economicCode,_that.systemCode,_that.epidemiologicalCode,_that.breedingUniqueId,_that.totalCapacity,_that.licenceNumber,_that.healthCertificateNumber,_that.numberOfRequests,_that.hatchingDate,_that.lastPartyDate,_that.numberOfIncubators,_that.herdAgeByDay,_that.herdAgeByWeek,_that.numberOfParty,_that.communicationType,_that.cooperative,_that.dateOfRegister,_that.unitStatus,_that.active,_that.identityDocuments,_that.samasatUserCode,_that.baseOrder,_that.incubationDate,_that.walletAmount,_that.city,_that.cityNumber,_that.cityName,_that.provinceNumber,_that.provinceName,_that.walletIdForeignKey,_that.poultryIdKey,_that.lat,_that.long,_that.date,_that.killingAveAge,_that.activeLeftOver,_that.killingAveCount,_that.killingAveWeight,_that.killingLiveWeight,_that.killingCarcassesWeight,_that.killingLossWeightPercent,_that.realKillingAveWeight,_that.realKillingLiveWeight,_that.realKillingCarcassesWeight,_that.realKillingLossWeightPercent,_that.interestLicenseId,_that.orderLimit,_that.owner,_that.userBankInfo,_that.wallet);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( int? id, PoultryUser? user, PoultryAddress? address, String? key, bool? trash, int? ownerIdForeignKey, int? userIdForeignKey, int? addressIdForeignKey, bool? hasChainCompany, int? userBankIdForeignKey, String? cityOperator, String? unitName, String? gisCode, num? operatingLicenceCapacity, num? numberOfHalls, bool? tenant, bool? hasTenant, String? personType, String? economicCode, String? systemCode, String? epidemiologicalCode, String? breedingUniqueId, num? totalCapacity, String? licenceNumber, String? healthCertificateNumber, num? numberOfRequests, String? hatchingDate, String? lastPartyDate, num? numberOfIncubators, num? herdAgeByDay, num? herdAgeByWeek, num? numberOfParty, String? communicationType, String? cooperative, String? dateOfRegister, String? unitStatus, bool? active, dynamic identityDocuments, String? samasatUserCode, String? baseOrder, String? incubationDate, num? walletAmount, num? city, num? cityNumber, String? cityName, num? provinceNumber, String? provinceName, int? walletIdForeignKey, int? poultryIdKey, num? lat, num? long, String? date, num? killingAveAge, num? activeLeftOver, num? killingAveCount, num? killingAveWeight, num? killingLiveWeight, num? killingCarcassesWeight, num? killingLossWeightPercent, num? realKillingAveWeight, num? realKillingLiveWeight, num? realKillingCarcassesWeight, num? realKillingLossWeightPercent, int? interestLicenseId, bool? orderLimit, int? owner, int? userBankInfo, int? wallet) $default,) {final _that = this; +switch (_that) { +case _Poultry(): +return $default(_that.id,_that.user,_that.address,_that.key,_that.trash,_that.ownerIdForeignKey,_that.userIdForeignKey,_that.addressIdForeignKey,_that.hasChainCompany,_that.userBankIdForeignKey,_that.cityOperator,_that.unitName,_that.gisCode,_that.operatingLicenceCapacity,_that.numberOfHalls,_that.tenant,_that.hasTenant,_that.personType,_that.economicCode,_that.systemCode,_that.epidemiologicalCode,_that.breedingUniqueId,_that.totalCapacity,_that.licenceNumber,_that.healthCertificateNumber,_that.numberOfRequests,_that.hatchingDate,_that.lastPartyDate,_that.numberOfIncubators,_that.herdAgeByDay,_that.herdAgeByWeek,_that.numberOfParty,_that.communicationType,_that.cooperative,_that.dateOfRegister,_that.unitStatus,_that.active,_that.identityDocuments,_that.samasatUserCode,_that.baseOrder,_that.incubationDate,_that.walletAmount,_that.city,_that.cityNumber,_that.cityName,_that.provinceNumber,_that.provinceName,_that.walletIdForeignKey,_that.poultryIdKey,_that.lat,_that.long,_that.date,_that.killingAveAge,_that.activeLeftOver,_that.killingAveCount,_that.killingAveWeight,_that.killingLiveWeight,_that.killingCarcassesWeight,_that.killingLossWeightPercent,_that.realKillingAveWeight,_that.realKillingLiveWeight,_that.realKillingCarcassesWeight,_that.realKillingLossWeightPercent,_that.interestLicenseId,_that.orderLimit,_that.owner,_that.userBankInfo,_that.wallet);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( int? id, PoultryUser? user, PoultryAddress? address, String? key, bool? trash, int? ownerIdForeignKey, int? userIdForeignKey, int? addressIdForeignKey, bool? hasChainCompany, int? userBankIdForeignKey, String? cityOperator, String? unitName, String? gisCode, num? operatingLicenceCapacity, num? numberOfHalls, bool? tenant, bool? hasTenant, String? personType, String? economicCode, String? systemCode, String? epidemiologicalCode, String? breedingUniqueId, num? totalCapacity, String? licenceNumber, String? healthCertificateNumber, num? numberOfRequests, String? hatchingDate, String? lastPartyDate, num? numberOfIncubators, num? herdAgeByDay, num? herdAgeByWeek, num? numberOfParty, String? communicationType, String? cooperative, String? dateOfRegister, String? unitStatus, bool? active, dynamic identityDocuments, String? samasatUserCode, String? baseOrder, String? incubationDate, num? walletAmount, num? city, num? cityNumber, String? cityName, num? provinceNumber, String? provinceName, int? walletIdForeignKey, int? poultryIdKey, num? lat, num? long, String? date, num? killingAveAge, num? activeLeftOver, num? killingAveCount, num? killingAveWeight, num? killingLiveWeight, num? killingCarcassesWeight, num? killingLossWeightPercent, num? realKillingAveWeight, num? realKillingLiveWeight, num? realKillingCarcassesWeight, num? realKillingLossWeightPercent, int? interestLicenseId, bool? orderLimit, int? owner, int? userBankInfo, int? wallet)? $default,) {final _that = this; +switch (_that) { +case _Poultry() when $default != null: +return $default(_that.id,_that.user,_that.address,_that.key,_that.trash,_that.ownerIdForeignKey,_that.userIdForeignKey,_that.addressIdForeignKey,_that.hasChainCompany,_that.userBankIdForeignKey,_that.cityOperator,_that.unitName,_that.gisCode,_that.operatingLicenceCapacity,_that.numberOfHalls,_that.tenant,_that.hasTenant,_that.personType,_that.economicCode,_that.systemCode,_that.epidemiologicalCode,_that.breedingUniqueId,_that.totalCapacity,_that.licenceNumber,_that.healthCertificateNumber,_that.numberOfRequests,_that.hatchingDate,_that.lastPartyDate,_that.numberOfIncubators,_that.herdAgeByDay,_that.herdAgeByWeek,_that.numberOfParty,_that.communicationType,_that.cooperative,_that.dateOfRegister,_that.unitStatus,_that.active,_that.identityDocuments,_that.samasatUserCode,_that.baseOrder,_that.incubationDate,_that.walletAmount,_that.city,_that.cityNumber,_that.cityName,_that.provinceNumber,_that.provinceName,_that.walletIdForeignKey,_that.poultryIdKey,_that.lat,_that.long,_that.date,_that.killingAveAge,_that.activeLeftOver,_that.killingAveCount,_that.killingAveWeight,_that.killingLiveWeight,_that.killingCarcassesWeight,_that.killingLossWeightPercent,_that.realKillingAveWeight,_that.realKillingLiveWeight,_that.realKillingCarcassesWeight,_that.realKillingLossWeightPercent,_that.interestLicenseId,_that.orderLimit,_that.owner,_that.userBankInfo,_that.wallet);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _Poultry implements Poultry { + const _Poultry({this.id, this.user, this.address, this.key, this.trash, this.ownerIdForeignKey, this.userIdForeignKey, this.addressIdForeignKey, this.hasChainCompany, this.userBankIdForeignKey, this.cityOperator, this.unitName, this.gisCode, this.operatingLicenceCapacity, this.numberOfHalls, this.tenant, this.hasTenant, this.personType, this.economicCode, this.systemCode, this.epidemiologicalCode, this.breedingUniqueId, this.totalCapacity, this.licenceNumber, this.healthCertificateNumber, this.numberOfRequests, this.hatchingDate, this.lastPartyDate, this.numberOfIncubators, this.herdAgeByDay, this.herdAgeByWeek, this.numberOfParty, this.communicationType, this.cooperative, this.dateOfRegister, this.unitStatus, this.active, this.identityDocuments, this.samasatUserCode, this.baseOrder, this.incubationDate, this.walletAmount, this.city, this.cityNumber, this.cityName, this.provinceNumber, this.provinceName, this.walletIdForeignKey, this.poultryIdKey, this.lat, this.long, this.date, this.killingAveAge, this.activeLeftOver, this.killingAveCount, this.killingAveWeight, this.killingLiveWeight, this.killingCarcassesWeight, this.killingLossWeightPercent, this.realKillingAveWeight, this.realKillingLiveWeight, this.realKillingCarcassesWeight, this.realKillingLossWeightPercent, this.interestLicenseId, this.orderLimit, this.owner, this.userBankInfo, this.wallet}); + factory _Poultry.fromJson(Map json) => _$PoultryFromJson(json); + +@override final int? id; +@override final PoultryUser? user; +@override final PoultryAddress? address; +@override final String? key; +@override final bool? trash; +@override final int? ownerIdForeignKey; +@override final int? userIdForeignKey; +@override final int? addressIdForeignKey; +@override final bool? hasChainCompany; +@override final int? userBankIdForeignKey; +@override final String? cityOperator; +@override final String? unitName; +@override final String? gisCode; +@override final num? operatingLicenceCapacity; +@override final num? numberOfHalls; +@override final bool? tenant; +@override final bool? hasTenant; +@override final String? personType; +@override final String? economicCode; +@override final String? systemCode; +@override final String? epidemiologicalCode; +@override final String? breedingUniqueId; +@override final num? totalCapacity; +@override final String? licenceNumber; +@override final String? healthCertificateNumber; +@override final num? numberOfRequests; +@override final String? hatchingDate; +@override final String? lastPartyDate; +@override final num? numberOfIncubators; +@override final num? herdAgeByDay; +@override final num? herdAgeByWeek; +@override final num? numberOfParty; +@override final String? communicationType; +@override final String? cooperative; +@override final String? dateOfRegister; +@override final String? unitStatus; +@override final bool? active; +@override final dynamic identityDocuments; +@override final String? samasatUserCode; +@override final String? baseOrder; +@override final String? incubationDate; +@override final num? walletAmount; +@override final num? city; +@override final num? cityNumber; +@override final String? cityName; +@override final num? provinceNumber; +@override final String? provinceName; +@override final int? walletIdForeignKey; +@override final int? poultryIdKey; +@override final num? lat; +@override final num? long; +@override final String? date; +@override final num? killingAveAge; +@override final num? activeLeftOver; +@override final num? killingAveCount; +@override final num? killingAveWeight; +@override final num? killingLiveWeight; +@override final num? killingCarcassesWeight; +@override final num? killingLossWeightPercent; +@override final num? realKillingAveWeight; +@override final num? realKillingLiveWeight; +@override final num? realKillingCarcassesWeight; +@override final num? realKillingLossWeightPercent; +@override final int? interestLicenseId; +@override final bool? orderLimit; +@override final int? owner; +@override final int? userBankInfo; +@override final int? wallet; + +/// Create a copy of Poultry +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$PoultryCopyWith<_Poultry> get copyWith => __$PoultryCopyWithImpl<_Poultry>(this, _$identity); + +@override +Map toJson() { + return _$PoultryToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Poultry&&(identical(other.id, id) || other.id == id)&&(identical(other.user, user) || other.user == user)&&(identical(other.address, address) || other.address == address)&&(identical(other.key, key) || other.key == key)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.ownerIdForeignKey, ownerIdForeignKey) || other.ownerIdForeignKey == ownerIdForeignKey)&&(identical(other.userIdForeignKey, userIdForeignKey) || other.userIdForeignKey == userIdForeignKey)&&(identical(other.addressIdForeignKey, addressIdForeignKey) || other.addressIdForeignKey == addressIdForeignKey)&&(identical(other.hasChainCompany, hasChainCompany) || other.hasChainCompany == hasChainCompany)&&(identical(other.userBankIdForeignKey, userBankIdForeignKey) || other.userBankIdForeignKey == userBankIdForeignKey)&&(identical(other.cityOperator, cityOperator) || other.cityOperator == cityOperator)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.gisCode, gisCode) || other.gisCode == gisCode)&&(identical(other.operatingLicenceCapacity, operatingLicenceCapacity) || other.operatingLicenceCapacity == operatingLicenceCapacity)&&(identical(other.numberOfHalls, numberOfHalls) || other.numberOfHalls == numberOfHalls)&&(identical(other.tenant, tenant) || other.tenant == tenant)&&(identical(other.hasTenant, hasTenant) || other.hasTenant == hasTenant)&&(identical(other.personType, personType) || other.personType == personType)&&(identical(other.economicCode, economicCode) || other.economicCode == economicCode)&&(identical(other.systemCode, systemCode) || other.systemCode == systemCode)&&(identical(other.epidemiologicalCode, epidemiologicalCode) || other.epidemiologicalCode == epidemiologicalCode)&&(identical(other.breedingUniqueId, breedingUniqueId) || other.breedingUniqueId == breedingUniqueId)&&(identical(other.totalCapacity, totalCapacity) || other.totalCapacity == totalCapacity)&&(identical(other.licenceNumber, licenceNumber) || other.licenceNumber == licenceNumber)&&(identical(other.healthCertificateNumber, healthCertificateNumber) || other.healthCertificateNumber == healthCertificateNumber)&&(identical(other.numberOfRequests, numberOfRequests) || other.numberOfRequests == numberOfRequests)&&(identical(other.hatchingDate, hatchingDate) || other.hatchingDate == hatchingDate)&&(identical(other.lastPartyDate, lastPartyDate) || other.lastPartyDate == lastPartyDate)&&(identical(other.numberOfIncubators, numberOfIncubators) || other.numberOfIncubators == numberOfIncubators)&&(identical(other.herdAgeByDay, herdAgeByDay) || other.herdAgeByDay == herdAgeByDay)&&(identical(other.herdAgeByWeek, herdAgeByWeek) || other.herdAgeByWeek == herdAgeByWeek)&&(identical(other.numberOfParty, numberOfParty) || other.numberOfParty == numberOfParty)&&(identical(other.communicationType, communicationType) || other.communicationType == communicationType)&&(identical(other.cooperative, cooperative) || other.cooperative == cooperative)&&(identical(other.dateOfRegister, dateOfRegister) || other.dateOfRegister == dateOfRegister)&&(identical(other.unitStatus, unitStatus) || other.unitStatus == unitStatus)&&(identical(other.active, active) || other.active == active)&&const DeepCollectionEquality().equals(other.identityDocuments, identityDocuments)&&(identical(other.samasatUserCode, samasatUserCode) || other.samasatUserCode == samasatUserCode)&&(identical(other.baseOrder, baseOrder) || other.baseOrder == baseOrder)&&(identical(other.incubationDate, incubationDate) || other.incubationDate == incubationDate)&&(identical(other.walletAmount, walletAmount) || other.walletAmount == walletAmount)&&(identical(other.city, city) || other.city == city)&&(identical(other.cityNumber, cityNumber) || other.cityNumber == cityNumber)&&(identical(other.cityName, cityName) || other.cityName == cityName)&&(identical(other.provinceNumber, provinceNumber) || other.provinceNumber == provinceNumber)&&(identical(other.provinceName, provinceName) || other.provinceName == provinceName)&&(identical(other.walletIdForeignKey, walletIdForeignKey) || other.walletIdForeignKey == walletIdForeignKey)&&(identical(other.poultryIdKey, poultryIdKey) || other.poultryIdKey == poultryIdKey)&&(identical(other.lat, lat) || other.lat == lat)&&(identical(other.long, long) || other.long == long)&&(identical(other.date, date) || other.date == date)&&(identical(other.killingAveAge, killingAveAge) || other.killingAveAge == killingAveAge)&&(identical(other.activeLeftOver, activeLeftOver) || other.activeLeftOver == activeLeftOver)&&(identical(other.killingAveCount, killingAveCount) || other.killingAveCount == killingAveCount)&&(identical(other.killingAveWeight, killingAveWeight) || other.killingAveWeight == killingAveWeight)&&(identical(other.killingLiveWeight, killingLiveWeight) || other.killingLiveWeight == killingLiveWeight)&&(identical(other.killingCarcassesWeight, killingCarcassesWeight) || other.killingCarcassesWeight == killingCarcassesWeight)&&(identical(other.killingLossWeightPercent, killingLossWeightPercent) || other.killingLossWeightPercent == killingLossWeightPercent)&&(identical(other.realKillingAveWeight, realKillingAveWeight) || other.realKillingAveWeight == realKillingAveWeight)&&(identical(other.realKillingLiveWeight, realKillingLiveWeight) || other.realKillingLiveWeight == realKillingLiveWeight)&&(identical(other.realKillingCarcassesWeight, realKillingCarcassesWeight) || other.realKillingCarcassesWeight == realKillingCarcassesWeight)&&(identical(other.realKillingLossWeightPercent, realKillingLossWeightPercent) || other.realKillingLossWeightPercent == realKillingLossWeightPercent)&&(identical(other.interestLicenseId, interestLicenseId) || other.interestLicenseId == interestLicenseId)&&(identical(other.orderLimit, orderLimit) || other.orderLimit == orderLimit)&&(identical(other.owner, owner) || other.owner == owner)&&(identical(other.userBankInfo, userBankInfo) || other.userBankInfo == userBankInfo)&&(identical(other.wallet, wallet) || other.wallet == wallet)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,id,user,address,key,trash,ownerIdForeignKey,userIdForeignKey,addressIdForeignKey,hasChainCompany,userBankIdForeignKey,cityOperator,unitName,gisCode,operatingLicenceCapacity,numberOfHalls,tenant,hasTenant,personType,economicCode,systemCode,epidemiologicalCode,breedingUniqueId,totalCapacity,licenceNumber,healthCertificateNumber,numberOfRequests,hatchingDate,lastPartyDate,numberOfIncubators,herdAgeByDay,herdAgeByWeek,numberOfParty,communicationType,cooperative,dateOfRegister,unitStatus,active,const DeepCollectionEquality().hash(identityDocuments),samasatUserCode,baseOrder,incubationDate,walletAmount,city,cityNumber,cityName,provinceNumber,provinceName,walletIdForeignKey,poultryIdKey,lat,long,date,killingAveAge,activeLeftOver,killingAveCount,killingAveWeight,killingLiveWeight,killingCarcassesWeight,killingLossWeightPercent,realKillingAveWeight,realKillingLiveWeight,realKillingCarcassesWeight,realKillingLossWeightPercent,interestLicenseId,orderLimit,owner,userBankInfo,wallet]); + +@override +String toString() { + return 'Poultry(id: $id, user: $user, address: $address, key: $key, trash: $trash, ownerIdForeignKey: $ownerIdForeignKey, userIdForeignKey: $userIdForeignKey, addressIdForeignKey: $addressIdForeignKey, hasChainCompany: $hasChainCompany, userBankIdForeignKey: $userBankIdForeignKey, cityOperator: $cityOperator, unitName: $unitName, gisCode: $gisCode, operatingLicenceCapacity: $operatingLicenceCapacity, numberOfHalls: $numberOfHalls, tenant: $tenant, hasTenant: $hasTenant, personType: $personType, economicCode: $economicCode, systemCode: $systemCode, epidemiologicalCode: $epidemiologicalCode, breedingUniqueId: $breedingUniqueId, totalCapacity: $totalCapacity, licenceNumber: $licenceNumber, healthCertificateNumber: $healthCertificateNumber, numberOfRequests: $numberOfRequests, hatchingDate: $hatchingDate, lastPartyDate: $lastPartyDate, numberOfIncubators: $numberOfIncubators, herdAgeByDay: $herdAgeByDay, herdAgeByWeek: $herdAgeByWeek, numberOfParty: $numberOfParty, communicationType: $communicationType, cooperative: $cooperative, dateOfRegister: $dateOfRegister, unitStatus: $unitStatus, active: $active, identityDocuments: $identityDocuments, samasatUserCode: $samasatUserCode, baseOrder: $baseOrder, incubationDate: $incubationDate, walletAmount: $walletAmount, city: $city, cityNumber: $cityNumber, cityName: $cityName, provinceNumber: $provinceNumber, provinceName: $provinceName, walletIdForeignKey: $walletIdForeignKey, poultryIdKey: $poultryIdKey, lat: $lat, long: $long, date: $date, killingAveAge: $killingAveAge, activeLeftOver: $activeLeftOver, killingAveCount: $killingAveCount, killingAveWeight: $killingAveWeight, killingLiveWeight: $killingLiveWeight, killingCarcassesWeight: $killingCarcassesWeight, killingLossWeightPercent: $killingLossWeightPercent, realKillingAveWeight: $realKillingAveWeight, realKillingLiveWeight: $realKillingLiveWeight, realKillingCarcassesWeight: $realKillingCarcassesWeight, realKillingLossWeightPercent: $realKillingLossWeightPercent, interestLicenseId: $interestLicenseId, orderLimit: $orderLimit, owner: $owner, userBankInfo: $userBankInfo, wallet: $wallet)'; +} + + +} + +/// @nodoc +abstract mixin class _$PoultryCopyWith<$Res> implements $PoultryCopyWith<$Res> { + factory _$PoultryCopyWith(_Poultry value, $Res Function(_Poultry) _then) = __$PoultryCopyWithImpl; +@override @useResult +$Res call({ + int? id, PoultryUser? user, PoultryAddress? address, String? key, bool? trash, int? ownerIdForeignKey, int? userIdForeignKey, int? addressIdForeignKey, bool? hasChainCompany, int? userBankIdForeignKey, String? cityOperator, String? unitName, String? gisCode, num? operatingLicenceCapacity, num? numberOfHalls, bool? tenant, bool? hasTenant, String? personType, String? economicCode, String? systemCode, String? epidemiologicalCode, String? breedingUniqueId, num? totalCapacity, String? licenceNumber, String? healthCertificateNumber, num? numberOfRequests, String? hatchingDate, String? lastPartyDate, num? numberOfIncubators, num? herdAgeByDay, num? herdAgeByWeek, num? numberOfParty, String? communicationType, String? cooperative, String? dateOfRegister, String? unitStatus, bool? active, dynamic identityDocuments, String? samasatUserCode, String? baseOrder, String? incubationDate, num? walletAmount, num? city, num? cityNumber, String? cityName, num? provinceNumber, String? provinceName, int? walletIdForeignKey, int? poultryIdKey, num? lat, num? long, String? date, num? killingAveAge, num? activeLeftOver, num? killingAveCount, num? killingAveWeight, num? killingLiveWeight, num? killingCarcassesWeight, num? killingLossWeightPercent, num? realKillingAveWeight, num? realKillingLiveWeight, num? realKillingCarcassesWeight, num? realKillingLossWeightPercent, int? interestLicenseId, bool? orderLimit, int? owner, int? userBankInfo, int? wallet +}); + + +@override $PoultryUserCopyWith<$Res>? get user;@override $PoultryAddressCopyWith<$Res>? get address; + +} +/// @nodoc +class __$PoultryCopyWithImpl<$Res> + implements _$PoultryCopyWith<$Res> { + __$PoultryCopyWithImpl(this._self, this._then); + + final _Poultry _self; + final $Res Function(_Poultry) _then; + +/// Create a copy of Poultry +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? user = freezed,Object? address = freezed,Object? key = freezed,Object? trash = freezed,Object? ownerIdForeignKey = freezed,Object? userIdForeignKey = freezed,Object? addressIdForeignKey = freezed,Object? hasChainCompany = freezed,Object? userBankIdForeignKey = freezed,Object? cityOperator = freezed,Object? unitName = freezed,Object? gisCode = freezed,Object? operatingLicenceCapacity = freezed,Object? numberOfHalls = freezed,Object? tenant = freezed,Object? hasTenant = freezed,Object? personType = freezed,Object? economicCode = freezed,Object? systemCode = freezed,Object? epidemiologicalCode = freezed,Object? breedingUniqueId = freezed,Object? totalCapacity = freezed,Object? licenceNumber = freezed,Object? healthCertificateNumber = freezed,Object? numberOfRequests = freezed,Object? hatchingDate = freezed,Object? lastPartyDate = freezed,Object? numberOfIncubators = freezed,Object? herdAgeByDay = freezed,Object? herdAgeByWeek = freezed,Object? numberOfParty = freezed,Object? communicationType = freezed,Object? cooperative = freezed,Object? dateOfRegister = freezed,Object? unitStatus = freezed,Object? active = freezed,Object? identityDocuments = freezed,Object? samasatUserCode = freezed,Object? baseOrder = freezed,Object? incubationDate = freezed,Object? walletAmount = freezed,Object? city = freezed,Object? cityNumber = freezed,Object? cityName = freezed,Object? provinceNumber = freezed,Object? provinceName = freezed,Object? walletIdForeignKey = freezed,Object? poultryIdKey = freezed,Object? lat = freezed,Object? long = freezed,Object? date = freezed,Object? killingAveAge = freezed,Object? activeLeftOver = freezed,Object? killingAveCount = freezed,Object? killingAveWeight = freezed,Object? killingLiveWeight = freezed,Object? killingCarcassesWeight = freezed,Object? killingLossWeightPercent = freezed,Object? realKillingAveWeight = freezed,Object? realKillingLiveWeight = freezed,Object? realKillingCarcassesWeight = freezed,Object? realKillingLossWeightPercent = freezed,Object? interestLicenseId = freezed,Object? orderLimit = freezed,Object? owner = freezed,Object? userBankInfo = freezed,Object? wallet = freezed,}) { + return _then(_Poultry( +id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable +as int?,user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable +as PoultryUser?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable +as PoultryAddress?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable +as bool?,ownerIdForeignKey: freezed == ownerIdForeignKey ? _self.ownerIdForeignKey : ownerIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,userIdForeignKey: freezed == userIdForeignKey ? _self.userIdForeignKey : userIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,addressIdForeignKey: freezed == addressIdForeignKey ? _self.addressIdForeignKey : addressIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,hasChainCompany: freezed == hasChainCompany ? _self.hasChainCompany : hasChainCompany // ignore: cast_nullable_to_non_nullable +as bool?,userBankIdForeignKey: freezed == userBankIdForeignKey ? _self.userBankIdForeignKey : userBankIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,cityOperator: freezed == cityOperator ? _self.cityOperator : cityOperator // ignore: cast_nullable_to_non_nullable +as String?,unitName: freezed == unitName ? _self.unitName : unitName // ignore: cast_nullable_to_non_nullable +as String?,gisCode: freezed == gisCode ? _self.gisCode : gisCode // ignore: cast_nullable_to_non_nullable +as String?,operatingLicenceCapacity: freezed == operatingLicenceCapacity ? _self.operatingLicenceCapacity : operatingLicenceCapacity // ignore: cast_nullable_to_non_nullable +as num?,numberOfHalls: freezed == numberOfHalls ? _self.numberOfHalls : numberOfHalls // ignore: cast_nullable_to_non_nullable +as num?,tenant: freezed == tenant ? _self.tenant : tenant // ignore: cast_nullable_to_non_nullable +as bool?,hasTenant: freezed == hasTenant ? _self.hasTenant : hasTenant // ignore: cast_nullable_to_non_nullable +as bool?,personType: freezed == personType ? _self.personType : personType // ignore: cast_nullable_to_non_nullable +as String?,economicCode: freezed == economicCode ? _self.economicCode : economicCode // ignore: cast_nullable_to_non_nullable +as String?,systemCode: freezed == systemCode ? _self.systemCode : systemCode // ignore: cast_nullable_to_non_nullable +as String?,epidemiologicalCode: freezed == epidemiologicalCode ? _self.epidemiologicalCode : epidemiologicalCode // ignore: cast_nullable_to_non_nullable +as String?,breedingUniqueId: freezed == breedingUniqueId ? _self.breedingUniqueId : breedingUniqueId // ignore: cast_nullable_to_non_nullable +as String?,totalCapacity: freezed == totalCapacity ? _self.totalCapacity : totalCapacity // ignore: cast_nullable_to_non_nullable +as num?,licenceNumber: freezed == licenceNumber ? _self.licenceNumber : licenceNumber // ignore: cast_nullable_to_non_nullable +as String?,healthCertificateNumber: freezed == healthCertificateNumber ? _self.healthCertificateNumber : healthCertificateNumber // ignore: cast_nullable_to_non_nullable +as String?,numberOfRequests: freezed == numberOfRequests ? _self.numberOfRequests : numberOfRequests // ignore: cast_nullable_to_non_nullable +as num?,hatchingDate: freezed == hatchingDate ? _self.hatchingDate : hatchingDate // ignore: cast_nullable_to_non_nullable +as String?,lastPartyDate: freezed == lastPartyDate ? _self.lastPartyDate : lastPartyDate // ignore: cast_nullable_to_non_nullable +as String?,numberOfIncubators: freezed == numberOfIncubators ? _self.numberOfIncubators : numberOfIncubators // ignore: cast_nullable_to_non_nullable +as num?,herdAgeByDay: freezed == herdAgeByDay ? _self.herdAgeByDay : herdAgeByDay // ignore: cast_nullable_to_non_nullable +as num?,herdAgeByWeek: freezed == herdAgeByWeek ? _self.herdAgeByWeek : herdAgeByWeek // ignore: cast_nullable_to_non_nullable +as num?,numberOfParty: freezed == numberOfParty ? _self.numberOfParty : numberOfParty // ignore: cast_nullable_to_non_nullable +as num?,communicationType: freezed == communicationType ? _self.communicationType : communicationType // ignore: cast_nullable_to_non_nullable +as String?,cooperative: freezed == cooperative ? _self.cooperative : cooperative // ignore: cast_nullable_to_non_nullable +as String?,dateOfRegister: freezed == dateOfRegister ? _self.dateOfRegister : dateOfRegister // ignore: cast_nullable_to_non_nullable +as String?,unitStatus: freezed == unitStatus ? _self.unitStatus : unitStatus // ignore: cast_nullable_to_non_nullable +as String?,active: freezed == active ? _self.active : active // ignore: cast_nullable_to_non_nullable +as bool?,identityDocuments: freezed == identityDocuments ? _self.identityDocuments : identityDocuments // ignore: cast_nullable_to_non_nullable +as dynamic,samasatUserCode: freezed == samasatUserCode ? _self.samasatUserCode : samasatUserCode // ignore: cast_nullable_to_non_nullable +as String?,baseOrder: freezed == baseOrder ? _self.baseOrder : baseOrder // ignore: cast_nullable_to_non_nullable +as String?,incubationDate: freezed == incubationDate ? _self.incubationDate : incubationDate // ignore: cast_nullable_to_non_nullable +as String?,walletAmount: freezed == walletAmount ? _self.walletAmount : walletAmount // ignore: cast_nullable_to_non_nullable +as num?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as num?,cityNumber: freezed == cityNumber ? _self.cityNumber : cityNumber // ignore: cast_nullable_to_non_nullable +as num?,cityName: freezed == cityName ? _self.cityName : cityName // ignore: cast_nullable_to_non_nullable +as String?,provinceNumber: freezed == provinceNumber ? _self.provinceNumber : provinceNumber // ignore: cast_nullable_to_non_nullable +as num?,provinceName: freezed == provinceName ? _self.provinceName : provinceName // ignore: cast_nullable_to_non_nullable +as String?,walletIdForeignKey: freezed == walletIdForeignKey ? _self.walletIdForeignKey : walletIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,poultryIdKey: freezed == poultryIdKey ? _self.poultryIdKey : poultryIdKey // ignore: cast_nullable_to_non_nullable +as int?,lat: freezed == lat ? _self.lat : lat // ignore: cast_nullable_to_non_nullable +as num?,long: freezed == long ? _self.long : long // ignore: cast_nullable_to_non_nullable +as num?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?,killingAveAge: freezed == killingAveAge ? _self.killingAveAge : killingAveAge // ignore: cast_nullable_to_non_nullable +as num?,activeLeftOver: freezed == activeLeftOver ? _self.activeLeftOver : activeLeftOver // ignore: cast_nullable_to_non_nullable +as num?,killingAveCount: freezed == killingAveCount ? _self.killingAveCount : killingAveCount // ignore: cast_nullable_to_non_nullable +as num?,killingAveWeight: freezed == killingAveWeight ? _self.killingAveWeight : killingAveWeight // ignore: cast_nullable_to_non_nullable +as num?,killingLiveWeight: freezed == killingLiveWeight ? _self.killingLiveWeight : killingLiveWeight // ignore: cast_nullable_to_non_nullable +as num?,killingCarcassesWeight: freezed == killingCarcassesWeight ? _self.killingCarcassesWeight : killingCarcassesWeight // ignore: cast_nullable_to_non_nullable +as num?,killingLossWeightPercent: freezed == killingLossWeightPercent ? _self.killingLossWeightPercent : killingLossWeightPercent // ignore: cast_nullable_to_non_nullable +as num?,realKillingAveWeight: freezed == realKillingAveWeight ? _self.realKillingAveWeight : realKillingAveWeight // ignore: cast_nullable_to_non_nullable +as num?,realKillingLiveWeight: freezed == realKillingLiveWeight ? _self.realKillingLiveWeight : realKillingLiveWeight // ignore: cast_nullable_to_non_nullable +as num?,realKillingCarcassesWeight: freezed == realKillingCarcassesWeight ? _self.realKillingCarcassesWeight : realKillingCarcassesWeight // ignore: cast_nullable_to_non_nullable +as num?,realKillingLossWeightPercent: freezed == realKillingLossWeightPercent ? _self.realKillingLossWeightPercent : realKillingLossWeightPercent // ignore: cast_nullable_to_non_nullable +as num?,interestLicenseId: freezed == interestLicenseId ? _self.interestLicenseId : interestLicenseId // ignore: cast_nullable_to_non_nullable +as int?,orderLimit: freezed == orderLimit ? _self.orderLimit : orderLimit // ignore: cast_nullable_to_non_nullable +as bool?,owner: freezed == owner ? _self.owner : owner // ignore: cast_nullable_to_non_nullable +as int?,userBankInfo: freezed == userBankInfo ? _self.userBankInfo : userBankInfo // ignore: cast_nullable_to_non_nullable +as int?,wallet: freezed == wallet ? _self.wallet : wallet // ignore: cast_nullable_to_non_nullable +as int?, + )); +} + +/// Create a copy of Poultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$PoultryUserCopyWith<$Res>? get user { + if (_self.user == null) { + return null; + } + + return $PoultryUserCopyWith<$Res>(_self.user!, (value) { + return _then(_self.copyWith(user: value)); + }); +}/// Create a copy of Poultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$PoultryAddressCopyWith<$Res>? get address { + if (_self.address == null) { + return null; + } + + return $PoultryAddressCopyWith<$Res>(_self.address!, (value) { + return _then(_self.copyWith(address: value)); + }); +} +} + + +/// @nodoc +mixin _$PoultryUser { + + String? get fullname; String? get mobile; +/// Create a copy of PoultryUser +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$PoultryUserCopyWith get copyWith => _$PoultryUserCopyWithImpl(this as PoultryUser, _$identity); + + /// Serializes this PoultryUser to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is PoultryUser&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.mobile, mobile) || other.mobile == mobile)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,fullname,mobile); + +@override +String toString() { + return 'PoultryUser(fullname: $fullname, mobile: $mobile)'; +} + + +} + +/// @nodoc +abstract mixin class $PoultryUserCopyWith<$Res> { + factory $PoultryUserCopyWith(PoultryUser value, $Res Function(PoultryUser) _then) = _$PoultryUserCopyWithImpl; +@useResult +$Res call({ + String? fullname, String? mobile +}); + + + + +} +/// @nodoc +class _$PoultryUserCopyWithImpl<$Res> + implements $PoultryUserCopyWith<$Res> { + _$PoultryUserCopyWithImpl(this._self, this._then); + + final PoultryUser _self; + final $Res Function(PoultryUser) _then; + +/// Create a copy of PoultryUser +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? fullname = freezed,Object? mobile = freezed,}) { + return _then(_self.copyWith( +fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable +as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [PoultryUser]. +extension PoultryUserPatterns on PoultryUser { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _PoultryUser value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _PoultryUser() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _PoultryUser value) $default,){ +final _that = this; +switch (_that) { +case _PoultryUser(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _PoultryUser value)? $default,){ +final _that = this; +switch (_that) { +case _PoultryUser() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? fullname, String? mobile)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _PoultryUser() when $default != null: +return $default(_that.fullname,_that.mobile);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? fullname, String? mobile) $default,) {final _that = this; +switch (_that) { +case _PoultryUser(): +return $default(_that.fullname,_that.mobile);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? fullname, String? mobile)? $default,) {final _that = this; +switch (_that) { +case _PoultryUser() when $default != null: +return $default(_that.fullname,_that.mobile);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _PoultryUser implements PoultryUser { + const _PoultryUser({this.fullname, this.mobile}); + factory _PoultryUser.fromJson(Map json) => _$PoultryUserFromJson(json); + +@override final String? fullname; +@override final String? mobile; + +/// Create a copy of PoultryUser +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$PoultryUserCopyWith<_PoultryUser> get copyWith => __$PoultryUserCopyWithImpl<_PoultryUser>(this, _$identity); + +@override +Map toJson() { + return _$PoultryUserToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _PoultryUser&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.mobile, mobile) || other.mobile == mobile)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,fullname,mobile); + +@override +String toString() { + return 'PoultryUser(fullname: $fullname, mobile: $mobile)'; +} + + +} + +/// @nodoc +abstract mixin class _$PoultryUserCopyWith<$Res> implements $PoultryUserCopyWith<$Res> { + factory _$PoultryUserCopyWith(_PoultryUser value, $Res Function(_PoultryUser) _then) = __$PoultryUserCopyWithImpl; +@override @useResult +$Res call({ + String? fullname, String? mobile +}); + + + + +} +/// @nodoc +class __$PoultryUserCopyWithImpl<$Res> + implements _$PoultryUserCopyWith<$Res> { + __$PoultryUserCopyWithImpl(this._self, this._then); + + final _PoultryUser _self; + final $Res Function(_PoultryUser) _then; + +/// Create a copy of PoultryUser +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? fullname = freezed,Object? mobile = freezed,}) { + return _then(_PoultryUser( +fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable +as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$PoultryAddress { + + ProvinceRef? get province; CityRef? get city; String? get address; String? get postalCode; +/// Create a copy of PoultryAddress +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$PoultryAddressCopyWith get copyWith => _$PoultryAddressCopyWithImpl(this as PoultryAddress, _$identity); + + /// Serializes this PoultryAddress to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is PoultryAddress&&(identical(other.province, province) || other.province == province)&&(identical(other.city, city) || other.city == city)&&(identical(other.address, address) || other.address == address)&&(identical(other.postalCode, postalCode) || other.postalCode == postalCode)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,province,city,address,postalCode); + +@override +String toString() { + return 'PoultryAddress(province: $province, city: $city, address: $address, postalCode: $postalCode)'; +} + + +} + +/// @nodoc +abstract mixin class $PoultryAddressCopyWith<$Res> { + factory $PoultryAddressCopyWith(PoultryAddress value, $Res Function(PoultryAddress) _then) = _$PoultryAddressCopyWithImpl; +@useResult +$Res call({ + ProvinceRef? province, CityRef? city, String? address, String? postalCode +}); + + +$ProvinceRefCopyWith<$Res>? get province;$CityRefCopyWith<$Res>? get city; + +} +/// @nodoc +class _$PoultryAddressCopyWithImpl<$Res> + implements $PoultryAddressCopyWith<$Res> { + _$PoultryAddressCopyWithImpl(this._self, this._then); + + final PoultryAddress _self; + final $Res Function(PoultryAddress) _then; + +/// Create a copy of PoultryAddress +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? province = freezed,Object? city = freezed,Object? address = freezed,Object? postalCode = freezed,}) { + return _then(_self.copyWith( +province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as ProvinceRef?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as CityRef?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable +as String?,postalCode: freezed == postalCode ? _self.postalCode : postalCode // ignore: cast_nullable_to_non_nullable +as String?, + )); +} +/// Create a copy of PoultryAddress +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ProvinceRefCopyWith<$Res>? get province { + if (_self.province == null) { + return null; + } + + return $ProvinceRefCopyWith<$Res>(_self.province!, (value) { + return _then(_self.copyWith(province: value)); + }); +}/// Create a copy of PoultryAddress +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$CityRefCopyWith<$Res>? get city { + if (_self.city == null) { + return null; + } + + return $CityRefCopyWith<$Res>(_self.city!, (value) { + return _then(_self.copyWith(city: value)); + }); +} +} + + +/// Adds pattern-matching-related methods to [PoultryAddress]. +extension PoultryAddressPatterns on PoultryAddress { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _PoultryAddress value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _PoultryAddress() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _PoultryAddress value) $default,){ +final _that = this; +switch (_that) { +case _PoultryAddress(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _PoultryAddress value)? $default,){ +final _that = this; +switch (_that) { +case _PoultryAddress() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( ProvinceRef? province, CityRef? city, String? address, String? postalCode)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _PoultryAddress() when $default != null: +return $default(_that.province,_that.city,_that.address,_that.postalCode);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( ProvinceRef? province, CityRef? city, String? address, String? postalCode) $default,) {final _that = this; +switch (_that) { +case _PoultryAddress(): +return $default(_that.province,_that.city,_that.address,_that.postalCode);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( ProvinceRef? province, CityRef? city, String? address, String? postalCode)? $default,) {final _that = this; +switch (_that) { +case _PoultryAddress() when $default != null: +return $default(_that.province,_that.city,_that.address,_that.postalCode);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _PoultryAddress implements PoultryAddress { + const _PoultryAddress({this.province, this.city, this.address, this.postalCode}); + factory _PoultryAddress.fromJson(Map json) => _$PoultryAddressFromJson(json); + +@override final ProvinceRef? province; +@override final CityRef? city; +@override final String? address; +@override final String? postalCode; + +/// Create a copy of PoultryAddress +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$PoultryAddressCopyWith<_PoultryAddress> get copyWith => __$PoultryAddressCopyWithImpl<_PoultryAddress>(this, _$identity); + +@override +Map toJson() { + return _$PoultryAddressToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _PoultryAddress&&(identical(other.province, province) || other.province == province)&&(identical(other.city, city) || other.city == city)&&(identical(other.address, address) || other.address == address)&&(identical(other.postalCode, postalCode) || other.postalCode == postalCode)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,province,city,address,postalCode); + +@override +String toString() { + return 'PoultryAddress(province: $province, city: $city, address: $address, postalCode: $postalCode)'; +} + + +} + +/// @nodoc +abstract mixin class _$PoultryAddressCopyWith<$Res> implements $PoultryAddressCopyWith<$Res> { + factory _$PoultryAddressCopyWith(_PoultryAddress value, $Res Function(_PoultryAddress) _then) = __$PoultryAddressCopyWithImpl; +@override @useResult +$Res call({ + ProvinceRef? province, CityRef? city, String? address, String? postalCode +}); + + +@override $ProvinceRefCopyWith<$Res>? get province;@override $CityRefCopyWith<$Res>? get city; + +} +/// @nodoc +class __$PoultryAddressCopyWithImpl<$Res> + implements _$PoultryAddressCopyWith<$Res> { + __$PoultryAddressCopyWithImpl(this._self, this._then); + + final _PoultryAddress _self; + final $Res Function(_PoultryAddress) _then; + +/// Create a copy of PoultryAddress +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? province = freezed,Object? city = freezed,Object? address = freezed,Object? postalCode = freezed,}) { + return _then(_PoultryAddress( +province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as ProvinceRef?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as CityRef?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable +as String?,postalCode: freezed == postalCode ? _self.postalCode : postalCode // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +/// Create a copy of PoultryAddress +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ProvinceRefCopyWith<$Res>? get province { + if (_self.province == null) { + return null; + } + + return $ProvinceRefCopyWith<$Res>(_self.province!, (value) { + return _then(_self.copyWith(province: value)); + }); +}/// Create a copy of PoultryAddress +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$CityRefCopyWith<$Res>? get city { + if (_self.city == null) { + return null; + } + + return $CityRefCopyWith<$Res>(_self.city!, (value) { + return _then(_self.copyWith(city: value)); + }); +} +} + + +/// @nodoc +mixin _$ProvinceRef { + + String? get key; String? get name; +/// Create a copy of ProvinceRef +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ProvinceRefCopyWith get copyWith => _$ProvinceRefCopyWithImpl(this as ProvinceRef, _$identity); + + /// Serializes this ProvinceRef to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is ProvinceRef&&(identical(other.key, key) || other.key == key)&&(identical(other.name, name) || other.name == name)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,name); + +@override +String toString() { + return 'ProvinceRef(key: $key, name: $name)'; +} + + +} + +/// @nodoc +abstract mixin class $ProvinceRefCopyWith<$Res> { + factory $ProvinceRefCopyWith(ProvinceRef value, $Res Function(ProvinceRef) _then) = _$ProvinceRefCopyWithImpl; +@useResult +$Res call({ + String? key, String? name +}); + + + + +} +/// @nodoc +class _$ProvinceRefCopyWithImpl<$Res> + implements $ProvinceRefCopyWith<$Res> { + _$ProvinceRefCopyWithImpl(this._self, this._then); + + final ProvinceRef _self; + final $Res Function(ProvinceRef) _then; + +/// Create a copy of ProvinceRef +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? key = freezed,Object? name = freezed,}) { + return _then(_self.copyWith( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [ProvinceRef]. +extension ProvinceRefPatterns on ProvinceRef { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _ProvinceRef value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _ProvinceRef() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _ProvinceRef value) $default,){ +final _that = this; +switch (_that) { +case _ProvinceRef(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _ProvinceRef value)? $default,){ +final _that = this; +switch (_that) { +case _ProvinceRef() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? key, String? name)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _ProvinceRef() when $default != null: +return $default(_that.key,_that.name);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? key, String? name) $default,) {final _that = this; +switch (_that) { +case _ProvinceRef(): +return $default(_that.key,_that.name);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? key, String? name)? $default,) {final _that = this; +switch (_that) { +case _ProvinceRef() when $default != null: +return $default(_that.key,_that.name);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _ProvinceRef implements ProvinceRef { + const _ProvinceRef({this.key, this.name}); + factory _ProvinceRef.fromJson(Map json) => _$ProvinceRefFromJson(json); + +@override final String? key; +@override final String? name; + +/// Create a copy of ProvinceRef +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ProvinceRefCopyWith<_ProvinceRef> get copyWith => __$ProvinceRefCopyWithImpl<_ProvinceRef>(this, _$identity); + +@override +Map toJson() { + return _$ProvinceRefToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _ProvinceRef&&(identical(other.key, key) || other.key == key)&&(identical(other.name, name) || other.name == name)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,name); + +@override +String toString() { + return 'ProvinceRef(key: $key, name: $name)'; +} + + +} + +/// @nodoc +abstract mixin class _$ProvinceRefCopyWith<$Res> implements $ProvinceRefCopyWith<$Res> { + factory _$ProvinceRefCopyWith(_ProvinceRef value, $Res Function(_ProvinceRef) _then) = __$ProvinceRefCopyWithImpl; +@override @useResult +$Res call({ + String? key, String? name +}); + + + + +} +/// @nodoc +class __$ProvinceRefCopyWithImpl<$Res> + implements _$ProvinceRefCopyWith<$Res> { + __$ProvinceRefCopyWithImpl(this._self, this._then); + + final _ProvinceRef _self; + final $Res Function(_ProvinceRef) _then; + +/// Create a copy of ProvinceRef +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? key = freezed,Object? name = freezed,}) { + return _then(_ProvinceRef( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$CityRef { + + String? get key; String? get name; +/// Create a copy of CityRef +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$CityRefCopyWith get copyWith => _$CityRefCopyWithImpl(this as CityRef, _$identity); + + /// Serializes this CityRef to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is CityRef&&(identical(other.key, key) || other.key == key)&&(identical(other.name, name) || other.name == name)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,name); + +@override +String toString() { + return 'CityRef(key: $key, name: $name)'; +} + + +} + +/// @nodoc +abstract mixin class $CityRefCopyWith<$Res> { + factory $CityRefCopyWith(CityRef value, $Res Function(CityRef) _then) = _$CityRefCopyWithImpl; +@useResult +$Res call({ + String? key, String? name +}); + + + + +} +/// @nodoc +class _$CityRefCopyWithImpl<$Res> + implements $CityRefCopyWith<$Res> { + _$CityRefCopyWithImpl(this._self, this._then); + + final CityRef _self; + final $Res Function(CityRef) _then; + +/// Create a copy of CityRef +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? key = freezed,Object? name = freezed,}) { + return _then(_self.copyWith( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [CityRef]. +extension CityRefPatterns on CityRef { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _CityRef value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _CityRef() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _CityRef value) $default,){ +final _that = this; +switch (_that) { +case _CityRef(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _CityRef value)? $default,){ +final _that = this; +switch (_that) { +case _CityRef() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? key, String? name)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _CityRef() when $default != null: +return $default(_that.key,_that.name);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? key, String? name) $default,) {final _that = this; +switch (_that) { +case _CityRef(): +return $default(_that.key,_that.name);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? key, String? name)? $default,) {final _that = this; +switch (_that) { +case _CityRef() when $default != null: +return $default(_that.key,_that.name);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _CityRef implements CityRef { + const _CityRef({this.key, this.name}); + factory _CityRef.fromJson(Map json) => _$CityRefFromJson(json); + +@override final String? key; +@override final String? name; + +/// Create a copy of CityRef +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$CityRefCopyWith<_CityRef> get copyWith => __$CityRefCopyWithImpl<_CityRef>(this, _$identity); + +@override +Map toJson() { + return _$CityRefToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _CityRef&&(identical(other.key, key) || other.key == key)&&(identical(other.name, name) || other.name == name)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,name); + +@override +String toString() { + return 'CityRef(key: $key, name: $name)'; +} + + +} + +/// @nodoc +abstract mixin class _$CityRefCopyWith<$Res> implements $CityRefCopyWith<$Res> { + factory _$CityRefCopyWith(_CityRef value, $Res Function(_CityRef) _then) = __$CityRefCopyWithImpl; +@override @useResult +$Res call({ + String? key, String? name +}); + + + + +} +/// @nodoc +class __$CityRefCopyWithImpl<$Res> + implements _$CityRefCopyWith<$Res> { + __$CityRefCopyWithImpl(this._self, this._then); + + final _CityRef _self; + final $Res Function(_CityRef) _then; + +/// Create a copy of CityRef +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? key = freezed,Object? name = freezed,}) { + return _then(_CityRef( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$ChainCompany { + + ChainUser? get user; dynamic get userBankInfo; String? get key; bool? get trash; String? get name; String? get city; String? get province; String? get postalCode; String? get address; num? get wallet; +/// Create a copy of ChainCompany +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ChainCompanyCopyWith get copyWith => _$ChainCompanyCopyWithImpl(this as ChainCompany, _$identity); + + /// Serializes this ChainCompany to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is ChainCompany&&(identical(other.user, user) || other.user == user)&&const DeepCollectionEquality().equals(other.userBankInfo, userBankInfo)&&(identical(other.key, key) || other.key == key)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.name, name) || other.name == name)&&(identical(other.city, city) || other.city == city)&&(identical(other.province, province) || other.province == province)&&(identical(other.postalCode, postalCode) || other.postalCode == postalCode)&&(identical(other.address, address) || other.address == address)&&(identical(other.wallet, wallet) || other.wallet == wallet)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,user,const DeepCollectionEquality().hash(userBankInfo),key,trash,name,city,province,postalCode,address,wallet); + +@override +String toString() { + return 'ChainCompany(user: $user, userBankInfo: $userBankInfo, key: $key, trash: $trash, name: $name, city: $city, province: $province, postalCode: $postalCode, address: $address, wallet: $wallet)'; +} + + +} + +/// @nodoc +abstract mixin class $ChainCompanyCopyWith<$Res> { + factory $ChainCompanyCopyWith(ChainCompany value, $Res Function(ChainCompany) _then) = _$ChainCompanyCopyWithImpl; +@useResult +$Res call({ + ChainUser? user, dynamic userBankInfo, String? key, bool? trash, String? name, String? city, String? province, String? postalCode, String? address, num? wallet +}); + + +$ChainUserCopyWith<$Res>? get user; + +} +/// @nodoc +class _$ChainCompanyCopyWithImpl<$Res> + implements $ChainCompanyCopyWith<$Res> { + _$ChainCompanyCopyWithImpl(this._self, this._then); + + final ChainCompany _self; + final $Res Function(ChainCompany) _then; + +/// Create a copy of ChainCompany +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? user = freezed,Object? userBankInfo = freezed,Object? key = freezed,Object? trash = freezed,Object? name = freezed,Object? city = freezed,Object? province = freezed,Object? postalCode = freezed,Object? address = freezed,Object? wallet = freezed,}) { + return _then(_self.copyWith( +user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable +as ChainUser?,userBankInfo: freezed == userBankInfo ? _self.userBankInfo : userBankInfo // ignore: cast_nullable_to_non_nullable +as dynamic,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable +as bool?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as String?,postalCode: freezed == postalCode ? _self.postalCode : postalCode // ignore: cast_nullable_to_non_nullable +as String?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable +as String?,wallet: freezed == wallet ? _self.wallet : wallet // ignore: cast_nullable_to_non_nullable +as num?, + )); +} +/// Create a copy of ChainCompany +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ChainUserCopyWith<$Res>? get user { + if (_self.user == null) { + return null; + } + + return $ChainUserCopyWith<$Res>(_self.user!, (value) { + return _then(_self.copyWith(user: value)); + }); +} +} + + +/// Adds pattern-matching-related methods to [ChainCompany]. +extension ChainCompanyPatterns on ChainCompany { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _ChainCompany value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _ChainCompany() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _ChainCompany value) $default,){ +final _that = this; +switch (_that) { +case _ChainCompany(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _ChainCompany value)? $default,){ +final _that = this; +switch (_that) { +case _ChainCompany() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( ChainUser? user, dynamic userBankInfo, String? key, bool? trash, String? name, String? city, String? province, String? postalCode, String? address, num? wallet)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _ChainCompany() when $default != null: +return $default(_that.user,_that.userBankInfo,_that.key,_that.trash,_that.name,_that.city,_that.province,_that.postalCode,_that.address,_that.wallet);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( ChainUser? user, dynamic userBankInfo, String? key, bool? trash, String? name, String? city, String? province, String? postalCode, String? address, num? wallet) $default,) {final _that = this; +switch (_that) { +case _ChainCompany(): +return $default(_that.user,_that.userBankInfo,_that.key,_that.trash,_that.name,_that.city,_that.province,_that.postalCode,_that.address,_that.wallet);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( ChainUser? user, dynamic userBankInfo, String? key, bool? trash, String? name, String? city, String? province, String? postalCode, String? address, num? wallet)? $default,) {final _that = this; +switch (_that) { +case _ChainCompany() when $default != null: +return $default(_that.user,_that.userBankInfo,_that.key,_that.trash,_that.name,_that.city,_that.province,_that.postalCode,_that.address,_that.wallet);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _ChainCompany implements ChainCompany { + const _ChainCompany({this.user, this.userBankInfo, this.key, this.trash, this.name, this.city, this.province, this.postalCode, this.address, this.wallet}); + factory _ChainCompany.fromJson(Map json) => _$ChainCompanyFromJson(json); + +@override final ChainUser? user; +@override final dynamic userBankInfo; +@override final String? key; +@override final bool? trash; +@override final String? name; +@override final String? city; +@override final String? province; +@override final String? postalCode; +@override final String? address; +@override final num? wallet; + +/// Create a copy of ChainCompany +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ChainCompanyCopyWith<_ChainCompany> get copyWith => __$ChainCompanyCopyWithImpl<_ChainCompany>(this, _$identity); + +@override +Map toJson() { + return _$ChainCompanyToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _ChainCompany&&(identical(other.user, user) || other.user == user)&&const DeepCollectionEquality().equals(other.userBankInfo, userBankInfo)&&(identical(other.key, key) || other.key == key)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.name, name) || other.name == name)&&(identical(other.city, city) || other.city == city)&&(identical(other.province, province) || other.province == province)&&(identical(other.postalCode, postalCode) || other.postalCode == postalCode)&&(identical(other.address, address) || other.address == address)&&(identical(other.wallet, wallet) || other.wallet == wallet)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,user,const DeepCollectionEquality().hash(userBankInfo),key,trash,name,city,province,postalCode,address,wallet); + +@override +String toString() { + return 'ChainCompany(user: $user, userBankInfo: $userBankInfo, key: $key, trash: $trash, name: $name, city: $city, province: $province, postalCode: $postalCode, address: $address, wallet: $wallet)'; +} + + +} + +/// @nodoc +abstract mixin class _$ChainCompanyCopyWith<$Res> implements $ChainCompanyCopyWith<$Res> { + factory _$ChainCompanyCopyWith(_ChainCompany value, $Res Function(_ChainCompany) _then) = __$ChainCompanyCopyWithImpl; +@override @useResult +$Res call({ + ChainUser? user, dynamic userBankInfo, String? key, bool? trash, String? name, String? city, String? province, String? postalCode, String? address, num? wallet +}); + + +@override $ChainUserCopyWith<$Res>? get user; + +} +/// @nodoc +class __$ChainCompanyCopyWithImpl<$Res> + implements _$ChainCompanyCopyWith<$Res> { + __$ChainCompanyCopyWithImpl(this._self, this._then); + + final _ChainCompany _self; + final $Res Function(_ChainCompany) _then; + +/// Create a copy of ChainCompany +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? user = freezed,Object? userBankInfo = freezed,Object? key = freezed,Object? trash = freezed,Object? name = freezed,Object? city = freezed,Object? province = freezed,Object? postalCode = freezed,Object? address = freezed,Object? wallet = freezed,}) { + return _then(_ChainCompany( +user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable +as ChainUser?,userBankInfo: freezed == userBankInfo ? _self.userBankInfo : userBankInfo // ignore: cast_nullable_to_non_nullable +as dynamic,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable +as bool?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as String?,postalCode: freezed == postalCode ? _self.postalCode : postalCode // ignore: cast_nullable_to_non_nullable +as String?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable +as String?,wallet: freezed == wallet ? _self.wallet : wallet // ignore: cast_nullable_to_non_nullable +as num?, + )); +} + +/// Create a copy of ChainCompany +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ChainUserCopyWith<$Res>? get user { + if (_self.user == null) { + return null; + } + + return $ChainUserCopyWith<$Res>(_self.user!, (value) { + return _then(_self.copyWith(user: value)); + }); +} +} + + +/// @nodoc +mixin _$ChainUser { + + List? get role; String? get city; String? get province; String? get key; String? get userGateWayId; int? get userDjangoIdForeignKey; int? get provinceIdForeignKey; int? get cityIdForeignKey; int? get systemUserProfileIdKey; String? get fullname; String? get firstName; String? get lastName; String? get nationalCode; String? get nationalCodeImage; String? get nationalId; String? get mobile; String? get birthday; String? get image; String? get password; bool? get active; ChainUserState? get state; num? get baseOrder; num? get cityNumber; String? get cityName; num? get provinceNumber; String? get provinceName; String? get unitName; String? get unitNationalId; String? get unitRegistrationNumber; String? get unitEconomicalNumber; String? get unitProvince; String? get unitCity; String? get unitPostalCode; String? get unitAddress; +/// Create a copy of ChainUser +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ChainUserCopyWith get copyWith => _$ChainUserCopyWithImpl(this as ChainUser, _$identity); + + /// Serializes this ChainUser to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is ChainUser&&const DeepCollectionEquality().equals(other.role, role)&&(identical(other.city, city) || other.city == city)&&(identical(other.province, province) || other.province == province)&&(identical(other.key, key) || other.key == key)&&(identical(other.userGateWayId, userGateWayId) || other.userGateWayId == userGateWayId)&&(identical(other.userDjangoIdForeignKey, userDjangoIdForeignKey) || other.userDjangoIdForeignKey == userDjangoIdForeignKey)&&(identical(other.provinceIdForeignKey, provinceIdForeignKey) || other.provinceIdForeignKey == provinceIdForeignKey)&&(identical(other.cityIdForeignKey, cityIdForeignKey) || other.cityIdForeignKey == cityIdForeignKey)&&(identical(other.systemUserProfileIdKey, systemUserProfileIdKey) || other.systemUserProfileIdKey == systemUserProfileIdKey)&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.nationalCode, nationalCode) || other.nationalCode == nationalCode)&&(identical(other.nationalCodeImage, nationalCodeImage) || other.nationalCodeImage == nationalCodeImage)&&(identical(other.nationalId, nationalId) || other.nationalId == nationalId)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.birthday, birthday) || other.birthday == birthday)&&(identical(other.image, image) || other.image == image)&&(identical(other.password, password) || other.password == password)&&(identical(other.active, active) || other.active == active)&&(identical(other.state, state) || other.state == state)&&(identical(other.baseOrder, baseOrder) || other.baseOrder == baseOrder)&&(identical(other.cityNumber, cityNumber) || other.cityNumber == cityNumber)&&(identical(other.cityName, cityName) || other.cityName == cityName)&&(identical(other.provinceNumber, provinceNumber) || other.provinceNumber == provinceNumber)&&(identical(other.provinceName, provinceName) || other.provinceName == provinceName)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.unitNationalId, unitNationalId) || other.unitNationalId == unitNationalId)&&(identical(other.unitRegistrationNumber, unitRegistrationNumber) || other.unitRegistrationNumber == unitRegistrationNumber)&&(identical(other.unitEconomicalNumber, unitEconomicalNumber) || other.unitEconomicalNumber == unitEconomicalNumber)&&(identical(other.unitProvince, unitProvince) || other.unitProvince == unitProvince)&&(identical(other.unitCity, unitCity) || other.unitCity == unitCity)&&(identical(other.unitPostalCode, unitPostalCode) || other.unitPostalCode == unitPostalCode)&&(identical(other.unitAddress, unitAddress) || other.unitAddress == unitAddress)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,const DeepCollectionEquality().hash(role),city,province,key,userGateWayId,userDjangoIdForeignKey,provinceIdForeignKey,cityIdForeignKey,systemUserProfileIdKey,fullname,firstName,lastName,nationalCode,nationalCodeImage,nationalId,mobile,birthday,image,password,active,state,baseOrder,cityNumber,cityName,provinceNumber,provinceName,unitName,unitNationalId,unitRegistrationNumber,unitEconomicalNumber,unitProvince,unitCity,unitPostalCode,unitAddress]); + +@override +String toString() { + return 'ChainUser(role: $role, city: $city, province: $province, key: $key, userGateWayId: $userGateWayId, userDjangoIdForeignKey: $userDjangoIdForeignKey, provinceIdForeignKey: $provinceIdForeignKey, cityIdForeignKey: $cityIdForeignKey, systemUserProfileIdKey: $systemUserProfileIdKey, fullname: $fullname, firstName: $firstName, lastName: $lastName, nationalCode: $nationalCode, nationalCodeImage: $nationalCodeImage, nationalId: $nationalId, mobile: $mobile, birthday: $birthday, image: $image, password: $password, active: $active, state: $state, baseOrder: $baseOrder, cityNumber: $cityNumber, cityName: $cityName, provinceNumber: $provinceNumber, provinceName: $provinceName, unitName: $unitName, unitNationalId: $unitNationalId, unitRegistrationNumber: $unitRegistrationNumber, unitEconomicalNumber: $unitEconomicalNumber, unitProvince: $unitProvince, unitCity: $unitCity, unitPostalCode: $unitPostalCode, unitAddress: $unitAddress)'; +} + + +} + +/// @nodoc +abstract mixin class $ChainUserCopyWith<$Res> { + factory $ChainUserCopyWith(ChainUser value, $Res Function(ChainUser) _then) = _$ChainUserCopyWithImpl; +@useResult +$Res call({ + List? role, String? city, String? province, String? key, String? userGateWayId, int? userDjangoIdForeignKey, int? provinceIdForeignKey, int? cityIdForeignKey, int? systemUserProfileIdKey, String? fullname, String? firstName, String? lastName, String? nationalCode, String? nationalCodeImage, String? nationalId, String? mobile, String? birthday, String? image, String? password, bool? active, ChainUserState? state, num? baseOrder, num? cityNumber, String? cityName, num? provinceNumber, String? provinceName, String? unitName, String? unitNationalId, String? unitRegistrationNumber, String? unitEconomicalNumber, String? unitProvince, String? unitCity, String? unitPostalCode, String? unitAddress +}); + + +$ChainUserStateCopyWith<$Res>? get state; + +} +/// @nodoc +class _$ChainUserCopyWithImpl<$Res> + implements $ChainUserCopyWith<$Res> { + _$ChainUserCopyWithImpl(this._self, this._then); + + final ChainUser _self; + final $Res Function(ChainUser) _then; + +/// Create a copy of ChainUser +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? role = freezed,Object? city = freezed,Object? province = freezed,Object? key = freezed,Object? userGateWayId = freezed,Object? userDjangoIdForeignKey = freezed,Object? provinceIdForeignKey = freezed,Object? cityIdForeignKey = freezed,Object? systemUserProfileIdKey = freezed,Object? fullname = freezed,Object? firstName = freezed,Object? lastName = freezed,Object? nationalCode = freezed,Object? nationalCodeImage = freezed,Object? nationalId = freezed,Object? mobile = freezed,Object? birthday = freezed,Object? image = freezed,Object? password = freezed,Object? active = freezed,Object? state = freezed,Object? baseOrder = freezed,Object? cityNumber = freezed,Object? cityName = freezed,Object? provinceNumber = freezed,Object? provinceName = freezed,Object? unitName = freezed,Object? unitNationalId = freezed,Object? unitRegistrationNumber = freezed,Object? unitEconomicalNumber = freezed,Object? unitProvince = freezed,Object? unitCity = freezed,Object? unitPostalCode = freezed,Object? unitAddress = freezed,}) { + return _then(_self.copyWith( +role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable +as List?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as String?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,userGateWayId: freezed == userGateWayId ? _self.userGateWayId : userGateWayId // ignore: cast_nullable_to_non_nullable +as String?,userDjangoIdForeignKey: freezed == userDjangoIdForeignKey ? _self.userDjangoIdForeignKey : userDjangoIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,provinceIdForeignKey: freezed == provinceIdForeignKey ? _self.provinceIdForeignKey : provinceIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,cityIdForeignKey: freezed == cityIdForeignKey ? _self.cityIdForeignKey : cityIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,systemUserProfileIdKey: freezed == systemUserProfileIdKey ? _self.systemUserProfileIdKey : systemUserProfileIdKey // ignore: cast_nullable_to_non_nullable +as int?,fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable +as String?,firstName: freezed == firstName ? _self.firstName : firstName // ignore: cast_nullable_to_non_nullable +as String?,lastName: freezed == lastName ? _self.lastName : lastName // ignore: cast_nullable_to_non_nullable +as String?,nationalCode: freezed == nationalCode ? _self.nationalCode : nationalCode // ignore: cast_nullable_to_non_nullable +as String?,nationalCodeImage: freezed == nationalCodeImage ? _self.nationalCodeImage : nationalCodeImage // ignore: cast_nullable_to_non_nullable +as String?,nationalId: freezed == nationalId ? _self.nationalId : nationalId // ignore: cast_nullable_to_non_nullable +as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?,birthday: freezed == birthday ? _self.birthday : birthday // ignore: cast_nullable_to_non_nullable +as String?,image: freezed == image ? _self.image : image // ignore: cast_nullable_to_non_nullable +as String?,password: freezed == password ? _self.password : password // ignore: cast_nullable_to_non_nullable +as String?,active: freezed == active ? _self.active : active // ignore: cast_nullable_to_non_nullable +as bool?,state: freezed == state ? _self.state : state // ignore: cast_nullable_to_non_nullable +as ChainUserState?,baseOrder: freezed == baseOrder ? _self.baseOrder : baseOrder // ignore: cast_nullable_to_non_nullable +as num?,cityNumber: freezed == cityNumber ? _self.cityNumber : cityNumber // ignore: cast_nullable_to_non_nullable +as num?,cityName: freezed == cityName ? _self.cityName : cityName // ignore: cast_nullable_to_non_nullable +as String?,provinceNumber: freezed == provinceNumber ? _self.provinceNumber : provinceNumber // ignore: cast_nullable_to_non_nullable +as num?,provinceName: freezed == provinceName ? _self.provinceName : provinceName // ignore: cast_nullable_to_non_nullable +as String?,unitName: freezed == unitName ? _self.unitName : unitName // ignore: cast_nullable_to_non_nullable +as String?,unitNationalId: freezed == unitNationalId ? _self.unitNationalId : unitNationalId // ignore: cast_nullable_to_non_nullable +as String?,unitRegistrationNumber: freezed == unitRegistrationNumber ? _self.unitRegistrationNumber : unitRegistrationNumber // ignore: cast_nullable_to_non_nullable +as String?,unitEconomicalNumber: freezed == unitEconomicalNumber ? _self.unitEconomicalNumber : unitEconomicalNumber // ignore: cast_nullable_to_non_nullable +as String?,unitProvince: freezed == unitProvince ? _self.unitProvince : unitProvince // ignore: cast_nullable_to_non_nullable +as String?,unitCity: freezed == unitCity ? _self.unitCity : unitCity // ignore: cast_nullable_to_non_nullable +as String?,unitPostalCode: freezed == unitPostalCode ? _self.unitPostalCode : unitPostalCode // ignore: cast_nullable_to_non_nullable +as String?,unitAddress: freezed == unitAddress ? _self.unitAddress : unitAddress // ignore: cast_nullable_to_non_nullable +as String?, + )); +} +/// Create a copy of ChainUser +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ChainUserStateCopyWith<$Res>? get state { + if (_self.state == null) { + return null; + } + + return $ChainUserStateCopyWith<$Res>(_self.state!, (value) { + return _then(_self.copyWith(state: value)); + }); +} +} + + +/// Adds pattern-matching-related methods to [ChainUser]. +extension ChainUserPatterns on ChainUser { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _ChainUser value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _ChainUser() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _ChainUser value) $default,){ +final _that = this; +switch (_that) { +case _ChainUser(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _ChainUser value)? $default,){ +final _that = this; +switch (_that) { +case _ChainUser() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( List? role, String? city, String? province, String? key, String? userGateWayId, int? userDjangoIdForeignKey, int? provinceIdForeignKey, int? cityIdForeignKey, int? systemUserProfileIdKey, String? fullname, String? firstName, String? lastName, String? nationalCode, String? nationalCodeImage, String? nationalId, String? mobile, String? birthday, String? image, String? password, bool? active, ChainUserState? state, num? baseOrder, num? cityNumber, String? cityName, num? provinceNumber, String? provinceName, String? unitName, String? unitNationalId, String? unitRegistrationNumber, String? unitEconomicalNumber, String? unitProvince, String? unitCity, String? unitPostalCode, String? unitAddress)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _ChainUser() when $default != null: +return $default(_that.role,_that.city,_that.province,_that.key,_that.userGateWayId,_that.userDjangoIdForeignKey,_that.provinceIdForeignKey,_that.cityIdForeignKey,_that.systemUserProfileIdKey,_that.fullname,_that.firstName,_that.lastName,_that.nationalCode,_that.nationalCodeImage,_that.nationalId,_that.mobile,_that.birthday,_that.image,_that.password,_that.active,_that.state,_that.baseOrder,_that.cityNumber,_that.cityName,_that.provinceNumber,_that.provinceName,_that.unitName,_that.unitNationalId,_that.unitRegistrationNumber,_that.unitEconomicalNumber,_that.unitProvince,_that.unitCity,_that.unitPostalCode,_that.unitAddress);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( List? role, String? city, String? province, String? key, String? userGateWayId, int? userDjangoIdForeignKey, int? provinceIdForeignKey, int? cityIdForeignKey, int? systemUserProfileIdKey, String? fullname, String? firstName, String? lastName, String? nationalCode, String? nationalCodeImage, String? nationalId, String? mobile, String? birthday, String? image, String? password, bool? active, ChainUserState? state, num? baseOrder, num? cityNumber, String? cityName, num? provinceNumber, String? provinceName, String? unitName, String? unitNationalId, String? unitRegistrationNumber, String? unitEconomicalNumber, String? unitProvince, String? unitCity, String? unitPostalCode, String? unitAddress) $default,) {final _that = this; +switch (_that) { +case _ChainUser(): +return $default(_that.role,_that.city,_that.province,_that.key,_that.userGateWayId,_that.userDjangoIdForeignKey,_that.provinceIdForeignKey,_that.cityIdForeignKey,_that.systemUserProfileIdKey,_that.fullname,_that.firstName,_that.lastName,_that.nationalCode,_that.nationalCodeImage,_that.nationalId,_that.mobile,_that.birthday,_that.image,_that.password,_that.active,_that.state,_that.baseOrder,_that.cityNumber,_that.cityName,_that.provinceNumber,_that.provinceName,_that.unitName,_that.unitNationalId,_that.unitRegistrationNumber,_that.unitEconomicalNumber,_that.unitProvince,_that.unitCity,_that.unitPostalCode,_that.unitAddress);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( List? role, String? city, String? province, String? key, String? userGateWayId, int? userDjangoIdForeignKey, int? provinceIdForeignKey, int? cityIdForeignKey, int? systemUserProfileIdKey, String? fullname, String? firstName, String? lastName, String? nationalCode, String? nationalCodeImage, String? nationalId, String? mobile, String? birthday, String? image, String? password, bool? active, ChainUserState? state, num? baseOrder, num? cityNumber, String? cityName, num? provinceNumber, String? provinceName, String? unitName, String? unitNationalId, String? unitRegistrationNumber, String? unitEconomicalNumber, String? unitProvince, String? unitCity, String? unitPostalCode, String? unitAddress)? $default,) {final _that = this; +switch (_that) { +case _ChainUser() when $default != null: +return $default(_that.role,_that.city,_that.province,_that.key,_that.userGateWayId,_that.userDjangoIdForeignKey,_that.provinceIdForeignKey,_that.cityIdForeignKey,_that.systemUserProfileIdKey,_that.fullname,_that.firstName,_that.lastName,_that.nationalCode,_that.nationalCodeImage,_that.nationalId,_that.mobile,_that.birthday,_that.image,_that.password,_that.active,_that.state,_that.baseOrder,_that.cityNumber,_that.cityName,_that.provinceNumber,_that.provinceName,_that.unitName,_that.unitNationalId,_that.unitRegistrationNumber,_that.unitEconomicalNumber,_that.unitProvince,_that.unitCity,_that.unitPostalCode,_that.unitAddress);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _ChainUser implements ChainUser { + const _ChainUser({final List? role, this.city, this.province, this.key, this.userGateWayId, this.userDjangoIdForeignKey, this.provinceIdForeignKey, this.cityIdForeignKey, this.systemUserProfileIdKey, this.fullname, this.firstName, this.lastName, this.nationalCode, this.nationalCodeImage, this.nationalId, this.mobile, this.birthday, this.image, this.password, this.active, this.state, this.baseOrder, this.cityNumber, this.cityName, this.provinceNumber, this.provinceName, this.unitName, this.unitNationalId, this.unitRegistrationNumber, this.unitEconomicalNumber, this.unitProvince, this.unitCity, this.unitPostalCode, this.unitAddress}): _role = role; + factory _ChainUser.fromJson(Map json) => _$ChainUserFromJson(json); + + final List? _role; +@override List? get role { + final value = _role; + if (value == null) return null; + if (_role is EqualUnmodifiableListView) return _role; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + +@override final String? city; +@override final String? province; +@override final String? key; +@override final String? userGateWayId; +@override final int? userDjangoIdForeignKey; +@override final int? provinceIdForeignKey; +@override final int? cityIdForeignKey; +@override final int? systemUserProfileIdKey; +@override final String? fullname; +@override final String? firstName; +@override final String? lastName; +@override final String? nationalCode; +@override final String? nationalCodeImage; +@override final String? nationalId; +@override final String? mobile; +@override final String? birthday; +@override final String? image; +@override final String? password; +@override final bool? active; +@override final ChainUserState? state; +@override final num? baseOrder; +@override final num? cityNumber; +@override final String? cityName; +@override final num? provinceNumber; +@override final String? provinceName; +@override final String? unitName; +@override final String? unitNationalId; +@override final String? unitRegistrationNumber; +@override final String? unitEconomicalNumber; +@override final String? unitProvince; +@override final String? unitCity; +@override final String? unitPostalCode; +@override final String? unitAddress; + +/// Create a copy of ChainUser +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ChainUserCopyWith<_ChainUser> get copyWith => __$ChainUserCopyWithImpl<_ChainUser>(this, _$identity); + +@override +Map toJson() { + return _$ChainUserToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _ChainUser&&const DeepCollectionEquality().equals(other._role, _role)&&(identical(other.city, city) || other.city == city)&&(identical(other.province, province) || other.province == province)&&(identical(other.key, key) || other.key == key)&&(identical(other.userGateWayId, userGateWayId) || other.userGateWayId == userGateWayId)&&(identical(other.userDjangoIdForeignKey, userDjangoIdForeignKey) || other.userDjangoIdForeignKey == userDjangoIdForeignKey)&&(identical(other.provinceIdForeignKey, provinceIdForeignKey) || other.provinceIdForeignKey == provinceIdForeignKey)&&(identical(other.cityIdForeignKey, cityIdForeignKey) || other.cityIdForeignKey == cityIdForeignKey)&&(identical(other.systemUserProfileIdKey, systemUserProfileIdKey) || other.systemUserProfileIdKey == systemUserProfileIdKey)&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.nationalCode, nationalCode) || other.nationalCode == nationalCode)&&(identical(other.nationalCodeImage, nationalCodeImage) || other.nationalCodeImage == nationalCodeImage)&&(identical(other.nationalId, nationalId) || other.nationalId == nationalId)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.birthday, birthday) || other.birthday == birthday)&&(identical(other.image, image) || other.image == image)&&(identical(other.password, password) || other.password == password)&&(identical(other.active, active) || other.active == active)&&(identical(other.state, state) || other.state == state)&&(identical(other.baseOrder, baseOrder) || other.baseOrder == baseOrder)&&(identical(other.cityNumber, cityNumber) || other.cityNumber == cityNumber)&&(identical(other.cityName, cityName) || other.cityName == cityName)&&(identical(other.provinceNumber, provinceNumber) || other.provinceNumber == provinceNumber)&&(identical(other.provinceName, provinceName) || other.provinceName == provinceName)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.unitNationalId, unitNationalId) || other.unitNationalId == unitNationalId)&&(identical(other.unitRegistrationNumber, unitRegistrationNumber) || other.unitRegistrationNumber == unitRegistrationNumber)&&(identical(other.unitEconomicalNumber, unitEconomicalNumber) || other.unitEconomicalNumber == unitEconomicalNumber)&&(identical(other.unitProvince, unitProvince) || other.unitProvince == unitProvince)&&(identical(other.unitCity, unitCity) || other.unitCity == unitCity)&&(identical(other.unitPostalCode, unitPostalCode) || other.unitPostalCode == unitPostalCode)&&(identical(other.unitAddress, unitAddress) || other.unitAddress == unitAddress)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,const DeepCollectionEquality().hash(_role),city,province,key,userGateWayId,userDjangoIdForeignKey,provinceIdForeignKey,cityIdForeignKey,systemUserProfileIdKey,fullname,firstName,lastName,nationalCode,nationalCodeImage,nationalId,mobile,birthday,image,password,active,state,baseOrder,cityNumber,cityName,provinceNumber,provinceName,unitName,unitNationalId,unitRegistrationNumber,unitEconomicalNumber,unitProvince,unitCity,unitPostalCode,unitAddress]); + +@override +String toString() { + return 'ChainUser(role: $role, city: $city, province: $province, key: $key, userGateWayId: $userGateWayId, userDjangoIdForeignKey: $userDjangoIdForeignKey, provinceIdForeignKey: $provinceIdForeignKey, cityIdForeignKey: $cityIdForeignKey, systemUserProfileIdKey: $systemUserProfileIdKey, fullname: $fullname, firstName: $firstName, lastName: $lastName, nationalCode: $nationalCode, nationalCodeImage: $nationalCodeImage, nationalId: $nationalId, mobile: $mobile, birthday: $birthday, image: $image, password: $password, active: $active, state: $state, baseOrder: $baseOrder, cityNumber: $cityNumber, cityName: $cityName, provinceNumber: $provinceNumber, provinceName: $provinceName, unitName: $unitName, unitNationalId: $unitNationalId, unitRegistrationNumber: $unitRegistrationNumber, unitEconomicalNumber: $unitEconomicalNumber, unitProvince: $unitProvince, unitCity: $unitCity, unitPostalCode: $unitPostalCode, unitAddress: $unitAddress)'; +} + + +} + +/// @nodoc +abstract mixin class _$ChainUserCopyWith<$Res> implements $ChainUserCopyWith<$Res> { + factory _$ChainUserCopyWith(_ChainUser value, $Res Function(_ChainUser) _then) = __$ChainUserCopyWithImpl; +@override @useResult +$Res call({ + List? role, String? city, String? province, String? key, String? userGateWayId, int? userDjangoIdForeignKey, int? provinceIdForeignKey, int? cityIdForeignKey, int? systemUserProfileIdKey, String? fullname, String? firstName, String? lastName, String? nationalCode, String? nationalCodeImage, String? nationalId, String? mobile, String? birthday, String? image, String? password, bool? active, ChainUserState? state, num? baseOrder, num? cityNumber, String? cityName, num? provinceNumber, String? provinceName, String? unitName, String? unitNationalId, String? unitRegistrationNumber, String? unitEconomicalNumber, String? unitProvince, String? unitCity, String? unitPostalCode, String? unitAddress +}); + + +@override $ChainUserStateCopyWith<$Res>? get state; + +} +/// @nodoc +class __$ChainUserCopyWithImpl<$Res> + implements _$ChainUserCopyWith<$Res> { + __$ChainUserCopyWithImpl(this._self, this._then); + + final _ChainUser _self; + final $Res Function(_ChainUser) _then; + +/// Create a copy of ChainUser +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? role = freezed,Object? city = freezed,Object? province = freezed,Object? key = freezed,Object? userGateWayId = freezed,Object? userDjangoIdForeignKey = freezed,Object? provinceIdForeignKey = freezed,Object? cityIdForeignKey = freezed,Object? systemUserProfileIdKey = freezed,Object? fullname = freezed,Object? firstName = freezed,Object? lastName = freezed,Object? nationalCode = freezed,Object? nationalCodeImage = freezed,Object? nationalId = freezed,Object? mobile = freezed,Object? birthday = freezed,Object? image = freezed,Object? password = freezed,Object? active = freezed,Object? state = freezed,Object? baseOrder = freezed,Object? cityNumber = freezed,Object? cityName = freezed,Object? provinceNumber = freezed,Object? provinceName = freezed,Object? unitName = freezed,Object? unitNationalId = freezed,Object? unitRegistrationNumber = freezed,Object? unitEconomicalNumber = freezed,Object? unitProvince = freezed,Object? unitCity = freezed,Object? unitPostalCode = freezed,Object? unitAddress = freezed,}) { + return _then(_ChainUser( +role: freezed == role ? _self._role : role // ignore: cast_nullable_to_non_nullable +as List?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as String?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,userGateWayId: freezed == userGateWayId ? _self.userGateWayId : userGateWayId // ignore: cast_nullable_to_non_nullable +as String?,userDjangoIdForeignKey: freezed == userDjangoIdForeignKey ? _self.userDjangoIdForeignKey : userDjangoIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,provinceIdForeignKey: freezed == provinceIdForeignKey ? _self.provinceIdForeignKey : provinceIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,cityIdForeignKey: freezed == cityIdForeignKey ? _self.cityIdForeignKey : cityIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,systemUserProfileIdKey: freezed == systemUserProfileIdKey ? _self.systemUserProfileIdKey : systemUserProfileIdKey // ignore: cast_nullable_to_non_nullable +as int?,fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable +as String?,firstName: freezed == firstName ? _self.firstName : firstName // ignore: cast_nullable_to_non_nullable +as String?,lastName: freezed == lastName ? _self.lastName : lastName // ignore: cast_nullable_to_non_nullable +as String?,nationalCode: freezed == nationalCode ? _self.nationalCode : nationalCode // ignore: cast_nullable_to_non_nullable +as String?,nationalCodeImage: freezed == nationalCodeImage ? _self.nationalCodeImage : nationalCodeImage // ignore: cast_nullable_to_non_nullable +as String?,nationalId: freezed == nationalId ? _self.nationalId : nationalId // ignore: cast_nullable_to_non_nullable +as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?,birthday: freezed == birthday ? _self.birthday : birthday // ignore: cast_nullable_to_non_nullable +as String?,image: freezed == image ? _self.image : image // ignore: cast_nullable_to_non_nullable +as String?,password: freezed == password ? _self.password : password // ignore: cast_nullable_to_non_nullable +as String?,active: freezed == active ? _self.active : active // ignore: cast_nullable_to_non_nullable +as bool?,state: freezed == state ? _self.state : state // ignore: cast_nullable_to_non_nullable +as ChainUserState?,baseOrder: freezed == baseOrder ? _self.baseOrder : baseOrder // ignore: cast_nullable_to_non_nullable +as num?,cityNumber: freezed == cityNumber ? _self.cityNumber : cityNumber // ignore: cast_nullable_to_non_nullable +as num?,cityName: freezed == cityName ? _self.cityName : cityName // ignore: cast_nullable_to_non_nullable +as String?,provinceNumber: freezed == provinceNumber ? _self.provinceNumber : provinceNumber // ignore: cast_nullable_to_non_nullable +as num?,provinceName: freezed == provinceName ? _self.provinceName : provinceName // ignore: cast_nullable_to_non_nullable +as String?,unitName: freezed == unitName ? _self.unitName : unitName // ignore: cast_nullable_to_non_nullable +as String?,unitNationalId: freezed == unitNationalId ? _self.unitNationalId : unitNationalId // ignore: cast_nullable_to_non_nullable +as String?,unitRegistrationNumber: freezed == unitRegistrationNumber ? _self.unitRegistrationNumber : unitRegistrationNumber // ignore: cast_nullable_to_non_nullable +as String?,unitEconomicalNumber: freezed == unitEconomicalNumber ? _self.unitEconomicalNumber : unitEconomicalNumber // ignore: cast_nullable_to_non_nullable +as String?,unitProvince: freezed == unitProvince ? _self.unitProvince : unitProvince // ignore: cast_nullable_to_non_nullable +as String?,unitCity: freezed == unitCity ? _self.unitCity : unitCity // ignore: cast_nullable_to_non_nullable +as String?,unitPostalCode: freezed == unitPostalCode ? _self.unitPostalCode : unitPostalCode // ignore: cast_nullable_to_non_nullable +as String?,unitAddress: freezed == unitAddress ? _self.unitAddress : unitAddress // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +/// Create a copy of ChainUser +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ChainUserStateCopyWith<$Res>? get state { + if (_self.state == null) { + return null; + } + + return $ChainUserStateCopyWith<$Res>(_self.state!, (value) { + return _then(_self.copyWith(state: value)); + }); +} +} + + +/// @nodoc +mixin _$ChainUserState { + + String? get city; String? get image; String? get mobile; String? get birthday; String? get province; String? get lastName; String? get firstName; String? get nationalId; String? get nationalCode; +/// Create a copy of ChainUserState +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ChainUserStateCopyWith get copyWith => _$ChainUserStateCopyWithImpl(this as ChainUserState, _$identity); + + /// Serializes this ChainUserState to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is ChainUserState&&(identical(other.city, city) || other.city == city)&&(identical(other.image, image) || other.image == image)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.birthday, birthday) || other.birthday == birthday)&&(identical(other.province, province) || other.province == province)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.nationalId, nationalId) || other.nationalId == nationalId)&&(identical(other.nationalCode, nationalCode) || other.nationalCode == nationalCode)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,city,image,mobile,birthday,province,lastName,firstName,nationalId,nationalCode); + +@override +String toString() { + return 'ChainUserState(city: $city, image: $image, mobile: $mobile, birthday: $birthday, province: $province, lastName: $lastName, firstName: $firstName, nationalId: $nationalId, nationalCode: $nationalCode)'; +} + + +} + +/// @nodoc +abstract mixin class $ChainUserStateCopyWith<$Res> { + factory $ChainUserStateCopyWith(ChainUserState value, $Res Function(ChainUserState) _then) = _$ChainUserStateCopyWithImpl; +@useResult +$Res call({ + String? city, String? image, String? mobile, String? birthday, String? province, String? lastName, String? firstName, String? nationalId, String? nationalCode +}); + + + + +} +/// @nodoc +class _$ChainUserStateCopyWithImpl<$Res> + implements $ChainUserStateCopyWith<$Res> { + _$ChainUserStateCopyWithImpl(this._self, this._then); + + final ChainUserState _self; + final $Res Function(ChainUserState) _then; + +/// Create a copy of ChainUserState +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? city = freezed,Object? image = freezed,Object? mobile = freezed,Object? birthday = freezed,Object? province = freezed,Object? lastName = freezed,Object? firstName = freezed,Object? nationalId = freezed,Object? nationalCode = freezed,}) { + return _then(_self.copyWith( +city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as String?,image: freezed == image ? _self.image : image // ignore: cast_nullable_to_non_nullable +as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?,birthday: freezed == birthday ? _self.birthday : birthday // ignore: cast_nullable_to_non_nullable +as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as String?,lastName: freezed == lastName ? _self.lastName : lastName // ignore: cast_nullable_to_non_nullable +as String?,firstName: freezed == firstName ? _self.firstName : firstName // ignore: cast_nullable_to_non_nullable +as String?,nationalId: freezed == nationalId ? _self.nationalId : nationalId // ignore: cast_nullable_to_non_nullable +as String?,nationalCode: freezed == nationalCode ? _self.nationalCode : nationalCode // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [ChainUserState]. +extension ChainUserStatePatterns on ChainUserState { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _ChainUserState value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _ChainUserState() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _ChainUserState value) $default,){ +final _that = this; +switch (_that) { +case _ChainUserState(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _ChainUserState value)? $default,){ +final _that = this; +switch (_that) { +case _ChainUserState() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? city, String? image, String? mobile, String? birthday, String? province, String? lastName, String? firstName, String? nationalId, String? nationalCode)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _ChainUserState() when $default != null: +return $default(_that.city,_that.image,_that.mobile,_that.birthday,_that.province,_that.lastName,_that.firstName,_that.nationalId,_that.nationalCode);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? city, String? image, String? mobile, String? birthday, String? province, String? lastName, String? firstName, String? nationalId, String? nationalCode) $default,) {final _that = this; +switch (_that) { +case _ChainUserState(): +return $default(_that.city,_that.image,_that.mobile,_that.birthday,_that.province,_that.lastName,_that.firstName,_that.nationalId,_that.nationalCode);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? city, String? image, String? mobile, String? birthday, String? province, String? lastName, String? firstName, String? nationalId, String? nationalCode)? $default,) {final _that = this; +switch (_that) { +case _ChainUserState() when $default != null: +return $default(_that.city,_that.image,_that.mobile,_that.birthday,_that.province,_that.lastName,_that.firstName,_that.nationalId,_that.nationalCode);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _ChainUserState implements ChainUserState { + const _ChainUserState({this.city, this.image, this.mobile, this.birthday, this.province, this.lastName, this.firstName, this.nationalId, this.nationalCode}); + factory _ChainUserState.fromJson(Map json) => _$ChainUserStateFromJson(json); + +@override final String? city; +@override final String? image; +@override final String? mobile; +@override final String? birthday; +@override final String? province; +@override final String? lastName; +@override final String? firstName; +@override final String? nationalId; +@override final String? nationalCode; + +/// Create a copy of ChainUserState +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ChainUserStateCopyWith<_ChainUserState> get copyWith => __$ChainUserStateCopyWithImpl<_ChainUserState>(this, _$identity); + +@override +Map toJson() { + return _$ChainUserStateToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _ChainUserState&&(identical(other.city, city) || other.city == city)&&(identical(other.image, image) || other.image == image)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.birthday, birthday) || other.birthday == birthday)&&(identical(other.province, province) || other.province == province)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.nationalId, nationalId) || other.nationalId == nationalId)&&(identical(other.nationalCode, nationalCode) || other.nationalCode == nationalCode)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,city,image,mobile,birthday,province,lastName,firstName,nationalId,nationalCode); + +@override +String toString() { + return 'ChainUserState(city: $city, image: $image, mobile: $mobile, birthday: $birthday, province: $province, lastName: $lastName, firstName: $firstName, nationalId: $nationalId, nationalCode: $nationalCode)'; +} + + +} + +/// @nodoc +abstract mixin class _$ChainUserStateCopyWith<$Res> implements $ChainUserStateCopyWith<$Res> { + factory _$ChainUserStateCopyWith(_ChainUserState value, $Res Function(_ChainUserState) _then) = __$ChainUserStateCopyWithImpl; +@override @useResult +$Res call({ + String? city, String? image, String? mobile, String? birthday, String? province, String? lastName, String? firstName, String? nationalId, String? nationalCode +}); + + + + +} +/// @nodoc +class __$ChainUserStateCopyWithImpl<$Res> + implements _$ChainUserStateCopyWith<$Res> { + __$ChainUserStateCopyWithImpl(this._self, this._then); + + final _ChainUserState _self; + final $Res Function(_ChainUserState) _then; + +/// Create a copy of ChainUserState +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? city = freezed,Object? image = freezed,Object? mobile = freezed,Object? birthday = freezed,Object? province = freezed,Object? lastName = freezed,Object? firstName = freezed,Object? nationalId = freezed,Object? nationalCode = freezed,}) { + return _then(_ChainUserState( +city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as String?,image: freezed == image ? _self.image : image // ignore: cast_nullable_to_non_nullable +as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?,birthday: freezed == birthday ? _self.birthday : birthday // ignore: cast_nullable_to_non_nullable +as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as String?,lastName: freezed == lastName ? _self.lastName : lastName // ignore: cast_nullable_to_non_nullable +as String?,firstName: freezed == firstName ? _self.firstName : firstName // ignore: cast_nullable_to_non_nullable +as String?,nationalId: freezed == nationalId ? _self.nationalId : nationalId // ignore: cast_nullable_to_non_nullable +as String?,nationalCode: freezed == nationalCode ? _self.nationalCode : nationalCode // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$VetFarm { + + String? get vetFarmFullName; String? get vetFarmMobile; +/// Create a copy of VetFarm +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$VetFarmCopyWith get copyWith => _$VetFarmCopyWithImpl(this as VetFarm, _$identity); + + /// Serializes this VetFarm to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is VetFarm&&(identical(other.vetFarmFullName, vetFarmFullName) || other.vetFarmFullName == vetFarmFullName)&&(identical(other.vetFarmMobile, vetFarmMobile) || other.vetFarmMobile == vetFarmMobile)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,vetFarmFullName,vetFarmMobile); + +@override +String toString() { + return 'VetFarm(vetFarmFullName: $vetFarmFullName, vetFarmMobile: $vetFarmMobile)'; +} + + +} + +/// @nodoc +abstract mixin class $VetFarmCopyWith<$Res> { + factory $VetFarmCopyWith(VetFarm value, $Res Function(VetFarm) _then) = _$VetFarmCopyWithImpl; +@useResult +$Res call({ + String? vetFarmFullName, String? vetFarmMobile +}); + + + + +} +/// @nodoc +class _$VetFarmCopyWithImpl<$Res> + implements $VetFarmCopyWith<$Res> { + _$VetFarmCopyWithImpl(this._self, this._then); + + final VetFarm _self; + final $Res Function(VetFarm) _then; + +/// Create a copy of VetFarm +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? vetFarmFullName = freezed,Object? vetFarmMobile = freezed,}) { + return _then(_self.copyWith( +vetFarmFullName: freezed == vetFarmFullName ? _self.vetFarmFullName : vetFarmFullName // ignore: cast_nullable_to_non_nullable +as String?,vetFarmMobile: freezed == vetFarmMobile ? _self.vetFarmMobile : vetFarmMobile // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [VetFarm]. +extension VetFarmPatterns on VetFarm { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult 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 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? 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 Function( String? vetFarmFullName, String? vetFarmMobile)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _VetFarm() when $default != null: +return $default(_that.vetFarmFullName,_that.vetFarmMobile);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? vetFarmFullName, String? vetFarmMobile) $default,) {final _that = this; +switch (_that) { +case _VetFarm(): +return $default(_that.vetFarmFullName,_that.vetFarmMobile);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? vetFarmFullName, String? vetFarmMobile)? $default,) {final _that = this; +switch (_that) { +case _VetFarm() when $default != null: +return $default(_that.vetFarmFullName,_that.vetFarmMobile);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _VetFarm implements VetFarm { + const _VetFarm({this.vetFarmFullName, this.vetFarmMobile}); + factory _VetFarm.fromJson(Map json) => _$VetFarmFromJson(json); + +@override final String? vetFarmFullName; +@override final String? vetFarmMobile; + +/// Create a copy of VetFarm +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$VetFarmCopyWith<_VetFarm> get copyWith => __$VetFarmCopyWithImpl<_VetFarm>(this, _$identity); + +@override +Map toJson() { + return _$VetFarmToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _VetFarm&&(identical(other.vetFarmFullName, vetFarmFullName) || other.vetFarmFullName == vetFarmFullName)&&(identical(other.vetFarmMobile, vetFarmMobile) || other.vetFarmMobile == vetFarmMobile)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,vetFarmFullName,vetFarmMobile); + +@override +String toString() { + return 'VetFarm(vetFarmFullName: $vetFarmFullName, vetFarmMobile: $vetFarmMobile)'; +} + + +} + +/// @nodoc +abstract mixin class _$VetFarmCopyWith<$Res> implements $VetFarmCopyWith<$Res> { + factory _$VetFarmCopyWith(_VetFarm value, $Res Function(_VetFarm) _then) = __$VetFarmCopyWithImpl; +@override @useResult +$Res call({ + String? vetFarmFullName, String? vetFarmMobile +}); + + + + +} +/// @nodoc +class __$VetFarmCopyWithImpl<$Res> + implements _$VetFarmCopyWith<$Res> { + __$VetFarmCopyWithImpl(this._self, this._then); + + final _VetFarm _self; + final $Res Function(_VetFarm) _then; + +/// Create a copy of VetFarm +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? vetFarmFullName = freezed,Object? vetFarmMobile = freezed,}) { + return _then(_VetFarm( +vetFarmFullName: freezed == vetFarmFullName ? _self.vetFarmFullName : vetFarmFullName // ignore: cast_nullable_to_non_nullable +as String?,vetFarmMobile: freezed == vetFarmMobile ? _self.vetFarmMobile : vetFarmMobile // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$ActiveKill { + + bool? get activeKill; num? get countOfRequest; +/// Create a copy of ActiveKill +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ActiveKillCopyWith get copyWith => _$ActiveKillCopyWithImpl(this as ActiveKill, _$identity); + + /// Serializes this ActiveKill to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is ActiveKill&&(identical(other.activeKill, activeKill) || other.activeKill == activeKill)&&(identical(other.countOfRequest, countOfRequest) || other.countOfRequest == countOfRequest)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,activeKill,countOfRequest); + +@override +String toString() { + return 'ActiveKill(activeKill: $activeKill, countOfRequest: $countOfRequest)'; +} + + +} + +/// @nodoc +abstract mixin class $ActiveKillCopyWith<$Res> { + factory $ActiveKillCopyWith(ActiveKill value, $Res Function(ActiveKill) _then) = _$ActiveKillCopyWithImpl; +@useResult +$Res call({ + bool? activeKill, num? countOfRequest +}); + + + + +} +/// @nodoc +class _$ActiveKillCopyWithImpl<$Res> + implements $ActiveKillCopyWith<$Res> { + _$ActiveKillCopyWithImpl(this._self, this._then); + + final ActiveKill _self; + final $Res Function(ActiveKill) _then; + +/// Create a copy of ActiveKill +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? activeKill = freezed,Object? countOfRequest = freezed,}) { + return _then(_self.copyWith( +activeKill: freezed == activeKill ? _self.activeKill : activeKill // ignore: cast_nullable_to_non_nullable +as bool?,countOfRequest: freezed == countOfRequest ? _self.countOfRequest : countOfRequest // ignore: cast_nullable_to_non_nullable +as num?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [ActiveKill]. +extension ActiveKillPatterns on ActiveKill { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _ActiveKill value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _ActiveKill() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _ActiveKill value) $default,){ +final _that = this; +switch (_that) { +case _ActiveKill(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _ActiveKill value)? $default,){ +final _that = this; +switch (_that) { +case _ActiveKill() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( bool? activeKill, num? countOfRequest)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _ActiveKill() when $default != null: +return $default(_that.activeKill,_that.countOfRequest);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( bool? activeKill, num? countOfRequest) $default,) {final _that = this; +switch (_that) { +case _ActiveKill(): +return $default(_that.activeKill,_that.countOfRequest);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( bool? activeKill, num? countOfRequest)? $default,) {final _that = this; +switch (_that) { +case _ActiveKill() when $default != null: +return $default(_that.activeKill,_that.countOfRequest);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _ActiveKill implements ActiveKill { + const _ActiveKill({this.activeKill, this.countOfRequest}); + factory _ActiveKill.fromJson(Map json) => _$ActiveKillFromJson(json); + +@override final bool? activeKill; +@override final num? countOfRequest; + +/// Create a copy of ActiveKill +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ActiveKillCopyWith<_ActiveKill> get copyWith => __$ActiveKillCopyWithImpl<_ActiveKill>(this, _$identity); + +@override +Map toJson() { + return _$ActiveKillToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _ActiveKill&&(identical(other.activeKill, activeKill) || other.activeKill == activeKill)&&(identical(other.countOfRequest, countOfRequest) || other.countOfRequest == countOfRequest)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,activeKill,countOfRequest); + +@override +String toString() { + return 'ActiveKill(activeKill: $activeKill, countOfRequest: $countOfRequest)'; +} + + +} + +/// @nodoc +abstract mixin class _$ActiveKillCopyWith<$Res> implements $ActiveKillCopyWith<$Res> { + factory _$ActiveKillCopyWith(_ActiveKill value, $Res Function(_ActiveKill) _then) = __$ActiveKillCopyWithImpl; +@override @useResult +$Res call({ + bool? activeKill, num? countOfRequest +}); + + + + +} +/// @nodoc +class __$ActiveKillCopyWithImpl<$Res> + implements _$ActiveKillCopyWith<$Res> { + __$ActiveKillCopyWithImpl(this._self, this._then); + + final _ActiveKill _self; + final $Res Function(_ActiveKill) _then; + +/// Create a copy of ActiveKill +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? activeKill = freezed,Object? countOfRequest = freezed,}) { + return _then(_ActiveKill( +activeKill: freezed == activeKill ? _self.activeKill : activeKill // ignore: cast_nullable_to_non_nullable +as bool?,countOfRequest: freezed == countOfRequest ? _self.countOfRequest : countOfRequest // ignore: cast_nullable_to_non_nullable +as num?, + )); +} + + +} + + +/// @nodoc +mixin _$KillingInfo { + + String? get violationMessage; num? get provinceKillRequests; num? get provinceKillRequestsQuantity; num? get provinceKillRequestsWeight; num? get killHouseRequests; num? get killHouseRequestsFirstQuantity; num? get killHouseRequestsFirstWeight; num? get barCompleteWithKillHouse; num? get acceptedRealQuantityFinal; num? get acceptedRealWightFinal; num? get wareHouseBars; num? get wareHouseBarsQuantity; num? get wareHouseBarsWeight; num? get wareHouseBarsWeightLose; +/// Create a copy of KillingInfo +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$KillingInfoCopyWith get copyWith => _$KillingInfoCopyWithImpl(this as KillingInfo, _$identity); + + /// Serializes this KillingInfo to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is KillingInfo&&(identical(other.violationMessage, violationMessage) || other.violationMessage == violationMessage)&&(identical(other.provinceKillRequests, provinceKillRequests) || other.provinceKillRequests == provinceKillRequests)&&(identical(other.provinceKillRequestsQuantity, provinceKillRequestsQuantity) || other.provinceKillRequestsQuantity == provinceKillRequestsQuantity)&&(identical(other.provinceKillRequestsWeight, provinceKillRequestsWeight) || other.provinceKillRequestsWeight == provinceKillRequestsWeight)&&(identical(other.killHouseRequests, killHouseRequests) || other.killHouseRequests == killHouseRequests)&&(identical(other.killHouseRequestsFirstQuantity, killHouseRequestsFirstQuantity) || other.killHouseRequestsFirstQuantity == killHouseRequestsFirstQuantity)&&(identical(other.killHouseRequestsFirstWeight, killHouseRequestsFirstWeight) || other.killHouseRequestsFirstWeight == killHouseRequestsFirstWeight)&&(identical(other.barCompleteWithKillHouse, barCompleteWithKillHouse) || other.barCompleteWithKillHouse == barCompleteWithKillHouse)&&(identical(other.acceptedRealQuantityFinal, acceptedRealQuantityFinal) || other.acceptedRealQuantityFinal == acceptedRealQuantityFinal)&&(identical(other.acceptedRealWightFinal, acceptedRealWightFinal) || other.acceptedRealWightFinal == acceptedRealWightFinal)&&(identical(other.wareHouseBars, wareHouseBars) || other.wareHouseBars == wareHouseBars)&&(identical(other.wareHouseBarsQuantity, wareHouseBarsQuantity) || other.wareHouseBarsQuantity == wareHouseBarsQuantity)&&(identical(other.wareHouseBarsWeight, wareHouseBarsWeight) || other.wareHouseBarsWeight == wareHouseBarsWeight)&&(identical(other.wareHouseBarsWeightLose, wareHouseBarsWeightLose) || other.wareHouseBarsWeightLose == wareHouseBarsWeightLose)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,violationMessage,provinceKillRequests,provinceKillRequestsQuantity,provinceKillRequestsWeight,killHouseRequests,killHouseRequestsFirstQuantity,killHouseRequestsFirstWeight,barCompleteWithKillHouse,acceptedRealQuantityFinal,acceptedRealWightFinal,wareHouseBars,wareHouseBarsQuantity,wareHouseBarsWeight,wareHouseBarsWeightLose); + +@override +String toString() { + return 'KillingInfo(violationMessage: $violationMessage, provinceKillRequests: $provinceKillRequests, provinceKillRequestsQuantity: $provinceKillRequestsQuantity, provinceKillRequestsWeight: $provinceKillRequestsWeight, killHouseRequests: $killHouseRequests, killHouseRequestsFirstQuantity: $killHouseRequestsFirstQuantity, killHouseRequestsFirstWeight: $killHouseRequestsFirstWeight, barCompleteWithKillHouse: $barCompleteWithKillHouse, acceptedRealQuantityFinal: $acceptedRealQuantityFinal, acceptedRealWightFinal: $acceptedRealWightFinal, wareHouseBars: $wareHouseBars, wareHouseBarsQuantity: $wareHouseBarsQuantity, wareHouseBarsWeight: $wareHouseBarsWeight, wareHouseBarsWeightLose: $wareHouseBarsWeightLose)'; +} + + +} + +/// @nodoc +abstract mixin class $KillingInfoCopyWith<$Res> { + factory $KillingInfoCopyWith(KillingInfo value, $Res Function(KillingInfo) _then) = _$KillingInfoCopyWithImpl; +@useResult +$Res call({ + String? violationMessage, num? provinceKillRequests, num? provinceKillRequestsQuantity, num? provinceKillRequestsWeight, num? killHouseRequests, num? killHouseRequestsFirstQuantity, num? killHouseRequestsFirstWeight, num? barCompleteWithKillHouse, num? acceptedRealQuantityFinal, num? acceptedRealWightFinal, num? wareHouseBars, num? wareHouseBarsQuantity, num? wareHouseBarsWeight, num? wareHouseBarsWeightLose +}); + + + + +} +/// @nodoc +class _$KillingInfoCopyWithImpl<$Res> + implements $KillingInfoCopyWith<$Res> { + _$KillingInfoCopyWithImpl(this._self, this._then); + + final KillingInfo _self; + final $Res Function(KillingInfo) _then; + +/// Create a copy of KillingInfo +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? violationMessage = freezed,Object? provinceKillRequests = freezed,Object? provinceKillRequestsQuantity = freezed,Object? provinceKillRequestsWeight = freezed,Object? killHouseRequests = freezed,Object? killHouseRequestsFirstQuantity = freezed,Object? killHouseRequestsFirstWeight = freezed,Object? barCompleteWithKillHouse = freezed,Object? acceptedRealQuantityFinal = freezed,Object? acceptedRealWightFinal = freezed,Object? wareHouseBars = freezed,Object? wareHouseBarsQuantity = freezed,Object? wareHouseBarsWeight = freezed,Object? wareHouseBarsWeightLose = freezed,}) { + return _then(_self.copyWith( +violationMessage: freezed == violationMessage ? _self.violationMessage : violationMessage // ignore: cast_nullable_to_non_nullable +as String?,provinceKillRequests: freezed == provinceKillRequests ? _self.provinceKillRequests : provinceKillRequests // ignore: cast_nullable_to_non_nullable +as num?,provinceKillRequestsQuantity: freezed == provinceKillRequestsQuantity ? _self.provinceKillRequestsQuantity : provinceKillRequestsQuantity // ignore: cast_nullable_to_non_nullable +as num?,provinceKillRequestsWeight: freezed == provinceKillRequestsWeight ? _self.provinceKillRequestsWeight : provinceKillRequestsWeight // ignore: cast_nullable_to_non_nullable +as num?,killHouseRequests: freezed == killHouseRequests ? _self.killHouseRequests : killHouseRequests // ignore: cast_nullable_to_non_nullable +as num?,killHouseRequestsFirstQuantity: freezed == killHouseRequestsFirstQuantity ? _self.killHouseRequestsFirstQuantity : killHouseRequestsFirstQuantity // ignore: cast_nullable_to_non_nullable +as num?,killHouseRequestsFirstWeight: freezed == killHouseRequestsFirstWeight ? _self.killHouseRequestsFirstWeight : killHouseRequestsFirstWeight // ignore: cast_nullable_to_non_nullable +as num?,barCompleteWithKillHouse: freezed == barCompleteWithKillHouse ? _self.barCompleteWithKillHouse : barCompleteWithKillHouse // ignore: cast_nullable_to_non_nullable +as num?,acceptedRealQuantityFinal: freezed == acceptedRealQuantityFinal ? _self.acceptedRealQuantityFinal : acceptedRealQuantityFinal // ignore: cast_nullable_to_non_nullable +as num?,acceptedRealWightFinal: freezed == acceptedRealWightFinal ? _self.acceptedRealWightFinal : acceptedRealWightFinal // ignore: cast_nullable_to_non_nullable +as num?,wareHouseBars: freezed == wareHouseBars ? _self.wareHouseBars : wareHouseBars // ignore: cast_nullable_to_non_nullable +as num?,wareHouseBarsQuantity: freezed == wareHouseBarsQuantity ? _self.wareHouseBarsQuantity : wareHouseBarsQuantity // ignore: cast_nullable_to_non_nullable +as num?,wareHouseBarsWeight: freezed == wareHouseBarsWeight ? _self.wareHouseBarsWeight : wareHouseBarsWeight // ignore: cast_nullable_to_non_nullable +as num?,wareHouseBarsWeightLose: freezed == wareHouseBarsWeightLose ? _self.wareHouseBarsWeightLose : wareHouseBarsWeightLose // ignore: cast_nullable_to_non_nullable +as num?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [KillingInfo]. +extension KillingInfoPatterns on KillingInfo { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _KillingInfo value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _KillingInfo() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _KillingInfo value) $default,){ +final _that = this; +switch (_that) { +case _KillingInfo(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _KillingInfo value)? $default,){ +final _that = this; +switch (_that) { +case _KillingInfo() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? violationMessage, num? provinceKillRequests, num? provinceKillRequestsQuantity, num? provinceKillRequestsWeight, num? killHouseRequests, num? killHouseRequestsFirstQuantity, num? killHouseRequestsFirstWeight, num? barCompleteWithKillHouse, num? acceptedRealQuantityFinal, num? acceptedRealWightFinal, num? wareHouseBars, num? wareHouseBarsQuantity, num? wareHouseBarsWeight, num? wareHouseBarsWeightLose)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _KillingInfo() when $default != null: +return $default(_that.violationMessage,_that.provinceKillRequests,_that.provinceKillRequestsQuantity,_that.provinceKillRequestsWeight,_that.killHouseRequests,_that.killHouseRequestsFirstQuantity,_that.killHouseRequestsFirstWeight,_that.barCompleteWithKillHouse,_that.acceptedRealQuantityFinal,_that.acceptedRealWightFinal,_that.wareHouseBars,_that.wareHouseBarsQuantity,_that.wareHouseBarsWeight,_that.wareHouseBarsWeightLose);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? violationMessage, num? provinceKillRequests, num? provinceKillRequestsQuantity, num? provinceKillRequestsWeight, num? killHouseRequests, num? killHouseRequestsFirstQuantity, num? killHouseRequestsFirstWeight, num? barCompleteWithKillHouse, num? acceptedRealQuantityFinal, num? acceptedRealWightFinal, num? wareHouseBars, num? wareHouseBarsQuantity, num? wareHouseBarsWeight, num? wareHouseBarsWeightLose) $default,) {final _that = this; +switch (_that) { +case _KillingInfo(): +return $default(_that.violationMessage,_that.provinceKillRequests,_that.provinceKillRequestsQuantity,_that.provinceKillRequestsWeight,_that.killHouseRequests,_that.killHouseRequestsFirstQuantity,_that.killHouseRequestsFirstWeight,_that.barCompleteWithKillHouse,_that.acceptedRealQuantityFinal,_that.acceptedRealWightFinal,_that.wareHouseBars,_that.wareHouseBarsQuantity,_that.wareHouseBarsWeight,_that.wareHouseBarsWeightLose);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? violationMessage, num? provinceKillRequests, num? provinceKillRequestsQuantity, num? provinceKillRequestsWeight, num? killHouseRequests, num? killHouseRequestsFirstQuantity, num? killHouseRequestsFirstWeight, num? barCompleteWithKillHouse, num? acceptedRealQuantityFinal, num? acceptedRealWightFinal, num? wareHouseBars, num? wareHouseBarsQuantity, num? wareHouseBarsWeight, num? wareHouseBarsWeightLose)? $default,) {final _that = this; +switch (_that) { +case _KillingInfo() when $default != null: +return $default(_that.violationMessage,_that.provinceKillRequests,_that.provinceKillRequestsQuantity,_that.provinceKillRequestsWeight,_that.killHouseRequests,_that.killHouseRequestsFirstQuantity,_that.killHouseRequestsFirstWeight,_that.barCompleteWithKillHouse,_that.acceptedRealQuantityFinal,_that.acceptedRealWightFinal,_that.wareHouseBars,_that.wareHouseBarsQuantity,_that.wareHouseBarsWeight,_that.wareHouseBarsWeightLose);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _KillingInfo implements KillingInfo { + const _KillingInfo({this.violationMessage, this.provinceKillRequests, this.provinceKillRequestsQuantity, this.provinceKillRequestsWeight, this.killHouseRequests, this.killHouseRequestsFirstQuantity, this.killHouseRequestsFirstWeight, this.barCompleteWithKillHouse, this.acceptedRealQuantityFinal, this.acceptedRealWightFinal, this.wareHouseBars, this.wareHouseBarsQuantity, this.wareHouseBarsWeight, this.wareHouseBarsWeightLose}); + factory _KillingInfo.fromJson(Map json) => _$KillingInfoFromJson(json); + +@override final String? violationMessage; +@override final num? provinceKillRequests; +@override final num? provinceKillRequestsQuantity; +@override final num? provinceKillRequestsWeight; +@override final num? killHouseRequests; +@override final num? killHouseRequestsFirstQuantity; +@override final num? killHouseRequestsFirstWeight; +@override final num? barCompleteWithKillHouse; +@override final num? acceptedRealQuantityFinal; +@override final num? acceptedRealWightFinal; +@override final num? wareHouseBars; +@override final num? wareHouseBarsQuantity; +@override final num? wareHouseBarsWeight; +@override final num? wareHouseBarsWeightLose; + +/// Create a copy of KillingInfo +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$KillingInfoCopyWith<_KillingInfo> get copyWith => __$KillingInfoCopyWithImpl<_KillingInfo>(this, _$identity); + +@override +Map toJson() { + return _$KillingInfoToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _KillingInfo&&(identical(other.violationMessage, violationMessage) || other.violationMessage == violationMessage)&&(identical(other.provinceKillRequests, provinceKillRequests) || other.provinceKillRequests == provinceKillRequests)&&(identical(other.provinceKillRequestsQuantity, provinceKillRequestsQuantity) || other.provinceKillRequestsQuantity == provinceKillRequestsQuantity)&&(identical(other.provinceKillRequestsWeight, provinceKillRequestsWeight) || other.provinceKillRequestsWeight == provinceKillRequestsWeight)&&(identical(other.killHouseRequests, killHouseRequests) || other.killHouseRequests == killHouseRequests)&&(identical(other.killHouseRequestsFirstQuantity, killHouseRequestsFirstQuantity) || other.killHouseRequestsFirstQuantity == killHouseRequestsFirstQuantity)&&(identical(other.killHouseRequestsFirstWeight, killHouseRequestsFirstWeight) || other.killHouseRequestsFirstWeight == killHouseRequestsFirstWeight)&&(identical(other.barCompleteWithKillHouse, barCompleteWithKillHouse) || other.barCompleteWithKillHouse == barCompleteWithKillHouse)&&(identical(other.acceptedRealQuantityFinal, acceptedRealQuantityFinal) || other.acceptedRealQuantityFinal == acceptedRealQuantityFinal)&&(identical(other.acceptedRealWightFinal, acceptedRealWightFinal) || other.acceptedRealWightFinal == acceptedRealWightFinal)&&(identical(other.wareHouseBars, wareHouseBars) || other.wareHouseBars == wareHouseBars)&&(identical(other.wareHouseBarsQuantity, wareHouseBarsQuantity) || other.wareHouseBarsQuantity == wareHouseBarsQuantity)&&(identical(other.wareHouseBarsWeight, wareHouseBarsWeight) || other.wareHouseBarsWeight == wareHouseBarsWeight)&&(identical(other.wareHouseBarsWeightLose, wareHouseBarsWeightLose) || other.wareHouseBarsWeightLose == wareHouseBarsWeightLose)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,violationMessage,provinceKillRequests,provinceKillRequestsQuantity,provinceKillRequestsWeight,killHouseRequests,killHouseRequestsFirstQuantity,killHouseRequestsFirstWeight,barCompleteWithKillHouse,acceptedRealQuantityFinal,acceptedRealWightFinal,wareHouseBars,wareHouseBarsQuantity,wareHouseBarsWeight,wareHouseBarsWeightLose); + +@override +String toString() { + return 'KillingInfo(violationMessage: $violationMessage, provinceKillRequests: $provinceKillRequests, provinceKillRequestsQuantity: $provinceKillRequestsQuantity, provinceKillRequestsWeight: $provinceKillRequestsWeight, killHouseRequests: $killHouseRequests, killHouseRequestsFirstQuantity: $killHouseRequestsFirstQuantity, killHouseRequestsFirstWeight: $killHouseRequestsFirstWeight, barCompleteWithKillHouse: $barCompleteWithKillHouse, acceptedRealQuantityFinal: $acceptedRealQuantityFinal, acceptedRealWightFinal: $acceptedRealWightFinal, wareHouseBars: $wareHouseBars, wareHouseBarsQuantity: $wareHouseBarsQuantity, wareHouseBarsWeight: $wareHouseBarsWeight, wareHouseBarsWeightLose: $wareHouseBarsWeightLose)'; +} + + +} + +/// @nodoc +abstract mixin class _$KillingInfoCopyWith<$Res> implements $KillingInfoCopyWith<$Res> { + factory _$KillingInfoCopyWith(_KillingInfo value, $Res Function(_KillingInfo) _then) = __$KillingInfoCopyWithImpl; +@override @useResult +$Res call({ + String? violationMessage, num? provinceKillRequests, num? provinceKillRequestsQuantity, num? provinceKillRequestsWeight, num? killHouseRequests, num? killHouseRequestsFirstQuantity, num? killHouseRequestsFirstWeight, num? barCompleteWithKillHouse, num? acceptedRealQuantityFinal, num? acceptedRealWightFinal, num? wareHouseBars, num? wareHouseBarsQuantity, num? wareHouseBarsWeight, num? wareHouseBarsWeightLose +}); + + + + +} +/// @nodoc +class __$KillingInfoCopyWithImpl<$Res> + implements _$KillingInfoCopyWith<$Res> { + __$KillingInfoCopyWithImpl(this._self, this._then); + + final _KillingInfo _self; + final $Res Function(_KillingInfo) _then; + +/// Create a copy of KillingInfo +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? violationMessage = freezed,Object? provinceKillRequests = freezed,Object? provinceKillRequestsQuantity = freezed,Object? provinceKillRequestsWeight = freezed,Object? killHouseRequests = freezed,Object? killHouseRequestsFirstQuantity = freezed,Object? killHouseRequestsFirstWeight = freezed,Object? barCompleteWithKillHouse = freezed,Object? acceptedRealQuantityFinal = freezed,Object? acceptedRealWightFinal = freezed,Object? wareHouseBars = freezed,Object? wareHouseBarsQuantity = freezed,Object? wareHouseBarsWeight = freezed,Object? wareHouseBarsWeightLose = freezed,}) { + return _then(_KillingInfo( +violationMessage: freezed == violationMessage ? _self.violationMessage : violationMessage // ignore: cast_nullable_to_non_nullable +as String?,provinceKillRequests: freezed == provinceKillRequests ? _self.provinceKillRequests : provinceKillRequests // ignore: cast_nullable_to_non_nullable +as num?,provinceKillRequestsQuantity: freezed == provinceKillRequestsQuantity ? _self.provinceKillRequestsQuantity : provinceKillRequestsQuantity // ignore: cast_nullable_to_non_nullable +as num?,provinceKillRequestsWeight: freezed == provinceKillRequestsWeight ? _self.provinceKillRequestsWeight : provinceKillRequestsWeight // ignore: cast_nullable_to_non_nullable +as num?,killHouseRequests: freezed == killHouseRequests ? _self.killHouseRequests : killHouseRequests // ignore: cast_nullable_to_non_nullable +as num?,killHouseRequestsFirstQuantity: freezed == killHouseRequestsFirstQuantity ? _self.killHouseRequestsFirstQuantity : killHouseRequestsFirstQuantity // ignore: cast_nullable_to_non_nullable +as num?,killHouseRequestsFirstWeight: freezed == killHouseRequestsFirstWeight ? _self.killHouseRequestsFirstWeight : killHouseRequestsFirstWeight // ignore: cast_nullable_to_non_nullable +as num?,barCompleteWithKillHouse: freezed == barCompleteWithKillHouse ? _self.barCompleteWithKillHouse : barCompleteWithKillHouse // ignore: cast_nullable_to_non_nullable +as num?,acceptedRealQuantityFinal: freezed == acceptedRealQuantityFinal ? _self.acceptedRealQuantityFinal : acceptedRealQuantityFinal // ignore: cast_nullable_to_non_nullable +as num?,acceptedRealWightFinal: freezed == acceptedRealWightFinal ? _self.acceptedRealWightFinal : acceptedRealWightFinal // ignore: cast_nullable_to_non_nullable +as num?,wareHouseBars: freezed == wareHouseBars ? _self.wareHouseBars : wareHouseBars // ignore: cast_nullable_to_non_nullable +as num?,wareHouseBarsQuantity: freezed == wareHouseBarsQuantity ? _self.wareHouseBarsQuantity : wareHouseBarsQuantity // ignore: cast_nullable_to_non_nullable +as num?,wareHouseBarsWeight: freezed == wareHouseBarsWeight ? _self.wareHouseBarsWeight : wareHouseBarsWeight // ignore: cast_nullable_to_non_nullable +as num?,wareHouseBarsWeightLose: freezed == wareHouseBarsWeightLose ? _self.wareHouseBarsWeightLose : wareHouseBarsWeightLose // ignore: cast_nullable_to_non_nullable +as num?, + )); +} + + +} + + +/// @nodoc +mixin _$FreeGovernmentalInfo { + + num? get governmentalAllocatedQuantity; num? get totalCommitmentQuantity; num? get freeAllocatedQuantity; num? get totalFreeCommitmentQuantity; num? get leftTotalFreeCommitmentQuantity; +/// Create a copy of FreeGovernmentalInfo +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$FreeGovernmentalInfoCopyWith get copyWith => _$FreeGovernmentalInfoCopyWithImpl(this as FreeGovernmentalInfo, _$identity); + + /// Serializes this FreeGovernmentalInfo to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is FreeGovernmentalInfo&&(identical(other.governmentalAllocatedQuantity, governmentalAllocatedQuantity) || other.governmentalAllocatedQuantity == governmentalAllocatedQuantity)&&(identical(other.totalCommitmentQuantity, totalCommitmentQuantity) || other.totalCommitmentQuantity == totalCommitmentQuantity)&&(identical(other.freeAllocatedQuantity, freeAllocatedQuantity) || other.freeAllocatedQuantity == freeAllocatedQuantity)&&(identical(other.totalFreeCommitmentQuantity, totalFreeCommitmentQuantity) || other.totalFreeCommitmentQuantity == totalFreeCommitmentQuantity)&&(identical(other.leftTotalFreeCommitmentQuantity, leftTotalFreeCommitmentQuantity) || other.leftTotalFreeCommitmentQuantity == leftTotalFreeCommitmentQuantity)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,governmentalAllocatedQuantity,totalCommitmentQuantity,freeAllocatedQuantity,totalFreeCommitmentQuantity,leftTotalFreeCommitmentQuantity); + +@override +String toString() { + return 'FreeGovernmentalInfo(governmentalAllocatedQuantity: $governmentalAllocatedQuantity, totalCommitmentQuantity: $totalCommitmentQuantity, freeAllocatedQuantity: $freeAllocatedQuantity, totalFreeCommitmentQuantity: $totalFreeCommitmentQuantity, leftTotalFreeCommitmentQuantity: $leftTotalFreeCommitmentQuantity)'; +} + + +} + +/// @nodoc +abstract mixin class $FreeGovernmentalInfoCopyWith<$Res> { + factory $FreeGovernmentalInfoCopyWith(FreeGovernmentalInfo value, $Res Function(FreeGovernmentalInfo) _then) = _$FreeGovernmentalInfoCopyWithImpl; +@useResult +$Res call({ + num? governmentalAllocatedQuantity, num? totalCommitmentQuantity, num? freeAllocatedQuantity, num? totalFreeCommitmentQuantity, num? leftTotalFreeCommitmentQuantity +}); + + + + +} +/// @nodoc +class _$FreeGovernmentalInfoCopyWithImpl<$Res> + implements $FreeGovernmentalInfoCopyWith<$Res> { + _$FreeGovernmentalInfoCopyWithImpl(this._self, this._then); + + final FreeGovernmentalInfo _self; + final $Res Function(FreeGovernmentalInfo) _then; + +/// Create a copy of FreeGovernmentalInfo +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? governmentalAllocatedQuantity = freezed,Object? totalCommitmentQuantity = freezed,Object? freeAllocatedQuantity = freezed,Object? totalFreeCommitmentQuantity = freezed,Object? leftTotalFreeCommitmentQuantity = freezed,}) { + return _then(_self.copyWith( +governmentalAllocatedQuantity: freezed == governmentalAllocatedQuantity ? _self.governmentalAllocatedQuantity : governmentalAllocatedQuantity // ignore: cast_nullable_to_non_nullable +as num?,totalCommitmentQuantity: freezed == totalCommitmentQuantity ? _self.totalCommitmentQuantity : totalCommitmentQuantity // ignore: cast_nullable_to_non_nullable +as num?,freeAllocatedQuantity: freezed == freeAllocatedQuantity ? _self.freeAllocatedQuantity : freeAllocatedQuantity // ignore: cast_nullable_to_non_nullable +as num?,totalFreeCommitmentQuantity: freezed == totalFreeCommitmentQuantity ? _self.totalFreeCommitmentQuantity : totalFreeCommitmentQuantity // ignore: cast_nullable_to_non_nullable +as num?,leftTotalFreeCommitmentQuantity: freezed == leftTotalFreeCommitmentQuantity ? _self.leftTotalFreeCommitmentQuantity : leftTotalFreeCommitmentQuantity // ignore: cast_nullable_to_non_nullable +as num?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [FreeGovernmentalInfo]. +extension FreeGovernmentalInfoPatterns on FreeGovernmentalInfo { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _FreeGovernmentalInfo value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _FreeGovernmentalInfo() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _FreeGovernmentalInfo value) $default,){ +final _that = this; +switch (_that) { +case _FreeGovernmentalInfo(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _FreeGovernmentalInfo value)? $default,){ +final _that = this; +switch (_that) { +case _FreeGovernmentalInfo() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( num? governmentalAllocatedQuantity, num? totalCommitmentQuantity, num? freeAllocatedQuantity, num? totalFreeCommitmentQuantity, num? leftTotalFreeCommitmentQuantity)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _FreeGovernmentalInfo() when $default != null: +return $default(_that.governmentalAllocatedQuantity,_that.totalCommitmentQuantity,_that.freeAllocatedQuantity,_that.totalFreeCommitmentQuantity,_that.leftTotalFreeCommitmentQuantity);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( num? governmentalAllocatedQuantity, num? totalCommitmentQuantity, num? freeAllocatedQuantity, num? totalFreeCommitmentQuantity, num? leftTotalFreeCommitmentQuantity) $default,) {final _that = this; +switch (_that) { +case _FreeGovernmentalInfo(): +return $default(_that.governmentalAllocatedQuantity,_that.totalCommitmentQuantity,_that.freeAllocatedQuantity,_that.totalFreeCommitmentQuantity,_that.leftTotalFreeCommitmentQuantity);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( num? governmentalAllocatedQuantity, num? totalCommitmentQuantity, num? freeAllocatedQuantity, num? totalFreeCommitmentQuantity, num? leftTotalFreeCommitmentQuantity)? $default,) {final _that = this; +switch (_that) { +case _FreeGovernmentalInfo() when $default != null: +return $default(_that.governmentalAllocatedQuantity,_that.totalCommitmentQuantity,_that.freeAllocatedQuantity,_that.totalFreeCommitmentQuantity,_that.leftTotalFreeCommitmentQuantity);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _FreeGovernmentalInfo implements FreeGovernmentalInfo { + const _FreeGovernmentalInfo({this.governmentalAllocatedQuantity, this.totalCommitmentQuantity, this.freeAllocatedQuantity, this.totalFreeCommitmentQuantity, this.leftTotalFreeCommitmentQuantity}); + factory _FreeGovernmentalInfo.fromJson(Map json) => _$FreeGovernmentalInfoFromJson(json); + +@override final num? governmentalAllocatedQuantity; +@override final num? totalCommitmentQuantity; +@override final num? freeAllocatedQuantity; +@override final num? totalFreeCommitmentQuantity; +@override final num? leftTotalFreeCommitmentQuantity; + +/// Create a copy of FreeGovernmentalInfo +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$FreeGovernmentalInfoCopyWith<_FreeGovernmentalInfo> get copyWith => __$FreeGovernmentalInfoCopyWithImpl<_FreeGovernmentalInfo>(this, _$identity); + +@override +Map toJson() { + return _$FreeGovernmentalInfoToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _FreeGovernmentalInfo&&(identical(other.governmentalAllocatedQuantity, governmentalAllocatedQuantity) || other.governmentalAllocatedQuantity == governmentalAllocatedQuantity)&&(identical(other.totalCommitmentQuantity, totalCommitmentQuantity) || other.totalCommitmentQuantity == totalCommitmentQuantity)&&(identical(other.freeAllocatedQuantity, freeAllocatedQuantity) || other.freeAllocatedQuantity == freeAllocatedQuantity)&&(identical(other.totalFreeCommitmentQuantity, totalFreeCommitmentQuantity) || other.totalFreeCommitmentQuantity == totalFreeCommitmentQuantity)&&(identical(other.leftTotalFreeCommitmentQuantity, leftTotalFreeCommitmentQuantity) || other.leftTotalFreeCommitmentQuantity == leftTotalFreeCommitmentQuantity)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,governmentalAllocatedQuantity,totalCommitmentQuantity,freeAllocatedQuantity,totalFreeCommitmentQuantity,leftTotalFreeCommitmentQuantity); + +@override +String toString() { + return 'FreeGovernmentalInfo(governmentalAllocatedQuantity: $governmentalAllocatedQuantity, totalCommitmentQuantity: $totalCommitmentQuantity, freeAllocatedQuantity: $freeAllocatedQuantity, totalFreeCommitmentQuantity: $totalFreeCommitmentQuantity, leftTotalFreeCommitmentQuantity: $leftTotalFreeCommitmentQuantity)'; +} + + +} + +/// @nodoc +abstract mixin class _$FreeGovernmentalInfoCopyWith<$Res> implements $FreeGovernmentalInfoCopyWith<$Res> { + factory _$FreeGovernmentalInfoCopyWith(_FreeGovernmentalInfo value, $Res Function(_FreeGovernmentalInfo) _then) = __$FreeGovernmentalInfoCopyWithImpl; +@override @useResult +$Res call({ + num? governmentalAllocatedQuantity, num? totalCommitmentQuantity, num? freeAllocatedQuantity, num? totalFreeCommitmentQuantity, num? leftTotalFreeCommitmentQuantity +}); + + + + +} +/// @nodoc +class __$FreeGovernmentalInfoCopyWithImpl<$Res> + implements _$FreeGovernmentalInfoCopyWith<$Res> { + __$FreeGovernmentalInfoCopyWithImpl(this._self, this._then); + + final _FreeGovernmentalInfo _self; + final $Res Function(_FreeGovernmentalInfo) _then; + +/// Create a copy of FreeGovernmentalInfo +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? governmentalAllocatedQuantity = freezed,Object? totalCommitmentQuantity = freezed,Object? freeAllocatedQuantity = freezed,Object? totalFreeCommitmentQuantity = freezed,Object? leftTotalFreeCommitmentQuantity = freezed,}) { + return _then(_FreeGovernmentalInfo( +governmentalAllocatedQuantity: freezed == governmentalAllocatedQuantity ? _self.governmentalAllocatedQuantity : governmentalAllocatedQuantity // ignore: cast_nullable_to_non_nullable +as num?,totalCommitmentQuantity: freezed == totalCommitmentQuantity ? _self.totalCommitmentQuantity : totalCommitmentQuantity // ignore: cast_nullable_to_non_nullable +as num?,freeAllocatedQuantity: freezed == freeAllocatedQuantity ? _self.freeAllocatedQuantity : freeAllocatedQuantity // ignore: cast_nullable_to_non_nullable +as num?,totalFreeCommitmentQuantity: freezed == totalFreeCommitmentQuantity ? _self.totalFreeCommitmentQuantity : totalFreeCommitmentQuantity // ignore: cast_nullable_to_non_nullable +as num?,leftTotalFreeCommitmentQuantity: freezed == leftTotalFreeCommitmentQuantity ? _self.leftTotalFreeCommitmentQuantity : leftTotalFreeCommitmentQuantity // ignore: cast_nullable_to_non_nullable +as num?, + )); +} + + +} + + +/// @nodoc +mixin _$ReportInfo { + + bool? get poultryScience; bool? get image; +/// Create a copy of ReportInfo +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ReportInfoCopyWith get copyWith => _$ReportInfoCopyWithImpl(this as ReportInfo, _$identity); + + /// Serializes this ReportInfo to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is ReportInfo&&(identical(other.poultryScience, poultryScience) || other.poultryScience == poultryScience)&&(identical(other.image, image) || other.image == image)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,poultryScience,image); + +@override +String toString() { + return 'ReportInfo(poultryScience: $poultryScience, image: $image)'; +} + + +} + +/// @nodoc +abstract mixin class $ReportInfoCopyWith<$Res> { + factory $ReportInfoCopyWith(ReportInfo value, $Res Function(ReportInfo) _then) = _$ReportInfoCopyWithImpl; +@useResult +$Res call({ + bool? poultryScience, bool? image +}); + + + + +} +/// @nodoc +class _$ReportInfoCopyWithImpl<$Res> + implements $ReportInfoCopyWith<$Res> { + _$ReportInfoCopyWithImpl(this._self, this._then); + + final ReportInfo _self; + final $Res Function(ReportInfo) _then; + +/// Create a copy of ReportInfo +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? poultryScience = freezed,Object? image = freezed,}) { + return _then(_self.copyWith( +poultryScience: freezed == poultryScience ? _self.poultryScience : poultryScience // ignore: cast_nullable_to_non_nullable +as bool?,image: freezed == image ? _self.image : image // ignore: cast_nullable_to_non_nullable +as bool?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [ReportInfo]. +extension ReportInfoPatterns on ReportInfo { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _ReportInfo value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _ReportInfo() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _ReportInfo value) $default,){ +final _that = this; +switch (_that) { +case _ReportInfo(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _ReportInfo value)? $default,){ +final _that = this; +switch (_that) { +case _ReportInfo() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( bool? poultryScience, bool? image)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _ReportInfo() when $default != null: +return $default(_that.poultryScience,_that.image);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( bool? poultryScience, bool? image) $default,) {final _that = this; +switch (_that) { +case _ReportInfo(): +return $default(_that.poultryScience,_that.image);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( bool? poultryScience, bool? image)? $default,) {final _that = this; +switch (_that) { +case _ReportInfo() when $default != null: +return $default(_that.poultryScience,_that.image);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _ReportInfo implements ReportInfo { + const _ReportInfo({this.poultryScience, this.image}); + factory _ReportInfo.fromJson(Map json) => _$ReportInfoFromJson(json); + +@override final bool? poultryScience; +@override final bool? image; + +/// Create a copy of ReportInfo +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ReportInfoCopyWith<_ReportInfo> get copyWith => __$ReportInfoCopyWithImpl<_ReportInfo>(this, _$identity); + +@override +Map toJson() { + return _$ReportInfoToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _ReportInfo&&(identical(other.poultryScience, poultryScience) || other.poultryScience == poultryScience)&&(identical(other.image, image) || other.image == image)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,poultryScience,image); + +@override +String toString() { + return 'ReportInfo(poultryScience: $poultryScience, image: $image)'; +} + + +} + +/// @nodoc +abstract mixin class _$ReportInfoCopyWith<$Res> implements $ReportInfoCopyWith<$Res> { + factory _$ReportInfoCopyWith(_ReportInfo value, $Res Function(_ReportInfo) _then) = __$ReportInfoCopyWithImpl; +@override @useResult +$Res call({ + bool? poultryScience, bool? image +}); + + + + +} +/// @nodoc +class __$ReportInfoCopyWithImpl<$Res> + implements _$ReportInfoCopyWith<$Res> { + __$ReportInfoCopyWithImpl(this._self, this._then); + + final _ReportInfo _self; + final $Res Function(_ReportInfo) _then; + +/// Create a copy of ReportInfo +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? poultryScience = freezed,Object? image = freezed,}) { + return _then(_ReportInfo( +poultryScience: freezed == poultryScience ? _self.poultryScience : poultryScience // ignore: cast_nullable_to_non_nullable +as bool?,image: freezed == image ? _self.image : image // ignore: cast_nullable_to_non_nullable +as bool?, + )); +} + + +} + + +/// @nodoc +mixin _$LatestHatchingChange { + + String? get date; String? get role; String? get fullName; +/// Create a copy of LatestHatchingChange +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$LatestHatchingChangeCopyWith get copyWith => _$LatestHatchingChangeCopyWithImpl(this as LatestHatchingChange, _$identity); + + /// Serializes this LatestHatchingChange to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is LatestHatchingChange&&(identical(other.date, date) || other.date == date)&&(identical(other.role, role) || other.role == role)&&(identical(other.fullName, fullName) || other.fullName == fullName)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,date,role,fullName); + +@override +String toString() { + return 'LatestHatchingChange(date: $date, role: $role, fullName: $fullName)'; +} + + +} + +/// @nodoc +abstract mixin class $LatestHatchingChangeCopyWith<$Res> { + factory $LatestHatchingChangeCopyWith(LatestHatchingChange value, $Res Function(LatestHatchingChange) _then) = _$LatestHatchingChangeCopyWithImpl; +@useResult +$Res call({ + String? date, String? role, String? fullName +}); + + + + +} +/// @nodoc +class _$LatestHatchingChangeCopyWithImpl<$Res> + implements $LatestHatchingChangeCopyWith<$Res> { + _$LatestHatchingChangeCopyWithImpl(this._self, this._then); + + final LatestHatchingChange _self; + final $Res Function(LatestHatchingChange) _then; + +/// Create a copy of LatestHatchingChange +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? date = freezed,Object? role = freezed,Object? fullName = freezed,}) { + return _then(_self.copyWith( +date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?,role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable +as String?,fullName: freezed == fullName ? _self.fullName : fullName // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [LatestHatchingChange]. +extension LatestHatchingChangePatterns on LatestHatchingChange { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _LatestHatchingChange value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _LatestHatchingChange() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _LatestHatchingChange value) $default,){ +final _that = this; +switch (_that) { +case _LatestHatchingChange(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _LatestHatchingChange value)? $default,){ +final _that = this; +switch (_that) { +case _LatestHatchingChange() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? date, String? role, String? fullName)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _LatestHatchingChange() when $default != null: +return $default(_that.date,_that.role,_that.fullName);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? date, String? role, String? fullName) $default,) {final _that = this; +switch (_that) { +case _LatestHatchingChange(): +return $default(_that.date,_that.role,_that.fullName);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? date, String? role, String? fullName)? $default,) {final _that = this; +switch (_that) { +case _LatestHatchingChange() when $default != null: +return $default(_that.date,_that.role,_that.fullName);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _LatestHatchingChange implements LatestHatchingChange { + const _LatestHatchingChange({this.date, this.role, this.fullName}); + factory _LatestHatchingChange.fromJson(Map json) => _$LatestHatchingChangeFromJson(json); + +@override final String? date; +@override final String? role; +@override final String? fullName; + +/// Create a copy of LatestHatchingChange +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$LatestHatchingChangeCopyWith<_LatestHatchingChange> get copyWith => __$LatestHatchingChangeCopyWithImpl<_LatestHatchingChange>(this, _$identity); + +@override +Map toJson() { + return _$LatestHatchingChangeToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _LatestHatchingChange&&(identical(other.date, date) || other.date == date)&&(identical(other.role, role) || other.role == role)&&(identical(other.fullName, fullName) || other.fullName == fullName)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,date,role,fullName); + +@override +String toString() { + return 'LatestHatchingChange(date: $date, role: $role, fullName: $fullName)'; +} + + +} + +/// @nodoc +abstract mixin class _$LatestHatchingChangeCopyWith<$Res> implements $LatestHatchingChangeCopyWith<$Res> { + factory _$LatestHatchingChangeCopyWith(_LatestHatchingChange value, $Res Function(_LatestHatchingChange) _then) = __$LatestHatchingChangeCopyWithImpl; +@override @useResult +$Res call({ + String? date, String? role, String? fullName +}); + + + + +} +/// @nodoc +class __$LatestHatchingChangeCopyWithImpl<$Res> + implements _$LatestHatchingChangeCopyWith<$Res> { + __$LatestHatchingChangeCopyWithImpl(this._self, this._then); + + final _LatestHatchingChange _self; + final $Res Function(_LatestHatchingChange) _then; + +/// Create a copy of LatestHatchingChange +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? date = freezed,Object? role = freezed,Object? fullName = freezed,}) { + return _then(_LatestHatchingChange( +date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?,role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable +as String?,fullName: freezed == fullName ? _self.fullName : fullName // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$Registrar { + + String? get date; String? get role; String? get fullname; +/// Create a copy of Registrar +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$RegistrarCopyWith get copyWith => _$RegistrarCopyWithImpl(this as Registrar, _$identity); + + /// Serializes this Registrar to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is Registrar&&(identical(other.date, date) || other.date == date)&&(identical(other.role, role) || other.role == role)&&(identical(other.fullname, fullname) || other.fullname == fullname)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,date,role,fullname); + +@override +String toString() { + return 'Registrar(date: $date, role: $role, fullname: $fullname)'; +} + + +} + +/// @nodoc +abstract mixin class $RegistrarCopyWith<$Res> { + factory $RegistrarCopyWith(Registrar value, $Res Function(Registrar) _then) = _$RegistrarCopyWithImpl; +@useResult +$Res call({ + String? date, String? role, String? fullname +}); + + + + +} +/// @nodoc +class _$RegistrarCopyWithImpl<$Res> + implements $RegistrarCopyWith<$Res> { + _$RegistrarCopyWithImpl(this._self, this._then); + + final Registrar _self; + final $Res Function(Registrar) _then; + +/// Create a copy of Registrar +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? date = freezed,Object? role = freezed,Object? fullname = freezed,}) { + return _then(_self.copyWith( +date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?,role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable +as String?,fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [Registrar]. +extension RegistrarPatterns on Registrar { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _Registrar value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _Registrar() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _Registrar value) $default,){ +final _that = this; +switch (_that) { +case _Registrar(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _Registrar value)? $default,){ +final _that = this; +switch (_that) { +case _Registrar() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? date, String? role, String? fullname)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _Registrar() when $default != null: +return $default(_that.date,_that.role,_that.fullname);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? date, String? role, String? fullname) $default,) {final _that = this; +switch (_that) { +case _Registrar(): +return $default(_that.date,_that.role,_that.fullname);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? date, String? role, String? fullname)? $default,) {final _that = this; +switch (_that) { +case _Registrar() when $default != null: +return $default(_that.date,_that.role,_that.fullname);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _Registrar implements Registrar { + const _Registrar({this.date, this.role, this.fullname}); + factory _Registrar.fromJson(Map json) => _$RegistrarFromJson(json); + +@override final String? date; +@override final String? role; +@override final String? fullname; + +/// Create a copy of Registrar +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$RegistrarCopyWith<_Registrar> get copyWith => __$RegistrarCopyWithImpl<_Registrar>(this, _$identity); + +@override +Map toJson() { + return _$RegistrarToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Registrar&&(identical(other.date, date) || other.date == date)&&(identical(other.role, role) || other.role == role)&&(identical(other.fullname, fullname) || other.fullname == fullname)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,date,role,fullname); + +@override +String toString() { + return 'Registrar(date: $date, role: $role, fullname: $fullname)'; +} + + +} + +/// @nodoc +abstract mixin class _$RegistrarCopyWith<$Res> implements $RegistrarCopyWith<$Res> { + factory _$RegistrarCopyWith(_Registrar value, $Res Function(_Registrar) _then) = __$RegistrarCopyWithImpl; +@override @useResult +$Res call({ + String? date, String? role, String? fullname +}); + + + + +} +/// @nodoc +class __$RegistrarCopyWithImpl<$Res> + implements _$RegistrarCopyWith<$Res> { + __$RegistrarCopyWithImpl(this._self, this._then); + + final _Registrar _self; + final $Res Function(_Registrar) _then; + +/// Create a copy of Registrar +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? date = freezed,Object? role = freezed,Object? fullname = freezed,}) { + return _then(_Registrar( +date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?,role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable +as String?,fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$LastChange { + + String? get date; String? get role; String? get type; String? get fullName; +/// Create a copy of LastChange +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$LastChangeCopyWith get copyWith => _$LastChangeCopyWithImpl(this as LastChange, _$identity); + + /// Serializes this LastChange to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is LastChange&&(identical(other.date, date) || other.date == date)&&(identical(other.role, role) || other.role == role)&&(identical(other.type, type) || other.type == type)&&(identical(other.fullName, fullName) || other.fullName == fullName)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,date,role,type,fullName); + +@override +String toString() { + return 'LastChange(date: $date, role: $role, type: $type, fullName: $fullName)'; +} + + +} + +/// @nodoc +abstract mixin class $LastChangeCopyWith<$Res> { + factory $LastChangeCopyWith(LastChange value, $Res Function(LastChange) _then) = _$LastChangeCopyWithImpl; +@useResult +$Res call({ + String? date, String? role, String? type, String? fullName +}); + + + + +} +/// @nodoc +class _$LastChangeCopyWithImpl<$Res> + implements $LastChangeCopyWith<$Res> { + _$LastChangeCopyWithImpl(this._self, this._then); + + final LastChange _self; + final $Res Function(LastChange) _then; + +/// Create a copy of LastChange +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? date = freezed,Object? role = freezed,Object? type = freezed,Object? fullName = freezed,}) { + return _then(_self.copyWith( +date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?,role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable +as String?,type: freezed == type ? _self.type : type // ignore: cast_nullable_to_non_nullable +as String?,fullName: freezed == fullName ? _self.fullName : fullName // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [LastChange]. +extension LastChangePatterns on LastChange { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _LastChange value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _LastChange() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _LastChange value) $default,){ +final _that = this; +switch (_that) { +case _LastChange(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _LastChange value)? $default,){ +final _that = this; +switch (_that) { +case _LastChange() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? date, String? role, String? type, String? fullName)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _LastChange() when $default != null: +return $default(_that.date,_that.role,_that.type,_that.fullName);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? date, String? role, String? type, String? fullName) $default,) {final _that = this; +switch (_that) { +case _LastChange(): +return $default(_that.date,_that.role,_that.type,_that.fullName);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? date, String? role, String? type, String? fullName)? $default,) {final _that = this; +switch (_that) { +case _LastChange() when $default != null: +return $default(_that.date,_that.role,_that.type,_that.fullName);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _LastChange implements LastChange { + const _LastChange({this.date, this.role, this.type, this.fullName}); + factory _LastChange.fromJson(Map json) => _$LastChangeFromJson(json); + +@override final String? date; +@override final String? role; +@override final String? type; +@override final String? fullName; + +/// Create a copy of LastChange +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$LastChangeCopyWith<_LastChange> get copyWith => __$LastChangeCopyWithImpl<_LastChange>(this, _$identity); + +@override +Map toJson() { + return _$LastChangeToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _LastChange&&(identical(other.date, date) || other.date == date)&&(identical(other.role, role) || other.role == role)&&(identical(other.type, type) || other.type == type)&&(identical(other.fullName, fullName) || other.fullName == fullName)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,date,role,type,fullName); + +@override +String toString() { + return 'LastChange(date: $date, role: $role, type: $type, fullName: $fullName)'; +} + + +} + +/// @nodoc +abstract mixin class _$LastChangeCopyWith<$Res> implements $LastChangeCopyWith<$Res> { + factory _$LastChangeCopyWith(_LastChange value, $Res Function(_LastChange) _then) = __$LastChangeCopyWithImpl; +@override @useResult +$Res call({ + String? date, String? role, String? type, String? fullName +}); + + + + +} +/// @nodoc +class __$LastChangeCopyWithImpl<$Res> + implements _$LastChangeCopyWith<$Res> { + __$LastChangeCopyWithImpl(this._self, this._then); + + final _LastChange _self; + final $Res Function(_LastChange) _then; + +/// Create a copy of LastChange +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? date = freezed,Object? role = freezed,Object? type = freezed,Object? fullName = freezed,}) { + return _then(_LastChange( +date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?,role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable +as String?,type: freezed == type ? _self.type : type // ignore: cast_nullable_to_non_nullable +as String?,fullName: freezed == fullName ? _self.fullName : fullName // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$BreedItem { + + String? get breed; num? get mainQuantity; num? get remainQuantity; +/// Create a copy of BreedItem +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$BreedItemCopyWith get copyWith => _$BreedItemCopyWithImpl(this as BreedItem, _$identity); + + /// Serializes this BreedItem to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is BreedItem&&(identical(other.breed, breed) || other.breed == breed)&&(identical(other.mainQuantity, mainQuantity) || other.mainQuantity == mainQuantity)&&(identical(other.remainQuantity, remainQuantity) || other.remainQuantity == remainQuantity)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,breed,mainQuantity,remainQuantity); + +@override +String toString() { + return 'BreedItem(breed: $breed, mainQuantity: $mainQuantity, remainQuantity: $remainQuantity)'; +} + + +} + +/// @nodoc +abstract mixin class $BreedItemCopyWith<$Res> { + factory $BreedItemCopyWith(BreedItem value, $Res Function(BreedItem) _then) = _$BreedItemCopyWithImpl; +@useResult +$Res call({ + String? breed, num? mainQuantity, num? remainQuantity +}); + + + + +} +/// @nodoc +class _$BreedItemCopyWithImpl<$Res> + implements $BreedItemCopyWith<$Res> { + _$BreedItemCopyWithImpl(this._self, this._then); + + final BreedItem _self; + final $Res Function(BreedItem) _then; + +/// Create a copy of BreedItem +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? breed = freezed,Object? mainQuantity = freezed,Object? remainQuantity = freezed,}) { + return _then(_self.copyWith( +breed: freezed == breed ? _self.breed : breed // ignore: cast_nullable_to_non_nullable +as String?,mainQuantity: freezed == mainQuantity ? _self.mainQuantity : mainQuantity // ignore: cast_nullable_to_non_nullable +as num?,remainQuantity: freezed == remainQuantity ? _self.remainQuantity : remainQuantity // ignore: cast_nullable_to_non_nullable +as num?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [BreedItem]. +extension BreedItemPatterns on BreedItem { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _BreedItem value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _BreedItem() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _BreedItem value) $default,){ +final _that = this; +switch (_that) { +case _BreedItem(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _BreedItem value)? $default,){ +final _that = this; +switch (_that) { +case _BreedItem() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? breed, num? mainQuantity, num? remainQuantity)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _BreedItem() when $default != null: +return $default(_that.breed,_that.mainQuantity,_that.remainQuantity);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? breed, num? mainQuantity, num? remainQuantity) $default,) {final _that = this; +switch (_that) { +case _BreedItem(): +return $default(_that.breed,_that.mainQuantity,_that.remainQuantity);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? breed, num? mainQuantity, num? remainQuantity)? $default,) {final _that = this; +switch (_that) { +case _BreedItem() when $default != null: +return $default(_that.breed,_that.mainQuantity,_that.remainQuantity);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _BreedItem implements BreedItem { + const _BreedItem({this.breed, this.mainQuantity, this.remainQuantity}); + factory _BreedItem.fromJson(Map json) => _$BreedItemFromJson(json); + +@override final String? breed; +@override final num? mainQuantity; +@override final num? remainQuantity; + +/// Create a copy of BreedItem +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$BreedItemCopyWith<_BreedItem> get copyWith => __$BreedItemCopyWithImpl<_BreedItem>(this, _$identity); + +@override +Map toJson() { + return _$BreedItemToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _BreedItem&&(identical(other.breed, breed) || other.breed == breed)&&(identical(other.mainQuantity, mainQuantity) || other.mainQuantity == mainQuantity)&&(identical(other.remainQuantity, remainQuantity) || other.remainQuantity == remainQuantity)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,breed,mainQuantity,remainQuantity); + +@override +String toString() { + return 'BreedItem(breed: $breed, mainQuantity: $mainQuantity, remainQuantity: $remainQuantity)'; +} + + +} + +/// @nodoc +abstract mixin class _$BreedItemCopyWith<$Res> implements $BreedItemCopyWith<$Res> { + factory _$BreedItemCopyWith(_BreedItem value, $Res Function(_BreedItem) _then) = __$BreedItemCopyWithImpl; +@override @useResult +$Res call({ + String? breed, num? mainQuantity, num? remainQuantity +}); + + + + +} +/// @nodoc +class __$BreedItemCopyWithImpl<$Res> + implements _$BreedItemCopyWith<$Res> { + __$BreedItemCopyWithImpl(this._self, this._then); + + final _BreedItem _self; + final $Res Function(_BreedItem) _then; + +/// Create a copy of BreedItem +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? breed = freezed,Object? mainQuantity = freezed,Object? remainQuantity = freezed,}) { + return _then(_BreedItem( +breed: freezed == breed ? _self.breed : breed // ignore: cast_nullable_to_non_nullable +as String?,mainQuantity: freezed == mainQuantity ? _self.mainQuantity : mainQuantity // ignore: cast_nullable_to_non_nullable +as num?,remainQuantity: freezed == remainQuantity ? _self.remainQuantity : remainQuantity // ignore: cast_nullable_to_non_nullable +as num?, + )); +} + + +} + +// dart format on diff --git a/packages/chicken/lib/data/models/response/hatching/hatching_models.g.dart b/packages/chicken/lib/data/models/response/hatching/hatching_models.g.dart new file mode 100644 index 0000000..11c2741 --- /dev/null +++ b/packages/chicken/lib/data/models/response/hatching/hatching_models.g.dart @@ -0,0 +1,723 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'hatching_models.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +_HatchingModel _$HatchingModelFromJson( + Map json, +) => _HatchingModel( + id: (json['id'] as num?)?.toInt(), + poultry: json['poultry'] == null + ? null + : Poultry.fromJson(json['poultry'] as Map), + chainCompany: json['chain_company'] == null + ? null + : ChainCompany.fromJson(json['chain_company'] as Map), + age: json['age'] as num?, + inspectionLosses: json['inspection_losses'], + vetFarm: json['vet_farm'] == null + ? null + : VetFarm.fromJson(json['vet_farm'] as Map), + activeKill: json['active_kill'] == null + ? null + : ActiveKill.fromJson(json['active_kill'] as Map), + killingInfo: json['killing_info'] == null + ? null + : KillingInfo.fromJson(json['killing_info'] as Map), + freeGovernmentalInfo: json['free_governmental_info'] == null + ? null + : FreeGovernmentalInfo.fromJson( + json['free_governmental_info'] as Map, + ), + reportInfo: json['report_info'] == null + ? null + : ReportInfo.fromJson(json['report_info'] as Map), + key: json['key'] as String?, + createDate: json['create_date'] as String?, + modifyDate: json['modify_date'] as String?, + trash: json['trash'] as bool?, + hasChainCompany: json['has_chain_company'] as bool?, + poultryIdForeignKey: (json['poultry_id_foreign_key'] as num?)?.toInt(), + poultryHatchingIdKey: (json['poultry_hatching_id_key'] as num?)?.toInt(), + quantity: json['quantity'] as num?, + losses: json['losses'] as num?, + leftOver: json['left_over'] as num?, + killedQuantity: json['killed_quantity'] as num?, + extraKilledQuantity: json['extra_killed_quantity'] as num?, + governmentalKilledQuantity: json['governmental_killed_quantity'] as num?, + governmentalQuantity: json['governmental_quantity'] as num?, + freeKilledQuantity: json['free_killed_quantity'] as num?, + freeQuantity: json['free_quantity'] as num?, + chainKilledQuantity: json['chain_killed_quantity'] as num?, + chainKilledWeight: json['chain_killed_weight'] as num?, + outProvinceKilledWeight: json['out_province_killed_weight'] as num?, + outProvinceKilledQuantity: json['out_province_killed_quantity'] as num?, + exportKilledWeight: json['export_killed_weight'] as num?, + exportKilledQuantity: json['export_killed_quantity'] as num?, + totalCommitment: json['total_commitment'] as num?, + commitmentType: json['commitment_type'] as String?, + totalCommitmentQuantity: json['total_commitment_quantity'] as num?, + totalFreeCommitmentQuantity: json['total_free_commitment_quantity'] as num?, + totalFreeCommitmentWeight: json['total_free_commitment_weight'] as num?, + totalKilledWeight: json['total_killed_weight'] as num?, + totalAverageKilledWeight: json['total_average_killed_weight'] as num?, + requestLeftOver: json['request_left_over'] as num?, + hall: json['hall'] as num?, + date: json['date'] as String?, + predicateDate: json['predicate_date'] as String?, + chickenBreed: json['chicken_breed'] as String?, + period: json['period'] as num?, + allowHatching: json['allow_hatching'] as String?, + state: json['state'] as String?, + archive: json['archive'] as bool?, + violation: json['violation'] as bool?, + message: json['message'] as String?, + registrar: json['registrar'] == null + ? null + : Registrar.fromJson(json['registrar'] as Map), + breed: (json['breed'] as List?) + ?.map((e) => BreedItem.fromJson(e as Map)) + .toList(), + cityNumber: json['city_number'] as num?, + cityName: json['city_name'] as String?, + provinceNumber: json['province_number'] as num?, + provinceName: json['province_name'] as String?, + lastChange: json['last_change'] == null + ? null + : LastChange.fromJson(json['last_change'] as Map), + chickenAge: json['chicken_age'] as num?, + nowAge: json['now_age'] as num?, + latestHatchingChange: json['latest_hatching_change'] == null + ? null + : LatestHatchingChange.fromJson( + json['latest_hatching_change'] as Map, + ), + violationReport: json['violation_report'] as String?, + violationMessage: json['violation_message'] as String?, + violationImage: (json['violation_image'] as List?) + ?.map((e) => e as String) + .toList(), + violationReporter: json['violation_reporter'] as String?, + violationReportDate: json['violation_report_date'] as String?, + violationReportEditor: json['violation_report_editor'] as String?, + violationReportEditDate: json['violation_report_edit_date'] as String?, + totalLosses: json['total_losses'] as num?, + directLosses: json['direct_losses'] as num?, + directLossesInputer: json['direct_losses_inputer'] as String?, + directLossesDate: json['direct_losses_date'] as String?, + directLossesEditor: json['direct_losses_editor'] as String?, + directLossesLastEditDate: json['direct_losses_last_edit_date'] as String?, + endPeriodLossesInputer: json['end_period_losses_inputer'] as String?, + endPeriodLossesDate: json['end_period_losses_date'] as String?, + endPeriodLossesEditor: json['end_period_losses_editor'] as String?, + endPeriodLossesLastEditDate: + json['end_period_losses_last_edit_date'] as String?, + breedingUniqueId: json['breeding_unique_id'] as String?, + licenceNumber: json['licence_number'] as String?, + temporaryTrash: json['temporary_trash'] as bool?, + temporaryDeleted: json['temporary_deleted'] as bool?, + firstDateInputArchive: json['first_date_input_archive'] as String?, + secondDateInputArchive: json['second_date_input_archive'] as String?, + inputArchiver: json['input_archiver'] as String?, + outputArchiveDate: json['output_archive_date'] as String?, + outputArchiver: json['output_archiver'] as String?, + barDifferenceRequestWeight: json['bar_difference_request_weight'] as num?, + barDifferenceRequestQuantity: json['bar_difference_request_quantity'] as num?, + healthCertificate: json['health_certificate'] as String?, + samasatDischargePercentage: json['samasat_discharge_percentage'] as num?, + personTypeName: json['person_type_name'] as String?, + interactTypeName: json['interact_type_name'] as String?, + unionTypeName: json['union_type_name'] as String?, + certId: json['cert_id'] as String?, + increaseQuantity: json['increase_quantity'] as num?, + tenantFullname: json['tenant_fullname'] as String?, + tenantNationalCode: json['tenant_national_code'] as String?, + tenantMobile: json['tenant_mobile'] as String?, + tenantCity: json['tenant_city'] as String?, + hasTenant: json['has_tenant'] as bool?, + archiveDate: json['archive_date'] as String?, + createdBy: json['created_by'] as String?, + modifiedBy: json['modified_by'] as String?, +); + +Map _$HatchingModelToJson(_HatchingModel instance) => + { + 'id': instance.id, + 'poultry': instance.poultry, + 'chain_company': instance.chainCompany, + 'age': instance.age, + 'inspection_losses': instance.inspectionLosses, + 'vet_farm': instance.vetFarm, + 'active_kill': instance.activeKill, + 'killing_info': instance.killingInfo, + 'free_governmental_info': instance.freeGovernmentalInfo, + 'report_info': instance.reportInfo, + 'key': instance.key, + 'create_date': instance.createDate, + 'modify_date': instance.modifyDate, + 'trash': instance.trash, + 'has_chain_company': instance.hasChainCompany, + 'poultry_id_foreign_key': instance.poultryIdForeignKey, + 'poultry_hatching_id_key': instance.poultryHatchingIdKey, + 'quantity': instance.quantity, + 'losses': instance.losses, + 'left_over': instance.leftOver, + 'killed_quantity': instance.killedQuantity, + 'extra_killed_quantity': instance.extraKilledQuantity, + 'governmental_killed_quantity': instance.governmentalKilledQuantity, + 'governmental_quantity': instance.governmentalQuantity, + 'free_killed_quantity': instance.freeKilledQuantity, + 'free_quantity': instance.freeQuantity, + 'chain_killed_quantity': instance.chainKilledQuantity, + 'chain_killed_weight': instance.chainKilledWeight, + 'out_province_killed_weight': instance.outProvinceKilledWeight, + 'out_province_killed_quantity': instance.outProvinceKilledQuantity, + 'export_killed_weight': instance.exportKilledWeight, + 'export_killed_quantity': instance.exportKilledQuantity, + 'total_commitment': instance.totalCommitment, + 'commitment_type': instance.commitmentType, + 'total_commitment_quantity': instance.totalCommitmentQuantity, + 'total_free_commitment_quantity': instance.totalFreeCommitmentQuantity, + 'total_free_commitment_weight': instance.totalFreeCommitmentWeight, + 'total_killed_weight': instance.totalKilledWeight, + 'total_average_killed_weight': instance.totalAverageKilledWeight, + 'request_left_over': instance.requestLeftOver, + 'hall': instance.hall, + 'date': instance.date, + 'predicate_date': instance.predicateDate, + 'chicken_breed': instance.chickenBreed, + 'period': instance.period, + 'allow_hatching': instance.allowHatching, + 'state': instance.state, + 'archive': instance.archive, + 'violation': instance.violation, + 'message': instance.message, + 'registrar': instance.registrar, + 'breed': instance.breed, + 'city_number': instance.cityNumber, + 'city_name': instance.cityName, + 'province_number': instance.provinceNumber, + 'province_name': instance.provinceName, + 'last_change': instance.lastChange, + 'chicken_age': instance.chickenAge, + 'now_age': instance.nowAge, + 'latest_hatching_change': instance.latestHatchingChange, + 'violation_report': instance.violationReport, + 'violation_message': instance.violationMessage, + 'violation_image': instance.violationImage, + 'violation_reporter': instance.violationReporter, + 'violation_report_date': instance.violationReportDate, + 'violation_report_editor': instance.violationReportEditor, + 'violation_report_edit_date': instance.violationReportEditDate, + 'total_losses': instance.totalLosses, + 'direct_losses': instance.directLosses, + 'direct_losses_inputer': instance.directLossesInputer, + 'direct_losses_date': instance.directLossesDate, + 'direct_losses_editor': instance.directLossesEditor, + 'direct_losses_last_edit_date': instance.directLossesLastEditDate, + 'end_period_losses_inputer': instance.endPeriodLossesInputer, + 'end_period_losses_date': instance.endPeriodLossesDate, + 'end_period_losses_editor': instance.endPeriodLossesEditor, + 'end_period_losses_last_edit_date': instance.endPeriodLossesLastEditDate, + 'breeding_unique_id': instance.breedingUniqueId, + 'licence_number': instance.licenceNumber, + 'temporary_trash': instance.temporaryTrash, + 'temporary_deleted': instance.temporaryDeleted, + 'first_date_input_archive': instance.firstDateInputArchive, + 'second_date_input_archive': instance.secondDateInputArchive, + 'input_archiver': instance.inputArchiver, + 'output_archive_date': instance.outputArchiveDate, + 'output_archiver': instance.outputArchiver, + 'bar_difference_request_weight': instance.barDifferenceRequestWeight, + 'bar_difference_request_quantity': instance.barDifferenceRequestQuantity, + 'health_certificate': instance.healthCertificate, + 'samasat_discharge_percentage': instance.samasatDischargePercentage, + 'person_type_name': instance.personTypeName, + 'interact_type_name': instance.interactTypeName, + 'union_type_name': instance.unionTypeName, + 'cert_id': instance.certId, + 'increase_quantity': instance.increaseQuantity, + 'tenant_fullname': instance.tenantFullname, + 'tenant_national_code': instance.tenantNationalCode, + 'tenant_mobile': instance.tenantMobile, + 'tenant_city': instance.tenantCity, + 'has_tenant': instance.hasTenant, + 'archive_date': instance.archiveDate, + 'created_by': instance.createdBy, + 'modified_by': instance.modifiedBy, + }; + +_Poultry _$PoultryFromJson(Map json) => _Poultry( + id: (json['id'] as num?)?.toInt(), + user: json['user'] == null + ? null + : PoultryUser.fromJson(json['user'] as Map), + address: json['address'] == null + ? null + : PoultryAddress.fromJson(json['address'] as Map), + key: json['key'] as String?, + trash: json['trash'] as bool?, + ownerIdForeignKey: (json['owner_id_foreign_key'] as num?)?.toInt(), + userIdForeignKey: (json['user_id_foreign_key'] as num?)?.toInt(), + addressIdForeignKey: (json['address_id_foreign_key'] as num?)?.toInt(), + hasChainCompany: json['has_chain_company'] as bool?, + userBankIdForeignKey: (json['user_bank_id_foreign_key'] as num?)?.toInt(), + cityOperator: json['city_operator'] as String?, + unitName: json['unit_name'] as String?, + gisCode: json['gis_code'] as String?, + operatingLicenceCapacity: json['operating_licence_capacity'] as num?, + numberOfHalls: json['number_of_halls'] as num?, + tenant: json['tenant'] as bool?, + hasTenant: json['has_tenant'] as bool?, + personType: json['person_type'] as String?, + economicCode: json['economic_code'] as String?, + systemCode: json['system_code'] as String?, + epidemiologicalCode: json['epidemiological_code'] as String?, + breedingUniqueId: json['breeding_unique_id'] as String?, + totalCapacity: json['total_capacity'] as num?, + licenceNumber: json['licence_number'] as String?, + healthCertificateNumber: json['health_certificate_number'] as String?, + numberOfRequests: json['number_of_requests'] as num?, + hatchingDate: json['hatching_date'] as String?, + lastPartyDate: json['last_party_date'] as String?, + numberOfIncubators: json['number_of_incubators'] as num?, + herdAgeByDay: json['herd_age_by_day'] as num?, + herdAgeByWeek: json['herd_age_by_week'] as num?, + numberOfParty: json['number_of_party'] as num?, + communicationType: json['communication_type'] as String?, + cooperative: json['cooperative'] as String?, + dateOfRegister: json['date_of_register'] as String?, + unitStatus: json['unit_status'] as String?, + active: json['active'] as bool?, + identityDocuments: json['identity_documents'], + samasatUserCode: json['samasat_user_code'] as String?, + baseOrder: json['base_order'] as String?, + incubationDate: json['incubation_date'] as String?, + walletAmount: json['wallet_amount'] as num?, + city: json['city'] as num?, + cityNumber: json['city_number'] as num?, + cityName: json['city_name'] as String?, + provinceNumber: json['province_number'] as num?, + provinceName: json['province_name'] as String?, + walletIdForeignKey: (json['wallet_id_foreign_key'] as num?)?.toInt(), + poultryIdKey: (json['poultry_id_key'] as num?)?.toInt(), + lat: json['lat'] as num?, + long: json['long'] as num?, + date: json['date'] as String?, + killingAveAge: json['killing_ave_age'] as num?, + activeLeftOver: json['active_left_over'] as num?, + killingAveCount: json['killing_ave_count'] as num?, + killingAveWeight: json['killing_ave_weight'] as num?, + killingLiveWeight: json['killing_live_weight'] as num?, + killingCarcassesWeight: json['killing_carcasses_weight'] as num?, + killingLossWeightPercent: json['killing_loss_weight_percent'] as num?, + realKillingAveWeight: json['real_killing_ave_weight'] as num?, + realKillingLiveWeight: json['real_killing_live_weight'] as num?, + realKillingCarcassesWeight: json['real_killing_carcasses_weight'] as num?, + realKillingLossWeightPercent: + json['real_killing_loss_weight_percent'] as num?, + interestLicenseId: (json['interest_license_id'] as num?)?.toInt(), + orderLimit: json['order_limit'] as bool?, + owner: (json['owner'] as num?)?.toInt(), + userBankInfo: (json['user_bank_info'] as num?)?.toInt(), + wallet: (json['wallet'] as num?)?.toInt(), +); + +Map _$PoultryToJson(_Poultry instance) => { + 'id': instance.id, + 'user': instance.user, + 'address': instance.address, + 'key': instance.key, + 'trash': instance.trash, + 'owner_id_foreign_key': instance.ownerIdForeignKey, + 'user_id_foreign_key': instance.userIdForeignKey, + 'address_id_foreign_key': instance.addressIdForeignKey, + 'has_chain_company': instance.hasChainCompany, + 'user_bank_id_foreign_key': instance.userBankIdForeignKey, + 'city_operator': instance.cityOperator, + 'unit_name': instance.unitName, + 'gis_code': instance.gisCode, + 'operating_licence_capacity': instance.operatingLicenceCapacity, + 'number_of_halls': instance.numberOfHalls, + 'tenant': instance.tenant, + 'has_tenant': instance.hasTenant, + 'person_type': instance.personType, + 'economic_code': instance.economicCode, + 'system_code': instance.systemCode, + 'epidemiological_code': instance.epidemiologicalCode, + 'breeding_unique_id': instance.breedingUniqueId, + 'total_capacity': instance.totalCapacity, + 'licence_number': instance.licenceNumber, + 'health_certificate_number': instance.healthCertificateNumber, + 'number_of_requests': instance.numberOfRequests, + 'hatching_date': instance.hatchingDate, + 'last_party_date': instance.lastPartyDate, + 'number_of_incubators': instance.numberOfIncubators, + 'herd_age_by_day': instance.herdAgeByDay, + 'herd_age_by_week': instance.herdAgeByWeek, + 'number_of_party': instance.numberOfParty, + 'communication_type': instance.communicationType, + 'cooperative': instance.cooperative, + 'date_of_register': instance.dateOfRegister, + 'unit_status': instance.unitStatus, + 'active': instance.active, + 'identity_documents': instance.identityDocuments, + 'samasat_user_code': instance.samasatUserCode, + 'base_order': instance.baseOrder, + 'incubation_date': instance.incubationDate, + 'wallet_amount': instance.walletAmount, + 'city': instance.city, + 'city_number': instance.cityNumber, + 'city_name': instance.cityName, + 'province_number': instance.provinceNumber, + 'province_name': instance.provinceName, + 'wallet_id_foreign_key': instance.walletIdForeignKey, + 'poultry_id_key': instance.poultryIdKey, + 'lat': instance.lat, + 'long': instance.long, + 'date': instance.date, + 'killing_ave_age': instance.killingAveAge, + 'active_left_over': instance.activeLeftOver, + 'killing_ave_count': instance.killingAveCount, + 'killing_ave_weight': instance.killingAveWeight, + 'killing_live_weight': instance.killingLiveWeight, + 'killing_carcasses_weight': instance.killingCarcassesWeight, + 'killing_loss_weight_percent': instance.killingLossWeightPercent, + 'real_killing_ave_weight': instance.realKillingAveWeight, + 'real_killing_live_weight': instance.realKillingLiveWeight, + 'real_killing_carcasses_weight': instance.realKillingCarcassesWeight, + 'real_killing_loss_weight_percent': instance.realKillingLossWeightPercent, + 'interest_license_id': instance.interestLicenseId, + 'order_limit': instance.orderLimit, + 'owner': instance.owner, + 'user_bank_info': instance.userBankInfo, + 'wallet': instance.wallet, +}; + +_PoultryUser _$PoultryUserFromJson(Map json) => _PoultryUser( + fullname: json['fullname'] as String?, + mobile: json['mobile'] as String?, +); + +Map _$PoultryUserToJson(_PoultryUser instance) => + {'fullname': instance.fullname, 'mobile': instance.mobile}; + +_PoultryAddress _$PoultryAddressFromJson(Map json) => + _PoultryAddress( + province: json['province'] == null + ? null + : ProvinceRef.fromJson(json['province'] as Map), + city: json['city'] == null + ? null + : CityRef.fromJson(json['city'] as Map), + address: json['address'] as String?, + postalCode: json['postal_code'] as String?, + ); + +Map _$PoultryAddressToJson(_PoultryAddress instance) => + { + 'province': instance.province, + 'city': instance.city, + 'address': instance.address, + 'postal_code': instance.postalCode, + }; + +_ProvinceRef _$ProvinceRefFromJson(Map json) => + _ProvinceRef(key: json['key'] as String?, name: json['name'] as String?); + +Map _$ProvinceRefToJson(_ProvinceRef instance) => + {'key': instance.key, 'name': instance.name}; + +_CityRef _$CityRefFromJson(Map json) => + _CityRef(key: json['key'] as String?, name: json['name'] as String?); + +Map _$CityRefToJson(_CityRef instance) => { + 'key': instance.key, + 'name': instance.name, +}; + +_ChainCompany _$ChainCompanyFromJson(Map json) => + _ChainCompany( + user: json['user'] == null + ? null + : ChainUser.fromJson(json['user'] as Map), + userBankInfo: json['user_bank_info'], + key: json['key'] as String?, + trash: json['trash'] as bool?, + name: json['name'] as String?, + city: json['city'] as String?, + province: json['province'] as String?, + postalCode: json['postal_code'] as String?, + address: json['address'] as String?, + wallet: json['wallet'] as num?, + ); + +Map _$ChainCompanyToJson(_ChainCompany instance) => + { + 'user': instance.user, + 'user_bank_info': instance.userBankInfo, + 'key': instance.key, + 'trash': instance.trash, + 'name': instance.name, + 'city': instance.city, + 'province': instance.province, + 'postal_code': instance.postalCode, + 'address': instance.address, + 'wallet': instance.wallet, + }; + +_ChainUser _$ChainUserFromJson(Map json) => _ChainUser( + role: (json['role'] as List?)?.map((e) => e as String).toList(), + city: json['city'] as String?, + province: json['province'] as String?, + key: json['key'] as String?, + userGateWayId: json['user_gate_way_id'] as String?, + userDjangoIdForeignKey: (json['user_django_id_foreign_key'] as num?)?.toInt(), + provinceIdForeignKey: (json['province_id_foreign_key'] as num?)?.toInt(), + cityIdForeignKey: (json['city_id_foreign_key'] as num?)?.toInt(), + systemUserProfileIdKey: (json['system_user_profile_id_key'] as num?)?.toInt(), + fullname: json['fullname'] as String?, + firstName: json['first_name'] as String?, + lastName: json['last_name'] as String?, + nationalCode: json['national_code'] as String?, + nationalCodeImage: json['national_code_image'] as String?, + nationalId: json['national_id'] as String?, + mobile: json['mobile'] as String?, + birthday: json['birthday'] as String?, + image: json['image'] as String?, + password: json['password'] as String?, + active: json['active'] as bool?, + state: json['state'] == null + ? null + : ChainUserState.fromJson(json['state'] as Map), + baseOrder: json['base_order'] as num?, + cityNumber: json['city_number'] as num?, + cityName: json['city_name'] as String?, + provinceNumber: json['province_number'] as num?, + provinceName: json['province_name'] as String?, + unitName: json['unit_name'] as String?, + unitNationalId: json['unit_national_id'] as String?, + unitRegistrationNumber: json['unit_registration_number'] as String?, + unitEconomicalNumber: json['unit_economical_number'] as String?, + unitProvince: json['unit_province'] as String?, + unitCity: json['unit_city'] as String?, + unitPostalCode: json['unit_postal_code'] as String?, + unitAddress: json['unit_address'] as String?, +); + +Map _$ChainUserToJson(_ChainUser instance) => + { + 'role': instance.role, + 'city': instance.city, + 'province': instance.province, + 'key': instance.key, + 'user_gate_way_id': instance.userGateWayId, + 'user_django_id_foreign_key': instance.userDjangoIdForeignKey, + 'province_id_foreign_key': instance.provinceIdForeignKey, + 'city_id_foreign_key': instance.cityIdForeignKey, + 'system_user_profile_id_key': instance.systemUserProfileIdKey, + 'fullname': instance.fullname, + 'first_name': instance.firstName, + 'last_name': instance.lastName, + 'national_code': instance.nationalCode, + 'national_code_image': instance.nationalCodeImage, + 'national_id': instance.nationalId, + 'mobile': instance.mobile, + 'birthday': instance.birthday, + 'image': instance.image, + 'password': instance.password, + 'active': instance.active, + 'state': instance.state, + 'base_order': instance.baseOrder, + 'city_number': instance.cityNumber, + 'city_name': instance.cityName, + 'province_number': instance.provinceNumber, + 'province_name': instance.provinceName, + 'unit_name': instance.unitName, + 'unit_national_id': instance.unitNationalId, + 'unit_registration_number': instance.unitRegistrationNumber, + 'unit_economical_number': instance.unitEconomicalNumber, + 'unit_province': instance.unitProvince, + 'unit_city': instance.unitCity, + 'unit_postal_code': instance.unitPostalCode, + 'unit_address': instance.unitAddress, + }; + +_ChainUserState _$ChainUserStateFromJson(Map json) => + _ChainUserState( + city: json['city'] as String?, + image: json['image'] as String?, + mobile: json['mobile'] as String?, + birthday: json['birthday'] as String?, + province: json['province'] as String?, + lastName: json['last_name'] as String?, + firstName: json['first_name'] as String?, + nationalId: json['national_id'] as String?, + nationalCode: json['national_code'] as String?, + ); + +Map _$ChainUserStateToJson(_ChainUserState instance) => + { + 'city': instance.city, + 'image': instance.image, + 'mobile': instance.mobile, + 'birthday': instance.birthday, + 'province': instance.province, + 'last_name': instance.lastName, + 'first_name': instance.firstName, + 'national_id': instance.nationalId, + 'national_code': instance.nationalCode, + }; + +_VetFarm _$VetFarmFromJson(Map json) => _VetFarm( + vetFarmFullName: json['vet_farm_full_name'] as String?, + vetFarmMobile: json['vet_farm_mobile'] as String?, +); + +Map _$VetFarmToJson(_VetFarm instance) => { + 'vet_farm_full_name': instance.vetFarmFullName, + 'vet_farm_mobile': instance.vetFarmMobile, +}; + +_ActiveKill _$ActiveKillFromJson(Map json) => _ActiveKill( + activeKill: json['active_kill'] as bool?, + countOfRequest: json['count_of_request'] as num?, +); + +Map _$ActiveKillToJson(_ActiveKill instance) => + { + 'active_kill': instance.activeKill, + 'count_of_request': instance.countOfRequest, + }; + +_KillingInfo _$KillingInfoFromJson(Map json) => _KillingInfo( + violationMessage: json['violation_message'] as String?, + provinceKillRequests: json['province_kill_requests'] as num?, + provinceKillRequestsQuantity: json['province_kill_requests_quantity'] as num?, + provinceKillRequestsWeight: json['province_kill_requests_weight'] as num?, + killHouseRequests: json['kill_house_requests'] as num?, + killHouseRequestsFirstQuantity: + json['kill_house_requests_first_quantity'] as num?, + killHouseRequestsFirstWeight: + json['kill_house_requests_first_weight'] as num?, + barCompleteWithKillHouse: json['bar_complete_with_kill_house'] as num?, + acceptedRealQuantityFinal: json['accepted_real_quantity_final'] as num?, + acceptedRealWightFinal: json['accepted_real_wight_final'] as num?, + wareHouseBars: json['ware_house_bars'] as num?, + wareHouseBarsQuantity: json['ware_house_bars_quantity'] as num?, + wareHouseBarsWeight: json['ware_house_bars_weight'] as num?, + wareHouseBarsWeightLose: json['ware_house_bars_weight_lose'] as num?, +); + +Map _$KillingInfoToJson( + _KillingInfo instance, +) => { + 'violation_message': instance.violationMessage, + 'province_kill_requests': instance.provinceKillRequests, + 'province_kill_requests_quantity': instance.provinceKillRequestsQuantity, + 'province_kill_requests_weight': instance.provinceKillRequestsWeight, + 'kill_house_requests': instance.killHouseRequests, + 'kill_house_requests_first_quantity': instance.killHouseRequestsFirstQuantity, + 'kill_house_requests_first_weight': instance.killHouseRequestsFirstWeight, + 'bar_complete_with_kill_house': instance.barCompleteWithKillHouse, + 'accepted_real_quantity_final': instance.acceptedRealQuantityFinal, + 'accepted_real_wight_final': instance.acceptedRealWightFinal, + 'ware_house_bars': instance.wareHouseBars, + 'ware_house_bars_quantity': instance.wareHouseBarsQuantity, + 'ware_house_bars_weight': instance.wareHouseBarsWeight, + 'ware_house_bars_weight_lose': instance.wareHouseBarsWeightLose, +}; + +_FreeGovernmentalInfo _$FreeGovernmentalInfoFromJson( + Map json, +) => _FreeGovernmentalInfo( + governmentalAllocatedQuantity: + json['governmental_allocated_quantity'] as num?, + totalCommitmentQuantity: json['total_commitment_quantity'] as num?, + freeAllocatedQuantity: json['free_allocated_quantity'] as num?, + totalFreeCommitmentQuantity: json['total_free_commitment_quantity'] as num?, + leftTotalFreeCommitmentQuantity: + json['left_total_free_commitment_quantity'] as num?, +); + +Map _$FreeGovernmentalInfoToJson( + _FreeGovernmentalInfo instance, +) => { + 'governmental_allocated_quantity': instance.governmentalAllocatedQuantity, + 'total_commitment_quantity': instance.totalCommitmentQuantity, + 'free_allocated_quantity': instance.freeAllocatedQuantity, + 'total_free_commitment_quantity': instance.totalFreeCommitmentQuantity, + 'left_total_free_commitment_quantity': + instance.leftTotalFreeCommitmentQuantity, +}; + +_ReportInfo _$ReportInfoFromJson(Map json) => _ReportInfo( + poultryScience: json['poultry_science'] as bool?, + image: json['image'] as bool?, +); + +Map _$ReportInfoToJson(_ReportInfo instance) => + { + 'poultry_science': instance.poultryScience, + 'image': instance.image, + }; + +_LatestHatchingChange _$LatestHatchingChangeFromJson( + Map json, +) => _LatestHatchingChange( + date: json['date'] as String?, + role: json['role'] as String?, + fullName: json['full_name'] as String?, +); + +Map _$LatestHatchingChangeToJson( + _LatestHatchingChange instance, +) => { + 'date': instance.date, + 'role': instance.role, + 'full_name': instance.fullName, +}; + +_Registrar _$RegistrarFromJson(Map json) => _Registrar( + date: json['date'] as String?, + role: json['role'] as String?, + fullname: json['fullname'] as String?, +); + +Map _$RegistrarToJson(_Registrar instance) => + { + 'date': instance.date, + 'role': instance.role, + 'fullname': instance.fullname, + }; + +_LastChange _$LastChangeFromJson(Map json) => _LastChange( + date: json['date'] as String?, + role: json['role'] as String?, + type: json['type'] as String?, + fullName: json['full_name'] as String?, +); + +Map _$LastChangeToJson(_LastChange instance) => + { + 'date': instance.date, + 'role': instance.role, + 'type': instance.type, + 'full_name': instance.fullName, + }; + +_BreedItem _$BreedItemFromJson(Map json) => _BreedItem( + breed: json['breed'] as String?, + mainQuantity: json['main_quantity'] as num?, + remainQuantity: json['remain_quantity'] as num?, +); + +Map _$BreedItemToJson(_BreedItem instance) => + { + 'breed': instance.breed, + 'main_quantity': instance.mainQuantity, + 'remain_quantity': instance.remainQuantity, + }; diff --git a/packages/chicken/lib/data/models/response/hatching_report/hatching_report.dart b/packages/chicken/lib/data/models/response/hatching_report/hatching_report.dart new file mode 100644 index 0000000..c061913 --- /dev/null +++ b/packages/chicken/lib/data/models/response/hatching_report/hatching_report.dart @@ -0,0 +1,122 @@ +import 'package:freezed_annotation/freezed_annotation.dart'; + +part 'hatching_report.freezed.dart'; +part 'hatching_report.g.dart'; + +@freezed +abstract class HatchingReport with _$HatchingReport { + const factory HatchingReport({ + int? id, + PoultryScience? poultryScience, + Hatching? hatching, + String? key, + String? createDate, + String? modifyDate, + bool? trash, + String? date, + List? image, + double? lat, + double? log, + String? reporterFullname, + String? reporterMobile, + String? createdBy, + String? modifiedBy, + }) = _HatchingReport; + + factory HatchingReport.fromJson(Map json) => _$HatchingReportFromJson(json); +} + +@freezed +abstract class PoultryScience with _$PoultryScience { + const factory PoultryScience({ + int? id, + User? user, + String? key, + String? createDate, + String? modifyDate, + bool? trash, + String? createdBy, + String? modifiedBy, + List? poultry, + }) = _PoultryScience; + + factory PoultryScience.fromJson(Map json) => _$PoultryScienceFromJson(json); +} + +@freezed +abstract class User with _$User { + const factory User({String? fullname, String? mobile}) = _User; + + factory User.fromJson(Map json) => _$UserFromJson(json); +} + +@freezed +abstract class Hatching with _$Hatching { + const factory Hatching({ + Poultry? poultry, + GeneralInfo? generalInfo, + String? chickenBreed, + String? date, + int? quantity, + int? leftOver, + int? period, + int? losses, + bool? violation, + String? licenceNumber, + int? chickenAge, + VetFarm? vetFarm, + }) = _Hatching; + + factory Hatching.fromJson(Map json) => _$HatchingFromJson(json); +} + + +@freezed +abstract class VetFarm with _$VetFarm { + const factory VetFarm({ + String? vetFarmFullname, + String? vetFarmMobile, + }) = _VetFarm; + + factory VetFarm.fromJson(Map json) => _$VetFarmFromJson(json); +} + + +@freezed +abstract class Poultry with _$Poultry { + const factory Poultry({ + String? key, + String? fullname, + String? mobile, + String? city, + String? unitName, + int? killingAveAge, + int? activeLeftOver, + int? killingAveCount, + double? realKillingAveWeight, + double? realKillingLiveWeight, + double? realKillingCarcassesWeight, + double? realKillingLossWeightPercent, + }) = _Poultry; + + factory Poultry.fromJson(Map json) => _$PoultryFromJson(json); +} + +@freezed +abstract class GeneralInfo with _$GeneralInfo { + const factory GeneralInfo({ + int? aveAge, + int? age, + double? aveWeight, + int? provinceKillRequests, + int? provinceKillRequestsQuantity, + double? provinceKillRequestsWeight, + int? killHouseRequestsQuantity, + int? killHouseRequests, + double? killHouseRequestsWeight, + int? totalQuantity, + double? totalWeight, + }) = _GeneralInfo; + + factory GeneralInfo.fromJson(Map json) => _$GeneralInfoFromJson(json); +} diff --git a/packages/chicken/lib/data/models/response/hatching_report/hatching_report.freezed.dart b/packages/chicken/lib/data/models/response/hatching_report/hatching_report.freezed.dart new file mode 100644 index 0000000..9bffb8e --- /dev/null +++ b/packages/chicken/lib/data/models/response/hatching_report/hatching_report.freezed.dart @@ -0,0 +1,2183 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// coverage:ignore-file +// ignore_for_file: type=lint +// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark + +part of 'hatching_report.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; + +/// @nodoc +mixin _$HatchingReport { + + int? get id; PoultryScience? get poultryScience; Hatching? get hatching; String? get key; String? get createDate; String? get modifyDate; bool? get trash; String? get date; List? get image; double? get lat; double? get log; String? get reporterFullname; String? get reporterMobile; String? get createdBy; String? get modifiedBy; +/// Create a copy of HatchingReport +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$HatchingReportCopyWith get copyWith => _$HatchingReportCopyWithImpl(this as HatchingReport, _$identity); + + /// Serializes this HatchingReport to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is HatchingReport&&(identical(other.id, id) || other.id == id)&&(identical(other.poultryScience, poultryScience) || other.poultryScience == poultryScience)&&(identical(other.hatching, hatching) || other.hatching == hatching)&&(identical(other.key, key) || other.key == key)&&(identical(other.createDate, createDate) || other.createDate == createDate)&&(identical(other.modifyDate, modifyDate) || other.modifyDate == modifyDate)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.date, date) || other.date == date)&&const DeepCollectionEquality().equals(other.image, image)&&(identical(other.lat, lat) || other.lat == lat)&&(identical(other.log, log) || other.log == log)&&(identical(other.reporterFullname, reporterFullname) || other.reporterFullname == reporterFullname)&&(identical(other.reporterMobile, reporterMobile) || other.reporterMobile == reporterMobile)&&(identical(other.createdBy, createdBy) || other.createdBy == createdBy)&&(identical(other.modifiedBy, modifiedBy) || other.modifiedBy == modifiedBy)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,id,poultryScience,hatching,key,createDate,modifyDate,trash,date,const DeepCollectionEquality().hash(image),lat,log,reporterFullname,reporterMobile,createdBy,modifiedBy); + +@override +String toString() { + return 'HatchingReport(id: $id, poultryScience: $poultryScience, hatching: $hatching, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, date: $date, image: $image, lat: $lat, log: $log, reporterFullname: $reporterFullname, reporterMobile: $reporterMobile, createdBy: $createdBy, modifiedBy: $modifiedBy)'; +} + + +} + +/// @nodoc +abstract mixin class $HatchingReportCopyWith<$Res> { + factory $HatchingReportCopyWith(HatchingReport value, $Res Function(HatchingReport) _then) = _$HatchingReportCopyWithImpl; +@useResult +$Res call({ + int? id, PoultryScience? poultryScience, Hatching? hatching, String? key, String? createDate, String? modifyDate, bool? trash, String? date, List? image, double? lat, double? log, String? reporterFullname, String? reporterMobile, String? createdBy, String? modifiedBy +}); + + +$PoultryScienceCopyWith<$Res>? get poultryScience;$HatchingCopyWith<$Res>? get hatching; + +} +/// @nodoc +class _$HatchingReportCopyWithImpl<$Res> + implements $HatchingReportCopyWith<$Res> { + _$HatchingReportCopyWithImpl(this._self, this._then); + + final HatchingReport _self; + final $Res Function(HatchingReport) _then; + +/// Create a copy of HatchingReport +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? poultryScience = freezed,Object? hatching = freezed,Object? key = freezed,Object? createDate = freezed,Object? modifyDate = freezed,Object? trash = freezed,Object? date = freezed,Object? image = freezed,Object? lat = freezed,Object? log = freezed,Object? reporterFullname = freezed,Object? reporterMobile = freezed,Object? createdBy = freezed,Object? modifiedBy = freezed,}) { + return _then(_self.copyWith( +id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable +as int?,poultryScience: freezed == poultryScience ? _self.poultryScience : poultryScience // ignore: cast_nullable_to_non_nullable +as PoultryScience?,hatching: freezed == hatching ? _self.hatching : hatching // ignore: cast_nullable_to_non_nullable +as Hatching?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,createDate: freezed == createDate ? _self.createDate : createDate // ignore: cast_nullable_to_non_nullable +as String?,modifyDate: freezed == modifyDate ? _self.modifyDate : modifyDate // ignore: cast_nullable_to_non_nullable +as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable +as bool?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?,image: freezed == image ? _self.image : image // ignore: cast_nullable_to_non_nullable +as List?,lat: freezed == lat ? _self.lat : lat // ignore: cast_nullable_to_non_nullable +as double?,log: freezed == log ? _self.log : log // ignore: cast_nullable_to_non_nullable +as double?,reporterFullname: freezed == reporterFullname ? _self.reporterFullname : reporterFullname // ignore: cast_nullable_to_non_nullable +as String?,reporterMobile: freezed == reporterMobile ? _self.reporterMobile : reporterMobile // ignore: cast_nullable_to_non_nullable +as String?,createdBy: freezed == createdBy ? _self.createdBy : createdBy // ignore: cast_nullable_to_non_nullable +as String?,modifiedBy: freezed == modifiedBy ? _self.modifiedBy : modifiedBy // ignore: cast_nullable_to_non_nullable +as String?, + )); +} +/// Create a copy of HatchingReport +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$PoultryScienceCopyWith<$Res>? get poultryScience { + if (_self.poultryScience == null) { + return null; + } + + return $PoultryScienceCopyWith<$Res>(_self.poultryScience!, (value) { + return _then(_self.copyWith(poultryScience: value)); + }); +}/// Create a copy of HatchingReport +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$HatchingCopyWith<$Res>? get hatching { + if (_self.hatching == null) { + return null; + } + + return $HatchingCopyWith<$Res>(_self.hatching!, (value) { + return _then(_self.copyWith(hatching: value)); + }); +} +} + + +/// Adds pattern-matching-related methods to [HatchingReport]. +extension HatchingReportPatterns on HatchingReport { +/// 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 Function( _HatchingReport value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _HatchingReport() 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 Function( _HatchingReport value) $default,){ +final _that = this; +switch (_that) { +case _HatchingReport(): +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? Function( _HatchingReport value)? $default,){ +final _that = this; +switch (_that) { +case _HatchingReport() 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 Function( int? id, PoultryScience? poultryScience, Hatching? hatching, String? key, String? createDate, String? modifyDate, bool? trash, String? date, List? image, double? lat, double? log, String? reporterFullname, String? reporterMobile, String? createdBy, String? modifiedBy)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _HatchingReport() when $default != null: +return $default(_that.id,_that.poultryScience,_that.hatching,_that.key,_that.createDate,_that.modifyDate,_that.trash,_that.date,_that.image,_that.lat,_that.log,_that.reporterFullname,_that.reporterMobile,_that.createdBy,_that.modifiedBy);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( int? id, PoultryScience? poultryScience, Hatching? hatching, String? key, String? createDate, String? modifyDate, bool? trash, String? date, List? image, double? lat, double? log, String? reporterFullname, String? reporterMobile, String? createdBy, String? modifiedBy) $default,) {final _that = this; +switch (_that) { +case _HatchingReport(): +return $default(_that.id,_that.poultryScience,_that.hatching,_that.key,_that.createDate,_that.modifyDate,_that.trash,_that.date,_that.image,_that.lat,_that.log,_that.reporterFullname,_that.reporterMobile,_that.createdBy,_that.modifiedBy);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( int? id, PoultryScience? poultryScience, Hatching? hatching, String? key, String? createDate, String? modifyDate, bool? trash, String? date, List? image, double? lat, double? log, String? reporterFullname, String? reporterMobile, String? createdBy, String? modifiedBy)? $default,) {final _that = this; +switch (_that) { +case _HatchingReport() when $default != null: +return $default(_that.id,_that.poultryScience,_that.hatching,_that.key,_that.createDate,_that.modifyDate,_that.trash,_that.date,_that.image,_that.lat,_that.log,_that.reporterFullname,_that.reporterMobile,_that.createdBy,_that.modifiedBy);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _HatchingReport implements HatchingReport { + const _HatchingReport({this.id, this.poultryScience, this.hatching, this.key, this.createDate, this.modifyDate, this.trash, this.date, final List? image, this.lat, this.log, this.reporterFullname, this.reporterMobile, this.createdBy, this.modifiedBy}): _image = image; + factory _HatchingReport.fromJson(Map json) => _$HatchingReportFromJson(json); + +@override final int? id; +@override final PoultryScience? poultryScience; +@override final Hatching? hatching; +@override final String? key; +@override final String? createDate; +@override final String? modifyDate; +@override final bool? trash; +@override final String? date; + final List? _image; +@override List? get image { + final value = _image; + if (value == null) return null; + if (_image is EqualUnmodifiableListView) return _image; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + +@override final double? lat; +@override final double? log; +@override final String? reporterFullname; +@override final String? reporterMobile; +@override final String? createdBy; +@override final String? modifiedBy; + +/// Create a copy of HatchingReport +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$HatchingReportCopyWith<_HatchingReport> get copyWith => __$HatchingReportCopyWithImpl<_HatchingReport>(this, _$identity); + +@override +Map toJson() { + return _$HatchingReportToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _HatchingReport&&(identical(other.id, id) || other.id == id)&&(identical(other.poultryScience, poultryScience) || other.poultryScience == poultryScience)&&(identical(other.hatching, hatching) || other.hatching == hatching)&&(identical(other.key, key) || other.key == key)&&(identical(other.createDate, createDate) || other.createDate == createDate)&&(identical(other.modifyDate, modifyDate) || other.modifyDate == modifyDate)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.date, date) || other.date == date)&&const DeepCollectionEquality().equals(other._image, _image)&&(identical(other.lat, lat) || other.lat == lat)&&(identical(other.log, log) || other.log == log)&&(identical(other.reporterFullname, reporterFullname) || other.reporterFullname == reporterFullname)&&(identical(other.reporterMobile, reporterMobile) || other.reporterMobile == reporterMobile)&&(identical(other.createdBy, createdBy) || other.createdBy == createdBy)&&(identical(other.modifiedBy, modifiedBy) || other.modifiedBy == modifiedBy)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,id,poultryScience,hatching,key,createDate,modifyDate,trash,date,const DeepCollectionEquality().hash(_image),lat,log,reporterFullname,reporterMobile,createdBy,modifiedBy); + +@override +String toString() { + return 'HatchingReport(id: $id, poultryScience: $poultryScience, hatching: $hatching, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, date: $date, image: $image, lat: $lat, log: $log, reporterFullname: $reporterFullname, reporterMobile: $reporterMobile, createdBy: $createdBy, modifiedBy: $modifiedBy)'; +} + + +} + +/// @nodoc +abstract mixin class _$HatchingReportCopyWith<$Res> implements $HatchingReportCopyWith<$Res> { + factory _$HatchingReportCopyWith(_HatchingReport value, $Res Function(_HatchingReport) _then) = __$HatchingReportCopyWithImpl; +@override @useResult +$Res call({ + int? id, PoultryScience? poultryScience, Hatching? hatching, String? key, String? createDate, String? modifyDate, bool? trash, String? date, List? image, double? lat, double? log, String? reporterFullname, String? reporterMobile, String? createdBy, String? modifiedBy +}); + + +@override $PoultryScienceCopyWith<$Res>? get poultryScience;@override $HatchingCopyWith<$Res>? get hatching; + +} +/// @nodoc +class __$HatchingReportCopyWithImpl<$Res> + implements _$HatchingReportCopyWith<$Res> { + __$HatchingReportCopyWithImpl(this._self, this._then); + + final _HatchingReport _self; + final $Res Function(_HatchingReport) _then; + +/// Create a copy of HatchingReport +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? poultryScience = freezed,Object? hatching = freezed,Object? key = freezed,Object? createDate = freezed,Object? modifyDate = freezed,Object? trash = freezed,Object? date = freezed,Object? image = freezed,Object? lat = freezed,Object? log = freezed,Object? reporterFullname = freezed,Object? reporterMobile = freezed,Object? createdBy = freezed,Object? modifiedBy = freezed,}) { + return _then(_HatchingReport( +id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable +as int?,poultryScience: freezed == poultryScience ? _self.poultryScience : poultryScience // ignore: cast_nullable_to_non_nullable +as PoultryScience?,hatching: freezed == hatching ? _self.hatching : hatching // ignore: cast_nullable_to_non_nullable +as Hatching?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,createDate: freezed == createDate ? _self.createDate : createDate // ignore: cast_nullable_to_non_nullable +as String?,modifyDate: freezed == modifyDate ? _self.modifyDate : modifyDate // ignore: cast_nullable_to_non_nullable +as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable +as bool?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?,image: freezed == image ? _self._image : image // ignore: cast_nullable_to_non_nullable +as List?,lat: freezed == lat ? _self.lat : lat // ignore: cast_nullable_to_non_nullable +as double?,log: freezed == log ? _self.log : log // ignore: cast_nullable_to_non_nullable +as double?,reporterFullname: freezed == reporterFullname ? _self.reporterFullname : reporterFullname // ignore: cast_nullable_to_non_nullable +as String?,reporterMobile: freezed == reporterMobile ? _self.reporterMobile : reporterMobile // ignore: cast_nullable_to_non_nullable +as String?,createdBy: freezed == createdBy ? _self.createdBy : createdBy // ignore: cast_nullable_to_non_nullable +as String?,modifiedBy: freezed == modifiedBy ? _self.modifiedBy : modifiedBy // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +/// Create a copy of HatchingReport +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$PoultryScienceCopyWith<$Res>? get poultryScience { + if (_self.poultryScience == null) { + return null; + } + + return $PoultryScienceCopyWith<$Res>(_self.poultryScience!, (value) { + return _then(_self.copyWith(poultryScience: value)); + }); +}/// Create a copy of HatchingReport +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$HatchingCopyWith<$Res>? get hatching { + if (_self.hatching == null) { + return null; + } + + return $HatchingCopyWith<$Res>(_self.hatching!, (value) { + return _then(_self.copyWith(hatching: value)); + }); +} +} + + +/// @nodoc +mixin _$PoultryScience { + + int? get id; User? get user; String? get key; String? get createDate; String? get modifyDate; bool? get trash; String? get createdBy; String? get modifiedBy; List? get poultry; +/// Create a copy of PoultryScience +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$PoultryScienceCopyWith get copyWith => _$PoultryScienceCopyWithImpl(this as PoultryScience, _$identity); + + /// Serializes this PoultryScience to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is PoultryScience&&(identical(other.id, id) || other.id == id)&&(identical(other.user, user) || other.user == user)&&(identical(other.key, key) || other.key == key)&&(identical(other.createDate, createDate) || other.createDate == createDate)&&(identical(other.modifyDate, modifyDate) || other.modifyDate == modifyDate)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.createdBy, createdBy) || other.createdBy == createdBy)&&(identical(other.modifiedBy, modifiedBy) || other.modifiedBy == modifiedBy)&&const DeepCollectionEquality().equals(other.poultry, poultry)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,id,user,key,createDate,modifyDate,trash,createdBy,modifiedBy,const DeepCollectionEquality().hash(poultry)); + +@override +String toString() { + return 'PoultryScience(id: $id, user: $user, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, createdBy: $createdBy, modifiedBy: $modifiedBy, poultry: $poultry)'; +} + + +} + +/// @nodoc +abstract mixin class $PoultryScienceCopyWith<$Res> { + factory $PoultryScienceCopyWith(PoultryScience value, $Res Function(PoultryScience) _then) = _$PoultryScienceCopyWithImpl; +@useResult +$Res call({ + int? id, User? user, String? key, String? createDate, String? modifyDate, bool? trash, String? createdBy, String? modifiedBy, List? poultry +}); + + +$UserCopyWith<$Res>? get user; + +} +/// @nodoc +class _$PoultryScienceCopyWithImpl<$Res> + implements $PoultryScienceCopyWith<$Res> { + _$PoultryScienceCopyWithImpl(this._self, this._then); + + final PoultryScience _self; + final $Res Function(PoultryScience) _then; + +/// Create a copy of PoultryScience +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? user = freezed,Object? key = freezed,Object? createDate = freezed,Object? modifyDate = freezed,Object? trash = freezed,Object? createdBy = freezed,Object? modifiedBy = freezed,Object? poultry = freezed,}) { + return _then(_self.copyWith( +id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable +as int?,user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable +as User?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,createDate: freezed == createDate ? _self.createDate : createDate // ignore: cast_nullable_to_non_nullable +as String?,modifyDate: freezed == modifyDate ? _self.modifyDate : modifyDate // ignore: cast_nullable_to_non_nullable +as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable +as bool?,createdBy: freezed == createdBy ? _self.createdBy : createdBy // ignore: cast_nullable_to_non_nullable +as String?,modifiedBy: freezed == modifiedBy ? _self.modifiedBy : modifiedBy // ignore: cast_nullable_to_non_nullable +as String?,poultry: freezed == poultry ? _self.poultry : poultry // ignore: cast_nullable_to_non_nullable +as List?, + )); +} +/// Create a copy of PoultryScience +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$UserCopyWith<$Res>? get user { + if (_self.user == null) { + return null; + } + + return $UserCopyWith<$Res>(_self.user!, (value) { + return _then(_self.copyWith(user: value)); + }); +} +} + + +/// Adds pattern-matching-related methods to [PoultryScience]. +extension PoultrySciencePatterns on PoultryScience { +/// 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 Function( _PoultryScience value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _PoultryScience() 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 Function( _PoultryScience value) $default,){ +final _that = this; +switch (_that) { +case _PoultryScience(): +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? Function( _PoultryScience value)? $default,){ +final _that = this; +switch (_that) { +case _PoultryScience() 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 Function( int? id, User? user, String? key, String? createDate, String? modifyDate, bool? trash, String? createdBy, String? modifiedBy, List? poultry)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _PoultryScience() when $default != null: +return $default(_that.id,_that.user,_that.key,_that.createDate,_that.modifyDate,_that.trash,_that.createdBy,_that.modifiedBy,_that.poultry);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 Function( int? id, User? user, String? key, String? createDate, String? modifyDate, bool? trash, String? createdBy, String? modifiedBy, List? poultry) $default,) {final _that = this; +switch (_that) { +case _PoultryScience(): +return $default(_that.id,_that.user,_that.key,_that.createDate,_that.modifyDate,_that.trash,_that.createdBy,_that.modifiedBy,_that.poultry);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? Function( int? id, User? user, String? key, String? createDate, String? modifyDate, bool? trash, String? createdBy, String? modifiedBy, List? poultry)? $default,) {final _that = this; +switch (_that) { +case _PoultryScience() when $default != null: +return $default(_that.id,_that.user,_that.key,_that.createDate,_that.modifyDate,_that.trash,_that.createdBy,_that.modifiedBy,_that.poultry);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _PoultryScience implements PoultryScience { + const _PoultryScience({this.id, this.user, this.key, this.createDate, this.modifyDate, this.trash, this.createdBy, this.modifiedBy, final List? poultry}): _poultry = poultry; + factory _PoultryScience.fromJson(Map json) => _$PoultryScienceFromJson(json); + +@override final int? id; +@override final User? user; +@override final String? key; +@override final String? createDate; +@override final String? modifyDate; +@override final bool? trash; +@override final String? createdBy; +@override final String? modifiedBy; + final List? _poultry; +@override List? get poultry { + final value = _poultry; + if (value == null) return null; + if (_poultry is EqualUnmodifiableListView) return _poultry; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + + +/// Create a copy of PoultryScience +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$PoultryScienceCopyWith<_PoultryScience> get copyWith => __$PoultryScienceCopyWithImpl<_PoultryScience>(this, _$identity); + +@override +Map toJson() { + return _$PoultryScienceToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _PoultryScience&&(identical(other.id, id) || other.id == id)&&(identical(other.user, user) || other.user == user)&&(identical(other.key, key) || other.key == key)&&(identical(other.createDate, createDate) || other.createDate == createDate)&&(identical(other.modifyDate, modifyDate) || other.modifyDate == modifyDate)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.createdBy, createdBy) || other.createdBy == createdBy)&&(identical(other.modifiedBy, modifiedBy) || other.modifiedBy == modifiedBy)&&const DeepCollectionEquality().equals(other._poultry, _poultry)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,id,user,key,createDate,modifyDate,trash,createdBy,modifiedBy,const DeepCollectionEquality().hash(_poultry)); + +@override +String toString() { + return 'PoultryScience(id: $id, user: $user, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, createdBy: $createdBy, modifiedBy: $modifiedBy, poultry: $poultry)'; +} + + +} + +/// @nodoc +abstract mixin class _$PoultryScienceCopyWith<$Res> implements $PoultryScienceCopyWith<$Res> { + factory _$PoultryScienceCopyWith(_PoultryScience value, $Res Function(_PoultryScience) _then) = __$PoultryScienceCopyWithImpl; +@override @useResult +$Res call({ + int? id, User? user, String? key, String? createDate, String? modifyDate, bool? trash, String? createdBy, String? modifiedBy, List? poultry +}); + + +@override $UserCopyWith<$Res>? get user; + +} +/// @nodoc +class __$PoultryScienceCopyWithImpl<$Res> + implements _$PoultryScienceCopyWith<$Res> { + __$PoultryScienceCopyWithImpl(this._self, this._then); + + final _PoultryScience _self; + final $Res Function(_PoultryScience) _then; + +/// Create a copy of PoultryScience +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? user = freezed,Object? key = freezed,Object? createDate = freezed,Object? modifyDate = freezed,Object? trash = freezed,Object? createdBy = freezed,Object? modifiedBy = freezed,Object? poultry = freezed,}) { + return _then(_PoultryScience( +id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable +as int?,user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable +as User?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,createDate: freezed == createDate ? _self.createDate : createDate // ignore: cast_nullable_to_non_nullable +as String?,modifyDate: freezed == modifyDate ? _self.modifyDate : modifyDate // ignore: cast_nullable_to_non_nullable +as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable +as bool?,createdBy: freezed == createdBy ? _self.createdBy : createdBy // ignore: cast_nullable_to_non_nullable +as String?,modifiedBy: freezed == modifiedBy ? _self.modifiedBy : modifiedBy // ignore: cast_nullable_to_non_nullable +as String?,poultry: freezed == poultry ? _self._poultry : poultry // ignore: cast_nullable_to_non_nullable +as List?, + )); +} + +/// Create a copy of PoultryScience +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$UserCopyWith<$Res>? get user { + if (_self.user == null) { + return null; + } + + return $UserCopyWith<$Res>(_self.user!, (value) { + return _then(_self.copyWith(user: value)); + }); +} +} + + +/// @nodoc +mixin _$User { + + String? get fullname; String? get mobile; +/// Create a copy of User +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$UserCopyWith get copyWith => _$UserCopyWithImpl(this as User, _$identity); + + /// Serializes this User to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is User&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.mobile, mobile) || other.mobile == mobile)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,fullname,mobile); + +@override +String toString() { + return 'User(fullname: $fullname, mobile: $mobile)'; +} + + +} + +/// @nodoc +abstract mixin class $UserCopyWith<$Res> { + factory $UserCopyWith(User value, $Res Function(User) _then) = _$UserCopyWithImpl; +@useResult +$Res call({ + String? fullname, String? mobile +}); + + + + +} +/// @nodoc +class _$UserCopyWithImpl<$Res> + implements $UserCopyWith<$Res> { + _$UserCopyWithImpl(this._self, this._then); + + final User _self; + final $Res Function(User) _then; + +/// Create a copy of User +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? fullname = freezed,Object? mobile = freezed,}) { + return _then(_self.copyWith( +fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable +as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [User]. +extension UserPatterns on User { +/// 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 Function( _User value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _User() 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 Function( _User value) $default,){ +final _that = this; +switch (_that) { +case _User(): +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? Function( _User value)? $default,){ +final _that = this; +switch (_that) { +case _User() 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 Function( String? fullname, String? mobile)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _User() when $default != null: +return $default(_that.fullname,_that.mobile);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? fullname, String? mobile) $default,) {final _that = this; +switch (_that) { +case _User(): +return $default(_that.fullname,_that.mobile);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? fullname, String? mobile)? $default,) {final _that = this; +switch (_that) { +case _User() when $default != null: +return $default(_that.fullname,_that.mobile);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _User implements User { + const _User({this.fullname, this.mobile}); + factory _User.fromJson(Map json) => _$UserFromJson(json); + +@override final String? fullname; +@override final String? mobile; + +/// Create a copy of User +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$UserCopyWith<_User> get copyWith => __$UserCopyWithImpl<_User>(this, _$identity); + +@override +Map toJson() { + return _$UserToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _User&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.mobile, mobile) || other.mobile == mobile)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,fullname,mobile); + +@override +String toString() { + return 'User(fullname: $fullname, mobile: $mobile)'; +} + + +} + +/// @nodoc +abstract mixin class _$UserCopyWith<$Res> implements $UserCopyWith<$Res> { + factory _$UserCopyWith(_User value, $Res Function(_User) _then) = __$UserCopyWithImpl; +@override @useResult +$Res call({ + String? fullname, String? mobile +}); + + + + +} +/// @nodoc +class __$UserCopyWithImpl<$Res> + implements _$UserCopyWith<$Res> { + __$UserCopyWithImpl(this._self, this._then); + + final _User _self; + final $Res Function(_User) _then; + +/// Create a copy of User +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? fullname = freezed,Object? mobile = freezed,}) { + return _then(_User( +fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable +as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$Hatching { + + Poultry? get poultry; GeneralInfo? get generalInfo; String? get chickenBreed; String? get date; int? get quantity; int? get leftOver; int? get period; int? get losses; bool? get violation; String? get licenceNumber; int? get chickenAge; VetFarm? get vetFarm; +/// 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 get copyWith => _$HatchingCopyWithImpl(this as Hatching, _$identity); + + /// Serializes this Hatching to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is Hatching&&(identical(other.poultry, poultry) || other.poultry == poultry)&&(identical(other.generalInfo, generalInfo) || other.generalInfo == generalInfo)&&(identical(other.chickenBreed, chickenBreed) || other.chickenBreed == chickenBreed)&&(identical(other.date, date) || other.date == date)&&(identical(other.quantity, quantity) || other.quantity == quantity)&&(identical(other.leftOver, leftOver) || other.leftOver == leftOver)&&(identical(other.period, period) || other.period == period)&&(identical(other.losses, losses) || other.losses == losses)&&(identical(other.violation, violation) || other.violation == violation)&&(identical(other.licenceNumber, licenceNumber) || other.licenceNumber == licenceNumber)&&(identical(other.chickenAge, chickenAge) || other.chickenAge == chickenAge)&&(identical(other.vetFarm, vetFarm) || other.vetFarm == vetFarm)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,poultry,generalInfo,chickenBreed,date,quantity,leftOver,period,losses,violation,licenceNumber,chickenAge,vetFarm); + +@override +String toString() { + return 'Hatching(poultry: $poultry, generalInfo: $generalInfo, chickenBreed: $chickenBreed, date: $date, quantity: $quantity, leftOver: $leftOver, period: $period, losses: $losses, violation: $violation, licenceNumber: $licenceNumber, chickenAge: $chickenAge, vetFarm: $vetFarm)'; +} + + +} + +/// @nodoc +abstract mixin class $HatchingCopyWith<$Res> { + factory $HatchingCopyWith(Hatching value, $Res Function(Hatching) _then) = _$HatchingCopyWithImpl; +@useResult +$Res call({ + Poultry? poultry, GeneralInfo? generalInfo, String? chickenBreed, String? date, int? quantity, int? leftOver, int? period, int? losses, bool? violation, String? licenceNumber, int? chickenAge, VetFarm? vetFarm +}); + + +$PoultryCopyWith<$Res>? get poultry;$GeneralInfoCopyWith<$Res>? get generalInfo;$VetFarmCopyWith<$Res>? get vetFarm; + +} +/// @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? poultry = freezed,Object? generalInfo = freezed,Object? chickenBreed = freezed,Object? date = freezed,Object? quantity = freezed,Object? leftOver = freezed,Object? period = freezed,Object? losses = freezed,Object? violation = freezed,Object? licenceNumber = freezed,Object? chickenAge = freezed,Object? vetFarm = freezed,}) { + return _then(_self.copyWith( +poultry: freezed == poultry ? _self.poultry : poultry // ignore: cast_nullable_to_non_nullable +as Poultry?,generalInfo: freezed == generalInfo ? _self.generalInfo : generalInfo // ignore: cast_nullable_to_non_nullable +as GeneralInfo?,chickenBreed: freezed == chickenBreed ? _self.chickenBreed : chickenBreed // ignore: cast_nullable_to_non_nullable +as String?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?,quantity: freezed == quantity ? _self.quantity : quantity // ignore: cast_nullable_to_non_nullable +as int?,leftOver: freezed == leftOver ? _self.leftOver : leftOver // ignore: cast_nullable_to_non_nullable +as int?,period: freezed == period ? _self.period : period // ignore: cast_nullable_to_non_nullable +as int?,losses: freezed == losses ? _self.losses : losses // ignore: cast_nullable_to_non_nullable +as int?,violation: freezed == violation ? _self.violation : violation // ignore: cast_nullable_to_non_nullable +as bool?,licenceNumber: freezed == licenceNumber ? _self.licenceNumber : licenceNumber // ignore: cast_nullable_to_non_nullable +as String?,chickenAge: freezed == chickenAge ? _self.chickenAge : chickenAge // ignore: cast_nullable_to_non_nullable +as int?,vetFarm: freezed == vetFarm ? _self.vetFarm : vetFarm // ignore: cast_nullable_to_non_nullable +as VetFarm?, + )); +} +/// Create a copy of Hatching +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$PoultryCopyWith<$Res>? get poultry { + if (_self.poultry == null) { + return null; + } + + return $PoultryCopyWith<$Res>(_self.poultry!, (value) { + return _then(_self.copyWith(poultry: value)); + }); +}/// Create a copy of Hatching +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$GeneralInfoCopyWith<$Res>? get generalInfo { + if (_self.generalInfo == null) { + return null; + } + + return $GeneralInfoCopyWith<$Res>(_self.generalInfo!, (value) { + return _then(_self.copyWith(generalInfo: value)); + }); +}/// Create a copy of Hatching +/// 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)); + }); +} +} + + +/// 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 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 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? 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 Function( Poultry? poultry, GeneralInfo? generalInfo, String? chickenBreed, String? date, int? quantity, int? leftOver, int? period, int? losses, bool? violation, String? licenceNumber, int? chickenAge, VetFarm? vetFarm)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _Hatching() when $default != null: +return $default(_that.poultry,_that.generalInfo,_that.chickenBreed,_that.date,_that.quantity,_that.leftOver,_that.period,_that.losses,_that.violation,_that.licenceNumber,_that.chickenAge,_that.vetFarm);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 Function( Poultry? poultry, GeneralInfo? generalInfo, String? chickenBreed, String? date, int? quantity, int? leftOver, int? period, int? losses, bool? violation, String? licenceNumber, int? chickenAge, VetFarm? vetFarm) $default,) {final _that = this; +switch (_that) { +case _Hatching(): +return $default(_that.poultry,_that.generalInfo,_that.chickenBreed,_that.date,_that.quantity,_that.leftOver,_that.period,_that.losses,_that.violation,_that.licenceNumber,_that.chickenAge,_that.vetFarm);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? Function( Poultry? poultry, GeneralInfo? generalInfo, String? chickenBreed, String? date, int? quantity, int? leftOver, int? period, int? losses, bool? violation, String? licenceNumber, int? chickenAge, VetFarm? vetFarm)? $default,) {final _that = this; +switch (_that) { +case _Hatching() when $default != null: +return $default(_that.poultry,_that.generalInfo,_that.chickenBreed,_that.date,_that.quantity,_that.leftOver,_that.period,_that.losses,_that.violation,_that.licenceNumber,_that.chickenAge,_that.vetFarm);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _Hatching implements Hatching { + const _Hatching({this.poultry, this.generalInfo, this.chickenBreed, this.date, this.quantity, this.leftOver, this.period, this.losses, this.violation, this.licenceNumber, this.chickenAge, this.vetFarm}); + factory _Hatching.fromJson(Map json) => _$HatchingFromJson(json); + +@override final Poultry? poultry; +@override final GeneralInfo? generalInfo; +@override final String? chickenBreed; +@override final String? date; +@override final int? quantity; +@override final int? leftOver; +@override final int? period; +@override final int? losses; +@override final bool? violation; +@override final String? licenceNumber; +@override final int? chickenAge; +@override final VetFarm? vetFarm; + +/// 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 toJson() { + return _$HatchingToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Hatching&&(identical(other.poultry, poultry) || other.poultry == poultry)&&(identical(other.generalInfo, generalInfo) || other.generalInfo == generalInfo)&&(identical(other.chickenBreed, chickenBreed) || other.chickenBreed == chickenBreed)&&(identical(other.date, date) || other.date == date)&&(identical(other.quantity, quantity) || other.quantity == quantity)&&(identical(other.leftOver, leftOver) || other.leftOver == leftOver)&&(identical(other.period, period) || other.period == period)&&(identical(other.losses, losses) || other.losses == losses)&&(identical(other.violation, violation) || other.violation == violation)&&(identical(other.licenceNumber, licenceNumber) || other.licenceNumber == licenceNumber)&&(identical(other.chickenAge, chickenAge) || other.chickenAge == chickenAge)&&(identical(other.vetFarm, vetFarm) || other.vetFarm == vetFarm)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,poultry,generalInfo,chickenBreed,date,quantity,leftOver,period,losses,violation,licenceNumber,chickenAge,vetFarm); + +@override +String toString() { + return 'Hatching(poultry: $poultry, generalInfo: $generalInfo, chickenBreed: $chickenBreed, date: $date, quantity: $quantity, leftOver: $leftOver, period: $period, losses: $losses, violation: $violation, licenceNumber: $licenceNumber, chickenAge: $chickenAge, vetFarm: $vetFarm)'; +} + + +} + +/// @nodoc +abstract mixin class _$HatchingCopyWith<$Res> implements $HatchingCopyWith<$Res> { + factory _$HatchingCopyWith(_Hatching value, $Res Function(_Hatching) _then) = __$HatchingCopyWithImpl; +@override @useResult +$Res call({ + Poultry? poultry, GeneralInfo? generalInfo, String? chickenBreed, String? date, int? quantity, int? leftOver, int? period, int? losses, bool? violation, String? licenceNumber, int? chickenAge, VetFarm? vetFarm +}); + + +@override $PoultryCopyWith<$Res>? get poultry;@override $GeneralInfoCopyWith<$Res>? get generalInfo;@override $VetFarmCopyWith<$Res>? get vetFarm; + +} +/// @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? poultry = freezed,Object? generalInfo = freezed,Object? chickenBreed = freezed,Object? date = freezed,Object? quantity = freezed,Object? leftOver = freezed,Object? period = freezed,Object? losses = freezed,Object? violation = freezed,Object? licenceNumber = freezed,Object? chickenAge = freezed,Object? vetFarm = freezed,}) { + return _then(_Hatching( +poultry: freezed == poultry ? _self.poultry : poultry // ignore: cast_nullable_to_non_nullable +as Poultry?,generalInfo: freezed == generalInfo ? _self.generalInfo : generalInfo // ignore: cast_nullable_to_non_nullable +as GeneralInfo?,chickenBreed: freezed == chickenBreed ? _self.chickenBreed : chickenBreed // ignore: cast_nullable_to_non_nullable +as String?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?,quantity: freezed == quantity ? _self.quantity : quantity // ignore: cast_nullable_to_non_nullable +as int?,leftOver: freezed == leftOver ? _self.leftOver : leftOver // ignore: cast_nullable_to_non_nullable +as int?,period: freezed == period ? _self.period : period // ignore: cast_nullable_to_non_nullable +as int?,losses: freezed == losses ? _self.losses : losses // ignore: cast_nullable_to_non_nullable +as int?,violation: freezed == violation ? _self.violation : violation // ignore: cast_nullable_to_non_nullable +as bool?,licenceNumber: freezed == licenceNumber ? _self.licenceNumber : licenceNumber // ignore: cast_nullable_to_non_nullable +as String?,chickenAge: freezed == chickenAge ? _self.chickenAge : chickenAge // ignore: cast_nullable_to_non_nullable +as int?,vetFarm: freezed == vetFarm ? _self.vetFarm : vetFarm // ignore: cast_nullable_to_non_nullable +as VetFarm?, + )); +} + +/// Create a copy of Hatching +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$PoultryCopyWith<$Res>? get poultry { + if (_self.poultry == null) { + return null; + } + + return $PoultryCopyWith<$Res>(_self.poultry!, (value) { + return _then(_self.copyWith(poultry: value)); + }); +}/// Create a copy of Hatching +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$GeneralInfoCopyWith<$Res>? get generalInfo { + if (_self.generalInfo == null) { + return null; + } + + return $GeneralInfoCopyWith<$Res>(_self.generalInfo!, (value) { + return _then(_self.copyWith(generalInfo: value)); + }); +}/// Create a copy of Hatching +/// 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)); + }); +} +} + + +/// @nodoc +mixin _$VetFarm { + + String? get vetFarmFullname; String? get vetFarmMobile; +/// Create a copy of VetFarm +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$VetFarmCopyWith get copyWith => _$VetFarmCopyWithImpl(this as VetFarm, _$identity); + + /// Serializes this VetFarm to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is VetFarm&&(identical(other.vetFarmFullname, vetFarmFullname) || other.vetFarmFullname == vetFarmFullname)&&(identical(other.vetFarmMobile, vetFarmMobile) || other.vetFarmMobile == vetFarmMobile)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,vetFarmFullname,vetFarmMobile); + +@override +String toString() { + return 'VetFarm(vetFarmFullname: $vetFarmFullname, vetFarmMobile: $vetFarmMobile)'; +} + + +} + +/// @nodoc +abstract mixin class $VetFarmCopyWith<$Res> { + factory $VetFarmCopyWith(VetFarm value, $Res Function(VetFarm) _then) = _$VetFarmCopyWithImpl; +@useResult +$Res call({ + String? vetFarmFullname, String? vetFarmMobile +}); + + + + +} +/// @nodoc +class _$VetFarmCopyWithImpl<$Res> + implements $VetFarmCopyWith<$Res> { + _$VetFarmCopyWithImpl(this._self, this._then); + + final VetFarm _self; + final $Res Function(VetFarm) _then; + +/// Create a copy of VetFarm +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? vetFarmFullname = freezed,Object? vetFarmMobile = freezed,}) { + return _then(_self.copyWith( +vetFarmFullname: freezed == vetFarmFullname ? _self.vetFarmFullname : vetFarmFullname // ignore: cast_nullable_to_non_nullable +as String?,vetFarmMobile: freezed == vetFarmMobile ? _self.vetFarmMobile : vetFarmMobile // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [VetFarm]. +extension VetFarmPatterns on VetFarm { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult 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 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? 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 Function( String? vetFarmFullname, String? vetFarmMobile)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _VetFarm() when $default != null: +return $default(_that.vetFarmFullname,_that.vetFarmMobile);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? vetFarmFullname, String? vetFarmMobile) $default,) {final _that = this; +switch (_that) { +case _VetFarm(): +return $default(_that.vetFarmFullname,_that.vetFarmMobile);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? vetFarmFullname, String? vetFarmMobile)? $default,) {final _that = this; +switch (_that) { +case _VetFarm() when $default != null: +return $default(_that.vetFarmFullname,_that.vetFarmMobile);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _VetFarm implements VetFarm { + const _VetFarm({this.vetFarmFullname, this.vetFarmMobile}); + factory _VetFarm.fromJson(Map json) => _$VetFarmFromJson(json); + +@override final String? vetFarmFullname; +@override final String? vetFarmMobile; + +/// Create a copy of VetFarm +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$VetFarmCopyWith<_VetFarm> get copyWith => __$VetFarmCopyWithImpl<_VetFarm>(this, _$identity); + +@override +Map toJson() { + return _$VetFarmToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _VetFarm&&(identical(other.vetFarmFullname, vetFarmFullname) || other.vetFarmFullname == vetFarmFullname)&&(identical(other.vetFarmMobile, vetFarmMobile) || other.vetFarmMobile == vetFarmMobile)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,vetFarmFullname,vetFarmMobile); + +@override +String toString() { + return 'VetFarm(vetFarmFullname: $vetFarmFullname, vetFarmMobile: $vetFarmMobile)'; +} + + +} + +/// @nodoc +abstract mixin class _$VetFarmCopyWith<$Res> implements $VetFarmCopyWith<$Res> { + factory _$VetFarmCopyWith(_VetFarm value, $Res Function(_VetFarm) _then) = __$VetFarmCopyWithImpl; +@override @useResult +$Res call({ + String? vetFarmFullname, String? vetFarmMobile +}); + + + + +} +/// @nodoc +class __$VetFarmCopyWithImpl<$Res> + implements _$VetFarmCopyWith<$Res> { + __$VetFarmCopyWithImpl(this._self, this._then); + + final _VetFarm _self; + final $Res Function(_VetFarm) _then; + +/// Create a copy of VetFarm +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? vetFarmFullname = freezed,Object? vetFarmMobile = freezed,}) { + return _then(_VetFarm( +vetFarmFullname: freezed == vetFarmFullname ? _self.vetFarmFullname : vetFarmFullname // ignore: cast_nullable_to_non_nullable +as String?,vetFarmMobile: freezed == vetFarmMobile ? _self.vetFarmMobile : vetFarmMobile // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$Poultry { + + String? get key; String? get fullname; String? get mobile; String? get city; String? get unitName; int? get killingAveAge; int? get activeLeftOver; int? get killingAveCount; double? get realKillingAveWeight; double? get realKillingLiveWeight; double? get realKillingCarcassesWeight; double? get realKillingLossWeightPercent; +/// Create a copy of Poultry +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$PoultryCopyWith get copyWith => _$PoultryCopyWithImpl(this as Poultry, _$identity); + + /// Serializes this Poultry to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is Poultry&&(identical(other.key, key) || other.key == key)&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.city, city) || other.city == city)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.killingAveAge, killingAveAge) || other.killingAveAge == killingAveAge)&&(identical(other.activeLeftOver, activeLeftOver) || other.activeLeftOver == activeLeftOver)&&(identical(other.killingAveCount, killingAveCount) || other.killingAveCount == killingAveCount)&&(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)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,fullname,mobile,city,unitName,killingAveAge,activeLeftOver,killingAveCount,realKillingAveWeight,realKillingLiveWeight,realKillingCarcassesWeight,realKillingLossWeightPercent); + +@override +String toString() { + return 'Poultry(key: $key, fullname: $fullname, mobile: $mobile, city: $city, unitName: $unitName, killingAveAge: $killingAveAge, activeLeftOver: $activeLeftOver, killingAveCount: $killingAveCount, realKillingAveWeight: $realKillingAveWeight, realKillingLiveWeight: $realKillingLiveWeight, realKillingCarcassesWeight: $realKillingCarcassesWeight, realKillingLossWeightPercent: $realKillingLossWeightPercent)'; +} + + +} + +/// @nodoc +abstract mixin class $PoultryCopyWith<$Res> { + factory $PoultryCopyWith(Poultry value, $Res Function(Poultry) _then) = _$PoultryCopyWithImpl; +@useResult +$Res call({ + String? key, String? fullname, String? mobile, String? city, String? unitName, int? killingAveAge, int? activeLeftOver, int? killingAveCount, double? realKillingAveWeight, double? realKillingLiveWeight, double? realKillingCarcassesWeight, double? realKillingLossWeightPercent +}); + + + + +} +/// @nodoc +class _$PoultryCopyWithImpl<$Res> + implements $PoultryCopyWith<$Res> { + _$PoultryCopyWithImpl(this._self, this._then); + + final Poultry _self; + final $Res Function(Poultry) _then; + +/// Create a copy of Poultry +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? key = freezed,Object? fullname = freezed,Object? mobile = freezed,Object? city = freezed,Object? unitName = freezed,Object? killingAveAge = freezed,Object? activeLeftOver = freezed,Object? killingAveCount = freezed,Object? realKillingAveWeight = freezed,Object? realKillingLiveWeight = freezed,Object? realKillingCarcassesWeight = freezed,Object? realKillingLossWeightPercent = freezed,}) { + return _then(_self.copyWith( +key: freezed == key ? _self.key : key // 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?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as String?,unitName: freezed == unitName ? _self.unitName : unitName // 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?,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?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [Poultry]. +extension PoultryPatterns on Poultry { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _Poultry value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _Poultry() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _Poultry value) $default,){ +final _that = this; +switch (_that) { +case _Poultry(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _Poultry value)? $default,){ +final _that = this; +switch (_that) { +case _Poultry() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? key, String? fullname, String? mobile, String? city, String? unitName, int? killingAveAge, int? activeLeftOver, int? killingAveCount, double? realKillingAveWeight, double? realKillingLiveWeight, double? realKillingCarcassesWeight, double? realKillingLossWeightPercent)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _Poultry() when $default != null: +return $default(_that.key,_that.fullname,_that.mobile,_that.city,_that.unitName,_that.killingAveAge,_that.activeLeftOver,_that.killingAveCount,_that.realKillingAveWeight,_that.realKillingLiveWeight,_that.realKillingCarcassesWeight,_that.realKillingLossWeightPercent);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 Function( String? key, String? fullname, String? mobile, String? city, String? unitName, int? killingAveAge, int? activeLeftOver, int? killingAveCount, double? realKillingAveWeight, double? realKillingLiveWeight, double? realKillingCarcassesWeight, double? realKillingLossWeightPercent) $default,) {final _that = this; +switch (_that) { +case _Poultry(): +return $default(_that.key,_that.fullname,_that.mobile,_that.city,_that.unitName,_that.killingAveAge,_that.activeLeftOver,_that.killingAveCount,_that.realKillingAveWeight,_that.realKillingLiveWeight,_that.realKillingCarcassesWeight,_that.realKillingLossWeightPercent);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? Function( String? key, String? fullname, String? mobile, String? city, String? unitName, int? killingAveAge, int? activeLeftOver, int? killingAveCount, double? realKillingAveWeight, double? realKillingLiveWeight, double? realKillingCarcassesWeight, double? realKillingLossWeightPercent)? $default,) {final _that = this; +switch (_that) { +case _Poultry() when $default != null: +return $default(_that.key,_that.fullname,_that.mobile,_that.city,_that.unitName,_that.killingAveAge,_that.activeLeftOver,_that.killingAveCount,_that.realKillingAveWeight,_that.realKillingLiveWeight,_that.realKillingCarcassesWeight,_that.realKillingLossWeightPercent);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _Poultry implements Poultry { + const _Poultry({this.key, this.fullname, this.mobile, this.city, this.unitName, this.killingAveAge, this.activeLeftOver, this.killingAveCount, this.realKillingAveWeight, this.realKillingLiveWeight, this.realKillingCarcassesWeight, this.realKillingLossWeightPercent}); + factory _Poultry.fromJson(Map json) => _$PoultryFromJson(json); + +@override final String? key; +@override final String? fullname; +@override final String? mobile; +@override final String? city; +@override final String? unitName; +@override final int? killingAveAge; +@override final int? activeLeftOver; +@override final int? killingAveCount; +@override final double? realKillingAveWeight; +@override final double? realKillingLiveWeight; +@override final double? realKillingCarcassesWeight; +@override final double? realKillingLossWeightPercent; + +/// Create a copy of Poultry +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$PoultryCopyWith<_Poultry> get copyWith => __$PoultryCopyWithImpl<_Poultry>(this, _$identity); + +@override +Map toJson() { + return _$PoultryToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Poultry&&(identical(other.key, key) || other.key == key)&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.city, city) || other.city == city)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.killingAveAge, killingAveAge) || other.killingAveAge == killingAveAge)&&(identical(other.activeLeftOver, activeLeftOver) || other.activeLeftOver == activeLeftOver)&&(identical(other.killingAveCount, killingAveCount) || other.killingAveCount == killingAveCount)&&(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)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,fullname,mobile,city,unitName,killingAveAge,activeLeftOver,killingAveCount,realKillingAveWeight,realKillingLiveWeight,realKillingCarcassesWeight,realKillingLossWeightPercent); + +@override +String toString() { + return 'Poultry(key: $key, fullname: $fullname, mobile: $mobile, city: $city, unitName: $unitName, killingAveAge: $killingAveAge, activeLeftOver: $activeLeftOver, killingAveCount: $killingAveCount, realKillingAveWeight: $realKillingAveWeight, realKillingLiveWeight: $realKillingLiveWeight, realKillingCarcassesWeight: $realKillingCarcassesWeight, realKillingLossWeightPercent: $realKillingLossWeightPercent)'; +} + + +} + +/// @nodoc +abstract mixin class _$PoultryCopyWith<$Res> implements $PoultryCopyWith<$Res> { + factory _$PoultryCopyWith(_Poultry value, $Res Function(_Poultry) _then) = __$PoultryCopyWithImpl; +@override @useResult +$Res call({ + String? key, String? fullname, String? mobile, String? city, String? unitName, int? killingAveAge, int? activeLeftOver, int? killingAveCount, double? realKillingAveWeight, double? realKillingLiveWeight, double? realKillingCarcassesWeight, double? realKillingLossWeightPercent +}); + + + + +} +/// @nodoc +class __$PoultryCopyWithImpl<$Res> + implements _$PoultryCopyWith<$Res> { + __$PoultryCopyWithImpl(this._self, this._then); + + final _Poultry _self; + final $Res Function(_Poultry) _then; + +/// Create a copy of Poultry +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? key = freezed,Object? fullname = freezed,Object? mobile = freezed,Object? city = freezed,Object? unitName = freezed,Object? killingAveAge = freezed,Object? activeLeftOver = freezed,Object? killingAveCount = freezed,Object? realKillingAveWeight = freezed,Object? realKillingLiveWeight = freezed,Object? realKillingCarcassesWeight = freezed,Object? realKillingLossWeightPercent = freezed,}) { + return _then(_Poultry( +key: freezed == key ? _self.key : key // 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?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as String?,unitName: freezed == unitName ? _self.unitName : unitName // 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?,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?, + )); +} + + +} + + +/// @nodoc +mixin _$GeneralInfo { + + int? get aveAge; int? get age; double? get aveWeight; int? get provinceKillRequests; int? get provinceKillRequestsQuantity; double? get provinceKillRequestsWeight; int? get killHouseRequestsQuantity; int? get killHouseRequests; double? get killHouseRequestsWeight; int? get totalQuantity; double? get totalWeight; +/// Create a copy of GeneralInfo +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$GeneralInfoCopyWith get copyWith => _$GeneralInfoCopyWithImpl(this as GeneralInfo, _$identity); + + /// Serializes this GeneralInfo to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is GeneralInfo&&(identical(other.aveAge, aveAge) || other.aveAge == aveAge)&&(identical(other.age, age) || other.age == age)&&(identical(other.aveWeight, aveWeight) || other.aveWeight == aveWeight)&&(identical(other.provinceKillRequests, provinceKillRequests) || other.provinceKillRequests == provinceKillRequests)&&(identical(other.provinceKillRequestsQuantity, provinceKillRequestsQuantity) || other.provinceKillRequestsQuantity == provinceKillRequestsQuantity)&&(identical(other.provinceKillRequestsWeight, provinceKillRequestsWeight) || other.provinceKillRequestsWeight == provinceKillRequestsWeight)&&(identical(other.killHouseRequestsQuantity, killHouseRequestsQuantity) || other.killHouseRequestsQuantity == killHouseRequestsQuantity)&&(identical(other.killHouseRequests, killHouseRequests) || other.killHouseRequests == killHouseRequests)&&(identical(other.killHouseRequestsWeight, killHouseRequestsWeight) || other.killHouseRequestsWeight == killHouseRequestsWeight)&&(identical(other.totalQuantity, totalQuantity) || other.totalQuantity == totalQuantity)&&(identical(other.totalWeight, totalWeight) || other.totalWeight == totalWeight)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,aveAge,age,aveWeight,provinceKillRequests,provinceKillRequestsQuantity,provinceKillRequestsWeight,killHouseRequestsQuantity,killHouseRequests,killHouseRequestsWeight,totalQuantity,totalWeight); + +@override +String toString() { + return 'GeneralInfo(aveAge: $aveAge, age: $age, aveWeight: $aveWeight, provinceKillRequests: $provinceKillRequests, provinceKillRequestsQuantity: $provinceKillRequestsQuantity, provinceKillRequestsWeight: $provinceKillRequestsWeight, killHouseRequestsQuantity: $killHouseRequestsQuantity, killHouseRequests: $killHouseRequests, killHouseRequestsWeight: $killHouseRequestsWeight, totalQuantity: $totalQuantity, totalWeight: $totalWeight)'; +} + + +} + +/// @nodoc +abstract mixin class $GeneralInfoCopyWith<$Res> { + factory $GeneralInfoCopyWith(GeneralInfo value, $Res Function(GeneralInfo) _then) = _$GeneralInfoCopyWithImpl; +@useResult +$Res call({ + int? aveAge, int? age, double? aveWeight, int? provinceKillRequests, int? provinceKillRequestsQuantity, double? provinceKillRequestsWeight, int? killHouseRequestsQuantity, int? killHouseRequests, double? killHouseRequestsWeight, int? totalQuantity, double? totalWeight +}); + + + + +} +/// @nodoc +class _$GeneralInfoCopyWithImpl<$Res> + implements $GeneralInfoCopyWith<$Res> { + _$GeneralInfoCopyWithImpl(this._self, this._then); + + final GeneralInfo _self; + final $Res Function(GeneralInfo) _then; + +/// Create a copy of GeneralInfo +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? aveAge = freezed,Object? age = freezed,Object? aveWeight = freezed,Object? provinceKillRequests = freezed,Object? provinceKillRequestsQuantity = freezed,Object? provinceKillRequestsWeight = freezed,Object? killHouseRequestsQuantity = freezed,Object? killHouseRequests = freezed,Object? killHouseRequestsWeight = freezed,Object? totalQuantity = freezed,Object? totalWeight = freezed,}) { + return _then(_self.copyWith( +aveAge: freezed == aveAge ? _self.aveAge : aveAge // ignore: cast_nullable_to_non_nullable +as int?,age: freezed == age ? _self.age : age // ignore: cast_nullable_to_non_nullable +as int?,aveWeight: freezed == aveWeight ? _self.aveWeight : aveWeight // ignore: cast_nullable_to_non_nullable +as double?,provinceKillRequests: freezed == provinceKillRequests ? _self.provinceKillRequests : provinceKillRequests // ignore: cast_nullable_to_non_nullable +as int?,provinceKillRequestsQuantity: freezed == provinceKillRequestsQuantity ? _self.provinceKillRequestsQuantity : provinceKillRequestsQuantity // ignore: cast_nullable_to_non_nullable +as int?,provinceKillRequestsWeight: freezed == provinceKillRequestsWeight ? _self.provinceKillRequestsWeight : provinceKillRequestsWeight // ignore: cast_nullable_to_non_nullable +as double?,killHouseRequestsQuantity: freezed == killHouseRequestsQuantity ? _self.killHouseRequestsQuantity : killHouseRequestsQuantity // ignore: cast_nullable_to_non_nullable +as int?,killHouseRequests: freezed == killHouseRequests ? _self.killHouseRequests : killHouseRequests // ignore: cast_nullable_to_non_nullable +as int?,killHouseRequestsWeight: freezed == killHouseRequestsWeight ? _self.killHouseRequestsWeight : killHouseRequestsWeight // ignore: cast_nullable_to_non_nullable +as double?,totalQuantity: freezed == totalQuantity ? _self.totalQuantity : totalQuantity // ignore: cast_nullable_to_non_nullable +as int?,totalWeight: freezed == totalWeight ? _self.totalWeight : totalWeight // ignore: cast_nullable_to_non_nullable +as double?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [GeneralInfo]. +extension GeneralInfoPatterns on GeneralInfo { +/// 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 Function( _GeneralInfo value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _GeneralInfo() 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 Function( _GeneralInfo value) $default,){ +final _that = this; +switch (_that) { +case _GeneralInfo(): +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? Function( _GeneralInfo value)? $default,){ +final _that = this; +switch (_that) { +case _GeneralInfo() 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 Function( int? aveAge, int? age, double? aveWeight, int? provinceKillRequests, int? provinceKillRequestsQuantity, double? provinceKillRequestsWeight, int? killHouseRequestsQuantity, int? killHouseRequests, double? killHouseRequestsWeight, int? totalQuantity, double? totalWeight)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _GeneralInfo() when $default != null: +return $default(_that.aveAge,_that.age,_that.aveWeight,_that.provinceKillRequests,_that.provinceKillRequestsQuantity,_that.provinceKillRequestsWeight,_that.killHouseRequestsQuantity,_that.killHouseRequests,_that.killHouseRequestsWeight,_that.totalQuantity,_that.totalWeight);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 Function( int? aveAge, int? age, double? aveWeight, int? provinceKillRequests, int? provinceKillRequestsQuantity, double? provinceKillRequestsWeight, int? killHouseRequestsQuantity, int? killHouseRequests, double? killHouseRequestsWeight, int? totalQuantity, double? totalWeight) $default,) {final _that = this; +switch (_that) { +case _GeneralInfo(): +return $default(_that.aveAge,_that.age,_that.aveWeight,_that.provinceKillRequests,_that.provinceKillRequestsQuantity,_that.provinceKillRequestsWeight,_that.killHouseRequestsQuantity,_that.killHouseRequests,_that.killHouseRequestsWeight,_that.totalQuantity,_that.totalWeight);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? Function( int? aveAge, int? age, double? aveWeight, int? provinceKillRequests, int? provinceKillRequestsQuantity, double? provinceKillRequestsWeight, int? killHouseRequestsQuantity, int? killHouseRequests, double? killHouseRequestsWeight, int? totalQuantity, double? totalWeight)? $default,) {final _that = this; +switch (_that) { +case _GeneralInfo() when $default != null: +return $default(_that.aveAge,_that.age,_that.aveWeight,_that.provinceKillRequests,_that.provinceKillRequestsQuantity,_that.provinceKillRequestsWeight,_that.killHouseRequestsQuantity,_that.killHouseRequests,_that.killHouseRequestsWeight,_that.totalQuantity,_that.totalWeight);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _GeneralInfo implements GeneralInfo { + const _GeneralInfo({this.aveAge, this.age, this.aveWeight, this.provinceKillRequests, this.provinceKillRequestsQuantity, this.provinceKillRequestsWeight, this.killHouseRequestsQuantity, this.killHouseRequests, this.killHouseRequestsWeight, this.totalQuantity, this.totalWeight}); + factory _GeneralInfo.fromJson(Map json) => _$GeneralInfoFromJson(json); + +@override final int? aveAge; +@override final int? age; +@override final double? aveWeight; +@override final int? provinceKillRequests; +@override final int? provinceKillRequestsQuantity; +@override final double? provinceKillRequestsWeight; +@override final int? killHouseRequestsQuantity; +@override final int? killHouseRequests; +@override final double? killHouseRequestsWeight; +@override final int? totalQuantity; +@override final double? totalWeight; + +/// Create a copy of GeneralInfo +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$GeneralInfoCopyWith<_GeneralInfo> get copyWith => __$GeneralInfoCopyWithImpl<_GeneralInfo>(this, _$identity); + +@override +Map toJson() { + return _$GeneralInfoToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _GeneralInfo&&(identical(other.aveAge, aveAge) || other.aveAge == aveAge)&&(identical(other.age, age) || other.age == age)&&(identical(other.aveWeight, aveWeight) || other.aveWeight == aveWeight)&&(identical(other.provinceKillRequests, provinceKillRequests) || other.provinceKillRequests == provinceKillRequests)&&(identical(other.provinceKillRequestsQuantity, provinceKillRequestsQuantity) || other.provinceKillRequestsQuantity == provinceKillRequestsQuantity)&&(identical(other.provinceKillRequestsWeight, provinceKillRequestsWeight) || other.provinceKillRequestsWeight == provinceKillRequestsWeight)&&(identical(other.killHouseRequestsQuantity, killHouseRequestsQuantity) || other.killHouseRequestsQuantity == killHouseRequestsQuantity)&&(identical(other.killHouseRequests, killHouseRequests) || other.killHouseRequests == killHouseRequests)&&(identical(other.killHouseRequestsWeight, killHouseRequestsWeight) || other.killHouseRequestsWeight == killHouseRequestsWeight)&&(identical(other.totalQuantity, totalQuantity) || other.totalQuantity == totalQuantity)&&(identical(other.totalWeight, totalWeight) || other.totalWeight == totalWeight)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,aveAge,age,aveWeight,provinceKillRequests,provinceKillRequestsQuantity,provinceKillRequestsWeight,killHouseRequestsQuantity,killHouseRequests,killHouseRequestsWeight,totalQuantity,totalWeight); + +@override +String toString() { + return 'GeneralInfo(aveAge: $aveAge, age: $age, aveWeight: $aveWeight, provinceKillRequests: $provinceKillRequests, provinceKillRequestsQuantity: $provinceKillRequestsQuantity, provinceKillRequestsWeight: $provinceKillRequestsWeight, killHouseRequestsQuantity: $killHouseRequestsQuantity, killHouseRequests: $killHouseRequests, killHouseRequestsWeight: $killHouseRequestsWeight, totalQuantity: $totalQuantity, totalWeight: $totalWeight)'; +} + + +} + +/// @nodoc +abstract mixin class _$GeneralInfoCopyWith<$Res> implements $GeneralInfoCopyWith<$Res> { + factory _$GeneralInfoCopyWith(_GeneralInfo value, $Res Function(_GeneralInfo) _then) = __$GeneralInfoCopyWithImpl; +@override @useResult +$Res call({ + int? aveAge, int? age, double? aveWeight, int? provinceKillRequests, int? provinceKillRequestsQuantity, double? provinceKillRequestsWeight, int? killHouseRequestsQuantity, int? killHouseRequests, double? killHouseRequestsWeight, int? totalQuantity, double? totalWeight +}); + + + + +} +/// @nodoc +class __$GeneralInfoCopyWithImpl<$Res> + implements _$GeneralInfoCopyWith<$Res> { + __$GeneralInfoCopyWithImpl(this._self, this._then); + + final _GeneralInfo _self; + final $Res Function(_GeneralInfo) _then; + +/// Create a copy of GeneralInfo +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? aveAge = freezed,Object? age = freezed,Object? aveWeight = freezed,Object? provinceKillRequests = freezed,Object? provinceKillRequestsQuantity = freezed,Object? provinceKillRequestsWeight = freezed,Object? killHouseRequestsQuantity = freezed,Object? killHouseRequests = freezed,Object? killHouseRequestsWeight = freezed,Object? totalQuantity = freezed,Object? totalWeight = freezed,}) { + return _then(_GeneralInfo( +aveAge: freezed == aveAge ? _self.aveAge : aveAge // ignore: cast_nullable_to_non_nullable +as int?,age: freezed == age ? _self.age : age // ignore: cast_nullable_to_non_nullable +as int?,aveWeight: freezed == aveWeight ? _self.aveWeight : aveWeight // ignore: cast_nullable_to_non_nullable +as double?,provinceKillRequests: freezed == provinceKillRequests ? _self.provinceKillRequests : provinceKillRequests // ignore: cast_nullable_to_non_nullable +as int?,provinceKillRequestsQuantity: freezed == provinceKillRequestsQuantity ? _self.provinceKillRequestsQuantity : provinceKillRequestsQuantity // ignore: cast_nullable_to_non_nullable +as int?,provinceKillRequestsWeight: freezed == provinceKillRequestsWeight ? _self.provinceKillRequestsWeight : provinceKillRequestsWeight // ignore: cast_nullable_to_non_nullable +as double?,killHouseRequestsQuantity: freezed == killHouseRequestsQuantity ? _self.killHouseRequestsQuantity : killHouseRequestsQuantity // ignore: cast_nullable_to_non_nullable +as int?,killHouseRequests: freezed == killHouseRequests ? _self.killHouseRequests : killHouseRequests // ignore: cast_nullable_to_non_nullable +as int?,killHouseRequestsWeight: freezed == killHouseRequestsWeight ? _self.killHouseRequestsWeight : killHouseRequestsWeight // ignore: cast_nullable_to_non_nullable +as double?,totalQuantity: freezed == totalQuantity ? _self.totalQuantity : totalQuantity // ignore: cast_nullable_to_non_nullable +as int?,totalWeight: freezed == totalWeight ? _self.totalWeight : totalWeight // ignore: cast_nullable_to_non_nullable +as double?, + )); +} + + +} + +// dart format on diff --git a/packages/chicken/lib/data/models/response/hatching_report/hatching_report.g.dart b/packages/chicken/lib/data/models/response/hatching_report/hatching_report.g.dart new file mode 100644 index 0000000..00fc157 --- /dev/null +++ b/packages/chicken/lib/data/models/response/hatching_report/hatching_report.g.dart @@ -0,0 +1,204 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'hatching_report.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +_HatchingReport _$HatchingReportFromJson(Map json) => + _HatchingReport( + id: (json['id'] as num?)?.toInt(), + poultryScience: json['poultry_science'] == null + ? null + : PoultryScience.fromJson( + json['poultry_science'] as Map, + ), + hatching: json['hatching'] == null + ? null + : Hatching.fromJson(json['hatching'] as Map), + key: json['key'] as String?, + createDate: json['create_date'] as String?, + modifyDate: json['modify_date'] as String?, + trash: json['trash'] as bool?, + date: json['date'] as String?, + image: (json['image'] as List?) + ?.map((e) => e as String) + .toList(), + lat: (json['lat'] as num?)?.toDouble(), + log: (json['log'] as num?)?.toDouble(), + reporterFullname: json['reporter_fullname'] as String?, + reporterMobile: json['reporter_mobile'] as String?, + createdBy: json['created_by'] as String?, + modifiedBy: json['modified_by'] as String?, + ); + +Map _$HatchingReportToJson(_HatchingReport instance) => + { + 'id': instance.id, + 'poultry_science': instance.poultryScience, + 'hatching': instance.hatching, + 'key': instance.key, + 'create_date': instance.createDate, + 'modify_date': instance.modifyDate, + 'trash': instance.trash, + 'date': instance.date, + 'image': instance.image, + 'lat': instance.lat, + 'log': instance.log, + 'reporter_fullname': instance.reporterFullname, + 'reporter_mobile': instance.reporterMobile, + 'created_by': instance.createdBy, + 'modified_by': instance.modifiedBy, + }; + +_PoultryScience _$PoultryScienceFromJson(Map json) => + _PoultryScience( + id: (json['id'] as num?)?.toInt(), + user: json['user'] == null + ? null + : User.fromJson(json['user'] as Map), + key: json['key'] as String?, + createDate: json['create_date'] as String?, + modifyDate: json['modify_date'] as String?, + trash: json['trash'] as bool?, + createdBy: json['created_by'] as String?, + modifiedBy: json['modified_by'] as String?, + poultry: (json['poultry'] as List?) + ?.map((e) => (e as num).toInt()) + .toList(), + ); + +Map _$PoultryScienceToJson(_PoultryScience instance) => + { + 'id': instance.id, + 'user': instance.user, + 'key': instance.key, + 'create_date': instance.createDate, + 'modify_date': instance.modifyDate, + 'trash': instance.trash, + 'created_by': instance.createdBy, + 'modified_by': instance.modifiedBy, + 'poultry': instance.poultry, + }; + +_User _$UserFromJson(Map json) => _User( + fullname: json['fullname'] as String?, + mobile: json['mobile'] as String?, +); + +Map _$UserToJson(_User instance) => { + 'fullname': instance.fullname, + 'mobile': instance.mobile, +}; + +_Hatching _$HatchingFromJson(Map json) => _Hatching( + poultry: json['poultry'] == null + ? null + : Poultry.fromJson(json['poultry'] as Map), + generalInfo: json['general_info'] == null + ? null + : GeneralInfo.fromJson(json['general_info'] as Map), + chickenBreed: json['chicken_breed'] as String?, + date: json['date'] as String?, + quantity: (json['quantity'] as num?)?.toInt(), + leftOver: (json['left_over'] as num?)?.toInt(), + period: (json['period'] as num?)?.toInt(), + losses: (json['losses'] as num?)?.toInt(), + violation: json['violation'] as bool?, + licenceNumber: json['licence_number'] as String?, + chickenAge: (json['chicken_age'] as num?)?.toInt(), + vetFarm: json['vet_farm'] == null + ? null + : VetFarm.fromJson(json['vet_farm'] as Map), +); + +Map _$HatchingToJson(_Hatching instance) => { + 'poultry': instance.poultry, + 'general_info': instance.generalInfo, + 'chicken_breed': instance.chickenBreed, + 'date': instance.date, + 'quantity': instance.quantity, + 'left_over': instance.leftOver, + 'period': instance.period, + 'losses': instance.losses, + 'violation': instance.violation, + 'licence_number': instance.licenceNumber, + 'chicken_age': instance.chickenAge, + 'vet_farm': instance.vetFarm, +}; + +_VetFarm _$VetFarmFromJson(Map json) => _VetFarm( + vetFarmFullname: json['vet_farm_fullname'] as String?, + vetFarmMobile: json['vet_farm_mobile'] as String?, +); + +Map _$VetFarmToJson(_VetFarm instance) => { + 'vet_farm_fullname': instance.vetFarmFullname, + 'vet_farm_mobile': instance.vetFarmMobile, +}; + +_Poultry _$PoultryFromJson(Map json) => _Poultry( + key: json['key'] as String?, + fullname: json['fullname'] as String?, + mobile: json['mobile'] as String?, + city: json['city'] as String?, + unitName: json['unit_name'] as String?, + killingAveAge: (json['killing_ave_age'] as num?)?.toInt(), + activeLeftOver: (json['active_left_over'] as num?)?.toInt(), + killingAveCount: (json['killing_ave_count'] as num?)?.toInt(), + realKillingAveWeight: (json['real_killing_ave_weight'] as num?)?.toDouble(), + realKillingLiveWeight: (json['real_killing_live_weight'] as num?)?.toDouble(), + realKillingCarcassesWeight: (json['real_killing_carcasses_weight'] as num?) + ?.toDouble(), + realKillingLossWeightPercent: + (json['real_killing_loss_weight_percent'] as num?)?.toDouble(), +); + +Map _$PoultryToJson(_Poultry instance) => { + 'key': instance.key, + 'fullname': instance.fullname, + 'mobile': instance.mobile, + 'city': instance.city, + 'unit_name': instance.unitName, + 'killing_ave_age': instance.killingAveAge, + 'active_left_over': instance.activeLeftOver, + 'killing_ave_count': instance.killingAveCount, + 'real_killing_ave_weight': instance.realKillingAveWeight, + 'real_killing_live_weight': instance.realKillingLiveWeight, + 'real_killing_carcasses_weight': instance.realKillingCarcassesWeight, + 'real_killing_loss_weight_percent': instance.realKillingLossWeightPercent, +}; + +_GeneralInfo _$GeneralInfoFromJson(Map json) => _GeneralInfo( + aveAge: (json['ave_age'] as num?)?.toInt(), + age: (json['age'] as num?)?.toInt(), + aveWeight: (json['ave_weight'] as num?)?.toDouble(), + provinceKillRequests: (json['province_kill_requests'] as num?)?.toInt(), + provinceKillRequestsQuantity: + (json['province_kill_requests_quantity'] as num?)?.toInt(), + provinceKillRequestsWeight: (json['province_kill_requests_weight'] as num?) + ?.toDouble(), + killHouseRequestsQuantity: (json['kill_house_requests_quantity'] as num?) + ?.toInt(), + killHouseRequests: (json['kill_house_requests'] as num?)?.toInt(), + killHouseRequestsWeight: (json['kill_house_requests_weight'] as num?) + ?.toDouble(), + totalQuantity: (json['total_quantity'] as num?)?.toInt(), + totalWeight: (json['total_weight'] as num?)?.toDouble(), +); + +Map _$GeneralInfoToJson(_GeneralInfo instance) => + { + 'ave_age': instance.aveAge, + 'age': instance.age, + 'ave_weight': instance.aveWeight, + 'province_kill_requests': instance.provinceKillRequests, + 'province_kill_requests_quantity': instance.provinceKillRequestsQuantity, + 'province_kill_requests_weight': instance.provinceKillRequestsWeight, + 'kill_house_requests_quantity': instance.killHouseRequestsQuantity, + 'kill_house_requests': instance.killHouseRequests, + 'kill_house_requests_weight': instance.killHouseRequestsWeight, + 'total_quantity': instance.totalQuantity, + 'total_weight': instance.totalWeight, + }; diff --git a/packages/chicken/lib/data/repositories/poultry_science/poultry_science_repository.dart b/packages/chicken/lib/data/repositories/poultry_science/poultry_science_repository.dart index f1e3a58..e56fc6b 100644 --- a/packages/chicken/lib/data/repositories/poultry_science/poultry_science_repository.dart +++ b/packages/chicken/lib/data/repositories/poultry_science/poultry_science_repository.dart @@ -1,8 +1,27 @@ +import 'package:rasadyar_chicken/data/models/response/hatching/hatching_models.dart'; +import 'package:rasadyar_chicken/data/models/response/hatching_report/hatching_report.dart'; import 'package:rasadyar_chicken/data/models/response/poultry_science/home_poultry_science/home_poultry_science_model.dart'; +import 'package:rasadyar_core/core.dart'; abstract class PoultryScienceRepository { - Future getHomePoultryScience({ + Future getHomePoultry({required String token, required String type}); + + Future?> getHatchingPoultry({ required String token, - required String type, + Map? queryParameters, }); + + + Future submitPoultryScienceReport({ + required String token, + required IFormData data, + ProgressCallback? onSendProgress, + }); + + + Future?> getHatchingPoultryReport({ + required String token, + Map? queryParameters, + }); + } diff --git a/packages/chicken/lib/data/repositories/poultry_science/poultry_science_repository_imp.dart b/packages/chicken/lib/data/repositories/poultry_science/poultry_science_repository_imp.dart index f306bdb..3e9d461 100644 --- a/packages/chicken/lib/data/repositories/poultry_science/poultry_science_repository_imp.dart +++ b/packages/chicken/lib/data/repositories/poultry_science/poultry_science_repository_imp.dart @@ -1,5 +1,9 @@ import 'package:rasadyar_chicken/data/data_source/remote/poultry_science/poultry_science_remote.dart'; +import 'package:rasadyar_chicken/data/models/response/hatching/hatching_models.dart'; +import 'package:rasadyar_chicken/data/models/response/hatching_report/hatching_report.dart'; import 'package:rasadyar_chicken/data/models/response/poultry_science/home_poultry_science/home_poultry_science_model.dart'; +import 'package:rasadyar_core/core.dart'; + import 'poultry_science_repository.dart'; class PoultryScienceRepositoryImp implements PoultryScienceRepository { @@ -8,10 +12,33 @@ class PoultryScienceRepositoryImp implements PoultryScienceRepository { PoultryScienceRepositoryImp(this.datasource); @override - Future getHomePoultryScience({ + Future getHomePoultry({ required String token, required String type, }) async => await datasource.getHomePoultryScience(token: token, type: type); + @override + Future?> getHatchingPoultry({ + required String token, + Map? queryParameters, + }) async => await datasource.getHatchingPoultry(token: token, queryParameters: queryParameters); + @override + Future submitPoultryScienceReport({ + required String token, + required IFormData data, + ProgressCallback? onSendProgress, + }) async => await datasource.submitPoultryScienceReport( + token: token, + data: data, + onSendProgress: onSendProgress, + ); + + @override + Future?> getHatchingPoultryReport({ + required String token, + Map? queryParameters, + }) async { + return await datasource.getPoultryScienceReport(token: token, queryParameters: queryParameters); + } } diff --git a/packages/chicken/lib/presentation/pages/poultry_science/home/logic.dart b/packages/chicken/lib/presentation/pages/poultry_science/home/logic.dart index ccad0eb..f234f53 100644 --- a/packages/chicken/lib/presentation/pages/poultry_science/home/logic.dart +++ b/packages/chicken/lib/presentation/pages/poultry_science/home/logic.dart @@ -15,7 +15,7 @@ class PoultryScienceHomeLogic extends GetxController { Future getHomePoultryHatching() async { await safeCall( - call: () async => await rootLogic.poultryRepository.getHomePoultryScience( + call: () async => await rootLogic.poultryRepository.getHomePoultry( token: rootLogic.tokenService.accessToken.value!, type: 'home', ), diff --git a/packages/chicken/lib/presentation/pages/poultry_science/home/view.dart b/packages/chicken/lib/presentation/pages/poultry_science/home/view.dart index 8f354ac..2d0d1b8 100644 --- a/packages/chicken/lib/presentation/pages/poultry_science/home/view.dart +++ b/packages/chicken/lib/presentation/pages/poultry_science/home/view.dart @@ -141,7 +141,7 @@ class PoultryScienceHomePage extends GetView { ), ), - WidelyUsedWidget(), +// WidelyUsedWidget(), SizedBox(height: 20), ], ), diff --git a/packages/chicken/lib/presentation/pages/poultry_science/inspection/logic.dart b/packages/chicken/lib/presentation/pages/poultry_science/inspection/logic.dart new file mode 100644 index 0000000..0d8f5c6 --- /dev/null +++ b/packages/chicken/lib/presentation/pages/poultry_science/inspection/logic.dart @@ -0,0 +1,258 @@ +import 'package:rasadyar_chicken/data/models/response/hatching/hatching_models.dart'; +import 'package:rasadyar_chicken/data/models/response/hatching_report/hatching_report.dart'; +import 'package:rasadyar_chicken/presentation/pages/poultry_science/root/logic.dart'; +import 'package:rasadyar_core/core.dart'; + +class InspectionPoultryScienceLogic extends GetxController { + Rx>> hatchingList = + Resource>.loading().obs; + + Rx>> hatchingReportList = + Resource>.loading().obs; + + PoultryScienceRootLogic rootLogic = Get.find(); + + Rx currentLocation = LatLng(34.798315281272544, 48.51479142983491).obs; + + final RxBool isLoadingMoreAllocationsMade = false.obs; + RxInt currentPage = 1.obs; + RxList isExpandedList = [].obs; + RxList pickedImages = [].obs; + final List _multiPartPickedImages = []; + + RxBool isOnUpload = false.obs; + + RxDouble presentUpload = 0.0.obs; + RxList routesName = RxList(); + RxInt selectedSegmentIndex = 0.obs; + + @override + void onInit() { + super.onInit(); + + routesName.value = ['اقدام'].toList(); + routesName.add(selectedSegmentIndex.value == 0 ? 'بازرسی' : 'بایگانی'); + ever(selectedSegmentIndex, (callback) { + routesName.removeLast(); + routesName.add(callback == 0 ? 'بازرسی' : 'بایگانی'); + }); + } + + @override + void onReady() { + super.onReady(); + getHatchingList(); + getHatchingReport(); + + checkPermission(request: true); + ever(pickedImages, (callback) { + _multiPartPickedImages.clear(); + for (var element in pickedImages) { + _multiPartPickedImages.add( + MultipartFile.fromFileSync(element.path, filename: element.name), + ); + } + }); + } + + @override + void onClose() { + // TODO: implement onClose + super.onClose(); + } + + Future getHatchingList([bool isLoadingMore = false]) async { + if (isLoadingMore) { + isLoadingMoreAllocationsMade.value = true; + } else { + hatchingList.value = Resource>.loading(); + } + /* + if (searchedValue.value != null && + searchedValue.value!.trim().isNotEmpty && + currentPage.value > 1) { + currentPage.value = 1; + }*/ + + safeCall( + call: () async => await rootLogic.poultryRepository.getHatchingPoultry( + token: rootLogic.tokenService.accessToken.value!, + queryParameters: buildQueryParams( + queryParams: {'type': 'hatching', 'report': true}, + pageSize: 50, + page: currentPage.value, + ), + ), + onSuccess: (res) { + if ((res?.count ?? 0) == 0) { + hatchingList.value = Resource>.empty(); + } else { + hatchingList.value = Resource>.success( + PaginationModel( + count: res?.count ?? 0, + next: res?.next, + previous: res?.previous, + results: [...(hatchingList.value.data?.results ?? []), ...(res?.results ?? [])], + ), + ); + } + }, + ); + } + + Future getHatchingReport([bool isLoadingMore = false]) async { + if (isLoadingMore) { + isLoadingMoreAllocationsMade.value = true; + } else { + hatchingReportList.value = Resource>.loading(); + } + /* + if (searchedValue.value != null && + searchedValue.value!.trim().isNotEmpty && + currentPage.value > 1) { + currentPage.value = 1; + }*/ + + safeCall( + call: () async => await rootLogic.poultryRepository.getHatchingPoultryReport( + token: rootLogic.tokenService.accessToken.value!, + queryParameters: buildQueryParams( + role: 'PoultryScience', + pageSize: 50, + search: 'filter', + value: '', + page: currentPage.value, + ), + ), + onSuccess: (res) { + if ((res?.count ?? 0) == 0) { + hatchingReportList.value = Resource>.empty(); + } else { + hatchingReportList.value = Resource>.success( + PaginationModel( + count: res?.count ?? 0, + next: res?.next, + previous: res?.previous, + results: [...(hatchingReportList.value.data?.results ?? []), ...(res?.results ?? [])], + ), + ); + } + }, + ); + } + + Future pickImages() async { + determineCurrentPosition(); + var tmp = await ImagePicker().pickImage( + source: ImageSource.camera, + imageQuality: 50, + preferredCameraDevice: CameraDevice.front, + maxHeight: 720, + maxWidth: 1080, + + ); + getFileSizeInKB(tmp?.path ?? '', tag: 'Picked'); + + if (tmp?.path != null && pickedImages.length < 7) { + pickedImages.add(tmp!); + } + } + + void removeImage(int index) { + pickedImages.removeAt(index); + } + + void clearImages() { + pickedImages.clear(); + } + + Future submitInspectionReport({required int id}) async { + isOnUpload.value = true; + + DioFormData formData = DioFormData(); + + for (var element in _multiPartPickedImages) { + var ls = await element.finalize().toList(); + formData.addFile('file', ls[0], element.filename ?? 'image.jpg'); + } + + formData.addField("lat", currentLocation.value.latitude.toString()); + formData.addField("log", currentLocation.value.longitude.toString()); + formData.addField("hatching_id", id.toString()); + + safeCall( + call: () async => await rootLogic.poultryRepository.submitPoultryScienceReport( + token: rootLogic.tokenService.accessToken.value!, + data: formData, + onSendProgress: (sent, total) { + presentUpload.value = calculateUploadProgress(sent: sent, total: total); + }, + ), + onSuccess: (res) { + closeBottomSheet(); + clearImages(); + getHatchingList(); + getHatchingReport(); + isOnUpload.value = false; + }, + onError: (error, stackTrace) async{ + + clearImages(); + isOnUpload.value = false; + + await Future.delayed(const Duration(seconds: 4)).then((value) => closeBottomSheet(),); + + + }, + showError: true, + ); + } + + Future determineCurrentPosition() async { + final position = await Geolocator.getCurrentPosition( + locationSettings: AndroidSettings(accuracy: LocationAccuracy.best), + ); + final latLng = LatLng(position.latitude, position.longitude); + + currentLocation.value = latLng; + } + + Future checkPermission({bool request = false}) async { + try { + final LocationPermission permission = await Geolocator.checkPermission(); + + switch (permission) { + case LocationPermission.denied: + final LocationPermission requestResult = await Geolocator.requestPermission(); + return requestResult != LocationPermission.denied && + requestResult != LocationPermission.deniedForever; + + case LocationPermission.deniedForever: + return request ? await Geolocator.openAppSettings() : false; + + case LocationPermission.always: + case LocationPermission.whileInUse: + return true; + + default: + return false; + } + } catch (e) { + eLog(e); + return await Geolocator.openLocationSettings(); + } + } + + void closeBottomSheet() { + Get.back(); + } + + double calculateUploadProgress({required int sent, required int total}) { + if (total != 0) { + double progress = (sent * 100 / total) / 100; + return progress; + } else { + return 0.0; + } + } +} diff --git a/packages/chicken/lib/presentation/pages/poultry_science/inspection/view.dart b/packages/chicken/lib/presentation/pages/poultry_science/inspection/view.dart new file mode 100644 index 0000000..ee1644b --- /dev/null +++ b/packages/chicken/lib/presentation/pages/poultry_science/inspection/view.dart @@ -0,0 +1,586 @@ +import 'dart:io'; + +import 'package:flutter/material.dart'; +import 'package:rasadyar_chicken/data/models/response/hatching/hatching_models.dart'; +import 'package:rasadyar_chicken/data/models/response/hatching_report/hatching_report.dart'; +import 'package:rasadyar_chicken/presentation/widget/base_page/view.dart'; +import 'package:rasadyar_chicken/presentation/widget/page_route.dart'; +import 'package:rasadyar_core/core.dart'; + +import 'logic.dart'; + +class InspectionPoultrySciencePage extends GetView { + const InspectionPoultrySciencePage({super.key}); + + @override + Widget build(BuildContext context) { + return BasePage( + isBase: true, + routesWidget: ObxValue((route) => buildPageRoute(route), controller.routesName), + onBackPressed: () => Get.back(id: 0), + widgets: [ + segmentWidget(), + + ObxValue((data) { + return data.value == 0 ? hatchingWidget() : reportWidget(); + }, controller.selectedSegmentIndex), + ], + ); + } + + ObxValue>>> hatchingWidget() { + return ObxValue((data) { + return RPaginatedListView( + listType: ListType.separated, + resource: data.value, + hasMore: data.value.data?.next != null, + padding: EdgeInsets.fromLTRB(8, 8, 8, 80), + itemBuilder: (context, index) { + var item = data.value.data!.results![index]; + return ObxValue((val) { + return ExpandableListItem2( + selected: val.contains(index), + onTap: () => controller.isExpandedList.toggle(index), + index: index, + child: itemListWidget(item), + secondChild: itemListExpandedWidget(item), + labelColor: AppColor.blueLight, + labelIcon: Assets.vec.checkSquareSvg.path, + ); + }, controller.isExpandedList); + }, + itemCount: data.value.data?.results?.length ?? 0, + separatorBuilder: (context, index) => SizedBox(height: 8.h), + onLoadMore: () async => controller.getHatchingList(true), + onRefresh: () async { + controller.currentPage.value = 1; + await controller.getHatchingList(); + }, + ); + }, controller.hatchingList); + } + + + + Container itemListExpandedWidget(HatchingModel item) { + return Container( + padding: EdgeInsets.symmetric(horizontal: 8), + decoration: BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(8)), + child: Column( + spacing: 8, + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Text( + item.poultry?.user?.fullname ?? 'N/A', + textAlign: TextAlign.center, + style: AppFonts.yekan16.copyWith(color: AppColor.greenDark), + ), + Spacer(), + + Visibility( + child: Text( + item.violation == true ? 'پیگیری' : 'عادی', + textAlign: TextAlign.center, + style: AppFonts.yekan10.copyWith(color: AppColor.redDark), + ), + ), + ], + ), + Container( + height: 32, + padding: EdgeInsets.symmetric(horizontal: 8), + decoration: ShapeDecoration( + color: AppColor.blueLight, + shape: RoundedRectangleBorder( + side: BorderSide(width: 1, color: AppColor.blueLightHover), + borderRadius: BorderRadius.circular(8), + ), + ), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Row( + spacing: 3, + children: [ + Text('نژاد:', style: AppFonts.yekan14.copyWith(color: AppColor.textColor)), + Text( + item.breed?.first.breed ?? 'N/A', + style: AppFonts.yekan14.copyWith(color: AppColor.textColor), + ), + + SizedBox(width: 2), + + Text( + ' سن${item.age}', + + style: AppFonts.yekan14.copyWith(color: AppColor.blueNormal), + ), + ], + ), + + Text( + ' دوره جوجه ریزی:${item.period}', + style: AppFonts.yekan14.copyWith(color: AppColor.textColor), + ), + ], + ), + ), + + buildRow(title: 'شماره مجوز جوجه ریزی', value: item.licenceNumber ?? 'N/A'), + buildRow( + title: 'حجم جوجه ریزی', + value: item.quantity.separatedByComma ?? 'N/A', + valueStyle: AppFonts.yekan14.copyWith(color: AppColor.blueNormal), + ), + buildRow(title: 'مانده در سالن', value: item.leftOver.separatedByComma ?? 'N/A'), + buildRow(title: 'تلفات', value: item.losses.separatedByComma ?? 'N/A'), + buildRow( + title: 'دامپزشک فارم', + value: '${item.vetFarm?.vetFarmFullName}(${item.vetFarm?.vetFarmMobile})', + ), + buildRow( + title: 'شرح بازرسی', + value: item.reportInfo?.image == false ? 'ارسال تصویر جوجه ریزی فارم ' : 'تکمیل شده', + titleStyle: AppFonts.yekan14.copyWith( + color: (item.reportInfo?.image ?? false) ? AppColor.greenNormal : AppColor.redDark, + ), + valueStyle: AppFonts.yekan14.copyWith( + color: (item.reportInfo?.image ?? false) ? AppColor.greenNormal : AppColor.redDark, + ), + ), + Visibility( + visible: (item.reportInfo?.image == false ?? false), + child: RElevated( + text: 'ثبت بازرسی', + isFullWidth: true, + width: 150.w, + height: 40.h, + onPressed: () { + cameraBottomSheet(item.id!); + }, + textStyle: AppFonts.yekan20.copyWith(color: Colors.white), + backgroundColor: AppColor.greenNormal, + ), + ), + ], + ), + ); + } + + void cameraBottomSheet(int id) { + Get.bottomSheet( + isDismissible: false, + isScrollControlled: false, + + BaseBottomSheet( + child: Column( + children: [ + GridView.builder( + gridDelegate: SliverGridDelegateWithFixedCrossAxisCount( + crossAxisCount: 4, + mainAxisSpacing: 8, + crossAxisSpacing: 8, + childAspectRatio: 1, + ), + shrinkWrap: true, + itemCount: 7, + itemBuilder: (context, index) { + return ObxValue((data) { + if (index + 1 > data.length) { + return GestureDetector( + onTap: () async { + await controller.pickImages(); + }, + child: Container( + width: 80.h, + height: 80.h, + decoration: BoxDecoration( + color: AppColor.lightGreyNormal, + borderRadius: BorderRadius.circular(8.r), + ), + child: Center( + child: Icon( + Icons.camera_alt, + color: AppColor.lightGreyDarker, + size: 32.h, + ), + ), + ), + ); + } else { + return Container( + width: 80.h, + height: 80.h, + decoration: BoxDecoration( + color: AppColor.lightGreyNormal, + borderRadius: BorderRadius.circular(8.r), + ), + child: Stack( + children: [ + Positioned.fill( + child: Image.file(File(data[index].path), fit: BoxFit.cover), + ), + + Positioned( + top: 4, + left: 4, + child: GestureDetector( + onTap: () { + controller.removeImage(index); + }, + child: Container( + width: 24.w, + height: 24.h, + clipBehavior: Clip.antiAlias, + padding: EdgeInsets.all(4), + decoration: ShapeDecoration( + color: Colors.white.withValues(alpha: 0.80), + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(4), + ), + ), + child: Assets.vec.trashSvg.svg( + width: 8.w, + height: 8.h, + colorFilter: ColorFilter.mode( + AppColor.redNormal, + BlendMode.srcIn, + ), + ), + ), + ), + ), + ], + ), + ); + } + }, controller.pickedImages); + }, + ), + + SizedBox(height: 20), + Row( + spacing: 16, + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Obx(() { + return RElevated( + height: 40.h, + text: 'ارسال', + backgroundColor: AppColor.greenNormal, + progress: controller.presentUpload.value, + isLoading: controller.isOnUpload.value, + enabled: controller.pickedImages.length >= 2, + onPressed: () async { + controller.submitInspectionReport(id: id); + }, + ); + }), + ObxValue((data) { + return RElevated( + height: 40.h, + text: 'انصراف', + backgroundColor: AppColor.redNormal, + enabled: !data.value, + onPressed: () { + if (!data.value) { + controller.clearImages(); + Get.back(); + } + }, + ); + }, controller.isOnUpload), + ], + ), + ], + ), + ), + ); + } + + Padding segmentWidget() { + return Padding( + padding: const EdgeInsets.fromLTRB(8, 0, 8, 8), + child: Row( + children: [ + Expanded( + child: RSegment( + children: ['بازرسی', 'بایگانی'], + selectedIndex: 0, + borderColor: const Color(0xFFB4B4B4), + selectedBorderColor: AppColor.blueNormal, + selectedBackgroundColor: AppColor.blueLight, + onSegmentSelected: (index) => controller.selectedSegmentIndex.value = index, + backgroundColor: AppColor.whiteGreyNormal, + ), + ), + ], + ), + ); + } + + Widget reportWidget() { + return ObxValue((data) { + return RPaginatedListView( + listType: ListType.separated, + resource: data.value, + hasMore: data.value.data?.next != null, + padding: EdgeInsets.fromLTRB(8, 8, 8, 80), + itemBuilder: (context, index) { + var item = data.value.data!.results![index]; + return ObxValue((val) { + return ExpandableListItem2( + selected: val.contains(index), + onTap: () => controller.isExpandedList.toggle(index), + index: index, + child: itemListWidgetReport(item), + secondChild: itemListExpandedWidgetReport(item), + labelColor: AppColor.blueLight, + labelIcon: Assets.vec.checkSquareSvg.path, + ); + }, controller.isExpandedList); + }, + itemCount: data.value.data?.results?.length ?? 0, + separatorBuilder: (context, index) => SizedBox(height: 8.h), + onLoadMore: () async => controller.getHatchingReport(true), + onRefresh: () async { + controller.currentPage.value = 1; + await controller.getHatchingReport(); + }, + ); + }, controller.hatchingReportList); + } + + Widget itemListExpandedWidgetReport(HatchingReport item) { + return Container( + padding: EdgeInsets.symmetric(horizontal: 8), + decoration: BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(8)), + child: Column( + spacing: 8, + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Text( + item.hatching?.poultry?.fullname ?? 'N/A', + textAlign: TextAlign.center, + style: AppFonts.yekan16.copyWith(color: AppColor.greenDark), + ), + Spacer(), + + Visibility( + child: Text( + item.hatching?.violation == true ? 'پیگیری' : 'عادی', + textAlign: TextAlign.center, + style: AppFonts.yekan10.copyWith(color: AppColor.redDark), + ), + ), + ], + ), + Container( + height: 32, + padding: EdgeInsets.symmetric(horizontal: 8), + decoration: ShapeDecoration( + color: AppColor.blueLight, + shape: RoundedRectangleBorder( + side: BorderSide(width: 1, color: AppColor.blueLightHover), + borderRadius: BorderRadius.circular(8), + ), + ), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Row( + spacing: 3, + children: [ + Text('نژاد:', style: AppFonts.yekan14.copyWith(color: AppColor.textColor)), + Text( + item.hatching?.chickenBreed?? 'N/A', + style: AppFonts.yekan14.copyWith(color: AppColor.textColor), + ), + + SizedBox(width: 2), + + Text( + ' سن${ item.hatching?.chickenAge}', + + style: AppFonts.yekan14.copyWith(color: AppColor.blueNormal), + ), + ], + ), + + Text( + ' دوره جوجه ریزی:${ item.hatching?.period}', + style: AppFonts.yekan14.copyWith(color: AppColor.textColor), + ), + ], + ), + ), + + buildRow(title: 'شماره مجوز جوجه ریزی', value: item.hatching?.licenceNumber ?? 'N/A'), + buildRow( + title: 'حجم جوجه ریزی', + value: item.hatching?.quantity.separatedByComma ?? 'N/A', + valueStyle: AppFonts.yekan14.copyWith(color: AppColor.blueNormal), + ), + buildRow(title: 'مانده در سالن', value: item.hatching?.leftOver.separatedByComma ?? 'N/A'), + buildRow(title: 'تلفات', value: item.hatching?.losses.separatedByComma ?? 'N/A'), + buildRow( + title: 'دامپزشک فارم', + value: '${item.hatching?.vetFarm?.vetFarmFullname}(${item.hatching?.vetFarm?.vetFarmMobile})', + ), + buildRow( + title: 'شرح بازرسی', + value: 'تکمیل شده', + titleStyle: AppFonts.yekan14.copyWith( + color: AppColor.greenNormal + ), + valueStyle: AppFonts.yekan14.copyWith( + color: AppColor.greenNormal + ), + ), + + SizedBox( + height: 140.h, + child: GridView.builder( + shrinkWrap: true, + itemCount: item.image?.length ?? 0, + gridDelegate: SliverGridDelegateWithFixedCrossAxisCount( + crossAxisCount: 2, + mainAxisSpacing: 10, + crossAxisSpacing: 10, + ), + itemBuilder: (context, index) => Container( + height: 138.h, + clipBehavior: Clip.hardEdge, + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(8.r), + image: DecorationImage( + image: NetworkImage(item.image?[index] ?? ''), + fit: BoxFit.cover, + ), + ), + ), + ), + ), + ], + ), + ); + } + + Widget itemListWidget(HatchingModel item) { + return Row( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + children: [ + SizedBox(width: 20), + Expanded( + flex: 2, + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + crossAxisAlignment: CrossAxisAlignment.start, + spacing: 3, + children: [ + Text( + item.poultry?.user?.fullname ?? 'N/A', + textAlign: TextAlign.start, + style: AppFonts.yekan12.copyWith(color: AppColor.blueNormal), + ), + Text( + item.poultry?.user?.mobile ?? 'N/A', + textAlign: TextAlign.center, + style: AppFonts.yekan14.copyWith(color: AppColor.bgDark), + ), + ], + ), + ), + Expanded( + flex: 3, + child: Column( + spacing: 3, + mainAxisAlignment: MainAxisAlignment.center, + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + Text( + item.poultry?.unitName ?? 'N/Aaq', + textAlign: TextAlign.start, + style: AppFonts.yekan12.copyWith(color: AppColor.bgDark), + ), + Text( + item.poultry?.licenceNumber ?? 'N/A', + textAlign: TextAlign.left, + style: AppFonts.yekan12.copyWith(color: AppColor.blueNormal), + ), + ], + ), + ), + Expanded( + flex: 1, + child: Assets.vec.scanSvg.svg( + width: 32.w, + height: 32.h, + colorFilter: ColorFilter.mode(AppColor.blueNormal, BlendMode.srcIn), + ), + ), + ], + ); + } + + Row itemListWidgetReport(HatchingReport item) { + return Row( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + children: [ + SizedBox(width: 20), + Expanded( + flex: 2, + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + crossAxisAlignment: CrossAxisAlignment.start, + spacing: 3, + children: [ + Text( + item.hatching?.poultry?.fullname ?? 'N/A', + textAlign: TextAlign.start, + style: AppFonts.yekan12.copyWith(color: AppColor.blueNormal), + ), + Text( + item.hatching?.poultry?.mobile ?? 'N/A', + textAlign: TextAlign.center, + style: AppFonts.yekan14.copyWith(color: AppColor.bgDark), + ), + ], + ), + ), + Expanded( + flex: 3, + child: Column( + spacing: 3, + mainAxisAlignment: MainAxisAlignment.center, + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + Text( + item.hatching?.poultry?.unitName ?? 'N/Aaq', + textAlign: TextAlign.start, + style: AppFonts.yekan12.copyWith(color: AppColor.bgDark), + ), + Text( + item.hatching?.licenceNumber ?? 'N/A', + textAlign: TextAlign.left, + style: AppFonts.yekan12.copyWith(color: AppColor.blueNormal), + ), + ], + ), + ), + Expanded( + flex: 1, + child: Assets.vec.scanSvg.svg( + width: 32.w, + height: 32.h, + colorFilter: ColorFilter.mode(AppColor.blueNormal, BlendMode.srcIn), + ), + ), + ], + ); + } +} diff --git a/packages/chicken/lib/presentation/pages/poultry_science/poultry_action/logic.dart b/packages/chicken/lib/presentation/pages/poultry_science/poultry_action/logic.dart index bc4c8c6..c09d4f7 100644 --- a/packages/chicken/lib/presentation/pages/poultry_science/poultry_action/logic.dart +++ b/packages/chicken/lib/presentation/pages/poultry_science/poultry_action/logic.dart @@ -1,5 +1,18 @@ +import 'package:rasadyar_chicken/presentation/routes/routes.dart'; import 'package:rasadyar_core/core.dart'; -class PoultryActionLogic extends GetxController { - RxList actions = ['a'].obs; +class PoultryActionItem { + final String title; + final String route; + + PoultryActionItem({required this.title, required this.route}); +} + +class PoultryActionLogic extends GetxController { + RxList items = [ + PoultryActionItem(title: "بازرسی", route: ChickenRoutes.inspectionPoultryScience), + PoultryActionItem(title: "ثبت کشتار", route: ChickenRoutes.killingRegistrationPoultryScience), + PoultryActionItem(title: "فارم ها", route: ChickenRoutes.farmPoultryScience), + PoultryActionItem(title: "جوجه ریزی فعال", route: ChickenRoutes.activeHatchingPoultryScience), + ].obs; } diff --git a/packages/chicken/lib/presentation/pages/poultry_science/poultry_action/view.dart b/packages/chicken/lib/presentation/pages/poultry_science/poultry_action/view.dart index 9528f5f..1e284f7 100644 --- a/packages/chicken/lib/presentation/pages/poultry_science/poultry_action/view.dart +++ b/packages/chicken/lib/presentation/pages/poultry_science/poultry_action/view.dart @@ -1,8 +1,6 @@ import 'package:flutter/material.dart'; -import 'package:get/get.dart'; import 'package:rasadyar_chicken/presentation/pages/role/view.dart'; import 'package:rasadyar_core/core.dart'; -import 'package:rasadyar_core/presentation/common/assets.gen.dart'; import '../../../widget/app_bar.dart'; import 'logic.dart'; @@ -13,42 +11,33 @@ class PoultryActionPage extends GetView { @override Widget build(BuildContext context) { return Scaffold( - appBar: chickenAppBar( - hasBack: false, - hasFilter: false, - hasSearch: false, - isBase: false, - ), + appBar: chickenAppBar(hasBack: false, hasFilter: false, hasSearch: false, isBase: false), body: Column( children: [ - Assets.images.poultryAction.image( - height: 212.h, - width: Get.width.w, - fit: BoxFit.cover, - ), + Assets.images.poultryAction.image(height: 212.h, width: Get.width.w, fit: BoxFit.cover), ObxValue((data) { return Expanded( child: GridView.builder( physics: BouncingScrollPhysics(), gridDelegate: SliverGridDelegateWithFixedCrossAxisCount( - crossAxisCount: 4, + crossAxisCount: 2, mainAxisSpacing: 12.h, crossAxisSpacing: 12.w, - childAspectRatio: 2, ), - itemCount: 4, + itemCount: data.length, hitTestBehavior: HitTestBehavior.opaque, itemBuilder: (BuildContext context, int index) { + var item = data[index]; return roleCard( - title: data[index], + title: item.title, onTap: () async { - + Get.toNamed(item.route, id: 0); }, ); }, ), ); - }, controller.actions), + }, controller.items), ], ), ); diff --git a/packages/chicken/lib/presentation/pages/poultry_science/root/logic.dart b/packages/chicken/lib/presentation/pages/poultry_science/root/logic.dart index 8e641ce..e362fba 100644 --- a/packages/chicken/lib/presentation/pages/poultry_science/root/logic.dart +++ b/packages/chicken/lib/presentation/pages/poultry_science/root/logic.dart @@ -3,7 +3,7 @@ import 'package:rasadyar_chicken/data/di/chicken_di.dart'; import 'package:rasadyar_chicken/data/repositories/poultry_science/poultry_science_repository.dart'; import 'package:rasadyar_chicken/presentation/pages/poultry_science/home/view.dart'; import 'package:rasadyar_chicken/presentation/pages/poultry_science/poultry_action/view.dart'; -import 'package:rasadyar_chicken/presentation/pages/steward/profile/view.dart'; +import 'package:rasadyar_chicken/presentation/pages/poultry_science/profile/view.dart'; import 'package:rasadyar_chicken/presentation/utils/utils.dart'; import 'package:rasadyar_core/core.dart'; @@ -11,11 +11,7 @@ enum ErrorLocationType { serviceDisabled, permissionDenied, none } class PoultryScienceRootLogic extends GetxController { RxInt currentPage = 1.obs; - List pages = [ - PoultryActionPage(), - PoultryScienceHomePage(), - ProfilePage(), - ]; + List pages = [PoultryActionPage(), PoultryScienceHomePage(), PoultryScienceProfilePage()]; late DioRemote dioRemote; var tokenService = Get.find(); late PoultryScienceRepository poultryRepository; diff --git a/packages/chicken/lib/presentation/pages/poultry_science/root/view.dart b/packages/chicken/lib/presentation/pages/poultry_science/root/view.dart index 35b4c8d..50a9c90 100644 --- a/packages/chicken/lib/presentation/pages/poultry_science/root/view.dart +++ b/packages/chicken/lib/presentation/pages/poultry_science/root/view.dart @@ -1,5 +1,7 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; +import 'package:rasadyar_chicken/presentation/routes/pages.dart'; +import 'package:rasadyar_chicken/presentation/routes/routes.dart'; import 'package:rasadyar_core/core.dart'; import 'logic.dart'; @@ -67,18 +69,24 @@ class PoultryScienceRootPage extends GetView { ),*/ Navigator( key: Get.nestedKey(0), - onGenerateRoute: (settings) => - GetPageRoute(page: () => controller.pages[0]), + onGenerateRoute: (settings) { + final page = ChickenPages.pages.firstWhere( + (e) => e.name == settings.name, + orElse: () => ChickenPages.pages.firstWhere( + (e) => e.name == ChickenRoutes.actionPoultryScience, + ), + ); + + return buildRouteFromGetPage(page); + }, ), Navigator( key: Get.nestedKey(1), - onGenerateRoute: (settings) => - GetPageRoute(page: () => controller.pages[1]), + onGenerateRoute: (settings) => GetPageRoute(page: () => controller.pages[1]), ), Navigator( key: Get.nestedKey(2), - onGenerateRoute: (settings) => - GetPageRoute(page: () => controller.pages[1]), + onGenerateRoute: (settings) => GetPageRoute(page: () => controller.pages[2]), ), ], index: data.value, @@ -92,7 +100,7 @@ class PoultryScienceRootPage extends GetView { icon: Assets.vec.settingSvg.path, isSelected: controller.currentPage.value == 0, onTap: () { - //Get.nestedKey(1)?.currentState?.popUntil((route) => route.isFirst); + Get.nestedKey(1)?.currentState?.popUntil((route) => route.isFirst); controller.changePage(0); }, @@ -102,8 +110,8 @@ class PoultryScienceRootPage extends GetView { icon: Assets.vec.homeSvg.path, isSelected: controller.currentPage.value == 1, onTap: () { - /* Get.nestedKey(1)?.currentState?.popUntil((route) => route.isFirst); - Get.nestedKey(0)?.currentState?.popUntil((route) => route.isFirst);*/ + Get.nestedKey(0)?.currentState?.popUntil((route) => route.isFirst); + Get.nestedKey(2)?.currentState?.popUntil((route) => route.isFirst); controller.changePage(1); }, ), diff --git a/packages/chicken/lib/presentation/routes/pages.dart b/packages/chicken/lib/presentation/routes/pages.dart index a9a4b1a..86ee6f2 100644 --- a/packages/chicken/lib/presentation/routes/pages.dart +++ b/packages/chicken/lib/presentation/routes/pages.dart @@ -1,7 +1,10 @@ import 'package:rasadyar_chicken/presentation/pages/auth/logic.dart'; import 'package:rasadyar_chicken/presentation/pages/auth/view.dart'; import 'package:rasadyar_chicken/presentation/pages/poultry_science/home/logic.dart'; +import 'package:rasadyar_chicken/presentation/pages/poultry_science/inspection/logic.dart'; +import 'package:rasadyar_chicken/presentation/pages/poultry_science/inspection/view.dart'; import 'package:rasadyar_chicken/presentation/pages/poultry_science/poultry_action/logic.dart'; +import 'package:rasadyar_chicken/presentation/pages/poultry_science/poultry_action/view.dart'; import 'package:rasadyar_chicken/presentation/pages/poultry_science/profile/logic.dart'; import 'package:rasadyar_chicken/presentation/pages/poultry_science/root/logic.dart'; import 'package:rasadyar_chicken/presentation/pages/poultry_science/root/view.dart'; @@ -157,6 +160,22 @@ sealed class ChickenPages { }), ), + GetPage( + name: ChickenRoutes.inspectionPoultryScience, + page: () => InspectionPoultrySciencePage(), + middlewares: [AuthMiddleware()], + binding: BindingsBuilder(() { + Get.lazyPut(() => InspectionPoultryScienceLogic()); + }), + ), + GetPage( + name: ChickenRoutes.actionPoultryScience, + page: () => PoultryActionPage(), + middlewares: [AuthMiddleware()], + binding: BindingsBuilder(() { + Get.lazyPut(() => PoultryActionLogic()); + }), + ), //endregion ]; } diff --git a/packages/chicken/lib/presentation/routes/routes.dart b/packages/chicken/lib/presentation/routes/routes.dart index f016c17..8f3a586 100644 --- a/packages/chicken/lib/presentation/routes/routes.dart +++ b/packages/chicken/lib/presentation/routes/routes.dart @@ -27,5 +27,10 @@ sealed class ChickenRoutes { //region Poultry Science Routes static const _poultryScience = '$_base/poultryScience'; static const initPoultryScience = '$_poultryScience/'; + static const actionPoultryScience = '$_poultryScience/action'; + static const inspectionPoultryScience = '$_poultryScience/inspection'; + static const farmPoultryScience = '$_poultryScience/farm'; + static const activeHatchingPoultryScience = '$_poultryScience/activeHatching'; + static const killingRegistrationPoultryScience = '$_poultryScience/KillingRegistration'; //endregion } diff --git a/packages/core/lib/presentation/widget/buttons/elevated.dart b/packages/core/lib/presentation/widget/buttons/elevated.dart index d28a4b5..1a69af8 100644 --- a/packages/core/lib/presentation/widget/buttons/elevated.dart +++ b/packages/core/lib/presentation/widget/buttons/elevated.dart @@ -19,6 +19,7 @@ class RElevated extends StatelessWidget { this.isLoading = false, this.child, this.enabled = true, + this.progress = 0.0, // اضافه شد }) : assert(text != null || child != null, 'Either text or child must be provided'); final String? text; @@ -35,7 +36,7 @@ class RElevated extends StatelessWidget { final TextStyle? textStyle; final bool isLoading; final bool enabled; - + final double progress; // 0.0 تا 1.0 @override Widget build(BuildContext context) { final bool isEnabled = enabled && !isLoading; @@ -59,6 +60,7 @@ class RElevated extends StatelessWidget { child: CircularProgressIndicator( strokeWidth: 2.5, valueColor: AlwaysStoppedAnimation(foregroundColor), + value: progress > 0.0 && progress <= 1.0 ? progress : null, ), ) : child ?? Text(text!), diff --git a/packages/core/lib/utils/file_utils.dart b/packages/core/lib/utils/file_utils.dart index 3bb6cb3..4500eea 100644 --- a/packages/core/lib/utils/file_utils.dart +++ b/packages/core/lib/utils/file_utils.dart @@ -6,5 +6,5 @@ void getFileSizeInKB(String filePath, {String? tag}) { final file = File(filePath); final bytes = file.lengthSync(); var size = (bytes / 1024).ceil(); - iLog('${tag ?? 'Picked'} image Size: $size'); + iLog('${tag ?? 'Picked'} image Size: $size , fileName : ${file.path.split('/').last}'); } \ No newline at end of file