diff --git a/android/local.properties b/android/local.properties index 194f5e3..b51c4ef 100644 --- a/android/local.properties +++ b/android/local.properties @@ -1,5 +1,5 @@ -sdk.dir=/Users/mojtaba/Library/Android/sdk -flutter.sdk=/Users/mojtaba/develop/flutter +sdk.dir=C:\\Users\\Housh11\\AppData\\Local\\Android\\sdk +flutter.sdk=C:\\src\\flutter flutter.buildMode=debug flutter.versionName=1.3.35 flutter.versionCode=32 \ No newline at end of file diff --git a/packages/chicken/lib/features/poultry_science/data/datasources/remote/poultry_science_remote_data_source.dart b/packages/chicken/lib/features/poultry_science/data/datasources/remote/poultry_science_remote_data_source.dart index 200825a..68acd9c 100644 --- a/packages/chicken/lib/features/poultry_science/data/datasources/remote/poultry_science_remote_data_source.dart +++ b/packages/chicken/lib/features/poultry_science/data/datasources/remote/poultry_science_remote_data_source.dart @@ -4,6 +4,7 @@ import 'package:rasadyar_chicken/features/poultry_science/data/model/response/ho import 'package:rasadyar_chicken/features/poultry_science/data/model/response/poultry_farm/poultry_farm.dart'; import 'package:rasadyar_chicken/features/poultry_science/data/model/response/approved_price/approved_price.dart'; import 'package:rasadyar_chicken/features/poultry_science/data/model/response/all_poultry/all_poultry.dart'; +import 'package:rasadyar_chicken/features/poultry_science/data/model/response/poultry_science_report/poultry_science_report.dart'; import 'package:rasadyar_chicken/features/poultry_science/data/model/response/sell_for_freezing/sell_for_freezing.dart'; import 'package:rasadyar_chicken/features/poultry_science/data/model/response/poultry_export/poultry_export.dart'; import 'package:rasadyar_chicken/features/poultry_science/data/model/response/kill_request_poultry/kill_request_poultry.dart'; @@ -96,7 +97,7 @@ abstract class PoultryScienceRemoteDataSource { required List images, }); - Future?> getSubmitInspectionList({ + Future?> getSubmitInspectionList({ required String token, Map? queryParameters, }); diff --git a/packages/chicken/lib/features/poultry_science/data/datasources/remote/poultry_science_remote_data_source_impl.dart b/packages/chicken/lib/features/poultry_science/data/datasources/remote/poultry_science_remote_data_source_impl.dart index 230e349..0e41a29 100644 --- a/packages/chicken/lib/features/poultry_science/data/datasources/remote/poultry_science_remote_data_source_impl.dart +++ b/packages/chicken/lib/features/poultry_science/data/datasources/remote/poultry_science_remote_data_source_impl.dart @@ -4,6 +4,7 @@ import 'package:rasadyar_chicken/features/poultry_science/data/model/response/ho import 'package:rasadyar_chicken/features/poultry_science/data/model/response/poultry_farm/poultry_farm.dart'; import 'package:rasadyar_chicken/features/poultry_science/data/model/response/approved_price/approved_price.dart'; import 'package:rasadyar_chicken/features/poultry_science/data/model/response/all_poultry/all_poultry.dart'; +import 'package:rasadyar_chicken/features/poultry_science/data/model/response/poultry_science_report/poultry_science_report.dart'; import 'package:rasadyar_chicken/features/poultry_science/data/model/response/sell_for_freezing/sell_for_freezing.dart'; import 'package:rasadyar_chicken/features/poultry_science/data/model/response/poultry_export/poultry_export.dart'; import 'package:rasadyar_chicken/features/poultry_science/data/model/response/kill_request_poultry/kill_request_poultry.dart'; @@ -263,7 +264,7 @@ class PoultryScienceRemoteDataSourceImpl } @override - Future?> getSubmitInspectionList({ + Future?> getSubmitInspectionList({ required String token, Map? queryParameters, }) async { @@ -271,10 +272,9 @@ class PoultryScienceRemoteDataSourceImpl '/poultry_science_report/', headers: {'Authorization': 'Bearer $token'}, queryParameters: queryParameters, - fromJson: (json) => PaginationModel.fromJson( + fromJson: (json) => PaginationModel.fromJson( json, - (json) => - SubmitInspectionResponse.fromJson(json as Map), + (json) => PoultryScienceReport.fromJson(json as Map), ), ); return res.data; diff --git a/packages/chicken/lib/features/poultry_science/data/model/response/hatching/hatching_models.dart b/packages/chicken/lib/features/poultry_science/data/model/response/hatching/hatching_models.dart index cc72dd4..0c907c5 100644 --- a/packages/chicken/lib/features/poultry_science/data/model/response/hatching/hatching_models.dart +++ b/packages/chicken/lib/features/poultry_science/data/model/response/hatching/hatching_models.dart @@ -4,7 +4,7 @@ part 'hatching_models.freezed.dart'; part 'hatching_models.g.dart'; @freezed -abstract class HatchingModel with _$HatchingModel{ +abstract class HatchingModel with _$HatchingModel { const factory HatchingModel({ int? id, Poultry? poultry, @@ -94,6 +94,11 @@ abstract class HatchingModel with _$HatchingModel{ String? outputArchiver, num? barDifferenceRequestWeight, num? barDifferenceRequestQuantity, + num? totalDiseaseLosses, + num? totalFlockDestruction, + num? totalNormalFlockLosses, + num? totalForceMajeureLosses, + num? totalFireLosses, String? healthCertificate, num? samasatDischargePercentage, String? personTypeName, @@ -107,11 +112,13 @@ abstract class HatchingModel with _$HatchingModel{ String? tenantCity, bool? hasTenant, String? archiveDate, + bool? unknown, String? createdBy, String? modifiedBy, }) = _HatchingModel; - factory HatchingModel.fromJson(Map json) => _$HatchingModelFromJson(json); + factory HatchingModel.fromJson(Map json) => + _$HatchingModelFromJson(json); } @freezed @@ -187,17 +194,16 @@ abstract class Poultry with _$Poultry { int? wallet, }) = _Poultry; - factory Poultry.fromJson(Map json) => _$PoultryFromJson(json); + factory Poultry.fromJson(Map json) => + _$PoultryFromJson(json); } @freezed abstract class PoultryUser with _$PoultryUser { - const factory PoultryUser({ - String? fullname, - String? mobile, - }) = _PoultryUser; + const factory PoultryUser({String? fullname, String? mobile}) = _PoultryUser; - factory PoultryUser.fromJson(Map json) => _$PoultryUserFromJson(json); + factory PoultryUser.fromJson(Map json) => + _$PoultryUserFromJson(json); } @freezed @@ -209,27 +215,24 @@ abstract class PoultryAddress with _$PoultryAddress { String? postalCode, }) = _PoultryAddress; - factory PoultryAddress.fromJson(Map json) => _$PoultryAddressFromJson(json); + factory PoultryAddress.fromJson(Map json) => + _$PoultryAddressFromJson(json); } @freezed abstract class ProvinceRef with _$ProvinceRef { - const factory ProvinceRef({ - String? key, - String? name, - }) = _ProvinceRef; + const factory ProvinceRef({String? key, String? name}) = _ProvinceRef; - factory ProvinceRef.fromJson(Map json) => _$ProvinceRefFromJson(json); + factory ProvinceRef.fromJson(Map json) => + _$ProvinceRefFromJson(json); } @freezed abstract class CityRef with _$CityRef { - const factory CityRef({ - String? key, - String? name, - }) = _CityRef; + const factory CityRef({String? key, String? name}) = _CityRef; - factory CityRef.fromJson(Map json) => _$CityRefFromJson(json); + factory CityRef.fromJson(Map json) => + _$CityRefFromJson(json); } @freezed @@ -247,7 +250,8 @@ abstract class ChainCompany with _$ChainCompany { num? wallet, }) = _ChainCompany; - factory ChainCompany.fromJson(Map json) => _$ChainCompanyFromJson(json); + factory ChainCompany.fromJson(Map json) => + _$ChainCompanyFromJson(json); } @freezed @@ -289,7 +293,8 @@ abstract class ChainUser with _$ChainUser { String? unitAddress, }) = _ChainUser; - factory ChainUser.fromJson(Map json) => _$ChainUserFromJson(json); + factory ChainUser.fromJson(Map json) => + _$ChainUserFromJson(json); } @freezed @@ -306,27 +311,26 @@ abstract class ChainUserState with _$ChainUserState { String? nationalCode, }) = _ChainUserState; - factory ChainUserState.fromJson(Map json) => _$ChainUserStateFromJson(json); + factory ChainUserState.fromJson(Map json) => + _$ChainUserStateFromJson(json); } @freezed abstract class VetFarm with _$VetFarm { - const factory VetFarm({ - String? vetFarmFullName, - String? vetFarmMobile, - }) = _VetFarm; + const factory VetFarm({String? vetFarmFullName, String? vetFarmMobile}) = + _VetFarm; - factory VetFarm.fromJson(Map json) => _$VetFarmFromJson(json); + factory VetFarm.fromJson(Map json) => + _$VetFarmFromJson(json); } @freezed abstract class ActiveKill with _$ActiveKill { - const factory ActiveKill({ - bool? activeKill, - num? countOfRequest, - }) = _ActiveKill; + const factory ActiveKill({bool? activeKill, num? countOfRequest}) = + _ActiveKill; - factory ActiveKill.fromJson(Map json) => _$ActiveKillFromJson(json); + factory ActiveKill.fromJson(Map json) => + _$ActiveKillFromJson(json); } @freezed @@ -348,7 +352,8 @@ abstract class KillingInfo with _$KillingInfo { num? wareHouseBarsWeightLose, }) = _KillingInfo; - factory KillingInfo.fromJson(Map json) => _$KillingInfoFromJson(json); + factory KillingInfo.fromJson(Map json) => + _$KillingInfoFromJson(json); } @freezed @@ -361,17 +366,16 @@ abstract class FreeGovernmentalInfo with _$FreeGovernmentalInfo { num? leftTotalFreeCommitmentQuantity, }) = _FreeGovernmentalInfo; - factory FreeGovernmentalInfo.fromJson(Map json) => _$FreeGovernmentalInfoFromJson(json); + factory FreeGovernmentalInfo.fromJson(Map json) => + _$FreeGovernmentalInfoFromJson(json); } @freezed abstract class ReportInfo with _$ReportInfo { - const factory ReportInfo({ - bool? poultryScience, - bool? image, - }) = _ReportInfo; + const factory ReportInfo({bool? poultryScience, bool? image}) = _ReportInfo; - factory ReportInfo.fromJson(Map json) => _$ReportInfoFromJson(json); + factory ReportInfo.fromJson(Map json) => + _$ReportInfoFromJson(json); } @freezed @@ -382,18 +386,17 @@ abstract class LatestHatchingChange with _$LatestHatchingChange { String? fullName, }) = _LatestHatchingChange; - factory LatestHatchingChange.fromJson(Map json) => _$LatestHatchingChangeFromJson(json); + factory LatestHatchingChange.fromJson(Map json) => + _$LatestHatchingChangeFromJson(json); } @freezed abstract class Registrar with _$Registrar { - const factory Registrar({ - String? date, - String? role, - String? fullname, - }) = _Registrar; + const factory Registrar({String? date, String? role, String? fullname}) = + _Registrar; - factory Registrar.fromJson(Map json) => _$RegistrarFromJson(json); + factory Registrar.fromJson(Map json) => + _$RegistrarFromJson(json); } @freezed @@ -405,7 +408,8 @@ abstract class LastChange with _$LastChange { String? fullName, }) = _LastChange; - factory LastChange.fromJson(Map json) => _$LastChangeFromJson(json); + factory LastChange.fromJson(Map json) => + _$LastChangeFromJson(json); } @freezed @@ -416,6 +420,6 @@ abstract class BreedItem with _$BreedItem { num? remainQuantity, }) = _BreedItem; - factory BreedItem.fromJson(Map json) => _$BreedItemFromJson(json); + factory BreedItem.fromJson(Map json) => + _$BreedItemFromJson(json); } - diff --git a/packages/chicken/lib/features/poultry_science/data/model/response/hatching/hatching_models.freezed.dart b/packages/chicken/lib/features/poultry_science/data/model/response/hatching/hatching_models.freezed.dart index 4319232..05c6c44 100644 --- a/packages/chicken/lib/features/poultry_science/data/model/response/hatching/hatching_models.freezed.dart +++ b/packages/chicken/lib/features/poultry_science/data/model/response/hatching/hatching_models.freezed.dart @@ -15,7 +15,7 @@ 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; + 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; num? get totalDiseaseLosses; num? get totalFlockDestruction; num? get totalNormalFlockLosses; num? get totalForceMajeureLosses; num? get totalFireLosses; 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; bool? get unknown; 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) @@ -28,16 +28,16 @@ $HatchingModelCopyWith get copyWith => _$HatchingModelCopyWithImp @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)); + 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.totalDiseaseLosses, totalDiseaseLosses) || other.totalDiseaseLosses == totalDiseaseLosses)&&(identical(other.totalFlockDestruction, totalFlockDestruction) || other.totalFlockDestruction == totalFlockDestruction)&&(identical(other.totalNormalFlockLosses, totalNormalFlockLosses) || other.totalNormalFlockLosses == totalNormalFlockLosses)&&(identical(other.totalForceMajeureLosses, totalForceMajeureLosses) || other.totalForceMajeureLosses == totalForceMajeureLosses)&&(identical(other.totalFireLosses, totalFireLosses) || other.totalFireLosses == totalFireLosses)&&(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.unknown, unknown) || other.unknown == unknown)&&(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]); +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,totalDiseaseLosses,totalFlockDestruction,totalNormalFlockLosses,totalForceMajeureLosses,totalFireLosses,healthCertificate,samasatDischargePercentage,personTypeName,interactTypeName,unionTypeName,certId,increaseQuantity,tenantFullname,tenantNationalCode,tenantMobile,tenantCity,hasTenant,archiveDate,unknown,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)'; + 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, totalDiseaseLosses: $totalDiseaseLosses, totalFlockDestruction: $totalFlockDestruction, totalNormalFlockLosses: $totalNormalFlockLosses, totalForceMajeureLosses: $totalForceMajeureLosses, totalFireLosses: $totalFireLosses, 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, unknown: $unknown, createdBy: $createdBy, modifiedBy: $modifiedBy)'; } @@ -48,7 +48,7 @@ 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 + 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, num? totalDiseaseLosses, num? totalFlockDestruction, num? totalNormalFlockLosses, num? totalForceMajeureLosses, num? totalFireLosses, 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, bool? unknown, String? createdBy, String? modifiedBy }); @@ -65,7 +65,7 @@ class _$HatchingModelCopyWithImpl<$Res> /// 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,}) { +@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? totalDiseaseLosses = freezed,Object? totalFlockDestruction = freezed,Object? totalNormalFlockLosses = freezed,Object? totalForceMajeureLosses = freezed,Object? totalFireLosses = 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? unknown = 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 @@ -155,6 +155,11 @@ as String?,outputArchiveDate: freezed == outputArchiveDate ? _self.outputArchive 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?,totalDiseaseLosses: freezed == totalDiseaseLosses ? _self.totalDiseaseLosses : totalDiseaseLosses // ignore: cast_nullable_to_non_nullable +as num?,totalFlockDestruction: freezed == totalFlockDestruction ? _self.totalFlockDestruction : totalFlockDestruction // ignore: cast_nullable_to_non_nullable +as num?,totalNormalFlockLosses: freezed == totalNormalFlockLosses ? _self.totalNormalFlockLosses : totalNormalFlockLosses // ignore: cast_nullable_to_non_nullable +as num?,totalForceMajeureLosses: freezed == totalForceMajeureLosses ? _self.totalForceMajeureLosses : totalForceMajeureLosses // ignore: cast_nullable_to_non_nullable +as num?,totalFireLosses: freezed == totalFireLosses ? _self.totalFireLosses : totalFireLosses // 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 @@ -168,7 +173,8 @@ as String?,tenantMobile: freezed == tenantMobile ? _self.tenantMobile : tenantMo 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?,unknown: freezed == unknown ? _self.unknown : unknown // 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?, )); @@ -375,10 +381,10 @@ return $default(_that);case _: /// } /// ``` -@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; +@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, num? totalDiseaseLosses, num? totalFlockDestruction, num? totalNormalFlockLosses, num? totalForceMajeureLosses, num? totalFireLosses, 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, bool? unknown, 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 $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.totalDiseaseLosses,_that.totalFlockDestruction,_that.totalNormalFlockLosses,_that.totalForceMajeureLosses,_that.totalFireLosses,_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.unknown,_that.createdBy,_that.modifiedBy);case _: return orElse(); } @@ -396,10 +402,10 @@ return $default(_that.id,_that.poultry,_that.chainCompany,_that.age,_that.inspec /// } /// ``` -@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; +@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, num? totalDiseaseLosses, num? totalFlockDestruction, num? totalNormalFlockLosses, num? totalForceMajeureLosses, num? totalFireLosses, 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, bool? unknown, 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 _: +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.totalDiseaseLosses,_that.totalFlockDestruction,_that.totalNormalFlockLosses,_that.totalForceMajeureLosses,_that.totalFireLosses,_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.unknown,_that.createdBy,_that.modifiedBy);case _: throw StateError('Unexpected subclass'); } @@ -416,10 +422,10 @@ return $default(_that.id,_that.poultry,_that.chainCompany,_that.age,_that.inspec /// } /// ``` -@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; +@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, num? totalDiseaseLosses, num? totalFlockDestruction, num? totalNormalFlockLosses, num? totalForceMajeureLosses, num? totalFireLosses, 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, bool? unknown, 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 $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.totalDiseaseLosses,_that.totalFlockDestruction,_that.totalNormalFlockLosses,_that.totalForceMajeureLosses,_that.totalFireLosses,_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.unknown,_that.createdBy,_that.modifiedBy);case _: return null; } @@ -431,7 +437,7 @@ return $default(_that.id,_that.poultry,_that.chainCompany,_that.age,_that.inspec @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; + 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.totalDiseaseLosses, this.totalFlockDestruction, this.totalNormalFlockLosses, this.totalForceMajeureLosses, this.totalFireLosses, 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.unknown, this.createdBy, this.modifiedBy}): _breed = breed,_violationImage = violationImage; factory _HatchingModel.fromJson(Map json) => _$HatchingModelFromJson(json); @override final int? id; @@ -538,6 +544,11 @@ class _HatchingModel implements HatchingModel { @override final String? outputArchiver; @override final num? barDifferenceRequestWeight; @override final num? barDifferenceRequestQuantity; +@override final num? totalDiseaseLosses; +@override final num? totalFlockDestruction; +@override final num? totalNormalFlockLosses; +@override final num? totalForceMajeureLosses; +@override final num? totalFireLosses; @override final String? healthCertificate; @override final num? samasatDischargePercentage; @override final String? personTypeName; @@ -551,6 +562,7 @@ class _HatchingModel implements HatchingModel { @override final String? tenantCity; @override final bool? hasTenant; @override final String? archiveDate; +@override final bool? unknown; @override final String? createdBy; @override final String? modifiedBy; @@ -567,16 +579,16 @@ 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)); + 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.totalDiseaseLosses, totalDiseaseLosses) || other.totalDiseaseLosses == totalDiseaseLosses)&&(identical(other.totalFlockDestruction, totalFlockDestruction) || other.totalFlockDestruction == totalFlockDestruction)&&(identical(other.totalNormalFlockLosses, totalNormalFlockLosses) || other.totalNormalFlockLosses == totalNormalFlockLosses)&&(identical(other.totalForceMajeureLosses, totalForceMajeureLosses) || other.totalForceMajeureLosses == totalForceMajeureLosses)&&(identical(other.totalFireLosses, totalFireLosses) || other.totalFireLosses == totalFireLosses)&&(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.unknown, unknown) || other.unknown == unknown)&&(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]); +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,totalDiseaseLosses,totalFlockDestruction,totalNormalFlockLosses,totalForceMajeureLosses,totalFireLosses,healthCertificate,samasatDischargePercentage,personTypeName,interactTypeName,unionTypeName,certId,increaseQuantity,tenantFullname,tenantNationalCode,tenantMobile,tenantCity,hasTenant,archiveDate,unknown,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)'; + 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, totalDiseaseLosses: $totalDiseaseLosses, totalFlockDestruction: $totalFlockDestruction, totalNormalFlockLosses: $totalNormalFlockLosses, totalForceMajeureLosses: $totalForceMajeureLosses, totalFireLosses: $totalFireLosses, 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, unknown: $unknown, createdBy: $createdBy, modifiedBy: $modifiedBy)'; } @@ -587,7 +599,7 @@ abstract mixin class _$HatchingModelCopyWith<$Res> implements $HatchingModelCopy 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 + 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, num? totalDiseaseLosses, num? totalFlockDestruction, num? totalNormalFlockLosses, num? totalForceMajeureLosses, num? totalFireLosses, 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, bool? unknown, String? createdBy, String? modifiedBy }); @@ -604,7 +616,7 @@ class __$HatchingModelCopyWithImpl<$Res> /// 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,}) { +@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? totalDiseaseLosses = freezed,Object? totalFlockDestruction = freezed,Object? totalNormalFlockLosses = freezed,Object? totalForceMajeureLosses = freezed,Object? totalFireLosses = 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? unknown = 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 @@ -694,6 +706,11 @@ as String?,outputArchiveDate: freezed == outputArchiveDate ? _self.outputArchive 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?,totalDiseaseLosses: freezed == totalDiseaseLosses ? _self.totalDiseaseLosses : totalDiseaseLosses // ignore: cast_nullable_to_non_nullable +as num?,totalFlockDestruction: freezed == totalFlockDestruction ? _self.totalFlockDestruction : totalFlockDestruction // ignore: cast_nullable_to_non_nullable +as num?,totalNormalFlockLosses: freezed == totalNormalFlockLosses ? _self.totalNormalFlockLosses : totalNormalFlockLosses // ignore: cast_nullable_to_non_nullable +as num?,totalForceMajeureLosses: freezed == totalForceMajeureLosses ? _self.totalForceMajeureLosses : totalForceMajeureLosses // ignore: cast_nullable_to_non_nullable +as num?,totalFireLosses: freezed == totalFireLosses ? _self.totalFireLosses : totalFireLosses // 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 @@ -707,7 +724,8 @@ as String?,tenantMobile: freezed == tenantMobile ? _self.tenantMobile : tenantMo 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?,unknown: freezed == unknown ? _self.unknown : unknown // 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?, )); diff --git a/packages/chicken/lib/features/poultry_science/data/model/response/hatching/hatching_models.g.dart b/packages/chicken/lib/features/poultry_science/data/model/response/hatching/hatching_models.g.dart index 11c2741..8599f86 100644 --- a/packages/chicken/lib/features/poultry_science/data/model/response/hatching/hatching_models.g.dart +++ b/packages/chicken/lib/features/poultry_science/data/model/response/hatching/hatching_models.g.dart @@ -126,6 +126,11 @@ _HatchingModel _$HatchingModelFromJson( outputArchiver: json['output_archiver'] as String?, barDifferenceRequestWeight: json['bar_difference_request_weight'] as num?, barDifferenceRequestQuantity: json['bar_difference_request_quantity'] as num?, + totalDiseaseLosses: json['total_disease_losses'] as num?, + totalFlockDestruction: json['total_flock_destruction'] as num?, + totalNormalFlockLosses: json['total_normal_flock_losses'] as num?, + totalForceMajeureLosses: json['total_force_majeure_losses'] as num?, + totalFireLosses: json['total_fire_losses'] as num?, healthCertificate: json['health_certificate'] as String?, samasatDischargePercentage: json['samasat_discharge_percentage'] as num?, personTypeName: json['person_type_name'] as String?, @@ -139,6 +144,7 @@ _HatchingModel _$HatchingModelFromJson( tenantCity: json['tenant_city'] as String?, hasTenant: json['has_tenant'] as bool?, archiveDate: json['archive_date'] as String?, + unknown: json['unknown'] as bool?, createdBy: json['created_by'] as String?, modifiedBy: json['modified_by'] as String?, ); @@ -233,6 +239,11 @@ Map _$HatchingModelToJson(_HatchingModel instance) => 'output_archiver': instance.outputArchiver, 'bar_difference_request_weight': instance.barDifferenceRequestWeight, 'bar_difference_request_quantity': instance.barDifferenceRequestQuantity, + 'total_disease_losses': instance.totalDiseaseLosses, + 'total_flock_destruction': instance.totalFlockDestruction, + 'total_normal_flock_losses': instance.totalNormalFlockLosses, + 'total_force_majeure_losses': instance.totalForceMajeureLosses, + 'total_fire_losses': instance.totalFireLosses, 'health_certificate': instance.healthCertificate, 'samasat_discharge_percentage': instance.samasatDischargePercentage, 'person_type_name': instance.personTypeName, @@ -246,6 +257,7 @@ Map _$HatchingModelToJson(_HatchingModel instance) => 'tenant_city': instance.tenantCity, 'has_tenant': instance.hasTenant, 'archive_date': instance.archiveDate, + 'unknown': instance.unknown, 'created_by': instance.createdBy, 'modified_by': instance.modifiedBy, }; diff --git a/packages/chicken/lib/features/poultry_science/data/model/response/poultry_science_report/poultry_science_report.dart b/packages/chicken/lib/features/poultry_science/data/model/response/poultry_science_report/poultry_science_report.dart new file mode 100644 index 0000000..fd7853c --- /dev/null +++ b/packages/chicken/lib/features/poultry_science/data/model/response/poultry_science_report/poultry_science_report.dart @@ -0,0 +1,207 @@ +import 'package:freezed_annotation/freezed_annotation.dart'; +import '../hatching/hatching_models.dart'; + +part 'poultry_science_report.freezed.dart'; +part 'poultry_science_report.g.dart'; + +@freezed +abstract class PoultryScienceReport with _$PoultryScienceReport { + const factory PoultryScienceReport({ + int? id, + PoultryScienceRef? poultryScience, + HatchingModel? hatching, + UserRef? user, + String? key, + String? createDate, + String? modifyDate, + bool? trash, + String? date, + String? image, + num? lat, + num? log, + String? reporterFullname, + String? reporterMobile, + String? reporterRole, + String? state, + num? realQuantityAi, + String? messageAi, + num? realQuantity, + String? message, + String? messageRegistererFullname, + String? messageRegistererMobile, + String? messageRegistererRole, + ReportInformation? reportInformation, + String? createdBy, + String? modifiedBy, + }) = _PoultryScienceReport; + + factory PoultryScienceReport.fromJson(Map json) => + _$PoultryScienceReportFromJson(json); +} + +@freezed +abstract class PoultryScienceRef with _$PoultryScienceRef { + const factory PoultryScienceRef({ + int? id, + UserWithCity? user, + String? key, + String? createDate, + String? modifyDate, + bool? trash, + String? engineeringCode, + String? createdBy, + String? modifiedBy, + List? poultry, + }) = _PoultryScienceRef; + + factory PoultryScienceRef.fromJson(Map json) => + _$PoultryScienceRefFromJson(json); +} + +@freezed +abstract class UserRef with _$UserRef { + const factory UserRef({String? fullname, String? mobile, CityRef? city}) = + _UserRef; + + factory UserRef.fromJson(Map json) => + _$UserRefFromJson(json); +} + +@freezed +abstract class UserWithCity with _$UserWithCity { + const factory UserWithCity({ + String? fullname, + String? mobile, + CityRef? city, + }) = _UserWithCity; + + factory UserWithCity.fromJson(Map json) => + _$UserWithCityFromJson(json); +} + +@freezed +abstract class ReportInformation with _$ReportInformation { + const factory ReportInformation({ + HrInfo? hr, + Casualties? casualties, + Facilities? facilities, + InputStatus? inputStatus, + String? inspectionNotes, + String? inspectionStatus, + TechnicalOfficer? technicalOfficer, + InfrastructureEnergy? infrastructureEnergy, + GeneralConditionHall? generalConditionHall, + }) = _ReportInformation; + + factory ReportInformation.fromJson(Map json) => + _$ReportInformationFromJson(json); +} + +@freezed +abstract class HrInfo with _$HrInfo { + const factory HrInfo({ + bool? trained, + String? contractStatus, + num? numberEmployed, + num? numberIndigenous, + num? numberNonIndigenous, + }) = _HrInfo; + + factory HrInfo.fromJson(Map json) => _$HrInfoFromJson(json); +} + +@freezed +abstract class Casualties with _$Casualties { + const factory Casualties({ + List? images, + String? typeDisease, + num? normalLosses, + bool? samplingDone, + String? typeSampling, + num? abnormalLosses, + String? sourceOfHatching, + String? causeAbnormalLosses, + }) = _Casualties; + + factory Casualties.fromJson(Map json) => + _$CasualtiesFromJson(json); +} + +@freezed +abstract class Facilities with _$Facilities { + const factory Facilities({ + String? date, + num? amount, + bool? hasFacilities, + String? repaymentStatus, + String? typeOfFacility, + String? requestFacilities, + }) = _Facilities; + + factory Facilities.fromJson(Map json) => + _$FacilitiesFromJson(json); +} + +@freezed +abstract class InputStatus with _$InputStatus { + const factory InputStatus({ + List? images, + String? gradeGrain, + String? companyName, + String? inputStatus, + String? trackingCode, + String? typeOfGrain, + String? inventoryUntilVisit, + String? inventoryInWarehouse, + }) = _InputStatus; + + factory InputStatus.fromJson(Map json) => + _$InputStatusFromJson(json); +} + +@freezed +abstract class TechnicalOfficer with _$TechnicalOfficer { + const factory TechnicalOfficer({ + String? technicalHealthOfficer, + String? technicalEngineeringOfficer, + }) = _TechnicalOfficer; + + factory TechnicalOfficer.fromJson(Map json) => + _$TechnicalOfficerFromJson(json); +} + +@freezed +abstract class InfrastructureEnergy with _$InfrastructureEnergy { + const factory InfrastructureEnergy({ + String? fuelType, + String? generatorType, + String? powerCutHour, + String? generatorCount, + String? generatorModel, + String? additionalNotes, + String? generatorCapacity, + String? powerCutDuration, + String? generatorPerformance, + bool? hasPowerCutHistory, + String? emergencyFuelInventory, + }) = _InfrastructureEnergy; + + factory InfrastructureEnergy.fromJson(Map json) => + _$InfrastructureEnergyFromJson(json); +} + +@freezed +abstract class GeneralConditionHall with _$GeneralConditionHall { + const factory GeneralConditionHall({ + List? images, + String? temperature, + String? bedCondition, + String? healthStatus, + String? ventilationStatus, + String? drinkingWaterSource, + String? drinkingWaterQuality, + }) = _GeneralConditionHall; + + factory GeneralConditionHall.fromJson(Map json) => + _$GeneralConditionHallFromJson(json); +} diff --git a/packages/chicken/lib/features/poultry_science/data/model/response/poultry_science_report/poultry_science_report.freezed.dart b/packages/chicken/lib/features/poultry_science/data/model/response/poultry_science_report/poultry_science_report.freezed.dart new file mode 100644 index 0000000..279ec34 --- /dev/null +++ b/packages/chicken/lib/features/poultry_science/data/model/response/poultry_science_report/poultry_science_report.freezed.dart @@ -0,0 +1,3796 @@ +// 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 'poultry_science_report.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; + +/// @nodoc +mixin _$PoultryScienceReport { + + int? get id; PoultryScienceRef? get poultryScience; HatchingModel? get hatching; UserRef? get user; String? get key; String? get createDate; String? get modifyDate; bool? get trash; String? get date; String? get image; num? get lat; num? get log; String? get reporterFullname; String? get reporterMobile; String? get reporterRole; String? get state; num? get realQuantityAi; String? get messageAi; num? get realQuantity; String? get message; String? get messageRegistererFullname; String? get messageRegistererMobile; String? get messageRegistererRole; ReportInformation? get reportInformation; String? get createdBy; String? get modifiedBy; +/// Create a copy of PoultryScienceReport +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$PoultryScienceReportCopyWith get copyWith => _$PoultryScienceReportCopyWithImpl(this as PoultryScienceReport, _$identity); + + /// Serializes this PoultryScienceReport to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is PoultryScienceReport&&(identical(other.id, id) || other.id == id)&&(identical(other.poultryScience, poultryScience) || other.poultryScience == poultryScience)&&(identical(other.hatching, hatching) || other.hatching == hatching)&&(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.date, date) || other.date == date)&&(identical(other.image, image) || 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.reporterRole, reporterRole) || other.reporterRole == reporterRole)&&(identical(other.state, state) || other.state == state)&&(identical(other.realQuantityAi, realQuantityAi) || other.realQuantityAi == realQuantityAi)&&(identical(other.messageAi, messageAi) || other.messageAi == messageAi)&&(identical(other.realQuantity, realQuantity) || other.realQuantity == realQuantity)&&(identical(other.message, message) || other.message == message)&&(identical(other.messageRegistererFullname, messageRegistererFullname) || other.messageRegistererFullname == messageRegistererFullname)&&(identical(other.messageRegistererMobile, messageRegistererMobile) || other.messageRegistererMobile == messageRegistererMobile)&&(identical(other.messageRegistererRole, messageRegistererRole) || other.messageRegistererRole == messageRegistererRole)&&(identical(other.reportInformation, reportInformation) || other.reportInformation == reportInformation)&&(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,poultryScience,hatching,user,key,createDate,modifyDate,trash,date,image,lat,log,reporterFullname,reporterMobile,reporterRole,state,realQuantityAi,messageAi,realQuantity,message,messageRegistererFullname,messageRegistererMobile,messageRegistererRole,reportInformation,createdBy,modifiedBy]); + +@override +String toString() { + return 'PoultryScienceReport(id: $id, poultryScience: $poultryScience, hatching: $hatching, user: $user, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, date: $date, image: $image, lat: $lat, log: $log, reporterFullname: $reporterFullname, reporterMobile: $reporterMobile, reporterRole: $reporterRole, state: $state, realQuantityAi: $realQuantityAi, messageAi: $messageAi, realQuantity: $realQuantity, message: $message, messageRegistererFullname: $messageRegistererFullname, messageRegistererMobile: $messageRegistererMobile, messageRegistererRole: $messageRegistererRole, reportInformation: $reportInformation, createdBy: $createdBy, modifiedBy: $modifiedBy)'; +} + + +} + +/// @nodoc +abstract mixin class $PoultryScienceReportCopyWith<$Res> { + factory $PoultryScienceReportCopyWith(PoultryScienceReport value, $Res Function(PoultryScienceReport) _then) = _$PoultryScienceReportCopyWithImpl; +@useResult +$Res call({ + int? id, PoultryScienceRef? poultryScience, HatchingModel? hatching, UserRef? user, String? key, String? createDate, String? modifyDate, bool? trash, String? date, String? image, num? lat, num? log, String? reporterFullname, String? reporterMobile, String? reporterRole, String? state, num? realQuantityAi, String? messageAi, num? realQuantity, String? message, String? messageRegistererFullname, String? messageRegistererMobile, String? messageRegistererRole, ReportInformation? reportInformation, String? createdBy, String? modifiedBy +}); + + +$PoultryScienceRefCopyWith<$Res>? get poultryScience;$HatchingModelCopyWith<$Res>? get hatching;$UserRefCopyWith<$Res>? get user;$ReportInformationCopyWith<$Res>? get reportInformation; + +} +/// @nodoc +class _$PoultryScienceReportCopyWithImpl<$Res> + implements $PoultryScienceReportCopyWith<$Res> { + _$PoultryScienceReportCopyWithImpl(this._self, this._then); + + final PoultryScienceReport _self; + final $Res Function(PoultryScienceReport) _then; + +/// Create a copy of PoultryScienceReport +/// 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? user = 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? reporterRole = freezed,Object? state = freezed,Object? realQuantityAi = freezed,Object? messageAi = freezed,Object? realQuantity = freezed,Object? message = freezed,Object? messageRegistererFullname = freezed,Object? messageRegistererMobile = freezed,Object? messageRegistererRole = freezed,Object? reportInformation = 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 PoultryScienceRef?,hatching: freezed == hatching ? _self.hatching : hatching // ignore: cast_nullable_to_non_nullable +as HatchingModel?,user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable +as UserRef?,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 String?,lat: freezed == lat ? _self.lat : lat // ignore: cast_nullable_to_non_nullable +as num?,log: freezed == log ? _self.log : log // ignore: cast_nullable_to_non_nullable +as num?,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?,reporterRole: freezed == reporterRole ? _self.reporterRole : reporterRole // ignore: cast_nullable_to_non_nullable +as String?,state: freezed == state ? _self.state : state // ignore: cast_nullable_to_non_nullable +as String?,realQuantityAi: freezed == realQuantityAi ? _self.realQuantityAi : realQuantityAi // ignore: cast_nullable_to_non_nullable +as num?,messageAi: freezed == messageAi ? _self.messageAi : messageAi // ignore: cast_nullable_to_non_nullable +as String?,realQuantity: freezed == realQuantity ? _self.realQuantity : realQuantity // ignore: cast_nullable_to_non_nullable +as num?,message: freezed == message ? _self.message : message // ignore: cast_nullable_to_non_nullable +as String?,messageRegistererFullname: freezed == messageRegistererFullname ? _self.messageRegistererFullname : messageRegistererFullname // ignore: cast_nullable_to_non_nullable +as String?,messageRegistererMobile: freezed == messageRegistererMobile ? _self.messageRegistererMobile : messageRegistererMobile // ignore: cast_nullable_to_non_nullable +as String?,messageRegistererRole: freezed == messageRegistererRole ? _self.messageRegistererRole : messageRegistererRole // ignore: cast_nullable_to_non_nullable +as String?,reportInformation: freezed == reportInformation ? _self.reportInformation : reportInformation // ignore: cast_nullable_to_non_nullable +as ReportInformation?,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 PoultryScienceReport +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$PoultryScienceRefCopyWith<$Res>? get poultryScience { + if (_self.poultryScience == null) { + return null; + } + + return $PoultryScienceRefCopyWith<$Res>(_self.poultryScience!, (value) { + return _then(_self.copyWith(poultryScience: value)); + }); +}/// Create a copy of PoultryScienceReport +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$HatchingModelCopyWith<$Res>? get hatching { + if (_self.hatching == null) { + return null; + } + + return $HatchingModelCopyWith<$Res>(_self.hatching!, (value) { + return _then(_self.copyWith(hatching: value)); + }); +}/// Create a copy of PoultryScienceReport +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$UserRefCopyWith<$Res>? get user { + if (_self.user == null) { + return null; + } + + return $UserRefCopyWith<$Res>(_self.user!, (value) { + return _then(_self.copyWith(user: value)); + }); +}/// Create a copy of PoultryScienceReport +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ReportInformationCopyWith<$Res>? get reportInformation { + if (_self.reportInformation == null) { + return null; + } + + return $ReportInformationCopyWith<$Res>(_self.reportInformation!, (value) { + return _then(_self.copyWith(reportInformation: value)); + }); +} +} + + +/// Adds pattern-matching-related methods to [PoultryScienceReport]. +extension PoultryScienceReportPatterns on PoultryScienceReport { +/// 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( _PoultryScienceReport value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _PoultryScienceReport() 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( _PoultryScienceReport value) $default,){ +final _that = this; +switch (_that) { +case _PoultryScienceReport(): +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( _PoultryScienceReport value)? $default,){ +final _that = this; +switch (_that) { +case _PoultryScienceReport() 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, PoultryScienceRef? poultryScience, HatchingModel? hatching, UserRef? user, String? key, String? createDate, String? modifyDate, bool? trash, String? date, String? image, num? lat, num? log, String? reporterFullname, String? reporterMobile, String? reporterRole, String? state, num? realQuantityAi, String? messageAi, num? realQuantity, String? message, String? messageRegistererFullname, String? messageRegistererMobile, String? messageRegistererRole, ReportInformation? reportInformation, String? createdBy, String? modifiedBy)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _PoultryScienceReport() when $default != null: +return $default(_that.id,_that.poultryScience,_that.hatching,_that.user,_that.key,_that.createDate,_that.modifyDate,_that.trash,_that.date,_that.image,_that.lat,_that.log,_that.reporterFullname,_that.reporterMobile,_that.reporterRole,_that.state,_that.realQuantityAi,_that.messageAi,_that.realQuantity,_that.message,_that.messageRegistererFullname,_that.messageRegistererMobile,_that.messageRegistererRole,_that.reportInformation,_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, PoultryScienceRef? poultryScience, HatchingModel? hatching, UserRef? user, String? key, String? createDate, String? modifyDate, bool? trash, String? date, String? image, num? lat, num? log, String? reporterFullname, String? reporterMobile, String? reporterRole, String? state, num? realQuantityAi, String? messageAi, num? realQuantity, String? message, String? messageRegistererFullname, String? messageRegistererMobile, String? messageRegistererRole, ReportInformation? reportInformation, String? createdBy, String? modifiedBy) $default,) {final _that = this; +switch (_that) { +case _PoultryScienceReport(): +return $default(_that.id,_that.poultryScience,_that.hatching,_that.user,_that.key,_that.createDate,_that.modifyDate,_that.trash,_that.date,_that.image,_that.lat,_that.log,_that.reporterFullname,_that.reporterMobile,_that.reporterRole,_that.state,_that.realQuantityAi,_that.messageAi,_that.realQuantity,_that.message,_that.messageRegistererFullname,_that.messageRegistererMobile,_that.messageRegistererRole,_that.reportInformation,_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, PoultryScienceRef? poultryScience, HatchingModel? hatching, UserRef? user, String? key, String? createDate, String? modifyDate, bool? trash, String? date, String? image, num? lat, num? log, String? reporterFullname, String? reporterMobile, String? reporterRole, String? state, num? realQuantityAi, String? messageAi, num? realQuantity, String? message, String? messageRegistererFullname, String? messageRegistererMobile, String? messageRegistererRole, ReportInformation? reportInformation, String? createdBy, String? modifiedBy)? $default,) {final _that = this; +switch (_that) { +case _PoultryScienceReport() when $default != null: +return $default(_that.id,_that.poultryScience,_that.hatching,_that.user,_that.key,_that.createDate,_that.modifyDate,_that.trash,_that.date,_that.image,_that.lat,_that.log,_that.reporterFullname,_that.reporterMobile,_that.reporterRole,_that.state,_that.realQuantityAi,_that.messageAi,_that.realQuantity,_that.message,_that.messageRegistererFullname,_that.messageRegistererMobile,_that.messageRegistererRole,_that.reportInformation,_that.createdBy,_that.modifiedBy);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _PoultryScienceReport implements PoultryScienceReport { + const _PoultryScienceReport({this.id, this.poultryScience, this.hatching, this.user, this.key, this.createDate, this.modifyDate, this.trash, this.date, this.image, this.lat, this.log, this.reporterFullname, this.reporterMobile, this.reporterRole, this.state, this.realQuantityAi, this.messageAi, this.realQuantity, this.message, this.messageRegistererFullname, this.messageRegistererMobile, this.messageRegistererRole, this.reportInformation, this.createdBy, this.modifiedBy}); + factory _PoultryScienceReport.fromJson(Map json) => _$PoultryScienceReportFromJson(json); + +@override final int? id; +@override final PoultryScienceRef? poultryScience; +@override final HatchingModel? hatching; +@override final UserRef? user; +@override final String? key; +@override final String? createDate; +@override final String? modifyDate; +@override final bool? trash; +@override final String? date; +@override final String? image; +@override final num? lat; +@override final num? log; +@override final String? reporterFullname; +@override final String? reporterMobile; +@override final String? reporterRole; +@override final String? state; +@override final num? realQuantityAi; +@override final String? messageAi; +@override final num? realQuantity; +@override final String? message; +@override final String? messageRegistererFullname; +@override final String? messageRegistererMobile; +@override final String? messageRegistererRole; +@override final ReportInformation? reportInformation; +@override final String? createdBy; +@override final String? modifiedBy; + +/// Create a copy of PoultryScienceReport +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$PoultryScienceReportCopyWith<_PoultryScienceReport> get copyWith => __$PoultryScienceReportCopyWithImpl<_PoultryScienceReport>(this, _$identity); + +@override +Map toJson() { + return _$PoultryScienceReportToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _PoultryScienceReport&&(identical(other.id, id) || other.id == id)&&(identical(other.poultryScience, poultryScience) || other.poultryScience == poultryScience)&&(identical(other.hatching, hatching) || other.hatching == hatching)&&(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.date, date) || other.date == date)&&(identical(other.image, image) || 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.reporterRole, reporterRole) || other.reporterRole == reporterRole)&&(identical(other.state, state) || other.state == state)&&(identical(other.realQuantityAi, realQuantityAi) || other.realQuantityAi == realQuantityAi)&&(identical(other.messageAi, messageAi) || other.messageAi == messageAi)&&(identical(other.realQuantity, realQuantity) || other.realQuantity == realQuantity)&&(identical(other.message, message) || other.message == message)&&(identical(other.messageRegistererFullname, messageRegistererFullname) || other.messageRegistererFullname == messageRegistererFullname)&&(identical(other.messageRegistererMobile, messageRegistererMobile) || other.messageRegistererMobile == messageRegistererMobile)&&(identical(other.messageRegistererRole, messageRegistererRole) || other.messageRegistererRole == messageRegistererRole)&&(identical(other.reportInformation, reportInformation) || other.reportInformation == reportInformation)&&(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,poultryScience,hatching,user,key,createDate,modifyDate,trash,date,image,lat,log,reporterFullname,reporterMobile,reporterRole,state,realQuantityAi,messageAi,realQuantity,message,messageRegistererFullname,messageRegistererMobile,messageRegistererRole,reportInformation,createdBy,modifiedBy]); + +@override +String toString() { + return 'PoultryScienceReport(id: $id, poultryScience: $poultryScience, hatching: $hatching, user: $user, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, date: $date, image: $image, lat: $lat, log: $log, reporterFullname: $reporterFullname, reporterMobile: $reporterMobile, reporterRole: $reporterRole, state: $state, realQuantityAi: $realQuantityAi, messageAi: $messageAi, realQuantity: $realQuantity, message: $message, messageRegistererFullname: $messageRegistererFullname, messageRegistererMobile: $messageRegistererMobile, messageRegistererRole: $messageRegistererRole, reportInformation: $reportInformation, createdBy: $createdBy, modifiedBy: $modifiedBy)'; +} + + +} + +/// @nodoc +abstract mixin class _$PoultryScienceReportCopyWith<$Res> implements $PoultryScienceReportCopyWith<$Res> { + factory _$PoultryScienceReportCopyWith(_PoultryScienceReport value, $Res Function(_PoultryScienceReport) _then) = __$PoultryScienceReportCopyWithImpl; +@override @useResult +$Res call({ + int? id, PoultryScienceRef? poultryScience, HatchingModel? hatching, UserRef? user, String? key, String? createDate, String? modifyDate, bool? trash, String? date, String? image, num? lat, num? log, String? reporterFullname, String? reporterMobile, String? reporterRole, String? state, num? realQuantityAi, String? messageAi, num? realQuantity, String? message, String? messageRegistererFullname, String? messageRegistererMobile, String? messageRegistererRole, ReportInformation? reportInformation, String? createdBy, String? modifiedBy +}); + + +@override $PoultryScienceRefCopyWith<$Res>? get poultryScience;@override $HatchingModelCopyWith<$Res>? get hatching;@override $UserRefCopyWith<$Res>? get user;@override $ReportInformationCopyWith<$Res>? get reportInformation; + +} +/// @nodoc +class __$PoultryScienceReportCopyWithImpl<$Res> + implements _$PoultryScienceReportCopyWith<$Res> { + __$PoultryScienceReportCopyWithImpl(this._self, this._then); + + final _PoultryScienceReport _self; + final $Res Function(_PoultryScienceReport) _then; + +/// Create a copy of PoultryScienceReport +/// 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? user = 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? reporterRole = freezed,Object? state = freezed,Object? realQuantityAi = freezed,Object? messageAi = freezed,Object? realQuantity = freezed,Object? message = freezed,Object? messageRegistererFullname = freezed,Object? messageRegistererMobile = freezed,Object? messageRegistererRole = freezed,Object? reportInformation = freezed,Object? createdBy = freezed,Object? modifiedBy = freezed,}) { + return _then(_PoultryScienceReport( +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 PoultryScienceRef?,hatching: freezed == hatching ? _self.hatching : hatching // ignore: cast_nullable_to_non_nullable +as HatchingModel?,user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable +as UserRef?,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 String?,lat: freezed == lat ? _self.lat : lat // ignore: cast_nullable_to_non_nullable +as num?,log: freezed == log ? _self.log : log // ignore: cast_nullable_to_non_nullable +as num?,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?,reporterRole: freezed == reporterRole ? _self.reporterRole : reporterRole // ignore: cast_nullable_to_non_nullable +as String?,state: freezed == state ? _self.state : state // ignore: cast_nullable_to_non_nullable +as String?,realQuantityAi: freezed == realQuantityAi ? _self.realQuantityAi : realQuantityAi // ignore: cast_nullable_to_non_nullable +as num?,messageAi: freezed == messageAi ? _self.messageAi : messageAi // ignore: cast_nullable_to_non_nullable +as String?,realQuantity: freezed == realQuantity ? _self.realQuantity : realQuantity // ignore: cast_nullable_to_non_nullable +as num?,message: freezed == message ? _self.message : message // ignore: cast_nullable_to_non_nullable +as String?,messageRegistererFullname: freezed == messageRegistererFullname ? _self.messageRegistererFullname : messageRegistererFullname // ignore: cast_nullable_to_non_nullable +as String?,messageRegistererMobile: freezed == messageRegistererMobile ? _self.messageRegistererMobile : messageRegistererMobile // ignore: cast_nullable_to_non_nullable +as String?,messageRegistererRole: freezed == messageRegistererRole ? _self.messageRegistererRole : messageRegistererRole // ignore: cast_nullable_to_non_nullable +as String?,reportInformation: freezed == reportInformation ? _self.reportInformation : reportInformation // ignore: cast_nullable_to_non_nullable +as ReportInformation?,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 PoultryScienceReport +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$PoultryScienceRefCopyWith<$Res>? get poultryScience { + if (_self.poultryScience == null) { + return null; + } + + return $PoultryScienceRefCopyWith<$Res>(_self.poultryScience!, (value) { + return _then(_self.copyWith(poultryScience: value)); + }); +}/// Create a copy of PoultryScienceReport +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$HatchingModelCopyWith<$Res>? get hatching { + if (_self.hatching == null) { + return null; + } + + return $HatchingModelCopyWith<$Res>(_self.hatching!, (value) { + return _then(_self.copyWith(hatching: value)); + }); +}/// Create a copy of PoultryScienceReport +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$UserRefCopyWith<$Res>? get user { + if (_self.user == null) { + return null; + } + + return $UserRefCopyWith<$Res>(_self.user!, (value) { + return _then(_self.copyWith(user: value)); + }); +}/// Create a copy of PoultryScienceReport +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ReportInformationCopyWith<$Res>? get reportInformation { + if (_self.reportInformation == null) { + return null; + } + + return $ReportInformationCopyWith<$Res>(_self.reportInformation!, (value) { + return _then(_self.copyWith(reportInformation: value)); + }); +} +} + + +/// @nodoc +mixin _$PoultryScienceRef { + + int? get id; UserWithCity? get user; String? get key; String? get createDate; String? get modifyDate; bool? get trash; String? get engineeringCode; String? get createdBy; String? get modifiedBy; List? get poultry; +/// Create a copy of PoultryScienceRef +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$PoultryScienceRefCopyWith get copyWith => _$PoultryScienceRefCopyWithImpl(this as PoultryScienceRef, _$identity); + + /// Serializes this PoultryScienceRef to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is PoultryScienceRef&&(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.engineeringCode, engineeringCode) || other.engineeringCode == engineeringCode)&&(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,engineeringCode,createdBy,modifiedBy,const DeepCollectionEquality().hash(poultry)); + +@override +String toString() { + return 'PoultryScienceRef(id: $id, user: $user, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, engineeringCode: $engineeringCode, createdBy: $createdBy, modifiedBy: $modifiedBy, poultry: $poultry)'; +} + + +} + +/// @nodoc +abstract mixin class $PoultryScienceRefCopyWith<$Res> { + factory $PoultryScienceRefCopyWith(PoultryScienceRef value, $Res Function(PoultryScienceRef) _then) = _$PoultryScienceRefCopyWithImpl; +@useResult +$Res call({ + int? id, UserWithCity? user, String? key, String? createDate, String? modifyDate, bool? trash, String? engineeringCode, String? createdBy, String? modifiedBy, List? poultry +}); + + +$UserWithCityCopyWith<$Res>? get user; + +} +/// @nodoc +class _$PoultryScienceRefCopyWithImpl<$Res> + implements $PoultryScienceRefCopyWith<$Res> { + _$PoultryScienceRefCopyWithImpl(this._self, this._then); + + final PoultryScienceRef _self; + final $Res Function(PoultryScienceRef) _then; + +/// Create a copy of PoultryScienceRef +/// 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? engineeringCode = 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 UserWithCity?,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?,engineeringCode: freezed == engineeringCode ? _self.engineeringCode : engineeringCode // 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?,poultry: freezed == poultry ? _self.poultry : poultry // ignore: cast_nullable_to_non_nullable +as List?, + )); +} +/// Create a copy of PoultryScienceRef +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$UserWithCityCopyWith<$Res>? get user { + if (_self.user == null) { + return null; + } + + return $UserWithCityCopyWith<$Res>(_self.user!, (value) { + return _then(_self.copyWith(user: value)); + }); +} +} + + +/// Adds pattern-matching-related methods to [PoultryScienceRef]. +extension PoultryScienceRefPatterns on PoultryScienceRef { +/// 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( _PoultryScienceRef value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _PoultryScienceRef() 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( _PoultryScienceRef value) $default,){ +final _that = this; +switch (_that) { +case _PoultryScienceRef(): +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( _PoultryScienceRef value)? $default,){ +final _that = this; +switch (_that) { +case _PoultryScienceRef() 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, UserWithCity? user, String? key, String? createDate, String? modifyDate, bool? trash, String? engineeringCode, String? createdBy, String? modifiedBy, List? poultry)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _PoultryScienceRef() when $default != null: +return $default(_that.id,_that.user,_that.key,_that.createDate,_that.modifyDate,_that.trash,_that.engineeringCode,_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, UserWithCity? user, String? key, String? createDate, String? modifyDate, bool? trash, String? engineeringCode, String? createdBy, String? modifiedBy, List? poultry) $default,) {final _that = this; +switch (_that) { +case _PoultryScienceRef(): +return $default(_that.id,_that.user,_that.key,_that.createDate,_that.modifyDate,_that.trash,_that.engineeringCode,_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, UserWithCity? user, String? key, String? createDate, String? modifyDate, bool? trash, String? engineeringCode, String? createdBy, String? modifiedBy, List? poultry)? $default,) {final _that = this; +switch (_that) { +case _PoultryScienceRef() when $default != null: +return $default(_that.id,_that.user,_that.key,_that.createDate,_that.modifyDate,_that.trash,_that.engineeringCode,_that.createdBy,_that.modifiedBy,_that.poultry);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _PoultryScienceRef implements PoultryScienceRef { + const _PoultryScienceRef({this.id, this.user, this.key, this.createDate, this.modifyDate, this.trash, this.engineeringCode, this.createdBy, this.modifiedBy, final List? poultry}): _poultry = poultry; + factory _PoultryScienceRef.fromJson(Map json) => _$PoultryScienceRefFromJson(json); + +@override final int? id; +@override final UserWithCity? user; +@override final String? key; +@override final String? createDate; +@override final String? modifyDate; +@override final bool? trash; +@override final String? engineeringCode; +@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 PoultryScienceRef +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$PoultryScienceRefCopyWith<_PoultryScienceRef> get copyWith => __$PoultryScienceRefCopyWithImpl<_PoultryScienceRef>(this, _$identity); + +@override +Map toJson() { + return _$PoultryScienceRefToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _PoultryScienceRef&&(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.engineeringCode, engineeringCode) || other.engineeringCode == engineeringCode)&&(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,engineeringCode,createdBy,modifiedBy,const DeepCollectionEquality().hash(_poultry)); + +@override +String toString() { + return 'PoultryScienceRef(id: $id, user: $user, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, engineeringCode: $engineeringCode, createdBy: $createdBy, modifiedBy: $modifiedBy, poultry: $poultry)'; +} + + +} + +/// @nodoc +abstract mixin class _$PoultryScienceRefCopyWith<$Res> implements $PoultryScienceRefCopyWith<$Res> { + factory _$PoultryScienceRefCopyWith(_PoultryScienceRef value, $Res Function(_PoultryScienceRef) _then) = __$PoultryScienceRefCopyWithImpl; +@override @useResult +$Res call({ + int? id, UserWithCity? user, String? key, String? createDate, String? modifyDate, bool? trash, String? engineeringCode, String? createdBy, String? modifiedBy, List? poultry +}); + + +@override $UserWithCityCopyWith<$Res>? get user; + +} +/// @nodoc +class __$PoultryScienceRefCopyWithImpl<$Res> + implements _$PoultryScienceRefCopyWith<$Res> { + __$PoultryScienceRefCopyWithImpl(this._self, this._then); + + final _PoultryScienceRef _self; + final $Res Function(_PoultryScienceRef) _then; + +/// Create a copy of PoultryScienceRef +/// 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? engineeringCode = freezed,Object? createdBy = freezed,Object? modifiedBy = freezed,Object? poultry = freezed,}) { + return _then(_PoultryScienceRef( +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 UserWithCity?,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?,engineeringCode: freezed == engineeringCode ? _self.engineeringCode : engineeringCode // 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?,poultry: freezed == poultry ? _self._poultry : poultry // ignore: cast_nullable_to_non_nullable +as List?, + )); +} + +/// Create a copy of PoultryScienceRef +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$UserWithCityCopyWith<$Res>? get user { + if (_self.user == null) { + return null; + } + + return $UserWithCityCopyWith<$Res>(_self.user!, (value) { + return _then(_self.copyWith(user: value)); + }); +} +} + + +/// @nodoc +mixin _$UserRef { + + String? get fullname; String? get mobile; CityRef? get city; +/// Create a copy of UserRef +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$UserRefCopyWith get copyWith => _$UserRefCopyWithImpl(this as UserRef, _$identity); + + /// Serializes this UserRef to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is UserRef&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.city, city) || other.city == city)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,fullname,mobile,city); + +@override +String toString() { + return 'UserRef(fullname: $fullname, mobile: $mobile, city: $city)'; +} + + +} + +/// @nodoc +abstract mixin class $UserRefCopyWith<$Res> { + factory $UserRefCopyWith(UserRef value, $Res Function(UserRef) _then) = _$UserRefCopyWithImpl; +@useResult +$Res call({ + String? fullname, String? mobile, CityRef? city +}); + + +$CityRefCopyWith<$Res>? get city; + +} +/// @nodoc +class _$UserRefCopyWithImpl<$Res> + implements $UserRefCopyWith<$Res> { + _$UserRefCopyWithImpl(this._self, this._then); + + final UserRef _self; + final $Res Function(UserRef) _then; + +/// Create a copy of UserRef +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? fullname = freezed,Object? mobile = freezed,Object? city = freezed,}) { + return _then(_self.copyWith( +fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable +as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as CityRef?, + )); +} +/// Create a copy of UserRef +/// 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 [UserRef]. +extension UserRefPatterns on UserRef { +/// 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( _UserRef value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _UserRef() 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( _UserRef value) $default,){ +final _that = this; +switch (_that) { +case _UserRef(): +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( _UserRef value)? $default,){ +final _that = this; +switch (_that) { +case _UserRef() 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, CityRef? city)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _UserRef() when $default != null: +return $default(_that.fullname,_that.mobile,_that.city);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, CityRef? city) $default,) {final _that = this; +switch (_that) { +case _UserRef(): +return $default(_that.fullname,_that.mobile,_that.city);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, CityRef? city)? $default,) {final _that = this; +switch (_that) { +case _UserRef() when $default != null: +return $default(_that.fullname,_that.mobile,_that.city);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _UserRef implements UserRef { + const _UserRef({this.fullname, this.mobile, this.city}); + factory _UserRef.fromJson(Map json) => _$UserRefFromJson(json); + +@override final String? fullname; +@override final String? mobile; +@override final CityRef? city; + +/// Create a copy of UserRef +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$UserRefCopyWith<_UserRef> get copyWith => __$UserRefCopyWithImpl<_UserRef>(this, _$identity); + +@override +Map toJson() { + return _$UserRefToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _UserRef&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.city, city) || other.city == city)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,fullname,mobile,city); + +@override +String toString() { + return 'UserRef(fullname: $fullname, mobile: $mobile, city: $city)'; +} + + +} + +/// @nodoc +abstract mixin class _$UserRefCopyWith<$Res> implements $UserRefCopyWith<$Res> { + factory _$UserRefCopyWith(_UserRef value, $Res Function(_UserRef) _then) = __$UserRefCopyWithImpl; +@override @useResult +$Res call({ + String? fullname, String? mobile, CityRef? city +}); + + +@override $CityRefCopyWith<$Res>? get city; + +} +/// @nodoc +class __$UserRefCopyWithImpl<$Res> + implements _$UserRefCopyWith<$Res> { + __$UserRefCopyWithImpl(this._self, this._then); + + final _UserRef _self; + final $Res Function(_UserRef) _then; + +/// Create a copy of UserRef +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? fullname = freezed,Object? mobile = freezed,Object? city = freezed,}) { + return _then(_UserRef( +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 CityRef?, + )); +} + +/// Create a copy of UserRef +/// 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 _$UserWithCity { + + String? get fullname; String? get mobile; CityRef? get city; +/// Create a copy of UserWithCity +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$UserWithCityCopyWith get copyWith => _$UserWithCityCopyWithImpl(this as UserWithCity, _$identity); + + /// Serializes this UserWithCity to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is UserWithCity&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.city, city) || other.city == city)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,fullname,mobile,city); + +@override +String toString() { + return 'UserWithCity(fullname: $fullname, mobile: $mobile, city: $city)'; +} + + +} + +/// @nodoc +abstract mixin class $UserWithCityCopyWith<$Res> { + factory $UserWithCityCopyWith(UserWithCity value, $Res Function(UserWithCity) _then) = _$UserWithCityCopyWithImpl; +@useResult +$Res call({ + String? fullname, String? mobile, CityRef? city +}); + + +$CityRefCopyWith<$Res>? get city; + +} +/// @nodoc +class _$UserWithCityCopyWithImpl<$Res> + implements $UserWithCityCopyWith<$Res> { + _$UserWithCityCopyWithImpl(this._self, this._then); + + final UserWithCity _self; + final $Res Function(UserWithCity) _then; + +/// Create a copy of UserWithCity +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? fullname = freezed,Object? mobile = freezed,Object? city = freezed,}) { + return _then(_self.copyWith( +fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable +as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as CityRef?, + )); +} +/// Create a copy of UserWithCity +/// 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 [UserWithCity]. +extension UserWithCityPatterns on UserWithCity { +/// 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( _UserWithCity value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _UserWithCity() 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( _UserWithCity value) $default,){ +final _that = this; +switch (_that) { +case _UserWithCity(): +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( _UserWithCity value)? $default,){ +final _that = this; +switch (_that) { +case _UserWithCity() 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, CityRef? city)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _UserWithCity() when $default != null: +return $default(_that.fullname,_that.mobile,_that.city);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, CityRef? city) $default,) {final _that = this; +switch (_that) { +case _UserWithCity(): +return $default(_that.fullname,_that.mobile,_that.city);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, CityRef? city)? $default,) {final _that = this; +switch (_that) { +case _UserWithCity() when $default != null: +return $default(_that.fullname,_that.mobile,_that.city);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _UserWithCity implements UserWithCity { + const _UserWithCity({this.fullname, this.mobile, this.city}); + factory _UserWithCity.fromJson(Map json) => _$UserWithCityFromJson(json); + +@override final String? fullname; +@override final String? mobile; +@override final CityRef? city; + +/// Create a copy of UserWithCity +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$UserWithCityCopyWith<_UserWithCity> get copyWith => __$UserWithCityCopyWithImpl<_UserWithCity>(this, _$identity); + +@override +Map toJson() { + return _$UserWithCityToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _UserWithCity&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.city, city) || other.city == city)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,fullname,mobile,city); + +@override +String toString() { + return 'UserWithCity(fullname: $fullname, mobile: $mobile, city: $city)'; +} + + +} + +/// @nodoc +abstract mixin class _$UserWithCityCopyWith<$Res> implements $UserWithCityCopyWith<$Res> { + factory _$UserWithCityCopyWith(_UserWithCity value, $Res Function(_UserWithCity) _then) = __$UserWithCityCopyWithImpl; +@override @useResult +$Res call({ + String? fullname, String? mobile, CityRef? city +}); + + +@override $CityRefCopyWith<$Res>? get city; + +} +/// @nodoc +class __$UserWithCityCopyWithImpl<$Res> + implements _$UserWithCityCopyWith<$Res> { + __$UserWithCityCopyWithImpl(this._self, this._then); + + final _UserWithCity _self; + final $Res Function(_UserWithCity) _then; + +/// Create a copy of UserWithCity +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? fullname = freezed,Object? mobile = freezed,Object? city = freezed,}) { + return _then(_UserWithCity( +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 CityRef?, + )); +} + +/// Create a copy of UserWithCity +/// 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 _$ReportInformation { + + HrInfo? get hr; Casualties? get casualties; Facilities? get facilities; InputStatus? get inputStatus; String? get inspectionNotes; String? get inspectionStatus; TechnicalOfficer? get technicalOfficer; InfrastructureEnergy? get infrastructureEnergy; GeneralConditionHall? get generalConditionHall; +/// Create a copy of ReportInformation +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ReportInformationCopyWith get copyWith => _$ReportInformationCopyWithImpl(this as ReportInformation, _$identity); + + /// Serializes this ReportInformation to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is ReportInformation&&(identical(other.hr, hr) || other.hr == hr)&&(identical(other.casualties, casualties) || other.casualties == casualties)&&(identical(other.facilities, facilities) || other.facilities == facilities)&&(identical(other.inputStatus, inputStatus) || other.inputStatus == inputStatus)&&(identical(other.inspectionNotes, inspectionNotes) || other.inspectionNotes == inspectionNotes)&&(identical(other.inspectionStatus, inspectionStatus) || other.inspectionStatus == inspectionStatus)&&(identical(other.technicalOfficer, technicalOfficer) || other.technicalOfficer == technicalOfficer)&&(identical(other.infrastructureEnergy, infrastructureEnergy) || other.infrastructureEnergy == infrastructureEnergy)&&(identical(other.generalConditionHall, generalConditionHall) || other.generalConditionHall == generalConditionHall)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,hr,casualties,facilities,inputStatus,inspectionNotes,inspectionStatus,technicalOfficer,infrastructureEnergy,generalConditionHall); + +@override +String toString() { + return 'ReportInformation(hr: $hr, casualties: $casualties, facilities: $facilities, inputStatus: $inputStatus, inspectionNotes: $inspectionNotes, inspectionStatus: $inspectionStatus, technicalOfficer: $technicalOfficer, infrastructureEnergy: $infrastructureEnergy, generalConditionHall: $generalConditionHall)'; +} + + +} + +/// @nodoc +abstract mixin class $ReportInformationCopyWith<$Res> { + factory $ReportInformationCopyWith(ReportInformation value, $Res Function(ReportInformation) _then) = _$ReportInformationCopyWithImpl; +@useResult +$Res call({ + HrInfo? hr, Casualties? casualties, Facilities? facilities, InputStatus? inputStatus, String? inspectionNotes, String? inspectionStatus, TechnicalOfficer? technicalOfficer, InfrastructureEnergy? infrastructureEnergy, GeneralConditionHall? generalConditionHall +}); + + +$HrInfoCopyWith<$Res>? get hr;$CasualtiesCopyWith<$Res>? get casualties;$FacilitiesCopyWith<$Res>? get facilities;$InputStatusCopyWith<$Res>? get inputStatus;$TechnicalOfficerCopyWith<$Res>? get technicalOfficer;$InfrastructureEnergyCopyWith<$Res>? get infrastructureEnergy;$GeneralConditionHallCopyWith<$Res>? get generalConditionHall; + +} +/// @nodoc +class _$ReportInformationCopyWithImpl<$Res> + implements $ReportInformationCopyWith<$Res> { + _$ReportInformationCopyWithImpl(this._self, this._then); + + final ReportInformation _self; + final $Res Function(ReportInformation) _then; + +/// Create a copy of ReportInformation +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? hr = freezed,Object? casualties = freezed,Object? facilities = freezed,Object? inputStatus = freezed,Object? inspectionNotes = freezed,Object? inspectionStatus = freezed,Object? technicalOfficer = freezed,Object? infrastructureEnergy = freezed,Object? generalConditionHall = freezed,}) { + return _then(_self.copyWith( +hr: freezed == hr ? _self.hr : hr // ignore: cast_nullable_to_non_nullable +as HrInfo?,casualties: freezed == casualties ? _self.casualties : casualties // ignore: cast_nullable_to_non_nullable +as Casualties?,facilities: freezed == facilities ? _self.facilities : facilities // ignore: cast_nullable_to_non_nullable +as Facilities?,inputStatus: freezed == inputStatus ? _self.inputStatus : inputStatus // ignore: cast_nullable_to_non_nullable +as InputStatus?,inspectionNotes: freezed == inspectionNotes ? _self.inspectionNotes : inspectionNotes // ignore: cast_nullable_to_non_nullable +as String?,inspectionStatus: freezed == inspectionStatus ? _self.inspectionStatus : inspectionStatus // ignore: cast_nullable_to_non_nullable +as String?,technicalOfficer: freezed == technicalOfficer ? _self.technicalOfficer : technicalOfficer // ignore: cast_nullable_to_non_nullable +as TechnicalOfficer?,infrastructureEnergy: freezed == infrastructureEnergy ? _self.infrastructureEnergy : infrastructureEnergy // ignore: cast_nullable_to_non_nullable +as InfrastructureEnergy?,generalConditionHall: freezed == generalConditionHall ? _self.generalConditionHall : generalConditionHall // ignore: cast_nullable_to_non_nullable +as GeneralConditionHall?, + )); +} +/// Create a copy of ReportInformation +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$HrInfoCopyWith<$Res>? get hr { + if (_self.hr == null) { + return null; + } + + return $HrInfoCopyWith<$Res>(_self.hr!, (value) { + return _then(_self.copyWith(hr: value)); + }); +}/// Create a copy of ReportInformation +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$CasualtiesCopyWith<$Res>? get casualties { + if (_self.casualties == null) { + return null; + } + + return $CasualtiesCopyWith<$Res>(_self.casualties!, (value) { + return _then(_self.copyWith(casualties: value)); + }); +}/// Create a copy of ReportInformation +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$FacilitiesCopyWith<$Res>? get facilities { + if (_self.facilities == null) { + return null; + } + + return $FacilitiesCopyWith<$Res>(_self.facilities!, (value) { + return _then(_self.copyWith(facilities: value)); + }); +}/// Create a copy of ReportInformation +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$InputStatusCopyWith<$Res>? get inputStatus { + if (_self.inputStatus == null) { + return null; + } + + return $InputStatusCopyWith<$Res>(_self.inputStatus!, (value) { + return _then(_self.copyWith(inputStatus: value)); + }); +}/// Create a copy of ReportInformation +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$TechnicalOfficerCopyWith<$Res>? get technicalOfficer { + if (_self.technicalOfficer == null) { + return null; + } + + return $TechnicalOfficerCopyWith<$Res>(_self.technicalOfficer!, (value) { + return _then(_self.copyWith(technicalOfficer: value)); + }); +}/// Create a copy of ReportInformation +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$InfrastructureEnergyCopyWith<$Res>? get infrastructureEnergy { + if (_self.infrastructureEnergy == null) { + return null; + } + + return $InfrastructureEnergyCopyWith<$Res>(_self.infrastructureEnergy!, (value) { + return _then(_self.copyWith(infrastructureEnergy: value)); + }); +}/// Create a copy of ReportInformation +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$GeneralConditionHallCopyWith<$Res>? get generalConditionHall { + if (_self.generalConditionHall == null) { + return null; + } + + return $GeneralConditionHallCopyWith<$Res>(_self.generalConditionHall!, (value) { + return _then(_self.copyWith(generalConditionHall: value)); + }); +} +} + + +/// Adds pattern-matching-related methods to [ReportInformation]. +extension ReportInformationPatterns on ReportInformation { +/// 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( _ReportInformation value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _ReportInformation() 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( _ReportInformation value) $default,){ +final _that = this; +switch (_that) { +case _ReportInformation(): +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( _ReportInformation value)? $default,){ +final _that = this; +switch (_that) { +case _ReportInformation() 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( HrInfo? hr, Casualties? casualties, Facilities? facilities, InputStatus? inputStatus, String? inspectionNotes, String? inspectionStatus, TechnicalOfficer? technicalOfficer, InfrastructureEnergy? infrastructureEnergy, GeneralConditionHall? generalConditionHall)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _ReportInformation() when $default != null: +return $default(_that.hr,_that.casualties,_that.facilities,_that.inputStatus,_that.inspectionNotes,_that.inspectionStatus,_that.technicalOfficer,_that.infrastructureEnergy,_that.generalConditionHall);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( HrInfo? hr, Casualties? casualties, Facilities? facilities, InputStatus? inputStatus, String? inspectionNotes, String? inspectionStatus, TechnicalOfficer? technicalOfficer, InfrastructureEnergy? infrastructureEnergy, GeneralConditionHall? generalConditionHall) $default,) {final _that = this; +switch (_that) { +case _ReportInformation(): +return $default(_that.hr,_that.casualties,_that.facilities,_that.inputStatus,_that.inspectionNotes,_that.inspectionStatus,_that.technicalOfficer,_that.infrastructureEnergy,_that.generalConditionHall);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( HrInfo? hr, Casualties? casualties, Facilities? facilities, InputStatus? inputStatus, String? inspectionNotes, String? inspectionStatus, TechnicalOfficer? technicalOfficer, InfrastructureEnergy? infrastructureEnergy, GeneralConditionHall? generalConditionHall)? $default,) {final _that = this; +switch (_that) { +case _ReportInformation() when $default != null: +return $default(_that.hr,_that.casualties,_that.facilities,_that.inputStatus,_that.inspectionNotes,_that.inspectionStatus,_that.technicalOfficer,_that.infrastructureEnergy,_that.generalConditionHall);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _ReportInformation implements ReportInformation { + const _ReportInformation({this.hr, this.casualties, this.facilities, this.inputStatus, this.inspectionNotes, this.inspectionStatus, this.technicalOfficer, this.infrastructureEnergy, this.generalConditionHall}); + factory _ReportInformation.fromJson(Map json) => _$ReportInformationFromJson(json); + +@override final HrInfo? hr; +@override final Casualties? casualties; +@override final Facilities? facilities; +@override final InputStatus? inputStatus; +@override final String? inspectionNotes; +@override final String? inspectionStatus; +@override final TechnicalOfficer? technicalOfficer; +@override final InfrastructureEnergy? infrastructureEnergy; +@override final GeneralConditionHall? generalConditionHall; + +/// Create a copy of ReportInformation +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ReportInformationCopyWith<_ReportInformation> get copyWith => __$ReportInformationCopyWithImpl<_ReportInformation>(this, _$identity); + +@override +Map toJson() { + return _$ReportInformationToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _ReportInformation&&(identical(other.hr, hr) || other.hr == hr)&&(identical(other.casualties, casualties) || other.casualties == casualties)&&(identical(other.facilities, facilities) || other.facilities == facilities)&&(identical(other.inputStatus, inputStatus) || other.inputStatus == inputStatus)&&(identical(other.inspectionNotes, inspectionNotes) || other.inspectionNotes == inspectionNotes)&&(identical(other.inspectionStatus, inspectionStatus) || other.inspectionStatus == inspectionStatus)&&(identical(other.technicalOfficer, technicalOfficer) || other.technicalOfficer == technicalOfficer)&&(identical(other.infrastructureEnergy, infrastructureEnergy) || other.infrastructureEnergy == infrastructureEnergy)&&(identical(other.generalConditionHall, generalConditionHall) || other.generalConditionHall == generalConditionHall)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,hr,casualties,facilities,inputStatus,inspectionNotes,inspectionStatus,technicalOfficer,infrastructureEnergy,generalConditionHall); + +@override +String toString() { + return 'ReportInformation(hr: $hr, casualties: $casualties, facilities: $facilities, inputStatus: $inputStatus, inspectionNotes: $inspectionNotes, inspectionStatus: $inspectionStatus, technicalOfficer: $technicalOfficer, infrastructureEnergy: $infrastructureEnergy, generalConditionHall: $generalConditionHall)'; +} + + +} + +/// @nodoc +abstract mixin class _$ReportInformationCopyWith<$Res> implements $ReportInformationCopyWith<$Res> { + factory _$ReportInformationCopyWith(_ReportInformation value, $Res Function(_ReportInformation) _then) = __$ReportInformationCopyWithImpl; +@override @useResult +$Res call({ + HrInfo? hr, Casualties? casualties, Facilities? facilities, InputStatus? inputStatus, String? inspectionNotes, String? inspectionStatus, TechnicalOfficer? technicalOfficer, InfrastructureEnergy? infrastructureEnergy, GeneralConditionHall? generalConditionHall +}); + + +@override $HrInfoCopyWith<$Res>? get hr;@override $CasualtiesCopyWith<$Res>? get casualties;@override $FacilitiesCopyWith<$Res>? get facilities;@override $InputStatusCopyWith<$Res>? get inputStatus;@override $TechnicalOfficerCopyWith<$Res>? get technicalOfficer;@override $InfrastructureEnergyCopyWith<$Res>? get infrastructureEnergy;@override $GeneralConditionHallCopyWith<$Res>? get generalConditionHall; + +} +/// @nodoc +class __$ReportInformationCopyWithImpl<$Res> + implements _$ReportInformationCopyWith<$Res> { + __$ReportInformationCopyWithImpl(this._self, this._then); + + final _ReportInformation _self; + final $Res Function(_ReportInformation) _then; + +/// Create a copy of ReportInformation +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? hr = freezed,Object? casualties = freezed,Object? facilities = freezed,Object? inputStatus = freezed,Object? inspectionNotes = freezed,Object? inspectionStatus = freezed,Object? technicalOfficer = freezed,Object? infrastructureEnergy = freezed,Object? generalConditionHall = freezed,}) { + return _then(_ReportInformation( +hr: freezed == hr ? _self.hr : hr // ignore: cast_nullable_to_non_nullable +as HrInfo?,casualties: freezed == casualties ? _self.casualties : casualties // ignore: cast_nullable_to_non_nullable +as Casualties?,facilities: freezed == facilities ? _self.facilities : facilities // ignore: cast_nullable_to_non_nullable +as Facilities?,inputStatus: freezed == inputStatus ? _self.inputStatus : inputStatus // ignore: cast_nullable_to_non_nullable +as InputStatus?,inspectionNotes: freezed == inspectionNotes ? _self.inspectionNotes : inspectionNotes // ignore: cast_nullable_to_non_nullable +as String?,inspectionStatus: freezed == inspectionStatus ? _self.inspectionStatus : inspectionStatus // ignore: cast_nullable_to_non_nullable +as String?,technicalOfficer: freezed == technicalOfficer ? _self.technicalOfficer : technicalOfficer // ignore: cast_nullable_to_non_nullable +as TechnicalOfficer?,infrastructureEnergy: freezed == infrastructureEnergy ? _self.infrastructureEnergy : infrastructureEnergy // ignore: cast_nullable_to_non_nullable +as InfrastructureEnergy?,generalConditionHall: freezed == generalConditionHall ? _self.generalConditionHall : generalConditionHall // ignore: cast_nullable_to_non_nullable +as GeneralConditionHall?, + )); +} + +/// Create a copy of ReportInformation +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$HrInfoCopyWith<$Res>? get hr { + if (_self.hr == null) { + return null; + } + + return $HrInfoCopyWith<$Res>(_self.hr!, (value) { + return _then(_self.copyWith(hr: value)); + }); +}/// Create a copy of ReportInformation +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$CasualtiesCopyWith<$Res>? get casualties { + if (_self.casualties == null) { + return null; + } + + return $CasualtiesCopyWith<$Res>(_self.casualties!, (value) { + return _then(_self.copyWith(casualties: value)); + }); +}/// Create a copy of ReportInformation +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$FacilitiesCopyWith<$Res>? get facilities { + if (_self.facilities == null) { + return null; + } + + return $FacilitiesCopyWith<$Res>(_self.facilities!, (value) { + return _then(_self.copyWith(facilities: value)); + }); +}/// Create a copy of ReportInformation +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$InputStatusCopyWith<$Res>? get inputStatus { + if (_self.inputStatus == null) { + return null; + } + + return $InputStatusCopyWith<$Res>(_self.inputStatus!, (value) { + return _then(_self.copyWith(inputStatus: value)); + }); +}/// Create a copy of ReportInformation +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$TechnicalOfficerCopyWith<$Res>? get technicalOfficer { + if (_self.technicalOfficer == null) { + return null; + } + + return $TechnicalOfficerCopyWith<$Res>(_self.technicalOfficer!, (value) { + return _then(_self.copyWith(technicalOfficer: value)); + }); +}/// Create a copy of ReportInformation +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$InfrastructureEnergyCopyWith<$Res>? get infrastructureEnergy { + if (_self.infrastructureEnergy == null) { + return null; + } + + return $InfrastructureEnergyCopyWith<$Res>(_self.infrastructureEnergy!, (value) { + return _then(_self.copyWith(infrastructureEnergy: value)); + }); +}/// Create a copy of ReportInformation +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$GeneralConditionHallCopyWith<$Res>? get generalConditionHall { + if (_self.generalConditionHall == null) { + return null; + } + + return $GeneralConditionHallCopyWith<$Res>(_self.generalConditionHall!, (value) { + return _then(_self.copyWith(generalConditionHall: value)); + }); +} +} + + +/// @nodoc +mixin _$HrInfo { + + bool? get trained; String? get contractStatus; num? get numberEmployed; num? get numberIndigenous; num? get numberNonIndigenous; +/// Create a copy of HrInfo +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$HrInfoCopyWith get copyWith => _$HrInfoCopyWithImpl(this as HrInfo, _$identity); + + /// Serializes this HrInfo to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is HrInfo&&(identical(other.trained, trained) || other.trained == trained)&&(identical(other.contractStatus, contractStatus) || other.contractStatus == contractStatus)&&(identical(other.numberEmployed, numberEmployed) || other.numberEmployed == numberEmployed)&&(identical(other.numberIndigenous, numberIndigenous) || other.numberIndigenous == numberIndigenous)&&(identical(other.numberNonIndigenous, numberNonIndigenous) || other.numberNonIndigenous == numberNonIndigenous)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,trained,contractStatus,numberEmployed,numberIndigenous,numberNonIndigenous); + +@override +String toString() { + return 'HrInfo(trained: $trained, contractStatus: $contractStatus, numberEmployed: $numberEmployed, numberIndigenous: $numberIndigenous, numberNonIndigenous: $numberNonIndigenous)'; +} + + +} + +/// @nodoc +abstract mixin class $HrInfoCopyWith<$Res> { + factory $HrInfoCopyWith(HrInfo value, $Res Function(HrInfo) _then) = _$HrInfoCopyWithImpl; +@useResult +$Res call({ + bool? trained, String? contractStatus, num? numberEmployed, num? numberIndigenous, num? numberNonIndigenous +}); + + + + +} +/// @nodoc +class _$HrInfoCopyWithImpl<$Res> + implements $HrInfoCopyWith<$Res> { + _$HrInfoCopyWithImpl(this._self, this._then); + + final HrInfo _self; + final $Res Function(HrInfo) _then; + +/// Create a copy of HrInfo +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? trained = freezed,Object? contractStatus = freezed,Object? numberEmployed = freezed,Object? numberIndigenous = freezed,Object? numberNonIndigenous = freezed,}) { + return _then(_self.copyWith( +trained: freezed == trained ? _self.trained : trained // ignore: cast_nullable_to_non_nullable +as bool?,contractStatus: freezed == contractStatus ? _self.contractStatus : contractStatus // ignore: cast_nullable_to_non_nullable +as String?,numberEmployed: freezed == numberEmployed ? _self.numberEmployed : numberEmployed // ignore: cast_nullable_to_non_nullable +as num?,numberIndigenous: freezed == numberIndigenous ? _self.numberIndigenous : numberIndigenous // ignore: cast_nullable_to_non_nullable +as num?,numberNonIndigenous: freezed == numberNonIndigenous ? _self.numberNonIndigenous : numberNonIndigenous // ignore: cast_nullable_to_non_nullable +as num?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [HrInfo]. +extension HrInfoPatterns on HrInfo { +/// 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( _HrInfo value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _HrInfo() 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( _HrInfo value) $default,){ +final _that = this; +switch (_that) { +case _HrInfo(): +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( _HrInfo value)? $default,){ +final _that = this; +switch (_that) { +case _HrInfo() 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? trained, String? contractStatus, num? numberEmployed, num? numberIndigenous, num? numberNonIndigenous)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _HrInfo() when $default != null: +return $default(_that.trained,_that.contractStatus,_that.numberEmployed,_that.numberIndigenous,_that.numberNonIndigenous);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? trained, String? contractStatus, num? numberEmployed, num? numberIndigenous, num? numberNonIndigenous) $default,) {final _that = this; +switch (_that) { +case _HrInfo(): +return $default(_that.trained,_that.contractStatus,_that.numberEmployed,_that.numberIndigenous,_that.numberNonIndigenous);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? trained, String? contractStatus, num? numberEmployed, num? numberIndigenous, num? numberNonIndigenous)? $default,) {final _that = this; +switch (_that) { +case _HrInfo() when $default != null: +return $default(_that.trained,_that.contractStatus,_that.numberEmployed,_that.numberIndigenous,_that.numberNonIndigenous);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _HrInfo implements HrInfo { + const _HrInfo({this.trained, this.contractStatus, this.numberEmployed, this.numberIndigenous, this.numberNonIndigenous}); + factory _HrInfo.fromJson(Map json) => _$HrInfoFromJson(json); + +@override final bool? trained; +@override final String? contractStatus; +@override final num? numberEmployed; +@override final num? numberIndigenous; +@override final num? numberNonIndigenous; + +/// Create a copy of HrInfo +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$HrInfoCopyWith<_HrInfo> get copyWith => __$HrInfoCopyWithImpl<_HrInfo>(this, _$identity); + +@override +Map toJson() { + return _$HrInfoToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _HrInfo&&(identical(other.trained, trained) || other.trained == trained)&&(identical(other.contractStatus, contractStatus) || other.contractStatus == contractStatus)&&(identical(other.numberEmployed, numberEmployed) || other.numberEmployed == numberEmployed)&&(identical(other.numberIndigenous, numberIndigenous) || other.numberIndigenous == numberIndigenous)&&(identical(other.numberNonIndigenous, numberNonIndigenous) || other.numberNonIndigenous == numberNonIndigenous)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,trained,contractStatus,numberEmployed,numberIndigenous,numberNonIndigenous); + +@override +String toString() { + return 'HrInfo(trained: $trained, contractStatus: $contractStatus, numberEmployed: $numberEmployed, numberIndigenous: $numberIndigenous, numberNonIndigenous: $numberNonIndigenous)'; +} + + +} + +/// @nodoc +abstract mixin class _$HrInfoCopyWith<$Res> implements $HrInfoCopyWith<$Res> { + factory _$HrInfoCopyWith(_HrInfo value, $Res Function(_HrInfo) _then) = __$HrInfoCopyWithImpl; +@override @useResult +$Res call({ + bool? trained, String? contractStatus, num? numberEmployed, num? numberIndigenous, num? numberNonIndigenous +}); + + + + +} +/// @nodoc +class __$HrInfoCopyWithImpl<$Res> + implements _$HrInfoCopyWith<$Res> { + __$HrInfoCopyWithImpl(this._self, this._then); + + final _HrInfo _self; + final $Res Function(_HrInfo) _then; + +/// Create a copy of HrInfo +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? trained = freezed,Object? contractStatus = freezed,Object? numberEmployed = freezed,Object? numberIndigenous = freezed,Object? numberNonIndigenous = freezed,}) { + return _then(_HrInfo( +trained: freezed == trained ? _self.trained : trained // ignore: cast_nullable_to_non_nullable +as bool?,contractStatus: freezed == contractStatus ? _self.contractStatus : contractStatus // ignore: cast_nullable_to_non_nullable +as String?,numberEmployed: freezed == numberEmployed ? _self.numberEmployed : numberEmployed // ignore: cast_nullable_to_non_nullable +as num?,numberIndigenous: freezed == numberIndigenous ? _self.numberIndigenous : numberIndigenous // ignore: cast_nullable_to_non_nullable +as num?,numberNonIndigenous: freezed == numberNonIndigenous ? _self.numberNonIndigenous : numberNonIndigenous // ignore: cast_nullable_to_non_nullable +as num?, + )); +} + + +} + + +/// @nodoc +mixin _$Casualties { + + List? get images; String? get typeDisease; num? get normalLosses; bool? get samplingDone; String? get typeSampling; num? get abnormalLosses; String? get sourceOfHatching; String? get causeAbnormalLosses; +/// Create a copy of Casualties +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$CasualtiesCopyWith get copyWith => _$CasualtiesCopyWithImpl(this as Casualties, _$identity); + + /// Serializes this Casualties to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is Casualties&&const DeepCollectionEquality().equals(other.images, images)&&(identical(other.typeDisease, typeDisease) || other.typeDisease == typeDisease)&&(identical(other.normalLosses, normalLosses) || other.normalLosses == normalLosses)&&(identical(other.samplingDone, samplingDone) || other.samplingDone == samplingDone)&&(identical(other.typeSampling, typeSampling) || other.typeSampling == typeSampling)&&(identical(other.abnormalLosses, abnormalLosses) || other.abnormalLosses == abnormalLosses)&&(identical(other.sourceOfHatching, sourceOfHatching) || other.sourceOfHatching == sourceOfHatching)&&(identical(other.causeAbnormalLosses, causeAbnormalLosses) || other.causeAbnormalLosses == causeAbnormalLosses)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,const DeepCollectionEquality().hash(images),typeDisease,normalLosses,samplingDone,typeSampling,abnormalLosses,sourceOfHatching,causeAbnormalLosses); + +@override +String toString() { + return 'Casualties(images: $images, typeDisease: $typeDisease, normalLosses: $normalLosses, samplingDone: $samplingDone, typeSampling: $typeSampling, abnormalLosses: $abnormalLosses, sourceOfHatching: $sourceOfHatching, causeAbnormalLosses: $causeAbnormalLosses)'; +} + + +} + +/// @nodoc +abstract mixin class $CasualtiesCopyWith<$Res> { + factory $CasualtiesCopyWith(Casualties value, $Res Function(Casualties) _then) = _$CasualtiesCopyWithImpl; +@useResult +$Res call({ + List? images, String? typeDisease, num? normalLosses, bool? samplingDone, String? typeSampling, num? abnormalLosses, String? sourceOfHatching, String? causeAbnormalLosses +}); + + + + +} +/// @nodoc +class _$CasualtiesCopyWithImpl<$Res> + implements $CasualtiesCopyWith<$Res> { + _$CasualtiesCopyWithImpl(this._self, this._then); + + final Casualties _self; + final $Res Function(Casualties) _then; + +/// Create a copy of Casualties +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? images = freezed,Object? typeDisease = freezed,Object? normalLosses = freezed,Object? samplingDone = freezed,Object? typeSampling = freezed,Object? abnormalLosses = freezed,Object? sourceOfHatching = freezed,Object? causeAbnormalLosses = freezed,}) { + return _then(_self.copyWith( +images: freezed == images ? _self.images : images // ignore: cast_nullable_to_non_nullable +as List?,typeDisease: freezed == typeDisease ? _self.typeDisease : typeDisease // ignore: cast_nullable_to_non_nullable +as String?,normalLosses: freezed == normalLosses ? _self.normalLosses : normalLosses // ignore: cast_nullable_to_non_nullable +as num?,samplingDone: freezed == samplingDone ? _self.samplingDone : samplingDone // ignore: cast_nullable_to_non_nullable +as bool?,typeSampling: freezed == typeSampling ? _self.typeSampling : typeSampling // ignore: cast_nullable_to_non_nullable +as String?,abnormalLosses: freezed == abnormalLosses ? _self.abnormalLosses : abnormalLosses // ignore: cast_nullable_to_non_nullable +as num?,sourceOfHatching: freezed == sourceOfHatching ? _self.sourceOfHatching : sourceOfHatching // ignore: cast_nullable_to_non_nullable +as String?,causeAbnormalLosses: freezed == causeAbnormalLosses ? _self.causeAbnormalLosses : causeAbnormalLosses // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [Casualties]. +extension CasualtiesPatterns on Casualties { +/// 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( _Casualties value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _Casualties() 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( _Casualties value) $default,){ +final _that = this; +switch (_that) { +case _Casualties(): +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( _Casualties value)? $default,){ +final _that = this; +switch (_that) { +case _Casualties() 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? images, String? typeDisease, num? normalLosses, bool? samplingDone, String? typeSampling, num? abnormalLosses, String? sourceOfHatching, String? causeAbnormalLosses)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _Casualties() when $default != null: +return $default(_that.images,_that.typeDisease,_that.normalLosses,_that.samplingDone,_that.typeSampling,_that.abnormalLosses,_that.sourceOfHatching,_that.causeAbnormalLosses);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? images, String? typeDisease, num? normalLosses, bool? samplingDone, String? typeSampling, num? abnormalLosses, String? sourceOfHatching, String? causeAbnormalLosses) $default,) {final _that = this; +switch (_that) { +case _Casualties(): +return $default(_that.images,_that.typeDisease,_that.normalLosses,_that.samplingDone,_that.typeSampling,_that.abnormalLosses,_that.sourceOfHatching,_that.causeAbnormalLosses);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? images, String? typeDisease, num? normalLosses, bool? samplingDone, String? typeSampling, num? abnormalLosses, String? sourceOfHatching, String? causeAbnormalLosses)? $default,) {final _that = this; +switch (_that) { +case _Casualties() when $default != null: +return $default(_that.images,_that.typeDisease,_that.normalLosses,_that.samplingDone,_that.typeSampling,_that.abnormalLosses,_that.sourceOfHatching,_that.causeAbnormalLosses);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _Casualties implements Casualties { + const _Casualties({final List? images, this.typeDisease, this.normalLosses, this.samplingDone, this.typeSampling, this.abnormalLosses, this.sourceOfHatching, this.causeAbnormalLosses}): _images = images; + factory _Casualties.fromJson(Map json) => _$CasualtiesFromJson(json); + + final List? _images; +@override List? get images { + final value = _images; + if (value == null) return null; + if (_images is EqualUnmodifiableListView) return _images; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + +@override final String? typeDisease; +@override final num? normalLosses; +@override final bool? samplingDone; +@override final String? typeSampling; +@override final num? abnormalLosses; +@override final String? sourceOfHatching; +@override final String? causeAbnormalLosses; + +/// Create a copy of Casualties +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$CasualtiesCopyWith<_Casualties> get copyWith => __$CasualtiesCopyWithImpl<_Casualties>(this, _$identity); + +@override +Map toJson() { + return _$CasualtiesToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Casualties&&const DeepCollectionEquality().equals(other._images, _images)&&(identical(other.typeDisease, typeDisease) || other.typeDisease == typeDisease)&&(identical(other.normalLosses, normalLosses) || other.normalLosses == normalLosses)&&(identical(other.samplingDone, samplingDone) || other.samplingDone == samplingDone)&&(identical(other.typeSampling, typeSampling) || other.typeSampling == typeSampling)&&(identical(other.abnormalLosses, abnormalLosses) || other.abnormalLosses == abnormalLosses)&&(identical(other.sourceOfHatching, sourceOfHatching) || other.sourceOfHatching == sourceOfHatching)&&(identical(other.causeAbnormalLosses, causeAbnormalLosses) || other.causeAbnormalLosses == causeAbnormalLosses)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,const DeepCollectionEquality().hash(_images),typeDisease,normalLosses,samplingDone,typeSampling,abnormalLosses,sourceOfHatching,causeAbnormalLosses); + +@override +String toString() { + return 'Casualties(images: $images, typeDisease: $typeDisease, normalLosses: $normalLosses, samplingDone: $samplingDone, typeSampling: $typeSampling, abnormalLosses: $abnormalLosses, sourceOfHatching: $sourceOfHatching, causeAbnormalLosses: $causeAbnormalLosses)'; +} + + +} + +/// @nodoc +abstract mixin class _$CasualtiesCopyWith<$Res> implements $CasualtiesCopyWith<$Res> { + factory _$CasualtiesCopyWith(_Casualties value, $Res Function(_Casualties) _then) = __$CasualtiesCopyWithImpl; +@override @useResult +$Res call({ + List? images, String? typeDisease, num? normalLosses, bool? samplingDone, String? typeSampling, num? abnormalLosses, String? sourceOfHatching, String? causeAbnormalLosses +}); + + + + +} +/// @nodoc +class __$CasualtiesCopyWithImpl<$Res> + implements _$CasualtiesCopyWith<$Res> { + __$CasualtiesCopyWithImpl(this._self, this._then); + + final _Casualties _self; + final $Res Function(_Casualties) _then; + +/// Create a copy of Casualties +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? images = freezed,Object? typeDisease = freezed,Object? normalLosses = freezed,Object? samplingDone = freezed,Object? typeSampling = freezed,Object? abnormalLosses = freezed,Object? sourceOfHatching = freezed,Object? causeAbnormalLosses = freezed,}) { + return _then(_Casualties( +images: freezed == images ? _self._images : images // ignore: cast_nullable_to_non_nullable +as List?,typeDisease: freezed == typeDisease ? _self.typeDisease : typeDisease // ignore: cast_nullable_to_non_nullable +as String?,normalLosses: freezed == normalLosses ? _self.normalLosses : normalLosses // ignore: cast_nullable_to_non_nullable +as num?,samplingDone: freezed == samplingDone ? _self.samplingDone : samplingDone // ignore: cast_nullable_to_non_nullable +as bool?,typeSampling: freezed == typeSampling ? _self.typeSampling : typeSampling // ignore: cast_nullable_to_non_nullable +as String?,abnormalLosses: freezed == abnormalLosses ? _self.abnormalLosses : abnormalLosses // ignore: cast_nullable_to_non_nullable +as num?,sourceOfHatching: freezed == sourceOfHatching ? _self.sourceOfHatching : sourceOfHatching // ignore: cast_nullable_to_non_nullable +as String?,causeAbnormalLosses: freezed == causeAbnormalLosses ? _self.causeAbnormalLosses : causeAbnormalLosses // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$Facilities { + + String? get date; num? get amount; bool? get hasFacilities; String? get repaymentStatus; String? get typeOfFacility; String? get requestFacilities; +/// Create a copy of Facilities +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$FacilitiesCopyWith get copyWith => _$FacilitiesCopyWithImpl(this as Facilities, _$identity); + + /// Serializes this Facilities to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is Facilities&&(identical(other.date, date) || other.date == date)&&(identical(other.amount, amount) || other.amount == amount)&&(identical(other.hasFacilities, hasFacilities) || other.hasFacilities == hasFacilities)&&(identical(other.repaymentStatus, repaymentStatus) || other.repaymentStatus == repaymentStatus)&&(identical(other.typeOfFacility, typeOfFacility) || other.typeOfFacility == typeOfFacility)&&(identical(other.requestFacilities, requestFacilities) || other.requestFacilities == requestFacilities)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,date,amount,hasFacilities,repaymentStatus,typeOfFacility,requestFacilities); + +@override +String toString() { + return 'Facilities(date: $date, amount: $amount, hasFacilities: $hasFacilities, repaymentStatus: $repaymentStatus, typeOfFacility: $typeOfFacility, requestFacilities: $requestFacilities)'; +} + + +} + +/// @nodoc +abstract mixin class $FacilitiesCopyWith<$Res> { + factory $FacilitiesCopyWith(Facilities value, $Res Function(Facilities) _then) = _$FacilitiesCopyWithImpl; +@useResult +$Res call({ + String? date, num? amount, bool? hasFacilities, String? repaymentStatus, String? typeOfFacility, String? requestFacilities +}); + + + + +} +/// @nodoc +class _$FacilitiesCopyWithImpl<$Res> + implements $FacilitiesCopyWith<$Res> { + _$FacilitiesCopyWithImpl(this._self, this._then); + + final Facilities _self; + final $Res Function(Facilities) _then; + +/// Create a copy of Facilities +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? date = freezed,Object? amount = freezed,Object? hasFacilities = freezed,Object? repaymentStatus = freezed,Object? typeOfFacility = freezed,Object? requestFacilities = freezed,}) { + return _then(_self.copyWith( +date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?,amount: freezed == amount ? _self.amount : amount // ignore: cast_nullable_to_non_nullable +as num?,hasFacilities: freezed == hasFacilities ? _self.hasFacilities : hasFacilities // ignore: cast_nullable_to_non_nullable +as bool?,repaymentStatus: freezed == repaymentStatus ? _self.repaymentStatus : repaymentStatus // ignore: cast_nullable_to_non_nullable +as String?,typeOfFacility: freezed == typeOfFacility ? _self.typeOfFacility : typeOfFacility // ignore: cast_nullable_to_non_nullable +as String?,requestFacilities: freezed == requestFacilities ? _self.requestFacilities : requestFacilities // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [Facilities]. +extension FacilitiesPatterns on Facilities { +/// 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( _Facilities value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _Facilities() 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( _Facilities value) $default,){ +final _that = this; +switch (_that) { +case _Facilities(): +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( _Facilities value)? $default,){ +final _that = this; +switch (_that) { +case _Facilities() 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, num? amount, bool? hasFacilities, String? repaymentStatus, String? typeOfFacility, String? requestFacilities)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _Facilities() when $default != null: +return $default(_that.date,_that.amount,_that.hasFacilities,_that.repaymentStatus,_that.typeOfFacility,_that.requestFacilities);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, num? amount, bool? hasFacilities, String? repaymentStatus, String? typeOfFacility, String? requestFacilities) $default,) {final _that = this; +switch (_that) { +case _Facilities(): +return $default(_that.date,_that.amount,_that.hasFacilities,_that.repaymentStatus,_that.typeOfFacility,_that.requestFacilities);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, num? amount, bool? hasFacilities, String? repaymentStatus, String? typeOfFacility, String? requestFacilities)? $default,) {final _that = this; +switch (_that) { +case _Facilities() when $default != null: +return $default(_that.date,_that.amount,_that.hasFacilities,_that.repaymentStatus,_that.typeOfFacility,_that.requestFacilities);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _Facilities implements Facilities { + const _Facilities({this.date, this.amount, this.hasFacilities, this.repaymentStatus, this.typeOfFacility, this.requestFacilities}); + factory _Facilities.fromJson(Map json) => _$FacilitiesFromJson(json); + +@override final String? date; +@override final num? amount; +@override final bool? hasFacilities; +@override final String? repaymentStatus; +@override final String? typeOfFacility; +@override final String? requestFacilities; + +/// Create a copy of Facilities +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$FacilitiesCopyWith<_Facilities> get copyWith => __$FacilitiesCopyWithImpl<_Facilities>(this, _$identity); + +@override +Map toJson() { + return _$FacilitiesToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Facilities&&(identical(other.date, date) || other.date == date)&&(identical(other.amount, amount) || other.amount == amount)&&(identical(other.hasFacilities, hasFacilities) || other.hasFacilities == hasFacilities)&&(identical(other.repaymentStatus, repaymentStatus) || other.repaymentStatus == repaymentStatus)&&(identical(other.typeOfFacility, typeOfFacility) || other.typeOfFacility == typeOfFacility)&&(identical(other.requestFacilities, requestFacilities) || other.requestFacilities == requestFacilities)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,date,amount,hasFacilities,repaymentStatus,typeOfFacility,requestFacilities); + +@override +String toString() { + return 'Facilities(date: $date, amount: $amount, hasFacilities: $hasFacilities, repaymentStatus: $repaymentStatus, typeOfFacility: $typeOfFacility, requestFacilities: $requestFacilities)'; +} + + +} + +/// @nodoc +abstract mixin class _$FacilitiesCopyWith<$Res> implements $FacilitiesCopyWith<$Res> { + factory _$FacilitiesCopyWith(_Facilities value, $Res Function(_Facilities) _then) = __$FacilitiesCopyWithImpl; +@override @useResult +$Res call({ + String? date, num? amount, bool? hasFacilities, String? repaymentStatus, String? typeOfFacility, String? requestFacilities +}); + + + + +} +/// @nodoc +class __$FacilitiesCopyWithImpl<$Res> + implements _$FacilitiesCopyWith<$Res> { + __$FacilitiesCopyWithImpl(this._self, this._then); + + final _Facilities _self; + final $Res Function(_Facilities) _then; + +/// Create a copy of Facilities +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? date = freezed,Object? amount = freezed,Object? hasFacilities = freezed,Object? repaymentStatus = freezed,Object? typeOfFacility = freezed,Object? requestFacilities = freezed,}) { + return _then(_Facilities( +date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?,amount: freezed == amount ? _self.amount : amount // ignore: cast_nullable_to_non_nullable +as num?,hasFacilities: freezed == hasFacilities ? _self.hasFacilities : hasFacilities // ignore: cast_nullable_to_non_nullable +as bool?,repaymentStatus: freezed == repaymentStatus ? _self.repaymentStatus : repaymentStatus // ignore: cast_nullable_to_non_nullable +as String?,typeOfFacility: freezed == typeOfFacility ? _self.typeOfFacility : typeOfFacility // ignore: cast_nullable_to_non_nullable +as String?,requestFacilities: freezed == requestFacilities ? _self.requestFacilities : requestFacilities // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$InputStatus { + + List? get images; String? get gradeGrain; String? get companyName; String? get inputStatus; String? get trackingCode; String? get typeOfGrain; String? get inventoryUntilVisit; String? get inventoryInWarehouse; +/// Create a copy of InputStatus +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$InputStatusCopyWith get copyWith => _$InputStatusCopyWithImpl(this as InputStatus, _$identity); + + /// Serializes this InputStatus to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is InputStatus&&const DeepCollectionEquality().equals(other.images, images)&&(identical(other.gradeGrain, gradeGrain) || other.gradeGrain == gradeGrain)&&(identical(other.companyName, companyName) || other.companyName == companyName)&&(identical(other.inputStatus, inputStatus) || other.inputStatus == inputStatus)&&(identical(other.trackingCode, trackingCode) || other.trackingCode == trackingCode)&&(identical(other.typeOfGrain, typeOfGrain) || other.typeOfGrain == typeOfGrain)&&(identical(other.inventoryUntilVisit, inventoryUntilVisit) || other.inventoryUntilVisit == inventoryUntilVisit)&&(identical(other.inventoryInWarehouse, inventoryInWarehouse) || other.inventoryInWarehouse == inventoryInWarehouse)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,const DeepCollectionEquality().hash(images),gradeGrain,companyName,inputStatus,trackingCode,typeOfGrain,inventoryUntilVisit,inventoryInWarehouse); + +@override +String toString() { + return 'InputStatus(images: $images, gradeGrain: $gradeGrain, companyName: $companyName, inputStatus: $inputStatus, trackingCode: $trackingCode, typeOfGrain: $typeOfGrain, inventoryUntilVisit: $inventoryUntilVisit, inventoryInWarehouse: $inventoryInWarehouse)'; +} + + +} + +/// @nodoc +abstract mixin class $InputStatusCopyWith<$Res> { + factory $InputStatusCopyWith(InputStatus value, $Res Function(InputStatus) _then) = _$InputStatusCopyWithImpl; +@useResult +$Res call({ + List? images, String? gradeGrain, String? companyName, String? inputStatus, String? trackingCode, String? typeOfGrain, String? inventoryUntilVisit, String? inventoryInWarehouse +}); + + + + +} +/// @nodoc +class _$InputStatusCopyWithImpl<$Res> + implements $InputStatusCopyWith<$Res> { + _$InputStatusCopyWithImpl(this._self, this._then); + + final InputStatus _self; + final $Res Function(InputStatus) _then; + +/// Create a copy of InputStatus +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? images = freezed,Object? gradeGrain = freezed,Object? companyName = freezed,Object? inputStatus = freezed,Object? trackingCode = freezed,Object? typeOfGrain = freezed,Object? inventoryUntilVisit = freezed,Object? inventoryInWarehouse = freezed,}) { + return _then(_self.copyWith( +images: freezed == images ? _self.images : images // ignore: cast_nullable_to_non_nullable +as List?,gradeGrain: freezed == gradeGrain ? _self.gradeGrain : gradeGrain // ignore: cast_nullable_to_non_nullable +as String?,companyName: freezed == companyName ? _self.companyName : companyName // ignore: cast_nullable_to_non_nullable +as String?,inputStatus: freezed == inputStatus ? _self.inputStatus : inputStatus // ignore: cast_nullable_to_non_nullable +as String?,trackingCode: freezed == trackingCode ? _self.trackingCode : trackingCode // ignore: cast_nullable_to_non_nullable +as String?,typeOfGrain: freezed == typeOfGrain ? _self.typeOfGrain : typeOfGrain // ignore: cast_nullable_to_non_nullable +as String?,inventoryUntilVisit: freezed == inventoryUntilVisit ? _self.inventoryUntilVisit : inventoryUntilVisit // ignore: cast_nullable_to_non_nullable +as String?,inventoryInWarehouse: freezed == inventoryInWarehouse ? _self.inventoryInWarehouse : inventoryInWarehouse // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [InputStatus]. +extension InputStatusPatterns on InputStatus { +/// 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( _InputStatus value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _InputStatus() 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( _InputStatus value) $default,){ +final _that = this; +switch (_that) { +case _InputStatus(): +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( _InputStatus value)? $default,){ +final _that = this; +switch (_that) { +case _InputStatus() 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? images, String? gradeGrain, String? companyName, String? inputStatus, String? trackingCode, String? typeOfGrain, String? inventoryUntilVisit, String? inventoryInWarehouse)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _InputStatus() when $default != null: +return $default(_that.images,_that.gradeGrain,_that.companyName,_that.inputStatus,_that.trackingCode,_that.typeOfGrain,_that.inventoryUntilVisit,_that.inventoryInWarehouse);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? images, String? gradeGrain, String? companyName, String? inputStatus, String? trackingCode, String? typeOfGrain, String? inventoryUntilVisit, String? inventoryInWarehouse) $default,) {final _that = this; +switch (_that) { +case _InputStatus(): +return $default(_that.images,_that.gradeGrain,_that.companyName,_that.inputStatus,_that.trackingCode,_that.typeOfGrain,_that.inventoryUntilVisit,_that.inventoryInWarehouse);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? images, String? gradeGrain, String? companyName, String? inputStatus, String? trackingCode, String? typeOfGrain, String? inventoryUntilVisit, String? inventoryInWarehouse)? $default,) {final _that = this; +switch (_that) { +case _InputStatus() when $default != null: +return $default(_that.images,_that.gradeGrain,_that.companyName,_that.inputStatus,_that.trackingCode,_that.typeOfGrain,_that.inventoryUntilVisit,_that.inventoryInWarehouse);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _InputStatus implements InputStatus { + const _InputStatus({final List? images, this.gradeGrain, this.companyName, this.inputStatus, this.trackingCode, this.typeOfGrain, this.inventoryUntilVisit, this.inventoryInWarehouse}): _images = images; + factory _InputStatus.fromJson(Map json) => _$InputStatusFromJson(json); + + final List? _images; +@override List? get images { + final value = _images; + if (value == null) return null; + if (_images is EqualUnmodifiableListView) return _images; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + +@override final String? gradeGrain; +@override final String? companyName; +@override final String? inputStatus; +@override final String? trackingCode; +@override final String? typeOfGrain; +@override final String? inventoryUntilVisit; +@override final String? inventoryInWarehouse; + +/// Create a copy of InputStatus +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$InputStatusCopyWith<_InputStatus> get copyWith => __$InputStatusCopyWithImpl<_InputStatus>(this, _$identity); + +@override +Map toJson() { + return _$InputStatusToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _InputStatus&&const DeepCollectionEquality().equals(other._images, _images)&&(identical(other.gradeGrain, gradeGrain) || other.gradeGrain == gradeGrain)&&(identical(other.companyName, companyName) || other.companyName == companyName)&&(identical(other.inputStatus, inputStatus) || other.inputStatus == inputStatus)&&(identical(other.trackingCode, trackingCode) || other.trackingCode == trackingCode)&&(identical(other.typeOfGrain, typeOfGrain) || other.typeOfGrain == typeOfGrain)&&(identical(other.inventoryUntilVisit, inventoryUntilVisit) || other.inventoryUntilVisit == inventoryUntilVisit)&&(identical(other.inventoryInWarehouse, inventoryInWarehouse) || other.inventoryInWarehouse == inventoryInWarehouse)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,const DeepCollectionEquality().hash(_images),gradeGrain,companyName,inputStatus,trackingCode,typeOfGrain,inventoryUntilVisit,inventoryInWarehouse); + +@override +String toString() { + return 'InputStatus(images: $images, gradeGrain: $gradeGrain, companyName: $companyName, inputStatus: $inputStatus, trackingCode: $trackingCode, typeOfGrain: $typeOfGrain, inventoryUntilVisit: $inventoryUntilVisit, inventoryInWarehouse: $inventoryInWarehouse)'; +} + + +} + +/// @nodoc +abstract mixin class _$InputStatusCopyWith<$Res> implements $InputStatusCopyWith<$Res> { + factory _$InputStatusCopyWith(_InputStatus value, $Res Function(_InputStatus) _then) = __$InputStatusCopyWithImpl; +@override @useResult +$Res call({ + List? images, String? gradeGrain, String? companyName, String? inputStatus, String? trackingCode, String? typeOfGrain, String? inventoryUntilVisit, String? inventoryInWarehouse +}); + + + + +} +/// @nodoc +class __$InputStatusCopyWithImpl<$Res> + implements _$InputStatusCopyWith<$Res> { + __$InputStatusCopyWithImpl(this._self, this._then); + + final _InputStatus _self; + final $Res Function(_InputStatus) _then; + +/// Create a copy of InputStatus +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? images = freezed,Object? gradeGrain = freezed,Object? companyName = freezed,Object? inputStatus = freezed,Object? trackingCode = freezed,Object? typeOfGrain = freezed,Object? inventoryUntilVisit = freezed,Object? inventoryInWarehouse = freezed,}) { + return _then(_InputStatus( +images: freezed == images ? _self._images : images // ignore: cast_nullable_to_non_nullable +as List?,gradeGrain: freezed == gradeGrain ? _self.gradeGrain : gradeGrain // ignore: cast_nullable_to_non_nullable +as String?,companyName: freezed == companyName ? _self.companyName : companyName // ignore: cast_nullable_to_non_nullable +as String?,inputStatus: freezed == inputStatus ? _self.inputStatus : inputStatus // ignore: cast_nullable_to_non_nullable +as String?,trackingCode: freezed == trackingCode ? _self.trackingCode : trackingCode // ignore: cast_nullable_to_non_nullable +as String?,typeOfGrain: freezed == typeOfGrain ? _self.typeOfGrain : typeOfGrain // ignore: cast_nullable_to_non_nullable +as String?,inventoryUntilVisit: freezed == inventoryUntilVisit ? _self.inventoryUntilVisit : inventoryUntilVisit // ignore: cast_nullable_to_non_nullable +as String?,inventoryInWarehouse: freezed == inventoryInWarehouse ? _self.inventoryInWarehouse : inventoryInWarehouse // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$TechnicalOfficer { + + String? get technicalHealthOfficer; String? get technicalEngineeringOfficer; +/// Create a copy of TechnicalOfficer +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$TechnicalOfficerCopyWith get copyWith => _$TechnicalOfficerCopyWithImpl(this as TechnicalOfficer, _$identity); + + /// Serializes this TechnicalOfficer to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is TechnicalOfficer&&(identical(other.technicalHealthOfficer, technicalHealthOfficer) || other.technicalHealthOfficer == technicalHealthOfficer)&&(identical(other.technicalEngineeringOfficer, technicalEngineeringOfficer) || other.technicalEngineeringOfficer == technicalEngineeringOfficer)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,technicalHealthOfficer,technicalEngineeringOfficer); + +@override +String toString() { + return 'TechnicalOfficer(technicalHealthOfficer: $technicalHealthOfficer, technicalEngineeringOfficer: $technicalEngineeringOfficer)'; +} + + +} + +/// @nodoc +abstract mixin class $TechnicalOfficerCopyWith<$Res> { + factory $TechnicalOfficerCopyWith(TechnicalOfficer value, $Res Function(TechnicalOfficer) _then) = _$TechnicalOfficerCopyWithImpl; +@useResult +$Res call({ + String? technicalHealthOfficer, String? technicalEngineeringOfficer +}); + + + + +} +/// @nodoc +class _$TechnicalOfficerCopyWithImpl<$Res> + implements $TechnicalOfficerCopyWith<$Res> { + _$TechnicalOfficerCopyWithImpl(this._self, this._then); + + final TechnicalOfficer _self; + final $Res Function(TechnicalOfficer) _then; + +/// Create a copy of TechnicalOfficer +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? technicalHealthOfficer = freezed,Object? technicalEngineeringOfficer = freezed,}) { + return _then(_self.copyWith( +technicalHealthOfficer: freezed == technicalHealthOfficer ? _self.technicalHealthOfficer : technicalHealthOfficer // ignore: cast_nullable_to_non_nullable +as String?,technicalEngineeringOfficer: freezed == technicalEngineeringOfficer ? _self.technicalEngineeringOfficer : technicalEngineeringOfficer // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [TechnicalOfficer]. +extension TechnicalOfficerPatterns on TechnicalOfficer { +/// 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( _TechnicalOfficer value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _TechnicalOfficer() 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( _TechnicalOfficer value) $default,){ +final _that = this; +switch (_that) { +case _TechnicalOfficer(): +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( _TechnicalOfficer value)? $default,){ +final _that = this; +switch (_that) { +case _TechnicalOfficer() 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? technicalHealthOfficer, String? technicalEngineeringOfficer)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _TechnicalOfficer() when $default != null: +return $default(_that.technicalHealthOfficer,_that.technicalEngineeringOfficer);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? technicalHealthOfficer, String? technicalEngineeringOfficer) $default,) {final _that = this; +switch (_that) { +case _TechnicalOfficer(): +return $default(_that.technicalHealthOfficer,_that.technicalEngineeringOfficer);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? technicalHealthOfficer, String? technicalEngineeringOfficer)? $default,) {final _that = this; +switch (_that) { +case _TechnicalOfficer() when $default != null: +return $default(_that.technicalHealthOfficer,_that.technicalEngineeringOfficer);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _TechnicalOfficer implements TechnicalOfficer { + const _TechnicalOfficer({this.technicalHealthOfficer, this.technicalEngineeringOfficer}); + factory _TechnicalOfficer.fromJson(Map json) => _$TechnicalOfficerFromJson(json); + +@override final String? technicalHealthOfficer; +@override final String? technicalEngineeringOfficer; + +/// Create a copy of TechnicalOfficer +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$TechnicalOfficerCopyWith<_TechnicalOfficer> get copyWith => __$TechnicalOfficerCopyWithImpl<_TechnicalOfficer>(this, _$identity); + +@override +Map toJson() { + return _$TechnicalOfficerToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _TechnicalOfficer&&(identical(other.technicalHealthOfficer, technicalHealthOfficer) || other.technicalHealthOfficer == technicalHealthOfficer)&&(identical(other.technicalEngineeringOfficer, technicalEngineeringOfficer) || other.technicalEngineeringOfficer == technicalEngineeringOfficer)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,technicalHealthOfficer,technicalEngineeringOfficer); + +@override +String toString() { + return 'TechnicalOfficer(technicalHealthOfficer: $technicalHealthOfficer, technicalEngineeringOfficer: $technicalEngineeringOfficer)'; +} + + +} + +/// @nodoc +abstract mixin class _$TechnicalOfficerCopyWith<$Res> implements $TechnicalOfficerCopyWith<$Res> { + factory _$TechnicalOfficerCopyWith(_TechnicalOfficer value, $Res Function(_TechnicalOfficer) _then) = __$TechnicalOfficerCopyWithImpl; +@override @useResult +$Res call({ + String? technicalHealthOfficer, String? technicalEngineeringOfficer +}); + + + + +} +/// @nodoc +class __$TechnicalOfficerCopyWithImpl<$Res> + implements _$TechnicalOfficerCopyWith<$Res> { + __$TechnicalOfficerCopyWithImpl(this._self, this._then); + + final _TechnicalOfficer _self; + final $Res Function(_TechnicalOfficer) _then; + +/// Create a copy of TechnicalOfficer +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? technicalHealthOfficer = freezed,Object? technicalEngineeringOfficer = freezed,}) { + return _then(_TechnicalOfficer( +technicalHealthOfficer: freezed == technicalHealthOfficer ? _self.technicalHealthOfficer : technicalHealthOfficer // ignore: cast_nullable_to_non_nullable +as String?,technicalEngineeringOfficer: freezed == technicalEngineeringOfficer ? _self.technicalEngineeringOfficer : technicalEngineeringOfficer // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$InfrastructureEnergy { + + String? get fuelType; String? get generatorType; String? get powerCutHour; String? get generatorCount; String? get generatorModel; String? get additionalNotes; String? get generatorCapacity; String? get powerCutDuration; String? get generatorPerformance; bool? get hasPowerCutHistory; String? get emergencyFuelInventory; +/// Create a copy of InfrastructureEnergy +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$InfrastructureEnergyCopyWith get copyWith => _$InfrastructureEnergyCopyWithImpl(this as InfrastructureEnergy, _$identity); + + /// Serializes this InfrastructureEnergy to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is InfrastructureEnergy&&(identical(other.fuelType, fuelType) || other.fuelType == fuelType)&&(identical(other.generatorType, generatorType) || other.generatorType == generatorType)&&(identical(other.powerCutHour, powerCutHour) || other.powerCutHour == powerCutHour)&&(identical(other.generatorCount, generatorCount) || other.generatorCount == generatorCount)&&(identical(other.generatorModel, generatorModel) || other.generatorModel == generatorModel)&&(identical(other.additionalNotes, additionalNotes) || other.additionalNotes == additionalNotes)&&(identical(other.generatorCapacity, generatorCapacity) || other.generatorCapacity == generatorCapacity)&&(identical(other.powerCutDuration, powerCutDuration) || other.powerCutDuration == powerCutDuration)&&(identical(other.generatorPerformance, generatorPerformance) || other.generatorPerformance == generatorPerformance)&&(identical(other.hasPowerCutHistory, hasPowerCutHistory) || other.hasPowerCutHistory == hasPowerCutHistory)&&(identical(other.emergencyFuelInventory, emergencyFuelInventory) || other.emergencyFuelInventory == emergencyFuelInventory)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,fuelType,generatorType,powerCutHour,generatorCount,generatorModel,additionalNotes,generatorCapacity,powerCutDuration,generatorPerformance,hasPowerCutHistory,emergencyFuelInventory); + +@override +String toString() { + return 'InfrastructureEnergy(fuelType: $fuelType, generatorType: $generatorType, powerCutHour: $powerCutHour, generatorCount: $generatorCount, generatorModel: $generatorModel, additionalNotes: $additionalNotes, generatorCapacity: $generatorCapacity, powerCutDuration: $powerCutDuration, generatorPerformance: $generatorPerformance, hasPowerCutHistory: $hasPowerCutHistory, emergencyFuelInventory: $emergencyFuelInventory)'; +} + + +} + +/// @nodoc +abstract mixin class $InfrastructureEnergyCopyWith<$Res> { + factory $InfrastructureEnergyCopyWith(InfrastructureEnergy value, $Res Function(InfrastructureEnergy) _then) = _$InfrastructureEnergyCopyWithImpl; +@useResult +$Res call({ + String? fuelType, String? generatorType, String? powerCutHour, String? generatorCount, String? generatorModel, String? additionalNotes, String? generatorCapacity, String? powerCutDuration, String? generatorPerformance, bool? hasPowerCutHistory, String? emergencyFuelInventory +}); + + + + +} +/// @nodoc +class _$InfrastructureEnergyCopyWithImpl<$Res> + implements $InfrastructureEnergyCopyWith<$Res> { + _$InfrastructureEnergyCopyWithImpl(this._self, this._then); + + final InfrastructureEnergy _self; + final $Res Function(InfrastructureEnergy) _then; + +/// Create a copy of InfrastructureEnergy +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? fuelType = freezed,Object? generatorType = freezed,Object? powerCutHour = freezed,Object? generatorCount = freezed,Object? generatorModel = freezed,Object? additionalNotes = freezed,Object? generatorCapacity = freezed,Object? powerCutDuration = freezed,Object? generatorPerformance = freezed,Object? hasPowerCutHistory = freezed,Object? emergencyFuelInventory = freezed,}) { + return _then(_self.copyWith( +fuelType: freezed == fuelType ? _self.fuelType : fuelType // ignore: cast_nullable_to_non_nullable +as String?,generatorType: freezed == generatorType ? _self.generatorType : generatorType // ignore: cast_nullable_to_non_nullable +as String?,powerCutHour: freezed == powerCutHour ? _self.powerCutHour : powerCutHour // ignore: cast_nullable_to_non_nullable +as String?,generatorCount: freezed == generatorCount ? _self.generatorCount : generatorCount // ignore: cast_nullable_to_non_nullable +as String?,generatorModel: freezed == generatorModel ? _self.generatorModel : generatorModel // ignore: cast_nullable_to_non_nullable +as String?,additionalNotes: freezed == additionalNotes ? _self.additionalNotes : additionalNotes // ignore: cast_nullable_to_non_nullable +as String?,generatorCapacity: freezed == generatorCapacity ? _self.generatorCapacity : generatorCapacity // ignore: cast_nullable_to_non_nullable +as String?,powerCutDuration: freezed == powerCutDuration ? _self.powerCutDuration : powerCutDuration // ignore: cast_nullable_to_non_nullable +as String?,generatorPerformance: freezed == generatorPerformance ? _self.generatorPerformance : generatorPerformance // ignore: cast_nullable_to_non_nullable +as String?,hasPowerCutHistory: freezed == hasPowerCutHistory ? _self.hasPowerCutHistory : hasPowerCutHistory // ignore: cast_nullable_to_non_nullable +as bool?,emergencyFuelInventory: freezed == emergencyFuelInventory ? _self.emergencyFuelInventory : emergencyFuelInventory // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [InfrastructureEnergy]. +extension InfrastructureEnergyPatterns on InfrastructureEnergy { +/// 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( _InfrastructureEnergy value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _InfrastructureEnergy() 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( _InfrastructureEnergy value) $default,){ +final _that = this; +switch (_that) { +case _InfrastructureEnergy(): +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( _InfrastructureEnergy value)? $default,){ +final _that = this; +switch (_that) { +case _InfrastructureEnergy() 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? fuelType, String? generatorType, String? powerCutHour, String? generatorCount, String? generatorModel, String? additionalNotes, String? generatorCapacity, String? powerCutDuration, String? generatorPerformance, bool? hasPowerCutHistory, String? emergencyFuelInventory)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _InfrastructureEnergy() when $default != null: +return $default(_that.fuelType,_that.generatorType,_that.powerCutHour,_that.generatorCount,_that.generatorModel,_that.additionalNotes,_that.generatorCapacity,_that.powerCutDuration,_that.generatorPerformance,_that.hasPowerCutHistory,_that.emergencyFuelInventory);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? fuelType, String? generatorType, String? powerCutHour, String? generatorCount, String? generatorModel, String? additionalNotes, String? generatorCapacity, String? powerCutDuration, String? generatorPerformance, bool? hasPowerCutHistory, String? emergencyFuelInventory) $default,) {final _that = this; +switch (_that) { +case _InfrastructureEnergy(): +return $default(_that.fuelType,_that.generatorType,_that.powerCutHour,_that.generatorCount,_that.generatorModel,_that.additionalNotes,_that.generatorCapacity,_that.powerCutDuration,_that.generatorPerformance,_that.hasPowerCutHistory,_that.emergencyFuelInventory);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? fuelType, String? generatorType, String? powerCutHour, String? generatorCount, String? generatorModel, String? additionalNotes, String? generatorCapacity, String? powerCutDuration, String? generatorPerformance, bool? hasPowerCutHistory, String? emergencyFuelInventory)? $default,) {final _that = this; +switch (_that) { +case _InfrastructureEnergy() when $default != null: +return $default(_that.fuelType,_that.generatorType,_that.powerCutHour,_that.generatorCount,_that.generatorModel,_that.additionalNotes,_that.generatorCapacity,_that.powerCutDuration,_that.generatorPerformance,_that.hasPowerCutHistory,_that.emergencyFuelInventory);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _InfrastructureEnergy implements InfrastructureEnergy { + const _InfrastructureEnergy({this.fuelType, this.generatorType, this.powerCutHour, this.generatorCount, this.generatorModel, this.additionalNotes, this.generatorCapacity, this.powerCutDuration, this.generatorPerformance, this.hasPowerCutHistory, this.emergencyFuelInventory}); + factory _InfrastructureEnergy.fromJson(Map json) => _$InfrastructureEnergyFromJson(json); + +@override final String? fuelType; +@override final String? generatorType; +@override final String? powerCutHour; +@override final String? generatorCount; +@override final String? generatorModel; +@override final String? additionalNotes; +@override final String? generatorCapacity; +@override final String? powerCutDuration; +@override final String? generatorPerformance; +@override final bool? hasPowerCutHistory; +@override final String? emergencyFuelInventory; + +/// Create a copy of InfrastructureEnergy +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$InfrastructureEnergyCopyWith<_InfrastructureEnergy> get copyWith => __$InfrastructureEnergyCopyWithImpl<_InfrastructureEnergy>(this, _$identity); + +@override +Map toJson() { + return _$InfrastructureEnergyToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _InfrastructureEnergy&&(identical(other.fuelType, fuelType) || other.fuelType == fuelType)&&(identical(other.generatorType, generatorType) || other.generatorType == generatorType)&&(identical(other.powerCutHour, powerCutHour) || other.powerCutHour == powerCutHour)&&(identical(other.generatorCount, generatorCount) || other.generatorCount == generatorCount)&&(identical(other.generatorModel, generatorModel) || other.generatorModel == generatorModel)&&(identical(other.additionalNotes, additionalNotes) || other.additionalNotes == additionalNotes)&&(identical(other.generatorCapacity, generatorCapacity) || other.generatorCapacity == generatorCapacity)&&(identical(other.powerCutDuration, powerCutDuration) || other.powerCutDuration == powerCutDuration)&&(identical(other.generatorPerformance, generatorPerformance) || other.generatorPerformance == generatorPerformance)&&(identical(other.hasPowerCutHistory, hasPowerCutHistory) || other.hasPowerCutHistory == hasPowerCutHistory)&&(identical(other.emergencyFuelInventory, emergencyFuelInventory) || other.emergencyFuelInventory == emergencyFuelInventory)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,fuelType,generatorType,powerCutHour,generatorCount,generatorModel,additionalNotes,generatorCapacity,powerCutDuration,generatorPerformance,hasPowerCutHistory,emergencyFuelInventory); + +@override +String toString() { + return 'InfrastructureEnergy(fuelType: $fuelType, generatorType: $generatorType, powerCutHour: $powerCutHour, generatorCount: $generatorCount, generatorModel: $generatorModel, additionalNotes: $additionalNotes, generatorCapacity: $generatorCapacity, powerCutDuration: $powerCutDuration, generatorPerformance: $generatorPerformance, hasPowerCutHistory: $hasPowerCutHistory, emergencyFuelInventory: $emergencyFuelInventory)'; +} + + +} + +/// @nodoc +abstract mixin class _$InfrastructureEnergyCopyWith<$Res> implements $InfrastructureEnergyCopyWith<$Res> { + factory _$InfrastructureEnergyCopyWith(_InfrastructureEnergy value, $Res Function(_InfrastructureEnergy) _then) = __$InfrastructureEnergyCopyWithImpl; +@override @useResult +$Res call({ + String? fuelType, String? generatorType, String? powerCutHour, String? generatorCount, String? generatorModel, String? additionalNotes, String? generatorCapacity, String? powerCutDuration, String? generatorPerformance, bool? hasPowerCutHistory, String? emergencyFuelInventory +}); + + + + +} +/// @nodoc +class __$InfrastructureEnergyCopyWithImpl<$Res> + implements _$InfrastructureEnergyCopyWith<$Res> { + __$InfrastructureEnergyCopyWithImpl(this._self, this._then); + + final _InfrastructureEnergy _self; + final $Res Function(_InfrastructureEnergy) _then; + +/// Create a copy of InfrastructureEnergy +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? fuelType = freezed,Object? generatorType = freezed,Object? powerCutHour = freezed,Object? generatorCount = freezed,Object? generatorModel = freezed,Object? additionalNotes = freezed,Object? generatorCapacity = freezed,Object? powerCutDuration = freezed,Object? generatorPerformance = freezed,Object? hasPowerCutHistory = freezed,Object? emergencyFuelInventory = freezed,}) { + return _then(_InfrastructureEnergy( +fuelType: freezed == fuelType ? _self.fuelType : fuelType // ignore: cast_nullable_to_non_nullable +as String?,generatorType: freezed == generatorType ? _self.generatorType : generatorType // ignore: cast_nullable_to_non_nullable +as String?,powerCutHour: freezed == powerCutHour ? _self.powerCutHour : powerCutHour // ignore: cast_nullable_to_non_nullable +as String?,generatorCount: freezed == generatorCount ? _self.generatorCount : generatorCount // ignore: cast_nullable_to_non_nullable +as String?,generatorModel: freezed == generatorModel ? _self.generatorModel : generatorModel // ignore: cast_nullable_to_non_nullable +as String?,additionalNotes: freezed == additionalNotes ? _self.additionalNotes : additionalNotes // ignore: cast_nullable_to_non_nullable +as String?,generatorCapacity: freezed == generatorCapacity ? _self.generatorCapacity : generatorCapacity // ignore: cast_nullable_to_non_nullable +as String?,powerCutDuration: freezed == powerCutDuration ? _self.powerCutDuration : powerCutDuration // ignore: cast_nullable_to_non_nullable +as String?,generatorPerformance: freezed == generatorPerformance ? _self.generatorPerformance : generatorPerformance // ignore: cast_nullable_to_non_nullable +as String?,hasPowerCutHistory: freezed == hasPowerCutHistory ? _self.hasPowerCutHistory : hasPowerCutHistory // ignore: cast_nullable_to_non_nullable +as bool?,emergencyFuelInventory: freezed == emergencyFuelInventory ? _self.emergencyFuelInventory : emergencyFuelInventory // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$GeneralConditionHall { + + List? get images; String? get temperature; String? get bedCondition; String? get healthStatus; String? get ventilationStatus; String? get drinkingWaterSource; String? get drinkingWaterQuality; +/// Create a copy of GeneralConditionHall +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$GeneralConditionHallCopyWith get copyWith => _$GeneralConditionHallCopyWithImpl(this as GeneralConditionHall, _$identity); + + /// Serializes this GeneralConditionHall to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is GeneralConditionHall&&const DeepCollectionEquality().equals(other.images, images)&&(identical(other.temperature, temperature) || other.temperature == temperature)&&(identical(other.bedCondition, bedCondition) || other.bedCondition == bedCondition)&&(identical(other.healthStatus, healthStatus) || other.healthStatus == healthStatus)&&(identical(other.ventilationStatus, ventilationStatus) || other.ventilationStatus == ventilationStatus)&&(identical(other.drinkingWaterSource, drinkingWaterSource) || other.drinkingWaterSource == drinkingWaterSource)&&(identical(other.drinkingWaterQuality, drinkingWaterQuality) || other.drinkingWaterQuality == drinkingWaterQuality)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,const DeepCollectionEquality().hash(images),temperature,bedCondition,healthStatus,ventilationStatus,drinkingWaterSource,drinkingWaterQuality); + +@override +String toString() { + return 'GeneralConditionHall(images: $images, temperature: $temperature, bedCondition: $bedCondition, healthStatus: $healthStatus, ventilationStatus: $ventilationStatus, drinkingWaterSource: $drinkingWaterSource, drinkingWaterQuality: $drinkingWaterQuality)'; +} + + +} + +/// @nodoc +abstract mixin class $GeneralConditionHallCopyWith<$Res> { + factory $GeneralConditionHallCopyWith(GeneralConditionHall value, $Res Function(GeneralConditionHall) _then) = _$GeneralConditionHallCopyWithImpl; +@useResult +$Res call({ + List? images, String? temperature, String? bedCondition, String? healthStatus, String? ventilationStatus, String? drinkingWaterSource, String? drinkingWaterQuality +}); + + + + +} +/// @nodoc +class _$GeneralConditionHallCopyWithImpl<$Res> + implements $GeneralConditionHallCopyWith<$Res> { + _$GeneralConditionHallCopyWithImpl(this._self, this._then); + + final GeneralConditionHall _self; + final $Res Function(GeneralConditionHall) _then; + +/// Create a copy of GeneralConditionHall +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? images = freezed,Object? temperature = freezed,Object? bedCondition = freezed,Object? healthStatus = freezed,Object? ventilationStatus = freezed,Object? drinkingWaterSource = freezed,Object? drinkingWaterQuality = freezed,}) { + return _then(_self.copyWith( +images: freezed == images ? _self.images : images // ignore: cast_nullable_to_non_nullable +as List?,temperature: freezed == temperature ? _self.temperature : temperature // ignore: cast_nullable_to_non_nullable +as String?,bedCondition: freezed == bedCondition ? _self.bedCondition : bedCondition // ignore: cast_nullable_to_non_nullable +as String?,healthStatus: freezed == healthStatus ? _self.healthStatus : healthStatus // ignore: cast_nullable_to_non_nullable +as String?,ventilationStatus: freezed == ventilationStatus ? _self.ventilationStatus : ventilationStatus // ignore: cast_nullable_to_non_nullable +as String?,drinkingWaterSource: freezed == drinkingWaterSource ? _self.drinkingWaterSource : drinkingWaterSource // ignore: cast_nullable_to_non_nullable +as String?,drinkingWaterQuality: freezed == drinkingWaterQuality ? _self.drinkingWaterQuality : drinkingWaterQuality // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [GeneralConditionHall]. +extension GeneralConditionHallPatterns on GeneralConditionHall { +/// 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( _GeneralConditionHall value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _GeneralConditionHall() 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( _GeneralConditionHall value) $default,){ +final _that = this; +switch (_that) { +case _GeneralConditionHall(): +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( _GeneralConditionHall value)? $default,){ +final _that = this; +switch (_that) { +case _GeneralConditionHall() 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? images, String? temperature, String? bedCondition, String? healthStatus, String? ventilationStatus, String? drinkingWaterSource, String? drinkingWaterQuality)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _GeneralConditionHall() when $default != null: +return $default(_that.images,_that.temperature,_that.bedCondition,_that.healthStatus,_that.ventilationStatus,_that.drinkingWaterSource,_that.drinkingWaterQuality);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? images, String? temperature, String? bedCondition, String? healthStatus, String? ventilationStatus, String? drinkingWaterSource, String? drinkingWaterQuality) $default,) {final _that = this; +switch (_that) { +case _GeneralConditionHall(): +return $default(_that.images,_that.temperature,_that.bedCondition,_that.healthStatus,_that.ventilationStatus,_that.drinkingWaterSource,_that.drinkingWaterQuality);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? images, String? temperature, String? bedCondition, String? healthStatus, String? ventilationStatus, String? drinkingWaterSource, String? drinkingWaterQuality)? $default,) {final _that = this; +switch (_that) { +case _GeneralConditionHall() when $default != null: +return $default(_that.images,_that.temperature,_that.bedCondition,_that.healthStatus,_that.ventilationStatus,_that.drinkingWaterSource,_that.drinkingWaterQuality);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _GeneralConditionHall implements GeneralConditionHall { + const _GeneralConditionHall({final List? images, this.temperature, this.bedCondition, this.healthStatus, this.ventilationStatus, this.drinkingWaterSource, this.drinkingWaterQuality}): _images = images; + factory _GeneralConditionHall.fromJson(Map json) => _$GeneralConditionHallFromJson(json); + + final List? _images; +@override List? get images { + final value = _images; + if (value == null) return null; + if (_images is EqualUnmodifiableListView) return _images; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + +@override final String? temperature; +@override final String? bedCondition; +@override final String? healthStatus; +@override final String? ventilationStatus; +@override final String? drinkingWaterSource; +@override final String? drinkingWaterQuality; + +/// Create a copy of GeneralConditionHall +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$GeneralConditionHallCopyWith<_GeneralConditionHall> get copyWith => __$GeneralConditionHallCopyWithImpl<_GeneralConditionHall>(this, _$identity); + +@override +Map toJson() { + return _$GeneralConditionHallToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _GeneralConditionHall&&const DeepCollectionEquality().equals(other._images, _images)&&(identical(other.temperature, temperature) || other.temperature == temperature)&&(identical(other.bedCondition, bedCondition) || other.bedCondition == bedCondition)&&(identical(other.healthStatus, healthStatus) || other.healthStatus == healthStatus)&&(identical(other.ventilationStatus, ventilationStatus) || other.ventilationStatus == ventilationStatus)&&(identical(other.drinkingWaterSource, drinkingWaterSource) || other.drinkingWaterSource == drinkingWaterSource)&&(identical(other.drinkingWaterQuality, drinkingWaterQuality) || other.drinkingWaterQuality == drinkingWaterQuality)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,const DeepCollectionEquality().hash(_images),temperature,bedCondition,healthStatus,ventilationStatus,drinkingWaterSource,drinkingWaterQuality); + +@override +String toString() { + return 'GeneralConditionHall(images: $images, temperature: $temperature, bedCondition: $bedCondition, healthStatus: $healthStatus, ventilationStatus: $ventilationStatus, drinkingWaterSource: $drinkingWaterSource, drinkingWaterQuality: $drinkingWaterQuality)'; +} + + +} + +/// @nodoc +abstract mixin class _$GeneralConditionHallCopyWith<$Res> implements $GeneralConditionHallCopyWith<$Res> { + factory _$GeneralConditionHallCopyWith(_GeneralConditionHall value, $Res Function(_GeneralConditionHall) _then) = __$GeneralConditionHallCopyWithImpl; +@override @useResult +$Res call({ + List? images, String? temperature, String? bedCondition, String? healthStatus, String? ventilationStatus, String? drinkingWaterSource, String? drinkingWaterQuality +}); + + + + +} +/// @nodoc +class __$GeneralConditionHallCopyWithImpl<$Res> + implements _$GeneralConditionHallCopyWith<$Res> { + __$GeneralConditionHallCopyWithImpl(this._self, this._then); + + final _GeneralConditionHall _self; + final $Res Function(_GeneralConditionHall) _then; + +/// Create a copy of GeneralConditionHall +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? images = freezed,Object? temperature = freezed,Object? bedCondition = freezed,Object? healthStatus = freezed,Object? ventilationStatus = freezed,Object? drinkingWaterSource = freezed,Object? drinkingWaterQuality = freezed,}) { + return _then(_GeneralConditionHall( +images: freezed == images ? _self._images : images // ignore: cast_nullable_to_non_nullable +as List?,temperature: freezed == temperature ? _self.temperature : temperature // ignore: cast_nullable_to_non_nullable +as String?,bedCondition: freezed == bedCondition ? _self.bedCondition : bedCondition // ignore: cast_nullable_to_non_nullable +as String?,healthStatus: freezed == healthStatus ? _self.healthStatus : healthStatus // ignore: cast_nullable_to_non_nullable +as String?,ventilationStatus: freezed == ventilationStatus ? _self.ventilationStatus : ventilationStatus // ignore: cast_nullable_to_non_nullable +as String?,drinkingWaterSource: freezed == drinkingWaterSource ? _self.drinkingWaterSource : drinkingWaterSource // ignore: cast_nullable_to_non_nullable +as String?,drinkingWaterQuality: freezed == drinkingWaterQuality ? _self.drinkingWaterQuality : drinkingWaterQuality // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + +// dart format on diff --git a/packages/chicken/lib/features/poultry_science/data/model/response/poultry_science_report/poultry_science_report.g.dart b/packages/chicken/lib/features/poultry_science/data/model/response/poultry_science_report/poultry_science_report.g.dart new file mode 100644 index 0000000..c772d69 --- /dev/null +++ b/packages/chicken/lib/features/poultry_science/data/model/response/poultry_science_report/poultry_science_report.g.dart @@ -0,0 +1,339 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'poultry_science_report.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +_PoultryScienceReport _$PoultryScienceReportFromJson( + Map json, +) => _PoultryScienceReport( + id: (json['id'] as num?)?.toInt(), + poultryScience: json['poultry_science'] == null + ? null + : PoultryScienceRef.fromJson( + json['poultry_science'] as Map, + ), + hatching: json['hatching'] == null + ? null + : HatchingModel.fromJson(json['hatching'] as Map), + user: json['user'] == null + ? null + : UserRef.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?, + date: json['date'] as String?, + image: json['image'] as String?, + lat: json['lat'] as num?, + log: json['log'] as num?, + reporterFullname: json['reporter_fullname'] as String?, + reporterMobile: json['reporter_mobile'] as String?, + reporterRole: json['reporter_role'] as String?, + state: json['state'] as String?, + realQuantityAi: json['real_quantity_ai'] as num?, + messageAi: json['message_ai'] as String?, + realQuantity: json['real_quantity'] as num?, + message: json['message'] as String?, + messageRegistererFullname: json['message_registerer_fullname'] as String?, + messageRegistererMobile: json['message_registerer_mobile'] as String?, + messageRegistererRole: json['message_registerer_role'] as String?, + reportInformation: json['report_information'] == null + ? null + : ReportInformation.fromJson( + json['report_information'] as Map, + ), + createdBy: json['created_by'] as String?, + modifiedBy: json['modified_by'] as String?, +); + +Map _$PoultryScienceReportToJson( + _PoultryScienceReport instance, +) => { + 'id': instance.id, + 'poultry_science': instance.poultryScience, + 'hatching': instance.hatching, + 'user': instance.user, + '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, + 'reporter_role': instance.reporterRole, + 'state': instance.state, + 'real_quantity_ai': instance.realQuantityAi, + 'message_ai': instance.messageAi, + 'real_quantity': instance.realQuantity, + 'message': instance.message, + 'message_registerer_fullname': instance.messageRegistererFullname, + 'message_registerer_mobile': instance.messageRegistererMobile, + 'message_registerer_role': instance.messageRegistererRole, + 'report_information': instance.reportInformation, + 'created_by': instance.createdBy, + 'modified_by': instance.modifiedBy, +}; + +_PoultryScienceRef _$PoultryScienceRefFromJson(Map json) => + _PoultryScienceRef( + id: (json['id'] as num?)?.toInt(), + user: json['user'] == null + ? null + : UserWithCity.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?, + engineeringCode: json['engineering_code'] as String?, + 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 _$PoultryScienceRefToJson(_PoultryScienceRef instance) => + { + 'id': instance.id, + 'user': instance.user, + 'key': instance.key, + 'create_date': instance.createDate, + 'modify_date': instance.modifyDate, + 'trash': instance.trash, + 'engineering_code': instance.engineeringCode, + 'created_by': instance.createdBy, + 'modified_by': instance.modifiedBy, + 'poultry': instance.poultry, + }; + +_UserRef _$UserRefFromJson(Map json) => _UserRef( + fullname: json['fullname'] as String?, + mobile: json['mobile'] as String?, + city: json['city'] == null + ? null + : CityRef.fromJson(json['city'] as Map), +); + +Map _$UserRefToJson(_UserRef instance) => { + 'fullname': instance.fullname, + 'mobile': instance.mobile, + 'city': instance.city, +}; + +_UserWithCity _$UserWithCityFromJson(Map json) => + _UserWithCity( + fullname: json['fullname'] as String?, + mobile: json['mobile'] as String?, + city: json['city'] == null + ? null + : CityRef.fromJson(json['city'] as Map), + ); + +Map _$UserWithCityToJson(_UserWithCity instance) => + { + 'fullname': instance.fullname, + 'mobile': instance.mobile, + 'city': instance.city, + }; + +_ReportInformation _$ReportInformationFromJson(Map json) => + _ReportInformation( + hr: json['hr'] == null + ? null + : HrInfo.fromJson(json['hr'] as Map), + casualties: json['casualties'] == null + ? null + : Casualties.fromJson(json['casualties'] as Map), + facilities: json['facilities'] == null + ? null + : Facilities.fromJson(json['facilities'] as Map), + inputStatus: json['input_status'] == null + ? null + : InputStatus.fromJson(json['input_status'] as Map), + inspectionNotes: json['inspection_notes'] as String?, + inspectionStatus: json['inspection_status'] as String?, + technicalOfficer: json['technical_officer'] == null + ? null + : TechnicalOfficer.fromJson( + json['technical_officer'] as Map, + ), + infrastructureEnergy: json['infrastructure_energy'] == null + ? null + : InfrastructureEnergy.fromJson( + json['infrastructure_energy'] as Map, + ), + generalConditionHall: json['general_condition_hall'] == null + ? null + : GeneralConditionHall.fromJson( + json['general_condition_hall'] as Map, + ), + ); + +Map _$ReportInformationToJson(_ReportInformation instance) => + { + 'hr': instance.hr, + 'casualties': instance.casualties, + 'facilities': instance.facilities, + 'input_status': instance.inputStatus, + 'inspection_notes': instance.inspectionNotes, + 'inspection_status': instance.inspectionStatus, + 'technical_officer': instance.technicalOfficer, + 'infrastructure_energy': instance.infrastructureEnergy, + 'general_condition_hall': instance.generalConditionHall, + }; + +_HrInfo _$HrInfoFromJson(Map json) => _HrInfo( + trained: json['trained'] as bool?, + contractStatus: json['contract_status'] as String?, + numberEmployed: json['number_employed'] as num?, + numberIndigenous: json['number_indigenous'] as num?, + numberNonIndigenous: json['number_non_indigenous'] as num?, +); + +Map _$HrInfoToJson(_HrInfo instance) => { + 'trained': instance.trained, + 'contract_status': instance.contractStatus, + 'number_employed': instance.numberEmployed, + 'number_indigenous': instance.numberIndigenous, + 'number_non_indigenous': instance.numberNonIndigenous, +}; + +_Casualties _$CasualtiesFromJson(Map json) => _Casualties( + images: (json['images'] as List?)?.map((e) => e as String).toList(), + typeDisease: json['type_disease'] as String?, + normalLosses: json['normal_losses'] as num?, + samplingDone: json['sampling_done'] as bool?, + typeSampling: json['type_sampling'] as String?, + abnormalLosses: json['abnormal_losses'] as num?, + sourceOfHatching: json['source_of_hatching'] as String?, + causeAbnormalLosses: json['cause_abnormal_losses'] as String?, +); + +Map _$CasualtiesToJson(_Casualties instance) => + { + 'images': instance.images, + 'type_disease': instance.typeDisease, + 'normal_losses': instance.normalLosses, + 'sampling_done': instance.samplingDone, + 'type_sampling': instance.typeSampling, + 'abnormal_losses': instance.abnormalLosses, + 'source_of_hatching': instance.sourceOfHatching, + 'cause_abnormal_losses': instance.causeAbnormalLosses, + }; + +_Facilities _$FacilitiesFromJson(Map json) => _Facilities( + date: json['date'] as String?, + amount: json['amount'] as num?, + hasFacilities: json['has_facilities'] as bool?, + repaymentStatus: json['repayment_status'] as String?, + typeOfFacility: json['type_of_facility'] as String?, + requestFacilities: json['request_facilities'] as String?, +); + +Map _$FacilitiesToJson(_Facilities instance) => + { + 'date': instance.date, + 'amount': instance.amount, + 'has_facilities': instance.hasFacilities, + 'repayment_status': instance.repaymentStatus, + 'type_of_facility': instance.typeOfFacility, + 'request_facilities': instance.requestFacilities, + }; + +_InputStatus _$InputStatusFromJson(Map json) => _InputStatus( + images: (json['images'] as List?)?.map((e) => e as String).toList(), + gradeGrain: json['grade_grain'] as String?, + companyName: json['company_name'] as String?, + inputStatus: json['input_status'] as String?, + trackingCode: json['tracking_code'] as String?, + typeOfGrain: json['type_of_grain'] as String?, + inventoryUntilVisit: json['inventory_until_visit'] as String?, + inventoryInWarehouse: json['inventory_in_warehouse'] as String?, +); + +Map _$InputStatusToJson(_InputStatus instance) => + { + 'images': instance.images, + 'grade_grain': instance.gradeGrain, + 'company_name': instance.companyName, + 'input_status': instance.inputStatus, + 'tracking_code': instance.trackingCode, + 'type_of_grain': instance.typeOfGrain, + 'inventory_until_visit': instance.inventoryUntilVisit, + 'inventory_in_warehouse': instance.inventoryInWarehouse, + }; + +_TechnicalOfficer _$TechnicalOfficerFromJson(Map json) => + _TechnicalOfficer( + technicalHealthOfficer: json['technical_health_officer'] as String?, + technicalEngineeringOfficer: + json['technical_engineering_officer'] as String?, + ); + +Map _$TechnicalOfficerToJson(_TechnicalOfficer instance) => + { + 'technical_health_officer': instance.technicalHealthOfficer, + 'technical_engineering_officer': instance.technicalEngineeringOfficer, + }; + +_InfrastructureEnergy _$InfrastructureEnergyFromJson( + Map json, +) => _InfrastructureEnergy( + fuelType: json['fuel_type'] as String?, + generatorType: json['generator_type'] as String?, + powerCutHour: json['power_cut_hour'] as String?, + generatorCount: json['generator_count'] as String?, + generatorModel: json['generator_model'] as String?, + additionalNotes: json['additional_notes'] as String?, + generatorCapacity: json['generator_capacity'] as String?, + powerCutDuration: json['power_cut_duration'] as String?, + generatorPerformance: json['generator_performance'] as String?, + hasPowerCutHistory: json['has_power_cut_history'] as bool?, + emergencyFuelInventory: json['emergency_fuel_inventory'] as String?, +); + +Map _$InfrastructureEnergyToJson( + _InfrastructureEnergy instance, +) => { + 'fuel_type': instance.fuelType, + 'generator_type': instance.generatorType, + 'power_cut_hour': instance.powerCutHour, + 'generator_count': instance.generatorCount, + 'generator_model': instance.generatorModel, + 'additional_notes': instance.additionalNotes, + 'generator_capacity': instance.generatorCapacity, + 'power_cut_duration': instance.powerCutDuration, + 'generator_performance': instance.generatorPerformance, + 'has_power_cut_history': instance.hasPowerCutHistory, + 'emergency_fuel_inventory': instance.emergencyFuelInventory, +}; + +_GeneralConditionHall _$GeneralConditionHallFromJson( + Map json, +) => _GeneralConditionHall( + images: (json['images'] as List?)?.map((e) => e as String).toList(), + temperature: json['temperature'] as String?, + bedCondition: json['bed_condition'] as String?, + healthStatus: json['health_status'] as String?, + ventilationStatus: json['ventilation_status'] as String?, + drinkingWaterSource: json['drinking_water_source'] as String?, + drinkingWaterQuality: json['drinking_water_quality'] as String?, +); + +Map _$GeneralConditionHallToJson( + _GeneralConditionHall instance, +) => { + 'images': instance.images, + 'temperature': instance.temperature, + 'bed_condition': instance.bedCondition, + 'health_status': instance.healthStatus, + 'ventilation_status': instance.ventilationStatus, + 'drinking_water_source': instance.drinkingWaterSource, + 'drinking_water_quality': instance.drinkingWaterQuality, +}; diff --git a/packages/chicken/lib/features/poultry_science/data/repositories/poultry_science_repository.dart b/packages/chicken/lib/features/poultry_science/data/repositories/poultry_science_repository.dart index 913c6fe..a3f7709 100644 --- a/packages/chicken/lib/features/poultry_science/data/repositories/poultry_science_repository.dart +++ b/packages/chicken/lib/features/poultry_science/data/repositories/poultry_science_repository.dart @@ -4,6 +4,7 @@ import 'package:rasadyar_chicken/features/poultry_science/data/model/response/ho import 'package:rasadyar_chicken/features/poultry_science/data/model/response/poultry_farm/poultry_farm.dart'; import 'package:rasadyar_chicken/features/poultry_science/data/model/response/approved_price/approved_price.dart'; import 'package:rasadyar_chicken/features/poultry_science/data/model/response/all_poultry/all_poultry.dart'; +import 'package:rasadyar_chicken/features/poultry_science/data/model/response/poultry_science_report/poultry_science_report.dart'; import 'package:rasadyar_chicken/features/poultry_science/data/model/response/sell_for_freezing/sell_for_freezing.dart'; import 'package:rasadyar_chicken/features/poultry_science/data/model/response/poultry_export/poultry_export.dart'; import 'package:rasadyar_chicken/features/poultry_science/data/model/response/kill_request_poultry/kill_request_poultry.dart'; @@ -96,7 +97,7 @@ abstract class PoultryScienceRepository { required List images, }); - Future?> getSubmitInspectionList({ + Future?> getSubmitInspectionList({ required String token, Map? queryParameters, }); diff --git a/packages/chicken/lib/features/poultry_science/data/repositories/poultry_science_repository_impl.dart b/packages/chicken/lib/features/poultry_science/data/repositories/poultry_science_repository_impl.dart index c5b9e81..88a5518 100644 --- a/packages/chicken/lib/features/poultry_science/data/repositories/poultry_science_repository_impl.dart +++ b/packages/chicken/lib/features/poultry_science/data/repositories/poultry_science_repository_impl.dart @@ -4,6 +4,7 @@ import 'package:rasadyar_chicken/features/poultry_science/data/model/response/ho import 'package:rasadyar_chicken/features/poultry_science/data/model/response/poultry_farm/poultry_farm.dart'; import 'package:rasadyar_chicken/features/poultry_science/data/model/response/approved_price/approved_price.dart'; import 'package:rasadyar_chicken/features/poultry_science/data/model/response/all_poultry/all_poultry.dart'; +import 'package:rasadyar_chicken/features/poultry_science/data/model/response/poultry_science_report/poultry_science_report.dart'; import 'package:rasadyar_chicken/features/poultry_science/data/model/response/sell_for_freezing/sell_for_freezing.dart'; import 'package:rasadyar_chicken/features/poultry_science/data/model/response/poultry_export/poultry_export.dart'; import 'package:rasadyar_chicken/features/poultry_science/data/model/response/kill_request_poultry/kill_request_poultry.dart'; @@ -191,7 +192,7 @@ class PoultryScienceRepositoryImpl implements PoultryScienceRepository { } @override - Future?> getSubmitInspectionList({ + Future?> getSubmitInspectionList({ required String token, Map? queryParameters, }) async { diff --git a/packages/chicken/lib/features/poultry_science/presentation/pages/active_hatching/view.dart b/packages/chicken/lib/features/poultry_science/presentation/pages/active_hatching/view.dart index b4bb6c7..467cfad 100644 --- a/packages/chicken/lib/features/poultry_science/presentation/pages/active_hatching/view.dart +++ b/packages/chicken/lib/features/poultry_science/presentation/pages/active_hatching/view.dart @@ -15,7 +15,7 @@ class ActiveHatchingPage extends GetView { return ChickenBasePage( hasSearch: true, hasFilter: false, - backId: poultryFirstKey, + backId: poultryScienceActionKey, routes: controller.routesName, onSearchChanged: (data) { controller.searchedValue.value = data; diff --git a/packages/chicken/lib/features/poultry_science/presentation/pages/farm/view.dart b/packages/chicken/lib/features/poultry_science/presentation/pages/farm/view.dart index 72fdc2e..95bbc82 100644 --- a/packages/chicken/lib/features/poultry_science/presentation/pages/farm/view.dart +++ b/packages/chicken/lib/features/poultry_science/presentation/pages/farm/view.dart @@ -28,7 +28,7 @@ class FarmPage extends GetView { controller.getFarmList(); }, routes: controller.routes, - backId: poultryFirstKey, + backId: poultryScienceActionKey, child: Column(children: [firstTagInformation(), farmListWidget()]), ); } @@ -76,7 +76,6 @@ class FarmPage extends GetView { itemCount: data.value.data?.results?.length ?? 0, separatorBuilder: (context, index) => SizedBox(height: 8.h), onLoadMore: () async => controller.getFarmList(true), - ); }, controller.farmList), ); @@ -85,7 +84,10 @@ class FarmPage extends GetView { Container itemListExpandedWidget(PoultryFarm item) { return Container( padding: EdgeInsets.symmetric(horizontal: 8), - decoration: BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(8)), + decoration: BoxDecoration( + color: Colors.white, + borderRadius: BorderRadius.circular(8), + ), child: Column( spacing: 8, children: [ @@ -134,10 +136,19 @@ class FarmPage extends GetView { ), ), - buildRow(title: 'مالک/ تلفن', value: '${item.user?.fullname} (${item.user?.mobile})'), + buildRow( + title: 'مالک/ تلفن', + value: '${item.user?.fullname} (${item.user?.mobile})', + ), buildRow(title: 'شناسه یکتا', value: item.breedingUniqueId ?? 'N/A'), - buildRow(title: 'کد اپیدمیولوژیک', value: item.epidemiologicalCode ?? 'N/A'), - buildRow(title: 'کد بهداشتی', value: item.healthCertificateNumber ?? 'N/A'), + buildRow( + title: 'کد اپیدمیولوژیک', + value: item.epidemiologicalCode ?? 'N/A', + ), + buildRow( + title: 'کد بهداشتی', + value: item.healthCertificateNumber ?? 'N/A', + ), buildRow( title: 'دامپزشک فارم', value: '${item.vetFarm?.fullName} (${item.vetFarm?.mobile ?? '-'})', diff --git a/packages/chicken/lib/features/poultry_science/presentation/pages/genocide/view.dart b/packages/chicken/lib/features/poultry_science/presentation/pages/genocide/view.dart index 2eb8a6e..deb45a5 100644 --- a/packages/chicken/lib/features/poultry_science/presentation/pages/genocide/view.dart +++ b/packages/chicken/lib/features/poultry_science/presentation/pages/genocide/view.dart @@ -23,7 +23,7 @@ class GenocidePage extends GetView { controller.searchedValue.value = data; controller.getPoultryOrderList(); }, - backId: poultryFirstKey, + backId: poultryScienceActionKey, onFilterTap: () { Get.bottomSheet( isScrollControlled: true, diff --git a/packages/chicken/lib/features/poultry_science/presentation/pages/inspection/view.dart b/packages/chicken/lib/features/poultry_science/presentation/pages/inspection/view.dart index 28a92ca..0ceb1a4 100644 --- a/packages/chicken/lib/features/poultry_science/presentation/pages/inspection/view.dart +++ b/packages/chicken/lib/features/poultry_science/presentation/pages/inspection/view.dart @@ -23,7 +23,7 @@ class InspectionPoultrySciencePage extends GetView controller.setSearchValue(data), - backId: poultryFirstKey, + backId: poultryScienceActionKey, routesWidget: ContainerBreadcrumb(rxRoutes: controller.routesName), child: Column( children: [ diff --git a/packages/chicken/lib/features/poultry_science/presentation/pages/new_inspection/logic.dart b/packages/chicken/lib/features/poultry_science/presentation/pages/new_inspection/logic.dart index f6704f3..c919674 100644 --- a/packages/chicken/lib/features/poultry_science/presentation/pages/new_inspection/logic.dart +++ b/packages/chicken/lib/features/poultry_science/presentation/pages/new_inspection/logic.dart @@ -1,13 +1,13 @@ import 'package:flutter/material.dart'; -import 'package:rasadyar_chicken/features/poultry_science/data/model/request/submit_inspection/submit_inspection_response.dart'; +import 'package:rasadyar_chicken/features/poultry_science/data/model/response/poultry_science_report/poultry_science_report.dart'; import 'package:rasadyar_chicken/features/poultry_science/presentation/pages/root/logic.dart'; import 'package:rasadyar_core/core.dart'; class NewInspectionPoultryScienceLogic extends GetxController { BaseLogic baseLogic = Get.find(); - Rx>> submitInspectionList = - Resource>.loading().obs; + Rx>> submitInspectionList = + Resource>.loading().obs; PoultryScienceRootLogic rootLogic = Get.find(); @@ -57,7 +57,7 @@ class NewInspectionPoultryScienceLogic extends GetxController { isLoadingMoreAllocationsMade.value = true; } else { submitInspectionList.value = - Resource>.loading(); + Resource>.loading(); } if (searchedValue.value != null && @@ -74,18 +74,18 @@ class NewInspectionPoultryScienceLogic extends GetxController { role: 'PoultryScience', pageSize: 50, search: 'filter', - + page: currentPage.value, ), ), onSuccess: (res) { if ((res?.count ?? 0) == 0) { submitInspectionList.value = - Resource>.empty(); + Resource>.empty(); } else { submitInspectionList.value = - Resource>.success( - PaginationModel( + Resource>.success( + PaginationModel( count: res?.count ?? 0, next: res?.next, previous: res?.previous, @@ -140,15 +140,17 @@ class NewInspectionPoultryScienceLogic extends GetxController { await getReport(); } - String getStatus(SubmitInspectionResponse item) { - if (item.inspectionStatus == null || item.inspectionStatus!.isEmpty) { + String getStatus(PoultryScienceReport item) { + final status = item.reportInformation?.inspectionStatus ?? item.state; + if (status == null || status.isEmpty) { return 'در حال بررسی'; } - return item.inspectionStatus!; + return status; } - Color getStatusColor(SubmitInspectionResponse item) { - if (item.inspectionStatus == null || item.inspectionStatus!.isEmpty) { + Color getStatusColor(PoultryScienceReport item) { + final status = item.reportInformation?.inspectionStatus ?? item.state; + if (status == null || status.isEmpty) { return AppColor.yellowNormal; } // می‌توانید منطق رنگ را بر اساس inspectionStatus تنظیم کنید diff --git a/packages/chicken/lib/features/poultry_science/presentation/pages/new_inspection/view.dart b/packages/chicken/lib/features/poultry_science/presentation/pages/new_inspection/view.dart index d8eb56c..b3cf427 100644 --- a/packages/chicken/lib/features/poultry_science/presentation/pages/new_inspection/view.dart +++ b/packages/chicken/lib/features/poultry_science/presentation/pages/new_inspection/view.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:rasadyar_chicken/features/poultry_science/data/model/request/submit_inspection/submit_inspection_response.dart'; +import 'package:rasadyar_chicken/features/poultry_science/data/model/response/poultry_science_report/poultry_science_report.dart'; import 'package:rasadyar_chicken/presentation/utils/nested_keys_utils.dart'; import 'package:rasadyar_chicken/presentation/widget/base_page/view.dart'; import 'package:rasadyar_core/core.dart'; @@ -21,7 +21,7 @@ class NewInspectionPoultrySciencePage }, onRefresh: controller.onRefresh, onSearchChanged: (data) => controller.setSearchValue(data), - backId: poultryFirstKey, + backId: poultryScienceActionKey, routesWidget: ContainerBreadcrumb(rxRoutes: controller.routesName), child: Column(children: [reportWidget()]), ); @@ -57,7 +57,7 @@ class NewInspectionPoultrySciencePage ); } - Widget itemListExpandedWidgetReport(SubmitInspectionResponse item) { + Widget itemListExpandedWidgetReport(PoultryScienceReport item) { return Container( padding: EdgeInsets.symmetric(horizontal: 8), decoration: BoxDecoration( @@ -77,42 +77,66 @@ class NewInspectionPoultrySciencePage color: controller.getStatusColor(item), ), ), - if (item.poultryHatchingId != null) + if (item.hatching?.poultry?.unitName != null) + buildRow( + title: 'مرغداری', + value: item.hatching?.poultry?.unitName ?? '-', + ), + if (item.hatching?.id != null) buildRow( title: 'شناسه جوجه‌ریزی', - value: item.poultryHatchingId.toString(), + value: item.hatching!.id.toString(), ), - if (item.role != null) - buildRow(title: 'نقش', value: item.role ?? '-'), - if (item.technicalOfficer?.technicalHealthOfficer != null) + + if (item + .reportInformation + ?.technicalOfficer + ?.technicalHealthOfficer != + null) buildRow( title: 'کارشناس بهداشت', - value: item.technicalOfficer!.technicalHealthOfficer ?? '-', + value: + item + .reportInformation! + .technicalOfficer! + .technicalHealthOfficer ?? + '-', ), - if (item.technicalOfficer?.technicalEngineeringOfficer != null) + if (item + .reportInformation + ?.technicalOfficer + ?.technicalEngineeringOfficer != + null) buildRow( title: 'کارشناس فنی', - value: item.technicalOfficer!.technicalEngineeringOfficer ?? '-', + value: + item + .reportInformation! + .technicalOfficer! + .technicalEngineeringOfficer ?? + '-', ), - if (item.casualties?.normalLosses != null || - item.casualties?.abnormalLosses != null) + if (item.reportInformation?.casualties?.normalLosses != null || + item.reportInformation?.casualties?.abnormalLosses != null) buildUnitRow( title: 'تلفات عادی', - value: (item.casualties?.normalLosses ?? 0).toString(), + value: (item.reportInformation?.casualties?.normalLosses ?? 0) + .toString(), unit: '(قطعه)', ), - if (item.casualties?.abnormalLosses != null) + if (item.reportInformation?.casualties?.abnormalLosses != null) buildUnitRow( title: 'تلفات غیرعادی', - value: item.casualties!.abnormalLosses.toString(), + value: item.reportInformation!.casualties!.abnormalLosses + .toString(), unit: '(قطعه)', ), - if (item.lat != null && item.log != null) - buildRow(title: 'موقعیت', value: '${item.lat}, ${item.log}'), - if (item.inspectionNotes != null && item.inspectionNotes!.isNotEmpty) + + if (item.reportInformation?.inspectionNotes != null && + item.reportInformation!.inspectionNotes!.isNotEmpty) buildRow( title: 'یادداشت بازرسی', - value: item.inspectionNotes ?? '-', + value: item.reportInformation!.inspectionNotes ?? '-', ), RElevated( @@ -124,14 +148,14 @@ class NewInspectionPoultrySciencePage showDetailsBottomSheet(item); }, textStyle: AppFonts.yekan16.copyWith(color: Colors.white), - backgroundColor: AppColor.blueNormal, + backgroundColor: AppColor.greenNormal, ), ], ), ); } - Row itemListWidgetReport(SubmitInspectionResponse item) { + Row itemListWidgetReport(PoultryScienceReport item) { return Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ @@ -144,16 +168,14 @@ class NewInspectionPoultrySciencePage spacing: 5, children: [ Text( - item.role ?? 'نقش نامشخص', - textAlign: TextAlign.start, + 'شناسه جوجه‌ریزی: ${item.hatching?.id ?? '-'}', + textAlign: TextAlign.center, style: AppFonts.yekan12.copyWith(color: AppColor.blueNormal), ), + Text( - controller.getStatus(item), - textAlign: TextAlign.start, - style: AppFonts.yekan14.copyWith( - color: controller.getStatusColor(item), - ), + item.createDate?.toJalali.formatCompactDate() ?? '-', + style: AppFonts.yekan12.copyWith(color: AppColor.bgIcon), ), ], ), @@ -166,39 +188,26 @@ class NewInspectionPoultrySciencePage crossAxisAlignment: CrossAxisAlignment.center, children: [ Text( - 'شناسه جوجه‌ریزی: ${item.poultryHatchingId ?? 'N/A'}', + 'مرغداری: ${item.hatching?.poultry?.unitName ?? '-'}', textAlign: TextAlign.center, style: AppFonts.yekan12.copyWith(color: AppColor.blueNormal), ), - if (item.technicalOfficer?.technicalHealthOfficer != null) + if (item.reportInformation?.inspectionStatus != null) Text( - 'کارشناس: ${item.technicalOfficer!.technicalHealthOfficer}', + 'وضعیت بازرسی: ${item.reportInformation?.inspectionStatus ?? '-'}', textAlign: TextAlign.center, - style: AppFonts.yekan12.copyWith(color: AppColor.bgDark), - ) - else - Text( - item.inspectionStatus ?? 'وضعیت نامشخص', - textAlign: TextAlign.center, - style: AppFonts.yekan12.copyWith(color: AppColor.bgDark), + style: AppFonts.yekan12.copyWith(color: AppColor.bgIcon), ), ], ), ), - Expanded( - flex: 1, - child: Assets.vec.scanSvg.svg( - width: 32.w, - height: 32.h, - colorFilter: ColorFilter.mode(AppColor.blueNormal, BlendMode.srcIn), - ), - ), ], ); } - void showDetailsBottomSheet(SubmitInspectionResponse item) { + void showDetailsBottomSheet(PoultryScienceReport item) { Get.bottomSheet( + isScrollControlled: true, BaseBottomSheet( height: Get.height * 0.8, rootChild: DetailsBottomSheetWidget(item: item), @@ -252,7 +261,7 @@ class NewInspectionPoultrySciencePage } class DetailsBottomSheetWidget extends StatefulWidget { - final SubmitInspectionResponse item; + final PoultryScienceReport item; const DetailsBottomSheetWidget({super.key, required this.item}); @@ -344,7 +353,7 @@ class _DetailsBottomSheetWidgetState extends State { } Widget technicalOfficerTable() { - final officer = widget.item.technicalOfficer; + final officer = widget.item.reportInformation?.technicalOfficer; if (officer == null) { return Center( child: Padding( @@ -415,22 +424,25 @@ class _DetailsBottomSheetWidgetState extends State { children: [ rTableRow( title: 'وضعیت بازرسی', - value: widget.item.inspectionStatus ?? '-', + value: + widget.item.reportInformation?.inspectionStatus ?? + widget.item.state ?? + '-', ), rTableRow( title: 'یادداشت بازرسی', - value: widget.item.inspectionNotes ?? '-', + value: widget.item.reportInformation?.inspectionNotes ?? '-', ), - rTableRow(title: 'نقش', value: widget.item.role ?? '-'), + rTableRow(title: 'نقش', value: widget.item.reporterRole ?? '-'), if (widget.item.lat != null && widget.item.log != null) rTableRow( title: 'موقعیت', value: '${widget.item.lat}, ${widget.item.log}', ), - if (widget.item.poultryHatchingId != null) + if (widget.item.hatching?.id != null) rTableRow( title: 'شناسه جوجه ریزی', - value: widget.item.poultryHatchingId.toString(), + value: widget.item.hatching!.id.toString(), ), ], ), @@ -440,7 +452,7 @@ class _DetailsBottomSheetWidgetState extends State { } Widget generalConditionHallTable() { - final hall = widget.item.generalConditionHall; + final hall = widget.item.reportInformation?.generalConditionHall; if (hall == null) { return Center( child: Padding( @@ -504,14 +516,17 @@ class _DetailsBottomSheetWidgetState extends State { scrollDirection: Axis.horizontal, itemCount: hall.images!.length, separatorBuilder: (context, index) => SizedBox(width: 10), - itemBuilder: (context, index) => Container( - width: 80.w, - height: 80.h, - decoration: BoxDecoration( - borderRadius: BorderRadius.circular(8), - image: DecorationImage( - fit: BoxFit.cover, - image: NetworkImage(hall.images![index]), + itemBuilder: (context, index) => GestureDetector( + onTap: () => showImageDialog(hall.images!, index), + child: Container( + width: 80.w, + height: 80.h, + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(8), + image: DecorationImage( + fit: BoxFit.cover, + image: NetworkImage(hall.images![index]), + ), ), ), ), @@ -523,7 +538,7 @@ class _DetailsBottomSheetWidgetState extends State { } Widget casualtiesTable() { - final casualties = widget.item.casualties; + final casualties = widget.item.reportInformation?.casualties; if (casualties == null) { return Center( child: Padding( @@ -602,14 +617,17 @@ class _DetailsBottomSheetWidgetState extends State { scrollDirection: Axis.horizontal, itemCount: casualties.images!.length, separatorBuilder: (context, index) => SizedBox(width: 10), - itemBuilder: (context, index) => Container( - width: 80.w, - height: 80.h, - decoration: BoxDecoration( - borderRadius: BorderRadius.circular(8), - image: DecorationImage( - fit: BoxFit.cover, - image: NetworkImage(casualties.images![index]), + itemBuilder: (context, index) => GestureDetector( + onTap: () => showImageDialog(casualties.images!, index), + child: Container( + width: 80.w, + height: 80.h, + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(8), + image: DecorationImage( + fit: BoxFit.cover, + image: NetworkImage(casualties.images![index]), + ), ), ), ), @@ -621,7 +639,7 @@ class _DetailsBottomSheetWidgetState extends State { } Widget inputStatusTable() { - final inputStatus = widget.item.inputStatus; + final inputStatus = widget.item.reportInformation?.inputStatus; if (inputStatus == null) { return Center( child: Padding( @@ -698,14 +716,17 @@ class _DetailsBottomSheetWidgetState extends State { scrollDirection: Axis.horizontal, itemCount: inputStatus.images!.length, separatorBuilder: (context, index) => SizedBox(width: 10), - itemBuilder: (context, index) => Container( - width: 80.w, - height: 80.h, - decoration: BoxDecoration( - borderRadius: BorderRadius.circular(8), - image: DecorationImage( - fit: BoxFit.cover, - image: NetworkImage(inputStatus.images![index]), + itemBuilder: (context, index) => GestureDetector( + onTap: () => showImageDialog(inputStatus.images!, index), + child: Container( + width: 80.w, + height: 80.h, + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(8), + image: DecorationImage( + fit: BoxFit.cover, + image: NetworkImage(inputStatus.images![index]), + ), ), ), ), @@ -717,7 +738,7 @@ class _DetailsBottomSheetWidgetState extends State { } Widget infrastructureEnergyTable() { - final infra = widget.item.infrastructureEnergy; + final infra = widget.item.reportInformation?.infrastructureEnergy; if (infra == null) { return Center( child: Padding( @@ -801,7 +822,7 @@ class _DetailsBottomSheetWidgetState extends State { } Widget hrTable() { - final hr = widget.item.hr; + final hr = widget.item.reportInformation?.hr; if (hr == null) { return Center( child: Padding( @@ -865,7 +886,7 @@ class _DetailsBottomSheetWidgetState extends State { } Widget facilitiesTable() { - final facilities = widget.item.facilities; + final facilities = widget.item.reportInformation?.facilities; if (facilities == null) { return Center( child: Padding( @@ -930,64 +951,49 @@ class _DetailsBottomSheetWidgetState extends State { Function(int) onTabSelected, ) { return SizedBox( - height: 38.h, + height: 40.h, width: Get.width, - child: Stack( - fit: StackFit.expand, + child: Column( children: [ - Positioned( - right: 0, - top: 0, - bottom: 0, - child: SingleChildScrollView( - scrollDirection: Axis.horizontal, - reverse: true, - child: Row( - children: [ - ...tabs.map( - (tab) => GestureDetector( - onTap: () => onTabSelected(tabs.indexOf(tab)), - behavior: HitTestBehavior.opaque, - child: Container( - padding: EdgeInsets.symmetric( - horizontal: 10, - vertical: 11, - ), - decoration: BoxDecoration( - border: tab == tabs[selectedIndex] - ? Border( - bottom: BorderSide( - color: AppColor.blueNormalOld, - width: 3, - ), - ) - : null, - ), - child: Text( - tab, - style: AppFonts.yekan12Bold.copyWith( - color: tab == tabs[selectedIndex] - ? AppColor.blueNormalOld - : AppColor.mediumGrey, - ), + SingleChildScrollView( + scrollDirection: Axis.horizontal, + reverse: true, + child: Row( + children: [ + ...tabs.map( + (tab) => GestureDetector( + onTap: () => onTabSelected(tabs.indexOf(tab)), + behavior: HitTestBehavior.opaque, + child: Container( + padding: EdgeInsets.symmetric( + horizontal: 10, + vertical: 11, + ), + decoration: BoxDecoration( + border: tab == tabs[selectedIndex] + ? Border( + bottom: BorderSide( + color: AppColor.blueNormalOld, + width: 3, + ), + ) + : null, + ), + child: Text( + tab, + style: AppFonts.yekan12Bold.copyWith( + color: tab == tabs[selectedIndex] + ? AppColor.blueNormalOld + : AppColor.mediumGrey, ), ), ), ), - ], - ), - ), - ), - Positioned( - bottom: 0, - left: 0, - right: 0, - child: Divider( - color: AppColor.blackLightHover, - height: 1, - thickness: 1, + ), + ], ), ), + Divider(color: AppColor.blackLightHover, height: 1, thickness: 1), ], ), ); @@ -1032,4 +1038,98 @@ class _DetailsBottomSheetWidgetState extends State { ], ); } + + void showImageDialog(List images, int initialIndex) { + final pageController = PageController(initialPage: initialIndex); + final currentIndex = initialIndex.obs; + + Get.dialog( + Dialog( + backgroundColor: Colors.transparent, + insetPadding: EdgeInsets.zero, + child: Container( + width: Get.width, + height: Get.height, + color: Colors.black, + child: Stack( + children: [ + PageView.builder( + controller: pageController, + itemCount: images.length, + onPageChanged: (index) { + currentIndex.value = index; + }, + itemBuilder: (context, index) { + return InteractiveViewer( + minScale: 0.5, + maxScale: 4.0, + child: Center( + child: Image.network( + images[index], + fit: BoxFit.contain, + loadingBuilder: (context, child, loadingProgress) { + if (loadingProgress == null) return child; + return Center( + child: CircularProgressIndicator( + value: loadingProgress.expectedTotalBytes != null + ? loadingProgress.cumulativeBytesLoaded / + loadingProgress.expectedTotalBytes! + : null, + color: Colors.white, + ), + ); + }, + errorBuilder: (context, error, stackTrace) { + return Center( + child: Icon( + Icons.error, + color: Colors.white, + size: 50, + ), + ); + }, + ), + ), + ); + }, + ), + Positioned( + top: 40, + right: 16, + child: IconButton( + icon: Icon(Icons.close, color: Colors.white, size: 30), + onPressed: () => Get.back(), + ), + ), + if (images.length > 1) + Positioned( + bottom: 20, + left: 0, + right: 0, + child: Center( + child: Obx( + () => Container( + padding: EdgeInsets.symmetric( + horizontal: 12, + vertical: 6, + ), + decoration: BoxDecoration( + color: Colors.black54, + borderRadius: BorderRadius.circular(20), + ), + child: Text( + '${currentIndex.value + 1} / ${images.length}', + style: TextStyle(color: Colors.white, fontSize: 14), + ), + ), + ), + ), + ), + ], + ), + ), + ), + barrierDismissible: true, + ); + } } diff --git a/packages/chicken/lib/features/poultry_science/presentation/pages/poultry_action/view.dart b/packages/chicken/lib/features/poultry_science/presentation/pages/poultry_action/view.dart index 066a9c9..4d07228 100644 --- a/packages/chicken/lib/features/poultry_science/presentation/pages/poultry_action/view.dart +++ b/packages/chicken/lib/features/poultry_science/presentation/pages/poultry_action/view.dart @@ -10,7 +10,12 @@ class PoultryActionPage extends GetView { @override Widget build(BuildContext context) { - return ChickenBasePage(isBase: true, hasNews: true, hasNotification: true, child: gridWidget()); + return ChickenBasePage( + isBase: true, + hasNews: true, + hasNotification: true, + child: gridWidget(), + ); } Widget gridWidget() { @@ -31,7 +36,7 @@ class PoultryActionPage extends GetView { title: item.title, vecIcon: item.icon, onTap: () async { - Get.toNamed(item.route, id: poultryFirstKey); + Get.toNamed(item.route, id: poultryScienceActionKey); }, ); }, diff --git a/packages/chicken/lib/features/poultry_science/presentation/pages/root/logic.dart b/packages/chicken/lib/features/poultry_science/presentation/pages/root/logic.dart index 5986a29..2e60445 100644 --- a/packages/chicken/lib/features/poultry_science/presentation/pages/root/logic.dart +++ b/packages/chicken/lib/features/poultry_science/presentation/pages/root/logic.dart @@ -25,7 +25,7 @@ class PoultryScienceRootLogic extends GetxController { final pages = [ Navigator( - key: Get.nestedKey(poultryFirstKey), + key: Get.nestedKey(poultryScienceActionKey), onGenerateRoute: (settings) { final page = ChickenPages.pages.firstWhere( (e) => e.name == settings.name, diff --git a/packages/chicken/lib/features/poultry_science/presentation/pages/root/view.dart b/packages/chicken/lib/features/poultry_science/presentation/pages/root/view.dart index 01ca6c8..05bb7ee 100644 --- a/packages/chicken/lib/features/poultry_science/presentation/pages/root/view.dart +++ b/packages/chicken/lib/features/poultry_science/presentation/pages/root/view.dart @@ -30,11 +30,9 @@ class PoultryScienceRootPage extends GetView { isSelected: controller.currentPage.value == 0, onTap: () { Get.nestedKey( - poultrySecondKey, - )?.currentState?.popUntil((route) => route.isFirst); - Get.nestedKey( - poultryFirstKey, + poultryScienceActionKey, )?.currentState?.popUntil((route) => route.isFirst); + controller.changePage(0); }, ), @@ -44,11 +42,9 @@ class PoultryScienceRootPage extends GetView { isSelected: controller.currentPage.value == 1, onTap: () { Get.nestedKey( - poultryFirstKey, - )?.currentState?.popUntil((route) => route.isFirst); - Get.nestedKey( - poultryThirdKey, + poultryScienceActionKey, )?.currentState?.popUntil((route) => route.isFirst); + controller.changePage(1); }, ), @@ -58,11 +54,9 @@ class PoultryScienceRootPage extends GetView { isSelected: controller.currentPage.value == 2, onTap: () { Get.nestedKey( - poultryFirstKey, - )?.currentState?.popUntil((route) => route.isFirst); - Get.nestedKey( - poultrySecondKey, + poultryScienceActionKey, )?.currentState?.popUntil((route) => route.isFirst); + controller.changePage(2); }, ), diff --git a/packages/chicken/lib/features/poultry_science/presentation/widgets/submit_inspection_bottom_sheet/create_inspection_bottom_sheet_logic.dart b/packages/chicken/lib/features/poultry_science/presentation/widgets/submit_inspection_bottom_sheet/create_inspection_bottom_sheet_logic.dart index 9996740..3f93d54 100644 --- a/packages/chicken/lib/features/poultry_science/presentation/widgets/submit_inspection_bottom_sheet/create_inspection_bottom_sheet_logic.dart +++ b/packages/chicken/lib/features/poultry_science/presentation/widgets/submit_inspection_bottom_sheet/create_inspection_bottom_sheet_logic.dart @@ -28,7 +28,7 @@ class CreateInspectionBottomSheetLogic extends GetxController RxBool nextStepButtonEnabled = false.obs; - RxInt casualtiesInformationHeight = 310.obs; + RxInt casualtiesInformationHeight = 315.obs; SubmitInspectionResponse? submitInspectionResponse; @@ -87,7 +87,7 @@ class CreateInspectionBottomSheetLogic extends GetxController TextEditingController otherTypeOfDiseaseController = TextEditingController(); RxList pultryImagesUrls = RxList(); - RxMap pultryImages = RxMap(); + RxList pultryImages = RxList(); TextEditingController hatchingTemperatureController = TextEditingController(); TextEditingController waterHardnessController = TextEditingController(); @@ -189,13 +189,13 @@ class CreateInspectionBottomSheetLogic extends GetxController TextEditingController(); RxList hallImagesUrls = RxList(); - RxMap hallImages = RxMap(); + RxList hallImages = RxList(); RxList inputWarehouseImagesUrls = RxList(); - RxMap inputWarehouseImages = RxMap(); + RxList inputWarehouseImages = RxList(); RxList lossesImagesUrls = RxList(); - RxMap lossesImages = RxMap(); + RxList lossesImages = RxList(); //location Rxn currentLocation = Rxn(); @@ -525,6 +525,7 @@ class CreateInspectionBottomSheetLogic extends GetxController void setInspectorConclusionIndex(int index, String item) { inspectorConclusion.value = item; + submitInspectionResponse?.inspectionStatus = item; inspectorConclusionIndex.value = index == inspectorConclusionIndex.value ? -1 : index; @@ -563,17 +564,18 @@ class CreateInspectionBottomSheetLogic extends GetxController } } - Future pickImageFromCamera(RxMap images) async { + Future pickImageFromCamera(RxList images) async { try { final XFile? image = await imagePicker.pickImage( source: ImageSource.camera, + preferredCameraDevice: CameraDevice.rear, imageQuality: 50, maxWidth: 1080, maxHeight: 720, ); if (image != null) { - images[image] = false; + images.add(image); //await uploadImage(image); } @@ -601,10 +603,10 @@ class CreateInspectionBottomSheetLogic extends GetxController if (urls != null) { pultryImagesUrls.addAll(urls); } - pultryImages[imageFile] = true; + pultryImages.add(imageFile); }, onError: (error, e) { - pultryImages[imageFile] = false; + pultryImages.remove(imageFile); }, ); } @@ -657,7 +659,7 @@ class CreateInspectionBottomSheetLogic extends GetxController // آپلود عکس‌های سالن if (hallImages.isNotEmpty) { uploadStatusMessage.value = 'در حال آپلود عکس‌های سالن...'; - final hallImageFiles = hallImages.keys.toList(); + final hallImageFiles = hallImages.toList(); final hallUrls = await uploadImageBatch(hallImageFiles); if (hallUrls != null && hallUrls.isNotEmpty) { @@ -672,7 +674,7 @@ class CreateInspectionBottomSheetLogic extends GetxController // آپلود عکس‌های انبار دان if (inputWarehouseImages.isNotEmpty) { uploadStatusMessage.value = 'در حال آپلود عکس‌های انبار دان...'; - final inputImageFiles = inputWarehouseImages.keys.toList(); + final inputImageFiles = inputWarehouseImages.toList(); final inputUrls = await uploadImageBatch(inputImageFiles); if (inputUrls != null && inputUrls.isNotEmpty) { @@ -687,7 +689,7 @@ class CreateInspectionBottomSheetLogic extends GetxController // آپلود عکس‌های تلفات if (lossesImages.isNotEmpty) { uploadStatusMessage.value = 'در حال آپلود عکس‌های تلفات...'; - final lossesImageFiles = lossesImages.keys.toList(); + final lossesImageFiles = lossesImages.toList(); final lossesUrls = await uploadImageBatch(lossesImageFiles); if (lossesUrls != null && lossesUrls.isNotEmpty) { @@ -702,14 +704,12 @@ class CreateInspectionBottomSheetLogic extends GetxController // آپلود عکس‌های مرغداری if (pultryImages.isNotEmpty) { uploadStatusMessage.value = 'در حال آپلود عکس‌های مرغداری...'; - final poultryImageFiles = pultryImages.keys.toList(); + final poultryImageFiles = pultryImages.toList(); final poultryUrls = await uploadImageBatch(poultryImageFiles); if (poultryUrls != null && poultryUrls.isNotEmpty) { // اگر فیلد جداگانه‌ای برای عکس‌های مرغداری نداریم، به generalConditionHall اضافه می‌کنیم - if (submitInspectionResponse?.generalConditionHall?.images == null) { - submitInspectionResponse?.generalConditionHall?.images = []; - } + submitInspectionResponse?.generalConditionHall?.images ??= []; submitInspectionResponse?.generalConditionHall?.images?.addAll( poultryUrls, ); @@ -738,8 +738,8 @@ class CreateInspectionBottomSheetLogic extends GetxController } } - void removeImage(RxMap images, XFile image) { - images.remove(image); + void removeImage(RxList images, String imagePath) { + images.removeWhere((element) => element.path == imagePath); } void setTypeOfDiseaseIndex(String item) { @@ -853,10 +853,6 @@ class CreateInspectionBottomSheetLogic extends GetxController hallImages.remove(key); } - void removeInputWarehouseImage(XFile key) { - inputWarehouseImages.remove(key); - } - void removeLossesImage(XFile key) { lossesImages.remove(key); } @@ -939,9 +935,10 @@ class CreateInspectionBottomSheetLogic extends GetxController submitInspectionResponse?.hr?.numberNonIndigenous = int.parse( nonNativeWorkersCountController.text.clearComma, ); - iLog(submitInspectionResponse?.toJson()); - + submitInspectionResponse?.inspectionNotes = + inspectorConclusionDescriptionController.text; + await safeCall( call: () async { await repository.submitInspection( @@ -950,16 +947,17 @@ class CreateInspectionBottomSheetLogic extends GetxController ); }, onSuccess: (result) { - Get.back(); - Future.delayed(Duration(seconds: 2), () { Get.snackbar( - 'موفق', - 'بازرسی با موفقیت ثبت شد', - snackPosition: SnackPosition.TOP, - backgroundColor: Colors.green, - colorText: Colors.white, - );}); + Future.delayed(Duration(seconds: 2), () { + Get.snackbar( + 'موفق', + 'بازرسی با موفقیت ثبت شد', + snackPosition: SnackPosition.TOP, + backgroundColor: Colors.green, + colorText: Colors.white, + ); + }); }, onError: (error, stackTrace) { Get.snackbar( diff --git a/packages/chicken/lib/features/poultry_science/presentation/widgets/submit_inspection_bottom_sheet/step1_page.dart b/packages/chicken/lib/features/poultry_science/presentation/widgets/submit_inspection_bottom_sheet/step1_page.dart index 8d3b239..a1dc1ff 100644 --- a/packages/chicken/lib/features/poultry_science/presentation/widgets/submit_inspection_bottom_sheet/step1_page.dart +++ b/packages/chicken/lib/features/poultry_science/presentation/widgets/submit_inspection_bottom_sheet/step1_page.dart @@ -13,8 +13,8 @@ Widget step1Page(CreateInspectionBottomSheetLogic controller) { Container( height: controller.tenantStatusController.text == 'دارد' - ? 588.h - : 445.h, + ? 600.h + : 460.h, clipBehavior: Clip.none, width: Get.width, child: farmInfoWidget( diff --git a/packages/chicken/lib/features/poultry_science/presentation/widgets/submit_inspection_bottom_sheet/step2_page.dart b/packages/chicken/lib/features/poultry_science/presentation/widgets/submit_inspection_bottom_sheet/step2_page.dart index 9cbc602..ff6bda2 100644 --- a/packages/chicken/lib/features/poultry_science/presentation/widgets/submit_inspection_bottom_sheet/step2_page.dart +++ b/packages/chicken/lib/features/poultry_science/presentation/widgets/submit_inspection_bottom_sheet/step2_page.dart @@ -14,7 +14,7 @@ Widget step2Page(CreateInspectionBottomSheetLogic controller) { SizedBox(height: 35.h), Container( - height: 600.h, + height: 630.h, clipBehavior: Clip.none, width: Get.width, child: farmInfoWidget( @@ -71,83 +71,63 @@ Column generalConditionOfTheHall(CreateInspectionBottomSheetLogic controller) { scrollDirection: Axis.horizontal, child: Row( mainAxisAlignment: MainAxisAlignment.start, - // Fix: Use spread .entries.map for map iteration, and correct image argument spacing: 8, children: [ - ...controller.pultryImages.entries - .map( - (entry) => Stack( - children: [ - Container( - height: 80.h, - width: 80.w, - decoration: BoxDecoration( - borderRadius: BorderRadius.circular(8), - border: Border.all( - width: 1, - color: AppColor.blackLightHover, - ), - ), - child: ClipRRect( - borderRadius: BorderRadius.circular(8), - child: Image.file( - File(entry.key.path), - fit: BoxFit.cover, - ), - ), + ...controller.pultryImages.map( + (entry) => Stack( + children: [ + Container( + height: 80.h, + width: 80.w, + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(8), + border: Border.all( + width: 1, + color: AppColor.blackLightHover, ), - // Delete button - Positioned( - top: -4, - right: -4, - child: GestureDetector( - onTap: () => - controller.removeImage(controller.pultryImages, entry.key), - child: Container( - width: 24, - height: 24, - decoration: BoxDecoration( - color: Colors.red, - shape: BoxShape.circle, - ), - child: Icon( - Icons.close, - color: Colors.white, - size: 16, - ), - ), - ), + ), + child: ClipRRect( + borderRadius: BorderRadius.circular(8), + child: Image.file( + File(entry.path), + fit: BoxFit.cover, ), - // Upload indicator - if (entry.value == false) - Positioned.fill( - child: Container( - decoration: BoxDecoration( - color: Colors.black.withOpacity(0.5), - borderRadius: BorderRadius.circular(8), - ), - child: Center( - child: SizedBox( - width: 20, - height: 20, - child: CircularProgressIndicator( - strokeWidth: 2, - valueColor: - AlwaysStoppedAnimation( - Colors.white, - ), - ), - ), - ), - ), - ), - ], + ), ), - ) - , + // Delete button + Positioned( + top: 4, + left: 4, + child: GestureDetector( + onTap: () => controller.removeImage( + controller.hallImages, + entry.path, + ), + child: Container( + width: 24, + height: 24, + decoration: BoxDecoration( + color: Colors.red, + shape: BoxShape.circle, + ), + child: Icon( + Icons.close, + color: Colors.white, + size: 16, + ), + ), + ), + ), + + // Upload indicator + ], + ), + ), // Add image button GestureDetector( - onTap: () => controller.pickImageFromCamera(controller.pultryImages), + onTap: () => controller.pickImageFromCamera( + controller.pultryImages, + ), child: Container( height: 80.h, width: 80.w, diff --git a/packages/chicken/lib/features/poultry_science/presentation/widgets/submit_inspection_bottom_sheet/step3_page.dart b/packages/chicken/lib/features/poultry_science/presentation/widgets/submit_inspection_bottom_sheet/step3_page.dart index 662424f..762e3ea 100644 --- a/packages/chicken/lib/features/poultry_science/presentation/widgets/submit_inspection_bottom_sheet/step3_page.dart +++ b/packages/chicken/lib/features/poultry_science/presentation/widgets/submit_inspection_bottom_sheet/step3_page.dart @@ -14,7 +14,7 @@ Widget step3Page(CreateInspectionBottomSheetLogic controller) { SizedBox(height: 35.h), Container( - height: 360.h, + height: 370.h, clipBehavior: Clip.none, width: Get.width, child: farmInfoWidget( @@ -27,7 +27,7 @@ Widget step3Page(CreateInspectionBottomSheetLogic controller) { SizedBox(height: 30.h), Container( - height: 610.h, + height: 625.h, clipBehavior: Clip.none, width: Get.width, child: farmInfoWidget( @@ -39,7 +39,7 @@ Widget step3Page(CreateInspectionBottomSheetLogic controller) { SizedBox(height: 24.h), Container( - height: 310.h, + height: 320.h, clipBehavior: Clip.none, width: Get.width, child: farmInfoWidget( @@ -51,7 +51,7 @@ Widget step3Page(CreateInspectionBottomSheetLogic controller) { SizedBox(height: 24.h), Container( - height: 325.h, + height: 335.h, clipBehavior: Clip.none, width: Get.width, child: farmInfoWidget( @@ -461,8 +461,8 @@ Column facilitiesAndSupport(CreateInspectionBottomSheetLogic controller) { children: [ SizedBox(height: 1.h), - ResourceOverlayDropdown( - items: Resource.success([ 'دارد', 'ندارد']), + ResourceOverlayDropdown( + items: Resource.success(['دارد', 'ندارد']), onChanged: (item) => controller.setHasFacilities(item), itemBuilder: (item) => Text(item), labelBuilder: (selected) => Text(selected ?? ' تسهیلات دریافتی فعال'), diff --git a/packages/chicken/lib/features/poultry_science/presentation/widgets/submit_inspection_bottom_sheet/step4_page.dart b/packages/chicken/lib/features/poultry_science/presentation/widgets/submit_inspection_bottom_sheet/step4_page.dart index b22f760..d845c77 100644 --- a/packages/chicken/lib/features/poultry_science/presentation/widgets/submit_inspection_bottom_sheet/step4_page.dart +++ b/packages/chicken/lib/features/poultry_science/presentation/widgets/submit_inspection_bottom_sheet/step4_page.dart @@ -16,7 +16,7 @@ Widget step4Page(CreateInspectionBottomSheetLogic controller) { SizedBox(height: 35.h), Container( - height: 440.h, + height: 455.h, clipBehavior: Clip.none, width: Get.width, child: farmInfoWidget( @@ -62,7 +62,7 @@ Column documents(CreateInspectionBottomSheetLogic controller) { mainAxisAlignment: MainAxisAlignment.start, spacing: 8, children: [ - ...controller.hallImages.entries.map( + ...controller.hallImages.map( (entry) => Stack( children: [ Container( @@ -78,7 +78,7 @@ Column documents(CreateInspectionBottomSheetLogic controller) { child: ClipRRect( borderRadius: BorderRadius.circular(8), child: Image.file( - File(entry.key.path), + File(entry.path), fit: BoxFit.cover, ), ), @@ -90,7 +90,7 @@ Column documents(CreateInspectionBottomSheetLogic controller) { child: GestureDetector( onTap: () => controller.removeImage( controller.hallImages, - entry.key, + entry.path, ), child: Container( width: 24, @@ -172,7 +172,7 @@ Column documents(CreateInspectionBottomSheetLogic controller) { mainAxisAlignment: MainAxisAlignment.start, spacing: 8, children: [ - ...controller.inputWarehouseImages.entries.map( + ...controller.inputWarehouseImages.map( (entry) => Stack( children: [ Container( @@ -188,18 +188,19 @@ Column documents(CreateInspectionBottomSheetLogic controller) { child: ClipRRect( borderRadius: BorderRadius.circular(8), child: Image.file( - File(entry.key.path), + File(entry.path), fit: BoxFit.cover, ), ), ), // Delete button Positioned( - top: 4, + top: 4, left: 4, child: GestureDetector( - onTap: () => controller.removeInputWarehouseImage( - entry.key, + onTap: () => controller.removeImage( + controller.inputWarehouseImages, + entry.path, ), child: Container( width: 24, @@ -268,7 +269,7 @@ Column documents(CreateInspectionBottomSheetLogic controller) { mainAxisAlignment: MainAxisAlignment.start, spacing: 8, children: [ - ...controller.lossesImages.entries.map( + ...controller.lossesImages.map( (entry) => Stack( children: [ Container( @@ -284,7 +285,7 @@ Column documents(CreateInspectionBottomSheetLogic controller) { child: ClipRRect( borderRadius: BorderRadius.circular(8), child: Image.file( - File(entry.key.path), + File(entry.path), fit: BoxFit.cover, ), ), @@ -294,8 +295,9 @@ Column documents(CreateInspectionBottomSheetLogic controller) { top: 4, left: 4, child: GestureDetector( - onTap: () => controller.removeInputWarehouseImage( - entry.key, + onTap: () => controller.removeImage( + controller.lossesImages, + entry.path, ), child: Container( width: 24, diff --git a/packages/chicken/lib/presentation/utils/nested_keys_utils.dart b/packages/chicken/lib/presentation/utils/nested_keys_utils.dart index df770c2..9373e8c 100644 --- a/packages/chicken/lib/presentation/utils/nested_keys_utils.dart +++ b/packages/chicken/lib/presentation/utils/nested_keys_utils.dart @@ -12,7 +12,16 @@ const int poultrySecondKey = 106; const int poultryThirdKey = 107; //endregion + + + + //region kill house Keys const int killHouseActionKey = 108; //endregion + +//region poultry science Keys +const int poultryScienceActionKey = 109; + +//endregion diff --git a/packages/core/lib/infrastructure/remote/dio_remote.dart b/packages/core/lib/infrastructure/remote/dio_remote.dart index 91660f5..03c11d5 100644 --- a/packages/core/lib/infrastructure/remote/dio_remote.dart +++ b/packages/core/lib/infrastructure/remote/dio_remote.dart @@ -37,11 +37,11 @@ class DioRemote implements IHttpClient { PrettyDioLogger( request: true, enabled: true, - error: false, + requestHeader: true, responseHeader: true, requestBody: true, - responseBody: false, + responseBody: true, ), ); }