diff --git a/packages/chicken/lib/presentation/pages/buy_in_province_all/view.dart b/packages/chicken/lib/presentation/pages/buy_in_province_all/view.dart index 1b8a429..8a01cbc 100644 --- a/packages/chicken/lib/presentation/pages/buy_in_province_all/view.dart +++ b/packages/chicken/lib/presentation/pages/buy_in_province_all/view.dart @@ -23,7 +23,7 @@ class BuyInProvinceAllPage extends GetView { itemBuilder: (context, index) { var item = data.value.data!.results![index]; return ObxValue((val) { - return ListItem2( + return ExpandableListItem2( selected: val.contains(index), onTap: () => controller.isExpandedList.toggle(index), index: index, diff --git a/packages/chicken/lib/presentation/pages/buy_in_province_waiting/view.dart b/packages/chicken/lib/presentation/pages/buy_in_province_waiting/view.dart index 7ecf44e..d556141 100644 --- a/packages/chicken/lib/presentation/pages/buy_in_province_waiting/view.dart +++ b/packages/chicken/lib/presentation/pages/buy_in_province_waiting/view.dart @@ -24,7 +24,7 @@ class BuyInProvinceWaitingPage extends GetView { itemBuilder: (context, index) { var item = data.value.data!.results![index]; return ObxValue((val) { - return ListItem2( + return ExpandableListItem2( selected: val.contains(index), onTap: () => controller.isExpandedList.toggle(index), index: index, diff --git a/packages/chicken/lib/presentation/pages/buy_out_of_province/view.dart b/packages/chicken/lib/presentation/pages/buy_out_of_province/view.dart index bc73e58..e05f5a6 100644 --- a/packages/chicken/lib/presentation/pages/buy_out_of_province/view.dart +++ b/packages/chicken/lib/presentation/pages/buy_out_of_province/view.dart @@ -36,7 +36,7 @@ class BuyOutOfProvincePage extends GetView { itemBuilder: (context, index) { var item = data.value.data!.results![index]; return ObxValue((val) { - return ListItem2( + return ExpandableListItem2( selected: val.contains(index), onTap: () => controller.isExpandedList.toggle(index), index: index, diff --git a/packages/chicken/lib/presentation/pages/sales_in_province/view.dart b/packages/chicken/lib/presentation/pages/sales_in_province/view.dart index 65ee593..6930717 100644 --- a/packages/chicken/lib/presentation/pages/sales_in_province/view.dart +++ b/packages/chicken/lib/presentation/pages/sales_in_province/view.dart @@ -45,7 +45,7 @@ class SalesInProvincePage extends GetView { itemBuilder: (context, index) { var item = data.value.data!.results![index]; return ObxValue((val) { - return ListItem2( + return ExpandableListItem2( selected: val.contains(index), onTap: () => controller.isExpandedList.toggle(index), index: index, diff --git a/packages/chicken/lib/presentation/pages/sales_out_of_province/view.dart b/packages/chicken/lib/presentation/pages/sales_out_of_province/view.dart index 827b542..6d89403 100644 --- a/packages/chicken/lib/presentation/pages/sales_out_of_province/view.dart +++ b/packages/chicken/lib/presentation/pages/sales_out_of_province/view.dart @@ -42,7 +42,7 @@ class SalesOutOfProvincePage extends GetView { itemBuilder: (context, index) { var item = data.value.data!.results![index]; return ObxValue((val) { - return ListItem2( + return ExpandableListItem2( selected: val.contains(index), onTap: () => controller.isExpandedList.toggle(index), index: index, diff --git a/packages/chicken/lib/presentation/pages/sales_out_of_province_buyers/view.dart b/packages/chicken/lib/presentation/pages/sales_out_of_province_buyers/view.dart index fb906d6..311aee8 100644 --- a/packages/chicken/lib/presentation/pages/sales_out_of_province_buyers/view.dart +++ b/packages/chicken/lib/presentation/pages/sales_out_of_province_buyers/view.dart @@ -36,7 +36,7 @@ class SalesOutOfProvinceBuyersPage extends GetView controller.isExpandedList.toggle(index), index: index, diff --git a/packages/chicken/lib/presentation/pages/sales_out_of_province_sales_list/view.dart b/packages/chicken/lib/presentation/pages/sales_out_of_province_sales_list/view.dart index ab1ce40..6430e77 100644 --- a/packages/chicken/lib/presentation/pages/sales_out_of_province_sales_list/view.dart +++ b/packages/chicken/lib/presentation/pages/sales_out_of_province_sales_list/view.dart @@ -31,7 +31,7 @@ class SalesOutOfProvinceSalesListPage extends GetView controller.isExpandedList.toggle(index), index: index, diff --git a/packages/chicken/lib/presentation/pages/segmentation/view.dart b/packages/chicken/lib/presentation/pages/segmentation/view.dart index 87a2d4a..a028920 100644 --- a/packages/chicken/lib/presentation/pages/segmentation/view.dart +++ b/packages/chicken/lib/presentation/pages/segmentation/view.dart @@ -35,7 +35,7 @@ class SegmentationPage extends GetView { itemBuilder: (context, index) { var item = data.value.data!.results![index]; return ObxValue((val) { - return ListItem2( + return ExpandableListItem2( selected: val.contains(index), onTap: () => controller.isExpandedList.toggle(index), index: index, diff --git a/packages/core/lib/presentation/widget/bottom_sheet/base_bottom_sheet.dart b/packages/core/lib/presentation/widget/bottom_sheet/base_bottom_sheet.dart index 55fb489..ac7db9c 100644 --- a/packages/core/lib/presentation/widget/bottom_sheet/base_bottom_sheet.dart +++ b/packages/core/lib/presentation/widget/bottom_sheet/base_bottom_sheet.dart @@ -3,9 +3,16 @@ import 'package:flutter/material.dart'; import 'package:rasadyar_core/presentation/common/app_color.dart'; class BaseBottomSheet extends StatelessWidget { - const BaseBottomSheet({super.key, required this.child, this.height, this.bgColor}); + const BaseBottomSheet({ + super.key, + this.child, + this.height, + this.bgColor, + this.rootChild, + }):assert(child==null || rootChild==null, 'You can only provide one of child or rootChild'); - final Widget child; + final Widget? child; + final Widget? rootChild; final double? height; final Color? bgColor; @@ -51,8 +58,8 @@ class BaseBottomSheet extends StatelessWidget { ], ), ), - SizedBox(height:8), - Expanded(child: SingleChildScrollView(child: child)), + SizedBox(height: 8), + Expanded(child: rootChild ?? SingleChildScrollView(child: child)), ], ), ), diff --git a/packages/core/lib/presentation/widget/list_item/list_item2.dart b/packages/core/lib/presentation/widget/list_item/list_item2.dart index fb8eb81..cd62606 100644 --- a/packages/core/lib/presentation/widget/list_item/list_item2.dart +++ b/packages/core/lib/presentation/widget/list_item/list_item2.dart @@ -1,8 +1,8 @@ import 'package:flutter/material.dart'; import 'package:rasadyar_core/core.dart'; -class ListItem2 extends StatelessWidget { - const ListItem2({ +class ExpandableListItem2 extends StatelessWidget { + const ExpandableListItem2({ super.key, required this.index, required this.child, @@ -115,3 +115,98 @@ class ListItem2 extends StatelessWidget { ); } } + +class ListItem2 extends StatelessWidget { + const ListItem2({ + super.key, + required this.index, + required this.child, + required this.labelColor, + required this.labelIcon, + this.onTap, + + this.labelIconColor = AppColor.mediumGreyDarkHover, + }); + + final int index; + final Widget child; + final Color labelColor; + final String labelIcon; + final Color? labelIconColor; + final VoidCallback? onTap; + + @override + Widget build(BuildContext context) { + return GestureDetector( + onTap: onTap, + child: Container( + width: Get.width, + margin: const EdgeInsets.fromLTRB(0, 0, 10, 0), + decoration: BoxDecoration( + color: labelColor, + borderRadius: BorderRadius.circular(8), + border: Border.all(width: 1, color: AppColor.lightGreyNormalHover), + ), + child: Stack( + clipBehavior: Clip.none, + alignment: Alignment.centerRight, + children: [ + Row( + children: [ + Expanded( + child: Container( + height: 75, + decoration: BoxDecoration( + color: Colors.white, + borderRadius: BorderRadius.only( + bottomLeft: Radius.zero, + bottomRight: Radius.circular(8), + topLeft: Radius.zero, + topRight: Radius.circular(8), + ), + ), + clipBehavior: Clip.antiAlias, + child: child, + ), + ), + Container( + width: 20, + child: Center( + child: SvgGenImage.vec(labelIcon).svg( + width: 16.w, + height: 16.h, + //TODO + colorFilter: ColorFilter.mode( + labelIconColor ?? AppColor.mediumGreyDarkActive, + BlendMode.srcIn, + ), + ), + ), + ), + ], + ), + + Positioned( + right: -12, + child: Container( + width: index < 999 ? 24 : null, + height: index < 999 ? 24 : null, + padding: EdgeInsets.all(2), + decoration: BoxDecoration( + color: AppColor.greenLightHover, + borderRadius: BorderRadius.circular(4), + border: Border.all(width: 0.50, color: AppColor.greenDarkActive), + ), + alignment: Alignment.center, + child: Text( + (index + 1).toString(), + style: AppFonts.yekan12.copyWith(color: Colors.black), + ), + ), + ), + ], + ), + ), + ); + } +} diff --git a/packages/core/lib/utils/map_utils.dart b/packages/core/lib/utils/map_utils.dart index a313a1e..3278207 100644 --- a/packages/core/lib/utils/map_utils.dart +++ b/packages/core/lib/utils/map_utils.dart @@ -10,12 +10,8 @@ Map buildQueryParams({ DateTime? toDate, String? role, String? state, - }) { final params = {}; - - - if (fromDate != null) { params['date1'] = fromDate.formattedDashedGregorian; } @@ -30,7 +26,6 @@ Map buildQueryParams({ params['value'] = value ?? ''; - if (page != null) { params['page'] = page; } @@ -53,3 +48,69 @@ Map buildQueryParams({ return params; } + +Map? buildRawQueryParams({ + Map? queryParams, + String? search, + String? value, + int? page, + int? pageSize, + DateTime? fromDate, + DateTime? toDate, + String? role, + String? state, + double? centerLat, + double? centerLng, + double? radius, +}) { + final params = {}; + if (fromDate != null) { + params['date1'] = fromDate.formattedDashedGregorian; + } + + if (toDate != null) { + params['date2'] = toDate.formattedDashedGregorian; + } + + if (search != null && search.isNotEmpty) { + params['search'] = search; + } + + if (value != null) { + params['value'] = value ?? ''; + } + + if (page != null) { + params['page'] = page; + } + + if (pageSize != null) { + params['page_size'] = pageSize; + } + + if (role != null && role.isNotEmpty) { + params['role'] = role; + } + + if (state != null && state.isNotEmpty) { + params['state'] = state; + } + + if (queryParams != null) { + params.addAll(queryParams); + } + + if (centerLat != null) { + params['center_lat'] = centerLat ?? ''; + } + + if (centerLng != null) { + params['center_lon'] = centerLng ?? ''; + } + + if (radius != null) { + params['radius'] = radius ?? ''; + } + + return params.keys.isEmpty ? null : params; +} diff --git a/packages/inspection/lib/data/data_source/remote/inspection/inspection_remote.dart b/packages/inspection/lib/data/data_source/remote/inspection/inspection_remote.dart index 4641e70..d267c96 100644 --- a/packages/inspection/lib/data/data_source/remote/inspection/inspection_remote.dart +++ b/packages/inspection/lib/data/data_source/remote/inspection/inspection_remote.dart @@ -13,10 +13,10 @@ abstract class InspectionRemoteDataSource { /// containing the list of inspections. Future>> fetchInspections(String userId); - Future?> getNearbyLocation({ - double? centerLat, - double? centerLng, - double? radius, + double? centerLat, + double? centerLng, + double? radius, + String? value, }); } diff --git a/packages/inspection/lib/data/data_source/remote/inspection/inspection_remote_imp.dart b/packages/inspection/lib/data/data_source/remote/inspection/inspection_remote_imp.dart index 6309fa6..30a8110 100644 --- a/packages/inspection/lib/data/data_source/remote/inspection/inspection_remote_imp.dart +++ b/packages/inspection/lib/data/data_source/remote/inspection/inspection_remote_imp.dart @@ -25,13 +25,19 @@ class InspectionRemoteDataSourceImp implements InspectionRemoteDataSource { double? centerLat, double? centerLng, double? radius, + String? value, }) async { DioRemote dioRemote = DioRemote(baseUrl: 'https://habackend.rasadyaar.ir/'); await dioRemote.init(); var res = await dioRemote.get>( 'poultry-loc/', - queryParameters: {'center_lat': centerLat, 'center_lng': centerLng, 'radius': radius}, + queryParameters: buildRawQueryParams( + centerLat: centerLat, + centerLng: centerLng, + radius: radius, + value: value, + ), headers: {'Content-Type': 'application/json'}, fromJsonList: (json) => json.map((item) => PoultryLocationModel.fromJson(item as Map)).toList(), diff --git a/packages/inspection/lib/data/model/response/hatching_details/hatching_details.dart b/packages/inspection/lib/data/model/response/hatching_details/hatching_details.dart new file mode 100644 index 0000000..f8b606d --- /dev/null +++ b/packages/inspection/lib/data/model/response/hatching_details/hatching_details.dart @@ -0,0 +1,210 @@ +import 'package:freezed_annotation/freezed_annotation.dart'; + +part 'hatching_details.freezed.dart'; +part 'hatching_details.g.dart'; + +@freezed +abstract class HatchingDetails with _$HatchingDetails { + const factory HatchingDetails({ + required int id, + String? chainCompany, + int? age, + dynamic inspectionLosses, + VetFarm? vetFarm, + ActiveKill? activeKill, + KillingInfo? killingInfo, + FreeGovernmentalInfo? freeGovernmentalInfo, + String? key, + DateTime? createDate, + DateTime? modifyDate, + bool? trash, + bool? hasChainCompany, + dynamic poultryIdForeignKey, + dynamic poultryHatchingIdKey, + int? quantity, + int? losses, + int? leftOver, + int? killedQuantity, + int? extraKilledQuantity, + double? governmentalKilledQuantity, + double? governmentalQuantity, + double? freeKilledQuantity, + double? freeQuantity, + double? chainKilledQuantity, + double? chainKilledWeight, + double? outProvinceKilledWeight, + double? outProvinceKilledQuantity, + double? exportKilledWeight, + double? exportKilledQuantity, + double? totalCommitment, + String? commitmentType, + double? totalCommitmentQuantity, + double? totalFreeCommitmentQuantity, + double? totalFreeCommitmentWeight, + double? totalKilledWeight, + double? totalAverageKilledWeight, + int? requestLeftOver, + int? hall, + DateTime? date, + DateTime? predicateDate, + String? chickenBreed, + int? period, + String? allowHatching, + String? state, + bool? archive, + bool? violation, + dynamic message, + dynamic registrar, + List? breed, + int? cityNumber, + String? cityName, + int? provinceNumber, + String? provinceName, + LastChange? lastChange, + int? chickenAge, + int? nowAge, + LatestHatchingChange? latestHatchingChange, + dynamic violationReport, + String? violationMessage, + dynamic violationImage, + dynamic violationReporter, + dynamic violationReportDate, + dynamic violationReportEditor, + dynamic violationReportEditDate, + int? totalLosses, + int? directLosses, + dynamic directLossesInputer, + dynamic directLossesDate, + dynamic directLossesEditor, + dynamic directLossesLastEditDate, + dynamic endPeriodLossesInputer, + dynamic endPeriodLossesDate, + dynamic endPeriodLossesEditor, + dynamic endPeriodLossesLastEditDate, + String? breedingUniqueId, + String? licenceNumber, + bool? temporaryTrash, + bool? temporaryDeleted, + dynamic firstDateInputArchive, + dynamic secondDateInputArchive, + dynamic inputArchiver, + dynamic outputArchiveDate, + dynamic outputArchiver, + double? barDifferenceRequestWeight, + double? barDifferenceRequestQuantity, + dynamic healthCertificate, + int? samasatDischargePercentage, + String? personTypeName, + String? interactTypeName, + String? unionTypeName, + String? certId, + int? increaseQuantity, + dynamic tenantFullname, + dynamic tenantNationalCode, + dynamic tenantMobile, + dynamic tenantCity, + bool? hasTenant, + dynamic createdBy, + dynamic modifiedBy, + int? poultry, + }) = _HatchingDetails; + + factory HatchingDetails.fromJson(Map json) => + _$HatchingDetailsFromJson(json); +} + +@freezed +abstract class VetFarm with _$VetFarm { + const factory VetFarm({ + String? vetFarmFullName, + String? vetFarmMobile, + }) = _VetFarm; + + factory VetFarm.fromJson(Map json) => + _$VetFarmFromJson(json); +} + +@freezed +abstract class ActiveKill with _$ActiveKill { + const factory ActiveKill({ + bool? activeKill, + int? countOfRequest, + }) = _ActiveKill; + + factory ActiveKill.fromJson(Map json) => + _$ActiveKillFromJson(json); +} + +@freezed +abstract class KillingInfo with _$KillingInfo { + const factory KillingInfo({ + String? violationMessage, + int? provinceKillRequests, + int? provinceKillRequestsQuantity, + double? provinceKillRequestsWeight, + int? killHouseRequests, + int? killHouseRequestsFirstQuantity, + double? killHouseRequestsFirstWeight, + int? barCompleteWithKillHouse, + int? acceptedRealQuantityFinal, + double? acceptedRealWightFinal, + int? wareHouseBars, + int? wareHouseBarsQuantity, + double? wareHouseBarsWeight, + double? wareHouseBarsWeightLose, + }) = _KillingInfo; + + factory KillingInfo.fromJson(Map json) => + _$KillingInfoFromJson(json); +} + +@freezed +abstract class FreeGovernmentalInfo with _$FreeGovernmentalInfo { + const factory FreeGovernmentalInfo({ + int? governmentalAllocatedQuantity, + double? totalCommitmentQuantity, + int? freeAllocatedQuantity, + double? totalFreeCommitmentQuantity, + int? leftTotalFreeCommitmentQuantity, + }) = _FreeGovernmentalInfo; + + factory FreeGovernmentalInfo.fromJson(Map json) => + _$FreeGovernmentalInfoFromJson(json); +} + +@freezed +abstract class Breed with _$Breed { + const factory Breed({ + String? breed, + int? mainQuantity, + int? remainQuantity, + }) = _Breed; + + factory Breed.fromJson(Map json) => + _$BreedFromJson(json); +} + +@freezed +abstract class LastChange with _$LastChange { + const factory LastChange({ + DateTime? date, + String? role, + String? type, + String? fullName, + }) = _LastChange; + + factory LastChange.fromJson(Map json) => + _$LastChangeFromJson(json); +} + +@freezed +abstract class LatestHatchingChange with _$LatestHatchingChange { + const factory LatestHatchingChange({ + DateTime? date, + String? role, + String? fullName, + }) = _LatestHatchingChange; + + factory LatestHatchingChange.fromJson(Map json) => + _$LatestHatchingChangeFromJson(json); +} diff --git a/packages/inspection/lib/data/model/response/hatching_details/hatching_details.freezed.dart b/packages/inspection/lib/data/model/response/hatching_details/hatching_details.freezed.dart new file mode 100644 index 0000000..e7d53d6 --- /dev/null +++ b/packages/inspection/lib/data/model/response/hatching_details/hatching_details.freezed.dart @@ -0,0 +1,2648 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// coverage:ignore-file +// ignore_for_file: type=lint +// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark + +part of 'hatching_details.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; + +/// @nodoc +mixin _$HatchingDetails { + + int get id; String? get chainCompany; int? get age; dynamic get inspectionLosses; VetFarm? get vetFarm; ActiveKill? get activeKill; KillingInfo? get killingInfo; FreeGovernmentalInfo? get freeGovernmentalInfo; String? get key; DateTime? get createDate; DateTime? get modifyDate; bool? get trash; bool? get hasChainCompany; dynamic get poultryIdForeignKey; dynamic get poultryHatchingIdKey; int? get quantity; int? get losses; int? get leftOver; int? get killedQuantity; int? get extraKilledQuantity; double? get governmentalKilledQuantity; double? get governmentalQuantity; double? get freeKilledQuantity; double? get freeQuantity; double? get chainKilledQuantity; double? get chainKilledWeight; double? get outProvinceKilledWeight; double? get outProvinceKilledQuantity; double? get exportKilledWeight; double? get exportKilledQuantity; double? get totalCommitment; String? get commitmentType; double? get totalCommitmentQuantity; double? get totalFreeCommitmentQuantity; double? get totalFreeCommitmentWeight; double? get totalKilledWeight; double? get totalAverageKilledWeight; int? get requestLeftOver; int? get hall; DateTime? get date; DateTime? get predicateDate; String? get chickenBreed; int? get period; String? get allowHatching; String? get state; bool? get archive; bool? get violation; dynamic get message; dynamic get registrar; List? get breed; int? get cityNumber; String? get cityName; int? get provinceNumber; String? get provinceName; LastChange? get lastChange; int? get chickenAge; int? get nowAge; LatestHatchingChange? get latestHatchingChange; dynamic get violationReport; String? get violationMessage; dynamic get violationImage; dynamic get violationReporter; dynamic get violationReportDate; dynamic get violationReportEditor; dynamic get violationReportEditDate; int? get totalLosses; int? get directLosses; dynamic get directLossesInputer; dynamic get directLossesDate; dynamic get directLossesEditor; dynamic get directLossesLastEditDate; dynamic get endPeriodLossesInputer; dynamic get endPeriodLossesDate; dynamic get endPeriodLossesEditor; dynamic get endPeriodLossesLastEditDate; String? get breedingUniqueId; String? get licenceNumber; bool? get temporaryTrash; bool? get temporaryDeleted; dynamic get firstDateInputArchive; dynamic get secondDateInputArchive; dynamic get inputArchiver; dynamic get outputArchiveDate; dynamic get outputArchiver; double? get barDifferenceRequestWeight; double? get barDifferenceRequestQuantity; dynamic get healthCertificate; int? get samasatDischargePercentage; String? get personTypeName; String? get interactTypeName; String? get unionTypeName; String? get certId; int? get increaseQuantity; dynamic get tenantFullname; dynamic get tenantNationalCode; dynamic get tenantMobile; dynamic get tenantCity; bool? get hasTenant; dynamic get createdBy; dynamic get modifiedBy; int? get poultry; +/// Create a copy of HatchingDetails +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$HatchingDetailsCopyWith get copyWith => _$HatchingDetailsCopyWithImpl(this as HatchingDetails, _$identity); + + /// Serializes this HatchingDetails to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is HatchingDetails&&(identical(other.id, id) || other.id == id)&&(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.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)&&const DeepCollectionEquality().equals(other.poultryIdForeignKey, poultryIdForeignKey)&&const DeepCollectionEquality().equals(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)&&const DeepCollectionEquality().equals(other.message, message)&&const DeepCollectionEquality().equals(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)&&const DeepCollectionEquality().equals(other.violationReport, violationReport)&&(identical(other.violationMessage, violationMessage) || other.violationMessage == violationMessage)&&const DeepCollectionEquality().equals(other.violationImage, violationImage)&&const DeepCollectionEquality().equals(other.violationReporter, violationReporter)&&const DeepCollectionEquality().equals(other.violationReportDate, violationReportDate)&&const DeepCollectionEquality().equals(other.violationReportEditor, violationReportEditor)&&const DeepCollectionEquality().equals(other.violationReportEditDate, violationReportEditDate)&&(identical(other.totalLosses, totalLosses) || other.totalLosses == totalLosses)&&(identical(other.directLosses, directLosses) || other.directLosses == directLosses)&&const DeepCollectionEquality().equals(other.directLossesInputer, directLossesInputer)&&const DeepCollectionEquality().equals(other.directLossesDate, directLossesDate)&&const DeepCollectionEquality().equals(other.directLossesEditor, directLossesEditor)&&const DeepCollectionEquality().equals(other.directLossesLastEditDate, directLossesLastEditDate)&&const DeepCollectionEquality().equals(other.endPeriodLossesInputer, endPeriodLossesInputer)&&const DeepCollectionEquality().equals(other.endPeriodLossesDate, endPeriodLossesDate)&&const DeepCollectionEquality().equals(other.endPeriodLossesEditor, endPeriodLossesEditor)&&const DeepCollectionEquality().equals(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)&&const DeepCollectionEquality().equals(other.firstDateInputArchive, firstDateInputArchive)&&const DeepCollectionEquality().equals(other.secondDateInputArchive, secondDateInputArchive)&&const DeepCollectionEquality().equals(other.inputArchiver, inputArchiver)&&const DeepCollectionEquality().equals(other.outputArchiveDate, outputArchiveDate)&&const DeepCollectionEquality().equals(other.outputArchiver, outputArchiver)&&(identical(other.barDifferenceRequestWeight, barDifferenceRequestWeight) || other.barDifferenceRequestWeight == barDifferenceRequestWeight)&&(identical(other.barDifferenceRequestQuantity, barDifferenceRequestQuantity) || other.barDifferenceRequestQuantity == barDifferenceRequestQuantity)&&const DeepCollectionEquality().equals(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)&&const DeepCollectionEquality().equals(other.tenantFullname, tenantFullname)&&const DeepCollectionEquality().equals(other.tenantNationalCode, tenantNationalCode)&&const DeepCollectionEquality().equals(other.tenantMobile, tenantMobile)&&const DeepCollectionEquality().equals(other.tenantCity, tenantCity)&&(identical(other.hasTenant, hasTenant) || other.hasTenant == hasTenant)&&const DeepCollectionEquality().equals(other.createdBy, createdBy)&&const DeepCollectionEquality().equals(other.modifiedBy, modifiedBy)&&(identical(other.poultry, poultry) || other.poultry == poultry)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,id,chainCompany,age,const DeepCollectionEquality().hash(inspectionLosses),vetFarm,activeKill,killingInfo,freeGovernmentalInfo,key,createDate,modifyDate,trash,hasChainCompany,const DeepCollectionEquality().hash(poultryIdForeignKey),const DeepCollectionEquality().hash(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,const DeepCollectionEquality().hash(message),const DeepCollectionEquality().hash(registrar),const DeepCollectionEquality().hash(breed),cityNumber,cityName,provinceNumber,provinceName,lastChange,chickenAge,nowAge,latestHatchingChange,const DeepCollectionEquality().hash(violationReport),violationMessage,const DeepCollectionEquality().hash(violationImage),const DeepCollectionEquality().hash(violationReporter),const DeepCollectionEquality().hash(violationReportDate),const DeepCollectionEquality().hash(violationReportEditor),const DeepCollectionEquality().hash(violationReportEditDate),totalLosses,directLosses,const DeepCollectionEquality().hash(directLossesInputer),const DeepCollectionEquality().hash(directLossesDate),const DeepCollectionEquality().hash(directLossesEditor),const DeepCollectionEquality().hash(directLossesLastEditDate),const DeepCollectionEquality().hash(endPeriodLossesInputer),const DeepCollectionEquality().hash(endPeriodLossesDate),const DeepCollectionEquality().hash(endPeriodLossesEditor),const DeepCollectionEquality().hash(endPeriodLossesLastEditDate),breedingUniqueId,licenceNumber,temporaryTrash,temporaryDeleted,const DeepCollectionEquality().hash(firstDateInputArchive),const DeepCollectionEquality().hash(secondDateInputArchive),const DeepCollectionEquality().hash(inputArchiver),const DeepCollectionEquality().hash(outputArchiveDate),const DeepCollectionEquality().hash(outputArchiver),barDifferenceRequestWeight,barDifferenceRequestQuantity,const DeepCollectionEquality().hash(healthCertificate),samasatDischargePercentage,personTypeName,interactTypeName,unionTypeName,certId,increaseQuantity,const DeepCollectionEquality().hash(tenantFullname),const DeepCollectionEquality().hash(tenantNationalCode),const DeepCollectionEquality().hash(tenantMobile),const DeepCollectionEquality().hash(tenantCity),hasTenant,const DeepCollectionEquality().hash(createdBy),const DeepCollectionEquality().hash(modifiedBy),poultry]); + +@override +String toString() { + return 'HatchingDetails(id: $id, chainCompany: $chainCompany, age: $age, inspectionLosses: $inspectionLosses, vetFarm: $vetFarm, activeKill: $activeKill, killingInfo: $killingInfo, freeGovernmentalInfo: $freeGovernmentalInfo, 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, createdBy: $createdBy, modifiedBy: $modifiedBy, poultry: $poultry)'; +} + + +} + +/// @nodoc +abstract mixin class $HatchingDetailsCopyWith<$Res> { + factory $HatchingDetailsCopyWith(HatchingDetails value, $Res Function(HatchingDetails) _then) = _$HatchingDetailsCopyWithImpl; +@useResult +$Res call({ + int id, String? chainCompany, int? age, dynamic inspectionLosses, VetFarm? vetFarm, ActiveKill? activeKill, KillingInfo? killingInfo, FreeGovernmentalInfo? freeGovernmentalInfo, String? key, DateTime? createDate, DateTime? modifyDate, bool? trash, bool? hasChainCompany, dynamic poultryIdForeignKey, dynamic poultryHatchingIdKey, int? quantity, int? losses, int? leftOver, int? killedQuantity, int? extraKilledQuantity, double? governmentalKilledQuantity, double? governmentalQuantity, double? freeKilledQuantity, double? freeQuantity, double? chainKilledQuantity, double? chainKilledWeight, double? outProvinceKilledWeight, double? outProvinceKilledQuantity, double? exportKilledWeight, double? exportKilledQuantity, double? totalCommitment, String? commitmentType, double? totalCommitmentQuantity, double? totalFreeCommitmentQuantity, double? totalFreeCommitmentWeight, double? totalKilledWeight, double? totalAverageKilledWeight, int? requestLeftOver, int? hall, DateTime? date, DateTime? predicateDate, String? chickenBreed, int? period, String? allowHatching, String? state, bool? archive, bool? violation, dynamic message, dynamic registrar, List? breed, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, LastChange? lastChange, int? chickenAge, int? nowAge, LatestHatchingChange? latestHatchingChange, dynamic violationReport, String? violationMessage, dynamic violationImage, dynamic violationReporter, dynamic violationReportDate, dynamic violationReportEditor, dynamic violationReportEditDate, int? totalLosses, int? directLosses, dynamic directLossesInputer, dynamic directLossesDate, dynamic directLossesEditor, dynamic directLossesLastEditDate, dynamic endPeriodLossesInputer, dynamic endPeriodLossesDate, dynamic endPeriodLossesEditor, dynamic endPeriodLossesLastEditDate, String? breedingUniqueId, String? licenceNumber, bool? temporaryTrash, bool? temporaryDeleted, dynamic firstDateInputArchive, dynamic secondDateInputArchive, dynamic inputArchiver, dynamic outputArchiveDate, dynamic outputArchiver, double? barDifferenceRequestWeight, double? barDifferenceRequestQuantity, dynamic healthCertificate, int? samasatDischargePercentage, String? personTypeName, String? interactTypeName, String? unionTypeName, String? certId, int? increaseQuantity, dynamic tenantFullname, dynamic tenantNationalCode, dynamic tenantMobile, dynamic tenantCity, bool? hasTenant, dynamic createdBy, dynamic modifiedBy, int? poultry +}); + + +$VetFarmCopyWith<$Res>? get vetFarm;$ActiveKillCopyWith<$Res>? get activeKill;$KillingInfoCopyWith<$Res>? get killingInfo;$FreeGovernmentalInfoCopyWith<$Res>? get freeGovernmentalInfo;$LastChangeCopyWith<$Res>? get lastChange;$LatestHatchingChangeCopyWith<$Res>? get latestHatchingChange; + +} +/// @nodoc +class _$HatchingDetailsCopyWithImpl<$Res> + implements $HatchingDetailsCopyWith<$Res> { + _$HatchingDetailsCopyWithImpl(this._self, this._then); + + final HatchingDetails _self; + final $Res Function(HatchingDetails) _then; + +/// Create a copy of HatchingDetails +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? id = null,Object? chainCompany = freezed,Object? age = freezed,Object? inspectionLosses = freezed,Object? vetFarm = freezed,Object? activeKill = freezed,Object? killingInfo = freezed,Object? freeGovernmentalInfo = 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? createdBy = freezed,Object? modifiedBy = freezed,Object? poultry = freezed,}) { + return _then(_self.copyWith( +id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable +as int,chainCompany: freezed == chainCompany ? _self.chainCompany : chainCompany // ignore: cast_nullable_to_non_nullable +as String?,age: freezed == age ? _self.age : age // ignore: cast_nullable_to_non_nullable +as int?,inspectionLosses: freezed == inspectionLosses ? _self.inspectionLosses : inspectionLosses // ignore: cast_nullable_to_non_nullable +as dynamic,vetFarm: freezed == vetFarm ? _self.vetFarm : vetFarm // ignore: cast_nullable_to_non_nullable +as VetFarm?,activeKill: freezed == activeKill ? _self.activeKill : activeKill // ignore: cast_nullable_to_non_nullable +as ActiveKill?,killingInfo: freezed == killingInfo ? _self.killingInfo : killingInfo // ignore: cast_nullable_to_non_nullable +as KillingInfo?,freeGovernmentalInfo: freezed == freeGovernmentalInfo ? _self.freeGovernmentalInfo : freeGovernmentalInfo // ignore: cast_nullable_to_non_nullable +as FreeGovernmentalInfo?,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 DateTime?,modifyDate: freezed == modifyDate ? _self.modifyDate : modifyDate // ignore: cast_nullable_to_non_nullable +as DateTime?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable +as bool?,hasChainCompany: freezed == hasChainCompany ? _self.hasChainCompany : hasChainCompany // ignore: cast_nullable_to_non_nullable +as bool?,poultryIdForeignKey: freezed == poultryIdForeignKey ? _self.poultryIdForeignKey : poultryIdForeignKey // ignore: cast_nullable_to_non_nullable +as dynamic,poultryHatchingIdKey: freezed == poultryHatchingIdKey ? _self.poultryHatchingIdKey : poultryHatchingIdKey // ignore: cast_nullable_to_non_nullable +as dynamic,quantity: freezed == quantity ? _self.quantity : quantity // ignore: cast_nullable_to_non_nullable +as int?,losses: freezed == losses ? _self.losses : losses // ignore: cast_nullable_to_non_nullable +as int?,leftOver: freezed == leftOver ? _self.leftOver : leftOver // ignore: cast_nullable_to_non_nullable +as int?,killedQuantity: freezed == killedQuantity ? _self.killedQuantity : killedQuantity // ignore: cast_nullable_to_non_nullable +as int?,extraKilledQuantity: freezed == extraKilledQuantity ? _self.extraKilledQuantity : extraKilledQuantity // ignore: cast_nullable_to_non_nullable +as int?,governmentalKilledQuantity: freezed == governmentalKilledQuantity ? _self.governmentalKilledQuantity : governmentalKilledQuantity // ignore: cast_nullable_to_non_nullable +as double?,governmentalQuantity: freezed == governmentalQuantity ? _self.governmentalQuantity : governmentalQuantity // ignore: cast_nullable_to_non_nullable +as double?,freeKilledQuantity: freezed == freeKilledQuantity ? _self.freeKilledQuantity : freeKilledQuantity // ignore: cast_nullable_to_non_nullable +as double?,freeQuantity: freezed == freeQuantity ? _self.freeQuantity : freeQuantity // ignore: cast_nullable_to_non_nullable +as double?,chainKilledQuantity: freezed == chainKilledQuantity ? _self.chainKilledQuantity : chainKilledQuantity // ignore: cast_nullable_to_non_nullable +as double?,chainKilledWeight: freezed == chainKilledWeight ? _self.chainKilledWeight : chainKilledWeight // ignore: cast_nullable_to_non_nullable +as double?,outProvinceKilledWeight: freezed == outProvinceKilledWeight ? _self.outProvinceKilledWeight : outProvinceKilledWeight // ignore: cast_nullable_to_non_nullable +as double?,outProvinceKilledQuantity: freezed == outProvinceKilledQuantity ? _self.outProvinceKilledQuantity : outProvinceKilledQuantity // ignore: cast_nullable_to_non_nullable +as double?,exportKilledWeight: freezed == exportKilledWeight ? _self.exportKilledWeight : exportKilledWeight // ignore: cast_nullable_to_non_nullable +as double?,exportKilledQuantity: freezed == exportKilledQuantity ? _self.exportKilledQuantity : exportKilledQuantity // ignore: cast_nullable_to_non_nullable +as double?,totalCommitment: freezed == totalCommitment ? _self.totalCommitment : totalCommitment // ignore: cast_nullable_to_non_nullable +as double?,commitmentType: freezed == commitmentType ? _self.commitmentType : commitmentType // ignore: cast_nullable_to_non_nullable +as String?,totalCommitmentQuantity: freezed == totalCommitmentQuantity ? _self.totalCommitmentQuantity : totalCommitmentQuantity // ignore: cast_nullable_to_non_nullable +as double?,totalFreeCommitmentQuantity: freezed == totalFreeCommitmentQuantity ? _self.totalFreeCommitmentQuantity : totalFreeCommitmentQuantity // ignore: cast_nullable_to_non_nullable +as double?,totalFreeCommitmentWeight: freezed == totalFreeCommitmentWeight ? _self.totalFreeCommitmentWeight : totalFreeCommitmentWeight // ignore: cast_nullable_to_non_nullable +as double?,totalKilledWeight: freezed == totalKilledWeight ? _self.totalKilledWeight : totalKilledWeight // ignore: cast_nullable_to_non_nullable +as double?,totalAverageKilledWeight: freezed == totalAverageKilledWeight ? _self.totalAverageKilledWeight : totalAverageKilledWeight // ignore: cast_nullable_to_non_nullable +as double?,requestLeftOver: freezed == requestLeftOver ? _self.requestLeftOver : requestLeftOver // ignore: cast_nullable_to_non_nullable +as int?,hall: freezed == hall ? _self.hall : hall // ignore: cast_nullable_to_non_nullable +as int?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as DateTime?,predicateDate: freezed == predicateDate ? _self.predicateDate : predicateDate // ignore: cast_nullable_to_non_nullable +as DateTime?,chickenBreed: freezed == chickenBreed ? _self.chickenBreed : chickenBreed // ignore: cast_nullable_to_non_nullable +as String?,period: freezed == period ? _self.period : period // ignore: cast_nullable_to_non_nullable +as int?,allowHatching: freezed == allowHatching ? _self.allowHatching : allowHatching // ignore: cast_nullable_to_non_nullable +as String?,state: freezed == state ? _self.state : state // ignore: cast_nullable_to_non_nullable +as String?,archive: freezed == archive ? _self.archive : archive // ignore: cast_nullable_to_non_nullable +as bool?,violation: freezed == violation ? _self.violation : violation // ignore: cast_nullable_to_non_nullable +as bool?,message: freezed == message ? _self.message : message // ignore: cast_nullable_to_non_nullable +as dynamic,registrar: freezed == registrar ? _self.registrar : registrar // ignore: cast_nullable_to_non_nullable +as dynamic,breed: freezed == breed ? _self.breed : breed // ignore: cast_nullable_to_non_nullable +as List?,cityNumber: freezed == cityNumber ? _self.cityNumber : cityNumber // ignore: cast_nullable_to_non_nullable +as int?,cityName: freezed == cityName ? _self.cityName : cityName // ignore: cast_nullable_to_non_nullable +as String?,provinceNumber: freezed == provinceNumber ? _self.provinceNumber : provinceNumber // ignore: cast_nullable_to_non_nullable +as int?,provinceName: freezed == provinceName ? _self.provinceName : provinceName // ignore: cast_nullable_to_non_nullable +as String?,lastChange: freezed == lastChange ? _self.lastChange : lastChange // ignore: cast_nullable_to_non_nullable +as LastChange?,chickenAge: freezed == chickenAge ? _self.chickenAge : chickenAge // ignore: cast_nullable_to_non_nullable +as int?,nowAge: freezed == nowAge ? _self.nowAge : nowAge // ignore: cast_nullable_to_non_nullable +as int?,latestHatchingChange: freezed == latestHatchingChange ? _self.latestHatchingChange : latestHatchingChange // ignore: cast_nullable_to_non_nullable +as LatestHatchingChange?,violationReport: freezed == violationReport ? _self.violationReport : violationReport // ignore: cast_nullable_to_non_nullable +as dynamic,violationMessage: freezed == violationMessage ? _self.violationMessage : violationMessage // ignore: cast_nullable_to_non_nullable +as String?,violationImage: freezed == violationImage ? _self.violationImage : violationImage // ignore: cast_nullable_to_non_nullable +as dynamic,violationReporter: freezed == violationReporter ? _self.violationReporter : violationReporter // ignore: cast_nullable_to_non_nullable +as dynamic,violationReportDate: freezed == violationReportDate ? _self.violationReportDate : violationReportDate // ignore: cast_nullable_to_non_nullable +as dynamic,violationReportEditor: freezed == violationReportEditor ? _self.violationReportEditor : violationReportEditor // ignore: cast_nullable_to_non_nullable +as dynamic,violationReportEditDate: freezed == violationReportEditDate ? _self.violationReportEditDate : violationReportEditDate // ignore: cast_nullable_to_non_nullable +as dynamic,totalLosses: freezed == totalLosses ? _self.totalLosses : totalLosses // ignore: cast_nullable_to_non_nullable +as int?,directLosses: freezed == directLosses ? _self.directLosses : directLosses // ignore: cast_nullable_to_non_nullable +as int?,directLossesInputer: freezed == directLossesInputer ? _self.directLossesInputer : directLossesInputer // ignore: cast_nullable_to_non_nullable +as dynamic,directLossesDate: freezed == directLossesDate ? _self.directLossesDate : directLossesDate // ignore: cast_nullable_to_non_nullable +as dynamic,directLossesEditor: freezed == directLossesEditor ? _self.directLossesEditor : directLossesEditor // ignore: cast_nullable_to_non_nullable +as dynamic,directLossesLastEditDate: freezed == directLossesLastEditDate ? _self.directLossesLastEditDate : directLossesLastEditDate // ignore: cast_nullable_to_non_nullable +as dynamic,endPeriodLossesInputer: freezed == endPeriodLossesInputer ? _self.endPeriodLossesInputer : endPeriodLossesInputer // ignore: cast_nullable_to_non_nullable +as dynamic,endPeriodLossesDate: freezed == endPeriodLossesDate ? _self.endPeriodLossesDate : endPeriodLossesDate // ignore: cast_nullable_to_non_nullable +as dynamic,endPeriodLossesEditor: freezed == endPeriodLossesEditor ? _self.endPeriodLossesEditor : endPeriodLossesEditor // ignore: cast_nullable_to_non_nullable +as dynamic,endPeriodLossesLastEditDate: freezed == endPeriodLossesLastEditDate ? _self.endPeriodLossesLastEditDate : endPeriodLossesLastEditDate // ignore: cast_nullable_to_non_nullable +as dynamic,breedingUniqueId: freezed == breedingUniqueId ? _self.breedingUniqueId : breedingUniqueId // ignore: cast_nullable_to_non_nullable +as String?,licenceNumber: freezed == licenceNumber ? _self.licenceNumber : licenceNumber // ignore: cast_nullable_to_non_nullable +as String?,temporaryTrash: freezed == temporaryTrash ? _self.temporaryTrash : temporaryTrash // ignore: cast_nullable_to_non_nullable +as bool?,temporaryDeleted: freezed == temporaryDeleted ? _self.temporaryDeleted : temporaryDeleted // ignore: cast_nullable_to_non_nullable +as bool?,firstDateInputArchive: freezed == firstDateInputArchive ? _self.firstDateInputArchive : firstDateInputArchive // ignore: cast_nullable_to_non_nullable +as dynamic,secondDateInputArchive: freezed == secondDateInputArchive ? _self.secondDateInputArchive : secondDateInputArchive // ignore: cast_nullable_to_non_nullable +as dynamic,inputArchiver: freezed == inputArchiver ? _self.inputArchiver : inputArchiver // ignore: cast_nullable_to_non_nullable +as dynamic,outputArchiveDate: freezed == outputArchiveDate ? _self.outputArchiveDate : outputArchiveDate // ignore: cast_nullable_to_non_nullable +as dynamic,outputArchiver: freezed == outputArchiver ? _self.outputArchiver : outputArchiver // ignore: cast_nullable_to_non_nullable +as dynamic,barDifferenceRequestWeight: freezed == barDifferenceRequestWeight ? _self.barDifferenceRequestWeight : barDifferenceRequestWeight // ignore: cast_nullable_to_non_nullable +as double?,barDifferenceRequestQuantity: freezed == barDifferenceRequestQuantity ? _self.barDifferenceRequestQuantity : barDifferenceRequestQuantity // ignore: cast_nullable_to_non_nullable +as double?,healthCertificate: freezed == healthCertificate ? _self.healthCertificate : healthCertificate // ignore: cast_nullable_to_non_nullable +as dynamic,samasatDischargePercentage: freezed == samasatDischargePercentage ? _self.samasatDischargePercentage : samasatDischargePercentage // ignore: cast_nullable_to_non_nullable +as int?,personTypeName: freezed == personTypeName ? _self.personTypeName : personTypeName // ignore: cast_nullable_to_non_nullable +as String?,interactTypeName: freezed == interactTypeName ? _self.interactTypeName : interactTypeName // ignore: cast_nullable_to_non_nullable +as String?,unionTypeName: freezed == unionTypeName ? _self.unionTypeName : unionTypeName // ignore: cast_nullable_to_non_nullable +as String?,certId: freezed == certId ? _self.certId : certId // ignore: cast_nullable_to_non_nullable +as String?,increaseQuantity: freezed == increaseQuantity ? _self.increaseQuantity : increaseQuantity // ignore: cast_nullable_to_non_nullable +as int?,tenantFullname: freezed == tenantFullname ? _self.tenantFullname : tenantFullname // ignore: cast_nullable_to_non_nullable +as dynamic,tenantNationalCode: freezed == tenantNationalCode ? _self.tenantNationalCode : tenantNationalCode // ignore: cast_nullable_to_non_nullable +as dynamic,tenantMobile: freezed == tenantMobile ? _self.tenantMobile : tenantMobile // ignore: cast_nullable_to_non_nullable +as dynamic,tenantCity: freezed == tenantCity ? _self.tenantCity : tenantCity // ignore: cast_nullable_to_non_nullable +as dynamic,hasTenant: freezed == hasTenant ? _self.hasTenant : hasTenant // ignore: cast_nullable_to_non_nullable +as bool?,createdBy: freezed == createdBy ? _self.createdBy : createdBy // ignore: cast_nullable_to_non_nullable +as dynamic,modifiedBy: freezed == modifiedBy ? _self.modifiedBy : modifiedBy // ignore: cast_nullable_to_non_nullable +as dynamic,poultry: freezed == poultry ? _self.poultry : poultry // ignore: cast_nullable_to_non_nullable +as int?, + )); +} +/// Create a copy of HatchingDetails +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$VetFarmCopyWith<$Res>? get vetFarm { + if (_self.vetFarm == null) { + return null; + } + + return $VetFarmCopyWith<$Res>(_self.vetFarm!, (value) { + return _then(_self.copyWith(vetFarm: value)); + }); +}/// Create a copy of HatchingDetails +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ActiveKillCopyWith<$Res>? get activeKill { + if (_self.activeKill == null) { + return null; + } + + return $ActiveKillCopyWith<$Res>(_self.activeKill!, (value) { + return _then(_self.copyWith(activeKill: value)); + }); +}/// Create a copy of HatchingDetails +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$KillingInfoCopyWith<$Res>? get killingInfo { + if (_self.killingInfo == null) { + return null; + } + + return $KillingInfoCopyWith<$Res>(_self.killingInfo!, (value) { + return _then(_self.copyWith(killingInfo: value)); + }); +}/// Create a copy of HatchingDetails +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$FreeGovernmentalInfoCopyWith<$Res>? get freeGovernmentalInfo { + if (_self.freeGovernmentalInfo == null) { + return null; + } + + return $FreeGovernmentalInfoCopyWith<$Res>(_self.freeGovernmentalInfo!, (value) { + return _then(_self.copyWith(freeGovernmentalInfo: value)); + }); +}/// Create a copy of HatchingDetails +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$LastChangeCopyWith<$Res>? get lastChange { + if (_self.lastChange == null) { + return null; + } + + return $LastChangeCopyWith<$Res>(_self.lastChange!, (value) { + return _then(_self.copyWith(lastChange: value)); + }); +}/// Create a copy of HatchingDetails +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$LatestHatchingChangeCopyWith<$Res>? get latestHatchingChange { + if (_self.latestHatchingChange == null) { + return null; + } + + return $LatestHatchingChangeCopyWith<$Res>(_self.latestHatchingChange!, (value) { + return _then(_self.copyWith(latestHatchingChange: value)); + }); +} +} + + +/// Adds pattern-matching-related methods to [HatchingDetails]. +extension HatchingDetailsPatterns on HatchingDetails { +/// 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( _HatchingDetails value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _HatchingDetails() 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( _HatchingDetails value) $default,){ +final _that = this; +switch (_that) { +case _HatchingDetails(): +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( _HatchingDetails value)? $default,){ +final _that = this; +switch (_that) { +case _HatchingDetails() 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, String? chainCompany, int? age, dynamic inspectionLosses, VetFarm? vetFarm, ActiveKill? activeKill, KillingInfo? killingInfo, FreeGovernmentalInfo? freeGovernmentalInfo, String? key, DateTime? createDate, DateTime? modifyDate, bool? trash, bool? hasChainCompany, dynamic poultryIdForeignKey, dynamic poultryHatchingIdKey, int? quantity, int? losses, int? leftOver, int? killedQuantity, int? extraKilledQuantity, double? governmentalKilledQuantity, double? governmentalQuantity, double? freeKilledQuantity, double? freeQuantity, double? chainKilledQuantity, double? chainKilledWeight, double? outProvinceKilledWeight, double? outProvinceKilledQuantity, double? exportKilledWeight, double? exportKilledQuantity, double? totalCommitment, String? commitmentType, double? totalCommitmentQuantity, double? totalFreeCommitmentQuantity, double? totalFreeCommitmentWeight, double? totalKilledWeight, double? totalAverageKilledWeight, int? requestLeftOver, int? hall, DateTime? date, DateTime? predicateDate, String? chickenBreed, int? period, String? allowHatching, String? state, bool? archive, bool? violation, dynamic message, dynamic registrar, List? breed, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, LastChange? lastChange, int? chickenAge, int? nowAge, LatestHatchingChange? latestHatchingChange, dynamic violationReport, String? violationMessage, dynamic violationImage, dynamic violationReporter, dynamic violationReportDate, dynamic violationReportEditor, dynamic violationReportEditDate, int? totalLosses, int? directLosses, dynamic directLossesInputer, dynamic directLossesDate, dynamic directLossesEditor, dynamic directLossesLastEditDate, dynamic endPeriodLossesInputer, dynamic endPeriodLossesDate, dynamic endPeriodLossesEditor, dynamic endPeriodLossesLastEditDate, String? breedingUniqueId, String? licenceNumber, bool? temporaryTrash, bool? temporaryDeleted, dynamic firstDateInputArchive, dynamic secondDateInputArchive, dynamic inputArchiver, dynamic outputArchiveDate, dynamic outputArchiver, double? barDifferenceRequestWeight, double? barDifferenceRequestQuantity, dynamic healthCertificate, int? samasatDischargePercentage, String? personTypeName, String? interactTypeName, String? unionTypeName, String? certId, int? increaseQuantity, dynamic tenantFullname, dynamic tenantNationalCode, dynamic tenantMobile, dynamic tenantCity, bool? hasTenant, dynamic createdBy, dynamic modifiedBy, int? poultry)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _HatchingDetails() when $default != null: +return $default(_that.id,_that.chainCompany,_that.age,_that.inspectionLosses,_that.vetFarm,_that.activeKill,_that.killingInfo,_that.freeGovernmentalInfo,_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.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, String? chainCompany, int? age, dynamic inspectionLosses, VetFarm? vetFarm, ActiveKill? activeKill, KillingInfo? killingInfo, FreeGovernmentalInfo? freeGovernmentalInfo, String? key, DateTime? createDate, DateTime? modifyDate, bool? trash, bool? hasChainCompany, dynamic poultryIdForeignKey, dynamic poultryHatchingIdKey, int? quantity, int? losses, int? leftOver, int? killedQuantity, int? extraKilledQuantity, double? governmentalKilledQuantity, double? governmentalQuantity, double? freeKilledQuantity, double? freeQuantity, double? chainKilledQuantity, double? chainKilledWeight, double? outProvinceKilledWeight, double? outProvinceKilledQuantity, double? exportKilledWeight, double? exportKilledQuantity, double? totalCommitment, String? commitmentType, double? totalCommitmentQuantity, double? totalFreeCommitmentQuantity, double? totalFreeCommitmentWeight, double? totalKilledWeight, double? totalAverageKilledWeight, int? requestLeftOver, int? hall, DateTime? date, DateTime? predicateDate, String? chickenBreed, int? period, String? allowHatching, String? state, bool? archive, bool? violation, dynamic message, dynamic registrar, List? breed, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, LastChange? lastChange, int? chickenAge, int? nowAge, LatestHatchingChange? latestHatchingChange, dynamic violationReport, String? violationMessage, dynamic violationImage, dynamic violationReporter, dynamic violationReportDate, dynamic violationReportEditor, dynamic violationReportEditDate, int? totalLosses, int? directLosses, dynamic directLossesInputer, dynamic directLossesDate, dynamic directLossesEditor, dynamic directLossesLastEditDate, dynamic endPeriodLossesInputer, dynamic endPeriodLossesDate, dynamic endPeriodLossesEditor, dynamic endPeriodLossesLastEditDate, String? breedingUniqueId, String? licenceNumber, bool? temporaryTrash, bool? temporaryDeleted, dynamic firstDateInputArchive, dynamic secondDateInputArchive, dynamic inputArchiver, dynamic outputArchiveDate, dynamic outputArchiver, double? barDifferenceRequestWeight, double? barDifferenceRequestQuantity, dynamic healthCertificate, int? samasatDischargePercentage, String? personTypeName, String? interactTypeName, String? unionTypeName, String? certId, int? increaseQuantity, dynamic tenantFullname, dynamic tenantNationalCode, dynamic tenantMobile, dynamic tenantCity, bool? hasTenant, dynamic createdBy, dynamic modifiedBy, int? poultry) $default,) {final _that = this; +switch (_that) { +case _HatchingDetails(): +return $default(_that.id,_that.chainCompany,_that.age,_that.inspectionLosses,_that.vetFarm,_that.activeKill,_that.killingInfo,_that.freeGovernmentalInfo,_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.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, String? chainCompany, int? age, dynamic inspectionLosses, VetFarm? vetFarm, ActiveKill? activeKill, KillingInfo? killingInfo, FreeGovernmentalInfo? freeGovernmentalInfo, String? key, DateTime? createDate, DateTime? modifyDate, bool? trash, bool? hasChainCompany, dynamic poultryIdForeignKey, dynamic poultryHatchingIdKey, int? quantity, int? losses, int? leftOver, int? killedQuantity, int? extraKilledQuantity, double? governmentalKilledQuantity, double? governmentalQuantity, double? freeKilledQuantity, double? freeQuantity, double? chainKilledQuantity, double? chainKilledWeight, double? outProvinceKilledWeight, double? outProvinceKilledQuantity, double? exportKilledWeight, double? exportKilledQuantity, double? totalCommitment, String? commitmentType, double? totalCommitmentQuantity, double? totalFreeCommitmentQuantity, double? totalFreeCommitmentWeight, double? totalKilledWeight, double? totalAverageKilledWeight, int? requestLeftOver, int? hall, DateTime? date, DateTime? predicateDate, String? chickenBreed, int? period, String? allowHatching, String? state, bool? archive, bool? violation, dynamic message, dynamic registrar, List? breed, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, LastChange? lastChange, int? chickenAge, int? nowAge, LatestHatchingChange? latestHatchingChange, dynamic violationReport, String? violationMessage, dynamic violationImage, dynamic violationReporter, dynamic violationReportDate, dynamic violationReportEditor, dynamic violationReportEditDate, int? totalLosses, int? directLosses, dynamic directLossesInputer, dynamic directLossesDate, dynamic directLossesEditor, dynamic directLossesLastEditDate, dynamic endPeriodLossesInputer, dynamic endPeriodLossesDate, dynamic endPeriodLossesEditor, dynamic endPeriodLossesLastEditDate, String? breedingUniqueId, String? licenceNumber, bool? temporaryTrash, bool? temporaryDeleted, dynamic firstDateInputArchive, dynamic secondDateInputArchive, dynamic inputArchiver, dynamic outputArchiveDate, dynamic outputArchiver, double? barDifferenceRequestWeight, double? barDifferenceRequestQuantity, dynamic healthCertificate, int? samasatDischargePercentage, String? personTypeName, String? interactTypeName, String? unionTypeName, String? certId, int? increaseQuantity, dynamic tenantFullname, dynamic tenantNationalCode, dynamic tenantMobile, dynamic tenantCity, bool? hasTenant, dynamic createdBy, dynamic modifiedBy, int? poultry)? $default,) {final _that = this; +switch (_that) { +case _HatchingDetails() when $default != null: +return $default(_that.id,_that.chainCompany,_that.age,_that.inspectionLosses,_that.vetFarm,_that.activeKill,_that.killingInfo,_that.freeGovernmentalInfo,_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.createdBy,_that.modifiedBy,_that.poultry);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _HatchingDetails implements HatchingDetails { + const _HatchingDetails({required this.id, this.chainCompany, this.age, this.inspectionLosses, this.vetFarm, this.activeKill, this.killingInfo, this.freeGovernmentalInfo, 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, this.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.createdBy, this.modifiedBy, this.poultry}): _breed = breed; + factory _HatchingDetails.fromJson(Map json) => _$HatchingDetailsFromJson(json); + +@override final int id; +@override final String? chainCompany; +@override final int? age; +@override final dynamic inspectionLosses; +@override final VetFarm? vetFarm; +@override final ActiveKill? activeKill; +@override final KillingInfo? killingInfo; +@override final FreeGovernmentalInfo? freeGovernmentalInfo; +@override final String? key; +@override final DateTime? createDate; +@override final DateTime? modifyDate; +@override final bool? trash; +@override final bool? hasChainCompany; +@override final dynamic poultryIdForeignKey; +@override final dynamic poultryHatchingIdKey; +@override final int? quantity; +@override final int? losses; +@override final int? leftOver; +@override final int? killedQuantity; +@override final int? extraKilledQuantity; +@override final double? governmentalKilledQuantity; +@override final double? governmentalQuantity; +@override final double? freeKilledQuantity; +@override final double? freeQuantity; +@override final double? chainKilledQuantity; +@override final double? chainKilledWeight; +@override final double? outProvinceKilledWeight; +@override final double? outProvinceKilledQuantity; +@override final double? exportKilledWeight; +@override final double? exportKilledQuantity; +@override final double? totalCommitment; +@override final String? commitmentType; +@override final double? totalCommitmentQuantity; +@override final double? totalFreeCommitmentQuantity; +@override final double? totalFreeCommitmentWeight; +@override final double? totalKilledWeight; +@override final double? totalAverageKilledWeight; +@override final int? requestLeftOver; +@override final int? hall; +@override final DateTime? date; +@override final DateTime? predicateDate; +@override final String? chickenBreed; +@override final int? period; +@override final String? allowHatching; +@override final String? state; +@override final bool? archive; +@override final bool? violation; +@override final dynamic message; +@override final dynamic registrar; + final List? _breed; +@override List? get breed { + final value = _breed; + if (value == null) return null; + if (_breed is EqualUnmodifiableListView) return _breed; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + +@override final int? cityNumber; +@override final String? cityName; +@override final int? provinceNumber; +@override final String? provinceName; +@override final LastChange? lastChange; +@override final int? chickenAge; +@override final int? nowAge; +@override final LatestHatchingChange? latestHatchingChange; +@override final dynamic violationReport; +@override final String? violationMessage; +@override final dynamic violationImage; +@override final dynamic violationReporter; +@override final dynamic violationReportDate; +@override final dynamic violationReportEditor; +@override final dynamic violationReportEditDate; +@override final int? totalLosses; +@override final int? directLosses; +@override final dynamic directLossesInputer; +@override final dynamic directLossesDate; +@override final dynamic directLossesEditor; +@override final dynamic directLossesLastEditDate; +@override final dynamic endPeriodLossesInputer; +@override final dynamic endPeriodLossesDate; +@override final dynamic endPeriodLossesEditor; +@override final dynamic endPeriodLossesLastEditDate; +@override final String? breedingUniqueId; +@override final String? licenceNumber; +@override final bool? temporaryTrash; +@override final bool? temporaryDeleted; +@override final dynamic firstDateInputArchive; +@override final dynamic secondDateInputArchive; +@override final dynamic inputArchiver; +@override final dynamic outputArchiveDate; +@override final dynamic outputArchiver; +@override final double? barDifferenceRequestWeight; +@override final double? barDifferenceRequestQuantity; +@override final dynamic healthCertificate; +@override final int? samasatDischargePercentage; +@override final String? personTypeName; +@override final String? interactTypeName; +@override final String? unionTypeName; +@override final String? certId; +@override final int? increaseQuantity; +@override final dynamic tenantFullname; +@override final dynamic tenantNationalCode; +@override final dynamic tenantMobile; +@override final dynamic tenantCity; +@override final bool? hasTenant; +@override final dynamic createdBy; +@override final dynamic modifiedBy; +@override final int? poultry; + +/// Create a copy of HatchingDetails +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$HatchingDetailsCopyWith<_HatchingDetails> get copyWith => __$HatchingDetailsCopyWithImpl<_HatchingDetails>(this, _$identity); + +@override +Map toJson() { + return _$HatchingDetailsToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _HatchingDetails&&(identical(other.id, id) || other.id == id)&&(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.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)&&const DeepCollectionEquality().equals(other.poultryIdForeignKey, poultryIdForeignKey)&&const DeepCollectionEquality().equals(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)&&const DeepCollectionEquality().equals(other.message, message)&&const DeepCollectionEquality().equals(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)&&const DeepCollectionEquality().equals(other.violationReport, violationReport)&&(identical(other.violationMessage, violationMessage) || other.violationMessage == violationMessage)&&const DeepCollectionEquality().equals(other.violationImage, violationImage)&&const DeepCollectionEquality().equals(other.violationReporter, violationReporter)&&const DeepCollectionEquality().equals(other.violationReportDate, violationReportDate)&&const DeepCollectionEquality().equals(other.violationReportEditor, violationReportEditor)&&const DeepCollectionEquality().equals(other.violationReportEditDate, violationReportEditDate)&&(identical(other.totalLosses, totalLosses) || other.totalLosses == totalLosses)&&(identical(other.directLosses, directLosses) || other.directLosses == directLosses)&&const DeepCollectionEquality().equals(other.directLossesInputer, directLossesInputer)&&const DeepCollectionEquality().equals(other.directLossesDate, directLossesDate)&&const DeepCollectionEquality().equals(other.directLossesEditor, directLossesEditor)&&const DeepCollectionEquality().equals(other.directLossesLastEditDate, directLossesLastEditDate)&&const DeepCollectionEquality().equals(other.endPeriodLossesInputer, endPeriodLossesInputer)&&const DeepCollectionEquality().equals(other.endPeriodLossesDate, endPeriodLossesDate)&&const DeepCollectionEquality().equals(other.endPeriodLossesEditor, endPeriodLossesEditor)&&const DeepCollectionEquality().equals(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)&&const DeepCollectionEquality().equals(other.firstDateInputArchive, firstDateInputArchive)&&const DeepCollectionEquality().equals(other.secondDateInputArchive, secondDateInputArchive)&&const DeepCollectionEquality().equals(other.inputArchiver, inputArchiver)&&const DeepCollectionEquality().equals(other.outputArchiveDate, outputArchiveDate)&&const DeepCollectionEquality().equals(other.outputArchiver, outputArchiver)&&(identical(other.barDifferenceRequestWeight, barDifferenceRequestWeight) || other.barDifferenceRequestWeight == barDifferenceRequestWeight)&&(identical(other.barDifferenceRequestQuantity, barDifferenceRequestQuantity) || other.barDifferenceRequestQuantity == barDifferenceRequestQuantity)&&const DeepCollectionEquality().equals(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)&&const DeepCollectionEquality().equals(other.tenantFullname, tenantFullname)&&const DeepCollectionEquality().equals(other.tenantNationalCode, tenantNationalCode)&&const DeepCollectionEquality().equals(other.tenantMobile, tenantMobile)&&const DeepCollectionEquality().equals(other.tenantCity, tenantCity)&&(identical(other.hasTenant, hasTenant) || other.hasTenant == hasTenant)&&const DeepCollectionEquality().equals(other.createdBy, createdBy)&&const DeepCollectionEquality().equals(other.modifiedBy, modifiedBy)&&(identical(other.poultry, poultry) || other.poultry == poultry)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,id,chainCompany,age,const DeepCollectionEquality().hash(inspectionLosses),vetFarm,activeKill,killingInfo,freeGovernmentalInfo,key,createDate,modifyDate,trash,hasChainCompany,const DeepCollectionEquality().hash(poultryIdForeignKey),const DeepCollectionEquality().hash(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,const DeepCollectionEquality().hash(message),const DeepCollectionEquality().hash(registrar),const DeepCollectionEquality().hash(_breed),cityNumber,cityName,provinceNumber,provinceName,lastChange,chickenAge,nowAge,latestHatchingChange,const DeepCollectionEquality().hash(violationReport),violationMessage,const DeepCollectionEquality().hash(violationImage),const DeepCollectionEquality().hash(violationReporter),const DeepCollectionEquality().hash(violationReportDate),const DeepCollectionEquality().hash(violationReportEditor),const DeepCollectionEquality().hash(violationReportEditDate),totalLosses,directLosses,const DeepCollectionEquality().hash(directLossesInputer),const DeepCollectionEquality().hash(directLossesDate),const DeepCollectionEquality().hash(directLossesEditor),const DeepCollectionEquality().hash(directLossesLastEditDate),const DeepCollectionEquality().hash(endPeriodLossesInputer),const DeepCollectionEquality().hash(endPeriodLossesDate),const DeepCollectionEquality().hash(endPeriodLossesEditor),const DeepCollectionEquality().hash(endPeriodLossesLastEditDate),breedingUniqueId,licenceNumber,temporaryTrash,temporaryDeleted,const DeepCollectionEquality().hash(firstDateInputArchive),const DeepCollectionEquality().hash(secondDateInputArchive),const DeepCollectionEquality().hash(inputArchiver),const DeepCollectionEquality().hash(outputArchiveDate),const DeepCollectionEquality().hash(outputArchiver),barDifferenceRequestWeight,barDifferenceRequestQuantity,const DeepCollectionEquality().hash(healthCertificate),samasatDischargePercentage,personTypeName,interactTypeName,unionTypeName,certId,increaseQuantity,const DeepCollectionEquality().hash(tenantFullname),const DeepCollectionEquality().hash(tenantNationalCode),const DeepCollectionEquality().hash(tenantMobile),const DeepCollectionEquality().hash(tenantCity),hasTenant,const DeepCollectionEquality().hash(createdBy),const DeepCollectionEquality().hash(modifiedBy),poultry]); + +@override +String toString() { + return 'HatchingDetails(id: $id, chainCompany: $chainCompany, age: $age, inspectionLosses: $inspectionLosses, vetFarm: $vetFarm, activeKill: $activeKill, killingInfo: $killingInfo, freeGovernmentalInfo: $freeGovernmentalInfo, 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, createdBy: $createdBy, modifiedBy: $modifiedBy, poultry: $poultry)'; +} + + +} + +/// @nodoc +abstract mixin class _$HatchingDetailsCopyWith<$Res> implements $HatchingDetailsCopyWith<$Res> { + factory _$HatchingDetailsCopyWith(_HatchingDetails value, $Res Function(_HatchingDetails) _then) = __$HatchingDetailsCopyWithImpl; +@override @useResult +$Res call({ + int id, String? chainCompany, int? age, dynamic inspectionLosses, VetFarm? vetFarm, ActiveKill? activeKill, KillingInfo? killingInfo, FreeGovernmentalInfo? freeGovernmentalInfo, String? key, DateTime? createDate, DateTime? modifyDate, bool? trash, bool? hasChainCompany, dynamic poultryIdForeignKey, dynamic poultryHatchingIdKey, int? quantity, int? losses, int? leftOver, int? killedQuantity, int? extraKilledQuantity, double? governmentalKilledQuantity, double? governmentalQuantity, double? freeKilledQuantity, double? freeQuantity, double? chainKilledQuantity, double? chainKilledWeight, double? outProvinceKilledWeight, double? outProvinceKilledQuantity, double? exportKilledWeight, double? exportKilledQuantity, double? totalCommitment, String? commitmentType, double? totalCommitmentQuantity, double? totalFreeCommitmentQuantity, double? totalFreeCommitmentWeight, double? totalKilledWeight, double? totalAverageKilledWeight, int? requestLeftOver, int? hall, DateTime? date, DateTime? predicateDate, String? chickenBreed, int? period, String? allowHatching, String? state, bool? archive, bool? violation, dynamic message, dynamic registrar, List? breed, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, LastChange? lastChange, int? chickenAge, int? nowAge, LatestHatchingChange? latestHatchingChange, dynamic violationReport, String? violationMessage, dynamic violationImage, dynamic violationReporter, dynamic violationReportDate, dynamic violationReportEditor, dynamic violationReportEditDate, int? totalLosses, int? directLosses, dynamic directLossesInputer, dynamic directLossesDate, dynamic directLossesEditor, dynamic directLossesLastEditDate, dynamic endPeriodLossesInputer, dynamic endPeriodLossesDate, dynamic endPeriodLossesEditor, dynamic endPeriodLossesLastEditDate, String? breedingUniqueId, String? licenceNumber, bool? temporaryTrash, bool? temporaryDeleted, dynamic firstDateInputArchive, dynamic secondDateInputArchive, dynamic inputArchiver, dynamic outputArchiveDate, dynamic outputArchiver, double? barDifferenceRequestWeight, double? barDifferenceRequestQuantity, dynamic healthCertificate, int? samasatDischargePercentage, String? personTypeName, String? interactTypeName, String? unionTypeName, String? certId, int? increaseQuantity, dynamic tenantFullname, dynamic tenantNationalCode, dynamic tenantMobile, dynamic tenantCity, bool? hasTenant, dynamic createdBy, dynamic modifiedBy, int? poultry +}); + + +@override $VetFarmCopyWith<$Res>? get vetFarm;@override $ActiveKillCopyWith<$Res>? get activeKill;@override $KillingInfoCopyWith<$Res>? get killingInfo;@override $FreeGovernmentalInfoCopyWith<$Res>? get freeGovernmentalInfo;@override $LastChangeCopyWith<$Res>? get lastChange;@override $LatestHatchingChangeCopyWith<$Res>? get latestHatchingChange; + +} +/// @nodoc +class __$HatchingDetailsCopyWithImpl<$Res> + implements _$HatchingDetailsCopyWith<$Res> { + __$HatchingDetailsCopyWithImpl(this._self, this._then); + + final _HatchingDetails _self; + final $Res Function(_HatchingDetails) _then; + +/// Create a copy of HatchingDetails +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? id = null,Object? chainCompany = freezed,Object? age = freezed,Object? inspectionLosses = freezed,Object? vetFarm = freezed,Object? activeKill = freezed,Object? killingInfo = freezed,Object? freeGovernmentalInfo = 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? createdBy = freezed,Object? modifiedBy = freezed,Object? poultry = freezed,}) { + return _then(_HatchingDetails( +id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable +as int,chainCompany: freezed == chainCompany ? _self.chainCompany : chainCompany // ignore: cast_nullable_to_non_nullable +as String?,age: freezed == age ? _self.age : age // ignore: cast_nullable_to_non_nullable +as int?,inspectionLosses: freezed == inspectionLosses ? _self.inspectionLosses : inspectionLosses // ignore: cast_nullable_to_non_nullable +as dynamic,vetFarm: freezed == vetFarm ? _self.vetFarm : vetFarm // ignore: cast_nullable_to_non_nullable +as VetFarm?,activeKill: freezed == activeKill ? _self.activeKill : activeKill // ignore: cast_nullable_to_non_nullable +as ActiveKill?,killingInfo: freezed == killingInfo ? _self.killingInfo : killingInfo // ignore: cast_nullable_to_non_nullable +as KillingInfo?,freeGovernmentalInfo: freezed == freeGovernmentalInfo ? _self.freeGovernmentalInfo : freeGovernmentalInfo // ignore: cast_nullable_to_non_nullable +as FreeGovernmentalInfo?,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 DateTime?,modifyDate: freezed == modifyDate ? _self.modifyDate : modifyDate // ignore: cast_nullable_to_non_nullable +as DateTime?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable +as bool?,hasChainCompany: freezed == hasChainCompany ? _self.hasChainCompany : hasChainCompany // ignore: cast_nullable_to_non_nullable +as bool?,poultryIdForeignKey: freezed == poultryIdForeignKey ? _self.poultryIdForeignKey : poultryIdForeignKey // ignore: cast_nullable_to_non_nullable +as dynamic,poultryHatchingIdKey: freezed == poultryHatchingIdKey ? _self.poultryHatchingIdKey : poultryHatchingIdKey // ignore: cast_nullable_to_non_nullable +as dynamic,quantity: freezed == quantity ? _self.quantity : quantity // ignore: cast_nullable_to_non_nullable +as int?,losses: freezed == losses ? _self.losses : losses // ignore: cast_nullable_to_non_nullable +as int?,leftOver: freezed == leftOver ? _self.leftOver : leftOver // ignore: cast_nullable_to_non_nullable +as int?,killedQuantity: freezed == killedQuantity ? _self.killedQuantity : killedQuantity // ignore: cast_nullable_to_non_nullable +as int?,extraKilledQuantity: freezed == extraKilledQuantity ? _self.extraKilledQuantity : extraKilledQuantity // ignore: cast_nullable_to_non_nullable +as int?,governmentalKilledQuantity: freezed == governmentalKilledQuantity ? _self.governmentalKilledQuantity : governmentalKilledQuantity // ignore: cast_nullable_to_non_nullable +as double?,governmentalQuantity: freezed == governmentalQuantity ? _self.governmentalQuantity : governmentalQuantity // ignore: cast_nullable_to_non_nullable +as double?,freeKilledQuantity: freezed == freeKilledQuantity ? _self.freeKilledQuantity : freeKilledQuantity // ignore: cast_nullable_to_non_nullable +as double?,freeQuantity: freezed == freeQuantity ? _self.freeQuantity : freeQuantity // ignore: cast_nullable_to_non_nullable +as double?,chainKilledQuantity: freezed == chainKilledQuantity ? _self.chainKilledQuantity : chainKilledQuantity // ignore: cast_nullable_to_non_nullable +as double?,chainKilledWeight: freezed == chainKilledWeight ? _self.chainKilledWeight : chainKilledWeight // ignore: cast_nullable_to_non_nullable +as double?,outProvinceKilledWeight: freezed == outProvinceKilledWeight ? _self.outProvinceKilledWeight : outProvinceKilledWeight // ignore: cast_nullable_to_non_nullable +as double?,outProvinceKilledQuantity: freezed == outProvinceKilledQuantity ? _self.outProvinceKilledQuantity : outProvinceKilledQuantity // ignore: cast_nullable_to_non_nullable +as double?,exportKilledWeight: freezed == exportKilledWeight ? _self.exportKilledWeight : exportKilledWeight // ignore: cast_nullable_to_non_nullable +as double?,exportKilledQuantity: freezed == exportKilledQuantity ? _self.exportKilledQuantity : exportKilledQuantity // ignore: cast_nullable_to_non_nullable +as double?,totalCommitment: freezed == totalCommitment ? _self.totalCommitment : totalCommitment // ignore: cast_nullable_to_non_nullable +as double?,commitmentType: freezed == commitmentType ? _self.commitmentType : commitmentType // ignore: cast_nullable_to_non_nullable +as String?,totalCommitmentQuantity: freezed == totalCommitmentQuantity ? _self.totalCommitmentQuantity : totalCommitmentQuantity // ignore: cast_nullable_to_non_nullable +as double?,totalFreeCommitmentQuantity: freezed == totalFreeCommitmentQuantity ? _self.totalFreeCommitmentQuantity : totalFreeCommitmentQuantity // ignore: cast_nullable_to_non_nullable +as double?,totalFreeCommitmentWeight: freezed == totalFreeCommitmentWeight ? _self.totalFreeCommitmentWeight : totalFreeCommitmentWeight // ignore: cast_nullable_to_non_nullable +as double?,totalKilledWeight: freezed == totalKilledWeight ? _self.totalKilledWeight : totalKilledWeight // ignore: cast_nullable_to_non_nullable +as double?,totalAverageKilledWeight: freezed == totalAverageKilledWeight ? _self.totalAverageKilledWeight : totalAverageKilledWeight // ignore: cast_nullable_to_non_nullable +as double?,requestLeftOver: freezed == requestLeftOver ? _self.requestLeftOver : requestLeftOver // ignore: cast_nullable_to_non_nullable +as int?,hall: freezed == hall ? _self.hall : hall // ignore: cast_nullable_to_non_nullable +as int?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as DateTime?,predicateDate: freezed == predicateDate ? _self.predicateDate : predicateDate // ignore: cast_nullable_to_non_nullable +as DateTime?,chickenBreed: freezed == chickenBreed ? _self.chickenBreed : chickenBreed // ignore: cast_nullable_to_non_nullable +as String?,period: freezed == period ? _self.period : period // ignore: cast_nullable_to_non_nullable +as int?,allowHatching: freezed == allowHatching ? _self.allowHatching : allowHatching // ignore: cast_nullable_to_non_nullable +as String?,state: freezed == state ? _self.state : state // ignore: cast_nullable_to_non_nullable +as String?,archive: freezed == archive ? _self.archive : archive // ignore: cast_nullable_to_non_nullable +as bool?,violation: freezed == violation ? _self.violation : violation // ignore: cast_nullable_to_non_nullable +as bool?,message: freezed == message ? _self.message : message // ignore: cast_nullable_to_non_nullable +as dynamic,registrar: freezed == registrar ? _self.registrar : registrar // ignore: cast_nullable_to_non_nullable +as dynamic,breed: freezed == breed ? _self._breed : breed // ignore: cast_nullable_to_non_nullable +as List?,cityNumber: freezed == cityNumber ? _self.cityNumber : cityNumber // ignore: cast_nullable_to_non_nullable +as int?,cityName: freezed == cityName ? _self.cityName : cityName // ignore: cast_nullable_to_non_nullable +as String?,provinceNumber: freezed == provinceNumber ? _self.provinceNumber : provinceNumber // ignore: cast_nullable_to_non_nullable +as int?,provinceName: freezed == provinceName ? _self.provinceName : provinceName // ignore: cast_nullable_to_non_nullable +as String?,lastChange: freezed == lastChange ? _self.lastChange : lastChange // ignore: cast_nullable_to_non_nullable +as LastChange?,chickenAge: freezed == chickenAge ? _self.chickenAge : chickenAge // ignore: cast_nullable_to_non_nullable +as int?,nowAge: freezed == nowAge ? _self.nowAge : nowAge // ignore: cast_nullable_to_non_nullable +as int?,latestHatchingChange: freezed == latestHatchingChange ? _self.latestHatchingChange : latestHatchingChange // ignore: cast_nullable_to_non_nullable +as LatestHatchingChange?,violationReport: freezed == violationReport ? _self.violationReport : violationReport // ignore: cast_nullable_to_non_nullable +as dynamic,violationMessage: freezed == violationMessage ? _self.violationMessage : violationMessage // ignore: cast_nullable_to_non_nullable +as String?,violationImage: freezed == violationImage ? _self.violationImage : violationImage // ignore: cast_nullable_to_non_nullable +as dynamic,violationReporter: freezed == violationReporter ? _self.violationReporter : violationReporter // ignore: cast_nullable_to_non_nullable +as dynamic,violationReportDate: freezed == violationReportDate ? _self.violationReportDate : violationReportDate // ignore: cast_nullable_to_non_nullable +as dynamic,violationReportEditor: freezed == violationReportEditor ? _self.violationReportEditor : violationReportEditor // ignore: cast_nullable_to_non_nullable +as dynamic,violationReportEditDate: freezed == violationReportEditDate ? _self.violationReportEditDate : violationReportEditDate // ignore: cast_nullable_to_non_nullable +as dynamic,totalLosses: freezed == totalLosses ? _self.totalLosses : totalLosses // ignore: cast_nullable_to_non_nullable +as int?,directLosses: freezed == directLosses ? _self.directLosses : directLosses // ignore: cast_nullable_to_non_nullable +as int?,directLossesInputer: freezed == directLossesInputer ? _self.directLossesInputer : directLossesInputer // ignore: cast_nullable_to_non_nullable +as dynamic,directLossesDate: freezed == directLossesDate ? _self.directLossesDate : directLossesDate // ignore: cast_nullable_to_non_nullable +as dynamic,directLossesEditor: freezed == directLossesEditor ? _self.directLossesEditor : directLossesEditor // ignore: cast_nullable_to_non_nullable +as dynamic,directLossesLastEditDate: freezed == directLossesLastEditDate ? _self.directLossesLastEditDate : directLossesLastEditDate // ignore: cast_nullable_to_non_nullable +as dynamic,endPeriodLossesInputer: freezed == endPeriodLossesInputer ? _self.endPeriodLossesInputer : endPeriodLossesInputer // ignore: cast_nullable_to_non_nullable +as dynamic,endPeriodLossesDate: freezed == endPeriodLossesDate ? _self.endPeriodLossesDate : endPeriodLossesDate // ignore: cast_nullable_to_non_nullable +as dynamic,endPeriodLossesEditor: freezed == endPeriodLossesEditor ? _self.endPeriodLossesEditor : endPeriodLossesEditor // ignore: cast_nullable_to_non_nullable +as dynamic,endPeriodLossesLastEditDate: freezed == endPeriodLossesLastEditDate ? _self.endPeriodLossesLastEditDate : endPeriodLossesLastEditDate // ignore: cast_nullable_to_non_nullable +as dynamic,breedingUniqueId: freezed == breedingUniqueId ? _self.breedingUniqueId : breedingUniqueId // ignore: cast_nullable_to_non_nullable +as String?,licenceNumber: freezed == licenceNumber ? _self.licenceNumber : licenceNumber // ignore: cast_nullable_to_non_nullable +as String?,temporaryTrash: freezed == temporaryTrash ? _self.temporaryTrash : temporaryTrash // ignore: cast_nullable_to_non_nullable +as bool?,temporaryDeleted: freezed == temporaryDeleted ? _self.temporaryDeleted : temporaryDeleted // ignore: cast_nullable_to_non_nullable +as bool?,firstDateInputArchive: freezed == firstDateInputArchive ? _self.firstDateInputArchive : firstDateInputArchive // ignore: cast_nullable_to_non_nullable +as dynamic,secondDateInputArchive: freezed == secondDateInputArchive ? _self.secondDateInputArchive : secondDateInputArchive // ignore: cast_nullable_to_non_nullable +as dynamic,inputArchiver: freezed == inputArchiver ? _self.inputArchiver : inputArchiver // ignore: cast_nullable_to_non_nullable +as dynamic,outputArchiveDate: freezed == outputArchiveDate ? _self.outputArchiveDate : outputArchiveDate // ignore: cast_nullable_to_non_nullable +as dynamic,outputArchiver: freezed == outputArchiver ? _self.outputArchiver : outputArchiver // ignore: cast_nullable_to_non_nullable +as dynamic,barDifferenceRequestWeight: freezed == barDifferenceRequestWeight ? _self.barDifferenceRequestWeight : barDifferenceRequestWeight // ignore: cast_nullable_to_non_nullable +as double?,barDifferenceRequestQuantity: freezed == barDifferenceRequestQuantity ? _self.barDifferenceRequestQuantity : barDifferenceRequestQuantity // ignore: cast_nullable_to_non_nullable +as double?,healthCertificate: freezed == healthCertificate ? _self.healthCertificate : healthCertificate // ignore: cast_nullable_to_non_nullable +as dynamic,samasatDischargePercentage: freezed == samasatDischargePercentage ? _self.samasatDischargePercentage : samasatDischargePercentage // ignore: cast_nullable_to_non_nullable +as int?,personTypeName: freezed == personTypeName ? _self.personTypeName : personTypeName // ignore: cast_nullable_to_non_nullable +as String?,interactTypeName: freezed == interactTypeName ? _self.interactTypeName : interactTypeName // ignore: cast_nullable_to_non_nullable +as String?,unionTypeName: freezed == unionTypeName ? _self.unionTypeName : unionTypeName // ignore: cast_nullable_to_non_nullable +as String?,certId: freezed == certId ? _self.certId : certId // ignore: cast_nullable_to_non_nullable +as String?,increaseQuantity: freezed == increaseQuantity ? _self.increaseQuantity : increaseQuantity // ignore: cast_nullable_to_non_nullable +as int?,tenantFullname: freezed == tenantFullname ? _self.tenantFullname : tenantFullname // ignore: cast_nullable_to_non_nullable +as dynamic,tenantNationalCode: freezed == tenantNationalCode ? _self.tenantNationalCode : tenantNationalCode // ignore: cast_nullable_to_non_nullable +as dynamic,tenantMobile: freezed == tenantMobile ? _self.tenantMobile : tenantMobile // ignore: cast_nullable_to_non_nullable +as dynamic,tenantCity: freezed == tenantCity ? _self.tenantCity : tenantCity // ignore: cast_nullable_to_non_nullable +as dynamic,hasTenant: freezed == hasTenant ? _self.hasTenant : hasTenant // ignore: cast_nullable_to_non_nullable +as bool?,createdBy: freezed == createdBy ? _self.createdBy : createdBy // ignore: cast_nullable_to_non_nullable +as dynamic,modifiedBy: freezed == modifiedBy ? _self.modifiedBy : modifiedBy // ignore: cast_nullable_to_non_nullable +as dynamic,poultry: freezed == poultry ? _self.poultry : poultry // ignore: cast_nullable_to_non_nullable +as int?, + )); +} + +/// Create a copy of HatchingDetails +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$VetFarmCopyWith<$Res>? get vetFarm { + if (_self.vetFarm == null) { + return null; + } + + return $VetFarmCopyWith<$Res>(_self.vetFarm!, (value) { + return _then(_self.copyWith(vetFarm: value)); + }); +}/// Create a copy of HatchingDetails +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ActiveKillCopyWith<$Res>? get activeKill { + if (_self.activeKill == null) { + return null; + } + + return $ActiveKillCopyWith<$Res>(_self.activeKill!, (value) { + return _then(_self.copyWith(activeKill: value)); + }); +}/// Create a copy of HatchingDetails +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$KillingInfoCopyWith<$Res>? get killingInfo { + if (_self.killingInfo == null) { + return null; + } + + return $KillingInfoCopyWith<$Res>(_self.killingInfo!, (value) { + return _then(_self.copyWith(killingInfo: value)); + }); +}/// Create a copy of HatchingDetails +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$FreeGovernmentalInfoCopyWith<$Res>? get freeGovernmentalInfo { + if (_self.freeGovernmentalInfo == null) { + return null; + } + + return $FreeGovernmentalInfoCopyWith<$Res>(_self.freeGovernmentalInfo!, (value) { + return _then(_self.copyWith(freeGovernmentalInfo: value)); + }); +}/// Create a copy of HatchingDetails +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$LastChangeCopyWith<$Res>? get lastChange { + if (_self.lastChange == null) { + return null; + } + + return $LastChangeCopyWith<$Res>(_self.lastChange!, (value) { + return _then(_self.copyWith(lastChange: value)); + }); +}/// Create a copy of HatchingDetails +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$LatestHatchingChangeCopyWith<$Res>? get latestHatchingChange { + if (_self.latestHatchingChange == null) { + return null; + } + + return $LatestHatchingChangeCopyWith<$Res>(_self.latestHatchingChange!, (value) { + return _then(_self.copyWith(latestHatchingChange: value)); + }); +} +} + + +/// @nodoc +mixin _$VetFarm { + + String? get vetFarmFullName; String? get vetFarmMobile; +/// Create a copy of VetFarm +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$VetFarmCopyWith get copyWith => _$VetFarmCopyWithImpl(this as VetFarm, _$identity); + + /// Serializes this VetFarm to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is VetFarm&&(identical(other.vetFarmFullName, vetFarmFullName) || other.vetFarmFullName == vetFarmFullName)&&(identical(other.vetFarmMobile, vetFarmMobile) || other.vetFarmMobile == vetFarmMobile)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,vetFarmFullName,vetFarmMobile); + +@override +String toString() { + return 'VetFarm(vetFarmFullName: $vetFarmFullName, vetFarmMobile: $vetFarmMobile)'; +} + + +} + +/// @nodoc +abstract mixin class $VetFarmCopyWith<$Res> { + factory $VetFarmCopyWith(VetFarm value, $Res Function(VetFarm) _then) = _$VetFarmCopyWithImpl; +@useResult +$Res call({ + String? vetFarmFullName, String? vetFarmMobile +}); + + + + +} +/// @nodoc +class _$VetFarmCopyWithImpl<$Res> + implements $VetFarmCopyWith<$Res> { + _$VetFarmCopyWithImpl(this._self, this._then); + + final VetFarm _self; + final $Res Function(VetFarm) _then; + +/// Create a copy of VetFarm +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? vetFarmFullName = freezed,Object? vetFarmMobile = freezed,}) { + return _then(_self.copyWith( +vetFarmFullName: freezed == vetFarmFullName ? _self.vetFarmFullName : vetFarmFullName // ignore: cast_nullable_to_non_nullable +as String?,vetFarmMobile: freezed == vetFarmMobile ? _self.vetFarmMobile : vetFarmMobile // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [VetFarm]. +extension VetFarmPatterns on VetFarm { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _VetFarm value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _VetFarm() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _VetFarm value) $default,){ +final _that = this; +switch (_that) { +case _VetFarm(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _VetFarm value)? $default,){ +final _that = this; +switch (_that) { +case _VetFarm() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? vetFarmFullName, String? vetFarmMobile)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _VetFarm() when $default != null: +return $default(_that.vetFarmFullName,_that.vetFarmMobile);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? vetFarmFullName, String? vetFarmMobile) $default,) {final _that = this; +switch (_that) { +case _VetFarm(): +return $default(_that.vetFarmFullName,_that.vetFarmMobile);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? vetFarmFullName, String? vetFarmMobile)? $default,) {final _that = this; +switch (_that) { +case _VetFarm() when $default != null: +return $default(_that.vetFarmFullName,_that.vetFarmMobile);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _VetFarm implements VetFarm { + const _VetFarm({this.vetFarmFullName, this.vetFarmMobile}); + factory _VetFarm.fromJson(Map json) => _$VetFarmFromJson(json); + +@override final String? vetFarmFullName; +@override final String? vetFarmMobile; + +/// Create a copy of VetFarm +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$VetFarmCopyWith<_VetFarm> get copyWith => __$VetFarmCopyWithImpl<_VetFarm>(this, _$identity); + +@override +Map toJson() { + return _$VetFarmToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _VetFarm&&(identical(other.vetFarmFullName, vetFarmFullName) || other.vetFarmFullName == vetFarmFullName)&&(identical(other.vetFarmMobile, vetFarmMobile) || other.vetFarmMobile == vetFarmMobile)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,vetFarmFullName,vetFarmMobile); + +@override +String toString() { + return 'VetFarm(vetFarmFullName: $vetFarmFullName, vetFarmMobile: $vetFarmMobile)'; +} + + +} + +/// @nodoc +abstract mixin class _$VetFarmCopyWith<$Res> implements $VetFarmCopyWith<$Res> { + factory _$VetFarmCopyWith(_VetFarm value, $Res Function(_VetFarm) _then) = __$VetFarmCopyWithImpl; +@override @useResult +$Res call({ + String? vetFarmFullName, String? vetFarmMobile +}); + + + + +} +/// @nodoc +class __$VetFarmCopyWithImpl<$Res> + implements _$VetFarmCopyWith<$Res> { + __$VetFarmCopyWithImpl(this._self, this._then); + + final _VetFarm _self; + final $Res Function(_VetFarm) _then; + +/// Create a copy of VetFarm +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? vetFarmFullName = freezed,Object? vetFarmMobile = freezed,}) { + return _then(_VetFarm( +vetFarmFullName: freezed == vetFarmFullName ? _self.vetFarmFullName : vetFarmFullName // ignore: cast_nullable_to_non_nullable +as String?,vetFarmMobile: freezed == vetFarmMobile ? _self.vetFarmMobile : vetFarmMobile // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$ActiveKill { + + bool? get activeKill; int? get countOfRequest; +/// Create a copy of ActiveKill +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ActiveKillCopyWith get copyWith => _$ActiveKillCopyWithImpl(this as ActiveKill, _$identity); + + /// Serializes this ActiveKill to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is ActiveKill&&(identical(other.activeKill, activeKill) || other.activeKill == activeKill)&&(identical(other.countOfRequest, countOfRequest) || other.countOfRequest == countOfRequest)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,activeKill,countOfRequest); + +@override +String toString() { + return 'ActiveKill(activeKill: $activeKill, countOfRequest: $countOfRequest)'; +} + + +} + +/// @nodoc +abstract mixin class $ActiveKillCopyWith<$Res> { + factory $ActiveKillCopyWith(ActiveKill value, $Res Function(ActiveKill) _then) = _$ActiveKillCopyWithImpl; +@useResult +$Res call({ + bool? activeKill, int? countOfRequest +}); + + + + +} +/// @nodoc +class _$ActiveKillCopyWithImpl<$Res> + implements $ActiveKillCopyWith<$Res> { + _$ActiveKillCopyWithImpl(this._self, this._then); + + final ActiveKill _self; + final $Res Function(ActiveKill) _then; + +/// Create a copy of ActiveKill +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? activeKill = freezed,Object? countOfRequest = freezed,}) { + return _then(_self.copyWith( +activeKill: freezed == activeKill ? _self.activeKill : activeKill // ignore: cast_nullable_to_non_nullable +as bool?,countOfRequest: freezed == countOfRequest ? _self.countOfRequest : countOfRequest // ignore: cast_nullable_to_non_nullable +as int?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [ActiveKill]. +extension ActiveKillPatterns on ActiveKill { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _ActiveKill value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _ActiveKill() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _ActiveKill value) $default,){ +final _that = this; +switch (_that) { +case _ActiveKill(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _ActiveKill value)? $default,){ +final _that = this; +switch (_that) { +case _ActiveKill() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( bool? activeKill, int? countOfRequest)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _ActiveKill() when $default != null: +return $default(_that.activeKill,_that.countOfRequest);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( bool? activeKill, int? countOfRequest) $default,) {final _that = this; +switch (_that) { +case _ActiveKill(): +return $default(_that.activeKill,_that.countOfRequest);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( bool? activeKill, int? countOfRequest)? $default,) {final _that = this; +switch (_that) { +case _ActiveKill() when $default != null: +return $default(_that.activeKill,_that.countOfRequest);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _ActiveKill implements ActiveKill { + const _ActiveKill({this.activeKill, this.countOfRequest}); + factory _ActiveKill.fromJson(Map json) => _$ActiveKillFromJson(json); + +@override final bool? activeKill; +@override final int? countOfRequest; + +/// Create a copy of ActiveKill +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ActiveKillCopyWith<_ActiveKill> get copyWith => __$ActiveKillCopyWithImpl<_ActiveKill>(this, _$identity); + +@override +Map toJson() { + return _$ActiveKillToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _ActiveKill&&(identical(other.activeKill, activeKill) || other.activeKill == activeKill)&&(identical(other.countOfRequest, countOfRequest) || other.countOfRequest == countOfRequest)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,activeKill,countOfRequest); + +@override +String toString() { + return 'ActiveKill(activeKill: $activeKill, countOfRequest: $countOfRequest)'; +} + + +} + +/// @nodoc +abstract mixin class _$ActiveKillCopyWith<$Res> implements $ActiveKillCopyWith<$Res> { + factory _$ActiveKillCopyWith(_ActiveKill value, $Res Function(_ActiveKill) _then) = __$ActiveKillCopyWithImpl; +@override @useResult +$Res call({ + bool? activeKill, int? countOfRequest +}); + + + + +} +/// @nodoc +class __$ActiveKillCopyWithImpl<$Res> + implements _$ActiveKillCopyWith<$Res> { + __$ActiveKillCopyWithImpl(this._self, this._then); + + final _ActiveKill _self; + final $Res Function(_ActiveKill) _then; + +/// Create a copy of ActiveKill +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? activeKill = freezed,Object? countOfRequest = freezed,}) { + return _then(_ActiveKill( +activeKill: freezed == activeKill ? _self.activeKill : activeKill // ignore: cast_nullable_to_non_nullable +as bool?,countOfRequest: freezed == countOfRequest ? _self.countOfRequest : countOfRequest // ignore: cast_nullable_to_non_nullable +as int?, + )); +} + + +} + + +/// @nodoc +mixin _$KillingInfo { + + String? get violationMessage; int? get provinceKillRequests; int? get provinceKillRequestsQuantity; double? get provinceKillRequestsWeight; int? get killHouseRequests; int? get killHouseRequestsFirstQuantity; double? get killHouseRequestsFirstWeight; int? get barCompleteWithKillHouse; int? get acceptedRealQuantityFinal; double? get acceptedRealWightFinal; int? get wareHouseBars; int? get wareHouseBarsQuantity; double? get wareHouseBarsWeight; double? get wareHouseBarsWeightLose; +/// Create a copy of KillingInfo +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$KillingInfoCopyWith get copyWith => _$KillingInfoCopyWithImpl(this as KillingInfo, _$identity); + + /// Serializes this KillingInfo to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is KillingInfo&&(identical(other.violationMessage, violationMessage) || other.violationMessage == violationMessage)&&(identical(other.provinceKillRequests, provinceKillRequests) || other.provinceKillRequests == provinceKillRequests)&&(identical(other.provinceKillRequestsQuantity, provinceKillRequestsQuantity) || other.provinceKillRequestsQuantity == provinceKillRequestsQuantity)&&(identical(other.provinceKillRequestsWeight, provinceKillRequestsWeight) || other.provinceKillRequestsWeight == provinceKillRequestsWeight)&&(identical(other.killHouseRequests, killHouseRequests) || other.killHouseRequests == killHouseRequests)&&(identical(other.killHouseRequestsFirstQuantity, killHouseRequestsFirstQuantity) || other.killHouseRequestsFirstQuantity == killHouseRequestsFirstQuantity)&&(identical(other.killHouseRequestsFirstWeight, killHouseRequestsFirstWeight) || other.killHouseRequestsFirstWeight == killHouseRequestsFirstWeight)&&(identical(other.barCompleteWithKillHouse, barCompleteWithKillHouse) || other.barCompleteWithKillHouse == barCompleteWithKillHouse)&&(identical(other.acceptedRealQuantityFinal, acceptedRealQuantityFinal) || other.acceptedRealQuantityFinal == acceptedRealQuantityFinal)&&(identical(other.acceptedRealWightFinal, acceptedRealWightFinal) || other.acceptedRealWightFinal == acceptedRealWightFinal)&&(identical(other.wareHouseBars, wareHouseBars) || other.wareHouseBars == wareHouseBars)&&(identical(other.wareHouseBarsQuantity, wareHouseBarsQuantity) || other.wareHouseBarsQuantity == wareHouseBarsQuantity)&&(identical(other.wareHouseBarsWeight, wareHouseBarsWeight) || other.wareHouseBarsWeight == wareHouseBarsWeight)&&(identical(other.wareHouseBarsWeightLose, wareHouseBarsWeightLose) || other.wareHouseBarsWeightLose == wareHouseBarsWeightLose)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,violationMessage,provinceKillRequests,provinceKillRequestsQuantity,provinceKillRequestsWeight,killHouseRequests,killHouseRequestsFirstQuantity,killHouseRequestsFirstWeight,barCompleteWithKillHouse,acceptedRealQuantityFinal,acceptedRealWightFinal,wareHouseBars,wareHouseBarsQuantity,wareHouseBarsWeight,wareHouseBarsWeightLose); + +@override +String toString() { + return 'KillingInfo(violationMessage: $violationMessage, provinceKillRequests: $provinceKillRequests, provinceKillRequestsQuantity: $provinceKillRequestsQuantity, provinceKillRequestsWeight: $provinceKillRequestsWeight, killHouseRequests: $killHouseRequests, killHouseRequestsFirstQuantity: $killHouseRequestsFirstQuantity, killHouseRequestsFirstWeight: $killHouseRequestsFirstWeight, barCompleteWithKillHouse: $barCompleteWithKillHouse, acceptedRealQuantityFinal: $acceptedRealQuantityFinal, acceptedRealWightFinal: $acceptedRealWightFinal, wareHouseBars: $wareHouseBars, wareHouseBarsQuantity: $wareHouseBarsQuantity, wareHouseBarsWeight: $wareHouseBarsWeight, wareHouseBarsWeightLose: $wareHouseBarsWeightLose)'; +} + + +} + +/// @nodoc +abstract mixin class $KillingInfoCopyWith<$Res> { + factory $KillingInfoCopyWith(KillingInfo value, $Res Function(KillingInfo) _then) = _$KillingInfoCopyWithImpl; +@useResult +$Res call({ + String? violationMessage, int? provinceKillRequests, int? provinceKillRequestsQuantity, double? provinceKillRequestsWeight, int? killHouseRequests, int? killHouseRequestsFirstQuantity, double? killHouseRequestsFirstWeight, int? barCompleteWithKillHouse, int? acceptedRealQuantityFinal, double? acceptedRealWightFinal, int? wareHouseBars, int? wareHouseBarsQuantity, double? wareHouseBarsWeight, double? wareHouseBarsWeightLose +}); + + + + +} +/// @nodoc +class _$KillingInfoCopyWithImpl<$Res> + implements $KillingInfoCopyWith<$Res> { + _$KillingInfoCopyWithImpl(this._self, this._then); + + final KillingInfo _self; + final $Res Function(KillingInfo) _then; + +/// Create a copy of KillingInfo +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? violationMessage = freezed,Object? provinceKillRequests = freezed,Object? provinceKillRequestsQuantity = freezed,Object? provinceKillRequestsWeight = freezed,Object? killHouseRequests = freezed,Object? killHouseRequestsFirstQuantity = freezed,Object? killHouseRequestsFirstWeight = freezed,Object? barCompleteWithKillHouse = freezed,Object? acceptedRealQuantityFinal = freezed,Object? acceptedRealWightFinal = freezed,Object? wareHouseBars = freezed,Object? wareHouseBarsQuantity = freezed,Object? wareHouseBarsWeight = freezed,Object? wareHouseBarsWeightLose = freezed,}) { + return _then(_self.copyWith( +violationMessage: freezed == violationMessage ? _self.violationMessage : violationMessage // ignore: cast_nullable_to_non_nullable +as String?,provinceKillRequests: freezed == provinceKillRequests ? _self.provinceKillRequests : provinceKillRequests // ignore: cast_nullable_to_non_nullable +as int?,provinceKillRequestsQuantity: freezed == provinceKillRequestsQuantity ? _self.provinceKillRequestsQuantity : provinceKillRequestsQuantity // ignore: cast_nullable_to_non_nullable +as int?,provinceKillRequestsWeight: freezed == provinceKillRequestsWeight ? _self.provinceKillRequestsWeight : provinceKillRequestsWeight // ignore: cast_nullable_to_non_nullable +as double?,killHouseRequests: freezed == killHouseRequests ? _self.killHouseRequests : killHouseRequests // ignore: cast_nullable_to_non_nullable +as int?,killHouseRequestsFirstQuantity: freezed == killHouseRequestsFirstQuantity ? _self.killHouseRequestsFirstQuantity : killHouseRequestsFirstQuantity // ignore: cast_nullable_to_non_nullable +as int?,killHouseRequestsFirstWeight: freezed == killHouseRequestsFirstWeight ? _self.killHouseRequestsFirstWeight : killHouseRequestsFirstWeight // ignore: cast_nullable_to_non_nullable +as double?,barCompleteWithKillHouse: freezed == barCompleteWithKillHouse ? _self.barCompleteWithKillHouse : barCompleteWithKillHouse // ignore: cast_nullable_to_non_nullable +as int?,acceptedRealQuantityFinal: freezed == acceptedRealQuantityFinal ? _self.acceptedRealQuantityFinal : acceptedRealQuantityFinal // ignore: cast_nullable_to_non_nullable +as int?,acceptedRealWightFinal: freezed == acceptedRealWightFinal ? _self.acceptedRealWightFinal : acceptedRealWightFinal // ignore: cast_nullable_to_non_nullable +as double?,wareHouseBars: freezed == wareHouseBars ? _self.wareHouseBars : wareHouseBars // ignore: cast_nullable_to_non_nullable +as int?,wareHouseBarsQuantity: freezed == wareHouseBarsQuantity ? _self.wareHouseBarsQuantity : wareHouseBarsQuantity // ignore: cast_nullable_to_non_nullable +as int?,wareHouseBarsWeight: freezed == wareHouseBarsWeight ? _self.wareHouseBarsWeight : wareHouseBarsWeight // ignore: cast_nullable_to_non_nullable +as double?,wareHouseBarsWeightLose: freezed == wareHouseBarsWeightLose ? _self.wareHouseBarsWeightLose : wareHouseBarsWeightLose // ignore: cast_nullable_to_non_nullable +as double?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [KillingInfo]. +extension KillingInfoPatterns on KillingInfo { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _KillingInfo value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _KillingInfo() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _KillingInfo value) $default,){ +final _that = this; +switch (_that) { +case _KillingInfo(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _KillingInfo value)? $default,){ +final _that = this; +switch (_that) { +case _KillingInfo() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? violationMessage, int? provinceKillRequests, int? provinceKillRequestsQuantity, double? provinceKillRequestsWeight, int? killHouseRequests, int? killHouseRequestsFirstQuantity, double? killHouseRequestsFirstWeight, int? barCompleteWithKillHouse, int? acceptedRealQuantityFinal, double? acceptedRealWightFinal, int? wareHouseBars, int? wareHouseBarsQuantity, double? wareHouseBarsWeight, double? wareHouseBarsWeightLose)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _KillingInfo() when $default != null: +return $default(_that.violationMessage,_that.provinceKillRequests,_that.provinceKillRequestsQuantity,_that.provinceKillRequestsWeight,_that.killHouseRequests,_that.killHouseRequestsFirstQuantity,_that.killHouseRequestsFirstWeight,_that.barCompleteWithKillHouse,_that.acceptedRealQuantityFinal,_that.acceptedRealWightFinal,_that.wareHouseBars,_that.wareHouseBarsQuantity,_that.wareHouseBarsWeight,_that.wareHouseBarsWeightLose);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? violationMessage, int? provinceKillRequests, int? provinceKillRequestsQuantity, double? provinceKillRequestsWeight, int? killHouseRequests, int? killHouseRequestsFirstQuantity, double? killHouseRequestsFirstWeight, int? barCompleteWithKillHouse, int? acceptedRealQuantityFinal, double? acceptedRealWightFinal, int? wareHouseBars, int? wareHouseBarsQuantity, double? wareHouseBarsWeight, double? wareHouseBarsWeightLose) $default,) {final _that = this; +switch (_that) { +case _KillingInfo(): +return $default(_that.violationMessage,_that.provinceKillRequests,_that.provinceKillRequestsQuantity,_that.provinceKillRequestsWeight,_that.killHouseRequests,_that.killHouseRequestsFirstQuantity,_that.killHouseRequestsFirstWeight,_that.barCompleteWithKillHouse,_that.acceptedRealQuantityFinal,_that.acceptedRealWightFinal,_that.wareHouseBars,_that.wareHouseBarsQuantity,_that.wareHouseBarsWeight,_that.wareHouseBarsWeightLose);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? violationMessage, int? provinceKillRequests, int? provinceKillRequestsQuantity, double? provinceKillRequestsWeight, int? killHouseRequests, int? killHouseRequestsFirstQuantity, double? killHouseRequestsFirstWeight, int? barCompleteWithKillHouse, int? acceptedRealQuantityFinal, double? acceptedRealWightFinal, int? wareHouseBars, int? wareHouseBarsQuantity, double? wareHouseBarsWeight, double? wareHouseBarsWeightLose)? $default,) {final _that = this; +switch (_that) { +case _KillingInfo() when $default != null: +return $default(_that.violationMessage,_that.provinceKillRequests,_that.provinceKillRequestsQuantity,_that.provinceKillRequestsWeight,_that.killHouseRequests,_that.killHouseRequestsFirstQuantity,_that.killHouseRequestsFirstWeight,_that.barCompleteWithKillHouse,_that.acceptedRealQuantityFinal,_that.acceptedRealWightFinal,_that.wareHouseBars,_that.wareHouseBarsQuantity,_that.wareHouseBarsWeight,_that.wareHouseBarsWeightLose);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _KillingInfo implements KillingInfo { + const _KillingInfo({this.violationMessage, this.provinceKillRequests, this.provinceKillRequestsQuantity, this.provinceKillRequestsWeight, this.killHouseRequests, this.killHouseRequestsFirstQuantity, this.killHouseRequestsFirstWeight, this.barCompleteWithKillHouse, this.acceptedRealQuantityFinal, this.acceptedRealWightFinal, this.wareHouseBars, this.wareHouseBarsQuantity, this.wareHouseBarsWeight, this.wareHouseBarsWeightLose}); + factory _KillingInfo.fromJson(Map json) => _$KillingInfoFromJson(json); + +@override final String? violationMessage; +@override final int? provinceKillRequests; +@override final int? provinceKillRequestsQuantity; +@override final double? provinceKillRequestsWeight; +@override final int? killHouseRequests; +@override final int? killHouseRequestsFirstQuantity; +@override final double? killHouseRequestsFirstWeight; +@override final int? barCompleteWithKillHouse; +@override final int? acceptedRealQuantityFinal; +@override final double? acceptedRealWightFinal; +@override final int? wareHouseBars; +@override final int? wareHouseBarsQuantity; +@override final double? wareHouseBarsWeight; +@override final double? wareHouseBarsWeightLose; + +/// Create a copy of KillingInfo +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$KillingInfoCopyWith<_KillingInfo> get copyWith => __$KillingInfoCopyWithImpl<_KillingInfo>(this, _$identity); + +@override +Map toJson() { + return _$KillingInfoToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _KillingInfo&&(identical(other.violationMessage, violationMessage) || other.violationMessage == violationMessage)&&(identical(other.provinceKillRequests, provinceKillRequests) || other.provinceKillRequests == provinceKillRequests)&&(identical(other.provinceKillRequestsQuantity, provinceKillRequestsQuantity) || other.provinceKillRequestsQuantity == provinceKillRequestsQuantity)&&(identical(other.provinceKillRequestsWeight, provinceKillRequestsWeight) || other.provinceKillRequestsWeight == provinceKillRequestsWeight)&&(identical(other.killHouseRequests, killHouseRequests) || other.killHouseRequests == killHouseRequests)&&(identical(other.killHouseRequestsFirstQuantity, killHouseRequestsFirstQuantity) || other.killHouseRequestsFirstQuantity == killHouseRequestsFirstQuantity)&&(identical(other.killHouseRequestsFirstWeight, killHouseRequestsFirstWeight) || other.killHouseRequestsFirstWeight == killHouseRequestsFirstWeight)&&(identical(other.barCompleteWithKillHouse, barCompleteWithKillHouse) || other.barCompleteWithKillHouse == barCompleteWithKillHouse)&&(identical(other.acceptedRealQuantityFinal, acceptedRealQuantityFinal) || other.acceptedRealQuantityFinal == acceptedRealQuantityFinal)&&(identical(other.acceptedRealWightFinal, acceptedRealWightFinal) || other.acceptedRealWightFinal == acceptedRealWightFinal)&&(identical(other.wareHouseBars, wareHouseBars) || other.wareHouseBars == wareHouseBars)&&(identical(other.wareHouseBarsQuantity, wareHouseBarsQuantity) || other.wareHouseBarsQuantity == wareHouseBarsQuantity)&&(identical(other.wareHouseBarsWeight, wareHouseBarsWeight) || other.wareHouseBarsWeight == wareHouseBarsWeight)&&(identical(other.wareHouseBarsWeightLose, wareHouseBarsWeightLose) || other.wareHouseBarsWeightLose == wareHouseBarsWeightLose)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,violationMessage,provinceKillRequests,provinceKillRequestsQuantity,provinceKillRequestsWeight,killHouseRequests,killHouseRequestsFirstQuantity,killHouseRequestsFirstWeight,barCompleteWithKillHouse,acceptedRealQuantityFinal,acceptedRealWightFinal,wareHouseBars,wareHouseBarsQuantity,wareHouseBarsWeight,wareHouseBarsWeightLose); + +@override +String toString() { + return 'KillingInfo(violationMessage: $violationMessage, provinceKillRequests: $provinceKillRequests, provinceKillRequestsQuantity: $provinceKillRequestsQuantity, provinceKillRequestsWeight: $provinceKillRequestsWeight, killHouseRequests: $killHouseRequests, killHouseRequestsFirstQuantity: $killHouseRequestsFirstQuantity, killHouseRequestsFirstWeight: $killHouseRequestsFirstWeight, barCompleteWithKillHouse: $barCompleteWithKillHouse, acceptedRealQuantityFinal: $acceptedRealQuantityFinal, acceptedRealWightFinal: $acceptedRealWightFinal, wareHouseBars: $wareHouseBars, wareHouseBarsQuantity: $wareHouseBarsQuantity, wareHouseBarsWeight: $wareHouseBarsWeight, wareHouseBarsWeightLose: $wareHouseBarsWeightLose)'; +} + + +} + +/// @nodoc +abstract mixin class _$KillingInfoCopyWith<$Res> implements $KillingInfoCopyWith<$Res> { + factory _$KillingInfoCopyWith(_KillingInfo value, $Res Function(_KillingInfo) _then) = __$KillingInfoCopyWithImpl; +@override @useResult +$Res call({ + String? violationMessage, int? provinceKillRequests, int? provinceKillRequestsQuantity, double? provinceKillRequestsWeight, int? killHouseRequests, int? killHouseRequestsFirstQuantity, double? killHouseRequestsFirstWeight, int? barCompleteWithKillHouse, int? acceptedRealQuantityFinal, double? acceptedRealWightFinal, int? wareHouseBars, int? wareHouseBarsQuantity, double? wareHouseBarsWeight, double? wareHouseBarsWeightLose +}); + + + + +} +/// @nodoc +class __$KillingInfoCopyWithImpl<$Res> + implements _$KillingInfoCopyWith<$Res> { + __$KillingInfoCopyWithImpl(this._self, this._then); + + final _KillingInfo _self; + final $Res Function(_KillingInfo) _then; + +/// Create a copy of KillingInfo +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? violationMessage = freezed,Object? provinceKillRequests = freezed,Object? provinceKillRequestsQuantity = freezed,Object? provinceKillRequestsWeight = freezed,Object? killHouseRequests = freezed,Object? killHouseRequestsFirstQuantity = freezed,Object? killHouseRequestsFirstWeight = freezed,Object? barCompleteWithKillHouse = freezed,Object? acceptedRealQuantityFinal = freezed,Object? acceptedRealWightFinal = freezed,Object? wareHouseBars = freezed,Object? wareHouseBarsQuantity = freezed,Object? wareHouseBarsWeight = freezed,Object? wareHouseBarsWeightLose = freezed,}) { + return _then(_KillingInfo( +violationMessage: freezed == violationMessage ? _self.violationMessage : violationMessage // ignore: cast_nullable_to_non_nullable +as String?,provinceKillRequests: freezed == provinceKillRequests ? _self.provinceKillRequests : provinceKillRequests // ignore: cast_nullable_to_non_nullable +as int?,provinceKillRequestsQuantity: freezed == provinceKillRequestsQuantity ? _self.provinceKillRequestsQuantity : provinceKillRequestsQuantity // ignore: cast_nullable_to_non_nullable +as int?,provinceKillRequestsWeight: freezed == provinceKillRequestsWeight ? _self.provinceKillRequestsWeight : provinceKillRequestsWeight // ignore: cast_nullable_to_non_nullable +as double?,killHouseRequests: freezed == killHouseRequests ? _self.killHouseRequests : killHouseRequests // ignore: cast_nullable_to_non_nullable +as int?,killHouseRequestsFirstQuantity: freezed == killHouseRequestsFirstQuantity ? _self.killHouseRequestsFirstQuantity : killHouseRequestsFirstQuantity // ignore: cast_nullable_to_non_nullable +as int?,killHouseRequestsFirstWeight: freezed == killHouseRequestsFirstWeight ? _self.killHouseRequestsFirstWeight : killHouseRequestsFirstWeight // ignore: cast_nullable_to_non_nullable +as double?,barCompleteWithKillHouse: freezed == barCompleteWithKillHouse ? _self.barCompleteWithKillHouse : barCompleteWithKillHouse // ignore: cast_nullable_to_non_nullable +as int?,acceptedRealQuantityFinal: freezed == acceptedRealQuantityFinal ? _self.acceptedRealQuantityFinal : acceptedRealQuantityFinal // ignore: cast_nullable_to_non_nullable +as int?,acceptedRealWightFinal: freezed == acceptedRealWightFinal ? _self.acceptedRealWightFinal : acceptedRealWightFinal // ignore: cast_nullable_to_non_nullable +as double?,wareHouseBars: freezed == wareHouseBars ? _self.wareHouseBars : wareHouseBars // ignore: cast_nullable_to_non_nullable +as int?,wareHouseBarsQuantity: freezed == wareHouseBarsQuantity ? _self.wareHouseBarsQuantity : wareHouseBarsQuantity // ignore: cast_nullable_to_non_nullable +as int?,wareHouseBarsWeight: freezed == wareHouseBarsWeight ? _self.wareHouseBarsWeight : wareHouseBarsWeight // ignore: cast_nullable_to_non_nullable +as double?,wareHouseBarsWeightLose: freezed == wareHouseBarsWeightLose ? _self.wareHouseBarsWeightLose : wareHouseBarsWeightLose // ignore: cast_nullable_to_non_nullable +as double?, + )); +} + + +} + + +/// @nodoc +mixin _$FreeGovernmentalInfo { + + int? get governmentalAllocatedQuantity; double? get totalCommitmentQuantity; int? get freeAllocatedQuantity; double? get totalFreeCommitmentQuantity; int? get leftTotalFreeCommitmentQuantity; +/// Create a copy of FreeGovernmentalInfo +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$FreeGovernmentalInfoCopyWith get copyWith => _$FreeGovernmentalInfoCopyWithImpl(this as FreeGovernmentalInfo, _$identity); + + /// Serializes this FreeGovernmentalInfo to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is FreeGovernmentalInfo&&(identical(other.governmentalAllocatedQuantity, governmentalAllocatedQuantity) || other.governmentalAllocatedQuantity == governmentalAllocatedQuantity)&&(identical(other.totalCommitmentQuantity, totalCommitmentQuantity) || other.totalCommitmentQuantity == totalCommitmentQuantity)&&(identical(other.freeAllocatedQuantity, freeAllocatedQuantity) || other.freeAllocatedQuantity == freeAllocatedQuantity)&&(identical(other.totalFreeCommitmentQuantity, totalFreeCommitmentQuantity) || other.totalFreeCommitmentQuantity == totalFreeCommitmentQuantity)&&(identical(other.leftTotalFreeCommitmentQuantity, leftTotalFreeCommitmentQuantity) || other.leftTotalFreeCommitmentQuantity == leftTotalFreeCommitmentQuantity)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,governmentalAllocatedQuantity,totalCommitmentQuantity,freeAllocatedQuantity,totalFreeCommitmentQuantity,leftTotalFreeCommitmentQuantity); + +@override +String toString() { + return 'FreeGovernmentalInfo(governmentalAllocatedQuantity: $governmentalAllocatedQuantity, totalCommitmentQuantity: $totalCommitmentQuantity, freeAllocatedQuantity: $freeAllocatedQuantity, totalFreeCommitmentQuantity: $totalFreeCommitmentQuantity, leftTotalFreeCommitmentQuantity: $leftTotalFreeCommitmentQuantity)'; +} + + +} + +/// @nodoc +abstract mixin class $FreeGovernmentalInfoCopyWith<$Res> { + factory $FreeGovernmentalInfoCopyWith(FreeGovernmentalInfo value, $Res Function(FreeGovernmentalInfo) _then) = _$FreeGovernmentalInfoCopyWithImpl; +@useResult +$Res call({ + int? governmentalAllocatedQuantity, double? totalCommitmentQuantity, int? freeAllocatedQuantity, double? totalFreeCommitmentQuantity, int? leftTotalFreeCommitmentQuantity +}); + + + + +} +/// @nodoc +class _$FreeGovernmentalInfoCopyWithImpl<$Res> + implements $FreeGovernmentalInfoCopyWith<$Res> { + _$FreeGovernmentalInfoCopyWithImpl(this._self, this._then); + + final FreeGovernmentalInfo _self; + final $Res Function(FreeGovernmentalInfo) _then; + +/// Create a copy of FreeGovernmentalInfo +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? governmentalAllocatedQuantity = freezed,Object? totalCommitmentQuantity = freezed,Object? freeAllocatedQuantity = freezed,Object? totalFreeCommitmentQuantity = freezed,Object? leftTotalFreeCommitmentQuantity = freezed,}) { + return _then(_self.copyWith( +governmentalAllocatedQuantity: freezed == governmentalAllocatedQuantity ? _self.governmentalAllocatedQuantity : governmentalAllocatedQuantity // ignore: cast_nullable_to_non_nullable +as int?,totalCommitmentQuantity: freezed == totalCommitmentQuantity ? _self.totalCommitmentQuantity : totalCommitmentQuantity // ignore: cast_nullable_to_non_nullable +as double?,freeAllocatedQuantity: freezed == freeAllocatedQuantity ? _self.freeAllocatedQuantity : freeAllocatedQuantity // ignore: cast_nullable_to_non_nullable +as int?,totalFreeCommitmentQuantity: freezed == totalFreeCommitmentQuantity ? _self.totalFreeCommitmentQuantity : totalFreeCommitmentQuantity // ignore: cast_nullable_to_non_nullable +as double?,leftTotalFreeCommitmentQuantity: freezed == leftTotalFreeCommitmentQuantity ? _self.leftTotalFreeCommitmentQuantity : leftTotalFreeCommitmentQuantity // ignore: cast_nullable_to_non_nullable +as int?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [FreeGovernmentalInfo]. +extension FreeGovernmentalInfoPatterns on FreeGovernmentalInfo { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _FreeGovernmentalInfo value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _FreeGovernmentalInfo() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _FreeGovernmentalInfo value) $default,){ +final _that = this; +switch (_that) { +case _FreeGovernmentalInfo(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _FreeGovernmentalInfo value)? $default,){ +final _that = this; +switch (_that) { +case _FreeGovernmentalInfo() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( int? governmentalAllocatedQuantity, double? totalCommitmentQuantity, int? freeAllocatedQuantity, double? totalFreeCommitmentQuantity, int? leftTotalFreeCommitmentQuantity)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _FreeGovernmentalInfo() when $default != null: +return $default(_that.governmentalAllocatedQuantity,_that.totalCommitmentQuantity,_that.freeAllocatedQuantity,_that.totalFreeCommitmentQuantity,_that.leftTotalFreeCommitmentQuantity);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( int? governmentalAllocatedQuantity, double? totalCommitmentQuantity, int? freeAllocatedQuantity, double? totalFreeCommitmentQuantity, int? leftTotalFreeCommitmentQuantity) $default,) {final _that = this; +switch (_that) { +case _FreeGovernmentalInfo(): +return $default(_that.governmentalAllocatedQuantity,_that.totalCommitmentQuantity,_that.freeAllocatedQuantity,_that.totalFreeCommitmentQuantity,_that.leftTotalFreeCommitmentQuantity);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( int? governmentalAllocatedQuantity, double? totalCommitmentQuantity, int? freeAllocatedQuantity, double? totalFreeCommitmentQuantity, int? leftTotalFreeCommitmentQuantity)? $default,) {final _that = this; +switch (_that) { +case _FreeGovernmentalInfo() when $default != null: +return $default(_that.governmentalAllocatedQuantity,_that.totalCommitmentQuantity,_that.freeAllocatedQuantity,_that.totalFreeCommitmentQuantity,_that.leftTotalFreeCommitmentQuantity);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _FreeGovernmentalInfo implements FreeGovernmentalInfo { + const _FreeGovernmentalInfo({this.governmentalAllocatedQuantity, this.totalCommitmentQuantity, this.freeAllocatedQuantity, this.totalFreeCommitmentQuantity, this.leftTotalFreeCommitmentQuantity}); + factory _FreeGovernmentalInfo.fromJson(Map json) => _$FreeGovernmentalInfoFromJson(json); + +@override final int? governmentalAllocatedQuantity; +@override final double? totalCommitmentQuantity; +@override final int? freeAllocatedQuantity; +@override final double? totalFreeCommitmentQuantity; +@override final int? leftTotalFreeCommitmentQuantity; + +/// Create a copy of FreeGovernmentalInfo +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$FreeGovernmentalInfoCopyWith<_FreeGovernmentalInfo> get copyWith => __$FreeGovernmentalInfoCopyWithImpl<_FreeGovernmentalInfo>(this, _$identity); + +@override +Map toJson() { + return _$FreeGovernmentalInfoToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _FreeGovernmentalInfo&&(identical(other.governmentalAllocatedQuantity, governmentalAllocatedQuantity) || other.governmentalAllocatedQuantity == governmentalAllocatedQuantity)&&(identical(other.totalCommitmentQuantity, totalCommitmentQuantity) || other.totalCommitmentQuantity == totalCommitmentQuantity)&&(identical(other.freeAllocatedQuantity, freeAllocatedQuantity) || other.freeAllocatedQuantity == freeAllocatedQuantity)&&(identical(other.totalFreeCommitmentQuantity, totalFreeCommitmentQuantity) || other.totalFreeCommitmentQuantity == totalFreeCommitmentQuantity)&&(identical(other.leftTotalFreeCommitmentQuantity, leftTotalFreeCommitmentQuantity) || other.leftTotalFreeCommitmentQuantity == leftTotalFreeCommitmentQuantity)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,governmentalAllocatedQuantity,totalCommitmentQuantity,freeAllocatedQuantity,totalFreeCommitmentQuantity,leftTotalFreeCommitmentQuantity); + +@override +String toString() { + return 'FreeGovernmentalInfo(governmentalAllocatedQuantity: $governmentalAllocatedQuantity, totalCommitmentQuantity: $totalCommitmentQuantity, freeAllocatedQuantity: $freeAllocatedQuantity, totalFreeCommitmentQuantity: $totalFreeCommitmentQuantity, leftTotalFreeCommitmentQuantity: $leftTotalFreeCommitmentQuantity)'; +} + + +} + +/// @nodoc +abstract mixin class _$FreeGovernmentalInfoCopyWith<$Res> implements $FreeGovernmentalInfoCopyWith<$Res> { + factory _$FreeGovernmentalInfoCopyWith(_FreeGovernmentalInfo value, $Res Function(_FreeGovernmentalInfo) _then) = __$FreeGovernmentalInfoCopyWithImpl; +@override @useResult +$Res call({ + int? governmentalAllocatedQuantity, double? totalCommitmentQuantity, int? freeAllocatedQuantity, double? totalFreeCommitmentQuantity, int? leftTotalFreeCommitmentQuantity +}); + + + + +} +/// @nodoc +class __$FreeGovernmentalInfoCopyWithImpl<$Res> + implements _$FreeGovernmentalInfoCopyWith<$Res> { + __$FreeGovernmentalInfoCopyWithImpl(this._self, this._then); + + final _FreeGovernmentalInfo _self; + final $Res Function(_FreeGovernmentalInfo) _then; + +/// Create a copy of FreeGovernmentalInfo +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? governmentalAllocatedQuantity = freezed,Object? totalCommitmentQuantity = freezed,Object? freeAllocatedQuantity = freezed,Object? totalFreeCommitmentQuantity = freezed,Object? leftTotalFreeCommitmentQuantity = freezed,}) { + return _then(_FreeGovernmentalInfo( +governmentalAllocatedQuantity: freezed == governmentalAllocatedQuantity ? _self.governmentalAllocatedQuantity : governmentalAllocatedQuantity // ignore: cast_nullable_to_non_nullable +as int?,totalCommitmentQuantity: freezed == totalCommitmentQuantity ? _self.totalCommitmentQuantity : totalCommitmentQuantity // ignore: cast_nullable_to_non_nullable +as double?,freeAllocatedQuantity: freezed == freeAllocatedQuantity ? _self.freeAllocatedQuantity : freeAllocatedQuantity // ignore: cast_nullable_to_non_nullable +as int?,totalFreeCommitmentQuantity: freezed == totalFreeCommitmentQuantity ? _self.totalFreeCommitmentQuantity : totalFreeCommitmentQuantity // ignore: cast_nullable_to_non_nullable +as double?,leftTotalFreeCommitmentQuantity: freezed == leftTotalFreeCommitmentQuantity ? _self.leftTotalFreeCommitmentQuantity : leftTotalFreeCommitmentQuantity // ignore: cast_nullable_to_non_nullable +as int?, + )); +} + + +} + + +/// @nodoc +mixin _$Breed { + + String? get breed; int? get mainQuantity; int? get remainQuantity; +/// Create a copy of Breed +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$BreedCopyWith get copyWith => _$BreedCopyWithImpl(this as Breed, _$identity); + + /// Serializes this Breed to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is Breed&&(identical(other.breed, breed) || other.breed == breed)&&(identical(other.mainQuantity, mainQuantity) || other.mainQuantity == mainQuantity)&&(identical(other.remainQuantity, remainQuantity) || other.remainQuantity == remainQuantity)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,breed,mainQuantity,remainQuantity); + +@override +String toString() { + return 'Breed(breed: $breed, mainQuantity: $mainQuantity, remainQuantity: $remainQuantity)'; +} + + +} + +/// @nodoc +abstract mixin class $BreedCopyWith<$Res> { + factory $BreedCopyWith(Breed value, $Res Function(Breed) _then) = _$BreedCopyWithImpl; +@useResult +$Res call({ + String? breed, int? mainQuantity, int? remainQuantity +}); + + + + +} +/// @nodoc +class _$BreedCopyWithImpl<$Res> + implements $BreedCopyWith<$Res> { + _$BreedCopyWithImpl(this._self, this._then); + + final Breed _self; + final $Res Function(Breed) _then; + +/// Create a copy of Breed +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? breed = freezed,Object? mainQuantity = freezed,Object? remainQuantity = freezed,}) { + return _then(_self.copyWith( +breed: freezed == breed ? _self.breed : breed // ignore: cast_nullable_to_non_nullable +as String?,mainQuantity: freezed == mainQuantity ? _self.mainQuantity : mainQuantity // ignore: cast_nullable_to_non_nullable +as int?,remainQuantity: freezed == remainQuantity ? _self.remainQuantity : remainQuantity // ignore: cast_nullable_to_non_nullable +as int?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [Breed]. +extension BreedPatterns on Breed { +/// 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( _Breed value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _Breed() 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( _Breed value) $default,){ +final _that = this; +switch (_that) { +case _Breed(): +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( _Breed value)? $default,){ +final _that = this; +switch (_that) { +case _Breed() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? breed, int? mainQuantity, int? remainQuantity)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _Breed() when $default != null: +return $default(_that.breed,_that.mainQuantity,_that.remainQuantity);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? breed, int? mainQuantity, int? remainQuantity) $default,) {final _that = this; +switch (_that) { +case _Breed(): +return $default(_that.breed,_that.mainQuantity,_that.remainQuantity);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? breed, int? mainQuantity, int? remainQuantity)? $default,) {final _that = this; +switch (_that) { +case _Breed() when $default != null: +return $default(_that.breed,_that.mainQuantity,_that.remainQuantity);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _Breed implements Breed { + const _Breed({this.breed, this.mainQuantity, this.remainQuantity}); + factory _Breed.fromJson(Map json) => _$BreedFromJson(json); + +@override final String? breed; +@override final int? mainQuantity; +@override final int? remainQuantity; + +/// Create a copy of Breed +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$BreedCopyWith<_Breed> get copyWith => __$BreedCopyWithImpl<_Breed>(this, _$identity); + +@override +Map toJson() { + return _$BreedToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Breed&&(identical(other.breed, breed) || other.breed == breed)&&(identical(other.mainQuantity, mainQuantity) || other.mainQuantity == mainQuantity)&&(identical(other.remainQuantity, remainQuantity) || other.remainQuantity == remainQuantity)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,breed,mainQuantity,remainQuantity); + +@override +String toString() { + return 'Breed(breed: $breed, mainQuantity: $mainQuantity, remainQuantity: $remainQuantity)'; +} + + +} + +/// @nodoc +abstract mixin class _$BreedCopyWith<$Res> implements $BreedCopyWith<$Res> { + factory _$BreedCopyWith(_Breed value, $Res Function(_Breed) _then) = __$BreedCopyWithImpl; +@override @useResult +$Res call({ + String? breed, int? mainQuantity, int? remainQuantity +}); + + + + +} +/// @nodoc +class __$BreedCopyWithImpl<$Res> + implements _$BreedCopyWith<$Res> { + __$BreedCopyWithImpl(this._self, this._then); + + final _Breed _self; + final $Res Function(_Breed) _then; + +/// Create a copy of Breed +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? breed = freezed,Object? mainQuantity = freezed,Object? remainQuantity = freezed,}) { + return _then(_Breed( +breed: freezed == breed ? _self.breed : breed // ignore: cast_nullable_to_non_nullable +as String?,mainQuantity: freezed == mainQuantity ? _self.mainQuantity : mainQuantity // ignore: cast_nullable_to_non_nullable +as int?,remainQuantity: freezed == remainQuantity ? _self.remainQuantity : remainQuantity // ignore: cast_nullable_to_non_nullable +as int?, + )); +} + + +} + + +/// @nodoc +mixin _$LastChange { + + DateTime? get date; String? get role; String? get type; String? get fullName; +/// Create a copy of LastChange +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$LastChangeCopyWith get copyWith => _$LastChangeCopyWithImpl(this as LastChange, _$identity); + + /// Serializes this LastChange to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is LastChange&&(identical(other.date, date) || other.date == date)&&(identical(other.role, role) || other.role == role)&&(identical(other.type, type) || other.type == type)&&(identical(other.fullName, fullName) || other.fullName == fullName)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,date,role,type,fullName); + +@override +String toString() { + return 'LastChange(date: $date, role: $role, type: $type, fullName: $fullName)'; +} + + +} + +/// @nodoc +abstract mixin class $LastChangeCopyWith<$Res> { + factory $LastChangeCopyWith(LastChange value, $Res Function(LastChange) _then) = _$LastChangeCopyWithImpl; +@useResult +$Res call({ + DateTime? date, String? role, String? type, String? fullName +}); + + + + +} +/// @nodoc +class _$LastChangeCopyWithImpl<$Res> + implements $LastChangeCopyWith<$Res> { + _$LastChangeCopyWithImpl(this._self, this._then); + + final LastChange _self; + final $Res Function(LastChange) _then; + +/// Create a copy of LastChange +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? date = freezed,Object? role = freezed,Object? type = freezed,Object? fullName = freezed,}) { + return _then(_self.copyWith( +date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as DateTime?,role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable +as String?,type: freezed == type ? _self.type : type // ignore: cast_nullable_to_non_nullable +as String?,fullName: freezed == fullName ? _self.fullName : fullName // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [LastChange]. +extension LastChangePatterns on LastChange { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _LastChange value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _LastChange() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _LastChange value) $default,){ +final _that = this; +switch (_that) { +case _LastChange(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _LastChange value)? $default,){ +final _that = this; +switch (_that) { +case _LastChange() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( DateTime? date, String? role, String? type, String? fullName)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _LastChange() when $default != null: +return $default(_that.date,_that.role,_that.type,_that.fullName);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( DateTime? date, String? role, String? type, String? fullName) $default,) {final _that = this; +switch (_that) { +case _LastChange(): +return $default(_that.date,_that.role,_that.type,_that.fullName);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( DateTime? date, String? role, String? type, String? fullName)? $default,) {final _that = this; +switch (_that) { +case _LastChange() when $default != null: +return $default(_that.date,_that.role,_that.type,_that.fullName);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _LastChange implements LastChange { + const _LastChange({this.date, this.role, this.type, this.fullName}); + factory _LastChange.fromJson(Map json) => _$LastChangeFromJson(json); + +@override final DateTime? date; +@override final String? role; +@override final String? type; +@override final String? fullName; + +/// Create a copy of LastChange +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$LastChangeCopyWith<_LastChange> get copyWith => __$LastChangeCopyWithImpl<_LastChange>(this, _$identity); + +@override +Map toJson() { + return _$LastChangeToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _LastChange&&(identical(other.date, date) || other.date == date)&&(identical(other.role, role) || other.role == role)&&(identical(other.type, type) || other.type == type)&&(identical(other.fullName, fullName) || other.fullName == fullName)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,date,role,type,fullName); + +@override +String toString() { + return 'LastChange(date: $date, role: $role, type: $type, fullName: $fullName)'; +} + + +} + +/// @nodoc +abstract mixin class _$LastChangeCopyWith<$Res> implements $LastChangeCopyWith<$Res> { + factory _$LastChangeCopyWith(_LastChange value, $Res Function(_LastChange) _then) = __$LastChangeCopyWithImpl; +@override @useResult +$Res call({ + DateTime? date, String? role, String? type, String? fullName +}); + + + + +} +/// @nodoc +class __$LastChangeCopyWithImpl<$Res> + implements _$LastChangeCopyWith<$Res> { + __$LastChangeCopyWithImpl(this._self, this._then); + + final _LastChange _self; + final $Res Function(_LastChange) _then; + +/// Create a copy of LastChange +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? date = freezed,Object? role = freezed,Object? type = freezed,Object? fullName = freezed,}) { + return _then(_LastChange( +date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as DateTime?,role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable +as String?,type: freezed == type ? _self.type : type // ignore: cast_nullable_to_non_nullable +as String?,fullName: freezed == fullName ? _self.fullName : fullName // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$LatestHatchingChange { + + DateTime? get date; String? get role; String? get fullName; +/// Create a copy of LatestHatchingChange +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$LatestHatchingChangeCopyWith get copyWith => _$LatestHatchingChangeCopyWithImpl(this as LatestHatchingChange, _$identity); + + /// Serializes this LatestHatchingChange to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is LatestHatchingChange&&(identical(other.date, date) || other.date == date)&&(identical(other.role, role) || other.role == role)&&(identical(other.fullName, fullName) || other.fullName == fullName)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,date,role,fullName); + +@override +String toString() { + return 'LatestHatchingChange(date: $date, role: $role, fullName: $fullName)'; +} + + +} + +/// @nodoc +abstract mixin class $LatestHatchingChangeCopyWith<$Res> { + factory $LatestHatchingChangeCopyWith(LatestHatchingChange value, $Res Function(LatestHatchingChange) _then) = _$LatestHatchingChangeCopyWithImpl; +@useResult +$Res call({ + DateTime? date, String? role, String? fullName +}); + + + + +} +/// @nodoc +class _$LatestHatchingChangeCopyWithImpl<$Res> + implements $LatestHatchingChangeCopyWith<$Res> { + _$LatestHatchingChangeCopyWithImpl(this._self, this._then); + + final LatestHatchingChange _self; + final $Res Function(LatestHatchingChange) _then; + +/// Create a copy of LatestHatchingChange +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? date = freezed,Object? role = freezed,Object? fullName = freezed,}) { + return _then(_self.copyWith( +date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as DateTime?,role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable +as String?,fullName: freezed == fullName ? _self.fullName : fullName // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [LatestHatchingChange]. +extension LatestHatchingChangePatterns on LatestHatchingChange { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _LatestHatchingChange value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _LatestHatchingChange() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _LatestHatchingChange value) $default,){ +final _that = this; +switch (_that) { +case _LatestHatchingChange(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _LatestHatchingChange value)? $default,){ +final _that = this; +switch (_that) { +case _LatestHatchingChange() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( DateTime? date, String? role, String? fullName)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _LatestHatchingChange() when $default != null: +return $default(_that.date,_that.role,_that.fullName);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( DateTime? date, String? role, String? fullName) $default,) {final _that = this; +switch (_that) { +case _LatestHatchingChange(): +return $default(_that.date,_that.role,_that.fullName);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( DateTime? date, String? role, String? fullName)? $default,) {final _that = this; +switch (_that) { +case _LatestHatchingChange() when $default != null: +return $default(_that.date,_that.role,_that.fullName);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _LatestHatchingChange implements LatestHatchingChange { + const _LatestHatchingChange({this.date, this.role, this.fullName}); + factory _LatestHatchingChange.fromJson(Map json) => _$LatestHatchingChangeFromJson(json); + +@override final DateTime? date; +@override final String? role; +@override final String? fullName; + +/// Create a copy of LatestHatchingChange +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$LatestHatchingChangeCopyWith<_LatestHatchingChange> get copyWith => __$LatestHatchingChangeCopyWithImpl<_LatestHatchingChange>(this, _$identity); + +@override +Map toJson() { + return _$LatestHatchingChangeToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _LatestHatchingChange&&(identical(other.date, date) || other.date == date)&&(identical(other.role, role) || other.role == role)&&(identical(other.fullName, fullName) || other.fullName == fullName)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,date,role,fullName); + +@override +String toString() { + return 'LatestHatchingChange(date: $date, role: $role, fullName: $fullName)'; +} + + +} + +/// @nodoc +abstract mixin class _$LatestHatchingChangeCopyWith<$Res> implements $LatestHatchingChangeCopyWith<$Res> { + factory _$LatestHatchingChangeCopyWith(_LatestHatchingChange value, $Res Function(_LatestHatchingChange) _then) = __$LatestHatchingChangeCopyWithImpl; +@override @useResult +$Res call({ + DateTime? date, String? role, String? fullName +}); + + + + +} +/// @nodoc +class __$LatestHatchingChangeCopyWithImpl<$Res> + implements _$LatestHatchingChangeCopyWith<$Res> { + __$LatestHatchingChangeCopyWithImpl(this._self, this._then); + + final _LatestHatchingChange _self; + final $Res Function(_LatestHatchingChange) _then; + +/// Create a copy of LatestHatchingChange +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? date = freezed,Object? role = freezed,Object? fullName = freezed,}) { + return _then(_LatestHatchingChange( +date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as DateTime?,role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable +as String?,fullName: freezed == fullName ? _self.fullName : fullName // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + +// dart format on diff --git a/packages/inspection/lib/data/model/response/hatching_details/hatching_details.g.dart b/packages/inspection/lib/data/model/response/hatching_details/hatching_details.g.dart new file mode 100644 index 0000000..0c94208 --- /dev/null +++ b/packages/inspection/lib/data/model/response/hatching_details/hatching_details.g.dart @@ -0,0 +1,385 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'hatching_details.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +_HatchingDetails _$HatchingDetailsFromJson( + Map json, +) => _HatchingDetails( + id: (json['id'] as num).toInt(), + chainCompany: json['chain_company'] as String?, + age: (json['age'] as num?)?.toInt(), + inspectionLosses: json['inspection_losses'], + vetFarm: json['vet_farm'] == null + ? null + : VetFarm.fromJson(json['vet_farm'] as Map), + activeKill: json['active_kill'] == null + ? null + : ActiveKill.fromJson(json['active_kill'] as Map), + killingInfo: json['killing_info'] == null + ? null + : KillingInfo.fromJson(json['killing_info'] as Map), + freeGovernmentalInfo: json['free_governmental_info'] == null + ? null + : FreeGovernmentalInfo.fromJson( + json['free_governmental_info'] as Map, + ), + key: json['key'] as String?, + createDate: json['create_date'] == null + ? null + : DateTime.parse(json['create_date'] as String), + modifyDate: json['modify_date'] == null + ? null + : DateTime.parse(json['modify_date'] as String), + trash: json['trash'] as bool?, + hasChainCompany: json['has_chain_company'] as bool?, + poultryIdForeignKey: json['poultry_id_foreign_key'], + poultryHatchingIdKey: json['poultry_hatching_id_key'], + quantity: (json['quantity'] as num?)?.toInt(), + losses: (json['losses'] as num?)?.toInt(), + leftOver: (json['left_over'] as num?)?.toInt(), + killedQuantity: (json['killed_quantity'] as num?)?.toInt(), + extraKilledQuantity: (json['extra_killed_quantity'] as num?)?.toInt(), + governmentalKilledQuantity: (json['governmental_killed_quantity'] as num?) + ?.toDouble(), + governmentalQuantity: (json['governmental_quantity'] as num?)?.toDouble(), + freeKilledQuantity: (json['free_killed_quantity'] as num?)?.toDouble(), + freeQuantity: (json['free_quantity'] as num?)?.toDouble(), + chainKilledQuantity: (json['chain_killed_quantity'] as num?)?.toDouble(), + chainKilledWeight: (json['chain_killed_weight'] as num?)?.toDouble(), + outProvinceKilledWeight: (json['out_province_killed_weight'] as num?) + ?.toDouble(), + outProvinceKilledQuantity: (json['out_province_killed_quantity'] as num?) + ?.toDouble(), + exportKilledWeight: (json['export_killed_weight'] as num?)?.toDouble(), + exportKilledQuantity: (json['export_killed_quantity'] as num?)?.toDouble(), + totalCommitment: (json['total_commitment'] as num?)?.toDouble(), + commitmentType: json['commitment_type'] as String?, + totalCommitmentQuantity: (json['total_commitment_quantity'] as num?) + ?.toDouble(), + totalFreeCommitmentQuantity: (json['total_free_commitment_quantity'] as num?) + ?.toDouble(), + totalFreeCommitmentWeight: (json['total_free_commitment_weight'] as num?) + ?.toDouble(), + totalKilledWeight: (json['total_killed_weight'] as num?)?.toDouble(), + totalAverageKilledWeight: (json['total_average_killed_weight'] as num?) + ?.toDouble(), + requestLeftOver: (json['request_left_over'] as num?)?.toInt(), + hall: (json['hall'] as num?)?.toInt(), + date: json['date'] == null ? null : DateTime.parse(json['date'] as String), + predicateDate: json['predicate_date'] == null + ? null + : DateTime.parse(json['predicate_date'] as String), + chickenBreed: json['chicken_breed'] as String?, + period: (json['period'] as num?)?.toInt(), + allowHatching: json['allow_hatching'] as String?, + state: json['state'] as String?, + archive: json['archive'] as bool?, + violation: json['violation'] as bool?, + message: json['message'], + registrar: json['registrar'], + breed: (json['breed'] as List?) + ?.map((e) => Breed.fromJson(e as Map)) + .toList(), + cityNumber: (json['city_number'] as num?)?.toInt(), + cityName: json['city_name'] as String?, + provinceNumber: (json['province_number'] as num?)?.toInt(), + provinceName: json['province_name'] as String?, + lastChange: json['last_change'] == null + ? null + : LastChange.fromJson(json['last_change'] as Map), + chickenAge: (json['chicken_age'] as num?)?.toInt(), + nowAge: (json['now_age'] as num?)?.toInt(), + latestHatchingChange: json['latest_hatching_change'] == null + ? null + : LatestHatchingChange.fromJson( + json['latest_hatching_change'] as Map, + ), + violationReport: json['violation_report'], + violationMessage: json['violation_message'] as String?, + violationImage: json['violation_image'], + violationReporter: json['violation_reporter'], + violationReportDate: json['violation_report_date'], + violationReportEditor: json['violation_report_editor'], + violationReportEditDate: json['violation_report_edit_date'], + totalLosses: (json['total_losses'] as num?)?.toInt(), + directLosses: (json['direct_losses'] as num?)?.toInt(), + directLossesInputer: json['direct_losses_inputer'], + directLossesDate: json['direct_losses_date'], + directLossesEditor: json['direct_losses_editor'], + directLossesLastEditDate: json['direct_losses_last_edit_date'], + endPeriodLossesInputer: json['end_period_losses_inputer'], + endPeriodLossesDate: json['end_period_losses_date'], + endPeriodLossesEditor: json['end_period_losses_editor'], + endPeriodLossesLastEditDate: json['end_period_losses_last_edit_date'], + breedingUniqueId: json['breeding_unique_id'] as String?, + licenceNumber: json['licence_number'] as String?, + temporaryTrash: json['temporary_trash'] as bool?, + temporaryDeleted: json['temporary_deleted'] as bool?, + firstDateInputArchive: json['first_date_input_archive'], + secondDateInputArchive: json['second_date_input_archive'], + inputArchiver: json['input_archiver'], + outputArchiveDate: json['output_archive_date'], + outputArchiver: json['output_archiver'], + barDifferenceRequestWeight: (json['bar_difference_request_weight'] as num?) + ?.toDouble(), + barDifferenceRequestQuantity: + (json['bar_difference_request_quantity'] as num?)?.toDouble(), + healthCertificate: json['health_certificate'], + samasatDischargePercentage: (json['samasat_discharge_percentage'] as num?) + ?.toInt(), + personTypeName: json['person_type_name'] as String?, + interactTypeName: json['interact_type_name'] as String?, + unionTypeName: json['union_type_name'] as String?, + certId: json['cert_id'] as String?, + increaseQuantity: (json['increase_quantity'] as num?)?.toInt(), + tenantFullname: json['tenant_fullname'], + tenantNationalCode: json['tenant_national_code'], + tenantMobile: json['tenant_mobile'], + tenantCity: json['tenant_city'], + hasTenant: json['has_tenant'] as bool?, + createdBy: json['created_by'], + modifiedBy: json['modified_by'], + poultry: (json['poultry'] as num?)?.toInt(), +); + +Map _$HatchingDetailsToJson(_HatchingDetails instance) => + { + 'id': instance.id, + 'chain_company': instance.chainCompany, + 'age': instance.age, + 'inspection_losses': instance.inspectionLosses, + 'vet_farm': instance.vetFarm, + 'active_kill': instance.activeKill, + 'killing_info': instance.killingInfo, + 'free_governmental_info': instance.freeGovernmentalInfo, + 'key': instance.key, + 'create_date': instance.createDate?.toIso8601String(), + 'modify_date': instance.modifyDate?.toIso8601String(), + 'trash': instance.trash, + 'has_chain_company': instance.hasChainCompany, + 'poultry_id_foreign_key': instance.poultryIdForeignKey, + 'poultry_hatching_id_key': instance.poultryHatchingIdKey, + 'quantity': instance.quantity, + 'losses': instance.losses, + 'left_over': instance.leftOver, + 'killed_quantity': instance.killedQuantity, + 'extra_killed_quantity': instance.extraKilledQuantity, + 'governmental_killed_quantity': instance.governmentalKilledQuantity, + 'governmental_quantity': instance.governmentalQuantity, + 'free_killed_quantity': instance.freeKilledQuantity, + 'free_quantity': instance.freeQuantity, + 'chain_killed_quantity': instance.chainKilledQuantity, + 'chain_killed_weight': instance.chainKilledWeight, + 'out_province_killed_weight': instance.outProvinceKilledWeight, + 'out_province_killed_quantity': instance.outProvinceKilledQuantity, + 'export_killed_weight': instance.exportKilledWeight, + 'export_killed_quantity': instance.exportKilledQuantity, + 'total_commitment': instance.totalCommitment, + 'commitment_type': instance.commitmentType, + 'total_commitment_quantity': instance.totalCommitmentQuantity, + 'total_free_commitment_quantity': instance.totalFreeCommitmentQuantity, + 'total_free_commitment_weight': instance.totalFreeCommitmentWeight, + 'total_killed_weight': instance.totalKilledWeight, + 'total_average_killed_weight': instance.totalAverageKilledWeight, + 'request_left_over': instance.requestLeftOver, + 'hall': instance.hall, + 'date': instance.date?.toIso8601String(), + 'predicate_date': instance.predicateDate?.toIso8601String(), + 'chicken_breed': instance.chickenBreed, + 'period': instance.period, + 'allow_hatching': instance.allowHatching, + 'state': instance.state, + 'archive': instance.archive, + 'violation': instance.violation, + 'message': instance.message, + 'registrar': instance.registrar, + 'breed': instance.breed, + 'city_number': instance.cityNumber, + 'city_name': instance.cityName, + 'province_number': instance.provinceNumber, + 'province_name': instance.provinceName, + 'last_change': instance.lastChange, + 'chicken_age': instance.chickenAge, + 'now_age': instance.nowAge, + 'latest_hatching_change': instance.latestHatchingChange, + 'violation_report': instance.violationReport, + 'violation_message': instance.violationMessage, + 'violation_image': instance.violationImage, + 'violation_reporter': instance.violationReporter, + 'violation_report_date': instance.violationReportDate, + 'violation_report_editor': instance.violationReportEditor, + 'violation_report_edit_date': instance.violationReportEditDate, + 'total_losses': instance.totalLosses, + 'direct_losses': instance.directLosses, + 'direct_losses_inputer': instance.directLossesInputer, + 'direct_losses_date': instance.directLossesDate, + 'direct_losses_editor': instance.directLossesEditor, + 'direct_losses_last_edit_date': instance.directLossesLastEditDate, + 'end_period_losses_inputer': instance.endPeriodLossesInputer, + 'end_period_losses_date': instance.endPeriodLossesDate, + 'end_period_losses_editor': instance.endPeriodLossesEditor, + 'end_period_losses_last_edit_date': instance.endPeriodLossesLastEditDate, + 'breeding_unique_id': instance.breedingUniqueId, + 'licence_number': instance.licenceNumber, + 'temporary_trash': instance.temporaryTrash, + 'temporary_deleted': instance.temporaryDeleted, + 'first_date_input_archive': instance.firstDateInputArchive, + 'second_date_input_archive': instance.secondDateInputArchive, + 'input_archiver': instance.inputArchiver, + 'output_archive_date': instance.outputArchiveDate, + 'output_archiver': instance.outputArchiver, + 'bar_difference_request_weight': instance.barDifferenceRequestWeight, + 'bar_difference_request_quantity': instance.barDifferenceRequestQuantity, + 'health_certificate': instance.healthCertificate, + 'samasat_discharge_percentage': instance.samasatDischargePercentage, + 'person_type_name': instance.personTypeName, + 'interact_type_name': instance.interactTypeName, + 'union_type_name': instance.unionTypeName, + 'cert_id': instance.certId, + 'increase_quantity': instance.increaseQuantity, + 'tenant_fullname': instance.tenantFullname, + 'tenant_national_code': instance.tenantNationalCode, + 'tenant_mobile': instance.tenantMobile, + 'tenant_city': instance.tenantCity, + 'has_tenant': instance.hasTenant, + 'created_by': instance.createdBy, + 'modified_by': instance.modifiedBy, + 'poultry': instance.poultry, + }; + +_VetFarm _$VetFarmFromJson(Map json) => _VetFarm( + vetFarmFullName: json['vet_farm_full_name'] as String?, + vetFarmMobile: json['vet_farm_mobile'] as String?, +); + +Map _$VetFarmToJson(_VetFarm instance) => { + 'vet_farm_full_name': instance.vetFarmFullName, + 'vet_farm_mobile': instance.vetFarmMobile, +}; + +_ActiveKill _$ActiveKillFromJson(Map json) => _ActiveKill( + activeKill: json['active_kill'] as bool?, + countOfRequest: (json['count_of_request'] as num?)?.toInt(), +); + +Map _$ActiveKillToJson(_ActiveKill instance) => + { + 'active_kill': instance.activeKill, + 'count_of_request': instance.countOfRequest, + }; + +_KillingInfo _$KillingInfoFromJson(Map json) => _KillingInfo( + violationMessage: json['violation_message'] as String?, + provinceKillRequests: (json['province_kill_requests'] as num?)?.toInt(), + provinceKillRequestsQuantity: + (json['province_kill_requests_quantity'] as num?)?.toInt(), + provinceKillRequestsWeight: (json['province_kill_requests_weight'] as num?) + ?.toDouble(), + killHouseRequests: (json['kill_house_requests'] as num?)?.toInt(), + killHouseRequestsFirstQuantity: + (json['kill_house_requests_first_quantity'] as num?)?.toInt(), + killHouseRequestsFirstWeight: + (json['kill_house_requests_first_weight'] as num?)?.toDouble(), + barCompleteWithKillHouse: (json['bar_complete_with_kill_house'] as num?) + ?.toInt(), + acceptedRealQuantityFinal: (json['accepted_real_quantity_final'] as num?) + ?.toInt(), + acceptedRealWightFinal: (json['accepted_real_wight_final'] as num?) + ?.toDouble(), + wareHouseBars: (json['ware_house_bars'] as num?)?.toInt(), + wareHouseBarsQuantity: (json['ware_house_bars_quantity'] as num?)?.toInt(), + wareHouseBarsWeight: (json['ware_house_bars_weight'] as num?)?.toDouble(), + wareHouseBarsWeightLose: (json['ware_house_bars_weight_lose'] as num?) + ?.toDouble(), +); + +Map _$KillingInfoToJson( + _KillingInfo instance, +) => { + 'violation_message': instance.violationMessage, + 'province_kill_requests': instance.provinceKillRequests, + 'province_kill_requests_quantity': instance.provinceKillRequestsQuantity, + 'province_kill_requests_weight': instance.provinceKillRequestsWeight, + 'kill_house_requests': instance.killHouseRequests, + 'kill_house_requests_first_quantity': instance.killHouseRequestsFirstQuantity, + 'kill_house_requests_first_weight': instance.killHouseRequestsFirstWeight, + 'bar_complete_with_kill_house': instance.barCompleteWithKillHouse, + 'accepted_real_quantity_final': instance.acceptedRealQuantityFinal, + 'accepted_real_wight_final': instance.acceptedRealWightFinal, + 'ware_house_bars': instance.wareHouseBars, + 'ware_house_bars_quantity': instance.wareHouseBarsQuantity, + 'ware_house_bars_weight': instance.wareHouseBarsWeight, + 'ware_house_bars_weight_lose': instance.wareHouseBarsWeightLose, +}; + +_FreeGovernmentalInfo _$FreeGovernmentalInfoFromJson( + Map json, +) => _FreeGovernmentalInfo( + governmentalAllocatedQuantity: + (json['governmental_allocated_quantity'] as num?)?.toInt(), + totalCommitmentQuantity: (json['total_commitment_quantity'] as num?) + ?.toDouble(), + freeAllocatedQuantity: (json['free_allocated_quantity'] as num?)?.toInt(), + totalFreeCommitmentQuantity: (json['total_free_commitment_quantity'] as num?) + ?.toDouble(), + leftTotalFreeCommitmentQuantity: + (json['left_total_free_commitment_quantity'] as num?)?.toInt(), +); + +Map _$FreeGovernmentalInfoToJson( + _FreeGovernmentalInfo instance, +) => { + 'governmental_allocated_quantity': instance.governmentalAllocatedQuantity, + 'total_commitment_quantity': instance.totalCommitmentQuantity, + 'free_allocated_quantity': instance.freeAllocatedQuantity, + 'total_free_commitment_quantity': instance.totalFreeCommitmentQuantity, + 'left_total_free_commitment_quantity': + instance.leftTotalFreeCommitmentQuantity, +}; + +_Breed _$BreedFromJson(Map json) => _Breed( + breed: json['breed'] as String?, + mainQuantity: (json['main_quantity'] as num?)?.toInt(), + remainQuantity: (json['remain_quantity'] as num?)?.toInt(), +); + +Map _$BreedToJson(_Breed instance) => { + 'breed': instance.breed, + 'main_quantity': instance.mainQuantity, + 'remain_quantity': instance.remainQuantity, +}; + +_LastChange _$LastChangeFromJson(Map json) => _LastChange( + date: json['date'] == null ? null : DateTime.parse(json['date'] as String), + role: json['role'] as String?, + type: json['type'] as String?, + fullName: json['full_name'] as String?, +); + +Map _$LastChangeToJson(_LastChange instance) => + { + 'date': instance.date?.toIso8601String(), + 'role': instance.role, + 'type': instance.type, + 'full_name': instance.fullName, + }; + +_LatestHatchingChange _$LatestHatchingChangeFromJson( + Map json, +) => _LatestHatchingChange( + date: json['date'] == null ? null : DateTime.parse(json['date'] as String), + role: json['role'] as String?, + fullName: json['full_name'] as String?, +); + +Map _$LatestHatchingChangeToJson( + _LatestHatchingChange instance, +) => { + 'date': instance.date?.toIso8601String(), + 'role': instance.role, + 'full_name': instance.fullName, +}; diff --git a/packages/inspection/lib/data/model/response/poultry_location/poultry_location_model.dart b/packages/inspection/lib/data/model/response/poultry_location/poultry_location_model.dart index c470b20..330cc53 100644 --- a/packages/inspection/lib/data/model/response/poultry_location/poultry_location_model.dart +++ b/packages/inspection/lib/data/model/response/poultry_location/poultry_location_model.dart @@ -15,6 +15,7 @@ abstract class PoultryLocationModel with _$PoultryLocationModel { User? user, List? hatching, Address? address, + String? breedingUniqueId, }) = _PoultryLocationModel; factory PoultryLocationModel.fromJson(Map json) => @@ -34,13 +35,12 @@ abstract class User with _$User { @freezed abstract class Hatching with _$Hatching { const factory Hatching({ - int? quantity, + int? leftOver, - int? period, int? chickenAge, DateTime? date, - bool?violation, - bool?archive, + String? licenceNumber, + }) = _Hatching; factory Hatching.fromJson(Map json) => diff --git a/packages/inspection/lib/data/model/response/poultry_location/poultry_location_model.freezed.dart b/packages/inspection/lib/data/model/response/poultry_location/poultry_location_model.freezed.dart index b1e11e1..98cf153 100644 --- a/packages/inspection/lib/data/model/response/poultry_location/poultry_location_model.freezed.dart +++ b/packages/inspection/lib/data/model/response/poultry_location/poultry_location_model.freezed.dart @@ -15,7 +15,7 @@ T _$identity(T value) => value; /// @nodoc mixin _$PoultryLocationModel { - int? get id; String? get unitName;@JsonKey(name: 'Lat') double? get lat;@JsonKey(name: 'Long') double? get long; User? get user; List? get hatching; Address? get address; + int? get id; String? get unitName;@JsonKey(name: 'Lat') double? get lat;@JsonKey(name: 'Long') double? get long; User? get user; List? get hatching; Address? get address; String? get breedingUniqueId; /// Create a copy of PoultryLocationModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @@ -28,16 +28,16 @@ $PoultryLocationModelCopyWith get copyWith => _$PoultryLoc @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is PoultryLocationModel&&(identical(other.id, id) || other.id == id)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.lat, lat) || other.lat == lat)&&(identical(other.long, long) || other.long == long)&&(identical(other.user, user) || other.user == user)&&const DeepCollectionEquality().equals(other.hatching, hatching)&&(identical(other.address, address) || other.address == address)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is PoultryLocationModel&&(identical(other.id, id) || other.id == id)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.lat, lat) || other.lat == lat)&&(identical(other.long, long) || other.long == long)&&(identical(other.user, user) || other.user == user)&&const DeepCollectionEquality().equals(other.hatching, hatching)&&(identical(other.address, address) || other.address == address)&&(identical(other.breedingUniqueId, breedingUniqueId) || other.breedingUniqueId == breedingUniqueId)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,id,unitName,lat,long,user,const DeepCollectionEquality().hash(hatching),address); +int get hashCode => Object.hash(runtimeType,id,unitName,lat,long,user,const DeepCollectionEquality().hash(hatching),address,breedingUniqueId); @override String toString() { - return 'PoultryLocationModel(id: $id, unitName: $unitName, lat: $lat, long: $long, user: $user, hatching: $hatching, address: $address)'; + return 'PoultryLocationModel(id: $id, unitName: $unitName, lat: $lat, long: $long, user: $user, hatching: $hatching, address: $address, breedingUniqueId: $breedingUniqueId)'; } @@ -48,7 +48,7 @@ abstract mixin class $PoultryLocationModelCopyWith<$Res> { factory $PoultryLocationModelCopyWith(PoultryLocationModel value, $Res Function(PoultryLocationModel) _then) = _$PoultryLocationModelCopyWithImpl; @useResult $Res call({ - int? id, String? unitName,@JsonKey(name: 'Lat') double? lat,@JsonKey(name: 'Long') double? long, User? user, List? hatching, Address? address + int? id, String? unitName,@JsonKey(name: 'Lat') double? lat,@JsonKey(name: 'Long') double? long, User? user, List? hatching, Address? address, String? breedingUniqueId }); @@ -65,7 +65,7 @@ class _$PoultryLocationModelCopyWithImpl<$Res> /// Create a copy of PoultryLocationModel /// with the given fields replaced by the non-null parameter values. -@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? unitName = freezed,Object? lat = freezed,Object? long = freezed,Object? user = freezed,Object? hatching = freezed,Object? address = freezed,}) { +@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? unitName = freezed,Object? lat = freezed,Object? long = freezed,Object? user = freezed,Object? hatching = freezed,Object? address = freezed,Object? breedingUniqueId = freezed,}) { return _then(_self.copyWith( id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as int?,unitName: freezed == unitName ? _self.unitName : unitName // ignore: cast_nullable_to_non_nullable @@ -74,7 +74,8 @@ as double?,long: freezed == long ? _self.long : long // ignore: cast_nullable_to as double?,user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable as User?,hatching: freezed == hatching ? _self.hatching : hatching // ignore: cast_nullable_to_non_nullable as List?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable -as Address?, +as Address?,breedingUniqueId: freezed == breedingUniqueId ? _self.breedingUniqueId : breedingUniqueId // ignore: cast_nullable_to_non_nullable +as String?, )); } /// Create a copy of PoultryLocationModel @@ -183,10 +184,10 @@ return $default(_that);case _: /// } /// ``` -@optionalTypeArgs TResult maybeWhen(TResult Function( int? id, String? unitName, @JsonKey(name: 'Lat') double? lat, @JsonKey(name: 'Long') double? long, User? user, List? hatching, Address? address)? $default,{required TResult orElse(),}) {final _that = this; +@optionalTypeArgs TResult maybeWhen(TResult Function( int? id, String? unitName, @JsonKey(name: 'Lat') double? lat, @JsonKey(name: 'Long') double? long, User? user, List? hatching, Address? address, String? breedingUniqueId)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _PoultryLocationModel() when $default != null: -return $default(_that.id,_that.unitName,_that.lat,_that.long,_that.user,_that.hatching,_that.address);case _: +return $default(_that.id,_that.unitName,_that.lat,_that.long,_that.user,_that.hatching,_that.address,_that.breedingUniqueId);case _: return orElse(); } @@ -204,10 +205,10 @@ return $default(_that.id,_that.unitName,_that.lat,_that.long,_that.user,_that.ha /// } /// ``` -@optionalTypeArgs TResult when(TResult Function( int? id, String? unitName, @JsonKey(name: 'Lat') double? lat, @JsonKey(name: 'Long') double? long, User? user, List? hatching, Address? address) $default,) {final _that = this; +@optionalTypeArgs TResult when(TResult Function( int? id, String? unitName, @JsonKey(name: 'Lat') double? lat, @JsonKey(name: 'Long') double? long, User? user, List? hatching, Address? address, String? breedingUniqueId) $default,) {final _that = this; switch (_that) { case _PoultryLocationModel(): -return $default(_that.id,_that.unitName,_that.lat,_that.long,_that.user,_that.hatching,_that.address);case _: +return $default(_that.id,_that.unitName,_that.lat,_that.long,_that.user,_that.hatching,_that.address,_that.breedingUniqueId);case _: throw StateError('Unexpected subclass'); } @@ -224,10 +225,10 @@ return $default(_that.id,_that.unitName,_that.lat,_that.long,_that.user,_that.ha /// } /// ``` -@optionalTypeArgs TResult? whenOrNull(TResult? Function( int? id, String? unitName, @JsonKey(name: 'Lat') double? lat, @JsonKey(name: 'Long') double? long, User? user, List? hatching, Address? address)? $default,) {final _that = this; +@optionalTypeArgs TResult? whenOrNull(TResult? Function( int? id, String? unitName, @JsonKey(name: 'Lat') double? lat, @JsonKey(name: 'Long') double? long, User? user, List? hatching, Address? address, String? breedingUniqueId)? $default,) {final _that = this; switch (_that) { case _PoultryLocationModel() when $default != null: -return $default(_that.id,_that.unitName,_that.lat,_that.long,_that.user,_that.hatching,_that.address);case _: +return $default(_that.id,_that.unitName,_that.lat,_that.long,_that.user,_that.hatching,_that.address,_that.breedingUniqueId);case _: return null; } @@ -239,7 +240,7 @@ return $default(_that.id,_that.unitName,_that.lat,_that.long,_that.user,_that.ha @JsonSerializable() class _PoultryLocationModel implements PoultryLocationModel { - const _PoultryLocationModel({this.id, this.unitName, @JsonKey(name: 'Lat') this.lat, @JsonKey(name: 'Long') this.long, this.user, final List? hatching, this.address}): _hatching = hatching; + const _PoultryLocationModel({this.id, this.unitName, @JsonKey(name: 'Lat') this.lat, @JsonKey(name: 'Long') this.long, this.user, final List? hatching, this.address, this.breedingUniqueId}): _hatching = hatching; factory _PoultryLocationModel.fromJson(Map json) => _$PoultryLocationModelFromJson(json); @override final int? id; @@ -257,6 +258,7 @@ class _PoultryLocationModel implements PoultryLocationModel { } @override final Address? address; +@override final String? breedingUniqueId; /// Create a copy of PoultryLocationModel /// with the given fields replaced by the non-null parameter values. @@ -271,16 +273,16 @@ Map toJson() { @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is _PoultryLocationModel&&(identical(other.id, id) || other.id == id)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.lat, lat) || other.lat == lat)&&(identical(other.long, long) || other.long == long)&&(identical(other.user, user) || other.user == user)&&const DeepCollectionEquality().equals(other._hatching, _hatching)&&(identical(other.address, address) || other.address == address)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _PoultryLocationModel&&(identical(other.id, id) || other.id == id)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.lat, lat) || other.lat == lat)&&(identical(other.long, long) || other.long == long)&&(identical(other.user, user) || other.user == user)&&const DeepCollectionEquality().equals(other._hatching, _hatching)&&(identical(other.address, address) || other.address == address)&&(identical(other.breedingUniqueId, breedingUniqueId) || other.breedingUniqueId == breedingUniqueId)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,id,unitName,lat,long,user,const DeepCollectionEquality().hash(_hatching),address); +int get hashCode => Object.hash(runtimeType,id,unitName,lat,long,user,const DeepCollectionEquality().hash(_hatching),address,breedingUniqueId); @override String toString() { - return 'PoultryLocationModel(id: $id, unitName: $unitName, lat: $lat, long: $long, user: $user, hatching: $hatching, address: $address)'; + return 'PoultryLocationModel(id: $id, unitName: $unitName, lat: $lat, long: $long, user: $user, hatching: $hatching, address: $address, breedingUniqueId: $breedingUniqueId)'; } @@ -291,7 +293,7 @@ abstract mixin class _$PoultryLocationModelCopyWith<$Res> implements $PoultryLoc factory _$PoultryLocationModelCopyWith(_PoultryLocationModel value, $Res Function(_PoultryLocationModel) _then) = __$PoultryLocationModelCopyWithImpl; @override @useResult $Res call({ - int? id, String? unitName,@JsonKey(name: 'Lat') double? lat,@JsonKey(name: 'Long') double? long, User? user, List? hatching, Address? address + int? id, String? unitName,@JsonKey(name: 'Lat') double? lat,@JsonKey(name: 'Long') double? long, User? user, List? hatching, Address? address, String? breedingUniqueId }); @@ -308,7 +310,7 @@ class __$PoultryLocationModelCopyWithImpl<$Res> /// Create a copy of PoultryLocationModel /// with the given fields replaced by the non-null parameter values. -@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? unitName = freezed,Object? lat = freezed,Object? long = freezed,Object? user = freezed,Object? hatching = freezed,Object? address = freezed,}) { +@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? unitName = freezed,Object? lat = freezed,Object? long = freezed,Object? user = freezed,Object? hatching = freezed,Object? address = freezed,Object? breedingUniqueId = freezed,}) { return _then(_PoultryLocationModel( id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as int?,unitName: freezed == unitName ? _self.unitName : unitName // ignore: cast_nullable_to_non_nullable @@ -317,7 +319,8 @@ as double?,long: freezed == long ? _self.long : long // ignore: cast_nullable_to as double?,user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable as User?,hatching: freezed == hatching ? _self._hatching : hatching // ignore: cast_nullable_to_non_nullable as List?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable -as Address?, +as Address?,breedingUniqueId: freezed == breedingUniqueId ? _self.breedingUniqueId : breedingUniqueId // ignore: cast_nullable_to_non_nullable +as String?, )); } @@ -618,7 +621,7 @@ as String?, /// @nodoc mixin _$Hatching { - int? get quantity; int? get leftOver; int? get period; int? get chickenAge; DateTime? get date; bool? get violation; bool? get archive; + int? get leftOver; int? get chickenAge; DateTime? get date; String? get licenceNumber; /// Create a copy of Hatching /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @@ -631,16 +634,16 @@ $HatchingCopyWith get copyWith => _$HatchingCopyWithImpl(thi @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is Hatching&&(identical(other.quantity, quantity) || other.quantity == quantity)&&(identical(other.leftOver, leftOver) || other.leftOver == leftOver)&&(identical(other.period, period) || other.period == period)&&(identical(other.chickenAge, chickenAge) || other.chickenAge == chickenAge)&&(identical(other.date, date) || other.date == date)&&(identical(other.violation, violation) || other.violation == violation)&&(identical(other.archive, archive) || other.archive == archive)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is Hatching&&(identical(other.leftOver, leftOver) || other.leftOver == leftOver)&&(identical(other.chickenAge, chickenAge) || other.chickenAge == chickenAge)&&(identical(other.date, date) || other.date == date)&&(identical(other.licenceNumber, licenceNumber) || other.licenceNumber == licenceNumber)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,quantity,leftOver,period,chickenAge,date,violation,archive); +int get hashCode => Object.hash(runtimeType,leftOver,chickenAge,date,licenceNumber); @override String toString() { - return 'Hatching(quantity: $quantity, leftOver: $leftOver, period: $period, chickenAge: $chickenAge, date: $date, violation: $violation, archive: $archive)'; + return 'Hatching(leftOver: $leftOver, chickenAge: $chickenAge, date: $date, licenceNumber: $licenceNumber)'; } @@ -651,7 +654,7 @@ abstract mixin class $HatchingCopyWith<$Res> { factory $HatchingCopyWith(Hatching value, $Res Function(Hatching) _then) = _$HatchingCopyWithImpl; @useResult $Res call({ - int? quantity, int? leftOver, int? period, int? chickenAge, DateTime? date, bool? violation, bool? archive + int? leftOver, int? chickenAge, DateTime? date, String? licenceNumber }); @@ -668,16 +671,13 @@ class _$HatchingCopyWithImpl<$Res> /// Create a copy of Hatching /// with the given fields replaced by the non-null parameter values. -@pragma('vm:prefer-inline') @override $Res call({Object? quantity = freezed,Object? leftOver = freezed,Object? period = freezed,Object? chickenAge = freezed,Object? date = freezed,Object? violation = freezed,Object? archive = freezed,}) { +@pragma('vm:prefer-inline') @override $Res call({Object? leftOver = freezed,Object? chickenAge = freezed,Object? date = freezed,Object? licenceNumber = freezed,}) { return _then(_self.copyWith( -quantity: freezed == quantity ? _self.quantity : quantity // ignore: cast_nullable_to_non_nullable -as int?,leftOver: freezed == leftOver ? _self.leftOver : leftOver // ignore: cast_nullable_to_non_nullable -as int?,period: freezed == period ? _self.period : period // ignore: cast_nullable_to_non_nullable +leftOver: freezed == leftOver ? _self.leftOver : leftOver // ignore: cast_nullable_to_non_nullable as int?,chickenAge: freezed == chickenAge ? _self.chickenAge : chickenAge // ignore: cast_nullable_to_non_nullable as int?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable -as DateTime?,violation: freezed == violation ? _self.violation : violation // ignore: cast_nullable_to_non_nullable -as bool?,archive: freezed == archive ? _self.archive : archive // ignore: cast_nullable_to_non_nullable -as bool?, +as DateTime?,licenceNumber: freezed == licenceNumber ? _self.licenceNumber : licenceNumber // ignore: cast_nullable_to_non_nullable +as String?, )); } @@ -762,10 +762,10 @@ return $default(_that);case _: /// } /// ``` -@optionalTypeArgs TResult maybeWhen(TResult Function( int? quantity, int? leftOver, int? period, int? chickenAge, DateTime? date, bool? violation, bool? archive)? $default,{required TResult orElse(),}) {final _that = this; +@optionalTypeArgs TResult maybeWhen(TResult Function( int? leftOver, int? chickenAge, DateTime? date, String? licenceNumber)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _Hatching() when $default != null: -return $default(_that.quantity,_that.leftOver,_that.period,_that.chickenAge,_that.date,_that.violation,_that.archive);case _: +return $default(_that.leftOver,_that.chickenAge,_that.date,_that.licenceNumber);case _: return orElse(); } @@ -783,10 +783,10 @@ return $default(_that.quantity,_that.leftOver,_that.period,_that.chickenAge,_tha /// } /// ``` -@optionalTypeArgs TResult when(TResult Function( int? quantity, int? leftOver, int? period, int? chickenAge, DateTime? date, bool? violation, bool? archive) $default,) {final _that = this; +@optionalTypeArgs TResult when(TResult Function( int? leftOver, int? chickenAge, DateTime? date, String? licenceNumber) $default,) {final _that = this; switch (_that) { case _Hatching(): -return $default(_that.quantity,_that.leftOver,_that.period,_that.chickenAge,_that.date,_that.violation,_that.archive);case _: +return $default(_that.leftOver,_that.chickenAge,_that.date,_that.licenceNumber);case _: throw StateError('Unexpected subclass'); } @@ -803,10 +803,10 @@ return $default(_that.quantity,_that.leftOver,_that.period,_that.chickenAge,_tha /// } /// ``` -@optionalTypeArgs TResult? whenOrNull(TResult? Function( int? quantity, int? leftOver, int? period, int? chickenAge, DateTime? date, bool? violation, bool? archive)? $default,) {final _that = this; +@optionalTypeArgs TResult? whenOrNull(TResult? Function( int? leftOver, int? chickenAge, DateTime? date, String? licenceNumber)? $default,) {final _that = this; switch (_that) { case _Hatching() when $default != null: -return $default(_that.quantity,_that.leftOver,_that.period,_that.chickenAge,_that.date,_that.violation,_that.archive);case _: +return $default(_that.leftOver,_that.chickenAge,_that.date,_that.licenceNumber);case _: return null; } @@ -818,16 +818,13 @@ return $default(_that.quantity,_that.leftOver,_that.period,_that.chickenAge,_tha @JsonSerializable() class _Hatching implements Hatching { - const _Hatching({this.quantity, this.leftOver, this.period, this.chickenAge, this.date, this.violation, this.archive}); + const _Hatching({this.leftOver, this.chickenAge, this.date, this.licenceNumber}); factory _Hatching.fromJson(Map json) => _$HatchingFromJson(json); -@override final int? quantity; @override final int? leftOver; -@override final int? period; @override final int? chickenAge; @override final DateTime? date; -@override final bool? violation; -@override final bool? archive; +@override final String? licenceNumber; /// Create a copy of Hatching /// with the given fields replaced by the non-null parameter values. @@ -842,16 +839,16 @@ Map toJson() { @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is _Hatching&&(identical(other.quantity, quantity) || other.quantity == quantity)&&(identical(other.leftOver, leftOver) || other.leftOver == leftOver)&&(identical(other.period, period) || other.period == period)&&(identical(other.chickenAge, chickenAge) || other.chickenAge == chickenAge)&&(identical(other.date, date) || other.date == date)&&(identical(other.violation, violation) || other.violation == violation)&&(identical(other.archive, archive) || other.archive == archive)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Hatching&&(identical(other.leftOver, leftOver) || other.leftOver == leftOver)&&(identical(other.chickenAge, chickenAge) || other.chickenAge == chickenAge)&&(identical(other.date, date) || other.date == date)&&(identical(other.licenceNumber, licenceNumber) || other.licenceNumber == licenceNumber)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,quantity,leftOver,period,chickenAge,date,violation,archive); +int get hashCode => Object.hash(runtimeType,leftOver,chickenAge,date,licenceNumber); @override String toString() { - return 'Hatching(quantity: $quantity, leftOver: $leftOver, period: $period, chickenAge: $chickenAge, date: $date, violation: $violation, archive: $archive)'; + return 'Hatching(leftOver: $leftOver, chickenAge: $chickenAge, date: $date, licenceNumber: $licenceNumber)'; } @@ -862,7 +859,7 @@ abstract mixin class _$HatchingCopyWith<$Res> implements $HatchingCopyWith<$Res> factory _$HatchingCopyWith(_Hatching value, $Res Function(_Hatching) _then) = __$HatchingCopyWithImpl; @override @useResult $Res call({ - int? quantity, int? leftOver, int? period, int? chickenAge, DateTime? date, bool? violation, bool? archive + int? leftOver, int? chickenAge, DateTime? date, String? licenceNumber }); @@ -879,16 +876,13 @@ class __$HatchingCopyWithImpl<$Res> /// Create a copy of Hatching /// with the given fields replaced by the non-null parameter values. -@override @pragma('vm:prefer-inline') $Res call({Object? quantity = freezed,Object? leftOver = freezed,Object? period = freezed,Object? chickenAge = freezed,Object? date = freezed,Object? violation = freezed,Object? archive = freezed,}) { +@override @pragma('vm:prefer-inline') $Res call({Object? leftOver = freezed,Object? chickenAge = freezed,Object? date = freezed,Object? licenceNumber = freezed,}) { return _then(_Hatching( -quantity: freezed == quantity ? _self.quantity : quantity // ignore: cast_nullable_to_non_nullable -as int?,leftOver: freezed == leftOver ? _self.leftOver : leftOver // ignore: cast_nullable_to_non_nullable -as int?,period: freezed == period ? _self.period : period // ignore: cast_nullable_to_non_nullable +leftOver: freezed == leftOver ? _self.leftOver : leftOver // ignore: cast_nullable_to_non_nullable as int?,chickenAge: freezed == chickenAge ? _self.chickenAge : chickenAge // ignore: cast_nullable_to_non_nullable as int?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable -as DateTime?,violation: freezed == violation ? _self.violation : violation // ignore: cast_nullable_to_non_nullable -as bool?,archive: freezed == archive ? _self.archive : archive // ignore: cast_nullable_to_non_nullable -as bool?, +as DateTime?,licenceNumber: freezed == licenceNumber ? _self.licenceNumber : licenceNumber // ignore: cast_nullable_to_non_nullable +as String?, )); } diff --git a/packages/inspection/lib/data/model/response/poultry_location/poultry_location_model.g.dart b/packages/inspection/lib/data/model/response/poultry_location/poultry_location_model.g.dart index 653680a..0c14730 100644 --- a/packages/inspection/lib/data/model/response/poultry_location/poultry_location_model.g.dart +++ b/packages/inspection/lib/data/model/response/poultry_location/poultry_location_model.g.dart @@ -22,6 +22,7 @@ _PoultryLocationModel _$PoultryLocationModelFromJson( address: json['address'] == null ? null : Address.fromJson(json['address'] as Map), + breedingUniqueId: json['breeding_unique_id'] as String?, ); Map _$PoultryLocationModelToJson( @@ -34,6 +35,7 @@ Map _$PoultryLocationModelToJson( 'user': instance.user, 'hatching': instance.hatching, 'address': instance.address, + 'breeding_unique_id': instance.breedingUniqueId, }; _User _$UserFromJson(Map json) => _User( @@ -47,23 +49,17 @@ Map _$UserToJson(_User instance) => { }; _Hatching _$HatchingFromJson(Map json) => _Hatching( - quantity: (json['quantity'] as num?)?.toInt(), leftOver: (json['left_over'] as num?)?.toInt(), - period: (json['period'] as num?)?.toInt(), chickenAge: (json['chicken_age'] as num?)?.toInt(), date: json['date'] == null ? null : DateTime.parse(json['date'] as String), - violation: json['violation'] as bool?, - archive: json['archive'] as bool?, + licenceNumber: json['licence_number'] as String?, ); Map _$HatchingToJson(_Hatching instance) => { - 'quantity': instance.quantity, 'left_over': instance.leftOver, - 'period': instance.period, 'chicken_age': instance.chickenAge, 'date': instance.date?.toIso8601String(), - 'violation': instance.violation, - 'archive': instance.archive, + 'licence_number': instance.licenceNumber, }; _Address _$AddressFromJson(Map json) => _Address( diff --git a/packages/inspection/lib/data/repositories/inspection/inspection_repository_imp.dart b/packages/inspection/lib/data/repositories/inspection/inspection_repository_imp.dart index 90feb85..67a8d92 100644 --- a/packages/inspection/lib/data/repositories/inspection/inspection_repository_imp.dart +++ b/packages/inspection/lib/data/repositories/inspection/inspection_repository_imp.dart @@ -24,11 +24,13 @@ class InspectionRepositoryImp implements InspectionRepository { double? centerLat, double? centerLng, double? radius, + String? value, }) async { return remoteDataSource.getNearbyLocation( centerLat: centerLat, centerLng: centerLng, radius: radius, + value: value, ); } } diff --git a/packages/inspection/lib/presentation/pages/inspection_map/logic.dart b/packages/inspection/lib/presentation/pages/inspection_map/logic.dart index efbaeec..e522219 100644 --- a/packages/inspection/lib/presentation/pages/inspection_map/logic.dart +++ b/packages/inspection/lib/presentation/pages/inspection_map/logic.dart @@ -8,14 +8,20 @@ import 'package:rasadyar_inspection/data/repositories/inspection/inspection_repo import 'package:rasadyar_inspection/injection/inspection_di.dart'; import 'package:rasadyar_inspection/presentation/widget/base_page/logic.dart'; -import '../filter/view.dart'; - class InspectionMapLogic extends GetxController with GetTickerProviderStateMixin { final BaseLogic baseLogic = Get.find(); + + InspectionRepositoryImp inspectionRepository = diInspection.get(); + final distance = Distance(); + Rx currentLocation = LatLng(34.798315281272544, 48.51479142983491).obs; + Rx>> allPoultryLocation = - Resource>.loading().obs; + Resource>.initial().obs; + + Rx>> searchedPoultryLocation = + Resource>.initial().obs; RxList markers = [].obs; RxList markers2 = [].obs; @@ -28,19 +34,9 @@ class InspectionMapLogic extends GetxController with GetTickerProviderStateMixin RxInt showIndex = 0.obs; bool showSlideHint = true; RxInt currentZoom = 15.obs; - - late Rx slidController; - Rx mapController = MapController().obs; late final AnimatedMapController animatedMapController; - late DraggableBottomSheetController filterBottomSheetController; - late DraggableBottomSheetController selectedLocationBottomSheetController; - late DraggableBottomSheetController detailsLocationBottomSheetController; - late final BottomSheetManager bottomSheetManager; - - InspectionRepositoryImp inspectionRepository = diInspection.get(); - @override void onInit() { super.onInit(); @@ -50,38 +46,16 @@ class InspectionMapLogic extends GetxController with GetTickerProviderStateMixin curve: Curves.easeInOut, cancelPreviousAnimations: true, ); + fetchAllPoultryLocations(); - filterBottomSheetController = DraggableBottomSheetController( - initialHeight: 350, - minHeight: 200, - maxHeight: Get.height * 0.5, - ); - - selectedLocationBottomSheetController = DraggableBottomSheetController( - initialHeight: 200, - minHeight: 100, - maxHeight: 200, - ); - - detailsLocationBottomSheetController = DraggableBottomSheetController( - initialHeight: Get.height * 0.5, - minHeight: Get.height * 0.37, - maxHeight: Get.height * 0.5, - ); - - slidController = SlidableController(this).obs; - bottomSheetManager = BottomSheetManager({ - filterBottomSheetController: () => - filterWidget(filterIndex: filterIndex, showIndex: showIndex), - selectedLocationBottomSheetController: () => selectedLocationWidget( - showHint: selectedLocationBottomSheetController.isVisible.value && showSlideHint, - sliderController: slidController.value, - trigger: triggerSlidableAnimation, - toggle: selectedLocationBottomSheetController.toggle, - ), - detailsLocationBottomSheetController: () => markerDetailsWidget(), - }); + debounce(baseLogic.searchValue, (callback) { + if (callback != null && + callback.trim().isNotEmpty && + searchedPoultryLocation.value.status != ResourceStatus.loading) { + searchPoultryLocations(); + } + }, time: Duration(seconds: 2)); } @override @@ -92,7 +66,6 @@ class InspectionMapLogic extends GetxController with GetTickerProviderStateMixin @override void onClose() { - slidController.close(); super.onClose(); } @@ -132,9 +105,9 @@ class InspectionMapLogic extends GetxController with GetTickerProviderStateMixin center.longitude, radius * 1000, ); - - markers2.addAll(filtered); - + final existingIds = markers2.map((e) => e.id).toSet(); + final uniqueFiltered = filtered.where((e) => !existingIds.contains(e.id)).toList(); + markers2.addAll(uniqueFiltered); }); } @@ -154,9 +127,9 @@ class InspectionMapLogic extends GetxController with GetTickerProviderStateMixin Future triggerSlidableAnimation() async { await Future.delayed(Duration(milliseconds: 200)); - await slidController.value.openEndActionPane(); + //await slidController.value.openEndActionPane(); await Future.delayed(Duration(milliseconds: 200)); - await slidController.value.close(); + //await slidController.value.close(); showSlideHint = false; } @@ -184,6 +157,25 @@ class InspectionMapLogic extends GetxController with GetTickerProviderStateMixin ); } + Future searchPoultryLocations() async { + searchedPoultryLocation.value = Resource>.loading(); + await safeCall( + call: () => inspectionRepository.getNearbyLocation(value: baseLogic.searchValue.value), + onSuccess: (result) { + if (result != null || result!.isNotEmpty) { + searchedPoultryLocation.value = Resource>.success(result); + } else { + searchedPoultryLocation.value = Resource>.empty(); + } + }, + onError: (error, stackTrace) { + searchedPoultryLocation.value = Resource>.error( + error.toString(), + ); + }, + ); + } + double getVisibleRadiusKm({ required double zoom, required double screenWidthPx, diff --git a/packages/inspection/lib/presentation/pages/inspection_map/view.dart b/packages/inspection/lib/presentation/pages/inspection_map/view.dart index f662605..044567d 100644 --- a/packages/inspection/lib/presentation/pages/inspection_map/view.dart +++ b/packages/inspection/lib/presentation/pages/inspection_map/view.dart @@ -4,7 +4,6 @@ import 'package:rasadyar_inspection/data/model/response/poultry_location/poultry import 'package:rasadyar_inspection/presentation/routes/app_routes.dart'; import 'package:rasadyar_inspection/presentation/widget/base_page/view.dart'; import 'package:rasadyar_inspection/presentation/widget/custom_chips.dart'; -import 'package:rasadyar_inspection/presentation/widget/search.dart'; import 'logic.dart'; @@ -87,7 +86,24 @@ class InspectionMapPage extends GetView { ); }, controller.currentLocation), - Positioned( + Obx(() { + if (controller.baseLogic.isSearchSelected.value) { + WidgetsBinding.instance.addPostFrameCallback((_) { + if (Get.isBottomSheetOpen != true) { + Get.bottomSheet( + searchWidget(), + isDismissible: true, + ignoreSafeArea: false, + isScrollControlled: true, + ); + } + }); + } + return const SizedBox.shrink(); + }), + + // Uncomment the following lines to enable the search widget + /* Positioned( top: 10, left: 20, right: 20, @@ -102,6 +118,126 @@ class InspectionMapPage extends GetView { return SizedBox.shrink(); } }, controller.baseLogic.isSearchSelected), + ),*/ + ], + ), + ); + } + + BaseBottomSheet searchWidget() { + return BaseBottomSheet( + height: Get.height * 0.85, + rootChild: Column( + spacing: 8, + children: [ + RTextField( + height: 40, + borderColor: AppColor.blackLight, + suffixIcon: ObxValue( + (data) => Padding( + padding: const EdgeInsets.symmetric(vertical: 8), + child: (data.value == null) + ? Assets.vec.searchSvg.svg( + width: 10, + height: 10, + colorFilter: ColorFilter.mode(AppColor.blueNormal, BlendMode.srcIn), + ) + : IconButton( + onPressed: () { + controller.baseLogic.searchTextController.clear(); + controller.baseLogic.searchValue.value = null; + controller.baseLogic.isSearchSelected.value = false; + controller.searchedPoultryLocation.value = Resource.initial(); + }, + enableFeedback: true, + padding: EdgeInsets.zero, + iconSize: 24, + splashRadius: 50, + icon: Assets.vec.closeCircleSvg.svg( + width: 20, + height: 20, + colorFilter: ColorFilter.mode(AppColor.blueNormal, BlendMode.srcIn), + ), + ), + ), + controller.baseLogic.searchValue, + ), + hintText: 'جستجو کنید ...', + hintStyle: AppFonts.yekan16.copyWith(color: AppColor.blueNormal), + filledColor: Colors.white, + filled: true, + controller: controller.baseLogic.searchTextController, + onChanged: (val) => controller.baseLogic.searchValue.value = val, + ), + Expanded( + child: ObxValue((rxData) { + final resource = rxData.value; + final status = resource.status; + final items = resource.data; + final message = resource.message ?? 'خطا در بارگذاری'; + + if (status == ResourceStatus.initial) { + return Center(child: Text('ابتدا جستجو کنید')); + } + + if (status == ResourceStatus.loading) { + return const Center(child: CircularProgressIndicator()); + } + + if (status == ResourceStatus.error) { + return Center(child: Text(message)); + } + + if (items == null || items.isEmpty) { + return Center(child: EmptyWidget()); + } + + return ListView.separated( + itemCount: items.length, + separatorBuilder: (context, index) => SizedBox(height: 8), + itemBuilder: (context, index) { + final item = items[index]; // اگر item استفاده نمیشه، می‌تونه حذف بشه + return ListItem2( + index: index, + labelColor: AppColor.blueLight, + labelIcon: Assets.vec.cowSvg.path, + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceAround, + children: [ + Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text( + item.unitName ?? 'N/A', + style: AppFonts.yekan10.copyWith(color: AppColor.blueNormal), + ), + Text( + item.user?.fullname ?? '', + style: AppFonts.yekan12.copyWith(color: AppColor.darkGreyDarkHover), + ), + ], + ), + Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text( + 'جوجه ریزی فعال', + style: AppFonts.yekan10.copyWith(color: AppColor.blueNormal), + ), + Text( + (item.hatching != null && item.hatching!.isNotEmpty) + ? 'دارد' + : 'ندراد', + style: AppFonts.yekan12.copyWith(color: AppColor.darkGreyDarkHover), + ), + ], + ), + ], + ), + ); + }, + ); + }, controller.searchedPoultryLocation), ), ], ), @@ -315,221 +451,310 @@ class InspectionMapPage extends GetView { point: point, width: isZoomedIn && isVisible ? 180.w : 40.h, height: isZoomedIn && isVisible ? 50.h : 50.h, - child: isZoomedIn && isVisible - ? GestureDetector( - onTap: () { - Get.bottomSheet( - ObxValue((data) { - return BaseBottomSheet( - height: data.value ? 450.h : 150.h, - child: ListItemWithOutCounter( - secondChild: Column( - spacing: 8, - children: [ - Padding( - padding: EdgeInsets.symmetric(horizontal: 12.w), - child: Column( - spacing: 8, - children: [ - Row( - mainAxisAlignment: MainAxisAlignment.center, + child: GestureDetector( + onTap: () { + bool hasHatching = location.hatching != null && location.hatching!.isNotEmpty; + Get.bottomSheet( + ObxValue((data) { + return BaseBottomSheet( + height: data.value + ? hasHatching + ? 550.h + : 400.h + : 150.h, + child: Column( + spacing: 12, + children: [ + ListItemWithOutCounter( + secondChild: Column( + spacing: 8, + children: [ + Padding( + padding: EdgeInsets.symmetric(horizontal: 12.w), + child: Column( + spacing: 8, + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text( + location.unitName ?? 'N/A', + textAlign: TextAlign.center, + style: AppFonts.yekan16.copyWith(color: AppColor.greenDark), + ), + ], + ), + Container( + height: 32.h, + padding: EdgeInsets.symmetric(horizontal: 8), + decoration: ShapeDecoration( + color: AppColor.blueLight, + shape: RoundedRectangleBorder( + side: BorderSide( + width: 1.w, + color: AppColor.blueLightHover, + ), + borderRadius: BorderRadius.circular(8), + ), + ), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + spacing: 3, children: [ Text( - 'داوود خرم پور', - textAlign: TextAlign.center, - style: AppFonts.yekan16.copyWith( - color: AppColor.greenDark, + 'جوجه ریزی فعال', + style: AppFonts.yekan14.copyWith( + color: AppColor.textColor, + ), + ), + + Text( + hasHatching ? 'دارد' : 'ندارد', + style: AppFonts.yekan14.copyWith( + color: AppColor.blueNormal, ), ), ], ), - Container( - height: 32.h, - padding: EdgeInsets.symmetric(horizontal: 8), - decoration: ShapeDecoration( - color: AppColor.blueLight, - shape: RoundedRectangleBorder( - side: BorderSide( - width: 1.w, - color: AppColor.blueLightHover, + ), + buildRow( + title: 'مشخصات خریدار', + value: location.user?.fullname ?? 'N/A', + ), + + buildRow( + title: 'تلفن خریدار', + value: location.user?.mobile ?? 'N/A', + valueStyle: AppFonts.yekan14.copyWith( + color: AppColor.blueNormal, + ), + ), + + Visibility( + visible: location.address?.city?.name != null, + child: buildRow( + title: 'شهر', + value: location.address?.city?.name ?? 'N/A', + ), + ), + Visibility( + visible: location.address?.address != null, + child: buildRow( + title: 'آردس', + value: location.address?.address ?? 'N/A', + ), + ), + + buildRow( + title: 'شناسه یکتا', + value: location.breedingUniqueId ?? 'N/A', + ), + ], + ), + ), + Row( + children: [ + Expanded( + child: Row( + mainAxisSize: MainAxisSize.min, + mainAxisAlignment: MainAxisAlignment.center, + spacing: 7, + children: [ + RElevated( + width: 40.h, + height: 38.h, + backgroundColor: AppColor.greenNormal, + child: Assets.vec.messageAddSvg.svg( + width: 24.w, + height: 24.h, + colorFilter: ColorFilter.mode( + Colors.white, + BlendMode.srcIn, ), - borderRadius: BorderRadius.circular(8), + ), + onPressed: () {}, + ), + RElevated( + width: 150.w, + height: 40.h, + backgroundColor: AppColor.blueNormal, + onPressed: () { + /* controller.setEditData(item); + Get.bottomSheet( + addOrEditBottomSheet(true), + isScrollControlled: true, + backgroundColor: Colors.transparent, + ).whenComplete(() {});*/ + }, + child: Row( + mainAxisAlignment: MainAxisAlignment.start, + spacing: 8, + children: [ + Assets.vec.mapSvg.svg( + width: 24.w, + height: 24.h, + colorFilter: ColorFilter.mode( + Colors.white, + BlendMode.srcIn, + ), + ), + Text( + 'جزییات کامل', + style: AppFonts.yekan14Bold.copyWith( + color: Colors.white, + ), + ), + ], ), ), - child: Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - spacing: 3, - children: [ - Text( - 'تاریخ بازرسی', - style: AppFonts.yekan14.copyWith( - color: AppColor.textColor, + ROutlinedElevated( + width: 150.w, + height: 40.h, + onPressed: () { + buildDeleteDialog( + onConfirm: () async {}, + onRefresh: () async {}, + ); + }, + borderColor: AppColor.bgIcon, + child: Row( + mainAxisAlignment: MainAxisAlignment.center, + spacing: 8, + children: [ + Assets.vec.securityTimeSvg.svg( + width: 24.w, + height: 24.h, + colorFilter: ColorFilter.mode( + AppColor.bgIcon, + BlendMode.srcIn, + ), ), - ), - - Text( - '1403/12/12', - style: AppFonts.yekan14.copyWith( - color: AppColor.blueNormal, + Text( + 'سوابق بازرسی', + style: AppFonts.yekan14Bold.copyWith( + color: AppColor.bgIcon, + ), ), - ), - ], + ], + ), ), + ], + ), + ), + ], + ), + ], + ), + labelColor: AppColor.blueLight, + labelIcon: Assets.vec.cowSvg.path, + labelIconColor: AppColor.bgIcon, + onTap: () => data.value = !data.value, + selected: data.value, + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceAround, + children: [ + Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text( + location.unitName ?? 'N/A', + style: AppFonts.yekan10.copyWith(color: AppColor.blueNormal), + ), + Text( + location.user?.fullname ?? '', + style: AppFonts.yekan12.copyWith( + color: AppColor.darkGreyDarkHover, + ), + ), + ], + ), + Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text( + 'جوجه ریزی فعال', + style: AppFonts.yekan10.copyWith(color: AppColor.blueNormal), + ), + Text( + (location.hatching != null && location.hatching!.isNotEmpty) + ? 'دارد' + : 'ندراد', + style: AppFonts.yekan12.copyWith( + color: AppColor.darkGreyDarkHover, + ), + ), + ], + ), + Assets.vec.scanBarcodeSvg.svg(), + ], + ), + ), + + Visibility( + visible: hasHatching, + child: Container( + width: Get.width, + margin: const EdgeInsets.fromLTRB(0, 0, 10, 0), + padding: EdgeInsets.all(8.r), + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(8), + border: Border.all(width: 1, color: AppColor.lightGreyNormalHover), + ), + child: Column( + spacing: 8.h, + children: [ + Container( + height: 32.h, + padding: EdgeInsets.symmetric(horizontal: 8), + decoration: ShapeDecoration( + color: AppColor.blueLight, + shape: RoundedRectangleBorder( + side: BorderSide(width: 1.w, color: AppColor.blueLightHover), + borderRadius: BorderRadius.circular(8), + ), + ), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + spacing: 3, + children: [ + Text( + 'تاریخ', + style: AppFonts.yekan14.copyWith(color: AppColor.textColor), ), - buildRow( - title: 'تلفن خریدار', - value: '0326598653', - valueStyle: AppFonts.yekan14.copyWith( - color: AppColor.blueNormal, - ), + Text( + location.hatching?.first.date?.formattedJalaliDate ?? 'N/A', + style: AppFonts.yekan14.copyWith(color: AppColor.blueNormal), ), - buildRow(title: 'آخرین فعالیت', value: '1409/12/12'), - buildRow(title: 'موجودی', value: '5KG'), - buildRow(title: 'فروش رفته', value: '5KG'), ], ), ), - Row( - children: [ - Expanded( - child: Row( - mainAxisSize: MainAxisSize.min, - mainAxisAlignment: MainAxisAlignment.center, - spacing: 7, - children: [ - RElevated( - width: 40.h, - height: 38.h, - backgroundColor: AppColor.greenNormal, - child: Assets.vec.messageAddSvg.svg( - width: 24.w, - height: 24.h, - colorFilter: ColorFilter.mode( - Colors.white, - BlendMode.srcIn, - ), - ), - onPressed: () {}, - ), - RElevated( - width: 150.w, - height: 40.h, - backgroundColor: AppColor.blueNormal, - onPressed: () { - /* controller.setEditData(item); - Get.bottomSheet( - addOrEditBottomSheet(true), - isScrollControlled: true, - backgroundColor: Colors.transparent, - ).whenComplete(() {});*/ - }, - child: Row( - mainAxisAlignment: MainAxisAlignment.start, - spacing: 8, - children: [ - Assets.vec.mapSvg.svg( - width: 24.w, - height: 24.h, - colorFilter: ColorFilter.mode( - Colors.white, - BlendMode.srcIn, - ), - ), - Text( - 'مسیریابی', - style: AppFonts.yekan14Bold.copyWith( - color: Colors.white, - ), - ), - ], - ), - ), - ROutlinedElevated( - width: 150.w, - height: 40.h, - onPressed: () { - buildDeleteDialog( - onConfirm: () async {}, - onRefresh: () async {}, - ); - }, - borderColor: AppColor.bgIcon, - child: Row( - mainAxisAlignment: MainAxisAlignment.center, - spacing: 8, - children: [ - Assets.vec.securityTimeSvg.svg( - width: 24.w, - height: 24.h, - colorFilter: ColorFilter.mode( - AppColor.bgIcon, - BlendMode.srcIn, - ), - ), - Text( - 'سوابق بازرسی', - style: AppFonts.yekan14Bold.copyWith( - color: AppColor.bgIcon, - ), - ), - ], - ), - ), - ], - ), - ), - ], + buildRow( + title: 'باقیمانده', + value: location.hatching?.first.leftOver.separatedByComma ?? 'N/A', ), - ], - ), - labelColor: AppColor.blueLight, - labelIcon: Assets.vec.cowSvg.path, - labelIconColor: AppColor.bgIcon, - onTap: () => data.value = !data.value, - selected: data.value, - child: Row( - mainAxisAlignment: MainAxisAlignment.spaceAround, - children: [ - Column( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - Text( - 'داود خرم مهری پور', - style: AppFonts.yekan10.copyWith(color: AppColor.blueNormal), - ), - Text( - 'گوشت و مرغ', - style: AppFonts.yekan12.copyWith( - color: AppColor.darkGreyDarkHover, - ), - ), - ], + buildRow( + title: 'سن جوجه ریزی', + value: '${location.hatching?.first.chickenAge ?? 'N/A'} روز', ), - Column( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - Text( - 'باقی مانده', - style: AppFonts.yekan10.copyWith(color: AppColor.blueNormal), - ), - Text( - '0 کیلوگرم', - style: AppFonts.yekan12.copyWith( - color: AppColor.darkGreyDarkHover, - ), - ), - ], + buildRow( + title: 'شماره مجوز جوجه ریزی', + value: location.hatching?.first.licenceNumber.toString() ?? 'N/A', ), - Assets.vec.scanBarcodeSvg.svg(), ], ), ), - ); - }, controller.isSelectedDetailsLocation), - ); - }, - child: Container( + ), + ], + ), + ); + }, controller.isSelectedDetailsLocation), + isScrollControlled: true, + isDismissible: true, + ); + }, + child: isZoomedIn && isVisible + ? Container( height: 30.h, padding: EdgeInsets.all(5.r), decoration: BoxDecoration( @@ -551,9 +776,9 @@ class InspectionMapPage extends GetView { Text(location.user?.fullname ?? '', style: AppFonts.yekan12), ], ), - ), - ) - : Assets.vec.chickenMapMarkerSvg.svg(width: 24.w, height: 24.h), + ) + : Assets.vec.chickenMapMarkerSvg.svg(width: 24.w, height: 24.h), + ), ); }).toList(); diff --git a/packages/inspection/lib/presentation/pages/records/view.dart b/packages/inspection/lib/presentation/pages/records/view.dart index 24c34cf..e2b56be 100644 --- a/packages/inspection/lib/presentation/pages/records/view.dart +++ b/packages/inspection/lib/presentation/pages/records/view.dart @@ -29,7 +29,7 @@ class RecordsPage extends GetView { itemBuilder: (context, index) { var item = data.value.data!.results![index]; return ObxValue((val) { - return ListItem2( + return ExpandableListItem2( selected: val.value == index, onTap: () => controller.toggleExpandedList(index), index: index, diff --git a/packages/inspection/lib/presentation/pages/users/view.dart b/packages/inspection/lib/presentation/pages/users/view.dart index 3ac9419..ddf1285 100644 --- a/packages/inspection/lib/presentation/pages/users/view.dart +++ b/packages/inspection/lib/presentation/pages/users/view.dart @@ -29,7 +29,7 @@ class UsersPage extends GetView { itemBuilder: (context, index) { var item = data.value.data!.results![index]; return ObxValue((val) { - return ListItem2( + return ExpandableListItem2( selected: val.value == index, onTap: () => controller.toggleExpandedList(index), index: index, diff --git a/packages/inspection/lib/presentation/widget/base_page/logic.dart b/packages/inspection/lib/presentation/widget/base_page/logic.dart index dbba195..79ac095 100644 --- a/packages/inspection/lib/presentation/widget/base_page/logic.dart +++ b/packages/inspection/lib/presentation/widget/base_page/logic.dart @@ -1,8 +1,10 @@ +import 'package:flutter/cupertino.dart'; import 'package:rasadyar_core/core.dart'; class BaseLogic extends GetxController { final RxBool isFilterSelected = false.obs; final RxBool isSearchSelected = false.obs; + final TextEditingController searchTextController = TextEditingController(); final RxnString searchValue = RxnString(); void setSearchCallback(void Function(String)? onSearchChanged) {