diff --git a/packages/chicken/lib/data/common/fa_user_role.dart b/packages/chicken/lib/data/common/fa_user_role.dart index f237ad4..0fcc2b7 100644 --- a/packages/chicken/lib/data/common/fa_user_role.dart +++ b/packages/chicken/lib/data/common/fa_user_role.dart @@ -152,8 +152,7 @@ Map getFaUserRoleWithOnTap(String? role) { case "Steward": return {"مباشر": ChickenRoutes.initSteward}; case "PoultryScience": - return {"کارشناس طیور": ChickenRoutes.initPoultryScience - }; + return {"کارشناس طیور": ChickenRoutes.initPoultryScience}; default: return {"نامشخص": null}; } diff --git a/packages/chicken/lib/data/data_source/local/chicken_local_imp.dart b/packages/chicken/lib/data/data_source/local/chicken_local_imp.dart index 9d3b999..3ac829b 100644 --- a/packages/chicken/lib/data/data_source/local/chicken_local_imp.dart +++ b/packages/chicken/lib/data/data_source/local/chicken_local_imp.dart @@ -44,10 +44,7 @@ class ChickenLocalDataSourceImp implements ChickenLocalDataSource { path: ChickenRoutes.buysInProvinceSteward, ), ]; - await local.add( - boxName: boxName, - value: WidelyUsedLocalModel(hasInit: true, items: tmpList), - ); + } @override diff --git a/packages/chicken/lib/data/data_source/remote/poultry_science/poultry_science_remote.dart b/packages/chicken/lib/data/data_source/remote/poultry_science/poultry_science_remote.dart index 30afb6b..eb9e4b2 100644 --- a/packages/chicken/lib/data/data_source/remote/poultry_science/poultry_science_remote.dart +++ b/packages/chicken/lib/data/data_source/remote/poultry_science/poultry_science_remote.dart @@ -1,7 +1,16 @@ +import 'package:rasadyar_chicken/data/models/poultry_export/poultry_export.dart'; +import 'package:rasadyar_chicken/data/models/request/kill_registration/kill_registration.dart'; +import 'package:rasadyar_chicken/data/models/response/all_poultry/all_poultry.dart'; +import 'package:rasadyar_chicken/data/models/response/approved_price/approved_price.dart'; import 'package:rasadyar_chicken/data/models/response/hatching/hatching_models.dart'; import 'package:rasadyar_chicken/data/models/response/hatching_report/hatching_report.dart'; -import 'package:rasadyar_chicken/data/models/response/poultry/poultry_farm.dart'; +import 'package:rasadyar_chicken/data/models/response/kill_house_poultry/kill_house_poultry.dart'; +import 'package:rasadyar_chicken/data/models/response/kill_request_poultry/kill_request_poultry.dart'; +import 'package:rasadyar_chicken/data/models/response/poultry_farm/poultry_farm.dart'; +import 'package:rasadyar_chicken/data/models/response/poultry_hatching/poultry_hatching.dart'; +import 'package:rasadyar_chicken/data/models/response/poultry_order/poultry_order.dart'; import 'package:rasadyar_chicken/data/models/response/poultry_science/home_poultry_science/home_poultry_science_model.dart'; +import 'package:rasadyar_chicken/data/models/response/sell_for_freezing/sell_for_freezing.dart'; import 'package:rasadyar_core/core.dart'; abstract class PoultryScienceRemoteDatasource { @@ -30,4 +39,51 @@ abstract class PoultryScienceRemoteDatasource { required String token, Map? queryParameters, }); + + Future getApprovedPrice({ required String token, + Map? queryParameters,}); + + Future?> getAllPoultry({ + required String token, + Map? queryParameters, + }); + + + Future getSellForFreezing({ + required String token, + Map? queryParameters, + }); + + + Future getPoultryExport({ + required String token, + Map? queryParameters, + }); + + + Future?> getUserPoultry({ + required String token, + Map? queryParameters, + }); + + Future?> getPoultryHatching({ + required String token, + Map? queryParameters, + }); + + Future?> getKillHouseList({ + required String token, + Map? queryParameters, + }); + + Future submitKillRegistration({ + required String token, + required KillRegistrationRequest request, + }); + + + Future?> getPoultryOderList({ + required String token, + Map? queryParameters, + }); } diff --git a/packages/chicken/lib/data/data_source/remote/poultry_science/poultry_science_remote_imp.dart b/packages/chicken/lib/data/data_source/remote/poultry_science/poultry_science_remote_imp.dart index f21ce58..132ac00 100644 --- a/packages/chicken/lib/data/data_source/remote/poultry_science/poultry_science_remote_imp.dart +++ b/packages/chicken/lib/data/data_source/remote/poultry_science/poultry_science_remote_imp.dart @@ -1,7 +1,16 @@ +import 'package:rasadyar_chicken/data/models/poultry_export/poultry_export.dart'; +import 'package:rasadyar_chicken/data/models/request/kill_registration/kill_registration.dart'; +import 'package:rasadyar_chicken/data/models/response/all_poultry/all_poultry.dart'; +import 'package:rasadyar_chicken/data/models/response/approved_price/approved_price.dart'; import 'package:rasadyar_chicken/data/models/response/hatching/hatching_models.dart'; import 'package:rasadyar_chicken/data/models/response/hatching_report/hatching_report.dart'; -import 'package:rasadyar_chicken/data/models/response/poultry/poultry_farm.dart'; +import 'package:rasadyar_chicken/data/models/response/kill_house_poultry/kill_house_poultry.dart'; +import 'package:rasadyar_chicken/data/models/response/kill_request_poultry/kill_request_poultry.dart'; +import 'package:rasadyar_chicken/data/models/response/poultry_farm/poultry_farm.dart'; +import 'package:rasadyar_chicken/data/models/response/poultry_hatching/poultry_hatching.dart'; +import 'package:rasadyar_chicken/data/models/response/poultry_order/poultry_order.dart'; import 'package:rasadyar_chicken/data/models/response/poultry_science/home_poultry_science/home_poultry_science_model.dart'; +import 'package:rasadyar_chicken/data/models/response/sell_for_freezing/sell_for_freezing.dart'; import 'package:rasadyar_core/core.dart'; import 'poultry_science_remote.dart'; @@ -78,7 +87,7 @@ class PoultryScienceRemoteDatasourceImp implements PoultryScienceRemoteDatasourc Future?> getPoultryScienceFarmList({ required String token, Map? queryParameters, - }) async{ + }) async { var res = await _httpClient.get( '/poultry_and_hatching_for_poultry_science/', headers: {'Authorization': 'Bearer $token'}, @@ -90,4 +99,138 @@ class PoultryScienceRemoteDatasourceImp implements PoultryScienceRemoteDatasourc ); return res.data; } + + //region kill Registration + @override + Future getApprovedPrice({ + required String token, + Map? queryParameters, + }) async { + var res = await _httpClient.get( + '/approved-price/', + headers: {'Authorization': 'Bearer $token'}, + queryParameters: queryParameters, + fromJson: (json) => ApprovedPrice.fromJson(json), + ); + return res.data; + } + + @override + Future?> getAllPoultry({ + required String token, + Map? queryParameters, + }) async { + var res = await _httpClient.get( + '/get-all-poultry/', + headers: {'Authorization': 'Bearer $token'}, + queryParameters: queryParameters, + fromJsonList: (json) => + json.map((e) => AllPoultry.fromJson(e as Map)).toList(), + ); + return res.data; + } + + @override + Future getPoultryExport({ + required String token, + Map? queryParameters, + }) async { + var res = await _httpClient.get( + '/poultry-export/', + headers: {'Authorization': 'Bearer $token'}, + queryParameters: queryParameters, + fromJson: (json) => PoultryExport.fromJson(json), + ); + return res.data; + } + + @override + Future getSellForFreezing({ + required String token, + Map? queryParameters, + }) async { + var res = await _httpClient.get( + '/sell-for-freezing/', + headers: {'Authorization': 'Bearer $token'}, + queryParameters: queryParameters, + fromJson: (json) => SellForFreezing.fromJson(json), + ); + return res.data; + } + + @override + Future?> getUserPoultry({ + required String token, + Map? queryParameters, + }) async { + var res = await _httpClient.get( + '/Poultry/', + headers: {'Authorization': 'Bearer $token'}, + queryParameters: queryParameters, + fromJsonList: (json) => json.map((e) => KillRequestPoultry.fromJson(e)).toList(), + ); + return res.data; + } + + @override + Future?> getPoultryHatching({ + required String token, + Map? queryParameters, + }) async { + var res = await _httpClient.get( + '/poultry_hatching/', + headers: {'Authorization': 'Bearer $token'}, + queryParameters: queryParameters, + fromJsonList: (json) => json.map((e) => PoultryHatching.fromJson(e)).toList(), + ); + return res.data; + } + + @override + Future?> getKillHouseList({ + required String token, + Map? queryParameters, + }) async { + var res = await _httpClient.get( + '/kill_house_list/', + headers: {'Authorization': 'Bearer $token'}, + queryParameters: queryParameters, + fromJsonList: (json) => json.map((e) => KillHousePoultry.fromJson(e)).toList(), + ); + return res.data; + } + + @override + Future submitKillRegistration({ + required String token, + required KillRegistrationRequest request, + }) async { + await _httpClient.post( + '/Poultry_Request/', + headers: {'Authorization': 'Bearer $token'}, + data: request.toJson(), + ); + } + + @override + Future?> getPoultryOderList({ + required String token, + Map? queryParameters, + }) async { + var res = await _httpClient.get( + '/Poultry_Request/', + headers: {'Authorization': 'Bearer $token'}, + queryParameters: queryParameters, + fromJson: (json) => PaginationModel.fromJson( + json, + (data) => PoultryOrder.fromJson(data as Map), + ), + ); + dLog(res.data.runtimeType); + + return res.data; + } + + + //endregion } diff --git a/packages/chicken/lib/data/models/poultry_export/poultry_export.dart b/packages/chicken/lib/data/models/poultry_export/poultry_export.dart new file mode 100644 index 0000000..7a7e6bf --- /dev/null +++ b/packages/chicken/lib/data/models/poultry_export/poultry_export.dart @@ -0,0 +1,17 @@ +import 'package:rasadyar_core/core.dart'; + +part 'poultry_export.freezed.dart'; +part 'poultry_export.g.dart'; + +@freezed +abstract class PoultryExport with _$PoultryExport { + const factory PoultryExport({ + String? key, + bool? allow, + bool? limitationStatus, + double? limitation, + }) = _PoultryExport; + + factory PoultryExport.fromJson(Map json) => + _$PoultryExportFromJson(json); +} diff --git a/packages/chicken/lib/data/models/poultry_export/poultry_export.freezed.dart b/packages/chicken/lib/data/models/poultry_export/poultry_export.freezed.dart new file mode 100644 index 0000000..425cd57 --- /dev/null +++ b/packages/chicken/lib/data/models/poultry_export/poultry_export.freezed.dart @@ -0,0 +1,286 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// coverage:ignore-file +// ignore_for_file: type=lint +// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark + +part of 'poultry_export.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; + +/// @nodoc +mixin _$PoultryExport { + + String? get key; bool? get allow; bool? get limitationStatus; double? get limitation; +/// Create a copy of PoultryExport +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$PoultryExportCopyWith get copyWith => _$PoultryExportCopyWithImpl(this as PoultryExport, _$identity); + + /// Serializes this PoultryExport to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is PoultryExport&&(identical(other.key, key) || other.key == key)&&(identical(other.allow, allow) || other.allow == allow)&&(identical(other.limitationStatus, limitationStatus) || other.limitationStatus == limitationStatus)&&(identical(other.limitation, limitation) || other.limitation == limitation)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,allow,limitationStatus,limitation); + +@override +String toString() { + return 'PoultryExport(key: $key, allow: $allow, limitationStatus: $limitationStatus, limitation: $limitation)'; +} + + +} + +/// @nodoc +abstract mixin class $PoultryExportCopyWith<$Res> { + factory $PoultryExportCopyWith(PoultryExport value, $Res Function(PoultryExport) _then) = _$PoultryExportCopyWithImpl; +@useResult +$Res call({ + String? key, bool? allow, bool? limitationStatus, double? limitation +}); + + + + +} +/// @nodoc +class _$PoultryExportCopyWithImpl<$Res> + implements $PoultryExportCopyWith<$Res> { + _$PoultryExportCopyWithImpl(this._self, this._then); + + final PoultryExport _self; + final $Res Function(PoultryExport) _then; + +/// Create a copy of PoultryExport +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? key = freezed,Object? allow = freezed,Object? limitationStatus = freezed,Object? limitation = freezed,}) { + return _then(_self.copyWith( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,allow: freezed == allow ? _self.allow : allow // ignore: cast_nullable_to_non_nullable +as bool?,limitationStatus: freezed == limitationStatus ? _self.limitationStatus : limitationStatus // ignore: cast_nullable_to_non_nullable +as bool?,limitation: freezed == limitation ? _self.limitation : limitation // ignore: cast_nullable_to_non_nullable +as double?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [PoultryExport]. +extension PoultryExportPatterns on PoultryExport { +/// 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( _PoultryExport value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _PoultryExport() 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( _PoultryExport value) $default,){ +final _that = this; +switch (_that) { +case _PoultryExport(): +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( _PoultryExport value)? $default,){ +final _that = this; +switch (_that) { +case _PoultryExport() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? key, bool? allow, bool? limitationStatus, double? limitation)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _PoultryExport() when $default != null: +return $default(_that.key,_that.allow,_that.limitationStatus,_that.limitation);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? key, bool? allow, bool? limitationStatus, double? limitation) $default,) {final _that = this; +switch (_that) { +case _PoultryExport(): +return $default(_that.key,_that.allow,_that.limitationStatus,_that.limitation);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? key, bool? allow, bool? limitationStatus, double? limitation)? $default,) {final _that = this; +switch (_that) { +case _PoultryExport() when $default != null: +return $default(_that.key,_that.allow,_that.limitationStatus,_that.limitation);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _PoultryExport implements PoultryExport { + const _PoultryExport({this.key, this.allow, this.limitationStatus, this.limitation}); + factory _PoultryExport.fromJson(Map json) => _$PoultryExportFromJson(json); + +@override final String? key; +@override final bool? allow; +@override final bool? limitationStatus; +@override final double? limitation; + +/// Create a copy of PoultryExport +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$PoultryExportCopyWith<_PoultryExport> get copyWith => __$PoultryExportCopyWithImpl<_PoultryExport>(this, _$identity); + +@override +Map toJson() { + return _$PoultryExportToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _PoultryExport&&(identical(other.key, key) || other.key == key)&&(identical(other.allow, allow) || other.allow == allow)&&(identical(other.limitationStatus, limitationStatus) || other.limitationStatus == limitationStatus)&&(identical(other.limitation, limitation) || other.limitation == limitation)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,allow,limitationStatus,limitation); + +@override +String toString() { + return 'PoultryExport(key: $key, allow: $allow, limitationStatus: $limitationStatus, limitation: $limitation)'; +} + + +} + +/// @nodoc +abstract mixin class _$PoultryExportCopyWith<$Res> implements $PoultryExportCopyWith<$Res> { + factory _$PoultryExportCopyWith(_PoultryExport value, $Res Function(_PoultryExport) _then) = __$PoultryExportCopyWithImpl; +@override @useResult +$Res call({ + String? key, bool? allow, bool? limitationStatus, double? limitation +}); + + + + +} +/// @nodoc +class __$PoultryExportCopyWithImpl<$Res> + implements _$PoultryExportCopyWith<$Res> { + __$PoultryExportCopyWithImpl(this._self, this._then); + + final _PoultryExport _self; + final $Res Function(_PoultryExport) _then; + +/// Create a copy of PoultryExport +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? key = freezed,Object? allow = freezed,Object? limitationStatus = freezed,Object? limitation = freezed,}) { + return _then(_PoultryExport( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,allow: freezed == allow ? _self.allow : allow // ignore: cast_nullable_to_non_nullable +as bool?,limitationStatus: freezed == limitationStatus ? _self.limitationStatus : limitationStatus // ignore: cast_nullable_to_non_nullable +as bool?,limitation: freezed == limitation ? _self.limitation : limitation // ignore: cast_nullable_to_non_nullable +as double?, + )); +} + + +} + +// dart format on diff --git a/packages/chicken/lib/data/models/poultry_export/poultry_export.g.dart b/packages/chicken/lib/data/models/poultry_export/poultry_export.g.dart new file mode 100644 index 0000000..27d0a8c --- /dev/null +++ b/packages/chicken/lib/data/models/poultry_export/poultry_export.g.dart @@ -0,0 +1,23 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'poultry_export.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +_PoultryExport _$PoultryExportFromJson(Map json) => + _PoultryExport( + key: json['key'] as String?, + allow: json['allow'] as bool?, + limitationStatus: json['limitation_status'] as bool?, + limitation: (json['limitation'] as num?)?.toDouble(), + ); + +Map _$PoultryExportToJson(_PoultryExport instance) => + { + 'key': instance.key, + 'allow': instance.allow, + 'limitation_status': instance.limitationStatus, + 'limitation': instance.limitation, + }; diff --git a/packages/chicken/lib/data/models/request/kill_registration/kill_registration.dart b/packages/chicken/lib/data/models/request/kill_registration/kill_registration.dart new file mode 100644 index 0000000..b8fd661 --- /dev/null +++ b/packages/chicken/lib/data/models/request/kill_registration/kill_registration.dart @@ -0,0 +1,35 @@ +import 'package:freezed_annotation/freezed_annotation.dart'; + +part 'kill_registration.freezed.dart'; +part 'kill_registration.g.dart'; + +@freezed +abstract class KillRegistrationRequest with _$KillRegistrationRequest { + const factory KillRegistrationRequest({ + bool? approvedPrice, + bool? market, + String? killReqKey, + String? operatorKey, + String? poultryHatchingKey, + int? quantity, + String? sendDate, + String? chickenBreed, + @JsonKey(name: "Index_weight") double? indexWeight, + String? losses, + List? auctionList, + bool? freezing, + bool? export, + bool? cash, + bool? credit, + List? killHouseList, + String? role, + String? poultryKey, + int? amount, + String? financialOperation, + bool? freeSaleInProvince, + String? confirmPoultryMobile, + }) = _KillRegistrationRequest; + + factory KillRegistrationRequest.fromJson(Map json) => + _$KillRegistrationRequestFromJson(json); +} diff --git a/packages/chicken/lib/data/models/request/kill_registration/kill_registration.freezed.dart b/packages/chicken/lib/data/models/request/kill_registration/kill_registration.freezed.dart new file mode 100644 index 0000000..91fee55 --- /dev/null +++ b/packages/chicken/lib/data/models/request/kill_registration/kill_registration.freezed.dart @@ -0,0 +1,356 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// coverage:ignore-file +// ignore_for_file: type=lint +// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark + +part of 'kill_registration.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; + +/// @nodoc +mixin _$KillRegistrationRequest { + + bool? get approvedPrice; bool? get market; String? get killReqKey; String? get operatorKey; String? get poultryHatchingKey; int? get quantity; String? get sendDate; String? get chickenBreed;@JsonKey(name: "Index_weight") double? get indexWeight; String? get losses; List? get auctionList; bool? get freezing; bool? get export; bool? get cash; bool? get credit; List? get killHouseList; String? get role; String? get poultryKey; int? get amount; String? get financialOperation; bool? get freeSaleInProvince; String? get confirmPoultryMobile; +/// Create a copy of KillRegistrationRequest +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$KillRegistrationRequestCopyWith get copyWith => _$KillRegistrationRequestCopyWithImpl(this as KillRegistrationRequest, _$identity); + + /// Serializes this KillRegistrationRequest to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is KillRegistrationRequest&&(identical(other.approvedPrice, approvedPrice) || other.approvedPrice == approvedPrice)&&(identical(other.market, market) || other.market == market)&&(identical(other.killReqKey, killReqKey) || other.killReqKey == killReqKey)&&(identical(other.operatorKey, operatorKey) || other.operatorKey == operatorKey)&&(identical(other.poultryHatchingKey, poultryHatchingKey) || other.poultryHatchingKey == poultryHatchingKey)&&(identical(other.quantity, quantity) || other.quantity == quantity)&&(identical(other.sendDate, sendDate) || other.sendDate == sendDate)&&(identical(other.chickenBreed, chickenBreed) || other.chickenBreed == chickenBreed)&&(identical(other.indexWeight, indexWeight) || other.indexWeight == indexWeight)&&(identical(other.losses, losses) || other.losses == losses)&&const DeepCollectionEquality().equals(other.auctionList, auctionList)&&(identical(other.freezing, freezing) || other.freezing == freezing)&&(identical(other.export, export) || other.export == export)&&(identical(other.cash, cash) || other.cash == cash)&&(identical(other.credit, credit) || other.credit == credit)&&const DeepCollectionEquality().equals(other.killHouseList, killHouseList)&&(identical(other.role, role) || other.role == role)&&(identical(other.poultryKey, poultryKey) || other.poultryKey == poultryKey)&&(identical(other.amount, amount) || other.amount == amount)&&(identical(other.financialOperation, financialOperation) || other.financialOperation == financialOperation)&&(identical(other.freeSaleInProvince, freeSaleInProvince) || other.freeSaleInProvince == freeSaleInProvince)&&(identical(other.confirmPoultryMobile, confirmPoultryMobile) || other.confirmPoultryMobile == confirmPoultryMobile)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,approvedPrice,market,killReqKey,operatorKey,poultryHatchingKey,quantity,sendDate,chickenBreed,indexWeight,losses,const DeepCollectionEquality().hash(auctionList),freezing,export,cash,credit,const DeepCollectionEquality().hash(killHouseList),role,poultryKey,amount,financialOperation,freeSaleInProvince,confirmPoultryMobile]); + +@override +String toString() { + return 'KillRegistrationRequest(approvedPrice: $approvedPrice, market: $market, killReqKey: $killReqKey, operatorKey: $operatorKey, poultryHatchingKey: $poultryHatchingKey, quantity: $quantity, sendDate: $sendDate, chickenBreed: $chickenBreed, indexWeight: $indexWeight, losses: $losses, auctionList: $auctionList, freezing: $freezing, export: $export, cash: $cash, credit: $credit, killHouseList: $killHouseList, role: $role, poultryKey: $poultryKey, amount: $amount, financialOperation: $financialOperation, freeSaleInProvince: $freeSaleInProvince, confirmPoultryMobile: $confirmPoultryMobile)'; +} + + +} + +/// @nodoc +abstract mixin class $KillRegistrationRequestCopyWith<$Res> { + factory $KillRegistrationRequestCopyWith(KillRegistrationRequest value, $Res Function(KillRegistrationRequest) _then) = _$KillRegistrationRequestCopyWithImpl; +@useResult +$Res call({ + bool? approvedPrice, bool? market, String? killReqKey, String? operatorKey, String? poultryHatchingKey, int? quantity, String? sendDate, String? chickenBreed,@JsonKey(name: "Index_weight") double? indexWeight, String? losses, List? auctionList, bool? freezing, bool? export, bool? cash, bool? credit, List? killHouseList, String? role, String? poultryKey, int? amount, String? financialOperation, bool? freeSaleInProvince, String? confirmPoultryMobile +}); + + + + +} +/// @nodoc +class _$KillRegistrationRequestCopyWithImpl<$Res> + implements $KillRegistrationRequestCopyWith<$Res> { + _$KillRegistrationRequestCopyWithImpl(this._self, this._then); + + final KillRegistrationRequest _self; + final $Res Function(KillRegistrationRequest) _then; + +/// Create a copy of KillRegistrationRequest +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? approvedPrice = freezed,Object? market = freezed,Object? killReqKey = freezed,Object? operatorKey = freezed,Object? poultryHatchingKey = freezed,Object? quantity = freezed,Object? sendDate = freezed,Object? chickenBreed = freezed,Object? indexWeight = freezed,Object? losses = freezed,Object? auctionList = freezed,Object? freezing = freezed,Object? export = freezed,Object? cash = freezed,Object? credit = freezed,Object? killHouseList = freezed,Object? role = freezed,Object? poultryKey = freezed,Object? amount = freezed,Object? financialOperation = freezed,Object? freeSaleInProvince = freezed,Object? confirmPoultryMobile = freezed,}) { + return _then(_self.copyWith( +approvedPrice: freezed == approvedPrice ? _self.approvedPrice : approvedPrice // ignore: cast_nullable_to_non_nullable +as bool?,market: freezed == market ? _self.market : market // ignore: cast_nullable_to_non_nullable +as bool?,killReqKey: freezed == killReqKey ? _self.killReqKey : killReqKey // ignore: cast_nullable_to_non_nullable +as String?,operatorKey: freezed == operatorKey ? _self.operatorKey : operatorKey // ignore: cast_nullable_to_non_nullable +as String?,poultryHatchingKey: freezed == poultryHatchingKey ? _self.poultryHatchingKey : poultryHatchingKey // ignore: cast_nullable_to_non_nullable +as String?,quantity: freezed == quantity ? _self.quantity : quantity // ignore: cast_nullable_to_non_nullable +as int?,sendDate: freezed == sendDate ? _self.sendDate : sendDate // ignore: cast_nullable_to_non_nullable +as String?,chickenBreed: freezed == chickenBreed ? _self.chickenBreed : chickenBreed // ignore: cast_nullable_to_non_nullable +as String?,indexWeight: freezed == indexWeight ? _self.indexWeight : indexWeight // ignore: cast_nullable_to_non_nullable +as double?,losses: freezed == losses ? _self.losses : losses // ignore: cast_nullable_to_non_nullable +as String?,auctionList: freezed == auctionList ? _self.auctionList : auctionList // ignore: cast_nullable_to_non_nullable +as List?,freezing: freezed == freezing ? _self.freezing : freezing // ignore: cast_nullable_to_non_nullable +as bool?,export: freezed == export ? _self.export : export // ignore: cast_nullable_to_non_nullable +as bool?,cash: freezed == cash ? _self.cash : cash // ignore: cast_nullable_to_non_nullable +as bool?,credit: freezed == credit ? _self.credit : credit // ignore: cast_nullable_to_non_nullable +as bool?,killHouseList: freezed == killHouseList ? _self.killHouseList : killHouseList // ignore: cast_nullable_to_non_nullable +as List?,role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable +as String?,poultryKey: freezed == poultryKey ? _self.poultryKey : poultryKey // ignore: cast_nullable_to_non_nullable +as String?,amount: freezed == amount ? _self.amount : amount // ignore: cast_nullable_to_non_nullable +as int?,financialOperation: freezed == financialOperation ? _self.financialOperation : financialOperation // ignore: cast_nullable_to_non_nullable +as String?,freeSaleInProvince: freezed == freeSaleInProvince ? _self.freeSaleInProvince : freeSaleInProvince // ignore: cast_nullable_to_non_nullable +as bool?,confirmPoultryMobile: freezed == confirmPoultryMobile ? _self.confirmPoultryMobile : confirmPoultryMobile // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [KillRegistrationRequest]. +extension KillRegistrationRequestPatterns on KillRegistrationRequest { +/// 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( _KillRegistrationRequest value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _KillRegistrationRequest() 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( _KillRegistrationRequest value) $default,){ +final _that = this; +switch (_that) { +case _KillRegistrationRequest(): +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( _KillRegistrationRequest value)? $default,){ +final _that = this; +switch (_that) { +case _KillRegistrationRequest() 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? approvedPrice, bool? market, String? killReqKey, String? operatorKey, String? poultryHatchingKey, int? quantity, String? sendDate, String? chickenBreed, @JsonKey(name: "Index_weight") double? indexWeight, String? losses, List? auctionList, bool? freezing, bool? export, bool? cash, bool? credit, List? killHouseList, String? role, String? poultryKey, int? amount, String? financialOperation, bool? freeSaleInProvince, String? confirmPoultryMobile)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _KillRegistrationRequest() when $default != null: +return $default(_that.approvedPrice,_that.market,_that.killReqKey,_that.operatorKey,_that.poultryHatchingKey,_that.quantity,_that.sendDate,_that.chickenBreed,_that.indexWeight,_that.losses,_that.auctionList,_that.freezing,_that.export,_that.cash,_that.credit,_that.killHouseList,_that.role,_that.poultryKey,_that.amount,_that.financialOperation,_that.freeSaleInProvince,_that.confirmPoultryMobile);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? approvedPrice, bool? market, String? killReqKey, String? operatorKey, String? poultryHatchingKey, int? quantity, String? sendDate, String? chickenBreed, @JsonKey(name: "Index_weight") double? indexWeight, String? losses, List? auctionList, bool? freezing, bool? export, bool? cash, bool? credit, List? killHouseList, String? role, String? poultryKey, int? amount, String? financialOperation, bool? freeSaleInProvince, String? confirmPoultryMobile) $default,) {final _that = this; +switch (_that) { +case _KillRegistrationRequest(): +return $default(_that.approvedPrice,_that.market,_that.killReqKey,_that.operatorKey,_that.poultryHatchingKey,_that.quantity,_that.sendDate,_that.chickenBreed,_that.indexWeight,_that.losses,_that.auctionList,_that.freezing,_that.export,_that.cash,_that.credit,_that.killHouseList,_that.role,_that.poultryKey,_that.amount,_that.financialOperation,_that.freeSaleInProvince,_that.confirmPoultryMobile);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? approvedPrice, bool? market, String? killReqKey, String? operatorKey, String? poultryHatchingKey, int? quantity, String? sendDate, String? chickenBreed, @JsonKey(name: "Index_weight") double? indexWeight, String? losses, List? auctionList, bool? freezing, bool? export, bool? cash, bool? credit, List? killHouseList, String? role, String? poultryKey, int? amount, String? financialOperation, bool? freeSaleInProvince, String? confirmPoultryMobile)? $default,) {final _that = this; +switch (_that) { +case _KillRegistrationRequest() when $default != null: +return $default(_that.approvedPrice,_that.market,_that.killReqKey,_that.operatorKey,_that.poultryHatchingKey,_that.quantity,_that.sendDate,_that.chickenBreed,_that.indexWeight,_that.losses,_that.auctionList,_that.freezing,_that.export,_that.cash,_that.credit,_that.killHouseList,_that.role,_that.poultryKey,_that.amount,_that.financialOperation,_that.freeSaleInProvince,_that.confirmPoultryMobile);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _KillRegistrationRequest implements KillRegistrationRequest { + const _KillRegistrationRequest({this.approvedPrice, this.market, this.killReqKey, this.operatorKey, this.poultryHatchingKey, this.quantity, this.sendDate, this.chickenBreed, @JsonKey(name: "Index_weight") this.indexWeight, this.losses, final List? auctionList, this.freezing, this.export, this.cash, this.credit, final List? killHouseList, this.role, this.poultryKey, this.amount, this.financialOperation, this.freeSaleInProvince, this.confirmPoultryMobile}): _auctionList = auctionList,_killHouseList = killHouseList; + factory _KillRegistrationRequest.fromJson(Map json) => _$KillRegistrationRequestFromJson(json); + +@override final bool? approvedPrice; +@override final bool? market; +@override final String? killReqKey; +@override final String? operatorKey; +@override final String? poultryHatchingKey; +@override final int? quantity; +@override final String? sendDate; +@override final String? chickenBreed; +@override@JsonKey(name: "Index_weight") final double? indexWeight; +@override final String? losses; + final List? _auctionList; +@override List? get auctionList { + final value = _auctionList; + if (value == null) return null; + if (_auctionList is EqualUnmodifiableListView) return _auctionList; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + +@override final bool? freezing; +@override final bool? export; +@override final bool? cash; +@override final bool? credit; + final List? _killHouseList; +@override List? get killHouseList { + final value = _killHouseList; + if (value == null) return null; + if (_killHouseList is EqualUnmodifiableListView) return _killHouseList; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + +@override final String? role; +@override final String? poultryKey; +@override final int? amount; +@override final String? financialOperation; +@override final bool? freeSaleInProvince; +@override final String? confirmPoultryMobile; + +/// Create a copy of KillRegistrationRequest +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$KillRegistrationRequestCopyWith<_KillRegistrationRequest> get copyWith => __$KillRegistrationRequestCopyWithImpl<_KillRegistrationRequest>(this, _$identity); + +@override +Map toJson() { + return _$KillRegistrationRequestToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _KillRegistrationRequest&&(identical(other.approvedPrice, approvedPrice) || other.approvedPrice == approvedPrice)&&(identical(other.market, market) || other.market == market)&&(identical(other.killReqKey, killReqKey) || other.killReqKey == killReqKey)&&(identical(other.operatorKey, operatorKey) || other.operatorKey == operatorKey)&&(identical(other.poultryHatchingKey, poultryHatchingKey) || other.poultryHatchingKey == poultryHatchingKey)&&(identical(other.quantity, quantity) || other.quantity == quantity)&&(identical(other.sendDate, sendDate) || other.sendDate == sendDate)&&(identical(other.chickenBreed, chickenBreed) || other.chickenBreed == chickenBreed)&&(identical(other.indexWeight, indexWeight) || other.indexWeight == indexWeight)&&(identical(other.losses, losses) || other.losses == losses)&&const DeepCollectionEquality().equals(other._auctionList, _auctionList)&&(identical(other.freezing, freezing) || other.freezing == freezing)&&(identical(other.export, export) || other.export == export)&&(identical(other.cash, cash) || other.cash == cash)&&(identical(other.credit, credit) || other.credit == credit)&&const DeepCollectionEquality().equals(other._killHouseList, _killHouseList)&&(identical(other.role, role) || other.role == role)&&(identical(other.poultryKey, poultryKey) || other.poultryKey == poultryKey)&&(identical(other.amount, amount) || other.amount == amount)&&(identical(other.financialOperation, financialOperation) || other.financialOperation == financialOperation)&&(identical(other.freeSaleInProvince, freeSaleInProvince) || other.freeSaleInProvince == freeSaleInProvince)&&(identical(other.confirmPoultryMobile, confirmPoultryMobile) || other.confirmPoultryMobile == confirmPoultryMobile)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,approvedPrice,market,killReqKey,operatorKey,poultryHatchingKey,quantity,sendDate,chickenBreed,indexWeight,losses,const DeepCollectionEquality().hash(_auctionList),freezing,export,cash,credit,const DeepCollectionEquality().hash(_killHouseList),role,poultryKey,amount,financialOperation,freeSaleInProvince,confirmPoultryMobile]); + +@override +String toString() { + return 'KillRegistrationRequest(approvedPrice: $approvedPrice, market: $market, killReqKey: $killReqKey, operatorKey: $operatorKey, poultryHatchingKey: $poultryHatchingKey, quantity: $quantity, sendDate: $sendDate, chickenBreed: $chickenBreed, indexWeight: $indexWeight, losses: $losses, auctionList: $auctionList, freezing: $freezing, export: $export, cash: $cash, credit: $credit, killHouseList: $killHouseList, role: $role, poultryKey: $poultryKey, amount: $amount, financialOperation: $financialOperation, freeSaleInProvince: $freeSaleInProvince, confirmPoultryMobile: $confirmPoultryMobile)'; +} + + +} + +/// @nodoc +abstract mixin class _$KillRegistrationRequestCopyWith<$Res> implements $KillRegistrationRequestCopyWith<$Res> { + factory _$KillRegistrationRequestCopyWith(_KillRegistrationRequest value, $Res Function(_KillRegistrationRequest) _then) = __$KillRegistrationRequestCopyWithImpl; +@override @useResult +$Res call({ + bool? approvedPrice, bool? market, String? killReqKey, String? operatorKey, String? poultryHatchingKey, int? quantity, String? sendDate, String? chickenBreed,@JsonKey(name: "Index_weight") double? indexWeight, String? losses, List? auctionList, bool? freezing, bool? export, bool? cash, bool? credit, List? killHouseList, String? role, String? poultryKey, int? amount, String? financialOperation, bool? freeSaleInProvince, String? confirmPoultryMobile +}); + + + + +} +/// @nodoc +class __$KillRegistrationRequestCopyWithImpl<$Res> + implements _$KillRegistrationRequestCopyWith<$Res> { + __$KillRegistrationRequestCopyWithImpl(this._self, this._then); + + final _KillRegistrationRequest _self; + final $Res Function(_KillRegistrationRequest) _then; + +/// Create a copy of KillRegistrationRequest +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? approvedPrice = freezed,Object? market = freezed,Object? killReqKey = freezed,Object? operatorKey = freezed,Object? poultryHatchingKey = freezed,Object? quantity = freezed,Object? sendDate = freezed,Object? chickenBreed = freezed,Object? indexWeight = freezed,Object? losses = freezed,Object? auctionList = freezed,Object? freezing = freezed,Object? export = freezed,Object? cash = freezed,Object? credit = freezed,Object? killHouseList = freezed,Object? role = freezed,Object? poultryKey = freezed,Object? amount = freezed,Object? financialOperation = freezed,Object? freeSaleInProvince = freezed,Object? confirmPoultryMobile = freezed,}) { + return _then(_KillRegistrationRequest( +approvedPrice: freezed == approvedPrice ? _self.approvedPrice : approvedPrice // ignore: cast_nullable_to_non_nullable +as bool?,market: freezed == market ? _self.market : market // ignore: cast_nullable_to_non_nullable +as bool?,killReqKey: freezed == killReqKey ? _self.killReqKey : killReqKey // ignore: cast_nullable_to_non_nullable +as String?,operatorKey: freezed == operatorKey ? _self.operatorKey : operatorKey // ignore: cast_nullable_to_non_nullable +as String?,poultryHatchingKey: freezed == poultryHatchingKey ? _self.poultryHatchingKey : poultryHatchingKey // ignore: cast_nullable_to_non_nullable +as String?,quantity: freezed == quantity ? _self.quantity : quantity // ignore: cast_nullable_to_non_nullable +as int?,sendDate: freezed == sendDate ? _self.sendDate : sendDate // ignore: cast_nullable_to_non_nullable +as String?,chickenBreed: freezed == chickenBreed ? _self.chickenBreed : chickenBreed // ignore: cast_nullable_to_non_nullable +as String?,indexWeight: freezed == indexWeight ? _self.indexWeight : indexWeight // ignore: cast_nullable_to_non_nullable +as double?,losses: freezed == losses ? _self.losses : losses // ignore: cast_nullable_to_non_nullable +as String?,auctionList: freezed == auctionList ? _self._auctionList : auctionList // ignore: cast_nullable_to_non_nullable +as List?,freezing: freezed == freezing ? _self.freezing : freezing // ignore: cast_nullable_to_non_nullable +as bool?,export: freezed == export ? _self.export : export // ignore: cast_nullable_to_non_nullable +as bool?,cash: freezed == cash ? _self.cash : cash // ignore: cast_nullable_to_non_nullable +as bool?,credit: freezed == credit ? _self.credit : credit // ignore: cast_nullable_to_non_nullable +as bool?,killHouseList: freezed == killHouseList ? _self._killHouseList : killHouseList // ignore: cast_nullable_to_non_nullable +as List?,role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable +as String?,poultryKey: freezed == poultryKey ? _self.poultryKey : poultryKey // ignore: cast_nullable_to_non_nullable +as String?,amount: freezed == amount ? _self.amount : amount // ignore: cast_nullable_to_non_nullable +as int?,financialOperation: freezed == financialOperation ? _self.financialOperation : financialOperation // ignore: cast_nullable_to_non_nullable +as String?,freeSaleInProvince: freezed == freeSaleInProvince ? _self.freeSaleInProvince : freeSaleInProvince // ignore: cast_nullable_to_non_nullable +as bool?,confirmPoultryMobile: freezed == confirmPoultryMobile ? _self.confirmPoultryMobile : confirmPoultryMobile // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + +// dart format on diff --git a/packages/chicken/lib/data/models/request/kill_registration/kill_registration.g.dart b/packages/chicken/lib/data/models/request/kill_registration/kill_registration.g.dart new file mode 100644 index 0000000..61ee560 --- /dev/null +++ b/packages/chicken/lib/data/models/request/kill_registration/kill_registration.g.dart @@ -0,0 +1,61 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'kill_registration.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +_KillRegistrationRequest _$KillRegistrationRequestFromJson( + Map json, +) => _KillRegistrationRequest( + approvedPrice: json['approved_price'] as bool?, + market: json['market'] as bool?, + killReqKey: json['kill_req_key'] as String?, + operatorKey: json['operator_key'] as String?, + poultryHatchingKey: json['poultry_hatching_key'] as String?, + quantity: (json['quantity'] as num?)?.toInt(), + sendDate: json['send_date'] as String?, + chickenBreed: json['chicken_breed'] as String?, + indexWeight: (json['Index_weight'] as num?)?.toDouble(), + losses: json['losses'] as String?, + auctionList: json['auction_list'] as List?, + freezing: json['freezing'] as bool?, + export: json['export'] as bool?, + cash: json['cash'] as bool?, + credit: json['credit'] as bool?, + killHouseList: json['kill_house_list'] as List?, + role: json['role'] as String?, + poultryKey: json['poultry_key'] as String?, + amount: (json['amount'] as num?)?.toInt(), + financialOperation: json['financial_operation'] as String?, + freeSaleInProvince: json['free_sale_in_province'] as bool?, + confirmPoultryMobile: json['confirm_poultry_mobile'] as String?, +); + +Map _$KillRegistrationRequestToJson( + _KillRegistrationRequest instance, +) => { + 'approved_price': instance.approvedPrice, + 'market': instance.market, + 'kill_req_key': instance.killReqKey, + 'operator_key': instance.operatorKey, + 'poultry_hatching_key': instance.poultryHatchingKey, + 'quantity': instance.quantity, + 'send_date': instance.sendDate, + 'chicken_breed': instance.chickenBreed, + 'Index_weight': instance.indexWeight, + 'losses': instance.losses, + 'auction_list': instance.auctionList, + 'freezing': instance.freezing, + 'export': instance.export, + 'cash': instance.cash, + 'credit': instance.credit, + 'kill_house_list': instance.killHouseList, + 'role': instance.role, + 'poultry_key': instance.poultryKey, + 'amount': instance.amount, + 'financial_operation': instance.financialOperation, + 'free_sale_in_province': instance.freeSaleInProvince, + 'confirm_poultry_mobile': instance.confirmPoultryMobile, +}; diff --git a/packages/chicken/lib/data/models/response/all_poultry/all_poultry.dart b/packages/chicken/lib/data/models/response/all_poultry/all_poultry.dart new file mode 100644 index 0000000..a31b322 --- /dev/null +++ b/packages/chicken/lib/data/models/response/all_poultry/all_poultry.dart @@ -0,0 +1,60 @@ +import 'package:rasadyar_core/core.dart'; + +part 'all_poultry.freezed.dart'; +part 'all_poultry.g.dart'; + +@freezed +abstract class AllPoultry with _$AllPoultry { + const factory AllPoultry({ + User? user, + String? key, + String? unitName, + Address? address, + int? lastHatchingRemainQuantity, + bool? provinceAllowSellFree, + ChainCompany? chainCompany, + }) = _AllPoultry; + + factory AllPoultry.fromJson(Map json) => + _$AllPoultryFromJson(json); +} + +@freezed +abstract class User with _$User { + const factory User({ + String? fullname, + String? mobile, + }) = _User; + + factory User.fromJson(Map json) => _$UserFromJson(json); +} + +@freezed +abstract class Address with _$Address { + const factory Address({ + City? city, + }) = _Address; + + factory Address.fromJson(Map json) => + _$AddressFromJson(json); +} + +@freezed +abstract class City with _$City { + const factory City({ + String? name, + }) = _City; + + factory City.fromJson(Map json) => _$CityFromJson(json); +} + +@freezed +abstract class ChainCompany with _$ChainCompany { + const factory ChainCompany({ + bool? chainCompany, + String? hatchingKey, + }) = _ChainCompany; + + factory ChainCompany.fromJson(Map json) => + _$ChainCompanyFromJson(json); +} diff --git a/packages/chicken/lib/data/models/response/all_poultry/all_poultry.freezed.dart b/packages/chicken/lib/data/models/response/all_poultry/all_poultry.freezed.dart new file mode 100644 index 0000000..2c6344b --- /dev/null +++ b/packages/chicken/lib/data/models/response/all_poultry/all_poultry.freezed.dart @@ -0,0 +1,1449 @@ +// 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 'all_poultry.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; + +/// @nodoc +mixin _$AllPoultry { + + User? get user; String? get key; String? get unitName; Address? get address; int? get lastHatchingRemainQuantity; bool? get provinceAllowSellFree; ChainCompany? get chainCompany; +/// Create a copy of AllPoultry +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$AllPoultryCopyWith get copyWith => _$AllPoultryCopyWithImpl(this as AllPoultry, _$identity); + + /// Serializes this AllPoultry to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is AllPoultry&&(identical(other.user, user) || other.user == user)&&(identical(other.key, key) || other.key == key)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.address, address) || other.address == address)&&(identical(other.lastHatchingRemainQuantity, lastHatchingRemainQuantity) || other.lastHatchingRemainQuantity == lastHatchingRemainQuantity)&&(identical(other.provinceAllowSellFree, provinceAllowSellFree) || other.provinceAllowSellFree == provinceAllowSellFree)&&(identical(other.chainCompany, chainCompany) || other.chainCompany == chainCompany)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,user,key,unitName,address,lastHatchingRemainQuantity,provinceAllowSellFree,chainCompany); + +@override +String toString() { + return 'AllPoultry(user: $user, key: $key, unitName: $unitName, address: $address, lastHatchingRemainQuantity: $lastHatchingRemainQuantity, provinceAllowSellFree: $provinceAllowSellFree, chainCompany: $chainCompany)'; +} + + +} + +/// @nodoc +abstract mixin class $AllPoultryCopyWith<$Res> { + factory $AllPoultryCopyWith(AllPoultry value, $Res Function(AllPoultry) _then) = _$AllPoultryCopyWithImpl; +@useResult +$Res call({ + User? user, String? key, String? unitName, Address? address, int? lastHatchingRemainQuantity, bool? provinceAllowSellFree, ChainCompany? chainCompany +}); + + +$UserCopyWith<$Res>? get user;$AddressCopyWith<$Res>? get address;$ChainCompanyCopyWith<$Res>? get chainCompany; + +} +/// @nodoc +class _$AllPoultryCopyWithImpl<$Res> + implements $AllPoultryCopyWith<$Res> { + _$AllPoultryCopyWithImpl(this._self, this._then); + + final AllPoultry _self; + final $Res Function(AllPoultry) _then; + +/// Create a copy of AllPoultry +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? user = freezed,Object? key = freezed,Object? unitName = freezed,Object? address = freezed,Object? lastHatchingRemainQuantity = freezed,Object? provinceAllowSellFree = freezed,Object? chainCompany = freezed,}) { + return _then(_self.copyWith( +user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable +as User?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,unitName: freezed == unitName ? _self.unitName : unitName // ignore: cast_nullable_to_non_nullable +as String?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable +as Address?,lastHatchingRemainQuantity: freezed == lastHatchingRemainQuantity ? _self.lastHatchingRemainQuantity : lastHatchingRemainQuantity // ignore: cast_nullable_to_non_nullable +as int?,provinceAllowSellFree: freezed == provinceAllowSellFree ? _self.provinceAllowSellFree : provinceAllowSellFree // ignore: cast_nullable_to_non_nullable +as bool?,chainCompany: freezed == chainCompany ? _self.chainCompany : chainCompany // ignore: cast_nullable_to_non_nullable +as ChainCompany?, + )); +} +/// Create a copy of AllPoultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$UserCopyWith<$Res>? get user { + if (_self.user == null) { + return null; + } + + return $UserCopyWith<$Res>(_self.user!, (value) { + return _then(_self.copyWith(user: value)); + }); +}/// Create a copy of AllPoultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$AddressCopyWith<$Res>? get address { + if (_self.address == null) { + return null; + } + + return $AddressCopyWith<$Res>(_self.address!, (value) { + return _then(_self.copyWith(address: value)); + }); +}/// Create a copy of AllPoultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ChainCompanyCopyWith<$Res>? get chainCompany { + if (_self.chainCompany == null) { + return null; + } + + return $ChainCompanyCopyWith<$Res>(_self.chainCompany!, (value) { + return _then(_self.copyWith(chainCompany: value)); + }); +} +} + + +/// Adds pattern-matching-related methods to [AllPoultry]. +extension AllPoultryPatterns on AllPoultry { +/// 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( _AllPoultry value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _AllPoultry() 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( _AllPoultry value) $default,){ +final _that = this; +switch (_that) { +case _AllPoultry(): +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( _AllPoultry value)? $default,){ +final _that = this; +switch (_that) { +case _AllPoultry() 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( User? user, String? key, String? unitName, Address? address, int? lastHatchingRemainQuantity, bool? provinceAllowSellFree, ChainCompany? chainCompany)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _AllPoultry() when $default != null: +return $default(_that.user,_that.key,_that.unitName,_that.address,_that.lastHatchingRemainQuantity,_that.provinceAllowSellFree,_that.chainCompany);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( User? user, String? key, String? unitName, Address? address, int? lastHatchingRemainQuantity, bool? provinceAllowSellFree, ChainCompany? chainCompany) $default,) {final _that = this; +switch (_that) { +case _AllPoultry(): +return $default(_that.user,_that.key,_that.unitName,_that.address,_that.lastHatchingRemainQuantity,_that.provinceAllowSellFree,_that.chainCompany);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( User? user, String? key, String? unitName, Address? address, int? lastHatchingRemainQuantity, bool? provinceAllowSellFree, ChainCompany? chainCompany)? $default,) {final _that = this; +switch (_that) { +case _AllPoultry() when $default != null: +return $default(_that.user,_that.key,_that.unitName,_that.address,_that.lastHatchingRemainQuantity,_that.provinceAllowSellFree,_that.chainCompany);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _AllPoultry implements AllPoultry { + const _AllPoultry({this.user, this.key, this.unitName, this.address, this.lastHatchingRemainQuantity, this.provinceAllowSellFree, this.chainCompany}); + factory _AllPoultry.fromJson(Map json) => _$AllPoultryFromJson(json); + +@override final User? user; +@override final String? key; +@override final String? unitName; +@override final Address? address; +@override final int? lastHatchingRemainQuantity; +@override final bool? provinceAllowSellFree; +@override final ChainCompany? chainCompany; + +/// Create a copy of AllPoultry +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$AllPoultryCopyWith<_AllPoultry> get copyWith => __$AllPoultryCopyWithImpl<_AllPoultry>(this, _$identity); + +@override +Map toJson() { + return _$AllPoultryToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _AllPoultry&&(identical(other.user, user) || other.user == user)&&(identical(other.key, key) || other.key == key)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.address, address) || other.address == address)&&(identical(other.lastHatchingRemainQuantity, lastHatchingRemainQuantity) || other.lastHatchingRemainQuantity == lastHatchingRemainQuantity)&&(identical(other.provinceAllowSellFree, provinceAllowSellFree) || other.provinceAllowSellFree == provinceAllowSellFree)&&(identical(other.chainCompany, chainCompany) || other.chainCompany == chainCompany)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,user,key,unitName,address,lastHatchingRemainQuantity,provinceAllowSellFree,chainCompany); + +@override +String toString() { + return 'AllPoultry(user: $user, key: $key, unitName: $unitName, address: $address, lastHatchingRemainQuantity: $lastHatchingRemainQuantity, provinceAllowSellFree: $provinceAllowSellFree, chainCompany: $chainCompany)'; +} + + +} + +/// @nodoc +abstract mixin class _$AllPoultryCopyWith<$Res> implements $AllPoultryCopyWith<$Res> { + factory _$AllPoultryCopyWith(_AllPoultry value, $Res Function(_AllPoultry) _then) = __$AllPoultryCopyWithImpl; +@override @useResult +$Res call({ + User? user, String? key, String? unitName, Address? address, int? lastHatchingRemainQuantity, bool? provinceAllowSellFree, ChainCompany? chainCompany +}); + + +@override $UserCopyWith<$Res>? get user;@override $AddressCopyWith<$Res>? get address;@override $ChainCompanyCopyWith<$Res>? get chainCompany; + +} +/// @nodoc +class __$AllPoultryCopyWithImpl<$Res> + implements _$AllPoultryCopyWith<$Res> { + __$AllPoultryCopyWithImpl(this._self, this._then); + + final _AllPoultry _self; + final $Res Function(_AllPoultry) _then; + +/// Create a copy of AllPoultry +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? user = freezed,Object? key = freezed,Object? unitName = freezed,Object? address = freezed,Object? lastHatchingRemainQuantity = freezed,Object? provinceAllowSellFree = freezed,Object? chainCompany = freezed,}) { + return _then(_AllPoultry( +user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable +as User?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,unitName: freezed == unitName ? _self.unitName : unitName // ignore: cast_nullable_to_non_nullable +as String?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable +as Address?,lastHatchingRemainQuantity: freezed == lastHatchingRemainQuantity ? _self.lastHatchingRemainQuantity : lastHatchingRemainQuantity // ignore: cast_nullable_to_non_nullable +as int?,provinceAllowSellFree: freezed == provinceAllowSellFree ? _self.provinceAllowSellFree : provinceAllowSellFree // ignore: cast_nullable_to_non_nullable +as bool?,chainCompany: freezed == chainCompany ? _self.chainCompany : chainCompany // ignore: cast_nullable_to_non_nullable +as ChainCompany?, + )); +} + +/// Create a copy of AllPoultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$UserCopyWith<$Res>? get user { + if (_self.user == null) { + return null; + } + + return $UserCopyWith<$Res>(_self.user!, (value) { + return _then(_self.copyWith(user: value)); + }); +}/// Create a copy of AllPoultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$AddressCopyWith<$Res>? get address { + if (_self.address == null) { + return null; + } + + return $AddressCopyWith<$Res>(_self.address!, (value) { + return _then(_self.copyWith(address: value)); + }); +}/// Create a copy of AllPoultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ChainCompanyCopyWith<$Res>? get chainCompany { + if (_self.chainCompany == null) { + return null; + } + + return $ChainCompanyCopyWith<$Res>(_self.chainCompany!, (value) { + return _then(_self.copyWith(chainCompany: value)); + }); +} +} + + +/// @nodoc +mixin _$User { + + String? get fullname; String? get mobile; +/// Create a copy of User +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$UserCopyWith get copyWith => _$UserCopyWithImpl(this as User, _$identity); + + /// Serializes this User to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is User&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.mobile, mobile) || other.mobile == mobile)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,fullname,mobile); + +@override +String toString() { + return 'User(fullname: $fullname, mobile: $mobile)'; +} + + +} + +/// @nodoc +abstract mixin class $UserCopyWith<$Res> { + factory $UserCopyWith(User value, $Res Function(User) _then) = _$UserCopyWithImpl; +@useResult +$Res call({ + String? fullname, String? mobile +}); + + + + +} +/// @nodoc +class _$UserCopyWithImpl<$Res> + implements $UserCopyWith<$Res> { + _$UserCopyWithImpl(this._self, this._then); + + final User _self; + final $Res Function(User) _then; + +/// Create a copy of User +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? fullname = freezed,Object? mobile = freezed,}) { + return _then(_self.copyWith( +fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable +as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [User]. +extension UserPatterns on User { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _User value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _User() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _User value) $default,){ +final _that = this; +switch (_that) { +case _User(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _User value)? $default,){ +final _that = this; +switch (_that) { +case _User() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? fullname, String? mobile)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _User() when $default != null: +return $default(_that.fullname,_that.mobile);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? fullname, String? mobile) $default,) {final _that = this; +switch (_that) { +case _User(): +return $default(_that.fullname,_that.mobile);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? fullname, String? mobile)? $default,) {final _that = this; +switch (_that) { +case _User() when $default != null: +return $default(_that.fullname,_that.mobile);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _User implements User { + const _User({this.fullname, this.mobile}); + factory _User.fromJson(Map json) => _$UserFromJson(json); + +@override final String? fullname; +@override final String? mobile; + +/// Create a copy of User +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$UserCopyWith<_User> get copyWith => __$UserCopyWithImpl<_User>(this, _$identity); + +@override +Map toJson() { + return _$UserToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _User&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.mobile, mobile) || other.mobile == mobile)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,fullname,mobile); + +@override +String toString() { + return 'User(fullname: $fullname, mobile: $mobile)'; +} + + +} + +/// @nodoc +abstract mixin class _$UserCopyWith<$Res> implements $UserCopyWith<$Res> { + factory _$UserCopyWith(_User value, $Res Function(_User) _then) = __$UserCopyWithImpl; +@override @useResult +$Res call({ + String? fullname, String? mobile +}); + + + + +} +/// @nodoc +class __$UserCopyWithImpl<$Res> + implements _$UserCopyWith<$Res> { + __$UserCopyWithImpl(this._self, this._then); + + final _User _self; + final $Res Function(_User) _then; + +/// Create a copy of User +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? fullname = freezed,Object? mobile = freezed,}) { + return _then(_User( +fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable +as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$Address { + + City? get city; +/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$AddressCopyWith
get copyWith => _$AddressCopyWithImpl
(this as Address, _$identity); + + /// Serializes this Address to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is Address&&(identical(other.city, city) || other.city == city)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,city); + +@override +String toString() { + return 'Address(city: $city)'; +} + + +} + +/// @nodoc +abstract mixin class $AddressCopyWith<$Res> { + factory $AddressCopyWith(Address value, $Res Function(Address) _then) = _$AddressCopyWithImpl; +@useResult +$Res call({ + City? city +}); + + +$CityCopyWith<$Res>? get city; + +} +/// @nodoc +class _$AddressCopyWithImpl<$Res> + implements $AddressCopyWith<$Res> { + _$AddressCopyWithImpl(this._self, this._then); + + final Address _self; + final $Res Function(Address) _then; + +/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? city = freezed,}) { + return _then(_self.copyWith( +city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as City?, + )); +} +/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$CityCopyWith<$Res>? get city { + if (_self.city == null) { + return null; + } + + return $CityCopyWith<$Res>(_self.city!, (value) { + return _then(_self.copyWith(city: value)); + }); +} +} + + +/// Adds pattern-matching-related methods to [Address]. +extension AddressPatterns on Address { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _Address value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _Address() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _Address value) $default,){ +final _that = this; +switch (_that) { +case _Address(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _Address value)? $default,){ +final _that = this; +switch (_that) { +case _Address() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( City? city)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _Address() when $default != null: +return $default(_that.city);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( City? city) $default,) {final _that = this; +switch (_that) { +case _Address(): +return $default(_that.city);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( City? city)? $default,) {final _that = this; +switch (_that) { +case _Address() when $default != null: +return $default(_that.city);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _Address implements Address { + const _Address({this.city}); + factory _Address.fromJson(Map json) => _$AddressFromJson(json); + +@override final City? city; + +/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$AddressCopyWith<_Address> get copyWith => __$AddressCopyWithImpl<_Address>(this, _$identity); + +@override +Map toJson() { + return _$AddressToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Address&&(identical(other.city, city) || other.city == city)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,city); + +@override +String toString() { + return 'Address(city: $city)'; +} + + +} + +/// @nodoc +abstract mixin class _$AddressCopyWith<$Res> implements $AddressCopyWith<$Res> { + factory _$AddressCopyWith(_Address value, $Res Function(_Address) _then) = __$AddressCopyWithImpl; +@override @useResult +$Res call({ + City? city +}); + + +@override $CityCopyWith<$Res>? get city; + +} +/// @nodoc +class __$AddressCopyWithImpl<$Res> + implements _$AddressCopyWith<$Res> { + __$AddressCopyWithImpl(this._self, this._then); + + final _Address _self; + final $Res Function(_Address) _then; + +/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? city = freezed,}) { + return _then(_Address( +city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as City?, + )); +} + +/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$CityCopyWith<$Res>? get city { + if (_self.city == null) { + return null; + } + + return $CityCopyWith<$Res>(_self.city!, (value) { + return _then(_self.copyWith(city: value)); + }); +} +} + + +/// @nodoc +mixin _$City { + + String? get name; +/// Create a copy of City +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$CityCopyWith get copyWith => _$CityCopyWithImpl(this as City, _$identity); + + /// Serializes this City to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is City&&(identical(other.name, name) || other.name == name)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,name); + +@override +String toString() { + return 'City(name: $name)'; +} + + +} + +/// @nodoc +abstract mixin class $CityCopyWith<$Res> { + factory $CityCopyWith(City value, $Res Function(City) _then) = _$CityCopyWithImpl; +@useResult +$Res call({ + String? name +}); + + + + +} +/// @nodoc +class _$CityCopyWithImpl<$Res> + implements $CityCopyWith<$Res> { + _$CityCopyWithImpl(this._self, this._then); + + final City _self; + final $Res Function(City) _then; + +/// Create a copy of City +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? name = freezed,}) { + return _then(_self.copyWith( +name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [City]. +extension CityPatterns on City { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _City value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _City() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _City value) $default,){ +final _that = this; +switch (_that) { +case _City(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _City value)? $default,){ +final _that = this; +switch (_that) { +case _City() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? name)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _City() when $default != null: +return $default(_that.name);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? name) $default,) {final _that = this; +switch (_that) { +case _City(): +return $default(_that.name);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? name)? $default,) {final _that = this; +switch (_that) { +case _City() when $default != null: +return $default(_that.name);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _City implements City { + const _City({this.name}); + factory _City.fromJson(Map json) => _$CityFromJson(json); + +@override final String? name; + +/// Create a copy of City +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$CityCopyWith<_City> get copyWith => __$CityCopyWithImpl<_City>(this, _$identity); + +@override +Map toJson() { + return _$CityToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _City&&(identical(other.name, name) || other.name == name)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,name); + +@override +String toString() { + return 'City(name: $name)'; +} + + +} + +/// @nodoc +abstract mixin class _$CityCopyWith<$Res> implements $CityCopyWith<$Res> { + factory _$CityCopyWith(_City value, $Res Function(_City) _then) = __$CityCopyWithImpl; +@override @useResult +$Res call({ + String? name +}); + + + + +} +/// @nodoc +class __$CityCopyWithImpl<$Res> + implements _$CityCopyWith<$Res> { + __$CityCopyWithImpl(this._self, this._then); + + final _City _self; + final $Res Function(_City) _then; + +/// Create a copy of City +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? name = freezed,}) { + return _then(_City( +name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$ChainCompany { + + bool? get chainCompany; String? get hatchingKey; +/// Create a copy of ChainCompany +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ChainCompanyCopyWith get copyWith => _$ChainCompanyCopyWithImpl(this as ChainCompany, _$identity); + + /// Serializes this ChainCompany to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is ChainCompany&&(identical(other.chainCompany, chainCompany) || other.chainCompany == chainCompany)&&(identical(other.hatchingKey, hatchingKey) || other.hatchingKey == hatchingKey)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,chainCompany,hatchingKey); + +@override +String toString() { + return 'ChainCompany(chainCompany: $chainCompany, hatchingKey: $hatchingKey)'; +} + + +} + +/// @nodoc +abstract mixin class $ChainCompanyCopyWith<$Res> { + factory $ChainCompanyCopyWith(ChainCompany value, $Res Function(ChainCompany) _then) = _$ChainCompanyCopyWithImpl; +@useResult +$Res call({ + bool? chainCompany, String? hatchingKey +}); + + + + +} +/// @nodoc +class _$ChainCompanyCopyWithImpl<$Res> + implements $ChainCompanyCopyWith<$Res> { + _$ChainCompanyCopyWithImpl(this._self, this._then); + + final ChainCompany _self; + final $Res Function(ChainCompany) _then; + +/// Create a copy of ChainCompany +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? chainCompany = freezed,Object? hatchingKey = freezed,}) { + return _then(_self.copyWith( +chainCompany: freezed == chainCompany ? _self.chainCompany : chainCompany // ignore: cast_nullable_to_non_nullable +as bool?,hatchingKey: freezed == hatchingKey ? _self.hatchingKey : hatchingKey // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [ChainCompany]. +extension ChainCompanyPatterns on ChainCompany { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _ChainCompany value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _ChainCompany() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _ChainCompany value) $default,){ +final _that = this; +switch (_that) { +case _ChainCompany(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _ChainCompany value)? $default,){ +final _that = this; +switch (_that) { +case _ChainCompany() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( bool? chainCompany, String? hatchingKey)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _ChainCompany() when $default != null: +return $default(_that.chainCompany,_that.hatchingKey);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? chainCompany, String? hatchingKey) $default,) {final _that = this; +switch (_that) { +case _ChainCompany(): +return $default(_that.chainCompany,_that.hatchingKey);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? chainCompany, String? hatchingKey)? $default,) {final _that = this; +switch (_that) { +case _ChainCompany() when $default != null: +return $default(_that.chainCompany,_that.hatchingKey);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _ChainCompany implements ChainCompany { + const _ChainCompany({this.chainCompany, this.hatchingKey}); + factory _ChainCompany.fromJson(Map json) => _$ChainCompanyFromJson(json); + +@override final bool? chainCompany; +@override final String? hatchingKey; + +/// Create a copy of ChainCompany +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ChainCompanyCopyWith<_ChainCompany> get copyWith => __$ChainCompanyCopyWithImpl<_ChainCompany>(this, _$identity); + +@override +Map toJson() { + return _$ChainCompanyToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _ChainCompany&&(identical(other.chainCompany, chainCompany) || other.chainCompany == chainCompany)&&(identical(other.hatchingKey, hatchingKey) || other.hatchingKey == hatchingKey)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,chainCompany,hatchingKey); + +@override +String toString() { + return 'ChainCompany(chainCompany: $chainCompany, hatchingKey: $hatchingKey)'; +} + + +} + +/// @nodoc +abstract mixin class _$ChainCompanyCopyWith<$Res> implements $ChainCompanyCopyWith<$Res> { + factory _$ChainCompanyCopyWith(_ChainCompany value, $Res Function(_ChainCompany) _then) = __$ChainCompanyCopyWithImpl; +@override @useResult +$Res call({ + bool? chainCompany, String? hatchingKey +}); + + + + +} +/// @nodoc +class __$ChainCompanyCopyWithImpl<$Res> + implements _$ChainCompanyCopyWith<$Res> { + __$ChainCompanyCopyWithImpl(this._self, this._then); + + final _ChainCompany _self; + final $Res Function(_ChainCompany) _then; + +/// Create a copy of ChainCompany +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? chainCompany = freezed,Object? hatchingKey = freezed,}) { + return _then(_ChainCompany( +chainCompany: freezed == chainCompany ? _self.chainCompany : chainCompany // ignore: cast_nullable_to_non_nullable +as bool?,hatchingKey: freezed == hatchingKey ? _self.hatchingKey : hatchingKey // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + +// dart format on diff --git a/packages/chicken/lib/data/models/response/all_poultry/all_poultry.g.dart b/packages/chicken/lib/data/models/response/all_poultry/all_poultry.g.dart new file mode 100644 index 0000000..3096300 --- /dev/null +++ b/packages/chicken/lib/data/models/response/all_poultry/all_poultry.g.dart @@ -0,0 +1,74 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'all_poultry.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +_AllPoultry _$AllPoultryFromJson(Map json) => _AllPoultry( + user: json['user'] == null + ? null + : User.fromJson(json['user'] as Map), + key: json['key'] as String?, + unitName: json['unit_name'] as String?, + address: json['address'] == null + ? null + : Address.fromJson(json['address'] as Map), + lastHatchingRemainQuantity: (json['last_hatching_remain_quantity'] as num?) + ?.toInt(), + provinceAllowSellFree: json['province_allow_sell_free'] as bool?, + chainCompany: json['chain_company'] == null + ? null + : ChainCompany.fromJson(json['chain_company'] as Map), +); + +Map _$AllPoultryToJson(_AllPoultry instance) => + { + 'user': instance.user, + 'key': instance.key, + 'unit_name': instance.unitName, + 'address': instance.address, + 'last_hatching_remain_quantity': instance.lastHatchingRemainQuantity, + 'province_allow_sell_free': instance.provinceAllowSellFree, + 'chain_company': instance.chainCompany, + }; + +_User _$UserFromJson(Map json) => _User( + fullname: json['fullname'] as String?, + mobile: json['mobile'] as String?, +); + +Map _$UserToJson(_User instance) => { + 'fullname': instance.fullname, + 'mobile': instance.mobile, +}; + +_Address _$AddressFromJson(Map json) => _Address( + city: json['city'] == null + ? null + : City.fromJson(json['city'] as Map), +); + +Map _$AddressToJson(_Address instance) => { + 'city': instance.city, +}; + +_City _$CityFromJson(Map json) => + _City(name: json['name'] as String?); + +Map _$CityToJson(_City instance) => { + 'name': instance.name, +}; + +_ChainCompany _$ChainCompanyFromJson(Map json) => + _ChainCompany( + chainCompany: json['chain_company'] as bool?, + hatchingKey: json['hatching_key'] as String?, + ); + +Map _$ChainCompanyToJson(_ChainCompany instance) => + { + 'chain_company': instance.chainCompany, + 'hatching_key': instance.hatchingKey, + }; diff --git a/packages/chicken/lib/data/models/response/approved_price/approved_price.dart b/packages/chicken/lib/data/models/response/approved_price/approved_price.dart new file mode 100644 index 0000000..d41fcaa --- /dev/null +++ b/packages/chicken/lib/data/models/response/approved_price/approved_price.dart @@ -0,0 +1,18 @@ +import 'package:rasadyar_core/core.dart'; + +part 'approved_price.freezed.dart'; +part 'approved_price.g.dart'; + +@freezed +abstract class ApprovedPrice with _$ApprovedPrice { + const factory ApprovedPrice({ + bool? approved, + double? lowestPrice, + double? highestPrice, + double? lowestWeight, + double? highestWeight, + }) = _ApprovedPrice; + + factory ApprovedPrice.fromJson(Map json) => + _$ApprovedPriceFromJson(json); +} diff --git a/packages/chicken/lib/data/models/response/approved_price/approved_price.freezed.dart b/packages/chicken/lib/data/models/response/approved_price/approved_price.freezed.dart new file mode 100644 index 0000000..1a610d1 --- /dev/null +++ b/packages/chicken/lib/data/models/response/approved_price/approved_price.freezed.dart @@ -0,0 +1,289 @@ +// 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 'approved_price.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; + +/// @nodoc +mixin _$ApprovedPrice { + + bool? get approved; double? get lowestPrice; double? get highestPrice; double? get lowestWeight; double? get highestWeight; +/// Create a copy of ApprovedPrice +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ApprovedPriceCopyWith get copyWith => _$ApprovedPriceCopyWithImpl(this as ApprovedPrice, _$identity); + + /// Serializes this ApprovedPrice to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is ApprovedPrice&&(identical(other.approved, approved) || other.approved == approved)&&(identical(other.lowestPrice, lowestPrice) || other.lowestPrice == lowestPrice)&&(identical(other.highestPrice, highestPrice) || other.highestPrice == highestPrice)&&(identical(other.lowestWeight, lowestWeight) || other.lowestWeight == lowestWeight)&&(identical(other.highestWeight, highestWeight) || other.highestWeight == highestWeight)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,approved,lowestPrice,highestPrice,lowestWeight,highestWeight); + +@override +String toString() { + return 'ApprovedPrice(approved: $approved, lowestPrice: $lowestPrice, highestPrice: $highestPrice, lowestWeight: $lowestWeight, highestWeight: $highestWeight)'; +} + + +} + +/// @nodoc +abstract mixin class $ApprovedPriceCopyWith<$Res> { + factory $ApprovedPriceCopyWith(ApprovedPrice value, $Res Function(ApprovedPrice) _then) = _$ApprovedPriceCopyWithImpl; +@useResult +$Res call({ + bool? approved, double? lowestPrice, double? highestPrice, double? lowestWeight, double? highestWeight +}); + + + + +} +/// @nodoc +class _$ApprovedPriceCopyWithImpl<$Res> + implements $ApprovedPriceCopyWith<$Res> { + _$ApprovedPriceCopyWithImpl(this._self, this._then); + + final ApprovedPrice _self; + final $Res Function(ApprovedPrice) _then; + +/// Create a copy of ApprovedPrice +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? approved = freezed,Object? lowestPrice = freezed,Object? highestPrice = freezed,Object? lowestWeight = freezed,Object? highestWeight = freezed,}) { + return _then(_self.copyWith( +approved: freezed == approved ? _self.approved : approved // ignore: cast_nullable_to_non_nullable +as bool?,lowestPrice: freezed == lowestPrice ? _self.lowestPrice : lowestPrice // ignore: cast_nullable_to_non_nullable +as double?,highestPrice: freezed == highestPrice ? _self.highestPrice : highestPrice // ignore: cast_nullable_to_non_nullable +as double?,lowestWeight: freezed == lowestWeight ? _self.lowestWeight : lowestWeight // ignore: cast_nullable_to_non_nullable +as double?,highestWeight: freezed == highestWeight ? _self.highestWeight : highestWeight // ignore: cast_nullable_to_non_nullable +as double?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [ApprovedPrice]. +extension ApprovedPricePatterns on ApprovedPrice { +/// 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( _ApprovedPrice value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _ApprovedPrice() 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( _ApprovedPrice value) $default,){ +final _that = this; +switch (_that) { +case _ApprovedPrice(): +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( _ApprovedPrice value)? $default,){ +final _that = this; +switch (_that) { +case _ApprovedPrice() 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? approved, double? lowestPrice, double? highestPrice, double? lowestWeight, double? highestWeight)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _ApprovedPrice() when $default != null: +return $default(_that.approved,_that.lowestPrice,_that.highestPrice,_that.lowestWeight,_that.highestWeight);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? approved, double? lowestPrice, double? highestPrice, double? lowestWeight, double? highestWeight) $default,) {final _that = this; +switch (_that) { +case _ApprovedPrice(): +return $default(_that.approved,_that.lowestPrice,_that.highestPrice,_that.lowestWeight,_that.highestWeight);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? approved, double? lowestPrice, double? highestPrice, double? lowestWeight, double? highestWeight)? $default,) {final _that = this; +switch (_that) { +case _ApprovedPrice() when $default != null: +return $default(_that.approved,_that.lowestPrice,_that.highestPrice,_that.lowestWeight,_that.highestWeight);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _ApprovedPrice implements ApprovedPrice { + const _ApprovedPrice({this.approved, this.lowestPrice, this.highestPrice, this.lowestWeight, this.highestWeight}); + factory _ApprovedPrice.fromJson(Map json) => _$ApprovedPriceFromJson(json); + +@override final bool? approved; +@override final double? lowestPrice; +@override final double? highestPrice; +@override final double? lowestWeight; +@override final double? highestWeight; + +/// Create a copy of ApprovedPrice +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ApprovedPriceCopyWith<_ApprovedPrice> get copyWith => __$ApprovedPriceCopyWithImpl<_ApprovedPrice>(this, _$identity); + +@override +Map toJson() { + return _$ApprovedPriceToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _ApprovedPrice&&(identical(other.approved, approved) || other.approved == approved)&&(identical(other.lowestPrice, lowestPrice) || other.lowestPrice == lowestPrice)&&(identical(other.highestPrice, highestPrice) || other.highestPrice == highestPrice)&&(identical(other.lowestWeight, lowestWeight) || other.lowestWeight == lowestWeight)&&(identical(other.highestWeight, highestWeight) || other.highestWeight == highestWeight)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,approved,lowestPrice,highestPrice,lowestWeight,highestWeight); + +@override +String toString() { + return 'ApprovedPrice(approved: $approved, lowestPrice: $lowestPrice, highestPrice: $highestPrice, lowestWeight: $lowestWeight, highestWeight: $highestWeight)'; +} + + +} + +/// @nodoc +abstract mixin class _$ApprovedPriceCopyWith<$Res> implements $ApprovedPriceCopyWith<$Res> { + factory _$ApprovedPriceCopyWith(_ApprovedPrice value, $Res Function(_ApprovedPrice) _then) = __$ApprovedPriceCopyWithImpl; +@override @useResult +$Res call({ + bool? approved, double? lowestPrice, double? highestPrice, double? lowestWeight, double? highestWeight +}); + + + + +} +/// @nodoc +class __$ApprovedPriceCopyWithImpl<$Res> + implements _$ApprovedPriceCopyWith<$Res> { + __$ApprovedPriceCopyWithImpl(this._self, this._then); + + final _ApprovedPrice _self; + final $Res Function(_ApprovedPrice) _then; + +/// Create a copy of ApprovedPrice +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? approved = freezed,Object? lowestPrice = freezed,Object? highestPrice = freezed,Object? lowestWeight = freezed,Object? highestWeight = freezed,}) { + return _then(_ApprovedPrice( +approved: freezed == approved ? _self.approved : approved // ignore: cast_nullable_to_non_nullable +as bool?,lowestPrice: freezed == lowestPrice ? _self.lowestPrice : lowestPrice // ignore: cast_nullable_to_non_nullable +as double?,highestPrice: freezed == highestPrice ? _self.highestPrice : highestPrice // ignore: cast_nullable_to_non_nullable +as double?,lowestWeight: freezed == lowestWeight ? _self.lowestWeight : lowestWeight // ignore: cast_nullable_to_non_nullable +as double?,highestWeight: freezed == highestWeight ? _self.highestWeight : highestWeight // ignore: cast_nullable_to_non_nullable +as double?, + )); +} + + +} + +// dart format on diff --git a/packages/chicken/lib/data/models/response/approved_price/approved_price.g.dart b/packages/chicken/lib/data/models/response/approved_price/approved_price.g.dart new file mode 100644 index 0000000..9421a2b --- /dev/null +++ b/packages/chicken/lib/data/models/response/approved_price/approved_price.g.dart @@ -0,0 +1,25 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'approved_price.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +_ApprovedPrice _$ApprovedPriceFromJson(Map json) => + _ApprovedPrice( + approved: json['approved'] as bool?, + lowestPrice: (json['lowest_price'] as num?)?.toDouble(), + highestPrice: (json['highest_price'] as num?)?.toDouble(), + lowestWeight: (json['lowest_weight'] as num?)?.toDouble(), + highestWeight: (json['highest_weight'] as num?)?.toDouble(), + ); + +Map _$ApprovedPriceToJson(_ApprovedPrice instance) => + { + 'approved': instance.approved, + 'lowest_price': instance.lowestPrice, + 'highest_price': instance.highestPrice, + 'lowest_weight': instance.lowestWeight, + 'highest_weight': instance.highestWeight, + }; diff --git a/packages/chicken/lib/data/models/response/kill_house_poultry/kill_house_poultry.dart b/packages/chicken/lib/data/models/response/kill_house_poultry/kill_house_poultry.dart new file mode 100644 index 0000000..c360fc7 --- /dev/null +++ b/packages/chicken/lib/data/models/response/kill_house_poultry/kill_house_poultry.dart @@ -0,0 +1,20 @@ +import 'package:freezed_annotation/freezed_annotation.dart'; + +part 'kill_house_poultry.freezed.dart'; +part 'kill_house_poultry.g.dart'; + +@freezed +abstract class KillHousePoultry with _$KillHousePoultry { + const factory KillHousePoultry({ + String? name, + bool? killer, + String? fullname, + int? quantitySum, + int? firstQuantity, + int? poultryQuantitySum, + String? killReqKey, + }) = _KillHousePoultry; + + factory KillHousePoultry.fromJson(Map json) => + _$KillHousePoultryFromJson(json); +} diff --git a/packages/chicken/lib/data/models/response/kill_house_poultry/kill_house_poultry.freezed.dart b/packages/chicken/lib/data/models/response/kill_house_poultry/kill_house_poultry.freezed.dart new file mode 100644 index 0000000..777418b --- /dev/null +++ b/packages/chicken/lib/data/models/response/kill_house_poultry/kill_house_poultry.freezed.dart @@ -0,0 +1,295 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// coverage:ignore-file +// ignore_for_file: type=lint +// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark + +part of 'kill_house_poultry.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; + +/// @nodoc +mixin _$KillHousePoultry { + + String? get name; bool? get killer; String? get fullname; int? get quantitySum; int? get firstQuantity; int? get poultryQuantitySum; String? get killReqKey; +/// Create a copy of KillHousePoultry +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$KillHousePoultryCopyWith get copyWith => _$KillHousePoultryCopyWithImpl(this as KillHousePoultry, _$identity); + + /// Serializes this KillHousePoultry to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is KillHousePoultry&&(identical(other.name, name) || other.name == name)&&(identical(other.killer, killer) || other.killer == killer)&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.quantitySum, quantitySum) || other.quantitySum == quantitySum)&&(identical(other.firstQuantity, firstQuantity) || other.firstQuantity == firstQuantity)&&(identical(other.poultryQuantitySum, poultryQuantitySum) || other.poultryQuantitySum == poultryQuantitySum)&&(identical(other.killReqKey, killReqKey) || other.killReqKey == killReqKey)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,name,killer,fullname,quantitySum,firstQuantity,poultryQuantitySum,killReqKey); + +@override +String toString() { + return 'KillHousePoultry(name: $name, killer: $killer, fullname: $fullname, quantitySum: $quantitySum, firstQuantity: $firstQuantity, poultryQuantitySum: $poultryQuantitySum, killReqKey: $killReqKey)'; +} + + +} + +/// @nodoc +abstract mixin class $KillHousePoultryCopyWith<$Res> { + factory $KillHousePoultryCopyWith(KillHousePoultry value, $Res Function(KillHousePoultry) _then) = _$KillHousePoultryCopyWithImpl; +@useResult +$Res call({ + String? name, bool? killer, String? fullname, int? quantitySum, int? firstQuantity, int? poultryQuantitySum, String? killReqKey +}); + + + + +} +/// @nodoc +class _$KillHousePoultryCopyWithImpl<$Res> + implements $KillHousePoultryCopyWith<$Res> { + _$KillHousePoultryCopyWithImpl(this._self, this._then); + + final KillHousePoultry _self; + final $Res Function(KillHousePoultry) _then; + +/// Create a copy of KillHousePoultry +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? name = freezed,Object? killer = freezed,Object? fullname = freezed,Object? quantitySum = freezed,Object? firstQuantity = freezed,Object? poultryQuantitySum = freezed,Object? killReqKey = freezed,}) { + return _then(_self.copyWith( +name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?,killer: freezed == killer ? _self.killer : killer // ignore: cast_nullable_to_non_nullable +as bool?,fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable +as String?,quantitySum: freezed == quantitySum ? _self.quantitySum : quantitySum // ignore: cast_nullable_to_non_nullable +as int?,firstQuantity: freezed == firstQuantity ? _self.firstQuantity : firstQuantity // ignore: cast_nullable_to_non_nullable +as int?,poultryQuantitySum: freezed == poultryQuantitySum ? _self.poultryQuantitySum : poultryQuantitySum // ignore: cast_nullable_to_non_nullable +as int?,killReqKey: freezed == killReqKey ? _self.killReqKey : killReqKey // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [KillHousePoultry]. +extension KillHousePoultryPatterns on KillHousePoultry { +/// 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( _KillHousePoultry value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _KillHousePoultry() 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( _KillHousePoultry value) $default,){ +final _that = this; +switch (_that) { +case _KillHousePoultry(): +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( _KillHousePoultry value)? $default,){ +final _that = this; +switch (_that) { +case _KillHousePoultry() 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? name, bool? killer, String? fullname, int? quantitySum, int? firstQuantity, int? poultryQuantitySum, String? killReqKey)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _KillHousePoultry() when $default != null: +return $default(_that.name,_that.killer,_that.fullname,_that.quantitySum,_that.firstQuantity,_that.poultryQuantitySum,_that.killReqKey);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? name, bool? killer, String? fullname, int? quantitySum, int? firstQuantity, int? poultryQuantitySum, String? killReqKey) $default,) {final _that = this; +switch (_that) { +case _KillHousePoultry(): +return $default(_that.name,_that.killer,_that.fullname,_that.quantitySum,_that.firstQuantity,_that.poultryQuantitySum,_that.killReqKey);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? name, bool? killer, String? fullname, int? quantitySum, int? firstQuantity, int? poultryQuantitySum, String? killReqKey)? $default,) {final _that = this; +switch (_that) { +case _KillHousePoultry() when $default != null: +return $default(_that.name,_that.killer,_that.fullname,_that.quantitySum,_that.firstQuantity,_that.poultryQuantitySum,_that.killReqKey);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _KillHousePoultry implements KillHousePoultry { + const _KillHousePoultry({this.name, this.killer, this.fullname, this.quantitySum, this.firstQuantity, this.poultryQuantitySum, this.killReqKey}); + factory _KillHousePoultry.fromJson(Map json) => _$KillHousePoultryFromJson(json); + +@override final String? name; +@override final bool? killer; +@override final String? fullname; +@override final int? quantitySum; +@override final int? firstQuantity; +@override final int? poultryQuantitySum; +@override final String? killReqKey; + +/// Create a copy of KillHousePoultry +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$KillHousePoultryCopyWith<_KillHousePoultry> get copyWith => __$KillHousePoultryCopyWithImpl<_KillHousePoultry>(this, _$identity); + +@override +Map toJson() { + return _$KillHousePoultryToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _KillHousePoultry&&(identical(other.name, name) || other.name == name)&&(identical(other.killer, killer) || other.killer == killer)&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.quantitySum, quantitySum) || other.quantitySum == quantitySum)&&(identical(other.firstQuantity, firstQuantity) || other.firstQuantity == firstQuantity)&&(identical(other.poultryQuantitySum, poultryQuantitySum) || other.poultryQuantitySum == poultryQuantitySum)&&(identical(other.killReqKey, killReqKey) || other.killReqKey == killReqKey)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,name,killer,fullname,quantitySum,firstQuantity,poultryQuantitySum,killReqKey); + +@override +String toString() { + return 'KillHousePoultry(name: $name, killer: $killer, fullname: $fullname, quantitySum: $quantitySum, firstQuantity: $firstQuantity, poultryQuantitySum: $poultryQuantitySum, killReqKey: $killReqKey)'; +} + + +} + +/// @nodoc +abstract mixin class _$KillHousePoultryCopyWith<$Res> implements $KillHousePoultryCopyWith<$Res> { + factory _$KillHousePoultryCopyWith(_KillHousePoultry value, $Res Function(_KillHousePoultry) _then) = __$KillHousePoultryCopyWithImpl; +@override @useResult +$Res call({ + String? name, bool? killer, String? fullname, int? quantitySum, int? firstQuantity, int? poultryQuantitySum, String? killReqKey +}); + + + + +} +/// @nodoc +class __$KillHousePoultryCopyWithImpl<$Res> + implements _$KillHousePoultryCopyWith<$Res> { + __$KillHousePoultryCopyWithImpl(this._self, this._then); + + final _KillHousePoultry _self; + final $Res Function(_KillHousePoultry) _then; + +/// Create a copy of KillHousePoultry +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? name = freezed,Object? killer = freezed,Object? fullname = freezed,Object? quantitySum = freezed,Object? firstQuantity = freezed,Object? poultryQuantitySum = freezed,Object? killReqKey = freezed,}) { + return _then(_KillHousePoultry( +name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?,killer: freezed == killer ? _self.killer : killer // ignore: cast_nullable_to_non_nullable +as bool?,fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable +as String?,quantitySum: freezed == quantitySum ? _self.quantitySum : quantitySum // ignore: cast_nullable_to_non_nullable +as int?,firstQuantity: freezed == firstQuantity ? _self.firstQuantity : firstQuantity // ignore: cast_nullable_to_non_nullable +as int?,poultryQuantitySum: freezed == poultryQuantitySum ? _self.poultryQuantitySum : poultryQuantitySum // ignore: cast_nullable_to_non_nullable +as int?,killReqKey: freezed == killReqKey ? _self.killReqKey : killReqKey // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + +// dart format on diff --git a/packages/chicken/lib/data/models/response/kill_house_poultry/kill_house_poultry.g.dart b/packages/chicken/lib/data/models/response/kill_house_poultry/kill_house_poultry.g.dart new file mode 100644 index 0000000..9563da0 --- /dev/null +++ b/packages/chicken/lib/data/models/response/kill_house_poultry/kill_house_poultry.g.dart @@ -0,0 +1,29 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'kill_house_poultry.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +_KillHousePoultry _$KillHousePoultryFromJson(Map json) => + _KillHousePoultry( + name: json['name'] as String?, + killer: json['killer'] as bool?, + fullname: json['fullname'] as String?, + quantitySum: (json['quantity_sum'] as num?)?.toInt(), + firstQuantity: (json['first_quantity'] as num?)?.toInt(), + poultryQuantitySum: (json['poultry_quantity_sum'] as num?)?.toInt(), + killReqKey: json['kill_req_key'] as String?, + ); + +Map _$KillHousePoultryToJson(_KillHousePoultry instance) => + { + 'name': instance.name, + 'killer': instance.killer, + 'fullname': instance.fullname, + 'quantity_sum': instance.quantitySum, + 'first_quantity': instance.firstQuantity, + 'poultry_quantity_sum': instance.poultryQuantitySum, + 'kill_req_key': instance.killReqKey, + }; diff --git a/packages/chicken/lib/data/models/response/kill_request_poultry/kill_request_poultry.dart b/packages/chicken/lib/data/models/response/kill_request_poultry/kill_request_poultry.dart new file mode 100644 index 0000000..ddfba96 --- /dev/null +++ b/packages/chicken/lib/data/models/response/kill_request_poultry/kill_request_poultry.dart @@ -0,0 +1,257 @@ +import 'package:freezed_annotation/freezed_annotation.dart'; + +part 'kill_request_poultry.freezed.dart'; +part 'kill_request_poultry.g.dart'; + +@freezed +abstract class KillRequestPoultry with _$KillRequestPoultry{ + const factory KillRequestPoultry({ + UserProfile? userprofile, + Address? address, + PoultryOwner? poultryOwner, + PoultryTenant? poultryTenant, + List? hatching, + List? registerVetHalls, + Allow? allow, + ProvinceAllowChooseKillHouse? provinceAllowChooseKillHouse, + bool? provinceAllowSellFree, + VetFarm? vetFarm, + LastHatchingDifferentRequestQuantity? lastHatchingDiffrentRequestQuantity, + UserBankInfo? userBankInfo, + int? leftOverOwnHatching, + String? key, + bool? trash, + int? ownerIdForeignKey, + int? userIdForeignKey, + int? addressIdForeignKey, + bool? hasChainCompany, + int? userBankIdForeignKey, + String? cityOperator, + String? unitName, + String? gisCode, + int? operatingLicenceCapacity, + int? numberOfHalls, + bool? tenant, + bool? hasTenant, + String? personType, + String? economicCode, + String? systemCode, + String? epidemiologicalCode, + String? breedingUniqueId, + int? totalCapacity, + String? licenceNumber, + String? healthCertificateNumber, + int? numberOfRequests, + String? hatchingDate, + String? lastPartyDate, + int? numberOfIncubators, + int? herdAgeByDay, + int? herdAgeByWeek, + int? numberOfParty, + String? communicationType, + String? cooperative, + String? dateOfRegister, + String? unitStatus, + bool? active, + String? identityDocuments, + String? samasatUserCode, + int? baseOrder, + String? incubationDate, + int? walletAmount, + int? city, + int? cityNumber, + String? cityName, + int? provinceNumber, + String? provinceName, + int? walletIdForeignKey, + int? poultryIdKey, + double? lat, + double? long, + String? date, + int? killingAveAge, + int? activeLeftOver, + int? killingAveCount, + double? killingAveWeight, + double? killingLiveWeight, + double? killingCarcassesWeight, + double? killingLossWeightPercent, + double? realKillingAveWeight, + double? realKillingLiveWeight, + double? realKillingCarcassesWeight, + double? realKillingLossWeightPercent, + int? interestLicenseId, + bool? orderLimit, + int? owner, + int? wallet, + }) = _KillRequestPoultry; + + factory KillRequestPoultry.fromJson(Map json) => + _$KillRequestPoultryFromJson(json); +} + +@freezed +abstract class UserProfile with _$UserProfile { + const factory UserProfile({ + String? userKey, + int? baseOrder, + String? fullName, + String? mobile, + String? city, + String? province, + String? breedingUniqueId, + }) = _UserProfile; + + factory UserProfile.fromJson(Map json) => + _$UserProfileFromJson(json); +} + +@freezed +abstract class Address with _$Address { + const factory Address({ + Province? province, + City? city, + String? address, + String? postalCode, + }) = _Address; + + factory Address.fromJson(Map json) => + _$AddressFromJson(json); +} + +@freezed +abstract class Province with _$Province { + const factory Province({ + String? key, + String? name, + }) = _Province; + + factory Province.fromJson(Map json) => + _$ProvinceFromJson(json); +} + +@freezed +abstract class City with _$City { + const factory City({ + String? key, + String? name, + }) = _City; + + factory City.fromJson(Map json) => _$CityFromJson(json); +} + +@freezed +abstract class PoultryOwner with _$PoultryOwner { + const factory PoultryOwner({ + String? fullName, + String? mobile, + String? unitName, + int? numberOfHalls, + String? breedingUniqueId, + }) = _PoultryOwner; + + factory PoultryOwner.fromJson(Map json) => + _$PoultryOwnerFromJson(json); +} + +@freezed +abstract class PoultryTenant with _$PoultryTenant { + const factory PoultryTenant({ + String? key, + String? firstName, + String? lastName, + String? fullName, + String? mobile, + String? nationalId, + String? breedingUniqueId, + }) = _PoultryTenant; + + factory PoultryTenant.fromJson(Map json) => + _$PoultryTenantFromJson(json); +} + +@freezed +abstract class Hatching with _$Hatching { + const factory Hatching({ + String? poultryKey, + String? poultryHatchingKey, + String? poultry, + int? quantity, + int? losses, + int? leftOver, + double? outProvinceKilledQuantity, + double? exportKilledQuantity, + int? hall, + String? date, + int? period, + String? state, + int? age, + }) = _Hatching; + + factory Hatching.fromJson(Map json) => + _$HatchingFromJson(json); +} + +@freezed +abstract class Allow with _$Allow { + const factory Allow({ + bool? city, + bool? province, + }) = _Allow; + + factory Allow.fromJson(Map json) => _$AllowFromJson(json); +} + +@freezed +abstract class ProvinceAllowChooseKillHouse with _$ProvinceAllowChooseKillHouse { + const factory ProvinceAllowChooseKillHouse({ + bool? allowState, + bool? mandatory, + }) = _ProvinceAllowChooseKillHouse; + + factory ProvinceAllowChooseKillHouse.fromJson(Map json) => + _$ProvinceAllowChooseKillHouseFromJson(json); +} + +@freezed +abstract class VetFarm with _$VetFarm { + const factory VetFarm({ + String? fullName, + String? mobile, + String? city, + String? province, + }) = _VetFarm; + + factory VetFarm.fromJson(Map json) => + _$VetFarmFromJson(json); +} + +@freezed +abstract class LastHatchingDifferentRequestQuantity + with _$LastHatchingDifferentRequestQuantity { + const factory LastHatchingDifferentRequestQuantity({ + double? leftExportQuantity, + double? leftPoultryOutProvince, + int? lastHatchingRemainQuantity, + }) = _LastHatchingDifferentRequestQuantity; + + factory LastHatchingDifferentRequestQuantity.fromJson( + Map json) => + _$LastHatchingDifferentRequestQuantityFromJson(json); +} + +@freezed +abstract class UserBankInfo with _$UserBankInfo { + const factory UserBankInfo({ + String? key, + String? nameOfBankUser, + String? bankName, + String? card, + String? shaba, + String? account, + int? userBankIdKey, + String? provinceName, + }) = _UserBankInfo; + + factory UserBankInfo.fromJson(Map json) => + _$UserBankInfoFromJson(json); +} diff --git a/packages/chicken/lib/data/models/response/kill_request_poultry/kill_request_poultry.freezed.dart b/packages/chicken/lib/data/models/response/kill_request_poultry/kill_request_poultry.freezed.dart new file mode 100644 index 0000000..dc5877e --- /dev/null +++ b/packages/chicken/lib/data/models/response/kill_request_poultry/kill_request_poultry.freezed.dart @@ -0,0 +1,4082 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// coverage:ignore-file +// ignore_for_file: type=lint +// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark + +part of 'kill_request_poultry.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; + +/// @nodoc +mixin _$KillRequestPoultry { + + UserProfile? get userprofile; Address? get address; PoultryOwner? get poultryOwner; PoultryTenant? get poultryTenant; List? get hatching; List? get registerVetHalls; Allow? get allow; ProvinceAllowChooseKillHouse? get provinceAllowChooseKillHouse; bool? get provinceAllowSellFree; VetFarm? get vetFarm; LastHatchingDifferentRequestQuantity? get lastHatchingDiffrentRequestQuantity; UserBankInfo? get userBankInfo; int? get leftOverOwnHatching; String? get key; bool? get trash; int? get ownerIdForeignKey; int? get userIdForeignKey; int? get addressIdForeignKey; bool? get hasChainCompany; int? get userBankIdForeignKey; String? get cityOperator; String? get unitName; String? get gisCode; int? get operatingLicenceCapacity; int? get numberOfHalls; bool? get tenant; bool? get hasTenant; String? get personType; String? get economicCode; String? get systemCode; String? get epidemiologicalCode; String? get breedingUniqueId; int? get totalCapacity; String? get licenceNumber; String? get healthCertificateNumber; int? get numberOfRequests; String? get hatchingDate; String? get lastPartyDate; int? get numberOfIncubators; int? get herdAgeByDay; int? get herdAgeByWeek; int? get numberOfParty; String? get communicationType; String? get cooperative; String? get dateOfRegister; String? get unitStatus; bool? get active; String? get identityDocuments; String? get samasatUserCode; int? get baseOrder; String? get incubationDate; int? get walletAmount; int? get city; int? get cityNumber; String? get cityName; int? get provinceNumber; String? get provinceName; int? get walletIdForeignKey; int? get poultryIdKey; double? get lat; double? get long; String? get date; int? get killingAveAge; int? get activeLeftOver; int? get killingAveCount; double? get killingAveWeight; double? get killingLiveWeight; double? get killingCarcassesWeight; double? get killingLossWeightPercent; double? get realKillingAveWeight; double? get realKillingLiveWeight; double? get realKillingCarcassesWeight; double? get realKillingLossWeightPercent; int? get interestLicenseId; bool? get orderLimit; int? get owner; int? get wallet; +/// Create a copy of KillRequestPoultry +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$KillRequestPoultryCopyWith get copyWith => _$KillRequestPoultryCopyWithImpl(this as KillRequestPoultry, _$identity); + + /// Serializes this KillRequestPoultry to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is KillRequestPoultry&&(identical(other.userprofile, userprofile) || other.userprofile == userprofile)&&(identical(other.address, address) || other.address == address)&&(identical(other.poultryOwner, poultryOwner) || other.poultryOwner == poultryOwner)&&(identical(other.poultryTenant, poultryTenant) || other.poultryTenant == poultryTenant)&&const DeepCollectionEquality().equals(other.hatching, hatching)&&const DeepCollectionEquality().equals(other.registerVetHalls, registerVetHalls)&&(identical(other.allow, allow) || other.allow == allow)&&(identical(other.provinceAllowChooseKillHouse, provinceAllowChooseKillHouse) || other.provinceAllowChooseKillHouse == provinceAllowChooseKillHouse)&&(identical(other.provinceAllowSellFree, provinceAllowSellFree) || other.provinceAllowSellFree == provinceAllowSellFree)&&(identical(other.vetFarm, vetFarm) || other.vetFarm == vetFarm)&&(identical(other.lastHatchingDiffrentRequestQuantity, lastHatchingDiffrentRequestQuantity) || other.lastHatchingDiffrentRequestQuantity == lastHatchingDiffrentRequestQuantity)&&(identical(other.userBankInfo, userBankInfo) || other.userBankInfo == userBankInfo)&&(identical(other.leftOverOwnHatching, leftOverOwnHatching) || other.leftOverOwnHatching == leftOverOwnHatching)&&(identical(other.key, key) || other.key == key)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.ownerIdForeignKey, ownerIdForeignKey) || other.ownerIdForeignKey == ownerIdForeignKey)&&(identical(other.userIdForeignKey, userIdForeignKey) || other.userIdForeignKey == userIdForeignKey)&&(identical(other.addressIdForeignKey, addressIdForeignKey) || other.addressIdForeignKey == addressIdForeignKey)&&(identical(other.hasChainCompany, hasChainCompany) || other.hasChainCompany == hasChainCompany)&&(identical(other.userBankIdForeignKey, userBankIdForeignKey) || other.userBankIdForeignKey == userBankIdForeignKey)&&(identical(other.cityOperator, cityOperator) || other.cityOperator == cityOperator)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.gisCode, gisCode) || other.gisCode == gisCode)&&(identical(other.operatingLicenceCapacity, operatingLicenceCapacity) || other.operatingLicenceCapacity == operatingLicenceCapacity)&&(identical(other.numberOfHalls, numberOfHalls) || other.numberOfHalls == numberOfHalls)&&(identical(other.tenant, tenant) || other.tenant == tenant)&&(identical(other.hasTenant, hasTenant) || other.hasTenant == hasTenant)&&(identical(other.personType, personType) || other.personType == personType)&&(identical(other.economicCode, economicCode) || other.economicCode == economicCode)&&(identical(other.systemCode, systemCode) || other.systemCode == systemCode)&&(identical(other.epidemiologicalCode, epidemiologicalCode) || other.epidemiologicalCode == epidemiologicalCode)&&(identical(other.breedingUniqueId, breedingUniqueId) || other.breedingUniqueId == breedingUniqueId)&&(identical(other.totalCapacity, totalCapacity) || other.totalCapacity == totalCapacity)&&(identical(other.licenceNumber, licenceNumber) || other.licenceNumber == licenceNumber)&&(identical(other.healthCertificateNumber, healthCertificateNumber) || other.healthCertificateNumber == healthCertificateNumber)&&(identical(other.numberOfRequests, numberOfRequests) || other.numberOfRequests == numberOfRequests)&&(identical(other.hatchingDate, hatchingDate) || other.hatchingDate == hatchingDate)&&(identical(other.lastPartyDate, lastPartyDate) || other.lastPartyDate == lastPartyDate)&&(identical(other.numberOfIncubators, numberOfIncubators) || other.numberOfIncubators == numberOfIncubators)&&(identical(other.herdAgeByDay, herdAgeByDay) || other.herdAgeByDay == herdAgeByDay)&&(identical(other.herdAgeByWeek, herdAgeByWeek) || other.herdAgeByWeek == herdAgeByWeek)&&(identical(other.numberOfParty, numberOfParty) || other.numberOfParty == numberOfParty)&&(identical(other.communicationType, communicationType) || other.communicationType == communicationType)&&(identical(other.cooperative, cooperative) || other.cooperative == cooperative)&&(identical(other.dateOfRegister, dateOfRegister) || other.dateOfRegister == dateOfRegister)&&(identical(other.unitStatus, unitStatus) || other.unitStatus == unitStatus)&&(identical(other.active, active) || other.active == active)&&(identical(other.identityDocuments, identityDocuments) || other.identityDocuments == identityDocuments)&&(identical(other.samasatUserCode, samasatUserCode) || other.samasatUserCode == samasatUserCode)&&(identical(other.baseOrder, baseOrder) || other.baseOrder == baseOrder)&&(identical(other.incubationDate, incubationDate) || other.incubationDate == incubationDate)&&(identical(other.walletAmount, walletAmount) || other.walletAmount == walletAmount)&&(identical(other.city, city) || other.city == city)&&(identical(other.cityNumber, cityNumber) || other.cityNumber == cityNumber)&&(identical(other.cityName, cityName) || other.cityName == cityName)&&(identical(other.provinceNumber, provinceNumber) || other.provinceNumber == provinceNumber)&&(identical(other.provinceName, provinceName) || other.provinceName == provinceName)&&(identical(other.walletIdForeignKey, walletIdForeignKey) || other.walletIdForeignKey == walletIdForeignKey)&&(identical(other.poultryIdKey, poultryIdKey) || other.poultryIdKey == poultryIdKey)&&(identical(other.lat, lat) || other.lat == lat)&&(identical(other.long, long) || other.long == long)&&(identical(other.date, date) || other.date == date)&&(identical(other.killingAveAge, killingAveAge) || other.killingAveAge == killingAveAge)&&(identical(other.activeLeftOver, activeLeftOver) || other.activeLeftOver == activeLeftOver)&&(identical(other.killingAveCount, killingAveCount) || other.killingAveCount == killingAveCount)&&(identical(other.killingAveWeight, killingAveWeight) || other.killingAveWeight == killingAveWeight)&&(identical(other.killingLiveWeight, killingLiveWeight) || other.killingLiveWeight == killingLiveWeight)&&(identical(other.killingCarcassesWeight, killingCarcassesWeight) || other.killingCarcassesWeight == killingCarcassesWeight)&&(identical(other.killingLossWeightPercent, killingLossWeightPercent) || other.killingLossWeightPercent == killingLossWeightPercent)&&(identical(other.realKillingAveWeight, realKillingAveWeight) || other.realKillingAveWeight == realKillingAveWeight)&&(identical(other.realKillingLiveWeight, realKillingLiveWeight) || other.realKillingLiveWeight == realKillingLiveWeight)&&(identical(other.realKillingCarcassesWeight, realKillingCarcassesWeight) || other.realKillingCarcassesWeight == realKillingCarcassesWeight)&&(identical(other.realKillingLossWeightPercent, realKillingLossWeightPercent) || other.realKillingLossWeightPercent == realKillingLossWeightPercent)&&(identical(other.interestLicenseId, interestLicenseId) || other.interestLicenseId == interestLicenseId)&&(identical(other.orderLimit, orderLimit) || other.orderLimit == orderLimit)&&(identical(other.owner, owner) || other.owner == owner)&&(identical(other.wallet, wallet) || other.wallet == wallet)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,userprofile,address,poultryOwner,poultryTenant,const DeepCollectionEquality().hash(hatching),const DeepCollectionEquality().hash(registerVetHalls),allow,provinceAllowChooseKillHouse,provinceAllowSellFree,vetFarm,lastHatchingDiffrentRequestQuantity,userBankInfo,leftOverOwnHatching,key,trash,ownerIdForeignKey,userIdForeignKey,addressIdForeignKey,hasChainCompany,userBankIdForeignKey,cityOperator,unitName,gisCode,operatingLicenceCapacity,numberOfHalls,tenant,hasTenant,personType,economicCode,systemCode,epidemiologicalCode,breedingUniqueId,totalCapacity,licenceNumber,healthCertificateNumber,numberOfRequests,hatchingDate,lastPartyDate,numberOfIncubators,herdAgeByDay,herdAgeByWeek,numberOfParty,communicationType,cooperative,dateOfRegister,unitStatus,active,identityDocuments,samasatUserCode,baseOrder,incubationDate,walletAmount,city,cityNumber,cityName,provinceNumber,provinceName,walletIdForeignKey,poultryIdKey,lat,long,date,killingAveAge,activeLeftOver,killingAveCount,killingAveWeight,killingLiveWeight,killingCarcassesWeight,killingLossWeightPercent,realKillingAveWeight,realKillingLiveWeight,realKillingCarcassesWeight,realKillingLossWeightPercent,interestLicenseId,orderLimit,owner,wallet]); + +@override +String toString() { + return 'KillRequestPoultry(userprofile: $userprofile, address: $address, poultryOwner: $poultryOwner, poultryTenant: $poultryTenant, hatching: $hatching, registerVetHalls: $registerVetHalls, allow: $allow, provinceAllowChooseKillHouse: $provinceAllowChooseKillHouse, provinceAllowSellFree: $provinceAllowSellFree, vetFarm: $vetFarm, lastHatchingDiffrentRequestQuantity: $lastHatchingDiffrentRequestQuantity, userBankInfo: $userBankInfo, leftOverOwnHatching: $leftOverOwnHatching, key: $key, trash: $trash, ownerIdForeignKey: $ownerIdForeignKey, userIdForeignKey: $userIdForeignKey, addressIdForeignKey: $addressIdForeignKey, hasChainCompany: $hasChainCompany, userBankIdForeignKey: $userBankIdForeignKey, cityOperator: $cityOperator, unitName: $unitName, gisCode: $gisCode, operatingLicenceCapacity: $operatingLicenceCapacity, numberOfHalls: $numberOfHalls, tenant: $tenant, hasTenant: $hasTenant, personType: $personType, economicCode: $economicCode, systemCode: $systemCode, epidemiologicalCode: $epidemiologicalCode, breedingUniqueId: $breedingUniqueId, totalCapacity: $totalCapacity, licenceNumber: $licenceNumber, healthCertificateNumber: $healthCertificateNumber, numberOfRequests: $numberOfRequests, hatchingDate: $hatchingDate, lastPartyDate: $lastPartyDate, numberOfIncubators: $numberOfIncubators, herdAgeByDay: $herdAgeByDay, herdAgeByWeek: $herdAgeByWeek, numberOfParty: $numberOfParty, communicationType: $communicationType, cooperative: $cooperative, dateOfRegister: $dateOfRegister, unitStatus: $unitStatus, active: $active, identityDocuments: $identityDocuments, samasatUserCode: $samasatUserCode, baseOrder: $baseOrder, incubationDate: $incubationDate, walletAmount: $walletAmount, city: $city, cityNumber: $cityNumber, cityName: $cityName, provinceNumber: $provinceNumber, provinceName: $provinceName, walletIdForeignKey: $walletIdForeignKey, poultryIdKey: $poultryIdKey, lat: $lat, long: $long, date: $date, killingAveAge: $killingAveAge, activeLeftOver: $activeLeftOver, killingAveCount: $killingAveCount, killingAveWeight: $killingAveWeight, killingLiveWeight: $killingLiveWeight, killingCarcassesWeight: $killingCarcassesWeight, killingLossWeightPercent: $killingLossWeightPercent, realKillingAveWeight: $realKillingAveWeight, realKillingLiveWeight: $realKillingLiveWeight, realKillingCarcassesWeight: $realKillingCarcassesWeight, realKillingLossWeightPercent: $realKillingLossWeightPercent, interestLicenseId: $interestLicenseId, orderLimit: $orderLimit, owner: $owner, wallet: $wallet)'; +} + + +} + +/// @nodoc +abstract mixin class $KillRequestPoultryCopyWith<$Res> { + factory $KillRequestPoultryCopyWith(KillRequestPoultry value, $Res Function(KillRequestPoultry) _then) = _$KillRequestPoultryCopyWithImpl; +@useResult +$Res call({ + UserProfile? userprofile, Address? address, PoultryOwner? poultryOwner, PoultryTenant? poultryTenant, List? hatching, List? registerVetHalls, Allow? allow, ProvinceAllowChooseKillHouse? provinceAllowChooseKillHouse, bool? provinceAllowSellFree, VetFarm? vetFarm, LastHatchingDifferentRequestQuantity? lastHatchingDiffrentRequestQuantity, UserBankInfo? userBankInfo, int? leftOverOwnHatching, String? key, bool? trash, int? ownerIdForeignKey, int? userIdForeignKey, int? addressIdForeignKey, bool? hasChainCompany, int? userBankIdForeignKey, String? cityOperator, String? unitName, String? gisCode, int? operatingLicenceCapacity, int? numberOfHalls, bool? tenant, bool? hasTenant, String? personType, String? economicCode, String? systemCode, String? epidemiologicalCode, String? breedingUniqueId, int? totalCapacity, String? licenceNumber, String? healthCertificateNumber, int? numberOfRequests, String? hatchingDate, String? lastPartyDate, int? numberOfIncubators, int? herdAgeByDay, int? herdAgeByWeek, int? numberOfParty, String? communicationType, String? cooperative, String? dateOfRegister, String? unitStatus, bool? active, String? identityDocuments, String? samasatUserCode, int? baseOrder, String? incubationDate, int? walletAmount, int? city, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, int? walletIdForeignKey, int? poultryIdKey, double? lat, double? long, String? date, int? killingAveAge, int? activeLeftOver, int? killingAveCount, double? killingAveWeight, double? killingLiveWeight, double? killingCarcassesWeight, double? killingLossWeightPercent, double? realKillingAveWeight, double? realKillingLiveWeight, double? realKillingCarcassesWeight, double? realKillingLossWeightPercent, int? interestLicenseId, bool? orderLimit, int? owner, int? wallet +}); + + +$UserProfileCopyWith<$Res>? get userprofile;$AddressCopyWith<$Res>? get address;$PoultryOwnerCopyWith<$Res>? get poultryOwner;$PoultryTenantCopyWith<$Res>? get poultryTenant;$AllowCopyWith<$Res>? get allow;$ProvinceAllowChooseKillHouseCopyWith<$Res>? get provinceAllowChooseKillHouse;$VetFarmCopyWith<$Res>? get vetFarm;$LastHatchingDifferentRequestQuantityCopyWith<$Res>? get lastHatchingDiffrentRequestQuantity;$UserBankInfoCopyWith<$Res>? get userBankInfo; + +} +/// @nodoc +class _$KillRequestPoultryCopyWithImpl<$Res> + implements $KillRequestPoultryCopyWith<$Res> { + _$KillRequestPoultryCopyWithImpl(this._self, this._then); + + final KillRequestPoultry _self; + final $Res Function(KillRequestPoultry) _then; + +/// Create a copy of KillRequestPoultry +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? userprofile = freezed,Object? address = freezed,Object? poultryOwner = freezed,Object? poultryTenant = freezed,Object? hatching = freezed,Object? registerVetHalls = freezed,Object? allow = freezed,Object? provinceAllowChooseKillHouse = freezed,Object? provinceAllowSellFree = freezed,Object? vetFarm = freezed,Object? lastHatchingDiffrentRequestQuantity = freezed,Object? userBankInfo = freezed,Object? leftOverOwnHatching = freezed,Object? key = freezed,Object? trash = freezed,Object? ownerIdForeignKey = freezed,Object? userIdForeignKey = freezed,Object? addressIdForeignKey = freezed,Object? hasChainCompany = freezed,Object? userBankIdForeignKey = freezed,Object? cityOperator = freezed,Object? unitName = freezed,Object? gisCode = freezed,Object? operatingLicenceCapacity = freezed,Object? numberOfHalls = freezed,Object? tenant = freezed,Object? hasTenant = freezed,Object? personType = freezed,Object? economicCode = freezed,Object? systemCode = freezed,Object? epidemiologicalCode = freezed,Object? breedingUniqueId = freezed,Object? totalCapacity = freezed,Object? licenceNumber = freezed,Object? healthCertificateNumber = freezed,Object? numberOfRequests = freezed,Object? hatchingDate = freezed,Object? lastPartyDate = freezed,Object? numberOfIncubators = freezed,Object? herdAgeByDay = freezed,Object? herdAgeByWeek = freezed,Object? numberOfParty = freezed,Object? communicationType = freezed,Object? cooperative = freezed,Object? dateOfRegister = freezed,Object? unitStatus = freezed,Object? active = freezed,Object? identityDocuments = freezed,Object? samasatUserCode = freezed,Object? baseOrder = freezed,Object? incubationDate = freezed,Object? walletAmount = freezed,Object? city = freezed,Object? cityNumber = freezed,Object? cityName = freezed,Object? provinceNumber = freezed,Object? provinceName = freezed,Object? walletIdForeignKey = freezed,Object? poultryIdKey = freezed,Object? lat = freezed,Object? long = freezed,Object? date = freezed,Object? killingAveAge = freezed,Object? activeLeftOver = freezed,Object? killingAveCount = freezed,Object? killingAveWeight = freezed,Object? killingLiveWeight = freezed,Object? killingCarcassesWeight = freezed,Object? killingLossWeightPercent = freezed,Object? realKillingAveWeight = freezed,Object? realKillingLiveWeight = freezed,Object? realKillingCarcassesWeight = freezed,Object? realKillingLossWeightPercent = freezed,Object? interestLicenseId = freezed,Object? orderLimit = freezed,Object? owner = freezed,Object? wallet = freezed,}) { + return _then(_self.copyWith( +userprofile: freezed == userprofile ? _self.userprofile : userprofile // ignore: cast_nullable_to_non_nullable +as UserProfile?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable +as Address?,poultryOwner: freezed == poultryOwner ? _self.poultryOwner : poultryOwner // ignore: cast_nullable_to_non_nullable +as PoultryOwner?,poultryTenant: freezed == poultryTenant ? _self.poultryTenant : poultryTenant // ignore: cast_nullable_to_non_nullable +as PoultryTenant?,hatching: freezed == hatching ? _self.hatching : hatching // ignore: cast_nullable_to_non_nullable +as List?,registerVetHalls: freezed == registerVetHalls ? _self.registerVetHalls : registerVetHalls // ignore: cast_nullable_to_non_nullable +as List?,allow: freezed == allow ? _self.allow : allow // ignore: cast_nullable_to_non_nullable +as Allow?,provinceAllowChooseKillHouse: freezed == provinceAllowChooseKillHouse ? _self.provinceAllowChooseKillHouse : provinceAllowChooseKillHouse // ignore: cast_nullable_to_non_nullable +as ProvinceAllowChooseKillHouse?,provinceAllowSellFree: freezed == provinceAllowSellFree ? _self.provinceAllowSellFree : provinceAllowSellFree // ignore: cast_nullable_to_non_nullable +as bool?,vetFarm: freezed == vetFarm ? _self.vetFarm : vetFarm // ignore: cast_nullable_to_non_nullable +as VetFarm?,lastHatchingDiffrentRequestQuantity: freezed == lastHatchingDiffrentRequestQuantity ? _self.lastHatchingDiffrentRequestQuantity : lastHatchingDiffrentRequestQuantity // ignore: cast_nullable_to_non_nullable +as LastHatchingDifferentRequestQuantity?,userBankInfo: freezed == userBankInfo ? _self.userBankInfo : userBankInfo // ignore: cast_nullable_to_non_nullable +as UserBankInfo?,leftOverOwnHatching: freezed == leftOverOwnHatching ? _self.leftOverOwnHatching : leftOverOwnHatching // ignore: cast_nullable_to_non_nullable +as int?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable +as bool?,ownerIdForeignKey: freezed == ownerIdForeignKey ? _self.ownerIdForeignKey : ownerIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,userIdForeignKey: freezed == userIdForeignKey ? _self.userIdForeignKey : userIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,addressIdForeignKey: freezed == addressIdForeignKey ? _self.addressIdForeignKey : addressIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,hasChainCompany: freezed == hasChainCompany ? _self.hasChainCompany : hasChainCompany // ignore: cast_nullable_to_non_nullable +as bool?,userBankIdForeignKey: freezed == userBankIdForeignKey ? _self.userBankIdForeignKey : userBankIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,cityOperator: freezed == cityOperator ? _self.cityOperator : cityOperator // ignore: cast_nullable_to_non_nullable +as String?,unitName: freezed == unitName ? _self.unitName : unitName // ignore: cast_nullable_to_non_nullable +as String?,gisCode: freezed == gisCode ? _self.gisCode : gisCode // ignore: cast_nullable_to_non_nullable +as String?,operatingLicenceCapacity: freezed == operatingLicenceCapacity ? _self.operatingLicenceCapacity : operatingLicenceCapacity // ignore: cast_nullable_to_non_nullable +as int?,numberOfHalls: freezed == numberOfHalls ? _self.numberOfHalls : numberOfHalls // ignore: cast_nullable_to_non_nullable +as int?,tenant: freezed == tenant ? _self.tenant : tenant // ignore: cast_nullable_to_non_nullable +as bool?,hasTenant: freezed == hasTenant ? _self.hasTenant : hasTenant // ignore: cast_nullable_to_non_nullable +as bool?,personType: freezed == personType ? _self.personType : personType // ignore: cast_nullable_to_non_nullable +as String?,economicCode: freezed == economicCode ? _self.economicCode : economicCode // ignore: cast_nullable_to_non_nullable +as String?,systemCode: freezed == systemCode ? _self.systemCode : systemCode // ignore: cast_nullable_to_non_nullable +as String?,epidemiologicalCode: freezed == epidemiologicalCode ? _self.epidemiologicalCode : epidemiologicalCode // ignore: cast_nullable_to_non_nullable +as String?,breedingUniqueId: freezed == breedingUniqueId ? _self.breedingUniqueId : breedingUniqueId // ignore: cast_nullable_to_non_nullable +as String?,totalCapacity: freezed == totalCapacity ? _self.totalCapacity : totalCapacity // ignore: cast_nullable_to_non_nullable +as int?,licenceNumber: freezed == licenceNumber ? _self.licenceNumber : licenceNumber // ignore: cast_nullable_to_non_nullable +as String?,healthCertificateNumber: freezed == healthCertificateNumber ? _self.healthCertificateNumber : healthCertificateNumber // ignore: cast_nullable_to_non_nullable +as String?,numberOfRequests: freezed == numberOfRequests ? _self.numberOfRequests : numberOfRequests // ignore: cast_nullable_to_non_nullable +as int?,hatchingDate: freezed == hatchingDate ? _self.hatchingDate : hatchingDate // ignore: cast_nullable_to_non_nullable +as String?,lastPartyDate: freezed == lastPartyDate ? _self.lastPartyDate : lastPartyDate // ignore: cast_nullable_to_non_nullable +as String?,numberOfIncubators: freezed == numberOfIncubators ? _self.numberOfIncubators : numberOfIncubators // ignore: cast_nullable_to_non_nullable +as int?,herdAgeByDay: freezed == herdAgeByDay ? _self.herdAgeByDay : herdAgeByDay // ignore: cast_nullable_to_non_nullable +as int?,herdAgeByWeek: freezed == herdAgeByWeek ? _self.herdAgeByWeek : herdAgeByWeek // ignore: cast_nullable_to_non_nullable +as int?,numberOfParty: freezed == numberOfParty ? _self.numberOfParty : numberOfParty // ignore: cast_nullable_to_non_nullable +as int?,communicationType: freezed == communicationType ? _self.communicationType : communicationType // ignore: cast_nullable_to_non_nullable +as String?,cooperative: freezed == cooperative ? _self.cooperative : cooperative // ignore: cast_nullable_to_non_nullable +as String?,dateOfRegister: freezed == dateOfRegister ? _self.dateOfRegister : dateOfRegister // ignore: cast_nullable_to_non_nullable +as String?,unitStatus: freezed == unitStatus ? _self.unitStatus : unitStatus // ignore: cast_nullable_to_non_nullable +as String?,active: freezed == active ? _self.active : active // ignore: cast_nullable_to_non_nullable +as bool?,identityDocuments: freezed == identityDocuments ? _self.identityDocuments : identityDocuments // ignore: cast_nullable_to_non_nullable +as String?,samasatUserCode: freezed == samasatUserCode ? _self.samasatUserCode : samasatUserCode // ignore: cast_nullable_to_non_nullable +as String?,baseOrder: freezed == baseOrder ? _self.baseOrder : baseOrder // ignore: cast_nullable_to_non_nullable +as int?,incubationDate: freezed == incubationDate ? _self.incubationDate : incubationDate // ignore: cast_nullable_to_non_nullable +as String?,walletAmount: freezed == walletAmount ? _self.walletAmount : walletAmount // ignore: cast_nullable_to_non_nullable +as int?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as int?,cityNumber: freezed == cityNumber ? _self.cityNumber : cityNumber // ignore: cast_nullable_to_non_nullable +as int?,cityName: freezed == cityName ? _self.cityName : cityName // ignore: cast_nullable_to_non_nullable +as String?,provinceNumber: freezed == provinceNumber ? _self.provinceNumber : provinceNumber // ignore: cast_nullable_to_non_nullable +as int?,provinceName: freezed == provinceName ? _self.provinceName : provinceName // ignore: cast_nullable_to_non_nullable +as String?,walletIdForeignKey: freezed == walletIdForeignKey ? _self.walletIdForeignKey : walletIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,poultryIdKey: freezed == poultryIdKey ? _self.poultryIdKey : poultryIdKey // ignore: cast_nullable_to_non_nullable +as int?,lat: freezed == lat ? _self.lat : lat // ignore: cast_nullable_to_non_nullable +as double?,long: freezed == long ? _self.long : long // ignore: cast_nullable_to_non_nullable +as double?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?,killingAveAge: freezed == killingAveAge ? _self.killingAveAge : killingAveAge // ignore: cast_nullable_to_non_nullable +as int?,activeLeftOver: freezed == activeLeftOver ? _self.activeLeftOver : activeLeftOver // ignore: cast_nullable_to_non_nullable +as int?,killingAveCount: freezed == killingAveCount ? _self.killingAveCount : killingAveCount // ignore: cast_nullable_to_non_nullable +as int?,killingAveWeight: freezed == killingAveWeight ? _self.killingAveWeight : killingAveWeight // ignore: cast_nullable_to_non_nullable +as double?,killingLiveWeight: freezed == killingLiveWeight ? _self.killingLiveWeight : killingLiveWeight // ignore: cast_nullable_to_non_nullable +as double?,killingCarcassesWeight: freezed == killingCarcassesWeight ? _self.killingCarcassesWeight : killingCarcassesWeight // ignore: cast_nullable_to_non_nullable +as double?,killingLossWeightPercent: freezed == killingLossWeightPercent ? _self.killingLossWeightPercent : killingLossWeightPercent // ignore: cast_nullable_to_non_nullable +as double?,realKillingAveWeight: freezed == realKillingAveWeight ? _self.realKillingAveWeight : realKillingAveWeight // ignore: cast_nullable_to_non_nullable +as double?,realKillingLiveWeight: freezed == realKillingLiveWeight ? _self.realKillingLiveWeight : realKillingLiveWeight // ignore: cast_nullable_to_non_nullable +as double?,realKillingCarcassesWeight: freezed == realKillingCarcassesWeight ? _self.realKillingCarcassesWeight : realKillingCarcassesWeight // ignore: cast_nullable_to_non_nullable +as double?,realKillingLossWeightPercent: freezed == realKillingLossWeightPercent ? _self.realKillingLossWeightPercent : realKillingLossWeightPercent // ignore: cast_nullable_to_non_nullable +as double?,interestLicenseId: freezed == interestLicenseId ? _self.interestLicenseId : interestLicenseId // ignore: cast_nullable_to_non_nullable +as int?,orderLimit: freezed == orderLimit ? _self.orderLimit : orderLimit // ignore: cast_nullable_to_non_nullable +as bool?,owner: freezed == owner ? _self.owner : owner // ignore: cast_nullable_to_non_nullable +as int?,wallet: freezed == wallet ? _self.wallet : wallet // ignore: cast_nullable_to_non_nullable +as int?, + )); +} +/// Create a copy of KillRequestPoultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$UserProfileCopyWith<$Res>? get userprofile { + if (_self.userprofile == null) { + return null; + } + + return $UserProfileCopyWith<$Res>(_self.userprofile!, (value) { + return _then(_self.copyWith(userprofile: value)); + }); +}/// Create a copy of KillRequestPoultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$AddressCopyWith<$Res>? get address { + if (_self.address == null) { + return null; + } + + return $AddressCopyWith<$Res>(_self.address!, (value) { + return _then(_self.copyWith(address: value)); + }); +}/// Create a copy of KillRequestPoultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$PoultryOwnerCopyWith<$Res>? get poultryOwner { + if (_self.poultryOwner == null) { + return null; + } + + return $PoultryOwnerCopyWith<$Res>(_self.poultryOwner!, (value) { + return _then(_self.copyWith(poultryOwner: value)); + }); +}/// Create a copy of KillRequestPoultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$PoultryTenantCopyWith<$Res>? get poultryTenant { + if (_self.poultryTenant == null) { + return null; + } + + return $PoultryTenantCopyWith<$Res>(_self.poultryTenant!, (value) { + return _then(_self.copyWith(poultryTenant: value)); + }); +}/// Create a copy of KillRequestPoultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$AllowCopyWith<$Res>? get allow { + if (_self.allow == null) { + return null; + } + + return $AllowCopyWith<$Res>(_self.allow!, (value) { + return _then(_self.copyWith(allow: value)); + }); +}/// Create a copy of KillRequestPoultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ProvinceAllowChooseKillHouseCopyWith<$Res>? get provinceAllowChooseKillHouse { + if (_self.provinceAllowChooseKillHouse == null) { + return null; + } + + return $ProvinceAllowChooseKillHouseCopyWith<$Res>(_self.provinceAllowChooseKillHouse!, (value) { + return _then(_self.copyWith(provinceAllowChooseKillHouse: value)); + }); +}/// Create a copy of KillRequestPoultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$VetFarmCopyWith<$Res>? get vetFarm { + if (_self.vetFarm == null) { + return null; + } + + return $VetFarmCopyWith<$Res>(_self.vetFarm!, (value) { + return _then(_self.copyWith(vetFarm: value)); + }); +}/// Create a copy of KillRequestPoultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$LastHatchingDifferentRequestQuantityCopyWith<$Res>? get lastHatchingDiffrentRequestQuantity { + if (_self.lastHatchingDiffrentRequestQuantity == null) { + return null; + } + + return $LastHatchingDifferentRequestQuantityCopyWith<$Res>(_self.lastHatchingDiffrentRequestQuantity!, (value) { + return _then(_self.copyWith(lastHatchingDiffrentRequestQuantity: value)); + }); +}/// Create a copy of KillRequestPoultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$UserBankInfoCopyWith<$Res>? get userBankInfo { + if (_self.userBankInfo == null) { + return null; + } + + return $UserBankInfoCopyWith<$Res>(_self.userBankInfo!, (value) { + return _then(_self.copyWith(userBankInfo: value)); + }); +} +} + + +/// Adds pattern-matching-related methods to [KillRequestPoultry]. +extension KillRequestPoultryPatterns on KillRequestPoultry { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _KillRequestPoultry value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _KillRequestPoultry() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _KillRequestPoultry value) $default,){ +final _that = this; +switch (_that) { +case _KillRequestPoultry(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _KillRequestPoultry value)? $default,){ +final _that = this; +switch (_that) { +case _KillRequestPoultry() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( UserProfile? userprofile, Address? address, PoultryOwner? poultryOwner, PoultryTenant? poultryTenant, List? hatching, List? registerVetHalls, Allow? allow, ProvinceAllowChooseKillHouse? provinceAllowChooseKillHouse, bool? provinceAllowSellFree, VetFarm? vetFarm, LastHatchingDifferentRequestQuantity? lastHatchingDiffrentRequestQuantity, UserBankInfo? userBankInfo, int? leftOverOwnHatching, String? key, bool? trash, int? ownerIdForeignKey, int? userIdForeignKey, int? addressIdForeignKey, bool? hasChainCompany, int? userBankIdForeignKey, String? cityOperator, String? unitName, String? gisCode, int? operatingLicenceCapacity, int? numberOfHalls, bool? tenant, bool? hasTenant, String? personType, String? economicCode, String? systemCode, String? epidemiologicalCode, String? breedingUniqueId, int? totalCapacity, String? licenceNumber, String? healthCertificateNumber, int? numberOfRequests, String? hatchingDate, String? lastPartyDate, int? numberOfIncubators, int? herdAgeByDay, int? herdAgeByWeek, int? numberOfParty, String? communicationType, String? cooperative, String? dateOfRegister, String? unitStatus, bool? active, String? identityDocuments, String? samasatUserCode, int? baseOrder, String? incubationDate, int? walletAmount, int? city, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, int? walletIdForeignKey, int? poultryIdKey, double? lat, double? long, String? date, int? killingAveAge, int? activeLeftOver, int? killingAveCount, double? killingAveWeight, double? killingLiveWeight, double? killingCarcassesWeight, double? killingLossWeightPercent, double? realKillingAveWeight, double? realKillingLiveWeight, double? realKillingCarcassesWeight, double? realKillingLossWeightPercent, int? interestLicenseId, bool? orderLimit, int? owner, int? wallet)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _KillRequestPoultry() when $default != null: +return $default(_that.userprofile,_that.address,_that.poultryOwner,_that.poultryTenant,_that.hatching,_that.registerVetHalls,_that.allow,_that.provinceAllowChooseKillHouse,_that.provinceAllowSellFree,_that.vetFarm,_that.lastHatchingDiffrentRequestQuantity,_that.userBankInfo,_that.leftOverOwnHatching,_that.key,_that.trash,_that.ownerIdForeignKey,_that.userIdForeignKey,_that.addressIdForeignKey,_that.hasChainCompany,_that.userBankIdForeignKey,_that.cityOperator,_that.unitName,_that.gisCode,_that.operatingLicenceCapacity,_that.numberOfHalls,_that.tenant,_that.hasTenant,_that.personType,_that.economicCode,_that.systemCode,_that.epidemiologicalCode,_that.breedingUniqueId,_that.totalCapacity,_that.licenceNumber,_that.healthCertificateNumber,_that.numberOfRequests,_that.hatchingDate,_that.lastPartyDate,_that.numberOfIncubators,_that.herdAgeByDay,_that.herdAgeByWeek,_that.numberOfParty,_that.communicationType,_that.cooperative,_that.dateOfRegister,_that.unitStatus,_that.active,_that.identityDocuments,_that.samasatUserCode,_that.baseOrder,_that.incubationDate,_that.walletAmount,_that.city,_that.cityNumber,_that.cityName,_that.provinceNumber,_that.provinceName,_that.walletIdForeignKey,_that.poultryIdKey,_that.lat,_that.long,_that.date,_that.killingAveAge,_that.activeLeftOver,_that.killingAveCount,_that.killingAveWeight,_that.killingLiveWeight,_that.killingCarcassesWeight,_that.killingLossWeightPercent,_that.realKillingAveWeight,_that.realKillingLiveWeight,_that.realKillingCarcassesWeight,_that.realKillingLossWeightPercent,_that.interestLicenseId,_that.orderLimit,_that.owner,_that.wallet);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( UserProfile? userprofile, Address? address, PoultryOwner? poultryOwner, PoultryTenant? poultryTenant, List? hatching, List? registerVetHalls, Allow? allow, ProvinceAllowChooseKillHouse? provinceAllowChooseKillHouse, bool? provinceAllowSellFree, VetFarm? vetFarm, LastHatchingDifferentRequestQuantity? lastHatchingDiffrentRequestQuantity, UserBankInfo? userBankInfo, int? leftOverOwnHatching, String? key, bool? trash, int? ownerIdForeignKey, int? userIdForeignKey, int? addressIdForeignKey, bool? hasChainCompany, int? userBankIdForeignKey, String? cityOperator, String? unitName, String? gisCode, int? operatingLicenceCapacity, int? numberOfHalls, bool? tenant, bool? hasTenant, String? personType, String? economicCode, String? systemCode, String? epidemiologicalCode, String? breedingUniqueId, int? totalCapacity, String? licenceNumber, String? healthCertificateNumber, int? numberOfRequests, String? hatchingDate, String? lastPartyDate, int? numberOfIncubators, int? herdAgeByDay, int? herdAgeByWeek, int? numberOfParty, String? communicationType, String? cooperative, String? dateOfRegister, String? unitStatus, bool? active, String? identityDocuments, String? samasatUserCode, int? baseOrder, String? incubationDate, int? walletAmount, int? city, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, int? walletIdForeignKey, int? poultryIdKey, double? lat, double? long, String? date, int? killingAveAge, int? activeLeftOver, int? killingAveCount, double? killingAveWeight, double? killingLiveWeight, double? killingCarcassesWeight, double? killingLossWeightPercent, double? realKillingAveWeight, double? realKillingLiveWeight, double? realKillingCarcassesWeight, double? realKillingLossWeightPercent, int? interestLicenseId, bool? orderLimit, int? owner, int? wallet) $default,) {final _that = this; +switch (_that) { +case _KillRequestPoultry(): +return $default(_that.userprofile,_that.address,_that.poultryOwner,_that.poultryTenant,_that.hatching,_that.registerVetHalls,_that.allow,_that.provinceAllowChooseKillHouse,_that.provinceAllowSellFree,_that.vetFarm,_that.lastHatchingDiffrentRequestQuantity,_that.userBankInfo,_that.leftOverOwnHatching,_that.key,_that.trash,_that.ownerIdForeignKey,_that.userIdForeignKey,_that.addressIdForeignKey,_that.hasChainCompany,_that.userBankIdForeignKey,_that.cityOperator,_that.unitName,_that.gisCode,_that.operatingLicenceCapacity,_that.numberOfHalls,_that.tenant,_that.hasTenant,_that.personType,_that.economicCode,_that.systemCode,_that.epidemiologicalCode,_that.breedingUniqueId,_that.totalCapacity,_that.licenceNumber,_that.healthCertificateNumber,_that.numberOfRequests,_that.hatchingDate,_that.lastPartyDate,_that.numberOfIncubators,_that.herdAgeByDay,_that.herdAgeByWeek,_that.numberOfParty,_that.communicationType,_that.cooperative,_that.dateOfRegister,_that.unitStatus,_that.active,_that.identityDocuments,_that.samasatUserCode,_that.baseOrder,_that.incubationDate,_that.walletAmount,_that.city,_that.cityNumber,_that.cityName,_that.provinceNumber,_that.provinceName,_that.walletIdForeignKey,_that.poultryIdKey,_that.lat,_that.long,_that.date,_that.killingAveAge,_that.activeLeftOver,_that.killingAveCount,_that.killingAveWeight,_that.killingLiveWeight,_that.killingCarcassesWeight,_that.killingLossWeightPercent,_that.realKillingAveWeight,_that.realKillingLiveWeight,_that.realKillingCarcassesWeight,_that.realKillingLossWeightPercent,_that.interestLicenseId,_that.orderLimit,_that.owner,_that.wallet);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( UserProfile? userprofile, Address? address, PoultryOwner? poultryOwner, PoultryTenant? poultryTenant, List? hatching, List? registerVetHalls, Allow? allow, ProvinceAllowChooseKillHouse? provinceAllowChooseKillHouse, bool? provinceAllowSellFree, VetFarm? vetFarm, LastHatchingDifferentRequestQuantity? lastHatchingDiffrentRequestQuantity, UserBankInfo? userBankInfo, int? leftOverOwnHatching, String? key, bool? trash, int? ownerIdForeignKey, int? userIdForeignKey, int? addressIdForeignKey, bool? hasChainCompany, int? userBankIdForeignKey, String? cityOperator, String? unitName, String? gisCode, int? operatingLicenceCapacity, int? numberOfHalls, bool? tenant, bool? hasTenant, String? personType, String? economicCode, String? systemCode, String? epidemiologicalCode, String? breedingUniqueId, int? totalCapacity, String? licenceNumber, String? healthCertificateNumber, int? numberOfRequests, String? hatchingDate, String? lastPartyDate, int? numberOfIncubators, int? herdAgeByDay, int? herdAgeByWeek, int? numberOfParty, String? communicationType, String? cooperative, String? dateOfRegister, String? unitStatus, bool? active, String? identityDocuments, String? samasatUserCode, int? baseOrder, String? incubationDate, int? walletAmount, int? city, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, int? walletIdForeignKey, int? poultryIdKey, double? lat, double? long, String? date, int? killingAveAge, int? activeLeftOver, int? killingAveCount, double? killingAveWeight, double? killingLiveWeight, double? killingCarcassesWeight, double? killingLossWeightPercent, double? realKillingAveWeight, double? realKillingLiveWeight, double? realKillingCarcassesWeight, double? realKillingLossWeightPercent, int? interestLicenseId, bool? orderLimit, int? owner, int? wallet)? $default,) {final _that = this; +switch (_that) { +case _KillRequestPoultry() when $default != null: +return $default(_that.userprofile,_that.address,_that.poultryOwner,_that.poultryTenant,_that.hatching,_that.registerVetHalls,_that.allow,_that.provinceAllowChooseKillHouse,_that.provinceAllowSellFree,_that.vetFarm,_that.lastHatchingDiffrentRequestQuantity,_that.userBankInfo,_that.leftOverOwnHatching,_that.key,_that.trash,_that.ownerIdForeignKey,_that.userIdForeignKey,_that.addressIdForeignKey,_that.hasChainCompany,_that.userBankIdForeignKey,_that.cityOperator,_that.unitName,_that.gisCode,_that.operatingLicenceCapacity,_that.numberOfHalls,_that.tenant,_that.hasTenant,_that.personType,_that.economicCode,_that.systemCode,_that.epidemiologicalCode,_that.breedingUniqueId,_that.totalCapacity,_that.licenceNumber,_that.healthCertificateNumber,_that.numberOfRequests,_that.hatchingDate,_that.lastPartyDate,_that.numberOfIncubators,_that.herdAgeByDay,_that.herdAgeByWeek,_that.numberOfParty,_that.communicationType,_that.cooperative,_that.dateOfRegister,_that.unitStatus,_that.active,_that.identityDocuments,_that.samasatUserCode,_that.baseOrder,_that.incubationDate,_that.walletAmount,_that.city,_that.cityNumber,_that.cityName,_that.provinceNumber,_that.provinceName,_that.walletIdForeignKey,_that.poultryIdKey,_that.lat,_that.long,_that.date,_that.killingAveAge,_that.activeLeftOver,_that.killingAveCount,_that.killingAveWeight,_that.killingLiveWeight,_that.killingCarcassesWeight,_that.killingLossWeightPercent,_that.realKillingAveWeight,_that.realKillingLiveWeight,_that.realKillingCarcassesWeight,_that.realKillingLossWeightPercent,_that.interestLicenseId,_that.orderLimit,_that.owner,_that.wallet);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _KillRequestPoultry implements KillRequestPoultry { + const _KillRequestPoultry({this.userprofile, this.address, this.poultryOwner, this.poultryTenant, final List? hatching, final List? registerVetHalls, this.allow, this.provinceAllowChooseKillHouse, this.provinceAllowSellFree, this.vetFarm, this.lastHatchingDiffrentRequestQuantity, this.userBankInfo, this.leftOverOwnHatching, this.key, this.trash, this.ownerIdForeignKey, this.userIdForeignKey, this.addressIdForeignKey, this.hasChainCompany, this.userBankIdForeignKey, this.cityOperator, this.unitName, this.gisCode, this.operatingLicenceCapacity, this.numberOfHalls, this.tenant, this.hasTenant, this.personType, this.economicCode, this.systemCode, this.epidemiologicalCode, this.breedingUniqueId, this.totalCapacity, this.licenceNumber, this.healthCertificateNumber, this.numberOfRequests, this.hatchingDate, this.lastPartyDate, this.numberOfIncubators, this.herdAgeByDay, this.herdAgeByWeek, this.numberOfParty, this.communicationType, this.cooperative, this.dateOfRegister, this.unitStatus, this.active, this.identityDocuments, this.samasatUserCode, this.baseOrder, this.incubationDate, this.walletAmount, this.city, this.cityNumber, this.cityName, this.provinceNumber, this.provinceName, this.walletIdForeignKey, this.poultryIdKey, this.lat, this.long, this.date, this.killingAveAge, this.activeLeftOver, this.killingAveCount, this.killingAveWeight, this.killingLiveWeight, this.killingCarcassesWeight, this.killingLossWeightPercent, this.realKillingAveWeight, this.realKillingLiveWeight, this.realKillingCarcassesWeight, this.realKillingLossWeightPercent, this.interestLicenseId, this.orderLimit, this.owner, this.wallet}): _hatching = hatching,_registerVetHalls = registerVetHalls; + factory _KillRequestPoultry.fromJson(Map json) => _$KillRequestPoultryFromJson(json); + +@override final UserProfile? userprofile; +@override final Address? address; +@override final PoultryOwner? poultryOwner; +@override final PoultryTenant? poultryTenant; + final List? _hatching; +@override List? get hatching { + final value = _hatching; + if (value == null) return null; + if (_hatching is EqualUnmodifiableListView) return _hatching; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + + final List? _registerVetHalls; +@override List? get registerVetHalls { + final value = _registerVetHalls; + if (value == null) return null; + if (_registerVetHalls is EqualUnmodifiableListView) return _registerVetHalls; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + +@override final Allow? allow; +@override final ProvinceAllowChooseKillHouse? provinceAllowChooseKillHouse; +@override final bool? provinceAllowSellFree; +@override final VetFarm? vetFarm; +@override final LastHatchingDifferentRequestQuantity? lastHatchingDiffrentRequestQuantity; +@override final UserBankInfo? userBankInfo; +@override final int? leftOverOwnHatching; +@override final String? key; +@override final bool? trash; +@override final int? ownerIdForeignKey; +@override final int? userIdForeignKey; +@override final int? addressIdForeignKey; +@override final bool? hasChainCompany; +@override final int? userBankIdForeignKey; +@override final String? cityOperator; +@override final String? unitName; +@override final String? gisCode; +@override final int? operatingLicenceCapacity; +@override final int? numberOfHalls; +@override final bool? tenant; +@override final bool? hasTenant; +@override final String? personType; +@override final String? economicCode; +@override final String? systemCode; +@override final String? epidemiologicalCode; +@override final String? breedingUniqueId; +@override final int? totalCapacity; +@override final String? licenceNumber; +@override final String? healthCertificateNumber; +@override final int? numberOfRequests; +@override final String? hatchingDate; +@override final String? lastPartyDate; +@override final int? numberOfIncubators; +@override final int? herdAgeByDay; +@override final int? herdAgeByWeek; +@override final int? numberOfParty; +@override final String? communicationType; +@override final String? cooperative; +@override final String? dateOfRegister; +@override final String? unitStatus; +@override final bool? active; +@override final String? identityDocuments; +@override final String? samasatUserCode; +@override final int? baseOrder; +@override final String? incubationDate; +@override final int? walletAmount; +@override final int? city; +@override final int? cityNumber; +@override final String? cityName; +@override final int? provinceNumber; +@override final String? provinceName; +@override final int? walletIdForeignKey; +@override final int? poultryIdKey; +@override final double? lat; +@override final double? long; +@override final String? date; +@override final int? killingAveAge; +@override final int? activeLeftOver; +@override final int? killingAveCount; +@override final double? killingAveWeight; +@override final double? killingLiveWeight; +@override final double? killingCarcassesWeight; +@override final double? killingLossWeightPercent; +@override final double? realKillingAveWeight; +@override final double? realKillingLiveWeight; +@override final double? realKillingCarcassesWeight; +@override final double? realKillingLossWeightPercent; +@override final int? interestLicenseId; +@override final bool? orderLimit; +@override final int? owner; +@override final int? wallet; + +/// Create a copy of KillRequestPoultry +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$KillRequestPoultryCopyWith<_KillRequestPoultry> get copyWith => __$KillRequestPoultryCopyWithImpl<_KillRequestPoultry>(this, _$identity); + +@override +Map toJson() { + return _$KillRequestPoultryToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _KillRequestPoultry&&(identical(other.userprofile, userprofile) || other.userprofile == userprofile)&&(identical(other.address, address) || other.address == address)&&(identical(other.poultryOwner, poultryOwner) || other.poultryOwner == poultryOwner)&&(identical(other.poultryTenant, poultryTenant) || other.poultryTenant == poultryTenant)&&const DeepCollectionEquality().equals(other._hatching, _hatching)&&const DeepCollectionEquality().equals(other._registerVetHalls, _registerVetHalls)&&(identical(other.allow, allow) || other.allow == allow)&&(identical(other.provinceAllowChooseKillHouse, provinceAllowChooseKillHouse) || other.provinceAllowChooseKillHouse == provinceAllowChooseKillHouse)&&(identical(other.provinceAllowSellFree, provinceAllowSellFree) || other.provinceAllowSellFree == provinceAllowSellFree)&&(identical(other.vetFarm, vetFarm) || other.vetFarm == vetFarm)&&(identical(other.lastHatchingDiffrentRequestQuantity, lastHatchingDiffrentRequestQuantity) || other.lastHatchingDiffrentRequestQuantity == lastHatchingDiffrentRequestQuantity)&&(identical(other.userBankInfo, userBankInfo) || other.userBankInfo == userBankInfo)&&(identical(other.leftOverOwnHatching, leftOverOwnHatching) || other.leftOverOwnHatching == leftOverOwnHatching)&&(identical(other.key, key) || other.key == key)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.ownerIdForeignKey, ownerIdForeignKey) || other.ownerIdForeignKey == ownerIdForeignKey)&&(identical(other.userIdForeignKey, userIdForeignKey) || other.userIdForeignKey == userIdForeignKey)&&(identical(other.addressIdForeignKey, addressIdForeignKey) || other.addressIdForeignKey == addressIdForeignKey)&&(identical(other.hasChainCompany, hasChainCompany) || other.hasChainCompany == hasChainCompany)&&(identical(other.userBankIdForeignKey, userBankIdForeignKey) || other.userBankIdForeignKey == userBankIdForeignKey)&&(identical(other.cityOperator, cityOperator) || other.cityOperator == cityOperator)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.gisCode, gisCode) || other.gisCode == gisCode)&&(identical(other.operatingLicenceCapacity, operatingLicenceCapacity) || other.operatingLicenceCapacity == operatingLicenceCapacity)&&(identical(other.numberOfHalls, numberOfHalls) || other.numberOfHalls == numberOfHalls)&&(identical(other.tenant, tenant) || other.tenant == tenant)&&(identical(other.hasTenant, hasTenant) || other.hasTenant == hasTenant)&&(identical(other.personType, personType) || other.personType == personType)&&(identical(other.economicCode, economicCode) || other.economicCode == economicCode)&&(identical(other.systemCode, systemCode) || other.systemCode == systemCode)&&(identical(other.epidemiologicalCode, epidemiologicalCode) || other.epidemiologicalCode == epidemiologicalCode)&&(identical(other.breedingUniqueId, breedingUniqueId) || other.breedingUniqueId == breedingUniqueId)&&(identical(other.totalCapacity, totalCapacity) || other.totalCapacity == totalCapacity)&&(identical(other.licenceNumber, licenceNumber) || other.licenceNumber == licenceNumber)&&(identical(other.healthCertificateNumber, healthCertificateNumber) || other.healthCertificateNumber == healthCertificateNumber)&&(identical(other.numberOfRequests, numberOfRequests) || other.numberOfRequests == numberOfRequests)&&(identical(other.hatchingDate, hatchingDate) || other.hatchingDate == hatchingDate)&&(identical(other.lastPartyDate, lastPartyDate) || other.lastPartyDate == lastPartyDate)&&(identical(other.numberOfIncubators, numberOfIncubators) || other.numberOfIncubators == numberOfIncubators)&&(identical(other.herdAgeByDay, herdAgeByDay) || other.herdAgeByDay == herdAgeByDay)&&(identical(other.herdAgeByWeek, herdAgeByWeek) || other.herdAgeByWeek == herdAgeByWeek)&&(identical(other.numberOfParty, numberOfParty) || other.numberOfParty == numberOfParty)&&(identical(other.communicationType, communicationType) || other.communicationType == communicationType)&&(identical(other.cooperative, cooperative) || other.cooperative == cooperative)&&(identical(other.dateOfRegister, dateOfRegister) || other.dateOfRegister == dateOfRegister)&&(identical(other.unitStatus, unitStatus) || other.unitStatus == unitStatus)&&(identical(other.active, active) || other.active == active)&&(identical(other.identityDocuments, identityDocuments) || other.identityDocuments == identityDocuments)&&(identical(other.samasatUserCode, samasatUserCode) || other.samasatUserCode == samasatUserCode)&&(identical(other.baseOrder, baseOrder) || other.baseOrder == baseOrder)&&(identical(other.incubationDate, incubationDate) || other.incubationDate == incubationDate)&&(identical(other.walletAmount, walletAmount) || other.walletAmount == walletAmount)&&(identical(other.city, city) || other.city == city)&&(identical(other.cityNumber, cityNumber) || other.cityNumber == cityNumber)&&(identical(other.cityName, cityName) || other.cityName == cityName)&&(identical(other.provinceNumber, provinceNumber) || other.provinceNumber == provinceNumber)&&(identical(other.provinceName, provinceName) || other.provinceName == provinceName)&&(identical(other.walletIdForeignKey, walletIdForeignKey) || other.walletIdForeignKey == walletIdForeignKey)&&(identical(other.poultryIdKey, poultryIdKey) || other.poultryIdKey == poultryIdKey)&&(identical(other.lat, lat) || other.lat == lat)&&(identical(other.long, long) || other.long == long)&&(identical(other.date, date) || other.date == date)&&(identical(other.killingAveAge, killingAveAge) || other.killingAveAge == killingAveAge)&&(identical(other.activeLeftOver, activeLeftOver) || other.activeLeftOver == activeLeftOver)&&(identical(other.killingAveCount, killingAveCount) || other.killingAveCount == killingAveCount)&&(identical(other.killingAveWeight, killingAveWeight) || other.killingAveWeight == killingAveWeight)&&(identical(other.killingLiveWeight, killingLiveWeight) || other.killingLiveWeight == killingLiveWeight)&&(identical(other.killingCarcassesWeight, killingCarcassesWeight) || other.killingCarcassesWeight == killingCarcassesWeight)&&(identical(other.killingLossWeightPercent, killingLossWeightPercent) || other.killingLossWeightPercent == killingLossWeightPercent)&&(identical(other.realKillingAveWeight, realKillingAveWeight) || other.realKillingAveWeight == realKillingAveWeight)&&(identical(other.realKillingLiveWeight, realKillingLiveWeight) || other.realKillingLiveWeight == realKillingLiveWeight)&&(identical(other.realKillingCarcassesWeight, realKillingCarcassesWeight) || other.realKillingCarcassesWeight == realKillingCarcassesWeight)&&(identical(other.realKillingLossWeightPercent, realKillingLossWeightPercent) || other.realKillingLossWeightPercent == realKillingLossWeightPercent)&&(identical(other.interestLicenseId, interestLicenseId) || other.interestLicenseId == interestLicenseId)&&(identical(other.orderLimit, orderLimit) || other.orderLimit == orderLimit)&&(identical(other.owner, owner) || other.owner == owner)&&(identical(other.wallet, wallet) || other.wallet == wallet)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,userprofile,address,poultryOwner,poultryTenant,const DeepCollectionEquality().hash(_hatching),const DeepCollectionEquality().hash(_registerVetHalls),allow,provinceAllowChooseKillHouse,provinceAllowSellFree,vetFarm,lastHatchingDiffrentRequestQuantity,userBankInfo,leftOverOwnHatching,key,trash,ownerIdForeignKey,userIdForeignKey,addressIdForeignKey,hasChainCompany,userBankIdForeignKey,cityOperator,unitName,gisCode,operatingLicenceCapacity,numberOfHalls,tenant,hasTenant,personType,economicCode,systemCode,epidemiologicalCode,breedingUniqueId,totalCapacity,licenceNumber,healthCertificateNumber,numberOfRequests,hatchingDate,lastPartyDate,numberOfIncubators,herdAgeByDay,herdAgeByWeek,numberOfParty,communicationType,cooperative,dateOfRegister,unitStatus,active,identityDocuments,samasatUserCode,baseOrder,incubationDate,walletAmount,city,cityNumber,cityName,provinceNumber,provinceName,walletIdForeignKey,poultryIdKey,lat,long,date,killingAveAge,activeLeftOver,killingAveCount,killingAveWeight,killingLiveWeight,killingCarcassesWeight,killingLossWeightPercent,realKillingAveWeight,realKillingLiveWeight,realKillingCarcassesWeight,realKillingLossWeightPercent,interestLicenseId,orderLimit,owner,wallet]); + +@override +String toString() { + return 'KillRequestPoultry(userprofile: $userprofile, address: $address, poultryOwner: $poultryOwner, poultryTenant: $poultryTenant, hatching: $hatching, registerVetHalls: $registerVetHalls, allow: $allow, provinceAllowChooseKillHouse: $provinceAllowChooseKillHouse, provinceAllowSellFree: $provinceAllowSellFree, vetFarm: $vetFarm, lastHatchingDiffrentRequestQuantity: $lastHatchingDiffrentRequestQuantity, userBankInfo: $userBankInfo, leftOverOwnHatching: $leftOverOwnHatching, key: $key, trash: $trash, ownerIdForeignKey: $ownerIdForeignKey, userIdForeignKey: $userIdForeignKey, addressIdForeignKey: $addressIdForeignKey, hasChainCompany: $hasChainCompany, userBankIdForeignKey: $userBankIdForeignKey, cityOperator: $cityOperator, unitName: $unitName, gisCode: $gisCode, operatingLicenceCapacity: $operatingLicenceCapacity, numberOfHalls: $numberOfHalls, tenant: $tenant, hasTenant: $hasTenant, personType: $personType, economicCode: $economicCode, systemCode: $systemCode, epidemiologicalCode: $epidemiologicalCode, breedingUniqueId: $breedingUniqueId, totalCapacity: $totalCapacity, licenceNumber: $licenceNumber, healthCertificateNumber: $healthCertificateNumber, numberOfRequests: $numberOfRequests, hatchingDate: $hatchingDate, lastPartyDate: $lastPartyDate, numberOfIncubators: $numberOfIncubators, herdAgeByDay: $herdAgeByDay, herdAgeByWeek: $herdAgeByWeek, numberOfParty: $numberOfParty, communicationType: $communicationType, cooperative: $cooperative, dateOfRegister: $dateOfRegister, unitStatus: $unitStatus, active: $active, identityDocuments: $identityDocuments, samasatUserCode: $samasatUserCode, baseOrder: $baseOrder, incubationDate: $incubationDate, walletAmount: $walletAmount, city: $city, cityNumber: $cityNumber, cityName: $cityName, provinceNumber: $provinceNumber, provinceName: $provinceName, walletIdForeignKey: $walletIdForeignKey, poultryIdKey: $poultryIdKey, lat: $lat, long: $long, date: $date, killingAveAge: $killingAveAge, activeLeftOver: $activeLeftOver, killingAveCount: $killingAveCount, killingAveWeight: $killingAveWeight, killingLiveWeight: $killingLiveWeight, killingCarcassesWeight: $killingCarcassesWeight, killingLossWeightPercent: $killingLossWeightPercent, realKillingAveWeight: $realKillingAveWeight, realKillingLiveWeight: $realKillingLiveWeight, realKillingCarcassesWeight: $realKillingCarcassesWeight, realKillingLossWeightPercent: $realKillingLossWeightPercent, interestLicenseId: $interestLicenseId, orderLimit: $orderLimit, owner: $owner, wallet: $wallet)'; +} + + +} + +/// @nodoc +abstract mixin class _$KillRequestPoultryCopyWith<$Res> implements $KillRequestPoultryCopyWith<$Res> { + factory _$KillRequestPoultryCopyWith(_KillRequestPoultry value, $Res Function(_KillRequestPoultry) _then) = __$KillRequestPoultryCopyWithImpl; +@override @useResult +$Res call({ + UserProfile? userprofile, Address? address, PoultryOwner? poultryOwner, PoultryTenant? poultryTenant, List? hatching, List? registerVetHalls, Allow? allow, ProvinceAllowChooseKillHouse? provinceAllowChooseKillHouse, bool? provinceAllowSellFree, VetFarm? vetFarm, LastHatchingDifferentRequestQuantity? lastHatchingDiffrentRequestQuantity, UserBankInfo? userBankInfo, int? leftOverOwnHatching, String? key, bool? trash, int? ownerIdForeignKey, int? userIdForeignKey, int? addressIdForeignKey, bool? hasChainCompany, int? userBankIdForeignKey, String? cityOperator, String? unitName, String? gisCode, int? operatingLicenceCapacity, int? numberOfHalls, bool? tenant, bool? hasTenant, String? personType, String? economicCode, String? systemCode, String? epidemiologicalCode, String? breedingUniqueId, int? totalCapacity, String? licenceNumber, String? healthCertificateNumber, int? numberOfRequests, String? hatchingDate, String? lastPartyDate, int? numberOfIncubators, int? herdAgeByDay, int? herdAgeByWeek, int? numberOfParty, String? communicationType, String? cooperative, String? dateOfRegister, String? unitStatus, bool? active, String? identityDocuments, String? samasatUserCode, int? baseOrder, String? incubationDate, int? walletAmount, int? city, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, int? walletIdForeignKey, int? poultryIdKey, double? lat, double? long, String? date, int? killingAveAge, int? activeLeftOver, int? killingAveCount, double? killingAveWeight, double? killingLiveWeight, double? killingCarcassesWeight, double? killingLossWeightPercent, double? realKillingAveWeight, double? realKillingLiveWeight, double? realKillingCarcassesWeight, double? realKillingLossWeightPercent, int? interestLicenseId, bool? orderLimit, int? owner, int? wallet +}); + + +@override $UserProfileCopyWith<$Res>? get userprofile;@override $AddressCopyWith<$Res>? get address;@override $PoultryOwnerCopyWith<$Res>? get poultryOwner;@override $PoultryTenantCopyWith<$Res>? get poultryTenant;@override $AllowCopyWith<$Res>? get allow;@override $ProvinceAllowChooseKillHouseCopyWith<$Res>? get provinceAllowChooseKillHouse;@override $VetFarmCopyWith<$Res>? get vetFarm;@override $LastHatchingDifferentRequestQuantityCopyWith<$Res>? get lastHatchingDiffrentRequestQuantity;@override $UserBankInfoCopyWith<$Res>? get userBankInfo; + +} +/// @nodoc +class __$KillRequestPoultryCopyWithImpl<$Res> + implements _$KillRequestPoultryCopyWith<$Res> { + __$KillRequestPoultryCopyWithImpl(this._self, this._then); + + final _KillRequestPoultry _self; + final $Res Function(_KillRequestPoultry) _then; + +/// Create a copy of KillRequestPoultry +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? userprofile = freezed,Object? address = freezed,Object? poultryOwner = freezed,Object? poultryTenant = freezed,Object? hatching = freezed,Object? registerVetHalls = freezed,Object? allow = freezed,Object? provinceAllowChooseKillHouse = freezed,Object? provinceAllowSellFree = freezed,Object? vetFarm = freezed,Object? lastHatchingDiffrentRequestQuantity = freezed,Object? userBankInfo = freezed,Object? leftOverOwnHatching = freezed,Object? key = freezed,Object? trash = freezed,Object? ownerIdForeignKey = freezed,Object? userIdForeignKey = freezed,Object? addressIdForeignKey = freezed,Object? hasChainCompany = freezed,Object? userBankIdForeignKey = freezed,Object? cityOperator = freezed,Object? unitName = freezed,Object? gisCode = freezed,Object? operatingLicenceCapacity = freezed,Object? numberOfHalls = freezed,Object? tenant = freezed,Object? hasTenant = freezed,Object? personType = freezed,Object? economicCode = freezed,Object? systemCode = freezed,Object? epidemiologicalCode = freezed,Object? breedingUniqueId = freezed,Object? totalCapacity = freezed,Object? licenceNumber = freezed,Object? healthCertificateNumber = freezed,Object? numberOfRequests = freezed,Object? hatchingDate = freezed,Object? lastPartyDate = freezed,Object? numberOfIncubators = freezed,Object? herdAgeByDay = freezed,Object? herdAgeByWeek = freezed,Object? numberOfParty = freezed,Object? communicationType = freezed,Object? cooperative = freezed,Object? dateOfRegister = freezed,Object? unitStatus = freezed,Object? active = freezed,Object? identityDocuments = freezed,Object? samasatUserCode = freezed,Object? baseOrder = freezed,Object? incubationDate = freezed,Object? walletAmount = freezed,Object? city = freezed,Object? cityNumber = freezed,Object? cityName = freezed,Object? provinceNumber = freezed,Object? provinceName = freezed,Object? walletIdForeignKey = freezed,Object? poultryIdKey = freezed,Object? lat = freezed,Object? long = freezed,Object? date = freezed,Object? killingAveAge = freezed,Object? activeLeftOver = freezed,Object? killingAveCount = freezed,Object? killingAveWeight = freezed,Object? killingLiveWeight = freezed,Object? killingCarcassesWeight = freezed,Object? killingLossWeightPercent = freezed,Object? realKillingAveWeight = freezed,Object? realKillingLiveWeight = freezed,Object? realKillingCarcassesWeight = freezed,Object? realKillingLossWeightPercent = freezed,Object? interestLicenseId = freezed,Object? orderLimit = freezed,Object? owner = freezed,Object? wallet = freezed,}) { + return _then(_KillRequestPoultry( +userprofile: freezed == userprofile ? _self.userprofile : userprofile // ignore: cast_nullable_to_non_nullable +as UserProfile?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable +as Address?,poultryOwner: freezed == poultryOwner ? _self.poultryOwner : poultryOwner // ignore: cast_nullable_to_non_nullable +as PoultryOwner?,poultryTenant: freezed == poultryTenant ? _self.poultryTenant : poultryTenant // ignore: cast_nullable_to_non_nullable +as PoultryTenant?,hatching: freezed == hatching ? _self._hatching : hatching // ignore: cast_nullable_to_non_nullable +as List?,registerVetHalls: freezed == registerVetHalls ? _self._registerVetHalls : registerVetHalls // ignore: cast_nullable_to_non_nullable +as List?,allow: freezed == allow ? _self.allow : allow // ignore: cast_nullable_to_non_nullable +as Allow?,provinceAllowChooseKillHouse: freezed == provinceAllowChooseKillHouse ? _self.provinceAllowChooseKillHouse : provinceAllowChooseKillHouse // ignore: cast_nullable_to_non_nullable +as ProvinceAllowChooseKillHouse?,provinceAllowSellFree: freezed == provinceAllowSellFree ? _self.provinceAllowSellFree : provinceAllowSellFree // ignore: cast_nullable_to_non_nullable +as bool?,vetFarm: freezed == vetFarm ? _self.vetFarm : vetFarm // ignore: cast_nullable_to_non_nullable +as VetFarm?,lastHatchingDiffrentRequestQuantity: freezed == lastHatchingDiffrentRequestQuantity ? _self.lastHatchingDiffrentRequestQuantity : lastHatchingDiffrentRequestQuantity // ignore: cast_nullable_to_non_nullable +as LastHatchingDifferentRequestQuantity?,userBankInfo: freezed == userBankInfo ? _self.userBankInfo : userBankInfo // ignore: cast_nullable_to_non_nullable +as UserBankInfo?,leftOverOwnHatching: freezed == leftOverOwnHatching ? _self.leftOverOwnHatching : leftOverOwnHatching // ignore: cast_nullable_to_non_nullable +as int?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable +as bool?,ownerIdForeignKey: freezed == ownerIdForeignKey ? _self.ownerIdForeignKey : ownerIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,userIdForeignKey: freezed == userIdForeignKey ? _self.userIdForeignKey : userIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,addressIdForeignKey: freezed == addressIdForeignKey ? _self.addressIdForeignKey : addressIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,hasChainCompany: freezed == hasChainCompany ? _self.hasChainCompany : hasChainCompany // ignore: cast_nullable_to_non_nullable +as bool?,userBankIdForeignKey: freezed == userBankIdForeignKey ? _self.userBankIdForeignKey : userBankIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,cityOperator: freezed == cityOperator ? _self.cityOperator : cityOperator // ignore: cast_nullable_to_non_nullable +as String?,unitName: freezed == unitName ? _self.unitName : unitName // ignore: cast_nullable_to_non_nullable +as String?,gisCode: freezed == gisCode ? _self.gisCode : gisCode // ignore: cast_nullable_to_non_nullable +as String?,operatingLicenceCapacity: freezed == operatingLicenceCapacity ? _self.operatingLicenceCapacity : operatingLicenceCapacity // ignore: cast_nullable_to_non_nullable +as int?,numberOfHalls: freezed == numberOfHalls ? _self.numberOfHalls : numberOfHalls // ignore: cast_nullable_to_non_nullable +as int?,tenant: freezed == tenant ? _self.tenant : tenant // ignore: cast_nullable_to_non_nullable +as bool?,hasTenant: freezed == hasTenant ? _self.hasTenant : hasTenant // ignore: cast_nullable_to_non_nullable +as bool?,personType: freezed == personType ? _self.personType : personType // ignore: cast_nullable_to_non_nullable +as String?,economicCode: freezed == economicCode ? _self.economicCode : economicCode // ignore: cast_nullable_to_non_nullable +as String?,systemCode: freezed == systemCode ? _self.systemCode : systemCode // ignore: cast_nullable_to_non_nullable +as String?,epidemiologicalCode: freezed == epidemiologicalCode ? _self.epidemiologicalCode : epidemiologicalCode // ignore: cast_nullable_to_non_nullable +as String?,breedingUniqueId: freezed == breedingUniqueId ? _self.breedingUniqueId : breedingUniqueId // ignore: cast_nullable_to_non_nullable +as String?,totalCapacity: freezed == totalCapacity ? _self.totalCapacity : totalCapacity // ignore: cast_nullable_to_non_nullable +as int?,licenceNumber: freezed == licenceNumber ? _self.licenceNumber : licenceNumber // ignore: cast_nullable_to_non_nullable +as String?,healthCertificateNumber: freezed == healthCertificateNumber ? _self.healthCertificateNumber : healthCertificateNumber // ignore: cast_nullable_to_non_nullable +as String?,numberOfRequests: freezed == numberOfRequests ? _self.numberOfRequests : numberOfRequests // ignore: cast_nullable_to_non_nullable +as int?,hatchingDate: freezed == hatchingDate ? _self.hatchingDate : hatchingDate // ignore: cast_nullable_to_non_nullable +as String?,lastPartyDate: freezed == lastPartyDate ? _self.lastPartyDate : lastPartyDate // ignore: cast_nullable_to_non_nullable +as String?,numberOfIncubators: freezed == numberOfIncubators ? _self.numberOfIncubators : numberOfIncubators // ignore: cast_nullable_to_non_nullable +as int?,herdAgeByDay: freezed == herdAgeByDay ? _self.herdAgeByDay : herdAgeByDay // ignore: cast_nullable_to_non_nullable +as int?,herdAgeByWeek: freezed == herdAgeByWeek ? _self.herdAgeByWeek : herdAgeByWeek // ignore: cast_nullable_to_non_nullable +as int?,numberOfParty: freezed == numberOfParty ? _self.numberOfParty : numberOfParty // ignore: cast_nullable_to_non_nullable +as int?,communicationType: freezed == communicationType ? _self.communicationType : communicationType // ignore: cast_nullable_to_non_nullable +as String?,cooperative: freezed == cooperative ? _self.cooperative : cooperative // ignore: cast_nullable_to_non_nullable +as String?,dateOfRegister: freezed == dateOfRegister ? _self.dateOfRegister : dateOfRegister // ignore: cast_nullable_to_non_nullable +as String?,unitStatus: freezed == unitStatus ? _self.unitStatus : unitStatus // ignore: cast_nullable_to_non_nullable +as String?,active: freezed == active ? _self.active : active // ignore: cast_nullable_to_non_nullable +as bool?,identityDocuments: freezed == identityDocuments ? _self.identityDocuments : identityDocuments // ignore: cast_nullable_to_non_nullable +as String?,samasatUserCode: freezed == samasatUserCode ? _self.samasatUserCode : samasatUserCode // ignore: cast_nullable_to_non_nullable +as String?,baseOrder: freezed == baseOrder ? _self.baseOrder : baseOrder // ignore: cast_nullable_to_non_nullable +as int?,incubationDate: freezed == incubationDate ? _self.incubationDate : incubationDate // ignore: cast_nullable_to_non_nullable +as String?,walletAmount: freezed == walletAmount ? _self.walletAmount : walletAmount // ignore: cast_nullable_to_non_nullable +as int?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as int?,cityNumber: freezed == cityNumber ? _self.cityNumber : cityNumber // ignore: cast_nullable_to_non_nullable +as int?,cityName: freezed == cityName ? _self.cityName : cityName // ignore: cast_nullable_to_non_nullable +as String?,provinceNumber: freezed == provinceNumber ? _self.provinceNumber : provinceNumber // ignore: cast_nullable_to_non_nullable +as int?,provinceName: freezed == provinceName ? _self.provinceName : provinceName // ignore: cast_nullable_to_non_nullable +as String?,walletIdForeignKey: freezed == walletIdForeignKey ? _self.walletIdForeignKey : walletIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,poultryIdKey: freezed == poultryIdKey ? _self.poultryIdKey : poultryIdKey // ignore: cast_nullable_to_non_nullable +as int?,lat: freezed == lat ? _self.lat : lat // ignore: cast_nullable_to_non_nullable +as double?,long: freezed == long ? _self.long : long // ignore: cast_nullable_to_non_nullable +as double?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?,killingAveAge: freezed == killingAveAge ? _self.killingAveAge : killingAveAge // ignore: cast_nullable_to_non_nullable +as int?,activeLeftOver: freezed == activeLeftOver ? _self.activeLeftOver : activeLeftOver // ignore: cast_nullable_to_non_nullable +as int?,killingAveCount: freezed == killingAveCount ? _self.killingAveCount : killingAveCount // ignore: cast_nullable_to_non_nullable +as int?,killingAveWeight: freezed == killingAveWeight ? _self.killingAveWeight : killingAveWeight // ignore: cast_nullable_to_non_nullable +as double?,killingLiveWeight: freezed == killingLiveWeight ? _self.killingLiveWeight : killingLiveWeight // ignore: cast_nullable_to_non_nullable +as double?,killingCarcassesWeight: freezed == killingCarcassesWeight ? _self.killingCarcassesWeight : killingCarcassesWeight // ignore: cast_nullable_to_non_nullable +as double?,killingLossWeightPercent: freezed == killingLossWeightPercent ? _self.killingLossWeightPercent : killingLossWeightPercent // ignore: cast_nullable_to_non_nullable +as double?,realKillingAveWeight: freezed == realKillingAveWeight ? _self.realKillingAveWeight : realKillingAveWeight // ignore: cast_nullable_to_non_nullable +as double?,realKillingLiveWeight: freezed == realKillingLiveWeight ? _self.realKillingLiveWeight : realKillingLiveWeight // ignore: cast_nullable_to_non_nullable +as double?,realKillingCarcassesWeight: freezed == realKillingCarcassesWeight ? _self.realKillingCarcassesWeight : realKillingCarcassesWeight // ignore: cast_nullable_to_non_nullable +as double?,realKillingLossWeightPercent: freezed == realKillingLossWeightPercent ? _self.realKillingLossWeightPercent : realKillingLossWeightPercent // ignore: cast_nullable_to_non_nullable +as double?,interestLicenseId: freezed == interestLicenseId ? _self.interestLicenseId : interestLicenseId // ignore: cast_nullable_to_non_nullable +as int?,orderLimit: freezed == orderLimit ? _self.orderLimit : orderLimit // ignore: cast_nullable_to_non_nullable +as bool?,owner: freezed == owner ? _self.owner : owner // ignore: cast_nullable_to_non_nullable +as int?,wallet: freezed == wallet ? _self.wallet : wallet // ignore: cast_nullable_to_non_nullable +as int?, + )); +} + +/// Create a copy of KillRequestPoultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$UserProfileCopyWith<$Res>? get userprofile { + if (_self.userprofile == null) { + return null; + } + + return $UserProfileCopyWith<$Res>(_self.userprofile!, (value) { + return _then(_self.copyWith(userprofile: value)); + }); +}/// Create a copy of KillRequestPoultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$AddressCopyWith<$Res>? get address { + if (_self.address == null) { + return null; + } + + return $AddressCopyWith<$Res>(_self.address!, (value) { + return _then(_self.copyWith(address: value)); + }); +}/// Create a copy of KillRequestPoultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$PoultryOwnerCopyWith<$Res>? get poultryOwner { + if (_self.poultryOwner == null) { + return null; + } + + return $PoultryOwnerCopyWith<$Res>(_self.poultryOwner!, (value) { + return _then(_self.copyWith(poultryOwner: value)); + }); +}/// Create a copy of KillRequestPoultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$PoultryTenantCopyWith<$Res>? get poultryTenant { + if (_self.poultryTenant == null) { + return null; + } + + return $PoultryTenantCopyWith<$Res>(_self.poultryTenant!, (value) { + return _then(_self.copyWith(poultryTenant: value)); + }); +}/// Create a copy of KillRequestPoultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$AllowCopyWith<$Res>? get allow { + if (_self.allow == null) { + return null; + } + + return $AllowCopyWith<$Res>(_self.allow!, (value) { + return _then(_self.copyWith(allow: value)); + }); +}/// Create a copy of KillRequestPoultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ProvinceAllowChooseKillHouseCopyWith<$Res>? get provinceAllowChooseKillHouse { + if (_self.provinceAllowChooseKillHouse == null) { + return null; + } + + return $ProvinceAllowChooseKillHouseCopyWith<$Res>(_self.provinceAllowChooseKillHouse!, (value) { + return _then(_self.copyWith(provinceAllowChooseKillHouse: value)); + }); +}/// Create a copy of KillRequestPoultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$VetFarmCopyWith<$Res>? get vetFarm { + if (_self.vetFarm == null) { + return null; + } + + return $VetFarmCopyWith<$Res>(_self.vetFarm!, (value) { + return _then(_self.copyWith(vetFarm: value)); + }); +}/// Create a copy of KillRequestPoultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$LastHatchingDifferentRequestQuantityCopyWith<$Res>? get lastHatchingDiffrentRequestQuantity { + if (_self.lastHatchingDiffrentRequestQuantity == null) { + return null; + } + + return $LastHatchingDifferentRequestQuantityCopyWith<$Res>(_self.lastHatchingDiffrentRequestQuantity!, (value) { + return _then(_self.copyWith(lastHatchingDiffrentRequestQuantity: value)); + }); +}/// Create a copy of KillRequestPoultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$UserBankInfoCopyWith<$Res>? get userBankInfo { + if (_self.userBankInfo == null) { + return null; + } + + return $UserBankInfoCopyWith<$Res>(_self.userBankInfo!, (value) { + return _then(_self.copyWith(userBankInfo: value)); + }); +} +} + + +/// @nodoc +mixin _$UserProfile { + + String? get userKey; int? get baseOrder; String? get fullName; String? get mobile; String? get city; String? get province; String? get breedingUniqueId; +/// Create a copy of UserProfile +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$UserProfileCopyWith get copyWith => _$UserProfileCopyWithImpl(this as UserProfile, _$identity); + + /// Serializes this UserProfile to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is UserProfile&&(identical(other.userKey, userKey) || other.userKey == userKey)&&(identical(other.baseOrder, baseOrder) || other.baseOrder == baseOrder)&&(identical(other.fullName, fullName) || other.fullName == fullName)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.city, city) || other.city == city)&&(identical(other.province, province) || other.province == province)&&(identical(other.breedingUniqueId, breedingUniqueId) || other.breedingUniqueId == breedingUniqueId)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,userKey,baseOrder,fullName,mobile,city,province,breedingUniqueId); + +@override +String toString() { + return 'UserProfile(userKey: $userKey, baseOrder: $baseOrder, fullName: $fullName, mobile: $mobile, city: $city, province: $province, breedingUniqueId: $breedingUniqueId)'; +} + + +} + +/// @nodoc +abstract mixin class $UserProfileCopyWith<$Res> { + factory $UserProfileCopyWith(UserProfile value, $Res Function(UserProfile) _then) = _$UserProfileCopyWithImpl; +@useResult +$Res call({ + String? userKey, int? baseOrder, String? fullName, String? mobile, String? city, String? province, String? breedingUniqueId +}); + + + + +} +/// @nodoc +class _$UserProfileCopyWithImpl<$Res> + implements $UserProfileCopyWith<$Res> { + _$UserProfileCopyWithImpl(this._self, this._then); + + final UserProfile _self; + final $Res Function(UserProfile) _then; + +/// Create a copy of UserProfile +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? userKey = freezed,Object? baseOrder = freezed,Object? fullName = freezed,Object? mobile = freezed,Object? city = freezed,Object? province = freezed,Object? breedingUniqueId = freezed,}) { + return _then(_self.copyWith( +userKey: freezed == userKey ? _self.userKey : userKey // ignore: cast_nullable_to_non_nullable +as String?,baseOrder: freezed == baseOrder ? _self.baseOrder : baseOrder // ignore: cast_nullable_to_non_nullable +as int?,fullName: freezed == fullName ? _self.fullName : fullName // ignore: cast_nullable_to_non_nullable +as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as String?,breedingUniqueId: freezed == breedingUniqueId ? _self.breedingUniqueId : breedingUniqueId // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [UserProfile]. +extension UserProfilePatterns on UserProfile { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _UserProfile value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _UserProfile() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _UserProfile value) $default,){ +final _that = this; +switch (_that) { +case _UserProfile(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _UserProfile value)? $default,){ +final _that = this; +switch (_that) { +case _UserProfile() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? userKey, int? baseOrder, String? fullName, String? mobile, String? city, String? province, String? breedingUniqueId)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _UserProfile() when $default != null: +return $default(_that.userKey,_that.baseOrder,_that.fullName,_that.mobile,_that.city,_that.province,_that.breedingUniqueId);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? userKey, int? baseOrder, String? fullName, String? mobile, String? city, String? province, String? breedingUniqueId) $default,) {final _that = this; +switch (_that) { +case _UserProfile(): +return $default(_that.userKey,_that.baseOrder,_that.fullName,_that.mobile,_that.city,_that.province,_that.breedingUniqueId);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? userKey, int? baseOrder, String? fullName, String? mobile, String? city, String? province, String? breedingUniqueId)? $default,) {final _that = this; +switch (_that) { +case _UserProfile() when $default != null: +return $default(_that.userKey,_that.baseOrder,_that.fullName,_that.mobile,_that.city,_that.province,_that.breedingUniqueId);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _UserProfile implements UserProfile { + const _UserProfile({this.userKey, this.baseOrder, this.fullName, this.mobile, this.city, this.province, this.breedingUniqueId}); + factory _UserProfile.fromJson(Map json) => _$UserProfileFromJson(json); + +@override final String? userKey; +@override final int? baseOrder; +@override final String? fullName; +@override final String? mobile; +@override final String? city; +@override final String? province; +@override final String? breedingUniqueId; + +/// Create a copy of UserProfile +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$UserProfileCopyWith<_UserProfile> get copyWith => __$UserProfileCopyWithImpl<_UserProfile>(this, _$identity); + +@override +Map toJson() { + return _$UserProfileToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _UserProfile&&(identical(other.userKey, userKey) || other.userKey == userKey)&&(identical(other.baseOrder, baseOrder) || other.baseOrder == baseOrder)&&(identical(other.fullName, fullName) || other.fullName == fullName)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.city, city) || other.city == city)&&(identical(other.province, province) || other.province == province)&&(identical(other.breedingUniqueId, breedingUniqueId) || other.breedingUniqueId == breedingUniqueId)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,userKey,baseOrder,fullName,mobile,city,province,breedingUniqueId); + +@override +String toString() { + return 'UserProfile(userKey: $userKey, baseOrder: $baseOrder, fullName: $fullName, mobile: $mobile, city: $city, province: $province, breedingUniqueId: $breedingUniqueId)'; +} + + +} + +/// @nodoc +abstract mixin class _$UserProfileCopyWith<$Res> implements $UserProfileCopyWith<$Res> { + factory _$UserProfileCopyWith(_UserProfile value, $Res Function(_UserProfile) _then) = __$UserProfileCopyWithImpl; +@override @useResult +$Res call({ + String? userKey, int? baseOrder, String? fullName, String? mobile, String? city, String? province, String? breedingUniqueId +}); + + + + +} +/// @nodoc +class __$UserProfileCopyWithImpl<$Res> + implements _$UserProfileCopyWith<$Res> { + __$UserProfileCopyWithImpl(this._self, this._then); + + final _UserProfile _self; + final $Res Function(_UserProfile) _then; + +/// Create a copy of UserProfile +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? userKey = freezed,Object? baseOrder = freezed,Object? fullName = freezed,Object? mobile = freezed,Object? city = freezed,Object? province = freezed,Object? breedingUniqueId = freezed,}) { + return _then(_UserProfile( +userKey: freezed == userKey ? _self.userKey : userKey // ignore: cast_nullable_to_non_nullable +as String?,baseOrder: freezed == baseOrder ? _self.baseOrder : baseOrder // ignore: cast_nullable_to_non_nullable +as int?,fullName: freezed == fullName ? _self.fullName : fullName // ignore: cast_nullable_to_non_nullable +as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as String?,breedingUniqueId: freezed == breedingUniqueId ? _self.breedingUniqueId : breedingUniqueId // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$Address { + + Province? get province; City? get city; String? get address; String? get postalCode; +/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$AddressCopyWith
get copyWith => _$AddressCopyWithImpl
(this as Address, _$identity); + + /// Serializes this Address to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is Address&&(identical(other.province, province) || other.province == province)&&(identical(other.city, city) || other.city == city)&&(identical(other.address, address) || other.address == address)&&(identical(other.postalCode, postalCode) || other.postalCode == postalCode)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,province,city,address,postalCode); + +@override +String toString() { + return 'Address(province: $province, city: $city, address: $address, postalCode: $postalCode)'; +} + + +} + +/// @nodoc +abstract mixin class $AddressCopyWith<$Res> { + factory $AddressCopyWith(Address value, $Res Function(Address) _then) = _$AddressCopyWithImpl; +@useResult +$Res call({ + Province? province, City? city, String? address, String? postalCode +}); + + +$ProvinceCopyWith<$Res>? get province;$CityCopyWith<$Res>? get city; + +} +/// @nodoc +class _$AddressCopyWithImpl<$Res> + implements $AddressCopyWith<$Res> { + _$AddressCopyWithImpl(this._self, this._then); + + final Address _self; + final $Res Function(Address) _then; + +/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? province = freezed,Object? city = freezed,Object? address = freezed,Object? postalCode = freezed,}) { + return _then(_self.copyWith( +province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as Province?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as City?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable +as String?,postalCode: freezed == postalCode ? _self.postalCode : postalCode // ignore: cast_nullable_to_non_nullable +as String?, + )); +} +/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ProvinceCopyWith<$Res>? get province { + if (_self.province == null) { + return null; + } + + return $ProvinceCopyWith<$Res>(_self.province!, (value) { + return _then(_self.copyWith(province: value)); + }); +}/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$CityCopyWith<$Res>? get city { + if (_self.city == null) { + return null; + } + + return $CityCopyWith<$Res>(_self.city!, (value) { + return _then(_self.copyWith(city: value)); + }); +} +} + + +/// Adds pattern-matching-related methods to [Address]. +extension AddressPatterns on Address { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _Address value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _Address() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _Address value) $default,){ +final _that = this; +switch (_that) { +case _Address(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _Address value)? $default,){ +final _that = this; +switch (_that) { +case _Address() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( Province? province, City? city, String? address, String? postalCode)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _Address() when $default != null: +return $default(_that.province,_that.city,_that.address,_that.postalCode);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( Province? province, City? city, String? address, String? postalCode) $default,) {final _that = this; +switch (_that) { +case _Address(): +return $default(_that.province,_that.city,_that.address,_that.postalCode);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( Province? province, City? city, String? address, String? postalCode)? $default,) {final _that = this; +switch (_that) { +case _Address() when $default != null: +return $default(_that.province,_that.city,_that.address,_that.postalCode);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _Address implements Address { + const _Address({this.province, this.city, this.address, this.postalCode}); + factory _Address.fromJson(Map json) => _$AddressFromJson(json); + +@override final Province? province; +@override final City? city; +@override final String? address; +@override final String? postalCode; + +/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$AddressCopyWith<_Address> get copyWith => __$AddressCopyWithImpl<_Address>(this, _$identity); + +@override +Map toJson() { + return _$AddressToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Address&&(identical(other.province, province) || other.province == province)&&(identical(other.city, city) || other.city == city)&&(identical(other.address, address) || other.address == address)&&(identical(other.postalCode, postalCode) || other.postalCode == postalCode)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,province,city,address,postalCode); + +@override +String toString() { + return 'Address(province: $province, city: $city, address: $address, postalCode: $postalCode)'; +} + + +} + +/// @nodoc +abstract mixin class _$AddressCopyWith<$Res> implements $AddressCopyWith<$Res> { + factory _$AddressCopyWith(_Address value, $Res Function(_Address) _then) = __$AddressCopyWithImpl; +@override @useResult +$Res call({ + Province? province, City? city, String? address, String? postalCode +}); + + +@override $ProvinceCopyWith<$Res>? get province;@override $CityCopyWith<$Res>? get city; + +} +/// @nodoc +class __$AddressCopyWithImpl<$Res> + implements _$AddressCopyWith<$Res> { + __$AddressCopyWithImpl(this._self, this._then); + + final _Address _self; + final $Res Function(_Address) _then; + +/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? province = freezed,Object? city = freezed,Object? address = freezed,Object? postalCode = freezed,}) { + return _then(_Address( +province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as Province?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as City?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable +as String?,postalCode: freezed == postalCode ? _self.postalCode : postalCode // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ProvinceCopyWith<$Res>? get province { + if (_self.province == null) { + return null; + } + + return $ProvinceCopyWith<$Res>(_self.province!, (value) { + return _then(_self.copyWith(province: value)); + }); +}/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$CityCopyWith<$Res>? get city { + if (_self.city == null) { + return null; + } + + return $CityCopyWith<$Res>(_self.city!, (value) { + return _then(_self.copyWith(city: value)); + }); +} +} + + +/// @nodoc +mixin _$Province { + + String? get key; String? get name; +/// Create a copy of Province +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ProvinceCopyWith get copyWith => _$ProvinceCopyWithImpl(this as Province, _$identity); + + /// Serializes this Province to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is Province&&(identical(other.key, key) || other.key == key)&&(identical(other.name, name) || other.name == name)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,name); + +@override +String toString() { + return 'Province(key: $key, name: $name)'; +} + + +} + +/// @nodoc +abstract mixin class $ProvinceCopyWith<$Res> { + factory $ProvinceCopyWith(Province value, $Res Function(Province) _then) = _$ProvinceCopyWithImpl; +@useResult +$Res call({ + String? key, String? name +}); + + + + +} +/// @nodoc +class _$ProvinceCopyWithImpl<$Res> + implements $ProvinceCopyWith<$Res> { + _$ProvinceCopyWithImpl(this._self, this._then); + + final Province _self; + final $Res Function(Province) _then; + +/// Create a copy of Province +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? key = freezed,Object? name = freezed,}) { + return _then(_self.copyWith( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [Province]. +extension ProvincePatterns on Province { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _Province value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _Province() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _Province value) $default,){ +final _that = this; +switch (_that) { +case _Province(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _Province value)? $default,){ +final _that = this; +switch (_that) { +case _Province() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? key, String? name)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _Province() when $default != null: +return $default(_that.key,_that.name);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? key, String? name) $default,) {final _that = this; +switch (_that) { +case _Province(): +return $default(_that.key,_that.name);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? key, String? name)? $default,) {final _that = this; +switch (_that) { +case _Province() when $default != null: +return $default(_that.key,_that.name);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _Province implements Province { + const _Province({this.key, this.name}); + factory _Province.fromJson(Map json) => _$ProvinceFromJson(json); + +@override final String? key; +@override final String? name; + +/// Create a copy of Province +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ProvinceCopyWith<_Province> get copyWith => __$ProvinceCopyWithImpl<_Province>(this, _$identity); + +@override +Map toJson() { + return _$ProvinceToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Province&&(identical(other.key, key) || other.key == key)&&(identical(other.name, name) || other.name == name)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,name); + +@override +String toString() { + return 'Province(key: $key, name: $name)'; +} + + +} + +/// @nodoc +abstract mixin class _$ProvinceCopyWith<$Res> implements $ProvinceCopyWith<$Res> { + factory _$ProvinceCopyWith(_Province value, $Res Function(_Province) _then) = __$ProvinceCopyWithImpl; +@override @useResult +$Res call({ + String? key, String? name +}); + + + + +} +/// @nodoc +class __$ProvinceCopyWithImpl<$Res> + implements _$ProvinceCopyWith<$Res> { + __$ProvinceCopyWithImpl(this._self, this._then); + + final _Province _self; + final $Res Function(_Province) _then; + +/// Create a copy of Province +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? key = freezed,Object? name = freezed,}) { + return _then(_Province( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$City { + + String? get key; String? get name; +/// Create a copy of City +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$CityCopyWith get copyWith => _$CityCopyWithImpl(this as City, _$identity); + + /// Serializes this City to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is City&&(identical(other.key, key) || other.key == key)&&(identical(other.name, name) || other.name == name)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,name); + +@override +String toString() { + return 'City(key: $key, name: $name)'; +} + + +} + +/// @nodoc +abstract mixin class $CityCopyWith<$Res> { + factory $CityCopyWith(City value, $Res Function(City) _then) = _$CityCopyWithImpl; +@useResult +$Res call({ + String? key, String? name +}); + + + + +} +/// @nodoc +class _$CityCopyWithImpl<$Res> + implements $CityCopyWith<$Res> { + _$CityCopyWithImpl(this._self, this._then); + + final City _self; + final $Res Function(City) _then; + +/// Create a copy of City +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? key = freezed,Object? name = freezed,}) { + return _then(_self.copyWith( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [City]. +extension CityPatterns on City { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _City value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _City() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _City value) $default,){ +final _that = this; +switch (_that) { +case _City(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _City value)? $default,){ +final _that = this; +switch (_that) { +case _City() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? key, String? name)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _City() when $default != null: +return $default(_that.key,_that.name);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? key, String? name) $default,) {final _that = this; +switch (_that) { +case _City(): +return $default(_that.key,_that.name);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? key, String? name)? $default,) {final _that = this; +switch (_that) { +case _City() when $default != null: +return $default(_that.key,_that.name);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _City implements City { + const _City({this.key, this.name}); + factory _City.fromJson(Map json) => _$CityFromJson(json); + +@override final String? key; +@override final String? name; + +/// Create a copy of City +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$CityCopyWith<_City> get copyWith => __$CityCopyWithImpl<_City>(this, _$identity); + +@override +Map toJson() { + return _$CityToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _City&&(identical(other.key, key) || other.key == key)&&(identical(other.name, name) || other.name == name)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,name); + +@override +String toString() { + return 'City(key: $key, name: $name)'; +} + + +} + +/// @nodoc +abstract mixin class _$CityCopyWith<$Res> implements $CityCopyWith<$Res> { + factory _$CityCopyWith(_City value, $Res Function(_City) _then) = __$CityCopyWithImpl; +@override @useResult +$Res call({ + String? key, String? name +}); + + + + +} +/// @nodoc +class __$CityCopyWithImpl<$Res> + implements _$CityCopyWith<$Res> { + __$CityCopyWithImpl(this._self, this._then); + + final _City _self; + final $Res Function(_City) _then; + +/// Create a copy of City +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? key = freezed,Object? name = freezed,}) { + return _then(_City( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$PoultryOwner { + + String? get fullName; String? get mobile; String? get unitName; int? get numberOfHalls; String? get breedingUniqueId; +/// Create a copy of PoultryOwner +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$PoultryOwnerCopyWith get copyWith => _$PoultryOwnerCopyWithImpl(this as PoultryOwner, _$identity); + + /// Serializes this PoultryOwner to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is PoultryOwner&&(identical(other.fullName, fullName) || other.fullName == fullName)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.numberOfHalls, numberOfHalls) || other.numberOfHalls == numberOfHalls)&&(identical(other.breedingUniqueId, breedingUniqueId) || other.breedingUniqueId == breedingUniqueId)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,fullName,mobile,unitName,numberOfHalls,breedingUniqueId); + +@override +String toString() { + return 'PoultryOwner(fullName: $fullName, mobile: $mobile, unitName: $unitName, numberOfHalls: $numberOfHalls, breedingUniqueId: $breedingUniqueId)'; +} + + +} + +/// @nodoc +abstract mixin class $PoultryOwnerCopyWith<$Res> { + factory $PoultryOwnerCopyWith(PoultryOwner value, $Res Function(PoultryOwner) _then) = _$PoultryOwnerCopyWithImpl; +@useResult +$Res call({ + String? fullName, String? mobile, String? unitName, int? numberOfHalls, String? breedingUniqueId +}); + + + + +} +/// @nodoc +class _$PoultryOwnerCopyWithImpl<$Res> + implements $PoultryOwnerCopyWith<$Res> { + _$PoultryOwnerCopyWithImpl(this._self, this._then); + + final PoultryOwner _self; + final $Res Function(PoultryOwner) _then; + +/// Create a copy of PoultryOwner +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? fullName = freezed,Object? mobile = freezed,Object? unitName = freezed,Object? numberOfHalls = freezed,Object? breedingUniqueId = freezed,}) { + return _then(_self.copyWith( +fullName: freezed == fullName ? _self.fullName : fullName // ignore: cast_nullable_to_non_nullable +as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?,unitName: freezed == unitName ? _self.unitName : unitName // ignore: cast_nullable_to_non_nullable +as String?,numberOfHalls: freezed == numberOfHalls ? _self.numberOfHalls : numberOfHalls // ignore: cast_nullable_to_non_nullable +as int?,breedingUniqueId: freezed == breedingUniqueId ? _self.breedingUniqueId : breedingUniqueId // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [PoultryOwner]. +extension PoultryOwnerPatterns on PoultryOwner { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _PoultryOwner value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _PoultryOwner() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _PoultryOwner value) $default,){ +final _that = this; +switch (_that) { +case _PoultryOwner(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _PoultryOwner value)? $default,){ +final _that = this; +switch (_that) { +case _PoultryOwner() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? fullName, String? mobile, String? unitName, int? numberOfHalls, String? breedingUniqueId)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _PoultryOwner() when $default != null: +return $default(_that.fullName,_that.mobile,_that.unitName,_that.numberOfHalls,_that.breedingUniqueId);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? fullName, String? mobile, String? unitName, int? numberOfHalls, String? breedingUniqueId) $default,) {final _that = this; +switch (_that) { +case _PoultryOwner(): +return $default(_that.fullName,_that.mobile,_that.unitName,_that.numberOfHalls,_that.breedingUniqueId);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? fullName, String? mobile, String? unitName, int? numberOfHalls, String? breedingUniqueId)? $default,) {final _that = this; +switch (_that) { +case _PoultryOwner() when $default != null: +return $default(_that.fullName,_that.mobile,_that.unitName,_that.numberOfHalls,_that.breedingUniqueId);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _PoultryOwner implements PoultryOwner { + const _PoultryOwner({this.fullName, this.mobile, this.unitName, this.numberOfHalls, this.breedingUniqueId}); + factory _PoultryOwner.fromJson(Map json) => _$PoultryOwnerFromJson(json); + +@override final String? fullName; +@override final String? mobile; +@override final String? unitName; +@override final int? numberOfHalls; +@override final String? breedingUniqueId; + +/// Create a copy of PoultryOwner +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$PoultryOwnerCopyWith<_PoultryOwner> get copyWith => __$PoultryOwnerCopyWithImpl<_PoultryOwner>(this, _$identity); + +@override +Map toJson() { + return _$PoultryOwnerToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _PoultryOwner&&(identical(other.fullName, fullName) || other.fullName == fullName)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.numberOfHalls, numberOfHalls) || other.numberOfHalls == numberOfHalls)&&(identical(other.breedingUniqueId, breedingUniqueId) || other.breedingUniqueId == breedingUniqueId)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,fullName,mobile,unitName,numberOfHalls,breedingUniqueId); + +@override +String toString() { + return 'PoultryOwner(fullName: $fullName, mobile: $mobile, unitName: $unitName, numberOfHalls: $numberOfHalls, breedingUniqueId: $breedingUniqueId)'; +} + + +} + +/// @nodoc +abstract mixin class _$PoultryOwnerCopyWith<$Res> implements $PoultryOwnerCopyWith<$Res> { + factory _$PoultryOwnerCopyWith(_PoultryOwner value, $Res Function(_PoultryOwner) _then) = __$PoultryOwnerCopyWithImpl; +@override @useResult +$Res call({ + String? fullName, String? mobile, String? unitName, int? numberOfHalls, String? breedingUniqueId +}); + + + + +} +/// @nodoc +class __$PoultryOwnerCopyWithImpl<$Res> + implements _$PoultryOwnerCopyWith<$Res> { + __$PoultryOwnerCopyWithImpl(this._self, this._then); + + final _PoultryOwner _self; + final $Res Function(_PoultryOwner) _then; + +/// Create a copy of PoultryOwner +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? fullName = freezed,Object? mobile = freezed,Object? unitName = freezed,Object? numberOfHalls = freezed,Object? breedingUniqueId = freezed,}) { + return _then(_PoultryOwner( +fullName: freezed == fullName ? _self.fullName : fullName // ignore: cast_nullable_to_non_nullable +as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?,unitName: freezed == unitName ? _self.unitName : unitName // ignore: cast_nullable_to_non_nullable +as String?,numberOfHalls: freezed == numberOfHalls ? _self.numberOfHalls : numberOfHalls // ignore: cast_nullable_to_non_nullable +as int?,breedingUniqueId: freezed == breedingUniqueId ? _self.breedingUniqueId : breedingUniqueId // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$PoultryTenant { + + String? get key; String? get firstName; String? get lastName; String? get fullName; String? get mobile; String? get nationalId; String? get breedingUniqueId; +/// Create a copy of PoultryTenant +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$PoultryTenantCopyWith get copyWith => _$PoultryTenantCopyWithImpl(this as PoultryTenant, _$identity); + + /// Serializes this PoultryTenant to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is PoultryTenant&&(identical(other.key, key) || other.key == key)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.fullName, fullName) || other.fullName == fullName)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.nationalId, nationalId) || other.nationalId == nationalId)&&(identical(other.breedingUniqueId, breedingUniqueId) || other.breedingUniqueId == breedingUniqueId)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,firstName,lastName,fullName,mobile,nationalId,breedingUniqueId); + +@override +String toString() { + return 'PoultryTenant(key: $key, firstName: $firstName, lastName: $lastName, fullName: $fullName, mobile: $mobile, nationalId: $nationalId, breedingUniqueId: $breedingUniqueId)'; +} + + +} + +/// @nodoc +abstract mixin class $PoultryTenantCopyWith<$Res> { + factory $PoultryTenantCopyWith(PoultryTenant value, $Res Function(PoultryTenant) _then) = _$PoultryTenantCopyWithImpl; +@useResult +$Res call({ + String? key, String? firstName, String? lastName, String? fullName, String? mobile, String? nationalId, String? breedingUniqueId +}); + + + + +} +/// @nodoc +class _$PoultryTenantCopyWithImpl<$Res> + implements $PoultryTenantCopyWith<$Res> { + _$PoultryTenantCopyWithImpl(this._self, this._then); + + final PoultryTenant _self; + final $Res Function(PoultryTenant) _then; + +/// Create a copy of PoultryTenant +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? key = freezed,Object? firstName = freezed,Object? lastName = freezed,Object? fullName = freezed,Object? mobile = freezed,Object? nationalId = freezed,Object? breedingUniqueId = freezed,}) { + return _then(_self.copyWith( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,firstName: freezed == firstName ? _self.firstName : firstName // ignore: cast_nullable_to_non_nullable +as String?,lastName: freezed == lastName ? _self.lastName : lastName // ignore: cast_nullable_to_non_nullable +as String?,fullName: freezed == fullName ? _self.fullName : fullName // ignore: cast_nullable_to_non_nullable +as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?,nationalId: freezed == nationalId ? _self.nationalId : nationalId // ignore: cast_nullable_to_non_nullable +as String?,breedingUniqueId: freezed == breedingUniqueId ? _self.breedingUniqueId : breedingUniqueId // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [PoultryTenant]. +extension PoultryTenantPatterns on PoultryTenant { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _PoultryTenant value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _PoultryTenant() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _PoultryTenant value) $default,){ +final _that = this; +switch (_that) { +case _PoultryTenant(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _PoultryTenant value)? $default,){ +final _that = this; +switch (_that) { +case _PoultryTenant() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? key, String? firstName, String? lastName, String? fullName, String? mobile, String? nationalId, String? breedingUniqueId)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _PoultryTenant() when $default != null: +return $default(_that.key,_that.firstName,_that.lastName,_that.fullName,_that.mobile,_that.nationalId,_that.breedingUniqueId);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? key, String? firstName, String? lastName, String? fullName, String? mobile, String? nationalId, String? breedingUniqueId) $default,) {final _that = this; +switch (_that) { +case _PoultryTenant(): +return $default(_that.key,_that.firstName,_that.lastName,_that.fullName,_that.mobile,_that.nationalId,_that.breedingUniqueId);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? key, String? firstName, String? lastName, String? fullName, String? mobile, String? nationalId, String? breedingUniqueId)? $default,) {final _that = this; +switch (_that) { +case _PoultryTenant() when $default != null: +return $default(_that.key,_that.firstName,_that.lastName,_that.fullName,_that.mobile,_that.nationalId,_that.breedingUniqueId);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _PoultryTenant implements PoultryTenant { + const _PoultryTenant({this.key, this.firstName, this.lastName, this.fullName, this.mobile, this.nationalId, this.breedingUniqueId}); + factory _PoultryTenant.fromJson(Map json) => _$PoultryTenantFromJson(json); + +@override final String? key; +@override final String? firstName; +@override final String? lastName; +@override final String? fullName; +@override final String? mobile; +@override final String? nationalId; +@override final String? breedingUniqueId; + +/// Create a copy of PoultryTenant +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$PoultryTenantCopyWith<_PoultryTenant> get copyWith => __$PoultryTenantCopyWithImpl<_PoultryTenant>(this, _$identity); + +@override +Map toJson() { + return _$PoultryTenantToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _PoultryTenant&&(identical(other.key, key) || other.key == key)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.fullName, fullName) || other.fullName == fullName)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.nationalId, nationalId) || other.nationalId == nationalId)&&(identical(other.breedingUniqueId, breedingUniqueId) || other.breedingUniqueId == breedingUniqueId)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,firstName,lastName,fullName,mobile,nationalId,breedingUniqueId); + +@override +String toString() { + return 'PoultryTenant(key: $key, firstName: $firstName, lastName: $lastName, fullName: $fullName, mobile: $mobile, nationalId: $nationalId, breedingUniqueId: $breedingUniqueId)'; +} + + +} + +/// @nodoc +abstract mixin class _$PoultryTenantCopyWith<$Res> implements $PoultryTenantCopyWith<$Res> { + factory _$PoultryTenantCopyWith(_PoultryTenant value, $Res Function(_PoultryTenant) _then) = __$PoultryTenantCopyWithImpl; +@override @useResult +$Res call({ + String? key, String? firstName, String? lastName, String? fullName, String? mobile, String? nationalId, String? breedingUniqueId +}); + + + + +} +/// @nodoc +class __$PoultryTenantCopyWithImpl<$Res> + implements _$PoultryTenantCopyWith<$Res> { + __$PoultryTenantCopyWithImpl(this._self, this._then); + + final _PoultryTenant _self; + final $Res Function(_PoultryTenant) _then; + +/// Create a copy of PoultryTenant +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? key = freezed,Object? firstName = freezed,Object? lastName = freezed,Object? fullName = freezed,Object? mobile = freezed,Object? nationalId = freezed,Object? breedingUniqueId = freezed,}) { + return _then(_PoultryTenant( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,firstName: freezed == firstName ? _self.firstName : firstName // ignore: cast_nullable_to_non_nullable +as String?,lastName: freezed == lastName ? _self.lastName : lastName // ignore: cast_nullable_to_non_nullable +as String?,fullName: freezed == fullName ? _self.fullName : fullName // ignore: cast_nullable_to_non_nullable +as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?,nationalId: freezed == nationalId ? _self.nationalId : nationalId // ignore: cast_nullable_to_non_nullable +as String?,breedingUniqueId: freezed == breedingUniqueId ? _self.breedingUniqueId : breedingUniqueId // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$Hatching { + + String? get poultryKey; String? get poultryHatchingKey; String? get poultry; int? get quantity; int? get losses; int? get leftOver; double? get outProvinceKilledQuantity; double? get exportKilledQuantity; int? get hall; String? get date; int? get period; String? get state; int? get age; +/// Create a copy of Hatching +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$HatchingCopyWith get copyWith => _$HatchingCopyWithImpl(this as Hatching, _$identity); + + /// Serializes this Hatching to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is Hatching&&(identical(other.poultryKey, poultryKey) || other.poultryKey == poultryKey)&&(identical(other.poultryHatchingKey, poultryHatchingKey) || other.poultryHatchingKey == poultryHatchingKey)&&(identical(other.poultry, poultry) || other.poultry == poultry)&&(identical(other.quantity, quantity) || other.quantity == quantity)&&(identical(other.losses, losses) || other.losses == losses)&&(identical(other.leftOver, leftOver) || other.leftOver == leftOver)&&(identical(other.outProvinceKilledQuantity, outProvinceKilledQuantity) || other.outProvinceKilledQuantity == outProvinceKilledQuantity)&&(identical(other.exportKilledQuantity, exportKilledQuantity) || other.exportKilledQuantity == exportKilledQuantity)&&(identical(other.hall, hall) || other.hall == hall)&&(identical(other.date, date) || other.date == date)&&(identical(other.period, period) || other.period == period)&&(identical(other.state, state) || other.state == state)&&(identical(other.age, age) || other.age == age)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,poultryKey,poultryHatchingKey,poultry,quantity,losses,leftOver,outProvinceKilledQuantity,exportKilledQuantity,hall,date,period,state,age); + +@override +String toString() { + return 'Hatching(poultryKey: $poultryKey, poultryHatchingKey: $poultryHatchingKey, poultry: $poultry, quantity: $quantity, losses: $losses, leftOver: $leftOver, outProvinceKilledQuantity: $outProvinceKilledQuantity, exportKilledQuantity: $exportKilledQuantity, hall: $hall, date: $date, period: $period, state: $state, age: $age)'; +} + + +} + +/// @nodoc +abstract mixin class $HatchingCopyWith<$Res> { + factory $HatchingCopyWith(Hatching value, $Res Function(Hatching) _then) = _$HatchingCopyWithImpl; +@useResult +$Res call({ + String? poultryKey, String? poultryHatchingKey, String? poultry, int? quantity, int? losses, int? leftOver, double? outProvinceKilledQuantity, double? exportKilledQuantity, int? hall, String? date, int? period, String? state, int? age +}); + + + + +} +/// @nodoc +class _$HatchingCopyWithImpl<$Res> + implements $HatchingCopyWith<$Res> { + _$HatchingCopyWithImpl(this._self, this._then); + + final Hatching _self; + final $Res Function(Hatching) _then; + +/// Create a copy of Hatching +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? poultryKey = freezed,Object? poultryHatchingKey = freezed,Object? poultry = freezed,Object? quantity = freezed,Object? losses = freezed,Object? leftOver = freezed,Object? outProvinceKilledQuantity = freezed,Object? exportKilledQuantity = freezed,Object? hall = freezed,Object? date = freezed,Object? period = freezed,Object? state = freezed,Object? age = freezed,}) { + return _then(_self.copyWith( +poultryKey: freezed == poultryKey ? _self.poultryKey : poultryKey // ignore: cast_nullable_to_non_nullable +as String?,poultryHatchingKey: freezed == poultryHatchingKey ? _self.poultryHatchingKey : poultryHatchingKey // ignore: cast_nullable_to_non_nullable +as String?,poultry: freezed == poultry ? _self.poultry : poultry // ignore: cast_nullable_to_non_nullable +as String?,quantity: freezed == quantity ? _self.quantity : quantity // ignore: cast_nullable_to_non_nullable +as int?,losses: freezed == losses ? _self.losses : losses // ignore: cast_nullable_to_non_nullable +as int?,leftOver: freezed == leftOver ? _self.leftOver : leftOver // ignore: cast_nullable_to_non_nullable +as int?,outProvinceKilledQuantity: freezed == outProvinceKilledQuantity ? _self.outProvinceKilledQuantity : outProvinceKilledQuantity // ignore: cast_nullable_to_non_nullable +as double?,exportKilledQuantity: freezed == exportKilledQuantity ? _self.exportKilledQuantity : exportKilledQuantity // ignore: cast_nullable_to_non_nullable +as double?,hall: freezed == hall ? _self.hall : hall // ignore: cast_nullable_to_non_nullable +as int?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?,period: freezed == period ? _self.period : period // ignore: cast_nullable_to_non_nullable +as int?,state: freezed == state ? _self.state : state // ignore: cast_nullable_to_non_nullable +as String?,age: freezed == age ? _self.age : age // ignore: cast_nullable_to_non_nullable +as int?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [Hatching]. +extension HatchingPatterns on Hatching { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _Hatching value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _Hatching() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _Hatching value) $default,){ +final _that = this; +switch (_that) { +case _Hatching(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _Hatching value)? $default,){ +final _that = this; +switch (_that) { +case _Hatching() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? poultryKey, String? poultryHatchingKey, String? poultry, int? quantity, int? losses, int? leftOver, double? outProvinceKilledQuantity, double? exportKilledQuantity, int? hall, String? date, int? period, String? state, int? age)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _Hatching() when $default != null: +return $default(_that.poultryKey,_that.poultryHatchingKey,_that.poultry,_that.quantity,_that.losses,_that.leftOver,_that.outProvinceKilledQuantity,_that.exportKilledQuantity,_that.hall,_that.date,_that.period,_that.state,_that.age);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? poultryKey, String? poultryHatchingKey, String? poultry, int? quantity, int? losses, int? leftOver, double? outProvinceKilledQuantity, double? exportKilledQuantity, int? hall, String? date, int? period, String? state, int? age) $default,) {final _that = this; +switch (_that) { +case _Hatching(): +return $default(_that.poultryKey,_that.poultryHatchingKey,_that.poultry,_that.quantity,_that.losses,_that.leftOver,_that.outProvinceKilledQuantity,_that.exportKilledQuantity,_that.hall,_that.date,_that.period,_that.state,_that.age);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? poultryKey, String? poultryHatchingKey, String? poultry, int? quantity, int? losses, int? leftOver, double? outProvinceKilledQuantity, double? exportKilledQuantity, int? hall, String? date, int? period, String? state, int? age)? $default,) {final _that = this; +switch (_that) { +case _Hatching() when $default != null: +return $default(_that.poultryKey,_that.poultryHatchingKey,_that.poultry,_that.quantity,_that.losses,_that.leftOver,_that.outProvinceKilledQuantity,_that.exportKilledQuantity,_that.hall,_that.date,_that.period,_that.state,_that.age);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _Hatching implements Hatching { + const _Hatching({this.poultryKey, this.poultryHatchingKey, this.poultry, this.quantity, this.losses, this.leftOver, this.outProvinceKilledQuantity, this.exportKilledQuantity, this.hall, this.date, this.period, this.state, this.age}); + factory _Hatching.fromJson(Map json) => _$HatchingFromJson(json); + +@override final String? poultryKey; +@override final String? poultryHatchingKey; +@override final String? poultry; +@override final int? quantity; +@override final int? losses; +@override final int? leftOver; +@override final double? outProvinceKilledQuantity; +@override final double? exportKilledQuantity; +@override final int? hall; +@override final String? date; +@override final int? period; +@override final String? state; +@override final int? age; + +/// Create a copy of Hatching +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$HatchingCopyWith<_Hatching> get copyWith => __$HatchingCopyWithImpl<_Hatching>(this, _$identity); + +@override +Map toJson() { + return _$HatchingToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Hatching&&(identical(other.poultryKey, poultryKey) || other.poultryKey == poultryKey)&&(identical(other.poultryHatchingKey, poultryHatchingKey) || other.poultryHatchingKey == poultryHatchingKey)&&(identical(other.poultry, poultry) || other.poultry == poultry)&&(identical(other.quantity, quantity) || other.quantity == quantity)&&(identical(other.losses, losses) || other.losses == losses)&&(identical(other.leftOver, leftOver) || other.leftOver == leftOver)&&(identical(other.outProvinceKilledQuantity, outProvinceKilledQuantity) || other.outProvinceKilledQuantity == outProvinceKilledQuantity)&&(identical(other.exportKilledQuantity, exportKilledQuantity) || other.exportKilledQuantity == exportKilledQuantity)&&(identical(other.hall, hall) || other.hall == hall)&&(identical(other.date, date) || other.date == date)&&(identical(other.period, period) || other.period == period)&&(identical(other.state, state) || other.state == state)&&(identical(other.age, age) || other.age == age)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,poultryKey,poultryHatchingKey,poultry,quantity,losses,leftOver,outProvinceKilledQuantity,exportKilledQuantity,hall,date,period,state,age); + +@override +String toString() { + return 'Hatching(poultryKey: $poultryKey, poultryHatchingKey: $poultryHatchingKey, poultry: $poultry, quantity: $quantity, losses: $losses, leftOver: $leftOver, outProvinceKilledQuantity: $outProvinceKilledQuantity, exportKilledQuantity: $exportKilledQuantity, hall: $hall, date: $date, period: $period, state: $state, age: $age)'; +} + + +} + +/// @nodoc +abstract mixin class _$HatchingCopyWith<$Res> implements $HatchingCopyWith<$Res> { + factory _$HatchingCopyWith(_Hatching value, $Res Function(_Hatching) _then) = __$HatchingCopyWithImpl; +@override @useResult +$Res call({ + String? poultryKey, String? poultryHatchingKey, String? poultry, int? quantity, int? losses, int? leftOver, double? outProvinceKilledQuantity, double? exportKilledQuantity, int? hall, String? date, int? period, String? state, int? age +}); + + + + +} +/// @nodoc +class __$HatchingCopyWithImpl<$Res> + implements _$HatchingCopyWith<$Res> { + __$HatchingCopyWithImpl(this._self, this._then); + + final _Hatching _self; + final $Res Function(_Hatching) _then; + +/// Create a copy of Hatching +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? poultryKey = freezed,Object? poultryHatchingKey = freezed,Object? poultry = freezed,Object? quantity = freezed,Object? losses = freezed,Object? leftOver = freezed,Object? outProvinceKilledQuantity = freezed,Object? exportKilledQuantity = freezed,Object? hall = freezed,Object? date = freezed,Object? period = freezed,Object? state = freezed,Object? age = freezed,}) { + return _then(_Hatching( +poultryKey: freezed == poultryKey ? _self.poultryKey : poultryKey // ignore: cast_nullable_to_non_nullable +as String?,poultryHatchingKey: freezed == poultryHatchingKey ? _self.poultryHatchingKey : poultryHatchingKey // ignore: cast_nullable_to_non_nullable +as String?,poultry: freezed == poultry ? _self.poultry : poultry // ignore: cast_nullable_to_non_nullable +as String?,quantity: freezed == quantity ? _self.quantity : quantity // ignore: cast_nullable_to_non_nullable +as int?,losses: freezed == losses ? _self.losses : losses // ignore: cast_nullable_to_non_nullable +as int?,leftOver: freezed == leftOver ? _self.leftOver : leftOver // ignore: cast_nullable_to_non_nullable +as int?,outProvinceKilledQuantity: freezed == outProvinceKilledQuantity ? _self.outProvinceKilledQuantity : outProvinceKilledQuantity // ignore: cast_nullable_to_non_nullable +as double?,exportKilledQuantity: freezed == exportKilledQuantity ? _self.exportKilledQuantity : exportKilledQuantity // ignore: cast_nullable_to_non_nullable +as double?,hall: freezed == hall ? _self.hall : hall // ignore: cast_nullable_to_non_nullable +as int?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?,period: freezed == period ? _self.period : period // ignore: cast_nullable_to_non_nullable +as int?,state: freezed == state ? _self.state : state // ignore: cast_nullable_to_non_nullable +as String?,age: freezed == age ? _self.age : age // ignore: cast_nullable_to_non_nullable +as int?, + )); +} + + +} + + +/// @nodoc +mixin _$Allow { + + bool? get city; bool? get province; +/// Create a copy of Allow +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$AllowCopyWith get copyWith => _$AllowCopyWithImpl(this as Allow, _$identity); + + /// Serializes this Allow to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is Allow&&(identical(other.city, city) || other.city == city)&&(identical(other.province, province) || other.province == province)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,city,province); + +@override +String toString() { + return 'Allow(city: $city, province: $province)'; +} + + +} + +/// @nodoc +abstract mixin class $AllowCopyWith<$Res> { + factory $AllowCopyWith(Allow value, $Res Function(Allow) _then) = _$AllowCopyWithImpl; +@useResult +$Res call({ + bool? city, bool? province +}); + + + + +} +/// @nodoc +class _$AllowCopyWithImpl<$Res> + implements $AllowCopyWith<$Res> { + _$AllowCopyWithImpl(this._self, this._then); + + final Allow _self; + final $Res Function(Allow) _then; + +/// Create a copy of Allow +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? city = freezed,Object? province = freezed,}) { + return _then(_self.copyWith( +city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as bool?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as bool?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [Allow]. +extension AllowPatterns on Allow { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _Allow value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _Allow() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _Allow value) $default,){ +final _that = this; +switch (_that) { +case _Allow(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _Allow value)? $default,){ +final _that = this; +switch (_that) { +case _Allow() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( bool? city, bool? province)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _Allow() when $default != null: +return $default(_that.city,_that.province);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( bool? city, bool? province) $default,) {final _that = this; +switch (_that) { +case _Allow(): +return $default(_that.city,_that.province);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( bool? city, bool? province)? $default,) {final _that = this; +switch (_that) { +case _Allow() when $default != null: +return $default(_that.city,_that.province);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _Allow implements Allow { + const _Allow({this.city, this.province}); + factory _Allow.fromJson(Map json) => _$AllowFromJson(json); + +@override final bool? city; +@override final bool? province; + +/// Create a copy of Allow +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$AllowCopyWith<_Allow> get copyWith => __$AllowCopyWithImpl<_Allow>(this, _$identity); + +@override +Map toJson() { + return _$AllowToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Allow&&(identical(other.city, city) || other.city == city)&&(identical(other.province, province) || other.province == province)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,city,province); + +@override +String toString() { + return 'Allow(city: $city, province: $province)'; +} + + +} + +/// @nodoc +abstract mixin class _$AllowCopyWith<$Res> implements $AllowCopyWith<$Res> { + factory _$AllowCopyWith(_Allow value, $Res Function(_Allow) _then) = __$AllowCopyWithImpl; +@override @useResult +$Res call({ + bool? city, bool? province +}); + + + + +} +/// @nodoc +class __$AllowCopyWithImpl<$Res> + implements _$AllowCopyWith<$Res> { + __$AllowCopyWithImpl(this._self, this._then); + + final _Allow _self; + final $Res Function(_Allow) _then; + +/// Create a copy of Allow +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? city = freezed,Object? province = freezed,}) { + return _then(_Allow( +city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as bool?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as bool?, + )); +} + + +} + + +/// @nodoc +mixin _$ProvinceAllowChooseKillHouse { + + bool? get allowState; bool? get mandatory; +/// Create a copy of ProvinceAllowChooseKillHouse +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ProvinceAllowChooseKillHouseCopyWith get copyWith => _$ProvinceAllowChooseKillHouseCopyWithImpl(this as ProvinceAllowChooseKillHouse, _$identity); + + /// Serializes this ProvinceAllowChooseKillHouse to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is ProvinceAllowChooseKillHouse&&(identical(other.allowState, allowState) || other.allowState == allowState)&&(identical(other.mandatory, mandatory) || other.mandatory == mandatory)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,allowState,mandatory); + +@override +String toString() { + return 'ProvinceAllowChooseKillHouse(allowState: $allowState, mandatory: $mandatory)'; +} + + +} + +/// @nodoc +abstract mixin class $ProvinceAllowChooseKillHouseCopyWith<$Res> { + factory $ProvinceAllowChooseKillHouseCopyWith(ProvinceAllowChooseKillHouse value, $Res Function(ProvinceAllowChooseKillHouse) _then) = _$ProvinceAllowChooseKillHouseCopyWithImpl; +@useResult +$Res call({ + bool? allowState, bool? mandatory +}); + + + + +} +/// @nodoc +class _$ProvinceAllowChooseKillHouseCopyWithImpl<$Res> + implements $ProvinceAllowChooseKillHouseCopyWith<$Res> { + _$ProvinceAllowChooseKillHouseCopyWithImpl(this._self, this._then); + + final ProvinceAllowChooseKillHouse _self; + final $Res Function(ProvinceAllowChooseKillHouse) _then; + +/// Create a copy of ProvinceAllowChooseKillHouse +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? allowState = freezed,Object? mandatory = freezed,}) { + return _then(_self.copyWith( +allowState: freezed == allowState ? _self.allowState : allowState // ignore: cast_nullable_to_non_nullable +as bool?,mandatory: freezed == mandatory ? _self.mandatory : mandatory // ignore: cast_nullable_to_non_nullable +as bool?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [ProvinceAllowChooseKillHouse]. +extension ProvinceAllowChooseKillHousePatterns on ProvinceAllowChooseKillHouse { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _ProvinceAllowChooseKillHouse value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _ProvinceAllowChooseKillHouse() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _ProvinceAllowChooseKillHouse value) $default,){ +final _that = this; +switch (_that) { +case _ProvinceAllowChooseKillHouse(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _ProvinceAllowChooseKillHouse value)? $default,){ +final _that = this; +switch (_that) { +case _ProvinceAllowChooseKillHouse() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( bool? allowState, bool? mandatory)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _ProvinceAllowChooseKillHouse() when $default != null: +return $default(_that.allowState,_that.mandatory);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( bool? allowState, bool? mandatory) $default,) {final _that = this; +switch (_that) { +case _ProvinceAllowChooseKillHouse(): +return $default(_that.allowState,_that.mandatory);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( bool? allowState, bool? mandatory)? $default,) {final _that = this; +switch (_that) { +case _ProvinceAllowChooseKillHouse() when $default != null: +return $default(_that.allowState,_that.mandatory);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _ProvinceAllowChooseKillHouse implements ProvinceAllowChooseKillHouse { + const _ProvinceAllowChooseKillHouse({this.allowState, this.mandatory}); + factory _ProvinceAllowChooseKillHouse.fromJson(Map json) => _$ProvinceAllowChooseKillHouseFromJson(json); + +@override final bool? allowState; +@override final bool? mandatory; + +/// Create a copy of ProvinceAllowChooseKillHouse +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ProvinceAllowChooseKillHouseCopyWith<_ProvinceAllowChooseKillHouse> get copyWith => __$ProvinceAllowChooseKillHouseCopyWithImpl<_ProvinceAllowChooseKillHouse>(this, _$identity); + +@override +Map toJson() { + return _$ProvinceAllowChooseKillHouseToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _ProvinceAllowChooseKillHouse&&(identical(other.allowState, allowState) || other.allowState == allowState)&&(identical(other.mandatory, mandatory) || other.mandatory == mandatory)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,allowState,mandatory); + +@override +String toString() { + return 'ProvinceAllowChooseKillHouse(allowState: $allowState, mandatory: $mandatory)'; +} + + +} + +/// @nodoc +abstract mixin class _$ProvinceAllowChooseKillHouseCopyWith<$Res> implements $ProvinceAllowChooseKillHouseCopyWith<$Res> { + factory _$ProvinceAllowChooseKillHouseCopyWith(_ProvinceAllowChooseKillHouse value, $Res Function(_ProvinceAllowChooseKillHouse) _then) = __$ProvinceAllowChooseKillHouseCopyWithImpl; +@override @useResult +$Res call({ + bool? allowState, bool? mandatory +}); + + + + +} +/// @nodoc +class __$ProvinceAllowChooseKillHouseCopyWithImpl<$Res> + implements _$ProvinceAllowChooseKillHouseCopyWith<$Res> { + __$ProvinceAllowChooseKillHouseCopyWithImpl(this._self, this._then); + + final _ProvinceAllowChooseKillHouse _self; + final $Res Function(_ProvinceAllowChooseKillHouse) _then; + +/// Create a copy of ProvinceAllowChooseKillHouse +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? allowState = freezed,Object? mandatory = freezed,}) { + return _then(_ProvinceAllowChooseKillHouse( +allowState: freezed == allowState ? _self.allowState : allowState // ignore: cast_nullable_to_non_nullable +as bool?,mandatory: freezed == mandatory ? _self.mandatory : mandatory // ignore: cast_nullable_to_non_nullable +as bool?, + )); +} + + +} + + +/// @nodoc +mixin _$VetFarm { + + String? get fullName; String? get mobile; String? get city; String? get province; +/// Create a copy of VetFarm +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$VetFarmCopyWith 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.fullName, fullName) || other.fullName == fullName)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.city, city) || other.city == city)&&(identical(other.province, province) || other.province == province)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,fullName,mobile,city,province); + +@override +String toString() { + return 'VetFarm(fullName: $fullName, mobile: $mobile, city: $city, province: $province)'; +} + + +} + +/// @nodoc +abstract mixin class $VetFarmCopyWith<$Res> { + factory $VetFarmCopyWith(VetFarm value, $Res Function(VetFarm) _then) = _$VetFarmCopyWithImpl; +@useResult +$Res call({ + String? fullName, String? mobile, String? city, String? province +}); + + + + +} +/// @nodoc +class _$VetFarmCopyWithImpl<$Res> + implements $VetFarmCopyWith<$Res> { + _$VetFarmCopyWithImpl(this._self, this._then); + + final VetFarm _self; + final $Res Function(VetFarm) _then; + +/// Create a copy of VetFarm +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? fullName = freezed,Object? mobile = freezed,Object? city = freezed,Object? province = freezed,}) { + return _then(_self.copyWith( +fullName: freezed == fullName ? _self.fullName : fullName // ignore: cast_nullable_to_non_nullable +as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [VetFarm]. +extension VetFarmPatterns on VetFarm { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult 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? fullName, String? mobile, String? city, String? province)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _VetFarm() when $default != null: +return $default(_that.fullName,_that.mobile,_that.city,_that.province);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? fullName, String? mobile, String? city, String? province) $default,) {final _that = this; +switch (_that) { +case _VetFarm(): +return $default(_that.fullName,_that.mobile,_that.city,_that.province);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? fullName, String? mobile, String? city, String? province)? $default,) {final _that = this; +switch (_that) { +case _VetFarm() when $default != null: +return $default(_that.fullName,_that.mobile,_that.city,_that.province);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _VetFarm implements VetFarm { + const _VetFarm({this.fullName, this.mobile, this.city, this.province}); + factory _VetFarm.fromJson(Map json) => _$VetFarmFromJson(json); + +@override final String? fullName; +@override final String? mobile; +@override final String? city; +@override final String? province; + +/// Create a copy of VetFarm +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$VetFarmCopyWith<_VetFarm> get copyWith => __$VetFarmCopyWithImpl<_VetFarm>(this, _$identity); + +@override +Map toJson() { + return _$VetFarmToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _VetFarm&&(identical(other.fullName, fullName) || other.fullName == fullName)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.city, city) || other.city == city)&&(identical(other.province, province) || other.province == province)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,fullName,mobile,city,province); + +@override +String toString() { + return 'VetFarm(fullName: $fullName, mobile: $mobile, city: $city, province: $province)'; +} + + +} + +/// @nodoc +abstract mixin class _$VetFarmCopyWith<$Res> implements $VetFarmCopyWith<$Res> { + factory _$VetFarmCopyWith(_VetFarm value, $Res Function(_VetFarm) _then) = __$VetFarmCopyWithImpl; +@override @useResult +$Res call({ + String? fullName, String? mobile, String? city, String? province +}); + + + + +} +/// @nodoc +class __$VetFarmCopyWithImpl<$Res> + implements _$VetFarmCopyWith<$Res> { + __$VetFarmCopyWithImpl(this._self, this._then); + + final _VetFarm _self; + final $Res Function(_VetFarm) _then; + +/// Create a copy of VetFarm +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? fullName = freezed,Object? mobile = freezed,Object? city = freezed,Object? province = freezed,}) { + return _then(_VetFarm( +fullName: freezed == fullName ? _self.fullName : fullName // ignore: cast_nullable_to_non_nullable +as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$LastHatchingDifferentRequestQuantity { + + double? get leftExportQuantity; double? get leftPoultryOutProvince; int? get lastHatchingRemainQuantity; +/// Create a copy of LastHatchingDifferentRequestQuantity +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$LastHatchingDifferentRequestQuantityCopyWith get copyWith => _$LastHatchingDifferentRequestQuantityCopyWithImpl(this as LastHatchingDifferentRequestQuantity, _$identity); + + /// Serializes this LastHatchingDifferentRequestQuantity to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is LastHatchingDifferentRequestQuantity&&(identical(other.leftExportQuantity, leftExportQuantity) || other.leftExportQuantity == leftExportQuantity)&&(identical(other.leftPoultryOutProvince, leftPoultryOutProvince) || other.leftPoultryOutProvince == leftPoultryOutProvince)&&(identical(other.lastHatchingRemainQuantity, lastHatchingRemainQuantity) || other.lastHatchingRemainQuantity == lastHatchingRemainQuantity)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,leftExportQuantity,leftPoultryOutProvince,lastHatchingRemainQuantity); + +@override +String toString() { + return 'LastHatchingDifferentRequestQuantity(leftExportQuantity: $leftExportQuantity, leftPoultryOutProvince: $leftPoultryOutProvince, lastHatchingRemainQuantity: $lastHatchingRemainQuantity)'; +} + + +} + +/// @nodoc +abstract mixin class $LastHatchingDifferentRequestQuantityCopyWith<$Res> { + factory $LastHatchingDifferentRequestQuantityCopyWith(LastHatchingDifferentRequestQuantity value, $Res Function(LastHatchingDifferentRequestQuantity) _then) = _$LastHatchingDifferentRequestQuantityCopyWithImpl; +@useResult +$Res call({ + double? leftExportQuantity, double? leftPoultryOutProvince, int? lastHatchingRemainQuantity +}); + + + + +} +/// @nodoc +class _$LastHatchingDifferentRequestQuantityCopyWithImpl<$Res> + implements $LastHatchingDifferentRequestQuantityCopyWith<$Res> { + _$LastHatchingDifferentRequestQuantityCopyWithImpl(this._self, this._then); + + final LastHatchingDifferentRequestQuantity _self; + final $Res Function(LastHatchingDifferentRequestQuantity) _then; + +/// Create a copy of LastHatchingDifferentRequestQuantity +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? leftExportQuantity = freezed,Object? leftPoultryOutProvince = freezed,Object? lastHatchingRemainQuantity = freezed,}) { + return _then(_self.copyWith( +leftExportQuantity: freezed == leftExportQuantity ? _self.leftExportQuantity : leftExportQuantity // ignore: cast_nullable_to_non_nullable +as double?,leftPoultryOutProvince: freezed == leftPoultryOutProvince ? _self.leftPoultryOutProvince : leftPoultryOutProvince // ignore: cast_nullable_to_non_nullable +as double?,lastHatchingRemainQuantity: freezed == lastHatchingRemainQuantity ? _self.lastHatchingRemainQuantity : lastHatchingRemainQuantity // ignore: cast_nullable_to_non_nullable +as int?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [LastHatchingDifferentRequestQuantity]. +extension LastHatchingDifferentRequestQuantityPatterns on LastHatchingDifferentRequestQuantity { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _LastHatchingDifferentRequestQuantity value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _LastHatchingDifferentRequestQuantity() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _LastHatchingDifferentRequestQuantity value) $default,){ +final _that = this; +switch (_that) { +case _LastHatchingDifferentRequestQuantity(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _LastHatchingDifferentRequestQuantity value)? $default,){ +final _that = this; +switch (_that) { +case _LastHatchingDifferentRequestQuantity() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( double? leftExportQuantity, double? leftPoultryOutProvince, int? lastHatchingRemainQuantity)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _LastHatchingDifferentRequestQuantity() when $default != null: +return $default(_that.leftExportQuantity,_that.leftPoultryOutProvince,_that.lastHatchingRemainQuantity);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( double? leftExportQuantity, double? leftPoultryOutProvince, int? lastHatchingRemainQuantity) $default,) {final _that = this; +switch (_that) { +case _LastHatchingDifferentRequestQuantity(): +return $default(_that.leftExportQuantity,_that.leftPoultryOutProvince,_that.lastHatchingRemainQuantity);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( double? leftExportQuantity, double? leftPoultryOutProvince, int? lastHatchingRemainQuantity)? $default,) {final _that = this; +switch (_that) { +case _LastHatchingDifferentRequestQuantity() when $default != null: +return $default(_that.leftExportQuantity,_that.leftPoultryOutProvince,_that.lastHatchingRemainQuantity);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _LastHatchingDifferentRequestQuantity implements LastHatchingDifferentRequestQuantity { + const _LastHatchingDifferentRequestQuantity({this.leftExportQuantity, this.leftPoultryOutProvince, this.lastHatchingRemainQuantity}); + factory _LastHatchingDifferentRequestQuantity.fromJson(Map json) => _$LastHatchingDifferentRequestQuantityFromJson(json); + +@override final double? leftExportQuantity; +@override final double? leftPoultryOutProvince; +@override final int? lastHatchingRemainQuantity; + +/// Create a copy of LastHatchingDifferentRequestQuantity +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$LastHatchingDifferentRequestQuantityCopyWith<_LastHatchingDifferentRequestQuantity> get copyWith => __$LastHatchingDifferentRequestQuantityCopyWithImpl<_LastHatchingDifferentRequestQuantity>(this, _$identity); + +@override +Map toJson() { + return _$LastHatchingDifferentRequestQuantityToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _LastHatchingDifferentRequestQuantity&&(identical(other.leftExportQuantity, leftExportQuantity) || other.leftExportQuantity == leftExportQuantity)&&(identical(other.leftPoultryOutProvince, leftPoultryOutProvince) || other.leftPoultryOutProvince == leftPoultryOutProvince)&&(identical(other.lastHatchingRemainQuantity, lastHatchingRemainQuantity) || other.lastHatchingRemainQuantity == lastHatchingRemainQuantity)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,leftExportQuantity,leftPoultryOutProvince,lastHatchingRemainQuantity); + +@override +String toString() { + return 'LastHatchingDifferentRequestQuantity(leftExportQuantity: $leftExportQuantity, leftPoultryOutProvince: $leftPoultryOutProvince, lastHatchingRemainQuantity: $lastHatchingRemainQuantity)'; +} + + +} + +/// @nodoc +abstract mixin class _$LastHatchingDifferentRequestQuantityCopyWith<$Res> implements $LastHatchingDifferentRequestQuantityCopyWith<$Res> { + factory _$LastHatchingDifferentRequestQuantityCopyWith(_LastHatchingDifferentRequestQuantity value, $Res Function(_LastHatchingDifferentRequestQuantity) _then) = __$LastHatchingDifferentRequestQuantityCopyWithImpl; +@override @useResult +$Res call({ + double? leftExportQuantity, double? leftPoultryOutProvince, int? lastHatchingRemainQuantity +}); + + + + +} +/// @nodoc +class __$LastHatchingDifferentRequestQuantityCopyWithImpl<$Res> + implements _$LastHatchingDifferentRequestQuantityCopyWith<$Res> { + __$LastHatchingDifferentRequestQuantityCopyWithImpl(this._self, this._then); + + final _LastHatchingDifferentRequestQuantity _self; + final $Res Function(_LastHatchingDifferentRequestQuantity) _then; + +/// Create a copy of LastHatchingDifferentRequestQuantity +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? leftExportQuantity = freezed,Object? leftPoultryOutProvince = freezed,Object? lastHatchingRemainQuantity = freezed,}) { + return _then(_LastHatchingDifferentRequestQuantity( +leftExportQuantity: freezed == leftExportQuantity ? _self.leftExportQuantity : leftExportQuantity // ignore: cast_nullable_to_non_nullable +as double?,leftPoultryOutProvince: freezed == leftPoultryOutProvince ? _self.leftPoultryOutProvince : leftPoultryOutProvince // ignore: cast_nullable_to_non_nullable +as double?,lastHatchingRemainQuantity: freezed == lastHatchingRemainQuantity ? _self.lastHatchingRemainQuantity : lastHatchingRemainQuantity // ignore: cast_nullable_to_non_nullable +as int?, + )); +} + + +} + + +/// @nodoc +mixin _$UserBankInfo { + + String? get key; String? get nameOfBankUser; String? get bankName; String? get card; String? get shaba; String? get account; int? get userBankIdKey; String? get provinceName; +/// Create a copy of UserBankInfo +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$UserBankInfoCopyWith get copyWith => _$UserBankInfoCopyWithImpl(this as UserBankInfo, _$identity); + + /// Serializes this UserBankInfo to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is UserBankInfo&&(identical(other.key, key) || other.key == key)&&(identical(other.nameOfBankUser, nameOfBankUser) || other.nameOfBankUser == nameOfBankUser)&&(identical(other.bankName, bankName) || other.bankName == bankName)&&(identical(other.card, card) || other.card == card)&&(identical(other.shaba, shaba) || other.shaba == shaba)&&(identical(other.account, account) || other.account == account)&&(identical(other.userBankIdKey, userBankIdKey) || other.userBankIdKey == userBankIdKey)&&(identical(other.provinceName, provinceName) || other.provinceName == provinceName)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,nameOfBankUser,bankName,card,shaba,account,userBankIdKey,provinceName); + +@override +String toString() { + return 'UserBankInfo(key: $key, nameOfBankUser: $nameOfBankUser, bankName: $bankName, card: $card, shaba: $shaba, account: $account, userBankIdKey: $userBankIdKey, provinceName: $provinceName)'; +} + + +} + +/// @nodoc +abstract mixin class $UserBankInfoCopyWith<$Res> { + factory $UserBankInfoCopyWith(UserBankInfo value, $Res Function(UserBankInfo) _then) = _$UserBankInfoCopyWithImpl; +@useResult +$Res call({ + String? key, String? nameOfBankUser, String? bankName, String? card, String? shaba, String? account, int? userBankIdKey, String? provinceName +}); + + + + +} +/// @nodoc +class _$UserBankInfoCopyWithImpl<$Res> + implements $UserBankInfoCopyWith<$Res> { + _$UserBankInfoCopyWithImpl(this._self, this._then); + + final UserBankInfo _self; + final $Res Function(UserBankInfo) _then; + +/// Create a copy of UserBankInfo +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? key = freezed,Object? nameOfBankUser = freezed,Object? bankName = freezed,Object? card = freezed,Object? shaba = freezed,Object? account = freezed,Object? userBankIdKey = freezed,Object? provinceName = freezed,}) { + return _then(_self.copyWith( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,nameOfBankUser: freezed == nameOfBankUser ? _self.nameOfBankUser : nameOfBankUser // ignore: cast_nullable_to_non_nullable +as String?,bankName: freezed == bankName ? _self.bankName : bankName // ignore: cast_nullable_to_non_nullable +as String?,card: freezed == card ? _self.card : card // ignore: cast_nullable_to_non_nullable +as String?,shaba: freezed == shaba ? _self.shaba : shaba // ignore: cast_nullable_to_non_nullable +as String?,account: freezed == account ? _self.account : account // ignore: cast_nullable_to_non_nullable +as String?,userBankIdKey: freezed == userBankIdKey ? _self.userBankIdKey : userBankIdKey // ignore: cast_nullable_to_non_nullable +as int?,provinceName: freezed == provinceName ? _self.provinceName : provinceName // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [UserBankInfo]. +extension UserBankInfoPatterns on UserBankInfo { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _UserBankInfo value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _UserBankInfo() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _UserBankInfo value) $default,){ +final _that = this; +switch (_that) { +case _UserBankInfo(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _UserBankInfo value)? $default,){ +final _that = this; +switch (_that) { +case _UserBankInfo() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? key, String? nameOfBankUser, String? bankName, String? card, String? shaba, String? account, int? userBankIdKey, String? provinceName)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _UserBankInfo() when $default != null: +return $default(_that.key,_that.nameOfBankUser,_that.bankName,_that.card,_that.shaba,_that.account,_that.userBankIdKey,_that.provinceName);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? key, String? nameOfBankUser, String? bankName, String? card, String? shaba, String? account, int? userBankIdKey, String? provinceName) $default,) {final _that = this; +switch (_that) { +case _UserBankInfo(): +return $default(_that.key,_that.nameOfBankUser,_that.bankName,_that.card,_that.shaba,_that.account,_that.userBankIdKey,_that.provinceName);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? key, String? nameOfBankUser, String? bankName, String? card, String? shaba, String? account, int? userBankIdKey, String? provinceName)? $default,) {final _that = this; +switch (_that) { +case _UserBankInfo() when $default != null: +return $default(_that.key,_that.nameOfBankUser,_that.bankName,_that.card,_that.shaba,_that.account,_that.userBankIdKey,_that.provinceName);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _UserBankInfo implements UserBankInfo { + const _UserBankInfo({this.key, this.nameOfBankUser, this.bankName, this.card, this.shaba, this.account, this.userBankIdKey, this.provinceName}); + factory _UserBankInfo.fromJson(Map json) => _$UserBankInfoFromJson(json); + +@override final String? key; +@override final String? nameOfBankUser; +@override final String? bankName; +@override final String? card; +@override final String? shaba; +@override final String? account; +@override final int? userBankIdKey; +@override final String? provinceName; + +/// Create a copy of UserBankInfo +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$UserBankInfoCopyWith<_UserBankInfo> get copyWith => __$UserBankInfoCopyWithImpl<_UserBankInfo>(this, _$identity); + +@override +Map toJson() { + return _$UserBankInfoToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _UserBankInfo&&(identical(other.key, key) || other.key == key)&&(identical(other.nameOfBankUser, nameOfBankUser) || other.nameOfBankUser == nameOfBankUser)&&(identical(other.bankName, bankName) || other.bankName == bankName)&&(identical(other.card, card) || other.card == card)&&(identical(other.shaba, shaba) || other.shaba == shaba)&&(identical(other.account, account) || other.account == account)&&(identical(other.userBankIdKey, userBankIdKey) || other.userBankIdKey == userBankIdKey)&&(identical(other.provinceName, provinceName) || other.provinceName == provinceName)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,nameOfBankUser,bankName,card,shaba,account,userBankIdKey,provinceName); + +@override +String toString() { + return 'UserBankInfo(key: $key, nameOfBankUser: $nameOfBankUser, bankName: $bankName, card: $card, shaba: $shaba, account: $account, userBankIdKey: $userBankIdKey, provinceName: $provinceName)'; +} + + +} + +/// @nodoc +abstract mixin class _$UserBankInfoCopyWith<$Res> implements $UserBankInfoCopyWith<$Res> { + factory _$UserBankInfoCopyWith(_UserBankInfo value, $Res Function(_UserBankInfo) _then) = __$UserBankInfoCopyWithImpl; +@override @useResult +$Res call({ + String? key, String? nameOfBankUser, String? bankName, String? card, String? shaba, String? account, int? userBankIdKey, String? provinceName +}); + + + + +} +/// @nodoc +class __$UserBankInfoCopyWithImpl<$Res> + implements _$UserBankInfoCopyWith<$Res> { + __$UserBankInfoCopyWithImpl(this._self, this._then); + + final _UserBankInfo _self; + final $Res Function(_UserBankInfo) _then; + +/// Create a copy of UserBankInfo +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? key = freezed,Object? nameOfBankUser = freezed,Object? bankName = freezed,Object? card = freezed,Object? shaba = freezed,Object? account = freezed,Object? userBankIdKey = freezed,Object? provinceName = freezed,}) { + return _then(_UserBankInfo( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,nameOfBankUser: freezed == nameOfBankUser ? _self.nameOfBankUser : nameOfBankUser // ignore: cast_nullable_to_non_nullable +as String?,bankName: freezed == bankName ? _self.bankName : bankName // ignore: cast_nullable_to_non_nullable +as String?,card: freezed == card ? _self.card : card // ignore: cast_nullable_to_non_nullable +as String?,shaba: freezed == shaba ? _self.shaba : shaba // ignore: cast_nullable_to_non_nullable +as String?,account: freezed == account ? _self.account : account // ignore: cast_nullable_to_non_nullable +as String?,userBankIdKey: freezed == userBankIdKey ? _self.userBankIdKey : userBankIdKey // ignore: cast_nullable_to_non_nullable +as int?,provinceName: freezed == provinceName ? _self.provinceName : provinceName // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + +// dart format on diff --git a/packages/chicken/lib/data/models/response/kill_request_poultry/kill_request_poultry.g.dart b/packages/chicken/lib/data/models/response/kill_request_poultry/kill_request_poultry.g.dart new file mode 100644 index 0000000..eb65142 --- /dev/null +++ b/packages/chicken/lib/data/models/response/kill_request_poultry/kill_request_poultry.g.dart @@ -0,0 +1,410 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'kill_request_poultry.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +_KillRequestPoultry _$KillRequestPoultryFromJson( + Map json, +) => _KillRequestPoultry( + userprofile: json['userprofile'] == null + ? null + : UserProfile.fromJson(json['userprofile'] as Map), + address: json['address'] == null + ? null + : Address.fromJson(json['address'] as Map), + poultryOwner: json['poultry_owner'] == null + ? null + : PoultryOwner.fromJson(json['poultry_owner'] as Map), + poultryTenant: json['poultry_tenant'] == null + ? null + : PoultryTenant.fromJson(json['poultry_tenant'] as Map), + hatching: (json['hatching'] as List?) + ?.map((e) => Hatching.fromJson(e as Map)) + .toList(), + registerVetHalls: (json['register_vet_halls'] as List?) + ?.map((e) => (e as num).toInt()) + .toList(), + allow: json['allow'] == null + ? null + : Allow.fromJson(json['allow'] as Map), + provinceAllowChooseKillHouse: json['province_allow_choose_kill_house'] == null + ? null + : ProvinceAllowChooseKillHouse.fromJson( + json['province_allow_choose_kill_house'] as Map, + ), + provinceAllowSellFree: json['province_allow_sell_free'] as bool?, + vetFarm: json['vet_farm'] == null + ? null + : VetFarm.fromJson(json['vet_farm'] as Map), + lastHatchingDiffrentRequestQuantity: + json['last_hatching_diffrent_request_quantity'] == null + ? null + : LastHatchingDifferentRequestQuantity.fromJson( + json['last_hatching_diffrent_request_quantity'] + as Map, + ), + userBankInfo: json['user_bank_info'] == null + ? null + : UserBankInfo.fromJson(json['user_bank_info'] as Map), + leftOverOwnHatching: (json['left_over_own_hatching'] as num?)?.toInt(), + key: json['key'] as String?, + trash: json['trash'] as bool?, + ownerIdForeignKey: (json['owner_id_foreign_key'] as num?)?.toInt(), + userIdForeignKey: (json['user_id_foreign_key'] as num?)?.toInt(), + addressIdForeignKey: (json['address_id_foreign_key'] as num?)?.toInt(), + hasChainCompany: json['has_chain_company'] as bool?, + userBankIdForeignKey: (json['user_bank_id_foreign_key'] as num?)?.toInt(), + cityOperator: json['city_operator'] as String?, + unitName: json['unit_name'] as String?, + gisCode: json['gis_code'] as String?, + operatingLicenceCapacity: (json['operating_licence_capacity'] as num?) + ?.toInt(), + numberOfHalls: (json['number_of_halls'] as num?)?.toInt(), + tenant: json['tenant'] as bool?, + hasTenant: json['has_tenant'] as bool?, + personType: json['person_type'] as String?, + economicCode: json['economic_code'] as String?, + systemCode: json['system_code'] as String?, + epidemiologicalCode: json['epidemiological_code'] as String?, + breedingUniqueId: json['breeding_unique_id'] as String?, + totalCapacity: (json['total_capacity'] as num?)?.toInt(), + licenceNumber: json['licence_number'] as String?, + healthCertificateNumber: json['health_certificate_number'] as String?, + numberOfRequests: (json['number_of_requests'] as num?)?.toInt(), + hatchingDate: json['hatching_date'] as String?, + lastPartyDate: json['last_party_date'] as String?, + numberOfIncubators: (json['number_of_incubators'] as num?)?.toInt(), + herdAgeByDay: (json['herd_age_by_day'] as num?)?.toInt(), + herdAgeByWeek: (json['herd_age_by_week'] as num?)?.toInt(), + numberOfParty: (json['number_of_party'] as num?)?.toInt(), + communicationType: json['communication_type'] as String?, + cooperative: json['cooperative'] as String?, + dateOfRegister: json['date_of_register'] as String?, + unitStatus: json['unit_status'] as String?, + active: json['active'] as bool?, + identityDocuments: json['identity_documents'] as String?, + samasatUserCode: json['samasat_user_code'] as String?, + baseOrder: (json['base_order'] as num?)?.toInt(), + incubationDate: json['incubation_date'] as String?, + walletAmount: (json['wallet_amount'] as num?)?.toInt(), + city: (json['city'] as num?)?.toInt(), + 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?, + walletIdForeignKey: (json['wallet_id_foreign_key'] as num?)?.toInt(), + poultryIdKey: (json['poultry_id_key'] as num?)?.toInt(), + lat: (json['lat'] as num?)?.toDouble(), + long: (json['long'] as num?)?.toDouble(), + date: json['date'] as String?, + killingAveAge: (json['killing_ave_age'] as num?)?.toInt(), + activeLeftOver: (json['active_left_over'] as num?)?.toInt(), + killingAveCount: (json['killing_ave_count'] as num?)?.toInt(), + killingAveWeight: (json['killing_ave_weight'] as num?)?.toDouble(), + killingLiveWeight: (json['killing_live_weight'] as num?)?.toDouble(), + killingCarcassesWeight: (json['killing_carcasses_weight'] as num?) + ?.toDouble(), + killingLossWeightPercent: (json['killing_loss_weight_percent'] as num?) + ?.toDouble(), + realKillingAveWeight: (json['real_killing_ave_weight'] as num?)?.toDouble(), + realKillingLiveWeight: (json['real_killing_live_weight'] as num?)?.toDouble(), + realKillingCarcassesWeight: (json['real_killing_carcasses_weight'] as num?) + ?.toDouble(), + realKillingLossWeightPercent: + (json['real_killing_loss_weight_percent'] as num?)?.toDouble(), + interestLicenseId: (json['interest_license_id'] as num?)?.toInt(), + orderLimit: json['order_limit'] as bool?, + owner: (json['owner'] as num?)?.toInt(), + wallet: (json['wallet'] as num?)?.toInt(), +); + +Map _$KillRequestPoultryToJson(_KillRequestPoultry instance) => + { + 'userprofile': instance.userprofile, + 'address': instance.address, + 'poultry_owner': instance.poultryOwner, + 'poultry_tenant': instance.poultryTenant, + 'hatching': instance.hatching, + 'register_vet_halls': instance.registerVetHalls, + 'allow': instance.allow, + 'province_allow_choose_kill_house': instance.provinceAllowChooseKillHouse, + 'province_allow_sell_free': instance.provinceAllowSellFree, + 'vet_farm': instance.vetFarm, + 'last_hatching_diffrent_request_quantity': + instance.lastHatchingDiffrentRequestQuantity, + 'user_bank_info': instance.userBankInfo, + 'left_over_own_hatching': instance.leftOverOwnHatching, + 'key': instance.key, + 'trash': instance.trash, + 'owner_id_foreign_key': instance.ownerIdForeignKey, + 'user_id_foreign_key': instance.userIdForeignKey, + 'address_id_foreign_key': instance.addressIdForeignKey, + 'has_chain_company': instance.hasChainCompany, + 'user_bank_id_foreign_key': instance.userBankIdForeignKey, + 'city_operator': instance.cityOperator, + 'unit_name': instance.unitName, + 'gis_code': instance.gisCode, + 'operating_licence_capacity': instance.operatingLicenceCapacity, + 'number_of_halls': instance.numberOfHalls, + 'tenant': instance.tenant, + 'has_tenant': instance.hasTenant, + 'person_type': instance.personType, + 'economic_code': instance.economicCode, + 'system_code': instance.systemCode, + 'epidemiological_code': instance.epidemiologicalCode, + 'breeding_unique_id': instance.breedingUniqueId, + 'total_capacity': instance.totalCapacity, + 'licence_number': instance.licenceNumber, + 'health_certificate_number': instance.healthCertificateNumber, + 'number_of_requests': instance.numberOfRequests, + 'hatching_date': instance.hatchingDate, + 'last_party_date': instance.lastPartyDate, + 'number_of_incubators': instance.numberOfIncubators, + 'herd_age_by_day': instance.herdAgeByDay, + 'herd_age_by_week': instance.herdAgeByWeek, + 'number_of_party': instance.numberOfParty, + 'communication_type': instance.communicationType, + 'cooperative': instance.cooperative, + 'date_of_register': instance.dateOfRegister, + 'unit_status': instance.unitStatus, + 'active': instance.active, + 'identity_documents': instance.identityDocuments, + 'samasat_user_code': instance.samasatUserCode, + 'base_order': instance.baseOrder, + 'incubation_date': instance.incubationDate, + 'wallet_amount': instance.walletAmount, + 'city': instance.city, + 'city_number': instance.cityNumber, + 'city_name': instance.cityName, + 'province_number': instance.provinceNumber, + 'province_name': instance.provinceName, + 'wallet_id_foreign_key': instance.walletIdForeignKey, + 'poultry_id_key': instance.poultryIdKey, + 'lat': instance.lat, + 'long': instance.long, + 'date': instance.date, + 'killing_ave_age': instance.killingAveAge, + 'active_left_over': instance.activeLeftOver, + 'killing_ave_count': instance.killingAveCount, + 'killing_ave_weight': instance.killingAveWeight, + 'killing_live_weight': instance.killingLiveWeight, + 'killing_carcasses_weight': instance.killingCarcassesWeight, + 'killing_loss_weight_percent': instance.killingLossWeightPercent, + 'real_killing_ave_weight': instance.realKillingAveWeight, + 'real_killing_live_weight': instance.realKillingLiveWeight, + 'real_killing_carcasses_weight': instance.realKillingCarcassesWeight, + 'real_killing_loss_weight_percent': instance.realKillingLossWeightPercent, + 'interest_license_id': instance.interestLicenseId, + 'order_limit': instance.orderLimit, + 'owner': instance.owner, + 'wallet': instance.wallet, + }; + +_UserProfile _$UserProfileFromJson(Map json) => _UserProfile( + userKey: json['user_key'] as String?, + baseOrder: (json['base_order'] as num?)?.toInt(), + fullName: json['full_name'] as String?, + mobile: json['mobile'] as String?, + city: json['city'] as String?, + province: json['province'] as String?, + breedingUniqueId: json['breeding_unique_id'] as String?, +); + +Map _$UserProfileToJson(_UserProfile instance) => + { + 'user_key': instance.userKey, + 'base_order': instance.baseOrder, + 'full_name': instance.fullName, + 'mobile': instance.mobile, + 'city': instance.city, + 'province': instance.province, + 'breeding_unique_id': instance.breedingUniqueId, + }; + +_Address _$AddressFromJson(Map json) => _Address( + province: json['province'] == null + ? null + : Province.fromJson(json['province'] as Map), + city: json['city'] == null + ? null + : City.fromJson(json['city'] as Map), + address: json['address'] as String?, + postalCode: json['postal_code'] as String?, +); + +Map _$AddressToJson(_Address instance) => { + 'province': instance.province, + 'city': instance.city, + 'address': instance.address, + 'postal_code': instance.postalCode, +}; + +_Province _$ProvinceFromJson(Map json) => + _Province(key: json['key'] as String?, name: json['name'] as String?); + +Map _$ProvinceToJson(_Province instance) => { + 'key': instance.key, + 'name': instance.name, +}; + +_City _$CityFromJson(Map json) => + _City(key: json['key'] as String?, name: json['name'] as String?); + +Map _$CityToJson(_City instance) => { + 'key': instance.key, + 'name': instance.name, +}; + +_PoultryOwner _$PoultryOwnerFromJson(Map json) => + _PoultryOwner( + fullName: json['full_name'] as String?, + mobile: json['mobile'] as String?, + unitName: json['unit_name'] as String?, + numberOfHalls: (json['number_of_halls'] as num?)?.toInt(), + breedingUniqueId: json['breeding_unique_id'] as String?, + ); + +Map _$PoultryOwnerToJson(_PoultryOwner instance) => + { + 'full_name': instance.fullName, + 'mobile': instance.mobile, + 'unit_name': instance.unitName, + 'number_of_halls': instance.numberOfHalls, + 'breeding_unique_id': instance.breedingUniqueId, + }; + +_PoultryTenant _$PoultryTenantFromJson(Map json) => + _PoultryTenant( + key: json['key'] as String?, + firstName: json['first_name'] as String?, + lastName: json['last_name'] as String?, + fullName: json['full_name'] as String?, + mobile: json['mobile'] as String?, + nationalId: json['national_id'] as String?, + breedingUniqueId: json['breeding_unique_id'] as String?, + ); + +Map _$PoultryTenantToJson(_PoultryTenant instance) => + { + 'key': instance.key, + 'first_name': instance.firstName, + 'last_name': instance.lastName, + 'full_name': instance.fullName, + 'mobile': instance.mobile, + 'national_id': instance.nationalId, + 'breeding_unique_id': instance.breedingUniqueId, + }; + +_Hatching _$HatchingFromJson(Map json) => _Hatching( + poultryKey: json['poultry_key'] as String?, + poultryHatchingKey: json['poultry_hatching_key'] as String?, + poultry: json['poultry'] as String?, + quantity: (json['quantity'] as num?)?.toInt(), + losses: (json['losses'] as num?)?.toInt(), + leftOver: (json['left_over'] as num?)?.toInt(), + outProvinceKilledQuantity: (json['out_province_killed_quantity'] as num?) + ?.toDouble(), + exportKilledQuantity: (json['export_killed_quantity'] as num?)?.toDouble(), + hall: (json['hall'] as num?)?.toInt(), + date: json['date'] as String?, + period: (json['period'] as num?)?.toInt(), + state: json['state'] as String?, + age: (json['age'] as num?)?.toInt(), +); + +Map _$HatchingToJson(_Hatching instance) => { + 'poultry_key': instance.poultryKey, + 'poultry_hatching_key': instance.poultryHatchingKey, + 'poultry': instance.poultry, + 'quantity': instance.quantity, + 'losses': instance.losses, + 'left_over': instance.leftOver, + 'out_province_killed_quantity': instance.outProvinceKilledQuantity, + 'export_killed_quantity': instance.exportKilledQuantity, + 'hall': instance.hall, + 'date': instance.date, + 'period': instance.period, + 'state': instance.state, + 'age': instance.age, +}; + +_Allow _$AllowFromJson(Map json) => + _Allow(city: json['city'] as bool?, province: json['province'] as bool?); + +Map _$AllowToJson(_Allow instance) => { + 'city': instance.city, + 'province': instance.province, +}; + +_ProvinceAllowChooseKillHouse _$ProvinceAllowChooseKillHouseFromJson( + Map json, +) => _ProvinceAllowChooseKillHouse( + allowState: json['allow_state'] as bool?, + mandatory: json['mandatory'] as bool?, +); + +Map _$ProvinceAllowChooseKillHouseToJson( + _ProvinceAllowChooseKillHouse instance, +) => { + 'allow_state': instance.allowState, + 'mandatory': instance.mandatory, +}; + +_VetFarm _$VetFarmFromJson(Map json) => _VetFarm( + fullName: json['full_name'] as String?, + mobile: json['mobile'] as String?, + city: json['city'] as String?, + province: json['province'] as String?, +); + +Map _$VetFarmToJson(_VetFarm instance) => { + 'full_name': instance.fullName, + 'mobile': instance.mobile, + 'city': instance.city, + 'province': instance.province, +}; + +_LastHatchingDifferentRequestQuantity +_$LastHatchingDifferentRequestQuantityFromJson(Map json) => + _LastHatchingDifferentRequestQuantity( + leftExportQuantity: (json['left_export_quantity'] as num?)?.toDouble(), + leftPoultryOutProvince: (json['left_poultry_out_province'] as num?) + ?.toDouble(), + lastHatchingRemainQuantity: + (json['last_hatching_remain_quantity'] as num?)?.toInt(), + ); + +Map _$LastHatchingDifferentRequestQuantityToJson( + _LastHatchingDifferentRequestQuantity instance, +) => { + 'left_export_quantity': instance.leftExportQuantity, + 'left_poultry_out_province': instance.leftPoultryOutProvince, + 'last_hatching_remain_quantity': instance.lastHatchingRemainQuantity, +}; + +_UserBankInfo _$UserBankInfoFromJson(Map json) => + _UserBankInfo( + key: json['key'] as String?, + nameOfBankUser: json['name_of_bank_user'] as String?, + bankName: json['bank_name'] as String?, + card: json['card'] as String?, + shaba: json['shaba'] as String?, + account: json['account'] as String?, + userBankIdKey: (json['user_bank_id_key'] as num?)?.toInt(), + provinceName: json['province_name'] as String?, + ); + +Map _$UserBankInfoToJson(_UserBankInfo instance) => + { + 'key': instance.key, + 'name_of_bank_user': instance.nameOfBankUser, + 'bank_name': instance.bankName, + 'card': instance.card, + 'shaba': instance.shaba, + 'account': instance.account, + 'user_bank_id_key': instance.userBankIdKey, + 'province_name': instance.provinceName, + }; diff --git a/packages/chicken/lib/data/models/response/poultry/poultry_farm.dart b/packages/chicken/lib/data/models/response/poultry_farm/poultry_farm.dart similarity index 100% rename from packages/chicken/lib/data/models/response/poultry/poultry_farm.dart rename to packages/chicken/lib/data/models/response/poultry_farm/poultry_farm.dart diff --git a/packages/chicken/lib/data/models/response/poultry/poultry_farm.freezed.dart b/packages/chicken/lib/data/models/response/poultry_farm/poultry_farm.freezed.dart similarity index 100% rename from packages/chicken/lib/data/models/response/poultry/poultry_farm.freezed.dart rename to packages/chicken/lib/data/models/response/poultry_farm/poultry_farm.freezed.dart diff --git a/packages/chicken/lib/data/models/response/poultry/poultry_farm.g.dart b/packages/chicken/lib/data/models/response/poultry_farm/poultry_farm.g.dart similarity index 100% rename from packages/chicken/lib/data/models/response/poultry/poultry_farm.g.dart rename to packages/chicken/lib/data/models/response/poultry_farm/poultry_farm.g.dart diff --git a/packages/chicken/lib/data/models/response/poultry_hatching/poultry_hatching.dart b/packages/chicken/lib/data/models/response/poultry_hatching/poultry_hatching.dart new file mode 100644 index 0000000..4dddc30 --- /dev/null +++ b/packages/chicken/lib/data/models/response/poultry_hatching/poultry_hatching.dart @@ -0,0 +1,545 @@ +import 'package:freezed_annotation/freezed_annotation.dart'; + +part 'poultry_hatching.freezed.dart'; +part 'poultry_hatching.g.dart'; + +@freezed +abstract class PoultryHatching with _$PoultryHatching { + const factory PoultryHatching({ + int? id, + Poultry? poultry, + ChainCompany? chainCompany, + int? age, + dynamic inspectionLosses, + VetFarm? vetFarm, + ActiveKill? activeKill, + KillingInfo? killingInfo, + FreeGovernmentalInfo? freeGovernmentalInfo, + ManagementHatchingAgeRange? managementHatchingAgeRange, + String? key, + String? createDate, + String? 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, + String? date, + dynamic predicateDate, + String? chickenBreed, + int? period, + String? allowHatching, + String? state, + bool? archive, + bool? violation, + dynamic message, + Registrar? registrar, + List? breed, + int? cityNumber, + String? cityName, + int? provinceNumber, + String? provinceName, + LastChange? lastChange, + int? chickenAge, + int? nowAge, + LatestHatchingChange? latestHatchingChange, + String? violationReport, + String? violationMessage, + List? violationImage, + String? violationReporter, + String? violationReportDate, + String? violationReportEditor, + String? violationReportEditDate, + int? totalLosses, + int? directLosses, + String? directLossesInputer, + String? directLossesDate, + String? directLossesEditor, + String? directLossesLastEditDate, + String? endPeriodLossesInputer, + String? endPeriodLossesDate, + String? endPeriodLossesEditor, + String? endPeriodLossesLastEditDate, + String? breedingUniqueId, + String? licenceNumber, + bool? temporaryTrash, + bool? temporaryDeleted, + dynamic firstDateInputArchive, + dynamic secondDateInputArchive, + dynamic inputArchiver, + dynamic outputArchiveDate, + dynamic outputArchiver, + double? barDifferenceRequestWeight, + double? barDifferenceRequestQuantity, + dynamic healthCertificate, + int? samasatDischargePercentage, + dynamic personTypeName, + String? interactTypeName, + dynamic unionTypeName, + dynamic certId, + int? increaseQuantity, + String? tenantFullname, + String? tenantNationalCode, + String? tenantMobile, + String? tenantCity, + bool? hasTenant, + dynamic archiveDate, + dynamic createdBy, + dynamic modifiedBy, + }) = _PoultryHatching; + + factory PoultryHatching.fromJson(Map json) => + _$PoultryHatchingFromJson(json); +} + +// Sub models +@freezed +abstract class Poultry with _$Poultry { + const factory Poultry({ + UserProfile? userprofile, + Address? address, + dynamic poultryOwner, + PoultryTenant? poultryTenant, + List? hatching, + List? registerVetHalls, + Allow? allow, + ProvinceAllowChooseKillHouse? provinceAllowChooseKillHouse, + bool? provinceAllowSellFree, + VetFarm? vetFarm, + LastHatchingDiffrentRequestQuantity? lastHatchingDiffrentRequestQuantity, + UserBankInfo? userBankInfo, + int? leftOverOwnHatching, + String? key, + bool? trash, + int? ownerIdForeignKey, + int? userIdForeignKey, + int? addressIdForeignKey, + bool? hasChainCompany, + int? userBankIdForeignKey, + String? cityOperator, + String? unitName, + String? gisCode, + int? operatingLicenceCapacity, + int? numberOfHalls, + bool? tenant, + bool? hasTenant, + dynamic personType, + dynamic economicCode, + String? systemCode, + String? epidemiologicalCode, + String? breedingUniqueId, + int? totalCapacity, + String? licenceNumber, + String? healthCertificateNumber, + int? numberOfRequests, + String? hatchingDate, + String? lastPartyDate, + int? numberOfIncubators, + int? herdAgeByDay, + int? herdAgeByWeek, + int? numberOfParty, + dynamic communicationType, + dynamic cooperative, + String? dateOfRegister, + dynamic unitStatus, + bool? active, + dynamic identityDocuments, + dynamic samasatUserCode, + dynamic baseOrder, + String? incubationDate, + int? walletAmount, + int? city, + int? cityNumber, + String? cityName, + int? provinceNumber, + String? provinceName, + int? walletIdForeignKey, + int? poultryIdKey, + double? lat, + double? long, + dynamic date, + int? killingAveAge, + int? activeLeftOver, + int? killingAveCount, + int? killingAveWeight, + int? killingLiveWeight, + int? killingCarcassesWeight, + int? killingLossWeightPercent, + double? realKillingAveWeight, + double? realKillingLiveWeight, + double? realKillingCarcassesWeight, + double? realKillingLossWeightPercent, + dynamic interestLicenseId, + bool? orderLimit, + dynamic owner, + int? wallet, + }) = _Poultry; + + factory Poultry.fromJson(Map json) => + _$PoultryFromJson(json); +} + +@freezed +abstract class UserProfile with _$UserProfile { + const factory UserProfile({ + String? userKey, + int? baseOrder, + String? fullName, + String? mobile, + String? city, + String? province, + String? breedingUniqueId, + }) = _UserProfile; + + factory UserProfile.fromJson(Map json) => + _$UserProfileFromJson(json); +} + +@freezed +abstract class Address with _$Address { + const factory Address({ + Province? province, + City? city, + String? address, + String? postalCode, + }) = _Address; + + factory Address.fromJson(Map json) => + _$AddressFromJson(json); +} + +@freezed +abstract class Province with _$Province { + const factory Province({ + String? key, + String? name, + }) = _Province; + + factory Province.fromJson(Map json) => + _$ProvinceFromJson(json); +} + +@freezed +abstract class City with _$City { + const factory City({ + String? key, + String? name, + }) = _City; + + factory City.fromJson(Map json) => _$CityFromJson(json); +} + +@freezed +abstract class PoultryTenant with _$PoultryTenant { + const factory PoultryTenant({ + String? key, + String? firstName, + String? lastName, + String? fullName, + String? mobile, + String? nationalId, + String? breedingUniqueId, + }) = _PoultryTenant; + + factory PoultryTenant.fromJson(Map json) => + _$PoultryTenantFromJson(json); +} + +@freezed +abstract class Hatching with _$Hatching { + const factory Hatching({ + String? poultryKey, + String? poultryHatchingKey, + String? poultry, + int? quantity, + int? losses, + int? leftOver, + double? outProvinceKilledQuantity, + double? exportKilledQuantity, + int? hall, + String? date, + int? period, + String? state, + int? age, + }) = _Hatching; + + factory Hatching.fromJson(Map json) => + _$HatchingFromJson(json); +} + +@freezed +abstract class Allow with _$Allow { + const factory Allow({ + bool? city, + bool? province, + }) = _Allow; + + factory Allow.fromJson(Map json) => _$AllowFromJson(json); +} + +@freezed +abstract class ProvinceAllowChooseKillHouse with _$ProvinceAllowChooseKillHouse { + const factory ProvinceAllowChooseKillHouse({ + bool? allowState, + bool? mandatory, + }) = _ProvinceAllowChooseKillHouse; + + factory ProvinceAllowChooseKillHouse.fromJson(Map json) => + _$ProvinceAllowChooseKillHouseFromJson(json); +} + +@freezed +abstract class VetFarm with _$VetFarm { + const factory VetFarm({ + String? fullName, + String? mobile, + String? city, + String? province, + String? vetFarmFullName, + String? vetFarmMobile, + }) = _VetFarm; + + factory VetFarm.fromJson(Map json) => + _$VetFarmFromJson(json); +} + +@freezed +abstract class LastHatchingDiffrentRequestQuantity + with _$LastHatchingDiffrentRequestQuantity { + const factory LastHatchingDiffrentRequestQuantity({ + dynamic leftExportQuantity, + double? leftPoultryOutProvince, + int? lastHatchingRemainQuantity, + }) = _LastHatchingDiffrentRequestQuantity; + + factory LastHatchingDiffrentRequestQuantity.fromJson( + Map json) => + _$LastHatchingDiffrentRequestQuantityFromJson(json); +} + +@freezed +abstract class UserBankInfo with _$UserBankInfo { + const factory UserBankInfo({ + String? key, + String? nameOfBankUser, + String? bankName, + String? card, + String? shaba, + String? account, + int? userBankIdKey, + String? provinceName, + }) = _UserBankInfo; + + factory UserBankInfo.fromJson(Map json) => + _$UserBankInfoFromJson(json); +} + +@freezed +abstract class ChainCompany with _$ChainCompany { + const factory ChainCompany({ + ChainUser? user, + dynamic userBankInfo, + String? key, + bool? trash, + String? name, + dynamic city, + dynamic province, + dynamic postalCode, + dynamic address, + int? wallet, + }) = _ChainCompany; + + factory ChainCompany.fromJson(Map json) => + _$ChainCompanyFromJson(json); +} + +@freezed +abstract class ChainUser with _$ChainUser { + const factory ChainUser({ + List? role, + String? city, + String? province, + String? key, + String? userGateWayId, + dynamic userDjangoIdForeignKey, + dynamic provinceIdForeignKey, + dynamic cityIdForeignKey, + dynamic systemUserProfileIdKey, + String? fullname, + String? firstName, + String? lastName, + dynamic nationalCode, + dynamic nationalCodeImage, + String? nationalId, + String? mobile, + dynamic birthday, + dynamic image, + String? password, + bool? active, + ChainUserState? state, + int? baseOrder, + int? cityNumber, + String? cityName, + int? provinceNumber, + String? provinceName, + String? unitName, + String? unitNationalId, + String? unitRegistrationNumber, + String? unitEconomicalNumber, + String? unitProvince, + String? unitCity, + String? unitPostalCode, + String? unitAddress, + }) = _ChainUser; + + factory ChainUser.fromJson(Map json) => + _$ChainUserFromJson(json); +} + +@freezed +abstract class ChainUserState with _$ChainUserState { + const factory ChainUserState({ + String? city, + String? image, + String? mobile, + String? birthday, + String? province, + String? lastName, + String? firstName, + String? nationalId, + String? nationalCode, + }) = _ChainUserState; + + factory ChainUserState.fromJson(Map json) => + _$ChainUserStateFromJson(json); +} + +@freezed +abstract class 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 ManagementHatchingAgeRange with _$ManagementHatchingAgeRange { + const factory ManagementHatchingAgeRange({ + double? fromWeight, + double? toWeight, + }) = _ManagementHatchingAgeRange; + + factory ManagementHatchingAgeRange.fromJson(Map json) => + _$ManagementHatchingAgeRangeFromJson(json); +} + +@freezed +abstract class Registrar with _$Registrar { + const factory Registrar({ + String? date, + String? role, + String? fullname, + }) = _Registrar; + + factory Registrar.fromJson(Map json) => + _$RegistrarFromJson(json); +} + +@freezed +abstract class 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({ + String? date, + String? role, + String? type, + String? fullName, + }) = _LastChange; + + factory LastChange.fromJson(Map json) => + _$LastChangeFromJson(json); +} + +@freezed +abstract class LatestHatchingChange with _$LatestHatchingChange { + const factory LatestHatchingChange({ + String? date, + String? role, + String? fullName, + }) = _LatestHatchingChange; + + factory LatestHatchingChange.fromJson(Map json) => + _$LatestHatchingChangeFromJson(json); +} diff --git a/packages/chicken/lib/data/models/response/poultry_hatching/poultry_hatching.freezed.dart b/packages/chicken/lib/data/models/response/poultry_hatching/poultry_hatching.freezed.dart new file mode 100644 index 0000000..a05a06b --- /dev/null +++ b/packages/chicken/lib/data/models/response/poultry_hatching/poultry_hatching.freezed.dart @@ -0,0 +1,7797 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// coverage:ignore-file +// ignore_for_file: type=lint +// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark + +part of 'poultry_hatching.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; + +/// @nodoc +mixin _$PoultryHatching { + + int? get id; Poultry? get poultry; ChainCompany? get chainCompany; int? get age; dynamic get inspectionLosses; VetFarm? get vetFarm; ActiveKill? get activeKill; KillingInfo? get killingInfo; FreeGovernmentalInfo? get freeGovernmentalInfo; ManagementHatchingAgeRange? get managementHatchingAgeRange; String? get key; String? get createDate; String? 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; String? get date; dynamic get predicateDate; String? get chickenBreed; int? get period; String? get allowHatching; String? get state; bool? get archive; bool? get violation; dynamic get message; Registrar? 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; String? get violationReport; String? get violationMessage; List? get violationImage; String? get violationReporter; String? get violationReportDate; String? get violationReportEditor; String? get violationReportEditDate; int? get totalLosses; int? get directLosses; String? get directLossesInputer; String? get directLossesDate; String? get directLossesEditor; String? get directLossesLastEditDate; String? get endPeriodLossesInputer; String? get endPeriodLossesDate; String? get endPeriodLossesEditor; String? get endPeriodLossesLastEditDate; String? get breedingUniqueId; String? get licenceNumber; bool? get temporaryTrash; bool? get temporaryDeleted; 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; dynamic get personTypeName; String? get interactTypeName; dynamic get unionTypeName; dynamic get certId; int? get increaseQuantity; String? get tenantFullname; String? get tenantNationalCode; String? get tenantMobile; String? get tenantCity; bool? get hasTenant; dynamic get archiveDate; dynamic get createdBy; dynamic get modifiedBy; +/// Create a copy of PoultryHatching +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$PoultryHatchingCopyWith get copyWith => _$PoultryHatchingCopyWithImpl(this as PoultryHatching, _$identity); + + /// Serializes this PoultryHatching to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is PoultryHatching&&(identical(other.id, id) || other.id == id)&&(identical(other.poultry, poultry) || other.poultry == poultry)&&(identical(other.chainCompany, chainCompany) || other.chainCompany == chainCompany)&&(identical(other.age, age) || other.age == age)&&const DeepCollectionEquality().equals(other.inspectionLosses, inspectionLosses)&&(identical(other.vetFarm, vetFarm) || other.vetFarm == vetFarm)&&(identical(other.activeKill, activeKill) || other.activeKill == activeKill)&&(identical(other.killingInfo, killingInfo) || other.killingInfo == killingInfo)&&(identical(other.freeGovernmentalInfo, freeGovernmentalInfo) || other.freeGovernmentalInfo == freeGovernmentalInfo)&&(identical(other.managementHatchingAgeRange, managementHatchingAgeRange) || other.managementHatchingAgeRange == managementHatchingAgeRange)&&(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)&&const DeepCollectionEquality().equals(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)&&(identical(other.registrar, registrar) || other.registrar == registrar)&&const DeepCollectionEquality().equals(other.breed, breed)&&(identical(other.cityNumber, cityNumber) || other.cityNumber == cityNumber)&&(identical(other.cityName, cityName) || other.cityName == cityName)&&(identical(other.provinceNumber, provinceNumber) || other.provinceNumber == provinceNumber)&&(identical(other.provinceName, provinceName) || other.provinceName == provinceName)&&(identical(other.lastChange, lastChange) || other.lastChange == lastChange)&&(identical(other.chickenAge, chickenAge) || other.chickenAge == chickenAge)&&(identical(other.nowAge, nowAge) || other.nowAge == nowAge)&&(identical(other.latestHatchingChange, latestHatchingChange) || other.latestHatchingChange == latestHatchingChange)&&(identical(other.violationReport, violationReport) || other.violationReport == violationReport)&&(identical(other.violationMessage, violationMessage) || other.violationMessage == violationMessage)&&const DeepCollectionEquality().equals(other.violationImage, violationImage)&&(identical(other.violationReporter, violationReporter) || other.violationReporter == violationReporter)&&(identical(other.violationReportDate, violationReportDate) || other.violationReportDate == violationReportDate)&&(identical(other.violationReportEditor, violationReportEditor) || other.violationReportEditor == violationReportEditor)&&(identical(other.violationReportEditDate, violationReportEditDate) || other.violationReportEditDate == violationReportEditDate)&&(identical(other.totalLosses, totalLosses) || other.totalLosses == totalLosses)&&(identical(other.directLosses, directLosses) || other.directLosses == directLosses)&&(identical(other.directLossesInputer, directLossesInputer) || other.directLossesInputer == directLossesInputer)&&(identical(other.directLossesDate, directLossesDate) || other.directLossesDate == directLossesDate)&&(identical(other.directLossesEditor, directLossesEditor) || other.directLossesEditor == directLossesEditor)&&(identical(other.directLossesLastEditDate, directLossesLastEditDate) || other.directLossesLastEditDate == directLossesLastEditDate)&&(identical(other.endPeriodLossesInputer, endPeriodLossesInputer) || other.endPeriodLossesInputer == endPeriodLossesInputer)&&(identical(other.endPeriodLossesDate, endPeriodLossesDate) || other.endPeriodLossesDate == endPeriodLossesDate)&&(identical(other.endPeriodLossesEditor, endPeriodLossesEditor) || other.endPeriodLossesEditor == endPeriodLossesEditor)&&(identical(other.endPeriodLossesLastEditDate, endPeriodLossesLastEditDate) || other.endPeriodLossesLastEditDate == endPeriodLossesLastEditDate)&&(identical(other.breedingUniqueId, breedingUniqueId) || other.breedingUniqueId == breedingUniqueId)&&(identical(other.licenceNumber, licenceNumber) || other.licenceNumber == licenceNumber)&&(identical(other.temporaryTrash, temporaryTrash) || other.temporaryTrash == temporaryTrash)&&(identical(other.temporaryDeleted, temporaryDeleted) || other.temporaryDeleted == temporaryDeleted)&&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)&&const DeepCollectionEquality().equals(other.personTypeName, personTypeName)&&(identical(other.interactTypeName, interactTypeName) || other.interactTypeName == interactTypeName)&&const DeepCollectionEquality().equals(other.unionTypeName, unionTypeName)&&const DeepCollectionEquality().equals(other.certId, certId)&&(identical(other.increaseQuantity, increaseQuantity) || other.increaseQuantity == increaseQuantity)&&(identical(other.tenantFullname, tenantFullname) || other.tenantFullname == tenantFullname)&&(identical(other.tenantNationalCode, tenantNationalCode) || other.tenantNationalCode == tenantNationalCode)&&(identical(other.tenantMobile, tenantMobile) || other.tenantMobile == tenantMobile)&&(identical(other.tenantCity, tenantCity) || other.tenantCity == tenantCity)&&(identical(other.hasTenant, hasTenant) || other.hasTenant == hasTenant)&&const DeepCollectionEquality().equals(other.archiveDate, archiveDate)&&const DeepCollectionEquality().equals(other.createdBy, createdBy)&&const DeepCollectionEquality().equals(other.modifiedBy, modifiedBy)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,id,poultry,chainCompany,age,const DeepCollectionEquality().hash(inspectionLosses),vetFarm,activeKill,killingInfo,freeGovernmentalInfo,managementHatchingAgeRange,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,const DeepCollectionEquality().hash(predicateDate),chickenBreed,period,allowHatching,state,archive,violation,const DeepCollectionEquality().hash(message),registrar,const DeepCollectionEquality().hash(breed),cityNumber,cityName,provinceNumber,provinceName,lastChange,chickenAge,nowAge,latestHatchingChange,violationReport,violationMessage,const DeepCollectionEquality().hash(violationImage),violationReporter,violationReportDate,violationReportEditor,violationReportEditDate,totalLosses,directLosses,directLossesInputer,directLossesDate,directLossesEditor,directLossesLastEditDate,endPeriodLossesInputer,endPeriodLossesDate,endPeriodLossesEditor,endPeriodLossesLastEditDate,breedingUniqueId,licenceNumber,temporaryTrash,temporaryDeleted,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,const DeepCollectionEquality().hash(personTypeName),interactTypeName,const DeepCollectionEquality().hash(unionTypeName),const DeepCollectionEquality().hash(certId),increaseQuantity,tenantFullname,tenantNationalCode,tenantMobile,tenantCity,hasTenant,const DeepCollectionEquality().hash(archiveDate),const DeepCollectionEquality().hash(createdBy),const DeepCollectionEquality().hash(modifiedBy)]); + +@override +String toString() { + return 'PoultryHatching(id: $id, poultry: $poultry, chainCompany: $chainCompany, age: $age, inspectionLosses: $inspectionLosses, vetFarm: $vetFarm, activeKill: $activeKill, killingInfo: $killingInfo, freeGovernmentalInfo: $freeGovernmentalInfo, managementHatchingAgeRange: $managementHatchingAgeRange, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, hasChainCompany: $hasChainCompany, poultryIdForeignKey: $poultryIdForeignKey, poultryHatchingIdKey: $poultryHatchingIdKey, quantity: $quantity, losses: $losses, leftOver: $leftOver, killedQuantity: $killedQuantity, extraKilledQuantity: $extraKilledQuantity, governmentalKilledQuantity: $governmentalKilledQuantity, governmentalQuantity: $governmentalQuantity, freeKilledQuantity: $freeKilledQuantity, freeQuantity: $freeQuantity, chainKilledQuantity: $chainKilledQuantity, chainKilledWeight: $chainKilledWeight, outProvinceKilledWeight: $outProvinceKilledWeight, outProvinceKilledQuantity: $outProvinceKilledQuantity, exportKilledWeight: $exportKilledWeight, exportKilledQuantity: $exportKilledQuantity, totalCommitment: $totalCommitment, commitmentType: $commitmentType, totalCommitmentQuantity: $totalCommitmentQuantity, totalFreeCommitmentQuantity: $totalFreeCommitmentQuantity, totalFreeCommitmentWeight: $totalFreeCommitmentWeight, totalKilledWeight: $totalKilledWeight, totalAverageKilledWeight: $totalAverageKilledWeight, requestLeftOver: $requestLeftOver, hall: $hall, date: $date, predicateDate: $predicateDate, chickenBreed: $chickenBreed, period: $period, allowHatching: $allowHatching, state: $state, archive: $archive, violation: $violation, message: $message, registrar: $registrar, breed: $breed, cityNumber: $cityNumber, cityName: $cityName, provinceNumber: $provinceNumber, provinceName: $provinceName, lastChange: $lastChange, chickenAge: $chickenAge, nowAge: $nowAge, latestHatchingChange: $latestHatchingChange, violationReport: $violationReport, violationMessage: $violationMessage, violationImage: $violationImage, violationReporter: $violationReporter, violationReportDate: $violationReportDate, violationReportEditor: $violationReportEditor, violationReportEditDate: $violationReportEditDate, totalLosses: $totalLosses, directLosses: $directLosses, directLossesInputer: $directLossesInputer, directLossesDate: $directLossesDate, directLossesEditor: $directLossesEditor, directLossesLastEditDate: $directLossesLastEditDate, endPeriodLossesInputer: $endPeriodLossesInputer, endPeriodLossesDate: $endPeriodLossesDate, endPeriodLossesEditor: $endPeriodLossesEditor, endPeriodLossesLastEditDate: $endPeriodLossesLastEditDate, breedingUniqueId: $breedingUniqueId, licenceNumber: $licenceNumber, temporaryTrash: $temporaryTrash, temporaryDeleted: $temporaryDeleted, firstDateInputArchive: $firstDateInputArchive, secondDateInputArchive: $secondDateInputArchive, inputArchiver: $inputArchiver, outputArchiveDate: $outputArchiveDate, outputArchiver: $outputArchiver, barDifferenceRequestWeight: $barDifferenceRequestWeight, barDifferenceRequestQuantity: $barDifferenceRequestQuantity, healthCertificate: $healthCertificate, samasatDischargePercentage: $samasatDischargePercentage, personTypeName: $personTypeName, interactTypeName: $interactTypeName, unionTypeName: $unionTypeName, certId: $certId, increaseQuantity: $increaseQuantity, tenantFullname: $tenantFullname, tenantNationalCode: $tenantNationalCode, tenantMobile: $tenantMobile, tenantCity: $tenantCity, hasTenant: $hasTenant, archiveDate: $archiveDate, createdBy: $createdBy, modifiedBy: $modifiedBy)'; +} + + +} + +/// @nodoc +abstract mixin class $PoultryHatchingCopyWith<$Res> { + factory $PoultryHatchingCopyWith(PoultryHatching value, $Res Function(PoultryHatching) _then) = _$PoultryHatchingCopyWithImpl; +@useResult +$Res call({ + int? id, Poultry? poultry, ChainCompany? chainCompany, int? age, dynamic inspectionLosses, VetFarm? vetFarm, ActiveKill? activeKill, KillingInfo? killingInfo, FreeGovernmentalInfo? freeGovernmentalInfo, ManagementHatchingAgeRange? managementHatchingAgeRange, String? key, String? createDate, String? 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, String? date, dynamic predicateDate, String? chickenBreed, int? period, String? allowHatching, String? state, bool? archive, bool? violation, dynamic message, Registrar? registrar, List? breed, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, LastChange? lastChange, int? chickenAge, int? nowAge, LatestHatchingChange? latestHatchingChange, String? violationReport, String? violationMessage, List? violationImage, String? violationReporter, String? violationReportDate, String? violationReportEditor, String? violationReportEditDate, int? totalLosses, int? directLosses, String? directLossesInputer, String? directLossesDate, String? directLossesEditor, String? directLossesLastEditDate, String? endPeriodLossesInputer, String? endPeriodLossesDate, String? endPeriodLossesEditor, String? endPeriodLossesLastEditDate, String? breedingUniqueId, String? licenceNumber, bool? temporaryTrash, bool? temporaryDeleted, dynamic firstDateInputArchive, dynamic secondDateInputArchive, dynamic inputArchiver, dynamic outputArchiveDate, dynamic outputArchiver, double? barDifferenceRequestWeight, double? barDifferenceRequestQuantity, dynamic healthCertificate, int? samasatDischargePercentage, dynamic personTypeName, String? interactTypeName, dynamic unionTypeName, dynamic certId, int? increaseQuantity, String? tenantFullname, String? tenantNationalCode, String? tenantMobile, String? tenantCity, bool? hasTenant, dynamic archiveDate, dynamic createdBy, dynamic modifiedBy +}); + + +$PoultryCopyWith<$Res>? get poultry;$ChainCompanyCopyWith<$Res>? get chainCompany;$VetFarmCopyWith<$Res>? get vetFarm;$ActiveKillCopyWith<$Res>? get activeKill;$KillingInfoCopyWith<$Res>? get killingInfo;$FreeGovernmentalInfoCopyWith<$Res>? get freeGovernmentalInfo;$ManagementHatchingAgeRangeCopyWith<$Res>? get managementHatchingAgeRange;$RegistrarCopyWith<$Res>? get registrar;$LastChangeCopyWith<$Res>? get lastChange;$LatestHatchingChangeCopyWith<$Res>? get latestHatchingChange; + +} +/// @nodoc +class _$PoultryHatchingCopyWithImpl<$Res> + implements $PoultryHatchingCopyWith<$Res> { + _$PoultryHatchingCopyWithImpl(this._self, this._then); + + final PoultryHatching _self; + final $Res Function(PoultryHatching) _then; + +/// Create a copy of PoultryHatching +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? poultry = freezed,Object? chainCompany = freezed,Object? age = freezed,Object? inspectionLosses = freezed,Object? vetFarm = freezed,Object? activeKill = freezed,Object? killingInfo = freezed,Object? freeGovernmentalInfo = freezed,Object? managementHatchingAgeRange = freezed,Object? key = freezed,Object? createDate = freezed,Object? modifyDate = freezed,Object? trash = freezed,Object? hasChainCompany = freezed,Object? poultryIdForeignKey = freezed,Object? poultryHatchingIdKey = freezed,Object? quantity = freezed,Object? losses = freezed,Object? leftOver = freezed,Object? killedQuantity = freezed,Object? extraKilledQuantity = freezed,Object? governmentalKilledQuantity = freezed,Object? governmentalQuantity = freezed,Object? freeKilledQuantity = freezed,Object? freeQuantity = freezed,Object? chainKilledQuantity = freezed,Object? chainKilledWeight = freezed,Object? outProvinceKilledWeight = freezed,Object? outProvinceKilledQuantity = freezed,Object? exportKilledWeight = freezed,Object? exportKilledQuantity = freezed,Object? totalCommitment = freezed,Object? commitmentType = freezed,Object? totalCommitmentQuantity = freezed,Object? totalFreeCommitmentQuantity = freezed,Object? totalFreeCommitmentWeight = freezed,Object? totalKilledWeight = freezed,Object? totalAverageKilledWeight = freezed,Object? requestLeftOver = freezed,Object? hall = freezed,Object? date = freezed,Object? predicateDate = freezed,Object? chickenBreed = freezed,Object? period = freezed,Object? allowHatching = freezed,Object? state = freezed,Object? archive = freezed,Object? violation = freezed,Object? message = freezed,Object? registrar = freezed,Object? breed = freezed,Object? cityNumber = freezed,Object? cityName = freezed,Object? provinceNumber = freezed,Object? provinceName = freezed,Object? lastChange = freezed,Object? chickenAge = freezed,Object? nowAge = freezed,Object? latestHatchingChange = freezed,Object? violationReport = freezed,Object? violationMessage = freezed,Object? violationImage = freezed,Object? violationReporter = freezed,Object? violationReportDate = freezed,Object? violationReportEditor = freezed,Object? violationReportEditDate = freezed,Object? totalLosses = freezed,Object? directLosses = freezed,Object? directLossesInputer = freezed,Object? directLossesDate = freezed,Object? directLossesEditor = freezed,Object? directLossesLastEditDate = freezed,Object? endPeriodLossesInputer = freezed,Object? endPeriodLossesDate = freezed,Object? endPeriodLossesEditor = freezed,Object? endPeriodLossesLastEditDate = freezed,Object? breedingUniqueId = freezed,Object? licenceNumber = freezed,Object? temporaryTrash = freezed,Object? temporaryDeleted = freezed,Object? firstDateInputArchive = freezed,Object? secondDateInputArchive = freezed,Object? inputArchiver = freezed,Object? outputArchiveDate = freezed,Object? outputArchiver = freezed,Object? barDifferenceRequestWeight = freezed,Object? barDifferenceRequestQuantity = freezed,Object? healthCertificate = freezed,Object? samasatDischargePercentage = freezed,Object? personTypeName = freezed,Object? interactTypeName = freezed,Object? unionTypeName = freezed,Object? certId = freezed,Object? increaseQuantity = freezed,Object? tenantFullname = freezed,Object? tenantNationalCode = freezed,Object? tenantMobile = freezed,Object? tenantCity = freezed,Object? hasTenant = freezed,Object? archiveDate = freezed,Object? createdBy = freezed,Object? modifiedBy = freezed,}) { + return _then(_self.copyWith( +id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable +as int?,poultry: freezed == poultry ? _self.poultry : poultry // ignore: cast_nullable_to_non_nullable +as Poultry?,chainCompany: freezed == chainCompany ? _self.chainCompany : chainCompany // ignore: cast_nullable_to_non_nullable +as ChainCompany?,age: freezed == age ? _self.age : age // ignore: cast_nullable_to_non_nullable +as 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?,managementHatchingAgeRange: freezed == managementHatchingAgeRange ? _self.managementHatchingAgeRange : managementHatchingAgeRange // ignore: cast_nullable_to_non_nullable +as ManagementHatchingAgeRange?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,createDate: freezed == createDate ? _self.createDate : createDate // ignore: cast_nullable_to_non_nullable +as String?,modifyDate: freezed == modifyDate ? _self.modifyDate : modifyDate // ignore: cast_nullable_to_non_nullable +as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable +as bool?,hasChainCompany: freezed == hasChainCompany ? _self.hasChainCompany : hasChainCompany // ignore: cast_nullable_to_non_nullable +as bool?,poultryIdForeignKey: freezed == poultryIdForeignKey ? _self.poultryIdForeignKey : poultryIdForeignKey // ignore: cast_nullable_to_non_nullable +as 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 String?,predicateDate: freezed == predicateDate ? _self.predicateDate : predicateDate // ignore: cast_nullable_to_non_nullable +as dynamic,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 Registrar?,breed: freezed == breed ? _self.breed : breed // ignore: cast_nullable_to_non_nullable +as List?,cityNumber: freezed == cityNumber ? _self.cityNumber : cityNumber // ignore: cast_nullable_to_non_nullable +as 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 String?,violationMessage: freezed == violationMessage ? _self.violationMessage : violationMessage // ignore: cast_nullable_to_non_nullable +as String?,violationImage: freezed == violationImage ? _self.violationImage : violationImage // ignore: cast_nullable_to_non_nullable +as List?,violationReporter: freezed == violationReporter ? _self.violationReporter : violationReporter // ignore: cast_nullable_to_non_nullable +as String?,violationReportDate: freezed == violationReportDate ? _self.violationReportDate : violationReportDate // ignore: cast_nullable_to_non_nullable +as String?,violationReportEditor: freezed == violationReportEditor ? _self.violationReportEditor : violationReportEditor // ignore: cast_nullable_to_non_nullable +as String?,violationReportEditDate: freezed == violationReportEditDate ? _self.violationReportEditDate : violationReportEditDate // ignore: cast_nullable_to_non_nullable +as String?,totalLosses: freezed == totalLosses ? _self.totalLosses : totalLosses // ignore: cast_nullable_to_non_nullable +as 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 String?,directLossesDate: freezed == directLossesDate ? _self.directLossesDate : directLossesDate // ignore: cast_nullable_to_non_nullable +as String?,directLossesEditor: freezed == directLossesEditor ? _self.directLossesEditor : directLossesEditor // ignore: cast_nullable_to_non_nullable +as String?,directLossesLastEditDate: freezed == directLossesLastEditDate ? _self.directLossesLastEditDate : directLossesLastEditDate // ignore: cast_nullable_to_non_nullable +as String?,endPeriodLossesInputer: freezed == endPeriodLossesInputer ? _self.endPeriodLossesInputer : endPeriodLossesInputer // ignore: cast_nullable_to_non_nullable +as String?,endPeriodLossesDate: freezed == endPeriodLossesDate ? _self.endPeriodLossesDate : endPeriodLossesDate // ignore: cast_nullable_to_non_nullable +as String?,endPeriodLossesEditor: freezed == endPeriodLossesEditor ? _self.endPeriodLossesEditor : endPeriodLossesEditor // ignore: cast_nullable_to_non_nullable +as String?,endPeriodLossesLastEditDate: freezed == endPeriodLossesLastEditDate ? _self.endPeriodLossesLastEditDate : endPeriodLossesLastEditDate // ignore: cast_nullable_to_non_nullable +as String?,breedingUniqueId: freezed == breedingUniqueId ? _self.breedingUniqueId : breedingUniqueId // ignore: cast_nullable_to_non_nullable +as String?,licenceNumber: freezed == licenceNumber ? _self.licenceNumber : licenceNumber // ignore: cast_nullable_to_non_nullable +as String?,temporaryTrash: freezed == temporaryTrash ? _self.temporaryTrash : temporaryTrash // ignore: cast_nullable_to_non_nullable +as bool?,temporaryDeleted: freezed == temporaryDeleted ? _self.temporaryDeleted : temporaryDeleted // ignore: cast_nullable_to_non_nullable +as bool?,firstDateInputArchive: freezed == firstDateInputArchive ? _self.firstDateInputArchive : firstDateInputArchive // ignore: cast_nullable_to_non_nullable +as 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 dynamic,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 dynamic,certId: freezed == certId ? _self.certId : certId // ignore: cast_nullable_to_non_nullable +as dynamic,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 String?,tenantNationalCode: freezed == tenantNationalCode ? _self.tenantNationalCode : tenantNationalCode // ignore: cast_nullable_to_non_nullable +as String?,tenantMobile: freezed == tenantMobile ? _self.tenantMobile : tenantMobile // ignore: cast_nullable_to_non_nullable +as String?,tenantCity: freezed == tenantCity ? _self.tenantCity : tenantCity // ignore: cast_nullable_to_non_nullable +as String?,hasTenant: freezed == hasTenant ? _self.hasTenant : hasTenant // ignore: cast_nullable_to_non_nullable +as bool?,archiveDate: freezed == archiveDate ? _self.archiveDate : archiveDate // ignore: cast_nullable_to_non_nullable +as dynamic,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, + )); +} +/// Create a copy of PoultryHatching +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$PoultryCopyWith<$Res>? get poultry { + if (_self.poultry == null) { + return null; + } + + return $PoultryCopyWith<$Res>(_self.poultry!, (value) { + return _then(_self.copyWith(poultry: value)); + }); +}/// Create a copy of PoultryHatching +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ChainCompanyCopyWith<$Res>? get chainCompany { + if (_self.chainCompany == null) { + return null; + } + + return $ChainCompanyCopyWith<$Res>(_self.chainCompany!, (value) { + return _then(_self.copyWith(chainCompany: value)); + }); +}/// Create a copy of PoultryHatching +/// 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 PoultryHatching +/// 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 PoultryHatching +/// 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 PoultryHatching +/// 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 PoultryHatching +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ManagementHatchingAgeRangeCopyWith<$Res>? get managementHatchingAgeRange { + if (_self.managementHatchingAgeRange == null) { + return null; + } + + return $ManagementHatchingAgeRangeCopyWith<$Res>(_self.managementHatchingAgeRange!, (value) { + return _then(_self.copyWith(managementHatchingAgeRange: value)); + }); +}/// Create a copy of PoultryHatching +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$RegistrarCopyWith<$Res>? get registrar { + if (_self.registrar == null) { + return null; + } + + return $RegistrarCopyWith<$Res>(_self.registrar!, (value) { + return _then(_self.copyWith(registrar: value)); + }); +}/// Create a copy of PoultryHatching +/// 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 PoultryHatching +/// 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 [PoultryHatching]. +extension PoultryHatchingPatterns on PoultryHatching { +/// 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( _PoultryHatching value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _PoultryHatching() 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( _PoultryHatching value) $default,){ +final _that = this; +switch (_that) { +case _PoultryHatching(): +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( _PoultryHatching value)? $default,){ +final _that = this; +switch (_that) { +case _PoultryHatching() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( int? id, Poultry? poultry, ChainCompany? chainCompany, int? age, dynamic inspectionLosses, VetFarm? vetFarm, ActiveKill? activeKill, KillingInfo? killingInfo, FreeGovernmentalInfo? freeGovernmentalInfo, ManagementHatchingAgeRange? managementHatchingAgeRange, String? key, String? createDate, String? 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, String? date, dynamic predicateDate, String? chickenBreed, int? period, String? allowHatching, String? state, bool? archive, bool? violation, dynamic message, Registrar? registrar, List? breed, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, LastChange? lastChange, int? chickenAge, int? nowAge, LatestHatchingChange? latestHatchingChange, String? violationReport, String? violationMessage, List? violationImage, String? violationReporter, String? violationReportDate, String? violationReportEditor, String? violationReportEditDate, int? totalLosses, int? directLosses, String? directLossesInputer, String? directLossesDate, String? directLossesEditor, String? directLossesLastEditDate, String? endPeriodLossesInputer, String? endPeriodLossesDate, String? endPeriodLossesEditor, String? endPeriodLossesLastEditDate, String? breedingUniqueId, String? licenceNumber, bool? temporaryTrash, bool? temporaryDeleted, dynamic firstDateInputArchive, dynamic secondDateInputArchive, dynamic inputArchiver, dynamic outputArchiveDate, dynamic outputArchiver, double? barDifferenceRequestWeight, double? barDifferenceRequestQuantity, dynamic healthCertificate, int? samasatDischargePercentage, dynamic personTypeName, String? interactTypeName, dynamic unionTypeName, dynamic certId, int? increaseQuantity, String? tenantFullname, String? tenantNationalCode, String? tenantMobile, String? tenantCity, bool? hasTenant, dynamic archiveDate, dynamic createdBy, dynamic modifiedBy)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _PoultryHatching() when $default != null: +return $default(_that.id,_that.poultry,_that.chainCompany,_that.age,_that.inspectionLosses,_that.vetFarm,_that.activeKill,_that.killingInfo,_that.freeGovernmentalInfo,_that.managementHatchingAgeRange,_that.key,_that.createDate,_that.modifyDate,_that.trash,_that.hasChainCompany,_that.poultryIdForeignKey,_that.poultryHatchingIdKey,_that.quantity,_that.losses,_that.leftOver,_that.killedQuantity,_that.extraKilledQuantity,_that.governmentalKilledQuantity,_that.governmentalQuantity,_that.freeKilledQuantity,_that.freeQuantity,_that.chainKilledQuantity,_that.chainKilledWeight,_that.outProvinceKilledWeight,_that.outProvinceKilledQuantity,_that.exportKilledWeight,_that.exportKilledQuantity,_that.totalCommitment,_that.commitmentType,_that.totalCommitmentQuantity,_that.totalFreeCommitmentQuantity,_that.totalFreeCommitmentWeight,_that.totalKilledWeight,_that.totalAverageKilledWeight,_that.requestLeftOver,_that.hall,_that.date,_that.predicateDate,_that.chickenBreed,_that.period,_that.allowHatching,_that.state,_that.archive,_that.violation,_that.message,_that.registrar,_that.breed,_that.cityNumber,_that.cityName,_that.provinceNumber,_that.provinceName,_that.lastChange,_that.chickenAge,_that.nowAge,_that.latestHatchingChange,_that.violationReport,_that.violationMessage,_that.violationImage,_that.violationReporter,_that.violationReportDate,_that.violationReportEditor,_that.violationReportEditDate,_that.totalLosses,_that.directLosses,_that.directLossesInputer,_that.directLossesDate,_that.directLossesEditor,_that.directLossesLastEditDate,_that.endPeriodLossesInputer,_that.endPeriodLossesDate,_that.endPeriodLossesEditor,_that.endPeriodLossesLastEditDate,_that.breedingUniqueId,_that.licenceNumber,_that.temporaryTrash,_that.temporaryDeleted,_that.firstDateInputArchive,_that.secondDateInputArchive,_that.inputArchiver,_that.outputArchiveDate,_that.outputArchiver,_that.barDifferenceRequestWeight,_that.barDifferenceRequestQuantity,_that.healthCertificate,_that.samasatDischargePercentage,_that.personTypeName,_that.interactTypeName,_that.unionTypeName,_that.certId,_that.increaseQuantity,_that.tenantFullname,_that.tenantNationalCode,_that.tenantMobile,_that.tenantCity,_that.hasTenant,_that.archiveDate,_that.createdBy,_that.modifiedBy);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( int? id, Poultry? poultry, ChainCompany? chainCompany, int? age, dynamic inspectionLosses, VetFarm? vetFarm, ActiveKill? activeKill, KillingInfo? killingInfo, FreeGovernmentalInfo? freeGovernmentalInfo, ManagementHatchingAgeRange? managementHatchingAgeRange, String? key, String? createDate, String? 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, String? date, dynamic predicateDate, String? chickenBreed, int? period, String? allowHatching, String? state, bool? archive, bool? violation, dynamic message, Registrar? registrar, List? breed, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, LastChange? lastChange, int? chickenAge, int? nowAge, LatestHatchingChange? latestHatchingChange, String? violationReport, String? violationMessage, List? violationImage, String? violationReporter, String? violationReportDate, String? violationReportEditor, String? violationReportEditDate, int? totalLosses, int? directLosses, String? directLossesInputer, String? directLossesDate, String? directLossesEditor, String? directLossesLastEditDate, String? endPeriodLossesInputer, String? endPeriodLossesDate, String? endPeriodLossesEditor, String? endPeriodLossesLastEditDate, String? breedingUniqueId, String? licenceNumber, bool? temporaryTrash, bool? temporaryDeleted, dynamic firstDateInputArchive, dynamic secondDateInputArchive, dynamic inputArchiver, dynamic outputArchiveDate, dynamic outputArchiver, double? barDifferenceRequestWeight, double? barDifferenceRequestQuantity, dynamic healthCertificate, int? samasatDischargePercentage, dynamic personTypeName, String? interactTypeName, dynamic unionTypeName, dynamic certId, int? increaseQuantity, String? tenantFullname, String? tenantNationalCode, String? tenantMobile, String? tenantCity, bool? hasTenant, dynamic archiveDate, dynamic createdBy, dynamic modifiedBy) $default,) {final _that = this; +switch (_that) { +case _PoultryHatching(): +return $default(_that.id,_that.poultry,_that.chainCompany,_that.age,_that.inspectionLosses,_that.vetFarm,_that.activeKill,_that.killingInfo,_that.freeGovernmentalInfo,_that.managementHatchingAgeRange,_that.key,_that.createDate,_that.modifyDate,_that.trash,_that.hasChainCompany,_that.poultryIdForeignKey,_that.poultryHatchingIdKey,_that.quantity,_that.losses,_that.leftOver,_that.killedQuantity,_that.extraKilledQuantity,_that.governmentalKilledQuantity,_that.governmentalQuantity,_that.freeKilledQuantity,_that.freeQuantity,_that.chainKilledQuantity,_that.chainKilledWeight,_that.outProvinceKilledWeight,_that.outProvinceKilledQuantity,_that.exportKilledWeight,_that.exportKilledQuantity,_that.totalCommitment,_that.commitmentType,_that.totalCommitmentQuantity,_that.totalFreeCommitmentQuantity,_that.totalFreeCommitmentWeight,_that.totalKilledWeight,_that.totalAverageKilledWeight,_that.requestLeftOver,_that.hall,_that.date,_that.predicateDate,_that.chickenBreed,_that.period,_that.allowHatching,_that.state,_that.archive,_that.violation,_that.message,_that.registrar,_that.breed,_that.cityNumber,_that.cityName,_that.provinceNumber,_that.provinceName,_that.lastChange,_that.chickenAge,_that.nowAge,_that.latestHatchingChange,_that.violationReport,_that.violationMessage,_that.violationImage,_that.violationReporter,_that.violationReportDate,_that.violationReportEditor,_that.violationReportEditDate,_that.totalLosses,_that.directLosses,_that.directLossesInputer,_that.directLossesDate,_that.directLossesEditor,_that.directLossesLastEditDate,_that.endPeriodLossesInputer,_that.endPeriodLossesDate,_that.endPeriodLossesEditor,_that.endPeriodLossesLastEditDate,_that.breedingUniqueId,_that.licenceNumber,_that.temporaryTrash,_that.temporaryDeleted,_that.firstDateInputArchive,_that.secondDateInputArchive,_that.inputArchiver,_that.outputArchiveDate,_that.outputArchiver,_that.barDifferenceRequestWeight,_that.barDifferenceRequestQuantity,_that.healthCertificate,_that.samasatDischargePercentage,_that.personTypeName,_that.interactTypeName,_that.unionTypeName,_that.certId,_that.increaseQuantity,_that.tenantFullname,_that.tenantNationalCode,_that.tenantMobile,_that.tenantCity,_that.hasTenant,_that.archiveDate,_that.createdBy,_that.modifiedBy);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( int? id, Poultry? poultry, ChainCompany? chainCompany, int? age, dynamic inspectionLosses, VetFarm? vetFarm, ActiveKill? activeKill, KillingInfo? killingInfo, FreeGovernmentalInfo? freeGovernmentalInfo, ManagementHatchingAgeRange? managementHatchingAgeRange, String? key, String? createDate, String? 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, String? date, dynamic predicateDate, String? chickenBreed, int? period, String? allowHatching, String? state, bool? archive, bool? violation, dynamic message, Registrar? registrar, List? breed, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, LastChange? lastChange, int? chickenAge, int? nowAge, LatestHatchingChange? latestHatchingChange, String? violationReport, String? violationMessage, List? violationImage, String? violationReporter, String? violationReportDate, String? violationReportEditor, String? violationReportEditDate, int? totalLosses, int? directLosses, String? directLossesInputer, String? directLossesDate, String? directLossesEditor, String? directLossesLastEditDate, String? endPeriodLossesInputer, String? endPeriodLossesDate, String? endPeriodLossesEditor, String? endPeriodLossesLastEditDate, String? breedingUniqueId, String? licenceNumber, bool? temporaryTrash, bool? temporaryDeleted, dynamic firstDateInputArchive, dynamic secondDateInputArchive, dynamic inputArchiver, dynamic outputArchiveDate, dynamic outputArchiver, double? barDifferenceRequestWeight, double? barDifferenceRequestQuantity, dynamic healthCertificate, int? samasatDischargePercentage, dynamic personTypeName, String? interactTypeName, dynamic unionTypeName, dynamic certId, int? increaseQuantity, String? tenantFullname, String? tenantNationalCode, String? tenantMobile, String? tenantCity, bool? hasTenant, dynamic archiveDate, dynamic createdBy, dynamic modifiedBy)? $default,) {final _that = this; +switch (_that) { +case _PoultryHatching() when $default != null: +return $default(_that.id,_that.poultry,_that.chainCompany,_that.age,_that.inspectionLosses,_that.vetFarm,_that.activeKill,_that.killingInfo,_that.freeGovernmentalInfo,_that.managementHatchingAgeRange,_that.key,_that.createDate,_that.modifyDate,_that.trash,_that.hasChainCompany,_that.poultryIdForeignKey,_that.poultryHatchingIdKey,_that.quantity,_that.losses,_that.leftOver,_that.killedQuantity,_that.extraKilledQuantity,_that.governmentalKilledQuantity,_that.governmentalQuantity,_that.freeKilledQuantity,_that.freeQuantity,_that.chainKilledQuantity,_that.chainKilledWeight,_that.outProvinceKilledWeight,_that.outProvinceKilledQuantity,_that.exportKilledWeight,_that.exportKilledQuantity,_that.totalCommitment,_that.commitmentType,_that.totalCommitmentQuantity,_that.totalFreeCommitmentQuantity,_that.totalFreeCommitmentWeight,_that.totalKilledWeight,_that.totalAverageKilledWeight,_that.requestLeftOver,_that.hall,_that.date,_that.predicateDate,_that.chickenBreed,_that.period,_that.allowHatching,_that.state,_that.archive,_that.violation,_that.message,_that.registrar,_that.breed,_that.cityNumber,_that.cityName,_that.provinceNumber,_that.provinceName,_that.lastChange,_that.chickenAge,_that.nowAge,_that.latestHatchingChange,_that.violationReport,_that.violationMessage,_that.violationImage,_that.violationReporter,_that.violationReportDate,_that.violationReportEditor,_that.violationReportEditDate,_that.totalLosses,_that.directLosses,_that.directLossesInputer,_that.directLossesDate,_that.directLossesEditor,_that.directLossesLastEditDate,_that.endPeriodLossesInputer,_that.endPeriodLossesDate,_that.endPeriodLossesEditor,_that.endPeriodLossesLastEditDate,_that.breedingUniqueId,_that.licenceNumber,_that.temporaryTrash,_that.temporaryDeleted,_that.firstDateInputArchive,_that.secondDateInputArchive,_that.inputArchiver,_that.outputArchiveDate,_that.outputArchiver,_that.barDifferenceRequestWeight,_that.barDifferenceRequestQuantity,_that.healthCertificate,_that.samasatDischargePercentage,_that.personTypeName,_that.interactTypeName,_that.unionTypeName,_that.certId,_that.increaseQuantity,_that.tenantFullname,_that.tenantNationalCode,_that.tenantMobile,_that.tenantCity,_that.hasTenant,_that.archiveDate,_that.createdBy,_that.modifiedBy);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _PoultryHatching implements PoultryHatching { + const _PoultryHatching({this.id, this.poultry, this.chainCompany, this.age, this.inspectionLosses, this.vetFarm, this.activeKill, this.killingInfo, this.freeGovernmentalInfo, this.managementHatchingAgeRange, this.key, this.createDate, this.modifyDate, this.trash, this.hasChainCompany, this.poultryIdForeignKey, this.poultryHatchingIdKey, this.quantity, this.losses, this.leftOver, this.killedQuantity, this.extraKilledQuantity, this.governmentalKilledQuantity, this.governmentalQuantity, this.freeKilledQuantity, this.freeQuantity, this.chainKilledQuantity, this.chainKilledWeight, this.outProvinceKilledWeight, this.outProvinceKilledQuantity, this.exportKilledWeight, this.exportKilledQuantity, this.totalCommitment, this.commitmentType, this.totalCommitmentQuantity, this.totalFreeCommitmentQuantity, this.totalFreeCommitmentWeight, this.totalKilledWeight, this.totalAverageKilledWeight, this.requestLeftOver, this.hall, this.date, this.predicateDate, this.chickenBreed, this.period, this.allowHatching, this.state, this.archive, this.violation, this.message, this.registrar, final List? breed, this.cityNumber, this.cityName, this.provinceNumber, this.provinceName, this.lastChange, this.chickenAge, this.nowAge, this.latestHatchingChange, this.violationReport, this.violationMessage, final List? violationImage, this.violationReporter, this.violationReportDate, this.violationReportEditor, this.violationReportEditDate, this.totalLosses, this.directLosses, this.directLossesInputer, this.directLossesDate, this.directLossesEditor, this.directLossesLastEditDate, this.endPeriodLossesInputer, this.endPeriodLossesDate, this.endPeriodLossesEditor, this.endPeriodLossesLastEditDate, this.breedingUniqueId, this.licenceNumber, this.temporaryTrash, this.temporaryDeleted, this.firstDateInputArchive, this.secondDateInputArchive, this.inputArchiver, this.outputArchiveDate, this.outputArchiver, this.barDifferenceRequestWeight, this.barDifferenceRequestQuantity, this.healthCertificate, this.samasatDischargePercentage, this.personTypeName, this.interactTypeName, this.unionTypeName, this.certId, this.increaseQuantity, this.tenantFullname, this.tenantNationalCode, this.tenantMobile, this.tenantCity, this.hasTenant, this.archiveDate, this.createdBy, this.modifiedBy}): _breed = breed,_violationImage = violationImage; + factory _PoultryHatching.fromJson(Map json) => _$PoultryHatchingFromJson(json); + +@override final int? id; +@override final Poultry? poultry; +@override final ChainCompany? 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 ManagementHatchingAgeRange? managementHatchingAgeRange; +@override final String? key; +@override final String? createDate; +@override final String? 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 String? date; +@override final dynamic 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 Registrar? registrar; + final List? _breed; +@override List? get breed { + final value = _breed; + if (value == null) return null; + if (_breed is EqualUnmodifiableListView) return _breed; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + +@override final 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 String? violationReport; +@override final String? violationMessage; + final List? _violationImage; +@override List? get violationImage { + final value = _violationImage; + if (value == null) return null; + if (_violationImage is EqualUnmodifiableListView) return _violationImage; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + +@override final String? violationReporter; +@override final String? violationReportDate; +@override final String? violationReportEditor; +@override final String? violationReportEditDate; +@override final int? totalLosses; +@override final int? directLosses; +@override final String? directLossesInputer; +@override final String? directLossesDate; +@override final String? directLossesEditor; +@override final String? directLossesLastEditDate; +@override final String? endPeriodLossesInputer; +@override final String? endPeriodLossesDate; +@override final String? endPeriodLossesEditor; +@override final String? endPeriodLossesLastEditDate; +@override final String? breedingUniqueId; +@override final String? licenceNumber; +@override final bool? temporaryTrash; +@override final bool? temporaryDeleted; +@override final 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 dynamic personTypeName; +@override final String? interactTypeName; +@override final dynamic unionTypeName; +@override final dynamic certId; +@override final int? increaseQuantity; +@override final String? tenantFullname; +@override final String? tenantNationalCode; +@override final String? tenantMobile; +@override final String? tenantCity; +@override final bool? hasTenant; +@override final dynamic archiveDate; +@override final dynamic createdBy; +@override final dynamic modifiedBy; + +/// Create a copy of PoultryHatching +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$PoultryHatchingCopyWith<_PoultryHatching> get copyWith => __$PoultryHatchingCopyWithImpl<_PoultryHatching>(this, _$identity); + +@override +Map toJson() { + return _$PoultryHatchingToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _PoultryHatching&&(identical(other.id, id) || other.id == id)&&(identical(other.poultry, poultry) || other.poultry == poultry)&&(identical(other.chainCompany, chainCompany) || other.chainCompany == chainCompany)&&(identical(other.age, age) || other.age == age)&&const DeepCollectionEquality().equals(other.inspectionLosses, inspectionLosses)&&(identical(other.vetFarm, vetFarm) || other.vetFarm == vetFarm)&&(identical(other.activeKill, activeKill) || other.activeKill == activeKill)&&(identical(other.killingInfo, killingInfo) || other.killingInfo == killingInfo)&&(identical(other.freeGovernmentalInfo, freeGovernmentalInfo) || other.freeGovernmentalInfo == freeGovernmentalInfo)&&(identical(other.managementHatchingAgeRange, managementHatchingAgeRange) || other.managementHatchingAgeRange == managementHatchingAgeRange)&&(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)&&const DeepCollectionEquality().equals(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)&&(identical(other.registrar, registrar) || other.registrar == registrar)&&const DeepCollectionEquality().equals(other._breed, _breed)&&(identical(other.cityNumber, cityNumber) || other.cityNumber == cityNumber)&&(identical(other.cityName, cityName) || other.cityName == cityName)&&(identical(other.provinceNumber, provinceNumber) || other.provinceNumber == provinceNumber)&&(identical(other.provinceName, provinceName) || other.provinceName == provinceName)&&(identical(other.lastChange, lastChange) || other.lastChange == lastChange)&&(identical(other.chickenAge, chickenAge) || other.chickenAge == chickenAge)&&(identical(other.nowAge, nowAge) || other.nowAge == nowAge)&&(identical(other.latestHatchingChange, latestHatchingChange) || other.latestHatchingChange == latestHatchingChange)&&(identical(other.violationReport, violationReport) || other.violationReport == violationReport)&&(identical(other.violationMessage, violationMessage) || other.violationMessage == violationMessage)&&const DeepCollectionEquality().equals(other._violationImage, _violationImage)&&(identical(other.violationReporter, violationReporter) || other.violationReporter == violationReporter)&&(identical(other.violationReportDate, violationReportDate) || other.violationReportDate == violationReportDate)&&(identical(other.violationReportEditor, violationReportEditor) || other.violationReportEditor == violationReportEditor)&&(identical(other.violationReportEditDate, violationReportEditDate) || other.violationReportEditDate == violationReportEditDate)&&(identical(other.totalLosses, totalLosses) || other.totalLosses == totalLosses)&&(identical(other.directLosses, directLosses) || other.directLosses == directLosses)&&(identical(other.directLossesInputer, directLossesInputer) || other.directLossesInputer == directLossesInputer)&&(identical(other.directLossesDate, directLossesDate) || other.directLossesDate == directLossesDate)&&(identical(other.directLossesEditor, directLossesEditor) || other.directLossesEditor == directLossesEditor)&&(identical(other.directLossesLastEditDate, directLossesLastEditDate) || other.directLossesLastEditDate == directLossesLastEditDate)&&(identical(other.endPeriodLossesInputer, endPeriodLossesInputer) || other.endPeriodLossesInputer == endPeriodLossesInputer)&&(identical(other.endPeriodLossesDate, endPeriodLossesDate) || other.endPeriodLossesDate == endPeriodLossesDate)&&(identical(other.endPeriodLossesEditor, endPeriodLossesEditor) || other.endPeriodLossesEditor == endPeriodLossesEditor)&&(identical(other.endPeriodLossesLastEditDate, endPeriodLossesLastEditDate) || other.endPeriodLossesLastEditDate == endPeriodLossesLastEditDate)&&(identical(other.breedingUniqueId, breedingUniqueId) || other.breedingUniqueId == breedingUniqueId)&&(identical(other.licenceNumber, licenceNumber) || other.licenceNumber == licenceNumber)&&(identical(other.temporaryTrash, temporaryTrash) || other.temporaryTrash == temporaryTrash)&&(identical(other.temporaryDeleted, temporaryDeleted) || other.temporaryDeleted == temporaryDeleted)&&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)&&const DeepCollectionEquality().equals(other.personTypeName, personTypeName)&&(identical(other.interactTypeName, interactTypeName) || other.interactTypeName == interactTypeName)&&const DeepCollectionEquality().equals(other.unionTypeName, unionTypeName)&&const DeepCollectionEquality().equals(other.certId, certId)&&(identical(other.increaseQuantity, increaseQuantity) || other.increaseQuantity == increaseQuantity)&&(identical(other.tenantFullname, tenantFullname) || other.tenantFullname == tenantFullname)&&(identical(other.tenantNationalCode, tenantNationalCode) || other.tenantNationalCode == tenantNationalCode)&&(identical(other.tenantMobile, tenantMobile) || other.tenantMobile == tenantMobile)&&(identical(other.tenantCity, tenantCity) || other.tenantCity == tenantCity)&&(identical(other.hasTenant, hasTenant) || other.hasTenant == hasTenant)&&const DeepCollectionEquality().equals(other.archiveDate, archiveDate)&&const DeepCollectionEquality().equals(other.createdBy, createdBy)&&const DeepCollectionEquality().equals(other.modifiedBy, modifiedBy)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,id,poultry,chainCompany,age,const DeepCollectionEquality().hash(inspectionLosses),vetFarm,activeKill,killingInfo,freeGovernmentalInfo,managementHatchingAgeRange,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,const DeepCollectionEquality().hash(predicateDate),chickenBreed,period,allowHatching,state,archive,violation,const DeepCollectionEquality().hash(message),registrar,const DeepCollectionEquality().hash(_breed),cityNumber,cityName,provinceNumber,provinceName,lastChange,chickenAge,nowAge,latestHatchingChange,violationReport,violationMessage,const DeepCollectionEquality().hash(_violationImage),violationReporter,violationReportDate,violationReportEditor,violationReportEditDate,totalLosses,directLosses,directLossesInputer,directLossesDate,directLossesEditor,directLossesLastEditDate,endPeriodLossesInputer,endPeriodLossesDate,endPeriodLossesEditor,endPeriodLossesLastEditDate,breedingUniqueId,licenceNumber,temporaryTrash,temporaryDeleted,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,const DeepCollectionEquality().hash(personTypeName),interactTypeName,const DeepCollectionEquality().hash(unionTypeName),const DeepCollectionEquality().hash(certId),increaseQuantity,tenantFullname,tenantNationalCode,tenantMobile,tenantCity,hasTenant,const DeepCollectionEquality().hash(archiveDate),const DeepCollectionEquality().hash(createdBy),const DeepCollectionEquality().hash(modifiedBy)]); + +@override +String toString() { + return 'PoultryHatching(id: $id, poultry: $poultry, chainCompany: $chainCompany, age: $age, inspectionLosses: $inspectionLosses, vetFarm: $vetFarm, activeKill: $activeKill, killingInfo: $killingInfo, freeGovernmentalInfo: $freeGovernmentalInfo, managementHatchingAgeRange: $managementHatchingAgeRange, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, hasChainCompany: $hasChainCompany, poultryIdForeignKey: $poultryIdForeignKey, poultryHatchingIdKey: $poultryHatchingIdKey, quantity: $quantity, losses: $losses, leftOver: $leftOver, killedQuantity: $killedQuantity, extraKilledQuantity: $extraKilledQuantity, governmentalKilledQuantity: $governmentalKilledQuantity, governmentalQuantity: $governmentalQuantity, freeKilledQuantity: $freeKilledQuantity, freeQuantity: $freeQuantity, chainKilledQuantity: $chainKilledQuantity, chainKilledWeight: $chainKilledWeight, outProvinceKilledWeight: $outProvinceKilledWeight, outProvinceKilledQuantity: $outProvinceKilledQuantity, exportKilledWeight: $exportKilledWeight, exportKilledQuantity: $exportKilledQuantity, totalCommitment: $totalCommitment, commitmentType: $commitmentType, totalCommitmentQuantity: $totalCommitmentQuantity, totalFreeCommitmentQuantity: $totalFreeCommitmentQuantity, totalFreeCommitmentWeight: $totalFreeCommitmentWeight, totalKilledWeight: $totalKilledWeight, totalAverageKilledWeight: $totalAverageKilledWeight, requestLeftOver: $requestLeftOver, hall: $hall, date: $date, predicateDate: $predicateDate, chickenBreed: $chickenBreed, period: $period, allowHatching: $allowHatching, state: $state, archive: $archive, violation: $violation, message: $message, registrar: $registrar, breed: $breed, cityNumber: $cityNumber, cityName: $cityName, provinceNumber: $provinceNumber, provinceName: $provinceName, lastChange: $lastChange, chickenAge: $chickenAge, nowAge: $nowAge, latestHatchingChange: $latestHatchingChange, violationReport: $violationReport, violationMessage: $violationMessage, violationImage: $violationImage, violationReporter: $violationReporter, violationReportDate: $violationReportDate, violationReportEditor: $violationReportEditor, violationReportEditDate: $violationReportEditDate, totalLosses: $totalLosses, directLosses: $directLosses, directLossesInputer: $directLossesInputer, directLossesDate: $directLossesDate, directLossesEditor: $directLossesEditor, directLossesLastEditDate: $directLossesLastEditDate, endPeriodLossesInputer: $endPeriodLossesInputer, endPeriodLossesDate: $endPeriodLossesDate, endPeriodLossesEditor: $endPeriodLossesEditor, endPeriodLossesLastEditDate: $endPeriodLossesLastEditDate, breedingUniqueId: $breedingUniqueId, licenceNumber: $licenceNumber, temporaryTrash: $temporaryTrash, temporaryDeleted: $temporaryDeleted, firstDateInputArchive: $firstDateInputArchive, secondDateInputArchive: $secondDateInputArchive, inputArchiver: $inputArchiver, outputArchiveDate: $outputArchiveDate, outputArchiver: $outputArchiver, barDifferenceRequestWeight: $barDifferenceRequestWeight, barDifferenceRequestQuantity: $barDifferenceRequestQuantity, healthCertificate: $healthCertificate, samasatDischargePercentage: $samasatDischargePercentage, personTypeName: $personTypeName, interactTypeName: $interactTypeName, unionTypeName: $unionTypeName, certId: $certId, increaseQuantity: $increaseQuantity, tenantFullname: $tenantFullname, tenantNationalCode: $tenantNationalCode, tenantMobile: $tenantMobile, tenantCity: $tenantCity, hasTenant: $hasTenant, archiveDate: $archiveDate, createdBy: $createdBy, modifiedBy: $modifiedBy)'; +} + + +} + +/// @nodoc +abstract mixin class _$PoultryHatchingCopyWith<$Res> implements $PoultryHatchingCopyWith<$Res> { + factory _$PoultryHatchingCopyWith(_PoultryHatching value, $Res Function(_PoultryHatching) _then) = __$PoultryHatchingCopyWithImpl; +@override @useResult +$Res call({ + int? id, Poultry? poultry, ChainCompany? chainCompany, int? age, dynamic inspectionLosses, VetFarm? vetFarm, ActiveKill? activeKill, KillingInfo? killingInfo, FreeGovernmentalInfo? freeGovernmentalInfo, ManagementHatchingAgeRange? managementHatchingAgeRange, String? key, String? createDate, String? 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, String? date, dynamic predicateDate, String? chickenBreed, int? period, String? allowHatching, String? state, bool? archive, bool? violation, dynamic message, Registrar? registrar, List? breed, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, LastChange? lastChange, int? chickenAge, int? nowAge, LatestHatchingChange? latestHatchingChange, String? violationReport, String? violationMessage, List? violationImage, String? violationReporter, String? violationReportDate, String? violationReportEditor, String? violationReportEditDate, int? totalLosses, int? directLosses, String? directLossesInputer, String? directLossesDate, String? directLossesEditor, String? directLossesLastEditDate, String? endPeriodLossesInputer, String? endPeriodLossesDate, String? endPeriodLossesEditor, String? endPeriodLossesLastEditDate, String? breedingUniqueId, String? licenceNumber, bool? temporaryTrash, bool? temporaryDeleted, dynamic firstDateInputArchive, dynamic secondDateInputArchive, dynamic inputArchiver, dynamic outputArchiveDate, dynamic outputArchiver, double? barDifferenceRequestWeight, double? barDifferenceRequestQuantity, dynamic healthCertificate, int? samasatDischargePercentage, dynamic personTypeName, String? interactTypeName, dynamic unionTypeName, dynamic certId, int? increaseQuantity, String? tenantFullname, String? tenantNationalCode, String? tenantMobile, String? tenantCity, bool? hasTenant, dynamic archiveDate, dynamic createdBy, dynamic modifiedBy +}); + + +@override $PoultryCopyWith<$Res>? get poultry;@override $ChainCompanyCopyWith<$Res>? get chainCompany;@override $VetFarmCopyWith<$Res>? get vetFarm;@override $ActiveKillCopyWith<$Res>? get activeKill;@override $KillingInfoCopyWith<$Res>? get killingInfo;@override $FreeGovernmentalInfoCopyWith<$Res>? get freeGovernmentalInfo;@override $ManagementHatchingAgeRangeCopyWith<$Res>? get managementHatchingAgeRange;@override $RegistrarCopyWith<$Res>? get registrar;@override $LastChangeCopyWith<$Res>? get lastChange;@override $LatestHatchingChangeCopyWith<$Res>? get latestHatchingChange; + +} +/// @nodoc +class __$PoultryHatchingCopyWithImpl<$Res> + implements _$PoultryHatchingCopyWith<$Res> { + __$PoultryHatchingCopyWithImpl(this._self, this._then); + + final _PoultryHatching _self; + final $Res Function(_PoultryHatching) _then; + +/// Create a copy of PoultryHatching +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? poultry = freezed,Object? chainCompany = freezed,Object? age = freezed,Object? inspectionLosses = freezed,Object? vetFarm = freezed,Object? activeKill = freezed,Object? killingInfo = freezed,Object? freeGovernmentalInfo = freezed,Object? managementHatchingAgeRange = freezed,Object? key = freezed,Object? createDate = freezed,Object? modifyDate = freezed,Object? trash = freezed,Object? hasChainCompany = freezed,Object? poultryIdForeignKey = freezed,Object? poultryHatchingIdKey = freezed,Object? quantity = freezed,Object? losses = freezed,Object? leftOver = freezed,Object? killedQuantity = freezed,Object? extraKilledQuantity = freezed,Object? governmentalKilledQuantity = freezed,Object? governmentalQuantity = freezed,Object? freeKilledQuantity = freezed,Object? freeQuantity = freezed,Object? chainKilledQuantity = freezed,Object? chainKilledWeight = freezed,Object? outProvinceKilledWeight = freezed,Object? outProvinceKilledQuantity = freezed,Object? exportKilledWeight = freezed,Object? exportKilledQuantity = freezed,Object? totalCommitment = freezed,Object? commitmentType = freezed,Object? totalCommitmentQuantity = freezed,Object? totalFreeCommitmentQuantity = freezed,Object? totalFreeCommitmentWeight = freezed,Object? totalKilledWeight = freezed,Object? totalAverageKilledWeight = freezed,Object? requestLeftOver = freezed,Object? hall = freezed,Object? date = freezed,Object? predicateDate = freezed,Object? chickenBreed = freezed,Object? period = freezed,Object? allowHatching = freezed,Object? state = freezed,Object? archive = freezed,Object? violation = freezed,Object? message = freezed,Object? registrar = freezed,Object? breed = freezed,Object? cityNumber = freezed,Object? cityName = freezed,Object? provinceNumber = freezed,Object? provinceName = freezed,Object? lastChange = freezed,Object? chickenAge = freezed,Object? nowAge = freezed,Object? latestHatchingChange = freezed,Object? violationReport = freezed,Object? violationMessage = freezed,Object? violationImage = freezed,Object? violationReporter = freezed,Object? violationReportDate = freezed,Object? violationReportEditor = freezed,Object? violationReportEditDate = freezed,Object? totalLosses = freezed,Object? directLosses = freezed,Object? directLossesInputer = freezed,Object? directLossesDate = freezed,Object? directLossesEditor = freezed,Object? directLossesLastEditDate = freezed,Object? endPeriodLossesInputer = freezed,Object? endPeriodLossesDate = freezed,Object? endPeriodLossesEditor = freezed,Object? endPeriodLossesLastEditDate = freezed,Object? breedingUniqueId = freezed,Object? licenceNumber = freezed,Object? temporaryTrash = freezed,Object? temporaryDeleted = freezed,Object? firstDateInputArchive = freezed,Object? secondDateInputArchive = freezed,Object? inputArchiver = freezed,Object? outputArchiveDate = freezed,Object? outputArchiver = freezed,Object? barDifferenceRequestWeight = freezed,Object? barDifferenceRequestQuantity = freezed,Object? healthCertificate = freezed,Object? samasatDischargePercentage = freezed,Object? personTypeName = freezed,Object? interactTypeName = freezed,Object? unionTypeName = freezed,Object? certId = freezed,Object? increaseQuantity = freezed,Object? tenantFullname = freezed,Object? tenantNationalCode = freezed,Object? tenantMobile = freezed,Object? tenantCity = freezed,Object? hasTenant = freezed,Object? archiveDate = freezed,Object? createdBy = freezed,Object? modifiedBy = freezed,}) { + return _then(_PoultryHatching( +id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable +as int?,poultry: freezed == poultry ? _self.poultry : poultry // ignore: cast_nullable_to_non_nullable +as Poultry?,chainCompany: freezed == chainCompany ? _self.chainCompany : chainCompany // ignore: cast_nullable_to_non_nullable +as ChainCompany?,age: freezed == age ? _self.age : age // ignore: cast_nullable_to_non_nullable +as 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?,managementHatchingAgeRange: freezed == managementHatchingAgeRange ? _self.managementHatchingAgeRange : managementHatchingAgeRange // ignore: cast_nullable_to_non_nullable +as ManagementHatchingAgeRange?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,createDate: freezed == createDate ? _self.createDate : createDate // ignore: cast_nullable_to_non_nullable +as String?,modifyDate: freezed == modifyDate ? _self.modifyDate : modifyDate // ignore: cast_nullable_to_non_nullable +as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable +as bool?,hasChainCompany: freezed == hasChainCompany ? _self.hasChainCompany : hasChainCompany // ignore: cast_nullable_to_non_nullable +as bool?,poultryIdForeignKey: freezed == poultryIdForeignKey ? _self.poultryIdForeignKey : poultryIdForeignKey // ignore: cast_nullable_to_non_nullable +as 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 String?,predicateDate: freezed == predicateDate ? _self.predicateDate : predicateDate // ignore: cast_nullable_to_non_nullable +as dynamic,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 Registrar?,breed: freezed == breed ? _self._breed : breed // ignore: cast_nullable_to_non_nullable +as List?,cityNumber: freezed == cityNumber ? _self.cityNumber : cityNumber // ignore: cast_nullable_to_non_nullable +as 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 String?,violationMessage: freezed == violationMessage ? _self.violationMessage : violationMessage // ignore: cast_nullable_to_non_nullable +as String?,violationImage: freezed == violationImage ? _self._violationImage : violationImage // ignore: cast_nullable_to_non_nullable +as List?,violationReporter: freezed == violationReporter ? _self.violationReporter : violationReporter // ignore: cast_nullable_to_non_nullable +as String?,violationReportDate: freezed == violationReportDate ? _self.violationReportDate : violationReportDate // ignore: cast_nullable_to_non_nullable +as String?,violationReportEditor: freezed == violationReportEditor ? _self.violationReportEditor : violationReportEditor // ignore: cast_nullable_to_non_nullable +as String?,violationReportEditDate: freezed == violationReportEditDate ? _self.violationReportEditDate : violationReportEditDate // ignore: cast_nullable_to_non_nullable +as String?,totalLosses: freezed == totalLosses ? _self.totalLosses : totalLosses // ignore: cast_nullable_to_non_nullable +as 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 String?,directLossesDate: freezed == directLossesDate ? _self.directLossesDate : directLossesDate // ignore: cast_nullable_to_non_nullable +as String?,directLossesEditor: freezed == directLossesEditor ? _self.directLossesEditor : directLossesEditor // ignore: cast_nullable_to_non_nullable +as String?,directLossesLastEditDate: freezed == directLossesLastEditDate ? _self.directLossesLastEditDate : directLossesLastEditDate // ignore: cast_nullable_to_non_nullable +as String?,endPeriodLossesInputer: freezed == endPeriodLossesInputer ? _self.endPeriodLossesInputer : endPeriodLossesInputer // ignore: cast_nullable_to_non_nullable +as String?,endPeriodLossesDate: freezed == endPeriodLossesDate ? _self.endPeriodLossesDate : endPeriodLossesDate // ignore: cast_nullable_to_non_nullable +as String?,endPeriodLossesEditor: freezed == endPeriodLossesEditor ? _self.endPeriodLossesEditor : endPeriodLossesEditor // ignore: cast_nullable_to_non_nullable +as String?,endPeriodLossesLastEditDate: freezed == endPeriodLossesLastEditDate ? _self.endPeriodLossesLastEditDate : endPeriodLossesLastEditDate // ignore: cast_nullable_to_non_nullable +as String?,breedingUniqueId: freezed == breedingUniqueId ? _self.breedingUniqueId : breedingUniqueId // ignore: cast_nullable_to_non_nullable +as String?,licenceNumber: freezed == licenceNumber ? _self.licenceNumber : licenceNumber // ignore: cast_nullable_to_non_nullable +as String?,temporaryTrash: freezed == temporaryTrash ? _self.temporaryTrash : temporaryTrash // ignore: cast_nullable_to_non_nullable +as bool?,temporaryDeleted: freezed == temporaryDeleted ? _self.temporaryDeleted : temporaryDeleted // ignore: cast_nullable_to_non_nullable +as bool?,firstDateInputArchive: freezed == firstDateInputArchive ? _self.firstDateInputArchive : firstDateInputArchive // ignore: cast_nullable_to_non_nullable +as 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 dynamic,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 dynamic,certId: freezed == certId ? _self.certId : certId // ignore: cast_nullable_to_non_nullable +as dynamic,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 String?,tenantNationalCode: freezed == tenantNationalCode ? _self.tenantNationalCode : tenantNationalCode // ignore: cast_nullable_to_non_nullable +as String?,tenantMobile: freezed == tenantMobile ? _self.tenantMobile : tenantMobile // ignore: cast_nullable_to_non_nullable +as String?,tenantCity: freezed == tenantCity ? _self.tenantCity : tenantCity // ignore: cast_nullable_to_non_nullable +as String?,hasTenant: freezed == hasTenant ? _self.hasTenant : hasTenant // ignore: cast_nullable_to_non_nullable +as bool?,archiveDate: freezed == archiveDate ? _self.archiveDate : archiveDate // ignore: cast_nullable_to_non_nullable +as dynamic,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, + )); +} + +/// Create a copy of PoultryHatching +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$PoultryCopyWith<$Res>? get poultry { + if (_self.poultry == null) { + return null; + } + + return $PoultryCopyWith<$Res>(_self.poultry!, (value) { + return _then(_self.copyWith(poultry: value)); + }); +}/// Create a copy of PoultryHatching +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ChainCompanyCopyWith<$Res>? get chainCompany { + if (_self.chainCompany == null) { + return null; + } + + return $ChainCompanyCopyWith<$Res>(_self.chainCompany!, (value) { + return _then(_self.copyWith(chainCompany: value)); + }); +}/// Create a copy of PoultryHatching +/// 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 PoultryHatching +/// 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 PoultryHatching +/// 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 PoultryHatching +/// 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 PoultryHatching +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ManagementHatchingAgeRangeCopyWith<$Res>? get managementHatchingAgeRange { + if (_self.managementHatchingAgeRange == null) { + return null; + } + + return $ManagementHatchingAgeRangeCopyWith<$Res>(_self.managementHatchingAgeRange!, (value) { + return _then(_self.copyWith(managementHatchingAgeRange: value)); + }); +}/// Create a copy of PoultryHatching +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$RegistrarCopyWith<$Res>? get registrar { + if (_self.registrar == null) { + return null; + } + + return $RegistrarCopyWith<$Res>(_self.registrar!, (value) { + return _then(_self.copyWith(registrar: value)); + }); +}/// Create a copy of PoultryHatching +/// 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 PoultryHatching +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$LatestHatchingChangeCopyWith<$Res>? get latestHatchingChange { + if (_self.latestHatchingChange == null) { + return null; + } + + return $LatestHatchingChangeCopyWith<$Res>(_self.latestHatchingChange!, (value) { + return _then(_self.copyWith(latestHatchingChange: value)); + }); +} +} + + +/// @nodoc +mixin _$Poultry { + + UserProfile? get userprofile; Address? get address; dynamic get poultryOwner; PoultryTenant? get poultryTenant; List? get hatching; List? get registerVetHalls; Allow? get allow; ProvinceAllowChooseKillHouse? get provinceAllowChooseKillHouse; bool? get provinceAllowSellFree; VetFarm? get vetFarm; LastHatchingDiffrentRequestQuantity? get lastHatchingDiffrentRequestQuantity; UserBankInfo? get userBankInfo; int? get leftOverOwnHatching; String? get key; bool? get trash; int? get ownerIdForeignKey; int? get userIdForeignKey; int? get addressIdForeignKey; bool? get hasChainCompany; int? get userBankIdForeignKey; String? get cityOperator; String? get unitName; String? get gisCode; int? get operatingLicenceCapacity; int? get numberOfHalls; bool? get tenant; bool? get hasTenant; dynamic get personType; dynamic get economicCode; String? get systemCode; String? get epidemiologicalCode; String? get breedingUniqueId; int? get totalCapacity; String? get licenceNumber; String? get healthCertificateNumber; int? get numberOfRequests; String? get hatchingDate; String? get lastPartyDate; int? get numberOfIncubators; int? get herdAgeByDay; int? get herdAgeByWeek; int? get numberOfParty; dynamic get communicationType; dynamic get cooperative; String? get dateOfRegister; dynamic get unitStatus; bool? get active; dynamic get identityDocuments; dynamic get samasatUserCode; dynamic get baseOrder; String? get incubationDate; int? get walletAmount; int? get city; int? get cityNumber; String? get cityName; int? get provinceNumber; String? get provinceName; int? get walletIdForeignKey; int? get poultryIdKey; double? get lat; double? get long; dynamic get date; int? get killingAveAge; int? get activeLeftOver; int? get killingAveCount; int? get killingAveWeight; int? get killingLiveWeight; int? get killingCarcassesWeight; int? get killingLossWeightPercent; double? get realKillingAveWeight; double? get realKillingLiveWeight; double? get realKillingCarcassesWeight; double? get realKillingLossWeightPercent; dynamic get interestLicenseId; bool? get orderLimit; dynamic get owner; int? get wallet; +/// Create a copy of Poultry +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$PoultryCopyWith get copyWith => _$PoultryCopyWithImpl(this as Poultry, _$identity); + + /// Serializes this Poultry to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is Poultry&&(identical(other.userprofile, userprofile) || other.userprofile == userprofile)&&(identical(other.address, address) || other.address == address)&&const DeepCollectionEquality().equals(other.poultryOwner, poultryOwner)&&(identical(other.poultryTenant, poultryTenant) || other.poultryTenant == poultryTenant)&&const DeepCollectionEquality().equals(other.hatching, hatching)&&const DeepCollectionEquality().equals(other.registerVetHalls, registerVetHalls)&&(identical(other.allow, allow) || other.allow == allow)&&(identical(other.provinceAllowChooseKillHouse, provinceAllowChooseKillHouse) || other.provinceAllowChooseKillHouse == provinceAllowChooseKillHouse)&&(identical(other.provinceAllowSellFree, provinceAllowSellFree) || other.provinceAllowSellFree == provinceAllowSellFree)&&(identical(other.vetFarm, vetFarm) || other.vetFarm == vetFarm)&&(identical(other.lastHatchingDiffrentRequestQuantity, lastHatchingDiffrentRequestQuantity) || other.lastHatchingDiffrentRequestQuantity == lastHatchingDiffrentRequestQuantity)&&(identical(other.userBankInfo, userBankInfo) || other.userBankInfo == userBankInfo)&&(identical(other.leftOverOwnHatching, leftOverOwnHatching) || other.leftOverOwnHatching == leftOverOwnHatching)&&(identical(other.key, key) || other.key == key)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.ownerIdForeignKey, ownerIdForeignKey) || other.ownerIdForeignKey == ownerIdForeignKey)&&(identical(other.userIdForeignKey, userIdForeignKey) || other.userIdForeignKey == userIdForeignKey)&&(identical(other.addressIdForeignKey, addressIdForeignKey) || other.addressIdForeignKey == addressIdForeignKey)&&(identical(other.hasChainCompany, hasChainCompany) || other.hasChainCompany == hasChainCompany)&&(identical(other.userBankIdForeignKey, userBankIdForeignKey) || other.userBankIdForeignKey == userBankIdForeignKey)&&(identical(other.cityOperator, cityOperator) || other.cityOperator == cityOperator)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.gisCode, gisCode) || other.gisCode == gisCode)&&(identical(other.operatingLicenceCapacity, operatingLicenceCapacity) || other.operatingLicenceCapacity == operatingLicenceCapacity)&&(identical(other.numberOfHalls, numberOfHalls) || other.numberOfHalls == numberOfHalls)&&(identical(other.tenant, tenant) || other.tenant == tenant)&&(identical(other.hasTenant, hasTenant) || other.hasTenant == hasTenant)&&const DeepCollectionEquality().equals(other.personType, personType)&&const DeepCollectionEquality().equals(other.economicCode, economicCode)&&(identical(other.systemCode, systemCode) || other.systemCode == systemCode)&&(identical(other.epidemiologicalCode, epidemiologicalCode) || other.epidemiologicalCode == epidemiologicalCode)&&(identical(other.breedingUniqueId, breedingUniqueId) || other.breedingUniqueId == breedingUniqueId)&&(identical(other.totalCapacity, totalCapacity) || other.totalCapacity == totalCapacity)&&(identical(other.licenceNumber, licenceNumber) || other.licenceNumber == licenceNumber)&&(identical(other.healthCertificateNumber, healthCertificateNumber) || other.healthCertificateNumber == healthCertificateNumber)&&(identical(other.numberOfRequests, numberOfRequests) || other.numberOfRequests == numberOfRequests)&&(identical(other.hatchingDate, hatchingDate) || other.hatchingDate == hatchingDate)&&(identical(other.lastPartyDate, lastPartyDate) || other.lastPartyDate == lastPartyDate)&&(identical(other.numberOfIncubators, numberOfIncubators) || other.numberOfIncubators == numberOfIncubators)&&(identical(other.herdAgeByDay, herdAgeByDay) || other.herdAgeByDay == herdAgeByDay)&&(identical(other.herdAgeByWeek, herdAgeByWeek) || other.herdAgeByWeek == herdAgeByWeek)&&(identical(other.numberOfParty, numberOfParty) || other.numberOfParty == numberOfParty)&&const DeepCollectionEquality().equals(other.communicationType, communicationType)&&const DeepCollectionEquality().equals(other.cooperative, cooperative)&&(identical(other.dateOfRegister, dateOfRegister) || other.dateOfRegister == dateOfRegister)&&const DeepCollectionEquality().equals(other.unitStatus, unitStatus)&&(identical(other.active, active) || other.active == active)&&const DeepCollectionEquality().equals(other.identityDocuments, identityDocuments)&&const DeepCollectionEquality().equals(other.samasatUserCode, samasatUserCode)&&const DeepCollectionEquality().equals(other.baseOrder, baseOrder)&&(identical(other.incubationDate, incubationDate) || other.incubationDate == incubationDate)&&(identical(other.walletAmount, walletAmount) || other.walletAmount == walletAmount)&&(identical(other.city, city) || other.city == city)&&(identical(other.cityNumber, cityNumber) || other.cityNumber == cityNumber)&&(identical(other.cityName, cityName) || other.cityName == cityName)&&(identical(other.provinceNumber, provinceNumber) || other.provinceNumber == provinceNumber)&&(identical(other.provinceName, provinceName) || other.provinceName == provinceName)&&(identical(other.walletIdForeignKey, walletIdForeignKey) || other.walletIdForeignKey == walletIdForeignKey)&&(identical(other.poultryIdKey, poultryIdKey) || other.poultryIdKey == poultryIdKey)&&(identical(other.lat, lat) || other.lat == lat)&&(identical(other.long, long) || other.long == long)&&const DeepCollectionEquality().equals(other.date, date)&&(identical(other.killingAveAge, killingAveAge) || other.killingAveAge == killingAveAge)&&(identical(other.activeLeftOver, activeLeftOver) || other.activeLeftOver == activeLeftOver)&&(identical(other.killingAveCount, killingAveCount) || other.killingAveCount == killingAveCount)&&(identical(other.killingAveWeight, killingAveWeight) || other.killingAveWeight == killingAveWeight)&&(identical(other.killingLiveWeight, killingLiveWeight) || other.killingLiveWeight == killingLiveWeight)&&(identical(other.killingCarcassesWeight, killingCarcassesWeight) || other.killingCarcassesWeight == killingCarcassesWeight)&&(identical(other.killingLossWeightPercent, killingLossWeightPercent) || other.killingLossWeightPercent == killingLossWeightPercent)&&(identical(other.realKillingAveWeight, realKillingAveWeight) || other.realKillingAveWeight == realKillingAveWeight)&&(identical(other.realKillingLiveWeight, realKillingLiveWeight) || other.realKillingLiveWeight == realKillingLiveWeight)&&(identical(other.realKillingCarcassesWeight, realKillingCarcassesWeight) || other.realKillingCarcassesWeight == realKillingCarcassesWeight)&&(identical(other.realKillingLossWeightPercent, realKillingLossWeightPercent) || other.realKillingLossWeightPercent == realKillingLossWeightPercent)&&const DeepCollectionEquality().equals(other.interestLicenseId, interestLicenseId)&&(identical(other.orderLimit, orderLimit) || other.orderLimit == orderLimit)&&const DeepCollectionEquality().equals(other.owner, owner)&&(identical(other.wallet, wallet) || other.wallet == wallet)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,userprofile,address,const DeepCollectionEquality().hash(poultryOwner),poultryTenant,const DeepCollectionEquality().hash(hatching),const DeepCollectionEquality().hash(registerVetHalls),allow,provinceAllowChooseKillHouse,provinceAllowSellFree,vetFarm,lastHatchingDiffrentRequestQuantity,userBankInfo,leftOverOwnHatching,key,trash,ownerIdForeignKey,userIdForeignKey,addressIdForeignKey,hasChainCompany,userBankIdForeignKey,cityOperator,unitName,gisCode,operatingLicenceCapacity,numberOfHalls,tenant,hasTenant,const DeepCollectionEquality().hash(personType),const DeepCollectionEquality().hash(economicCode),systemCode,epidemiologicalCode,breedingUniqueId,totalCapacity,licenceNumber,healthCertificateNumber,numberOfRequests,hatchingDate,lastPartyDate,numberOfIncubators,herdAgeByDay,herdAgeByWeek,numberOfParty,const DeepCollectionEquality().hash(communicationType),const DeepCollectionEquality().hash(cooperative),dateOfRegister,const DeepCollectionEquality().hash(unitStatus),active,const DeepCollectionEquality().hash(identityDocuments),const DeepCollectionEquality().hash(samasatUserCode),const DeepCollectionEquality().hash(baseOrder),incubationDate,walletAmount,city,cityNumber,cityName,provinceNumber,provinceName,walletIdForeignKey,poultryIdKey,lat,long,const DeepCollectionEquality().hash(date),killingAveAge,activeLeftOver,killingAveCount,killingAveWeight,killingLiveWeight,killingCarcassesWeight,killingLossWeightPercent,realKillingAveWeight,realKillingLiveWeight,realKillingCarcassesWeight,realKillingLossWeightPercent,const DeepCollectionEquality().hash(interestLicenseId),orderLimit,const DeepCollectionEquality().hash(owner),wallet]); + +@override +String toString() { + return 'Poultry(userprofile: $userprofile, address: $address, poultryOwner: $poultryOwner, poultryTenant: $poultryTenant, hatching: $hatching, registerVetHalls: $registerVetHalls, allow: $allow, provinceAllowChooseKillHouse: $provinceAllowChooseKillHouse, provinceAllowSellFree: $provinceAllowSellFree, vetFarm: $vetFarm, lastHatchingDiffrentRequestQuantity: $lastHatchingDiffrentRequestQuantity, userBankInfo: $userBankInfo, leftOverOwnHatching: $leftOverOwnHatching, key: $key, trash: $trash, ownerIdForeignKey: $ownerIdForeignKey, userIdForeignKey: $userIdForeignKey, addressIdForeignKey: $addressIdForeignKey, hasChainCompany: $hasChainCompany, userBankIdForeignKey: $userBankIdForeignKey, cityOperator: $cityOperator, unitName: $unitName, gisCode: $gisCode, operatingLicenceCapacity: $operatingLicenceCapacity, numberOfHalls: $numberOfHalls, tenant: $tenant, hasTenant: $hasTenant, personType: $personType, economicCode: $economicCode, systemCode: $systemCode, epidemiologicalCode: $epidemiologicalCode, breedingUniqueId: $breedingUniqueId, totalCapacity: $totalCapacity, licenceNumber: $licenceNumber, healthCertificateNumber: $healthCertificateNumber, numberOfRequests: $numberOfRequests, hatchingDate: $hatchingDate, lastPartyDate: $lastPartyDate, numberOfIncubators: $numberOfIncubators, herdAgeByDay: $herdAgeByDay, herdAgeByWeek: $herdAgeByWeek, numberOfParty: $numberOfParty, communicationType: $communicationType, cooperative: $cooperative, dateOfRegister: $dateOfRegister, unitStatus: $unitStatus, active: $active, identityDocuments: $identityDocuments, samasatUserCode: $samasatUserCode, baseOrder: $baseOrder, incubationDate: $incubationDate, walletAmount: $walletAmount, city: $city, cityNumber: $cityNumber, cityName: $cityName, provinceNumber: $provinceNumber, provinceName: $provinceName, walletIdForeignKey: $walletIdForeignKey, poultryIdKey: $poultryIdKey, lat: $lat, long: $long, date: $date, killingAveAge: $killingAveAge, activeLeftOver: $activeLeftOver, killingAveCount: $killingAveCount, killingAveWeight: $killingAveWeight, killingLiveWeight: $killingLiveWeight, killingCarcassesWeight: $killingCarcassesWeight, killingLossWeightPercent: $killingLossWeightPercent, realKillingAveWeight: $realKillingAveWeight, realKillingLiveWeight: $realKillingLiveWeight, realKillingCarcassesWeight: $realKillingCarcassesWeight, realKillingLossWeightPercent: $realKillingLossWeightPercent, interestLicenseId: $interestLicenseId, orderLimit: $orderLimit, owner: $owner, wallet: $wallet)'; +} + + +} + +/// @nodoc +abstract mixin class $PoultryCopyWith<$Res> { + factory $PoultryCopyWith(Poultry value, $Res Function(Poultry) _then) = _$PoultryCopyWithImpl; +@useResult +$Res call({ + UserProfile? userprofile, Address? address, dynamic poultryOwner, PoultryTenant? poultryTenant, List? hatching, List? registerVetHalls, Allow? allow, ProvinceAllowChooseKillHouse? provinceAllowChooseKillHouse, bool? provinceAllowSellFree, VetFarm? vetFarm, LastHatchingDiffrentRequestQuantity? lastHatchingDiffrentRequestQuantity, UserBankInfo? userBankInfo, int? leftOverOwnHatching, String? key, bool? trash, int? ownerIdForeignKey, int? userIdForeignKey, int? addressIdForeignKey, bool? hasChainCompany, int? userBankIdForeignKey, String? cityOperator, String? unitName, String? gisCode, int? operatingLicenceCapacity, int? numberOfHalls, bool? tenant, bool? hasTenant, dynamic personType, dynamic economicCode, String? systemCode, String? epidemiologicalCode, String? breedingUniqueId, int? totalCapacity, String? licenceNumber, String? healthCertificateNumber, int? numberOfRequests, String? hatchingDate, String? lastPartyDate, int? numberOfIncubators, int? herdAgeByDay, int? herdAgeByWeek, int? numberOfParty, dynamic communicationType, dynamic cooperative, String? dateOfRegister, dynamic unitStatus, bool? active, dynamic identityDocuments, dynamic samasatUserCode, dynamic baseOrder, String? incubationDate, int? walletAmount, int? city, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, int? walletIdForeignKey, int? poultryIdKey, double? lat, double? long, dynamic date, int? killingAveAge, int? activeLeftOver, int? killingAveCount, int? killingAveWeight, int? killingLiveWeight, int? killingCarcassesWeight, int? killingLossWeightPercent, double? realKillingAveWeight, double? realKillingLiveWeight, double? realKillingCarcassesWeight, double? realKillingLossWeightPercent, dynamic interestLicenseId, bool? orderLimit, dynamic owner, int? wallet +}); + + +$UserProfileCopyWith<$Res>? get userprofile;$AddressCopyWith<$Res>? get address;$PoultryTenantCopyWith<$Res>? get poultryTenant;$AllowCopyWith<$Res>? get allow;$ProvinceAllowChooseKillHouseCopyWith<$Res>? get provinceAllowChooseKillHouse;$VetFarmCopyWith<$Res>? get vetFarm;$LastHatchingDiffrentRequestQuantityCopyWith<$Res>? get lastHatchingDiffrentRequestQuantity;$UserBankInfoCopyWith<$Res>? get userBankInfo; + +} +/// @nodoc +class _$PoultryCopyWithImpl<$Res> + implements $PoultryCopyWith<$Res> { + _$PoultryCopyWithImpl(this._self, this._then); + + final Poultry _self; + final $Res Function(Poultry) _then; + +/// Create a copy of Poultry +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? userprofile = freezed,Object? address = freezed,Object? poultryOwner = freezed,Object? poultryTenant = freezed,Object? hatching = freezed,Object? registerVetHalls = freezed,Object? allow = freezed,Object? provinceAllowChooseKillHouse = freezed,Object? provinceAllowSellFree = freezed,Object? vetFarm = freezed,Object? lastHatchingDiffrentRequestQuantity = freezed,Object? userBankInfo = freezed,Object? leftOverOwnHatching = freezed,Object? key = freezed,Object? trash = freezed,Object? ownerIdForeignKey = freezed,Object? userIdForeignKey = freezed,Object? addressIdForeignKey = freezed,Object? hasChainCompany = freezed,Object? userBankIdForeignKey = freezed,Object? cityOperator = freezed,Object? unitName = freezed,Object? gisCode = freezed,Object? operatingLicenceCapacity = freezed,Object? numberOfHalls = freezed,Object? tenant = freezed,Object? hasTenant = freezed,Object? personType = freezed,Object? economicCode = freezed,Object? systemCode = freezed,Object? epidemiologicalCode = freezed,Object? breedingUniqueId = freezed,Object? totalCapacity = freezed,Object? licenceNumber = freezed,Object? healthCertificateNumber = freezed,Object? numberOfRequests = freezed,Object? hatchingDate = freezed,Object? lastPartyDate = freezed,Object? numberOfIncubators = freezed,Object? herdAgeByDay = freezed,Object? herdAgeByWeek = freezed,Object? numberOfParty = freezed,Object? communicationType = freezed,Object? cooperative = freezed,Object? dateOfRegister = freezed,Object? unitStatus = freezed,Object? active = freezed,Object? identityDocuments = freezed,Object? samasatUserCode = freezed,Object? baseOrder = freezed,Object? incubationDate = freezed,Object? walletAmount = freezed,Object? city = freezed,Object? cityNumber = freezed,Object? cityName = freezed,Object? provinceNumber = freezed,Object? provinceName = freezed,Object? walletIdForeignKey = freezed,Object? poultryIdKey = freezed,Object? lat = freezed,Object? long = freezed,Object? date = freezed,Object? killingAveAge = freezed,Object? activeLeftOver = freezed,Object? killingAveCount = freezed,Object? killingAveWeight = freezed,Object? killingLiveWeight = freezed,Object? killingCarcassesWeight = freezed,Object? killingLossWeightPercent = freezed,Object? realKillingAveWeight = freezed,Object? realKillingLiveWeight = freezed,Object? realKillingCarcassesWeight = freezed,Object? realKillingLossWeightPercent = freezed,Object? interestLicenseId = freezed,Object? orderLimit = freezed,Object? owner = freezed,Object? wallet = freezed,}) { + return _then(_self.copyWith( +userprofile: freezed == userprofile ? _self.userprofile : userprofile // ignore: cast_nullable_to_non_nullable +as UserProfile?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable +as Address?,poultryOwner: freezed == poultryOwner ? _self.poultryOwner : poultryOwner // ignore: cast_nullable_to_non_nullable +as dynamic,poultryTenant: freezed == poultryTenant ? _self.poultryTenant : poultryTenant // ignore: cast_nullable_to_non_nullable +as PoultryTenant?,hatching: freezed == hatching ? _self.hatching : hatching // ignore: cast_nullable_to_non_nullable +as List?,registerVetHalls: freezed == registerVetHalls ? _self.registerVetHalls : registerVetHalls // ignore: cast_nullable_to_non_nullable +as List?,allow: freezed == allow ? _self.allow : allow // ignore: cast_nullable_to_non_nullable +as Allow?,provinceAllowChooseKillHouse: freezed == provinceAllowChooseKillHouse ? _self.provinceAllowChooseKillHouse : provinceAllowChooseKillHouse // ignore: cast_nullable_to_non_nullable +as ProvinceAllowChooseKillHouse?,provinceAllowSellFree: freezed == provinceAllowSellFree ? _self.provinceAllowSellFree : provinceAllowSellFree // ignore: cast_nullable_to_non_nullable +as bool?,vetFarm: freezed == vetFarm ? _self.vetFarm : vetFarm // ignore: cast_nullable_to_non_nullable +as VetFarm?,lastHatchingDiffrentRequestQuantity: freezed == lastHatchingDiffrentRequestQuantity ? _self.lastHatchingDiffrentRequestQuantity : lastHatchingDiffrentRequestQuantity // ignore: cast_nullable_to_non_nullable +as LastHatchingDiffrentRequestQuantity?,userBankInfo: freezed == userBankInfo ? _self.userBankInfo : userBankInfo // ignore: cast_nullable_to_non_nullable +as UserBankInfo?,leftOverOwnHatching: freezed == leftOverOwnHatching ? _self.leftOverOwnHatching : leftOverOwnHatching // ignore: cast_nullable_to_non_nullable +as int?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable +as bool?,ownerIdForeignKey: freezed == ownerIdForeignKey ? _self.ownerIdForeignKey : ownerIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,userIdForeignKey: freezed == userIdForeignKey ? _self.userIdForeignKey : userIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,addressIdForeignKey: freezed == addressIdForeignKey ? _self.addressIdForeignKey : addressIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,hasChainCompany: freezed == hasChainCompany ? _self.hasChainCompany : hasChainCompany // ignore: cast_nullable_to_non_nullable +as bool?,userBankIdForeignKey: freezed == userBankIdForeignKey ? _self.userBankIdForeignKey : userBankIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,cityOperator: freezed == cityOperator ? _self.cityOperator : cityOperator // ignore: cast_nullable_to_non_nullable +as String?,unitName: freezed == unitName ? _self.unitName : unitName // ignore: cast_nullable_to_non_nullable +as String?,gisCode: freezed == gisCode ? _self.gisCode : gisCode // ignore: cast_nullable_to_non_nullable +as String?,operatingLicenceCapacity: freezed == operatingLicenceCapacity ? _self.operatingLicenceCapacity : operatingLicenceCapacity // ignore: cast_nullable_to_non_nullable +as int?,numberOfHalls: freezed == numberOfHalls ? _self.numberOfHalls : numberOfHalls // ignore: cast_nullable_to_non_nullable +as int?,tenant: freezed == tenant ? _self.tenant : tenant // ignore: cast_nullable_to_non_nullable +as bool?,hasTenant: freezed == hasTenant ? _self.hasTenant : hasTenant // ignore: cast_nullable_to_non_nullable +as bool?,personType: freezed == personType ? _self.personType : personType // ignore: cast_nullable_to_non_nullable +as dynamic,economicCode: freezed == economicCode ? _self.economicCode : economicCode // ignore: cast_nullable_to_non_nullable +as dynamic,systemCode: freezed == systemCode ? _self.systemCode : systemCode // ignore: cast_nullable_to_non_nullable +as String?,epidemiologicalCode: freezed == epidemiologicalCode ? _self.epidemiologicalCode : epidemiologicalCode // ignore: cast_nullable_to_non_nullable +as String?,breedingUniqueId: freezed == breedingUniqueId ? _self.breedingUniqueId : breedingUniqueId // ignore: cast_nullable_to_non_nullable +as String?,totalCapacity: freezed == totalCapacity ? _self.totalCapacity : totalCapacity // ignore: cast_nullable_to_non_nullable +as int?,licenceNumber: freezed == licenceNumber ? _self.licenceNumber : licenceNumber // ignore: cast_nullable_to_non_nullable +as String?,healthCertificateNumber: freezed == healthCertificateNumber ? _self.healthCertificateNumber : healthCertificateNumber // ignore: cast_nullable_to_non_nullable +as String?,numberOfRequests: freezed == numberOfRequests ? _self.numberOfRequests : numberOfRequests // ignore: cast_nullable_to_non_nullable +as int?,hatchingDate: freezed == hatchingDate ? _self.hatchingDate : hatchingDate // ignore: cast_nullable_to_non_nullable +as String?,lastPartyDate: freezed == lastPartyDate ? _self.lastPartyDate : lastPartyDate // ignore: cast_nullable_to_non_nullable +as String?,numberOfIncubators: freezed == numberOfIncubators ? _self.numberOfIncubators : numberOfIncubators // ignore: cast_nullable_to_non_nullable +as int?,herdAgeByDay: freezed == herdAgeByDay ? _self.herdAgeByDay : herdAgeByDay // ignore: cast_nullable_to_non_nullable +as int?,herdAgeByWeek: freezed == herdAgeByWeek ? _self.herdAgeByWeek : herdAgeByWeek // ignore: cast_nullable_to_non_nullable +as int?,numberOfParty: freezed == numberOfParty ? _self.numberOfParty : numberOfParty // ignore: cast_nullable_to_non_nullable +as int?,communicationType: freezed == communicationType ? _self.communicationType : communicationType // ignore: cast_nullable_to_non_nullable +as dynamic,cooperative: freezed == cooperative ? _self.cooperative : cooperative // ignore: cast_nullable_to_non_nullable +as dynamic,dateOfRegister: freezed == dateOfRegister ? _self.dateOfRegister : dateOfRegister // ignore: cast_nullable_to_non_nullable +as String?,unitStatus: freezed == unitStatus ? _self.unitStatus : unitStatus // ignore: cast_nullable_to_non_nullable +as dynamic,active: freezed == active ? _self.active : active // ignore: cast_nullable_to_non_nullable +as bool?,identityDocuments: freezed == identityDocuments ? _self.identityDocuments : identityDocuments // ignore: cast_nullable_to_non_nullable +as dynamic,samasatUserCode: freezed == samasatUserCode ? _self.samasatUserCode : samasatUserCode // ignore: cast_nullable_to_non_nullable +as dynamic,baseOrder: freezed == baseOrder ? _self.baseOrder : baseOrder // ignore: cast_nullable_to_non_nullable +as dynamic,incubationDate: freezed == incubationDate ? _self.incubationDate : incubationDate // ignore: cast_nullable_to_non_nullable +as String?,walletAmount: freezed == walletAmount ? _self.walletAmount : walletAmount // ignore: cast_nullable_to_non_nullable +as int?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as int?,cityNumber: freezed == cityNumber ? _self.cityNumber : cityNumber // ignore: cast_nullable_to_non_nullable +as int?,cityName: freezed == cityName ? _self.cityName : cityName // ignore: cast_nullable_to_non_nullable +as String?,provinceNumber: freezed == provinceNumber ? _self.provinceNumber : provinceNumber // ignore: cast_nullable_to_non_nullable +as int?,provinceName: freezed == provinceName ? _self.provinceName : provinceName // ignore: cast_nullable_to_non_nullable +as String?,walletIdForeignKey: freezed == walletIdForeignKey ? _self.walletIdForeignKey : walletIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,poultryIdKey: freezed == poultryIdKey ? _self.poultryIdKey : poultryIdKey // ignore: cast_nullable_to_non_nullable +as int?,lat: freezed == lat ? _self.lat : lat // ignore: cast_nullable_to_non_nullable +as double?,long: freezed == long ? _self.long : long // ignore: cast_nullable_to_non_nullable +as double?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as dynamic,killingAveAge: freezed == killingAveAge ? _self.killingAveAge : killingAveAge // ignore: cast_nullable_to_non_nullable +as int?,activeLeftOver: freezed == activeLeftOver ? _self.activeLeftOver : activeLeftOver // ignore: cast_nullable_to_non_nullable +as int?,killingAveCount: freezed == killingAveCount ? _self.killingAveCount : killingAveCount // ignore: cast_nullable_to_non_nullable +as int?,killingAveWeight: freezed == killingAveWeight ? _self.killingAveWeight : killingAveWeight // ignore: cast_nullable_to_non_nullable +as int?,killingLiveWeight: freezed == killingLiveWeight ? _self.killingLiveWeight : killingLiveWeight // ignore: cast_nullable_to_non_nullable +as int?,killingCarcassesWeight: freezed == killingCarcassesWeight ? _self.killingCarcassesWeight : killingCarcassesWeight // ignore: cast_nullable_to_non_nullable +as int?,killingLossWeightPercent: freezed == killingLossWeightPercent ? _self.killingLossWeightPercent : killingLossWeightPercent // ignore: cast_nullable_to_non_nullable +as int?,realKillingAveWeight: freezed == realKillingAveWeight ? _self.realKillingAveWeight : realKillingAveWeight // ignore: cast_nullable_to_non_nullable +as double?,realKillingLiveWeight: freezed == realKillingLiveWeight ? _self.realKillingLiveWeight : realKillingLiveWeight // ignore: cast_nullable_to_non_nullable +as double?,realKillingCarcassesWeight: freezed == realKillingCarcassesWeight ? _self.realKillingCarcassesWeight : realKillingCarcassesWeight // ignore: cast_nullable_to_non_nullable +as double?,realKillingLossWeightPercent: freezed == realKillingLossWeightPercent ? _self.realKillingLossWeightPercent : realKillingLossWeightPercent // ignore: cast_nullable_to_non_nullable +as double?,interestLicenseId: freezed == interestLicenseId ? _self.interestLicenseId : interestLicenseId // ignore: cast_nullable_to_non_nullable +as dynamic,orderLimit: freezed == orderLimit ? _self.orderLimit : orderLimit // ignore: cast_nullable_to_non_nullable +as bool?,owner: freezed == owner ? _self.owner : owner // ignore: cast_nullable_to_non_nullable +as dynamic,wallet: freezed == wallet ? _self.wallet : wallet // ignore: cast_nullable_to_non_nullable +as int?, + )); +} +/// Create a copy of Poultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$UserProfileCopyWith<$Res>? get userprofile { + if (_self.userprofile == null) { + return null; + } + + return $UserProfileCopyWith<$Res>(_self.userprofile!, (value) { + return _then(_self.copyWith(userprofile: value)); + }); +}/// Create a copy of Poultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$AddressCopyWith<$Res>? get address { + if (_self.address == null) { + return null; + } + + return $AddressCopyWith<$Res>(_self.address!, (value) { + return _then(_self.copyWith(address: value)); + }); +}/// Create a copy of Poultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$PoultryTenantCopyWith<$Res>? get poultryTenant { + if (_self.poultryTenant == null) { + return null; + } + + return $PoultryTenantCopyWith<$Res>(_self.poultryTenant!, (value) { + return _then(_self.copyWith(poultryTenant: value)); + }); +}/// Create a copy of Poultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$AllowCopyWith<$Res>? get allow { + if (_self.allow == null) { + return null; + } + + return $AllowCopyWith<$Res>(_self.allow!, (value) { + return _then(_self.copyWith(allow: value)); + }); +}/// Create a copy of Poultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ProvinceAllowChooseKillHouseCopyWith<$Res>? get provinceAllowChooseKillHouse { + if (_self.provinceAllowChooseKillHouse == null) { + return null; + } + + return $ProvinceAllowChooseKillHouseCopyWith<$Res>(_self.provinceAllowChooseKillHouse!, (value) { + return _then(_self.copyWith(provinceAllowChooseKillHouse: value)); + }); +}/// Create a copy of Poultry +/// 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 Poultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$LastHatchingDiffrentRequestQuantityCopyWith<$Res>? get lastHatchingDiffrentRequestQuantity { + if (_self.lastHatchingDiffrentRequestQuantity == null) { + return null; + } + + return $LastHatchingDiffrentRequestQuantityCopyWith<$Res>(_self.lastHatchingDiffrentRequestQuantity!, (value) { + return _then(_self.copyWith(lastHatchingDiffrentRequestQuantity: value)); + }); +}/// Create a copy of Poultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$UserBankInfoCopyWith<$Res>? get userBankInfo { + if (_self.userBankInfo == null) { + return null; + } + + return $UserBankInfoCopyWith<$Res>(_self.userBankInfo!, (value) { + return _then(_self.copyWith(userBankInfo: value)); + }); +} +} + + +/// Adds pattern-matching-related methods to [Poultry]. +extension PoultryPatterns on Poultry { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _Poultry value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _Poultry() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _Poultry value) $default,){ +final _that = this; +switch (_that) { +case _Poultry(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _Poultry value)? $default,){ +final _that = this; +switch (_that) { +case _Poultry() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( UserProfile? userprofile, Address? address, dynamic poultryOwner, PoultryTenant? poultryTenant, List? hatching, List? registerVetHalls, Allow? allow, ProvinceAllowChooseKillHouse? provinceAllowChooseKillHouse, bool? provinceAllowSellFree, VetFarm? vetFarm, LastHatchingDiffrentRequestQuantity? lastHatchingDiffrentRequestQuantity, UserBankInfo? userBankInfo, int? leftOverOwnHatching, String? key, bool? trash, int? ownerIdForeignKey, int? userIdForeignKey, int? addressIdForeignKey, bool? hasChainCompany, int? userBankIdForeignKey, String? cityOperator, String? unitName, String? gisCode, int? operatingLicenceCapacity, int? numberOfHalls, bool? tenant, bool? hasTenant, dynamic personType, dynamic economicCode, String? systemCode, String? epidemiologicalCode, String? breedingUniqueId, int? totalCapacity, String? licenceNumber, String? healthCertificateNumber, int? numberOfRequests, String? hatchingDate, String? lastPartyDate, int? numberOfIncubators, int? herdAgeByDay, int? herdAgeByWeek, int? numberOfParty, dynamic communicationType, dynamic cooperative, String? dateOfRegister, dynamic unitStatus, bool? active, dynamic identityDocuments, dynamic samasatUserCode, dynamic baseOrder, String? incubationDate, int? walletAmount, int? city, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, int? walletIdForeignKey, int? poultryIdKey, double? lat, double? long, dynamic date, int? killingAveAge, int? activeLeftOver, int? killingAveCount, int? killingAveWeight, int? killingLiveWeight, int? killingCarcassesWeight, int? killingLossWeightPercent, double? realKillingAveWeight, double? realKillingLiveWeight, double? realKillingCarcassesWeight, double? realKillingLossWeightPercent, dynamic interestLicenseId, bool? orderLimit, dynamic owner, int? wallet)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _Poultry() when $default != null: +return $default(_that.userprofile,_that.address,_that.poultryOwner,_that.poultryTenant,_that.hatching,_that.registerVetHalls,_that.allow,_that.provinceAllowChooseKillHouse,_that.provinceAllowSellFree,_that.vetFarm,_that.lastHatchingDiffrentRequestQuantity,_that.userBankInfo,_that.leftOverOwnHatching,_that.key,_that.trash,_that.ownerIdForeignKey,_that.userIdForeignKey,_that.addressIdForeignKey,_that.hasChainCompany,_that.userBankIdForeignKey,_that.cityOperator,_that.unitName,_that.gisCode,_that.operatingLicenceCapacity,_that.numberOfHalls,_that.tenant,_that.hasTenant,_that.personType,_that.economicCode,_that.systemCode,_that.epidemiologicalCode,_that.breedingUniqueId,_that.totalCapacity,_that.licenceNumber,_that.healthCertificateNumber,_that.numberOfRequests,_that.hatchingDate,_that.lastPartyDate,_that.numberOfIncubators,_that.herdAgeByDay,_that.herdAgeByWeek,_that.numberOfParty,_that.communicationType,_that.cooperative,_that.dateOfRegister,_that.unitStatus,_that.active,_that.identityDocuments,_that.samasatUserCode,_that.baseOrder,_that.incubationDate,_that.walletAmount,_that.city,_that.cityNumber,_that.cityName,_that.provinceNumber,_that.provinceName,_that.walletIdForeignKey,_that.poultryIdKey,_that.lat,_that.long,_that.date,_that.killingAveAge,_that.activeLeftOver,_that.killingAveCount,_that.killingAveWeight,_that.killingLiveWeight,_that.killingCarcassesWeight,_that.killingLossWeightPercent,_that.realKillingAveWeight,_that.realKillingLiveWeight,_that.realKillingCarcassesWeight,_that.realKillingLossWeightPercent,_that.interestLicenseId,_that.orderLimit,_that.owner,_that.wallet);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( UserProfile? userprofile, Address? address, dynamic poultryOwner, PoultryTenant? poultryTenant, List? hatching, List? registerVetHalls, Allow? allow, ProvinceAllowChooseKillHouse? provinceAllowChooseKillHouse, bool? provinceAllowSellFree, VetFarm? vetFarm, LastHatchingDiffrentRequestQuantity? lastHatchingDiffrentRequestQuantity, UserBankInfo? userBankInfo, int? leftOverOwnHatching, String? key, bool? trash, int? ownerIdForeignKey, int? userIdForeignKey, int? addressIdForeignKey, bool? hasChainCompany, int? userBankIdForeignKey, String? cityOperator, String? unitName, String? gisCode, int? operatingLicenceCapacity, int? numberOfHalls, bool? tenant, bool? hasTenant, dynamic personType, dynamic economicCode, String? systemCode, String? epidemiologicalCode, String? breedingUniqueId, int? totalCapacity, String? licenceNumber, String? healthCertificateNumber, int? numberOfRequests, String? hatchingDate, String? lastPartyDate, int? numberOfIncubators, int? herdAgeByDay, int? herdAgeByWeek, int? numberOfParty, dynamic communicationType, dynamic cooperative, String? dateOfRegister, dynamic unitStatus, bool? active, dynamic identityDocuments, dynamic samasatUserCode, dynamic baseOrder, String? incubationDate, int? walletAmount, int? city, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, int? walletIdForeignKey, int? poultryIdKey, double? lat, double? long, dynamic date, int? killingAveAge, int? activeLeftOver, int? killingAveCount, int? killingAveWeight, int? killingLiveWeight, int? killingCarcassesWeight, int? killingLossWeightPercent, double? realKillingAveWeight, double? realKillingLiveWeight, double? realKillingCarcassesWeight, double? realKillingLossWeightPercent, dynamic interestLicenseId, bool? orderLimit, dynamic owner, int? wallet) $default,) {final _that = this; +switch (_that) { +case _Poultry(): +return $default(_that.userprofile,_that.address,_that.poultryOwner,_that.poultryTenant,_that.hatching,_that.registerVetHalls,_that.allow,_that.provinceAllowChooseKillHouse,_that.provinceAllowSellFree,_that.vetFarm,_that.lastHatchingDiffrentRequestQuantity,_that.userBankInfo,_that.leftOverOwnHatching,_that.key,_that.trash,_that.ownerIdForeignKey,_that.userIdForeignKey,_that.addressIdForeignKey,_that.hasChainCompany,_that.userBankIdForeignKey,_that.cityOperator,_that.unitName,_that.gisCode,_that.operatingLicenceCapacity,_that.numberOfHalls,_that.tenant,_that.hasTenant,_that.personType,_that.economicCode,_that.systemCode,_that.epidemiologicalCode,_that.breedingUniqueId,_that.totalCapacity,_that.licenceNumber,_that.healthCertificateNumber,_that.numberOfRequests,_that.hatchingDate,_that.lastPartyDate,_that.numberOfIncubators,_that.herdAgeByDay,_that.herdAgeByWeek,_that.numberOfParty,_that.communicationType,_that.cooperative,_that.dateOfRegister,_that.unitStatus,_that.active,_that.identityDocuments,_that.samasatUserCode,_that.baseOrder,_that.incubationDate,_that.walletAmount,_that.city,_that.cityNumber,_that.cityName,_that.provinceNumber,_that.provinceName,_that.walletIdForeignKey,_that.poultryIdKey,_that.lat,_that.long,_that.date,_that.killingAveAge,_that.activeLeftOver,_that.killingAveCount,_that.killingAveWeight,_that.killingLiveWeight,_that.killingCarcassesWeight,_that.killingLossWeightPercent,_that.realKillingAveWeight,_that.realKillingLiveWeight,_that.realKillingCarcassesWeight,_that.realKillingLossWeightPercent,_that.interestLicenseId,_that.orderLimit,_that.owner,_that.wallet);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( UserProfile? userprofile, Address? address, dynamic poultryOwner, PoultryTenant? poultryTenant, List? hatching, List? registerVetHalls, Allow? allow, ProvinceAllowChooseKillHouse? provinceAllowChooseKillHouse, bool? provinceAllowSellFree, VetFarm? vetFarm, LastHatchingDiffrentRequestQuantity? lastHatchingDiffrentRequestQuantity, UserBankInfo? userBankInfo, int? leftOverOwnHatching, String? key, bool? trash, int? ownerIdForeignKey, int? userIdForeignKey, int? addressIdForeignKey, bool? hasChainCompany, int? userBankIdForeignKey, String? cityOperator, String? unitName, String? gisCode, int? operatingLicenceCapacity, int? numberOfHalls, bool? tenant, bool? hasTenant, dynamic personType, dynamic economicCode, String? systemCode, String? epidemiologicalCode, String? breedingUniqueId, int? totalCapacity, String? licenceNumber, String? healthCertificateNumber, int? numberOfRequests, String? hatchingDate, String? lastPartyDate, int? numberOfIncubators, int? herdAgeByDay, int? herdAgeByWeek, int? numberOfParty, dynamic communicationType, dynamic cooperative, String? dateOfRegister, dynamic unitStatus, bool? active, dynamic identityDocuments, dynamic samasatUserCode, dynamic baseOrder, String? incubationDate, int? walletAmount, int? city, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, int? walletIdForeignKey, int? poultryIdKey, double? lat, double? long, dynamic date, int? killingAveAge, int? activeLeftOver, int? killingAveCount, int? killingAveWeight, int? killingLiveWeight, int? killingCarcassesWeight, int? killingLossWeightPercent, double? realKillingAveWeight, double? realKillingLiveWeight, double? realKillingCarcassesWeight, double? realKillingLossWeightPercent, dynamic interestLicenseId, bool? orderLimit, dynamic owner, int? wallet)? $default,) {final _that = this; +switch (_that) { +case _Poultry() when $default != null: +return $default(_that.userprofile,_that.address,_that.poultryOwner,_that.poultryTenant,_that.hatching,_that.registerVetHalls,_that.allow,_that.provinceAllowChooseKillHouse,_that.provinceAllowSellFree,_that.vetFarm,_that.lastHatchingDiffrentRequestQuantity,_that.userBankInfo,_that.leftOverOwnHatching,_that.key,_that.trash,_that.ownerIdForeignKey,_that.userIdForeignKey,_that.addressIdForeignKey,_that.hasChainCompany,_that.userBankIdForeignKey,_that.cityOperator,_that.unitName,_that.gisCode,_that.operatingLicenceCapacity,_that.numberOfHalls,_that.tenant,_that.hasTenant,_that.personType,_that.economicCode,_that.systemCode,_that.epidemiologicalCode,_that.breedingUniqueId,_that.totalCapacity,_that.licenceNumber,_that.healthCertificateNumber,_that.numberOfRequests,_that.hatchingDate,_that.lastPartyDate,_that.numberOfIncubators,_that.herdAgeByDay,_that.herdAgeByWeek,_that.numberOfParty,_that.communicationType,_that.cooperative,_that.dateOfRegister,_that.unitStatus,_that.active,_that.identityDocuments,_that.samasatUserCode,_that.baseOrder,_that.incubationDate,_that.walletAmount,_that.city,_that.cityNumber,_that.cityName,_that.provinceNumber,_that.provinceName,_that.walletIdForeignKey,_that.poultryIdKey,_that.lat,_that.long,_that.date,_that.killingAveAge,_that.activeLeftOver,_that.killingAveCount,_that.killingAveWeight,_that.killingLiveWeight,_that.killingCarcassesWeight,_that.killingLossWeightPercent,_that.realKillingAveWeight,_that.realKillingLiveWeight,_that.realKillingCarcassesWeight,_that.realKillingLossWeightPercent,_that.interestLicenseId,_that.orderLimit,_that.owner,_that.wallet);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _Poultry implements Poultry { + const _Poultry({this.userprofile, this.address, this.poultryOwner, this.poultryTenant, final List? hatching, final List? registerVetHalls, this.allow, this.provinceAllowChooseKillHouse, this.provinceAllowSellFree, this.vetFarm, this.lastHatchingDiffrentRequestQuantity, this.userBankInfo, this.leftOverOwnHatching, this.key, this.trash, this.ownerIdForeignKey, this.userIdForeignKey, this.addressIdForeignKey, this.hasChainCompany, this.userBankIdForeignKey, this.cityOperator, this.unitName, this.gisCode, this.operatingLicenceCapacity, this.numberOfHalls, this.tenant, this.hasTenant, this.personType, this.economicCode, this.systemCode, this.epidemiologicalCode, this.breedingUniqueId, this.totalCapacity, this.licenceNumber, this.healthCertificateNumber, this.numberOfRequests, this.hatchingDate, this.lastPartyDate, this.numberOfIncubators, this.herdAgeByDay, this.herdAgeByWeek, this.numberOfParty, this.communicationType, this.cooperative, this.dateOfRegister, this.unitStatus, this.active, this.identityDocuments, this.samasatUserCode, this.baseOrder, this.incubationDate, this.walletAmount, this.city, this.cityNumber, this.cityName, this.provinceNumber, this.provinceName, this.walletIdForeignKey, this.poultryIdKey, this.lat, this.long, this.date, this.killingAveAge, this.activeLeftOver, this.killingAveCount, this.killingAveWeight, this.killingLiveWeight, this.killingCarcassesWeight, this.killingLossWeightPercent, this.realKillingAveWeight, this.realKillingLiveWeight, this.realKillingCarcassesWeight, this.realKillingLossWeightPercent, this.interestLicenseId, this.orderLimit, this.owner, this.wallet}): _hatching = hatching,_registerVetHalls = registerVetHalls; + factory _Poultry.fromJson(Map json) => _$PoultryFromJson(json); + +@override final UserProfile? userprofile; +@override final Address? address; +@override final dynamic poultryOwner; +@override final PoultryTenant? poultryTenant; + final List? _hatching; +@override List? get hatching { + final value = _hatching; + if (value == null) return null; + if (_hatching is EqualUnmodifiableListView) return _hatching; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + + final List? _registerVetHalls; +@override List? get registerVetHalls { + final value = _registerVetHalls; + if (value == null) return null; + if (_registerVetHalls is EqualUnmodifiableListView) return _registerVetHalls; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + +@override final Allow? allow; +@override final ProvinceAllowChooseKillHouse? provinceAllowChooseKillHouse; +@override final bool? provinceAllowSellFree; +@override final VetFarm? vetFarm; +@override final LastHatchingDiffrentRequestQuantity? lastHatchingDiffrentRequestQuantity; +@override final UserBankInfo? userBankInfo; +@override final int? leftOverOwnHatching; +@override final String? key; +@override final bool? trash; +@override final int? ownerIdForeignKey; +@override final int? userIdForeignKey; +@override final int? addressIdForeignKey; +@override final bool? hasChainCompany; +@override final int? userBankIdForeignKey; +@override final String? cityOperator; +@override final String? unitName; +@override final String? gisCode; +@override final int? operatingLicenceCapacity; +@override final int? numberOfHalls; +@override final bool? tenant; +@override final bool? hasTenant; +@override final dynamic personType; +@override final dynamic economicCode; +@override final String? systemCode; +@override final String? epidemiologicalCode; +@override final String? breedingUniqueId; +@override final int? totalCapacity; +@override final String? licenceNumber; +@override final String? healthCertificateNumber; +@override final int? numberOfRequests; +@override final String? hatchingDate; +@override final String? lastPartyDate; +@override final int? numberOfIncubators; +@override final int? herdAgeByDay; +@override final int? herdAgeByWeek; +@override final int? numberOfParty; +@override final dynamic communicationType; +@override final dynamic cooperative; +@override final String? dateOfRegister; +@override final dynamic unitStatus; +@override final bool? active; +@override final dynamic identityDocuments; +@override final dynamic samasatUserCode; +@override final dynamic baseOrder; +@override final String? incubationDate; +@override final int? walletAmount; +@override final int? city; +@override final int? cityNumber; +@override final String? cityName; +@override final int? provinceNumber; +@override final String? provinceName; +@override final int? walletIdForeignKey; +@override final int? poultryIdKey; +@override final double? lat; +@override final double? long; +@override final dynamic date; +@override final int? killingAveAge; +@override final int? activeLeftOver; +@override final int? killingAveCount; +@override final int? killingAveWeight; +@override final int? killingLiveWeight; +@override final int? killingCarcassesWeight; +@override final int? killingLossWeightPercent; +@override final double? realKillingAveWeight; +@override final double? realKillingLiveWeight; +@override final double? realKillingCarcassesWeight; +@override final double? realKillingLossWeightPercent; +@override final dynamic interestLicenseId; +@override final bool? orderLimit; +@override final dynamic owner; +@override final int? wallet; + +/// Create a copy of Poultry +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$PoultryCopyWith<_Poultry> get copyWith => __$PoultryCopyWithImpl<_Poultry>(this, _$identity); + +@override +Map toJson() { + return _$PoultryToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Poultry&&(identical(other.userprofile, userprofile) || other.userprofile == userprofile)&&(identical(other.address, address) || other.address == address)&&const DeepCollectionEquality().equals(other.poultryOwner, poultryOwner)&&(identical(other.poultryTenant, poultryTenant) || other.poultryTenant == poultryTenant)&&const DeepCollectionEquality().equals(other._hatching, _hatching)&&const DeepCollectionEquality().equals(other._registerVetHalls, _registerVetHalls)&&(identical(other.allow, allow) || other.allow == allow)&&(identical(other.provinceAllowChooseKillHouse, provinceAllowChooseKillHouse) || other.provinceAllowChooseKillHouse == provinceAllowChooseKillHouse)&&(identical(other.provinceAllowSellFree, provinceAllowSellFree) || other.provinceAllowSellFree == provinceAllowSellFree)&&(identical(other.vetFarm, vetFarm) || other.vetFarm == vetFarm)&&(identical(other.lastHatchingDiffrentRequestQuantity, lastHatchingDiffrentRequestQuantity) || other.lastHatchingDiffrentRequestQuantity == lastHatchingDiffrentRequestQuantity)&&(identical(other.userBankInfo, userBankInfo) || other.userBankInfo == userBankInfo)&&(identical(other.leftOverOwnHatching, leftOverOwnHatching) || other.leftOverOwnHatching == leftOverOwnHatching)&&(identical(other.key, key) || other.key == key)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.ownerIdForeignKey, ownerIdForeignKey) || other.ownerIdForeignKey == ownerIdForeignKey)&&(identical(other.userIdForeignKey, userIdForeignKey) || other.userIdForeignKey == userIdForeignKey)&&(identical(other.addressIdForeignKey, addressIdForeignKey) || other.addressIdForeignKey == addressIdForeignKey)&&(identical(other.hasChainCompany, hasChainCompany) || other.hasChainCompany == hasChainCompany)&&(identical(other.userBankIdForeignKey, userBankIdForeignKey) || other.userBankIdForeignKey == userBankIdForeignKey)&&(identical(other.cityOperator, cityOperator) || other.cityOperator == cityOperator)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.gisCode, gisCode) || other.gisCode == gisCode)&&(identical(other.operatingLicenceCapacity, operatingLicenceCapacity) || other.operatingLicenceCapacity == operatingLicenceCapacity)&&(identical(other.numberOfHalls, numberOfHalls) || other.numberOfHalls == numberOfHalls)&&(identical(other.tenant, tenant) || other.tenant == tenant)&&(identical(other.hasTenant, hasTenant) || other.hasTenant == hasTenant)&&const DeepCollectionEquality().equals(other.personType, personType)&&const DeepCollectionEquality().equals(other.economicCode, economicCode)&&(identical(other.systemCode, systemCode) || other.systemCode == systemCode)&&(identical(other.epidemiologicalCode, epidemiologicalCode) || other.epidemiologicalCode == epidemiologicalCode)&&(identical(other.breedingUniqueId, breedingUniqueId) || other.breedingUniqueId == breedingUniqueId)&&(identical(other.totalCapacity, totalCapacity) || other.totalCapacity == totalCapacity)&&(identical(other.licenceNumber, licenceNumber) || other.licenceNumber == licenceNumber)&&(identical(other.healthCertificateNumber, healthCertificateNumber) || other.healthCertificateNumber == healthCertificateNumber)&&(identical(other.numberOfRequests, numberOfRequests) || other.numberOfRequests == numberOfRequests)&&(identical(other.hatchingDate, hatchingDate) || other.hatchingDate == hatchingDate)&&(identical(other.lastPartyDate, lastPartyDate) || other.lastPartyDate == lastPartyDate)&&(identical(other.numberOfIncubators, numberOfIncubators) || other.numberOfIncubators == numberOfIncubators)&&(identical(other.herdAgeByDay, herdAgeByDay) || other.herdAgeByDay == herdAgeByDay)&&(identical(other.herdAgeByWeek, herdAgeByWeek) || other.herdAgeByWeek == herdAgeByWeek)&&(identical(other.numberOfParty, numberOfParty) || other.numberOfParty == numberOfParty)&&const DeepCollectionEquality().equals(other.communicationType, communicationType)&&const DeepCollectionEquality().equals(other.cooperative, cooperative)&&(identical(other.dateOfRegister, dateOfRegister) || other.dateOfRegister == dateOfRegister)&&const DeepCollectionEquality().equals(other.unitStatus, unitStatus)&&(identical(other.active, active) || other.active == active)&&const DeepCollectionEquality().equals(other.identityDocuments, identityDocuments)&&const DeepCollectionEquality().equals(other.samasatUserCode, samasatUserCode)&&const DeepCollectionEquality().equals(other.baseOrder, baseOrder)&&(identical(other.incubationDate, incubationDate) || other.incubationDate == incubationDate)&&(identical(other.walletAmount, walletAmount) || other.walletAmount == walletAmount)&&(identical(other.city, city) || other.city == city)&&(identical(other.cityNumber, cityNumber) || other.cityNumber == cityNumber)&&(identical(other.cityName, cityName) || other.cityName == cityName)&&(identical(other.provinceNumber, provinceNumber) || other.provinceNumber == provinceNumber)&&(identical(other.provinceName, provinceName) || other.provinceName == provinceName)&&(identical(other.walletIdForeignKey, walletIdForeignKey) || other.walletIdForeignKey == walletIdForeignKey)&&(identical(other.poultryIdKey, poultryIdKey) || other.poultryIdKey == poultryIdKey)&&(identical(other.lat, lat) || other.lat == lat)&&(identical(other.long, long) || other.long == long)&&const DeepCollectionEquality().equals(other.date, date)&&(identical(other.killingAveAge, killingAveAge) || other.killingAveAge == killingAveAge)&&(identical(other.activeLeftOver, activeLeftOver) || other.activeLeftOver == activeLeftOver)&&(identical(other.killingAveCount, killingAveCount) || other.killingAveCount == killingAveCount)&&(identical(other.killingAveWeight, killingAveWeight) || other.killingAveWeight == killingAveWeight)&&(identical(other.killingLiveWeight, killingLiveWeight) || other.killingLiveWeight == killingLiveWeight)&&(identical(other.killingCarcassesWeight, killingCarcassesWeight) || other.killingCarcassesWeight == killingCarcassesWeight)&&(identical(other.killingLossWeightPercent, killingLossWeightPercent) || other.killingLossWeightPercent == killingLossWeightPercent)&&(identical(other.realKillingAveWeight, realKillingAveWeight) || other.realKillingAveWeight == realKillingAveWeight)&&(identical(other.realKillingLiveWeight, realKillingLiveWeight) || other.realKillingLiveWeight == realKillingLiveWeight)&&(identical(other.realKillingCarcassesWeight, realKillingCarcassesWeight) || other.realKillingCarcassesWeight == realKillingCarcassesWeight)&&(identical(other.realKillingLossWeightPercent, realKillingLossWeightPercent) || other.realKillingLossWeightPercent == realKillingLossWeightPercent)&&const DeepCollectionEquality().equals(other.interestLicenseId, interestLicenseId)&&(identical(other.orderLimit, orderLimit) || other.orderLimit == orderLimit)&&const DeepCollectionEquality().equals(other.owner, owner)&&(identical(other.wallet, wallet) || other.wallet == wallet)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,userprofile,address,const DeepCollectionEquality().hash(poultryOwner),poultryTenant,const DeepCollectionEquality().hash(_hatching),const DeepCollectionEquality().hash(_registerVetHalls),allow,provinceAllowChooseKillHouse,provinceAllowSellFree,vetFarm,lastHatchingDiffrentRequestQuantity,userBankInfo,leftOverOwnHatching,key,trash,ownerIdForeignKey,userIdForeignKey,addressIdForeignKey,hasChainCompany,userBankIdForeignKey,cityOperator,unitName,gisCode,operatingLicenceCapacity,numberOfHalls,tenant,hasTenant,const DeepCollectionEquality().hash(personType),const DeepCollectionEquality().hash(economicCode),systemCode,epidemiologicalCode,breedingUniqueId,totalCapacity,licenceNumber,healthCertificateNumber,numberOfRequests,hatchingDate,lastPartyDate,numberOfIncubators,herdAgeByDay,herdAgeByWeek,numberOfParty,const DeepCollectionEquality().hash(communicationType),const DeepCollectionEquality().hash(cooperative),dateOfRegister,const DeepCollectionEquality().hash(unitStatus),active,const DeepCollectionEquality().hash(identityDocuments),const DeepCollectionEquality().hash(samasatUserCode),const DeepCollectionEquality().hash(baseOrder),incubationDate,walletAmount,city,cityNumber,cityName,provinceNumber,provinceName,walletIdForeignKey,poultryIdKey,lat,long,const DeepCollectionEquality().hash(date),killingAveAge,activeLeftOver,killingAveCount,killingAveWeight,killingLiveWeight,killingCarcassesWeight,killingLossWeightPercent,realKillingAveWeight,realKillingLiveWeight,realKillingCarcassesWeight,realKillingLossWeightPercent,const DeepCollectionEquality().hash(interestLicenseId),orderLimit,const DeepCollectionEquality().hash(owner),wallet]); + +@override +String toString() { + return 'Poultry(userprofile: $userprofile, address: $address, poultryOwner: $poultryOwner, poultryTenant: $poultryTenant, hatching: $hatching, registerVetHalls: $registerVetHalls, allow: $allow, provinceAllowChooseKillHouse: $provinceAllowChooseKillHouse, provinceAllowSellFree: $provinceAllowSellFree, vetFarm: $vetFarm, lastHatchingDiffrentRequestQuantity: $lastHatchingDiffrentRequestQuantity, userBankInfo: $userBankInfo, leftOverOwnHatching: $leftOverOwnHatching, key: $key, trash: $trash, ownerIdForeignKey: $ownerIdForeignKey, userIdForeignKey: $userIdForeignKey, addressIdForeignKey: $addressIdForeignKey, hasChainCompany: $hasChainCompany, userBankIdForeignKey: $userBankIdForeignKey, cityOperator: $cityOperator, unitName: $unitName, gisCode: $gisCode, operatingLicenceCapacity: $operatingLicenceCapacity, numberOfHalls: $numberOfHalls, tenant: $tenant, hasTenant: $hasTenant, personType: $personType, economicCode: $economicCode, systemCode: $systemCode, epidemiologicalCode: $epidemiologicalCode, breedingUniqueId: $breedingUniqueId, totalCapacity: $totalCapacity, licenceNumber: $licenceNumber, healthCertificateNumber: $healthCertificateNumber, numberOfRequests: $numberOfRequests, hatchingDate: $hatchingDate, lastPartyDate: $lastPartyDate, numberOfIncubators: $numberOfIncubators, herdAgeByDay: $herdAgeByDay, herdAgeByWeek: $herdAgeByWeek, numberOfParty: $numberOfParty, communicationType: $communicationType, cooperative: $cooperative, dateOfRegister: $dateOfRegister, unitStatus: $unitStatus, active: $active, identityDocuments: $identityDocuments, samasatUserCode: $samasatUserCode, baseOrder: $baseOrder, incubationDate: $incubationDate, walletAmount: $walletAmount, city: $city, cityNumber: $cityNumber, cityName: $cityName, provinceNumber: $provinceNumber, provinceName: $provinceName, walletIdForeignKey: $walletIdForeignKey, poultryIdKey: $poultryIdKey, lat: $lat, long: $long, date: $date, killingAveAge: $killingAveAge, activeLeftOver: $activeLeftOver, killingAveCount: $killingAveCount, killingAveWeight: $killingAveWeight, killingLiveWeight: $killingLiveWeight, killingCarcassesWeight: $killingCarcassesWeight, killingLossWeightPercent: $killingLossWeightPercent, realKillingAveWeight: $realKillingAveWeight, realKillingLiveWeight: $realKillingLiveWeight, realKillingCarcassesWeight: $realKillingCarcassesWeight, realKillingLossWeightPercent: $realKillingLossWeightPercent, interestLicenseId: $interestLicenseId, orderLimit: $orderLimit, owner: $owner, wallet: $wallet)'; +} + + +} + +/// @nodoc +abstract mixin class _$PoultryCopyWith<$Res> implements $PoultryCopyWith<$Res> { + factory _$PoultryCopyWith(_Poultry value, $Res Function(_Poultry) _then) = __$PoultryCopyWithImpl; +@override @useResult +$Res call({ + UserProfile? userprofile, Address? address, dynamic poultryOwner, PoultryTenant? poultryTenant, List? hatching, List? registerVetHalls, Allow? allow, ProvinceAllowChooseKillHouse? provinceAllowChooseKillHouse, bool? provinceAllowSellFree, VetFarm? vetFarm, LastHatchingDiffrentRequestQuantity? lastHatchingDiffrentRequestQuantity, UserBankInfo? userBankInfo, int? leftOverOwnHatching, String? key, bool? trash, int? ownerIdForeignKey, int? userIdForeignKey, int? addressIdForeignKey, bool? hasChainCompany, int? userBankIdForeignKey, String? cityOperator, String? unitName, String? gisCode, int? operatingLicenceCapacity, int? numberOfHalls, bool? tenant, bool? hasTenant, dynamic personType, dynamic economicCode, String? systemCode, String? epidemiologicalCode, String? breedingUniqueId, int? totalCapacity, String? licenceNumber, String? healthCertificateNumber, int? numberOfRequests, String? hatchingDate, String? lastPartyDate, int? numberOfIncubators, int? herdAgeByDay, int? herdAgeByWeek, int? numberOfParty, dynamic communicationType, dynamic cooperative, String? dateOfRegister, dynamic unitStatus, bool? active, dynamic identityDocuments, dynamic samasatUserCode, dynamic baseOrder, String? incubationDate, int? walletAmount, int? city, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, int? walletIdForeignKey, int? poultryIdKey, double? lat, double? long, dynamic date, int? killingAveAge, int? activeLeftOver, int? killingAveCount, int? killingAveWeight, int? killingLiveWeight, int? killingCarcassesWeight, int? killingLossWeightPercent, double? realKillingAveWeight, double? realKillingLiveWeight, double? realKillingCarcassesWeight, double? realKillingLossWeightPercent, dynamic interestLicenseId, bool? orderLimit, dynamic owner, int? wallet +}); + + +@override $UserProfileCopyWith<$Res>? get userprofile;@override $AddressCopyWith<$Res>? get address;@override $PoultryTenantCopyWith<$Res>? get poultryTenant;@override $AllowCopyWith<$Res>? get allow;@override $ProvinceAllowChooseKillHouseCopyWith<$Res>? get provinceAllowChooseKillHouse;@override $VetFarmCopyWith<$Res>? get vetFarm;@override $LastHatchingDiffrentRequestQuantityCopyWith<$Res>? get lastHatchingDiffrentRequestQuantity;@override $UserBankInfoCopyWith<$Res>? get userBankInfo; + +} +/// @nodoc +class __$PoultryCopyWithImpl<$Res> + implements _$PoultryCopyWith<$Res> { + __$PoultryCopyWithImpl(this._self, this._then); + + final _Poultry _self; + final $Res Function(_Poultry) _then; + +/// Create a copy of Poultry +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? userprofile = freezed,Object? address = freezed,Object? poultryOwner = freezed,Object? poultryTenant = freezed,Object? hatching = freezed,Object? registerVetHalls = freezed,Object? allow = freezed,Object? provinceAllowChooseKillHouse = freezed,Object? provinceAllowSellFree = freezed,Object? vetFarm = freezed,Object? lastHatchingDiffrentRequestQuantity = freezed,Object? userBankInfo = freezed,Object? leftOverOwnHatching = freezed,Object? key = freezed,Object? trash = freezed,Object? ownerIdForeignKey = freezed,Object? userIdForeignKey = freezed,Object? addressIdForeignKey = freezed,Object? hasChainCompany = freezed,Object? userBankIdForeignKey = freezed,Object? cityOperator = freezed,Object? unitName = freezed,Object? gisCode = freezed,Object? operatingLicenceCapacity = freezed,Object? numberOfHalls = freezed,Object? tenant = freezed,Object? hasTenant = freezed,Object? personType = freezed,Object? economicCode = freezed,Object? systemCode = freezed,Object? epidemiologicalCode = freezed,Object? breedingUniqueId = freezed,Object? totalCapacity = freezed,Object? licenceNumber = freezed,Object? healthCertificateNumber = freezed,Object? numberOfRequests = freezed,Object? hatchingDate = freezed,Object? lastPartyDate = freezed,Object? numberOfIncubators = freezed,Object? herdAgeByDay = freezed,Object? herdAgeByWeek = freezed,Object? numberOfParty = freezed,Object? communicationType = freezed,Object? cooperative = freezed,Object? dateOfRegister = freezed,Object? unitStatus = freezed,Object? active = freezed,Object? identityDocuments = freezed,Object? samasatUserCode = freezed,Object? baseOrder = freezed,Object? incubationDate = freezed,Object? walletAmount = freezed,Object? city = freezed,Object? cityNumber = freezed,Object? cityName = freezed,Object? provinceNumber = freezed,Object? provinceName = freezed,Object? walletIdForeignKey = freezed,Object? poultryIdKey = freezed,Object? lat = freezed,Object? long = freezed,Object? date = freezed,Object? killingAveAge = freezed,Object? activeLeftOver = freezed,Object? killingAveCount = freezed,Object? killingAveWeight = freezed,Object? killingLiveWeight = freezed,Object? killingCarcassesWeight = freezed,Object? killingLossWeightPercent = freezed,Object? realKillingAveWeight = freezed,Object? realKillingLiveWeight = freezed,Object? realKillingCarcassesWeight = freezed,Object? realKillingLossWeightPercent = freezed,Object? interestLicenseId = freezed,Object? orderLimit = freezed,Object? owner = freezed,Object? wallet = freezed,}) { + return _then(_Poultry( +userprofile: freezed == userprofile ? _self.userprofile : userprofile // ignore: cast_nullable_to_non_nullable +as UserProfile?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable +as Address?,poultryOwner: freezed == poultryOwner ? _self.poultryOwner : poultryOwner // ignore: cast_nullable_to_non_nullable +as dynamic,poultryTenant: freezed == poultryTenant ? _self.poultryTenant : poultryTenant // ignore: cast_nullable_to_non_nullable +as PoultryTenant?,hatching: freezed == hatching ? _self._hatching : hatching // ignore: cast_nullable_to_non_nullable +as List?,registerVetHalls: freezed == registerVetHalls ? _self._registerVetHalls : registerVetHalls // ignore: cast_nullable_to_non_nullable +as List?,allow: freezed == allow ? _self.allow : allow // ignore: cast_nullable_to_non_nullable +as Allow?,provinceAllowChooseKillHouse: freezed == provinceAllowChooseKillHouse ? _self.provinceAllowChooseKillHouse : provinceAllowChooseKillHouse // ignore: cast_nullable_to_non_nullable +as ProvinceAllowChooseKillHouse?,provinceAllowSellFree: freezed == provinceAllowSellFree ? _self.provinceAllowSellFree : provinceAllowSellFree // ignore: cast_nullable_to_non_nullable +as bool?,vetFarm: freezed == vetFarm ? _self.vetFarm : vetFarm // ignore: cast_nullable_to_non_nullable +as VetFarm?,lastHatchingDiffrentRequestQuantity: freezed == lastHatchingDiffrentRequestQuantity ? _self.lastHatchingDiffrentRequestQuantity : lastHatchingDiffrentRequestQuantity // ignore: cast_nullable_to_non_nullable +as LastHatchingDiffrentRequestQuantity?,userBankInfo: freezed == userBankInfo ? _self.userBankInfo : userBankInfo // ignore: cast_nullable_to_non_nullable +as UserBankInfo?,leftOverOwnHatching: freezed == leftOverOwnHatching ? _self.leftOverOwnHatching : leftOverOwnHatching // ignore: cast_nullable_to_non_nullable +as int?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable +as bool?,ownerIdForeignKey: freezed == ownerIdForeignKey ? _self.ownerIdForeignKey : ownerIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,userIdForeignKey: freezed == userIdForeignKey ? _self.userIdForeignKey : userIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,addressIdForeignKey: freezed == addressIdForeignKey ? _self.addressIdForeignKey : addressIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,hasChainCompany: freezed == hasChainCompany ? _self.hasChainCompany : hasChainCompany // ignore: cast_nullable_to_non_nullable +as bool?,userBankIdForeignKey: freezed == userBankIdForeignKey ? _self.userBankIdForeignKey : userBankIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,cityOperator: freezed == cityOperator ? _self.cityOperator : cityOperator // ignore: cast_nullable_to_non_nullable +as String?,unitName: freezed == unitName ? _self.unitName : unitName // ignore: cast_nullable_to_non_nullable +as String?,gisCode: freezed == gisCode ? _self.gisCode : gisCode // ignore: cast_nullable_to_non_nullable +as String?,operatingLicenceCapacity: freezed == operatingLicenceCapacity ? _self.operatingLicenceCapacity : operatingLicenceCapacity // ignore: cast_nullable_to_non_nullable +as int?,numberOfHalls: freezed == numberOfHalls ? _self.numberOfHalls : numberOfHalls // ignore: cast_nullable_to_non_nullable +as int?,tenant: freezed == tenant ? _self.tenant : tenant // ignore: cast_nullable_to_non_nullable +as bool?,hasTenant: freezed == hasTenant ? _self.hasTenant : hasTenant // ignore: cast_nullable_to_non_nullable +as bool?,personType: freezed == personType ? _self.personType : personType // ignore: cast_nullable_to_non_nullable +as dynamic,economicCode: freezed == economicCode ? _self.economicCode : economicCode // ignore: cast_nullable_to_non_nullable +as dynamic,systemCode: freezed == systemCode ? _self.systemCode : systemCode // ignore: cast_nullable_to_non_nullable +as String?,epidemiologicalCode: freezed == epidemiologicalCode ? _self.epidemiologicalCode : epidemiologicalCode // ignore: cast_nullable_to_non_nullable +as String?,breedingUniqueId: freezed == breedingUniqueId ? _self.breedingUniqueId : breedingUniqueId // ignore: cast_nullable_to_non_nullable +as String?,totalCapacity: freezed == totalCapacity ? _self.totalCapacity : totalCapacity // ignore: cast_nullable_to_non_nullable +as int?,licenceNumber: freezed == licenceNumber ? _self.licenceNumber : licenceNumber // ignore: cast_nullable_to_non_nullable +as String?,healthCertificateNumber: freezed == healthCertificateNumber ? _self.healthCertificateNumber : healthCertificateNumber // ignore: cast_nullable_to_non_nullable +as String?,numberOfRequests: freezed == numberOfRequests ? _self.numberOfRequests : numberOfRequests // ignore: cast_nullable_to_non_nullable +as int?,hatchingDate: freezed == hatchingDate ? _self.hatchingDate : hatchingDate // ignore: cast_nullable_to_non_nullable +as String?,lastPartyDate: freezed == lastPartyDate ? _self.lastPartyDate : lastPartyDate // ignore: cast_nullable_to_non_nullable +as String?,numberOfIncubators: freezed == numberOfIncubators ? _self.numberOfIncubators : numberOfIncubators // ignore: cast_nullable_to_non_nullable +as int?,herdAgeByDay: freezed == herdAgeByDay ? _self.herdAgeByDay : herdAgeByDay // ignore: cast_nullable_to_non_nullable +as int?,herdAgeByWeek: freezed == herdAgeByWeek ? _self.herdAgeByWeek : herdAgeByWeek // ignore: cast_nullable_to_non_nullable +as int?,numberOfParty: freezed == numberOfParty ? _self.numberOfParty : numberOfParty // ignore: cast_nullable_to_non_nullable +as int?,communicationType: freezed == communicationType ? _self.communicationType : communicationType // ignore: cast_nullable_to_non_nullable +as dynamic,cooperative: freezed == cooperative ? _self.cooperative : cooperative // ignore: cast_nullable_to_non_nullable +as dynamic,dateOfRegister: freezed == dateOfRegister ? _self.dateOfRegister : dateOfRegister // ignore: cast_nullable_to_non_nullable +as String?,unitStatus: freezed == unitStatus ? _self.unitStatus : unitStatus // ignore: cast_nullable_to_non_nullable +as dynamic,active: freezed == active ? _self.active : active // ignore: cast_nullable_to_non_nullable +as bool?,identityDocuments: freezed == identityDocuments ? _self.identityDocuments : identityDocuments // ignore: cast_nullable_to_non_nullable +as dynamic,samasatUserCode: freezed == samasatUserCode ? _self.samasatUserCode : samasatUserCode // ignore: cast_nullable_to_non_nullable +as dynamic,baseOrder: freezed == baseOrder ? _self.baseOrder : baseOrder // ignore: cast_nullable_to_non_nullable +as dynamic,incubationDate: freezed == incubationDate ? _self.incubationDate : incubationDate // ignore: cast_nullable_to_non_nullable +as String?,walletAmount: freezed == walletAmount ? _self.walletAmount : walletAmount // ignore: cast_nullable_to_non_nullable +as int?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as int?,cityNumber: freezed == cityNumber ? _self.cityNumber : cityNumber // ignore: cast_nullable_to_non_nullable +as int?,cityName: freezed == cityName ? _self.cityName : cityName // ignore: cast_nullable_to_non_nullable +as String?,provinceNumber: freezed == provinceNumber ? _self.provinceNumber : provinceNumber // ignore: cast_nullable_to_non_nullable +as int?,provinceName: freezed == provinceName ? _self.provinceName : provinceName // ignore: cast_nullable_to_non_nullable +as String?,walletIdForeignKey: freezed == walletIdForeignKey ? _self.walletIdForeignKey : walletIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,poultryIdKey: freezed == poultryIdKey ? _self.poultryIdKey : poultryIdKey // ignore: cast_nullable_to_non_nullable +as int?,lat: freezed == lat ? _self.lat : lat // ignore: cast_nullable_to_non_nullable +as double?,long: freezed == long ? _self.long : long // ignore: cast_nullable_to_non_nullable +as double?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as dynamic,killingAveAge: freezed == killingAveAge ? _self.killingAveAge : killingAveAge // ignore: cast_nullable_to_non_nullable +as int?,activeLeftOver: freezed == activeLeftOver ? _self.activeLeftOver : activeLeftOver // ignore: cast_nullable_to_non_nullable +as int?,killingAveCount: freezed == killingAveCount ? _self.killingAveCount : killingAveCount // ignore: cast_nullable_to_non_nullable +as int?,killingAveWeight: freezed == killingAveWeight ? _self.killingAveWeight : killingAveWeight // ignore: cast_nullable_to_non_nullable +as int?,killingLiveWeight: freezed == killingLiveWeight ? _self.killingLiveWeight : killingLiveWeight // ignore: cast_nullable_to_non_nullable +as int?,killingCarcassesWeight: freezed == killingCarcassesWeight ? _self.killingCarcassesWeight : killingCarcassesWeight // ignore: cast_nullable_to_non_nullable +as int?,killingLossWeightPercent: freezed == killingLossWeightPercent ? _self.killingLossWeightPercent : killingLossWeightPercent // ignore: cast_nullable_to_non_nullable +as int?,realKillingAveWeight: freezed == realKillingAveWeight ? _self.realKillingAveWeight : realKillingAveWeight // ignore: cast_nullable_to_non_nullable +as double?,realKillingLiveWeight: freezed == realKillingLiveWeight ? _self.realKillingLiveWeight : realKillingLiveWeight // ignore: cast_nullable_to_non_nullable +as double?,realKillingCarcassesWeight: freezed == realKillingCarcassesWeight ? _self.realKillingCarcassesWeight : realKillingCarcassesWeight // ignore: cast_nullable_to_non_nullable +as double?,realKillingLossWeightPercent: freezed == realKillingLossWeightPercent ? _self.realKillingLossWeightPercent : realKillingLossWeightPercent // ignore: cast_nullable_to_non_nullable +as double?,interestLicenseId: freezed == interestLicenseId ? _self.interestLicenseId : interestLicenseId // ignore: cast_nullable_to_non_nullable +as dynamic,orderLimit: freezed == orderLimit ? _self.orderLimit : orderLimit // ignore: cast_nullable_to_non_nullable +as bool?,owner: freezed == owner ? _self.owner : owner // ignore: cast_nullable_to_non_nullable +as dynamic,wallet: freezed == wallet ? _self.wallet : wallet // ignore: cast_nullable_to_non_nullable +as int?, + )); +} + +/// Create a copy of Poultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$UserProfileCopyWith<$Res>? get userprofile { + if (_self.userprofile == null) { + return null; + } + + return $UserProfileCopyWith<$Res>(_self.userprofile!, (value) { + return _then(_self.copyWith(userprofile: value)); + }); +}/// Create a copy of Poultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$AddressCopyWith<$Res>? get address { + if (_self.address == null) { + return null; + } + + return $AddressCopyWith<$Res>(_self.address!, (value) { + return _then(_self.copyWith(address: value)); + }); +}/// Create a copy of Poultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$PoultryTenantCopyWith<$Res>? get poultryTenant { + if (_self.poultryTenant == null) { + return null; + } + + return $PoultryTenantCopyWith<$Res>(_self.poultryTenant!, (value) { + return _then(_self.copyWith(poultryTenant: value)); + }); +}/// Create a copy of Poultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$AllowCopyWith<$Res>? get allow { + if (_self.allow == null) { + return null; + } + + return $AllowCopyWith<$Res>(_self.allow!, (value) { + return _then(_self.copyWith(allow: value)); + }); +}/// Create a copy of Poultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ProvinceAllowChooseKillHouseCopyWith<$Res>? get provinceAllowChooseKillHouse { + if (_self.provinceAllowChooseKillHouse == null) { + return null; + } + + return $ProvinceAllowChooseKillHouseCopyWith<$Res>(_self.provinceAllowChooseKillHouse!, (value) { + return _then(_self.copyWith(provinceAllowChooseKillHouse: value)); + }); +}/// Create a copy of Poultry +/// 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 Poultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$LastHatchingDiffrentRequestQuantityCopyWith<$Res>? get lastHatchingDiffrentRequestQuantity { + if (_self.lastHatchingDiffrentRequestQuantity == null) { + return null; + } + + return $LastHatchingDiffrentRequestQuantityCopyWith<$Res>(_self.lastHatchingDiffrentRequestQuantity!, (value) { + return _then(_self.copyWith(lastHatchingDiffrentRequestQuantity: value)); + }); +}/// Create a copy of Poultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$UserBankInfoCopyWith<$Res>? get userBankInfo { + if (_self.userBankInfo == null) { + return null; + } + + return $UserBankInfoCopyWith<$Res>(_self.userBankInfo!, (value) { + return _then(_self.copyWith(userBankInfo: value)); + }); +} +} + + +/// @nodoc +mixin _$UserProfile { + + String? get userKey; int? get baseOrder; String? get fullName; String? get mobile; String? get city; String? get province; String? get breedingUniqueId; +/// Create a copy of UserProfile +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$UserProfileCopyWith get copyWith => _$UserProfileCopyWithImpl(this as UserProfile, _$identity); + + /// Serializes this UserProfile to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is UserProfile&&(identical(other.userKey, userKey) || other.userKey == userKey)&&(identical(other.baseOrder, baseOrder) || other.baseOrder == baseOrder)&&(identical(other.fullName, fullName) || other.fullName == fullName)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.city, city) || other.city == city)&&(identical(other.province, province) || other.province == province)&&(identical(other.breedingUniqueId, breedingUniqueId) || other.breedingUniqueId == breedingUniqueId)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,userKey,baseOrder,fullName,mobile,city,province,breedingUniqueId); + +@override +String toString() { + return 'UserProfile(userKey: $userKey, baseOrder: $baseOrder, fullName: $fullName, mobile: $mobile, city: $city, province: $province, breedingUniqueId: $breedingUniqueId)'; +} + + +} + +/// @nodoc +abstract mixin class $UserProfileCopyWith<$Res> { + factory $UserProfileCopyWith(UserProfile value, $Res Function(UserProfile) _then) = _$UserProfileCopyWithImpl; +@useResult +$Res call({ + String? userKey, int? baseOrder, String? fullName, String? mobile, String? city, String? province, String? breedingUniqueId +}); + + + + +} +/// @nodoc +class _$UserProfileCopyWithImpl<$Res> + implements $UserProfileCopyWith<$Res> { + _$UserProfileCopyWithImpl(this._self, this._then); + + final UserProfile _self; + final $Res Function(UserProfile) _then; + +/// Create a copy of UserProfile +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? userKey = freezed,Object? baseOrder = freezed,Object? fullName = freezed,Object? mobile = freezed,Object? city = freezed,Object? province = freezed,Object? breedingUniqueId = freezed,}) { + return _then(_self.copyWith( +userKey: freezed == userKey ? _self.userKey : userKey // ignore: cast_nullable_to_non_nullable +as String?,baseOrder: freezed == baseOrder ? _self.baseOrder : baseOrder // ignore: cast_nullable_to_non_nullable +as int?,fullName: freezed == fullName ? _self.fullName : fullName // ignore: cast_nullable_to_non_nullable +as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as String?,breedingUniqueId: freezed == breedingUniqueId ? _self.breedingUniqueId : breedingUniqueId // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [UserProfile]. +extension UserProfilePatterns on UserProfile { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _UserProfile value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _UserProfile() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _UserProfile value) $default,){ +final _that = this; +switch (_that) { +case _UserProfile(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _UserProfile value)? $default,){ +final _that = this; +switch (_that) { +case _UserProfile() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? userKey, int? baseOrder, String? fullName, String? mobile, String? city, String? province, String? breedingUniqueId)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _UserProfile() when $default != null: +return $default(_that.userKey,_that.baseOrder,_that.fullName,_that.mobile,_that.city,_that.province,_that.breedingUniqueId);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? userKey, int? baseOrder, String? fullName, String? mobile, String? city, String? province, String? breedingUniqueId) $default,) {final _that = this; +switch (_that) { +case _UserProfile(): +return $default(_that.userKey,_that.baseOrder,_that.fullName,_that.mobile,_that.city,_that.province,_that.breedingUniqueId);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? userKey, int? baseOrder, String? fullName, String? mobile, String? city, String? province, String? breedingUniqueId)? $default,) {final _that = this; +switch (_that) { +case _UserProfile() when $default != null: +return $default(_that.userKey,_that.baseOrder,_that.fullName,_that.mobile,_that.city,_that.province,_that.breedingUniqueId);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _UserProfile implements UserProfile { + const _UserProfile({this.userKey, this.baseOrder, this.fullName, this.mobile, this.city, this.province, this.breedingUniqueId}); + factory _UserProfile.fromJson(Map json) => _$UserProfileFromJson(json); + +@override final String? userKey; +@override final int? baseOrder; +@override final String? fullName; +@override final String? mobile; +@override final String? city; +@override final String? province; +@override final String? breedingUniqueId; + +/// Create a copy of UserProfile +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$UserProfileCopyWith<_UserProfile> get copyWith => __$UserProfileCopyWithImpl<_UserProfile>(this, _$identity); + +@override +Map toJson() { + return _$UserProfileToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _UserProfile&&(identical(other.userKey, userKey) || other.userKey == userKey)&&(identical(other.baseOrder, baseOrder) || other.baseOrder == baseOrder)&&(identical(other.fullName, fullName) || other.fullName == fullName)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.city, city) || other.city == city)&&(identical(other.province, province) || other.province == province)&&(identical(other.breedingUniqueId, breedingUniqueId) || other.breedingUniqueId == breedingUniqueId)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,userKey,baseOrder,fullName,mobile,city,province,breedingUniqueId); + +@override +String toString() { + return 'UserProfile(userKey: $userKey, baseOrder: $baseOrder, fullName: $fullName, mobile: $mobile, city: $city, province: $province, breedingUniqueId: $breedingUniqueId)'; +} + + +} + +/// @nodoc +abstract mixin class _$UserProfileCopyWith<$Res> implements $UserProfileCopyWith<$Res> { + factory _$UserProfileCopyWith(_UserProfile value, $Res Function(_UserProfile) _then) = __$UserProfileCopyWithImpl; +@override @useResult +$Res call({ + String? userKey, int? baseOrder, String? fullName, String? mobile, String? city, String? province, String? breedingUniqueId +}); + + + + +} +/// @nodoc +class __$UserProfileCopyWithImpl<$Res> + implements _$UserProfileCopyWith<$Res> { + __$UserProfileCopyWithImpl(this._self, this._then); + + final _UserProfile _self; + final $Res Function(_UserProfile) _then; + +/// Create a copy of UserProfile +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? userKey = freezed,Object? baseOrder = freezed,Object? fullName = freezed,Object? mobile = freezed,Object? city = freezed,Object? province = freezed,Object? breedingUniqueId = freezed,}) { + return _then(_UserProfile( +userKey: freezed == userKey ? _self.userKey : userKey // ignore: cast_nullable_to_non_nullable +as String?,baseOrder: freezed == baseOrder ? _self.baseOrder : baseOrder // ignore: cast_nullable_to_non_nullable +as int?,fullName: freezed == fullName ? _self.fullName : fullName // ignore: cast_nullable_to_non_nullable +as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as String?,breedingUniqueId: freezed == breedingUniqueId ? _self.breedingUniqueId : breedingUniqueId // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$Address { + + Province? get province; City? get city; String? get address; String? get postalCode; +/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$AddressCopyWith
get copyWith => _$AddressCopyWithImpl
(this as Address, _$identity); + + /// Serializes this Address to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is Address&&(identical(other.province, province) || other.province == province)&&(identical(other.city, city) || other.city == city)&&(identical(other.address, address) || other.address == address)&&(identical(other.postalCode, postalCode) || other.postalCode == postalCode)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,province,city,address,postalCode); + +@override +String toString() { + return 'Address(province: $province, city: $city, address: $address, postalCode: $postalCode)'; +} + + +} + +/// @nodoc +abstract mixin class $AddressCopyWith<$Res> { + factory $AddressCopyWith(Address value, $Res Function(Address) _then) = _$AddressCopyWithImpl; +@useResult +$Res call({ + Province? province, City? city, String? address, String? postalCode +}); + + +$ProvinceCopyWith<$Res>? get province;$CityCopyWith<$Res>? get city; + +} +/// @nodoc +class _$AddressCopyWithImpl<$Res> + implements $AddressCopyWith<$Res> { + _$AddressCopyWithImpl(this._self, this._then); + + final Address _self; + final $Res Function(Address) _then; + +/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? province = freezed,Object? city = freezed,Object? address = freezed,Object? postalCode = freezed,}) { + return _then(_self.copyWith( +province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as Province?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as City?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable +as String?,postalCode: freezed == postalCode ? _self.postalCode : postalCode // ignore: cast_nullable_to_non_nullable +as String?, + )); +} +/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ProvinceCopyWith<$Res>? get province { + if (_self.province == null) { + return null; + } + + return $ProvinceCopyWith<$Res>(_self.province!, (value) { + return _then(_self.copyWith(province: value)); + }); +}/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$CityCopyWith<$Res>? get city { + if (_self.city == null) { + return null; + } + + return $CityCopyWith<$Res>(_self.city!, (value) { + return _then(_self.copyWith(city: value)); + }); +} +} + + +/// Adds pattern-matching-related methods to [Address]. +extension AddressPatterns on Address { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _Address value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _Address() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _Address value) $default,){ +final _that = this; +switch (_that) { +case _Address(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _Address value)? $default,){ +final _that = this; +switch (_that) { +case _Address() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( Province? province, City? city, String? address, String? postalCode)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _Address() when $default != null: +return $default(_that.province,_that.city,_that.address,_that.postalCode);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( Province? province, City? city, String? address, String? postalCode) $default,) {final _that = this; +switch (_that) { +case _Address(): +return $default(_that.province,_that.city,_that.address,_that.postalCode);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( Province? province, City? city, String? address, String? postalCode)? $default,) {final _that = this; +switch (_that) { +case _Address() when $default != null: +return $default(_that.province,_that.city,_that.address,_that.postalCode);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _Address implements Address { + const _Address({this.province, this.city, this.address, this.postalCode}); + factory _Address.fromJson(Map json) => _$AddressFromJson(json); + +@override final Province? province; +@override final City? city; +@override final String? address; +@override final String? postalCode; + +/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$AddressCopyWith<_Address> get copyWith => __$AddressCopyWithImpl<_Address>(this, _$identity); + +@override +Map toJson() { + return _$AddressToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Address&&(identical(other.province, province) || other.province == province)&&(identical(other.city, city) || other.city == city)&&(identical(other.address, address) || other.address == address)&&(identical(other.postalCode, postalCode) || other.postalCode == postalCode)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,province,city,address,postalCode); + +@override +String toString() { + return 'Address(province: $province, city: $city, address: $address, postalCode: $postalCode)'; +} + + +} + +/// @nodoc +abstract mixin class _$AddressCopyWith<$Res> implements $AddressCopyWith<$Res> { + factory _$AddressCopyWith(_Address value, $Res Function(_Address) _then) = __$AddressCopyWithImpl; +@override @useResult +$Res call({ + Province? province, City? city, String? address, String? postalCode +}); + + +@override $ProvinceCopyWith<$Res>? get province;@override $CityCopyWith<$Res>? get city; + +} +/// @nodoc +class __$AddressCopyWithImpl<$Res> + implements _$AddressCopyWith<$Res> { + __$AddressCopyWithImpl(this._self, this._then); + + final _Address _self; + final $Res Function(_Address) _then; + +/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? province = freezed,Object? city = freezed,Object? address = freezed,Object? postalCode = freezed,}) { + return _then(_Address( +province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as Province?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as City?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable +as String?,postalCode: freezed == postalCode ? _self.postalCode : postalCode // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ProvinceCopyWith<$Res>? get province { + if (_self.province == null) { + return null; + } + + return $ProvinceCopyWith<$Res>(_self.province!, (value) { + return _then(_self.copyWith(province: value)); + }); +}/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$CityCopyWith<$Res>? get city { + if (_self.city == null) { + return null; + } + + return $CityCopyWith<$Res>(_self.city!, (value) { + return _then(_self.copyWith(city: value)); + }); +} +} + + +/// @nodoc +mixin _$Province { + + String? get key; String? get name; +/// Create a copy of Province +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ProvinceCopyWith get copyWith => _$ProvinceCopyWithImpl(this as Province, _$identity); + + /// Serializes this Province to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is Province&&(identical(other.key, key) || other.key == key)&&(identical(other.name, name) || other.name == name)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,name); + +@override +String toString() { + return 'Province(key: $key, name: $name)'; +} + + +} + +/// @nodoc +abstract mixin class $ProvinceCopyWith<$Res> { + factory $ProvinceCopyWith(Province value, $Res Function(Province) _then) = _$ProvinceCopyWithImpl; +@useResult +$Res call({ + String? key, String? name +}); + + + + +} +/// @nodoc +class _$ProvinceCopyWithImpl<$Res> + implements $ProvinceCopyWith<$Res> { + _$ProvinceCopyWithImpl(this._self, this._then); + + final Province _self; + final $Res Function(Province) _then; + +/// Create a copy of Province +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? key = freezed,Object? name = freezed,}) { + return _then(_self.copyWith( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [Province]. +extension ProvincePatterns on Province { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _Province value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _Province() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _Province value) $default,){ +final _that = this; +switch (_that) { +case _Province(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _Province value)? $default,){ +final _that = this; +switch (_that) { +case _Province() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? key, String? name)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _Province() when $default != null: +return $default(_that.key,_that.name);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? key, String? name) $default,) {final _that = this; +switch (_that) { +case _Province(): +return $default(_that.key,_that.name);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? key, String? name)? $default,) {final _that = this; +switch (_that) { +case _Province() when $default != null: +return $default(_that.key,_that.name);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _Province implements Province { + const _Province({this.key, this.name}); + factory _Province.fromJson(Map json) => _$ProvinceFromJson(json); + +@override final String? key; +@override final String? name; + +/// Create a copy of Province +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ProvinceCopyWith<_Province> get copyWith => __$ProvinceCopyWithImpl<_Province>(this, _$identity); + +@override +Map toJson() { + return _$ProvinceToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Province&&(identical(other.key, key) || other.key == key)&&(identical(other.name, name) || other.name == name)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,name); + +@override +String toString() { + return 'Province(key: $key, name: $name)'; +} + + +} + +/// @nodoc +abstract mixin class _$ProvinceCopyWith<$Res> implements $ProvinceCopyWith<$Res> { + factory _$ProvinceCopyWith(_Province value, $Res Function(_Province) _then) = __$ProvinceCopyWithImpl; +@override @useResult +$Res call({ + String? key, String? name +}); + + + + +} +/// @nodoc +class __$ProvinceCopyWithImpl<$Res> + implements _$ProvinceCopyWith<$Res> { + __$ProvinceCopyWithImpl(this._self, this._then); + + final _Province _self; + final $Res Function(_Province) _then; + +/// Create a copy of Province +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? key = freezed,Object? name = freezed,}) { + return _then(_Province( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$City { + + String? get key; String? get name; +/// Create a copy of City +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$CityCopyWith get copyWith => _$CityCopyWithImpl(this as City, _$identity); + + /// Serializes this City to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is City&&(identical(other.key, key) || other.key == key)&&(identical(other.name, name) || other.name == name)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,name); + +@override +String toString() { + return 'City(key: $key, name: $name)'; +} + + +} + +/// @nodoc +abstract mixin class $CityCopyWith<$Res> { + factory $CityCopyWith(City value, $Res Function(City) _then) = _$CityCopyWithImpl; +@useResult +$Res call({ + String? key, String? name +}); + + + + +} +/// @nodoc +class _$CityCopyWithImpl<$Res> + implements $CityCopyWith<$Res> { + _$CityCopyWithImpl(this._self, this._then); + + final City _self; + final $Res Function(City) _then; + +/// Create a copy of City +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? key = freezed,Object? name = freezed,}) { + return _then(_self.copyWith( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [City]. +extension CityPatterns on City { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _City value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _City() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _City value) $default,){ +final _that = this; +switch (_that) { +case _City(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _City value)? $default,){ +final _that = this; +switch (_that) { +case _City() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? key, String? name)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _City() when $default != null: +return $default(_that.key,_that.name);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? key, String? name) $default,) {final _that = this; +switch (_that) { +case _City(): +return $default(_that.key,_that.name);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? key, String? name)? $default,) {final _that = this; +switch (_that) { +case _City() when $default != null: +return $default(_that.key,_that.name);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _City implements City { + const _City({this.key, this.name}); + factory _City.fromJson(Map json) => _$CityFromJson(json); + +@override final String? key; +@override final String? name; + +/// Create a copy of City +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$CityCopyWith<_City> get copyWith => __$CityCopyWithImpl<_City>(this, _$identity); + +@override +Map toJson() { + return _$CityToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _City&&(identical(other.key, key) || other.key == key)&&(identical(other.name, name) || other.name == name)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,name); + +@override +String toString() { + return 'City(key: $key, name: $name)'; +} + + +} + +/// @nodoc +abstract mixin class _$CityCopyWith<$Res> implements $CityCopyWith<$Res> { + factory _$CityCopyWith(_City value, $Res Function(_City) _then) = __$CityCopyWithImpl; +@override @useResult +$Res call({ + String? key, String? name +}); + + + + +} +/// @nodoc +class __$CityCopyWithImpl<$Res> + implements _$CityCopyWith<$Res> { + __$CityCopyWithImpl(this._self, this._then); + + final _City _self; + final $Res Function(_City) _then; + +/// Create a copy of City +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? key = freezed,Object? name = freezed,}) { + return _then(_City( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$PoultryTenant { + + String? get key; String? get firstName; String? get lastName; String? get fullName; String? get mobile; String? get nationalId; String? get breedingUniqueId; +/// Create a copy of PoultryTenant +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$PoultryTenantCopyWith get copyWith => _$PoultryTenantCopyWithImpl(this as PoultryTenant, _$identity); + + /// Serializes this PoultryTenant to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is PoultryTenant&&(identical(other.key, key) || other.key == key)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.fullName, fullName) || other.fullName == fullName)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.nationalId, nationalId) || other.nationalId == nationalId)&&(identical(other.breedingUniqueId, breedingUniqueId) || other.breedingUniqueId == breedingUniqueId)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,firstName,lastName,fullName,mobile,nationalId,breedingUniqueId); + +@override +String toString() { + return 'PoultryTenant(key: $key, firstName: $firstName, lastName: $lastName, fullName: $fullName, mobile: $mobile, nationalId: $nationalId, breedingUniqueId: $breedingUniqueId)'; +} + + +} + +/// @nodoc +abstract mixin class $PoultryTenantCopyWith<$Res> { + factory $PoultryTenantCopyWith(PoultryTenant value, $Res Function(PoultryTenant) _then) = _$PoultryTenantCopyWithImpl; +@useResult +$Res call({ + String? key, String? firstName, String? lastName, String? fullName, String? mobile, String? nationalId, String? breedingUniqueId +}); + + + + +} +/// @nodoc +class _$PoultryTenantCopyWithImpl<$Res> + implements $PoultryTenantCopyWith<$Res> { + _$PoultryTenantCopyWithImpl(this._self, this._then); + + final PoultryTenant _self; + final $Res Function(PoultryTenant) _then; + +/// Create a copy of PoultryTenant +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? key = freezed,Object? firstName = freezed,Object? lastName = freezed,Object? fullName = freezed,Object? mobile = freezed,Object? nationalId = freezed,Object? breedingUniqueId = freezed,}) { + return _then(_self.copyWith( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,firstName: freezed == firstName ? _self.firstName : firstName // ignore: cast_nullable_to_non_nullable +as String?,lastName: freezed == lastName ? _self.lastName : lastName // ignore: cast_nullable_to_non_nullable +as String?,fullName: freezed == fullName ? _self.fullName : fullName // ignore: cast_nullable_to_non_nullable +as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?,nationalId: freezed == nationalId ? _self.nationalId : nationalId // ignore: cast_nullable_to_non_nullable +as String?,breedingUniqueId: freezed == breedingUniqueId ? _self.breedingUniqueId : breedingUniqueId // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [PoultryTenant]. +extension PoultryTenantPatterns on PoultryTenant { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _PoultryTenant value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _PoultryTenant() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _PoultryTenant value) $default,){ +final _that = this; +switch (_that) { +case _PoultryTenant(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _PoultryTenant value)? $default,){ +final _that = this; +switch (_that) { +case _PoultryTenant() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? key, String? firstName, String? lastName, String? fullName, String? mobile, String? nationalId, String? breedingUniqueId)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _PoultryTenant() when $default != null: +return $default(_that.key,_that.firstName,_that.lastName,_that.fullName,_that.mobile,_that.nationalId,_that.breedingUniqueId);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? key, String? firstName, String? lastName, String? fullName, String? mobile, String? nationalId, String? breedingUniqueId) $default,) {final _that = this; +switch (_that) { +case _PoultryTenant(): +return $default(_that.key,_that.firstName,_that.lastName,_that.fullName,_that.mobile,_that.nationalId,_that.breedingUniqueId);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? key, String? firstName, String? lastName, String? fullName, String? mobile, String? nationalId, String? breedingUniqueId)? $default,) {final _that = this; +switch (_that) { +case _PoultryTenant() when $default != null: +return $default(_that.key,_that.firstName,_that.lastName,_that.fullName,_that.mobile,_that.nationalId,_that.breedingUniqueId);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _PoultryTenant implements PoultryTenant { + const _PoultryTenant({this.key, this.firstName, this.lastName, this.fullName, this.mobile, this.nationalId, this.breedingUniqueId}); + factory _PoultryTenant.fromJson(Map json) => _$PoultryTenantFromJson(json); + +@override final String? key; +@override final String? firstName; +@override final String? lastName; +@override final String? fullName; +@override final String? mobile; +@override final String? nationalId; +@override final String? breedingUniqueId; + +/// Create a copy of PoultryTenant +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$PoultryTenantCopyWith<_PoultryTenant> get copyWith => __$PoultryTenantCopyWithImpl<_PoultryTenant>(this, _$identity); + +@override +Map toJson() { + return _$PoultryTenantToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _PoultryTenant&&(identical(other.key, key) || other.key == key)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.fullName, fullName) || other.fullName == fullName)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.nationalId, nationalId) || other.nationalId == nationalId)&&(identical(other.breedingUniqueId, breedingUniqueId) || other.breedingUniqueId == breedingUniqueId)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,firstName,lastName,fullName,mobile,nationalId,breedingUniqueId); + +@override +String toString() { + return 'PoultryTenant(key: $key, firstName: $firstName, lastName: $lastName, fullName: $fullName, mobile: $mobile, nationalId: $nationalId, breedingUniqueId: $breedingUniqueId)'; +} + + +} + +/// @nodoc +abstract mixin class _$PoultryTenantCopyWith<$Res> implements $PoultryTenantCopyWith<$Res> { + factory _$PoultryTenantCopyWith(_PoultryTenant value, $Res Function(_PoultryTenant) _then) = __$PoultryTenantCopyWithImpl; +@override @useResult +$Res call({ + String? key, String? firstName, String? lastName, String? fullName, String? mobile, String? nationalId, String? breedingUniqueId +}); + + + + +} +/// @nodoc +class __$PoultryTenantCopyWithImpl<$Res> + implements _$PoultryTenantCopyWith<$Res> { + __$PoultryTenantCopyWithImpl(this._self, this._then); + + final _PoultryTenant _self; + final $Res Function(_PoultryTenant) _then; + +/// Create a copy of PoultryTenant +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? key = freezed,Object? firstName = freezed,Object? lastName = freezed,Object? fullName = freezed,Object? mobile = freezed,Object? nationalId = freezed,Object? breedingUniqueId = freezed,}) { + return _then(_PoultryTenant( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,firstName: freezed == firstName ? _self.firstName : firstName // ignore: cast_nullable_to_non_nullable +as String?,lastName: freezed == lastName ? _self.lastName : lastName // ignore: cast_nullable_to_non_nullable +as String?,fullName: freezed == fullName ? _self.fullName : fullName // ignore: cast_nullable_to_non_nullable +as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?,nationalId: freezed == nationalId ? _self.nationalId : nationalId // ignore: cast_nullable_to_non_nullable +as String?,breedingUniqueId: freezed == breedingUniqueId ? _self.breedingUniqueId : breedingUniqueId // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$Hatching { + + String? get poultryKey; String? get poultryHatchingKey; String? get poultry; int? get quantity; int? get losses; int? get leftOver; double? get outProvinceKilledQuantity; double? get exportKilledQuantity; int? get hall; String? get date; int? get period; String? get state; int? get age; +/// Create a copy of Hatching +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$HatchingCopyWith get copyWith => _$HatchingCopyWithImpl(this as Hatching, _$identity); + + /// Serializes this Hatching to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is Hatching&&(identical(other.poultryKey, poultryKey) || other.poultryKey == poultryKey)&&(identical(other.poultryHatchingKey, poultryHatchingKey) || other.poultryHatchingKey == poultryHatchingKey)&&(identical(other.poultry, poultry) || other.poultry == poultry)&&(identical(other.quantity, quantity) || other.quantity == quantity)&&(identical(other.losses, losses) || other.losses == losses)&&(identical(other.leftOver, leftOver) || other.leftOver == leftOver)&&(identical(other.outProvinceKilledQuantity, outProvinceKilledQuantity) || other.outProvinceKilledQuantity == outProvinceKilledQuantity)&&(identical(other.exportKilledQuantity, exportKilledQuantity) || other.exportKilledQuantity == exportKilledQuantity)&&(identical(other.hall, hall) || other.hall == hall)&&(identical(other.date, date) || other.date == date)&&(identical(other.period, period) || other.period == period)&&(identical(other.state, state) || other.state == state)&&(identical(other.age, age) || other.age == age)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,poultryKey,poultryHatchingKey,poultry,quantity,losses,leftOver,outProvinceKilledQuantity,exportKilledQuantity,hall,date,period,state,age); + +@override +String toString() { + return 'Hatching(poultryKey: $poultryKey, poultryHatchingKey: $poultryHatchingKey, poultry: $poultry, quantity: $quantity, losses: $losses, leftOver: $leftOver, outProvinceKilledQuantity: $outProvinceKilledQuantity, exportKilledQuantity: $exportKilledQuantity, hall: $hall, date: $date, period: $period, state: $state, age: $age)'; +} + + +} + +/// @nodoc +abstract mixin class $HatchingCopyWith<$Res> { + factory $HatchingCopyWith(Hatching value, $Res Function(Hatching) _then) = _$HatchingCopyWithImpl; +@useResult +$Res call({ + String? poultryKey, String? poultryHatchingKey, String? poultry, int? quantity, int? losses, int? leftOver, double? outProvinceKilledQuantity, double? exportKilledQuantity, int? hall, String? date, int? period, String? state, int? age +}); + + + + +} +/// @nodoc +class _$HatchingCopyWithImpl<$Res> + implements $HatchingCopyWith<$Res> { + _$HatchingCopyWithImpl(this._self, this._then); + + final Hatching _self; + final $Res Function(Hatching) _then; + +/// Create a copy of Hatching +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? poultryKey = freezed,Object? poultryHatchingKey = freezed,Object? poultry = freezed,Object? quantity = freezed,Object? losses = freezed,Object? leftOver = freezed,Object? outProvinceKilledQuantity = freezed,Object? exportKilledQuantity = freezed,Object? hall = freezed,Object? date = freezed,Object? period = freezed,Object? state = freezed,Object? age = freezed,}) { + return _then(_self.copyWith( +poultryKey: freezed == poultryKey ? _self.poultryKey : poultryKey // ignore: cast_nullable_to_non_nullable +as String?,poultryHatchingKey: freezed == poultryHatchingKey ? _self.poultryHatchingKey : poultryHatchingKey // ignore: cast_nullable_to_non_nullable +as String?,poultry: freezed == poultry ? _self.poultry : poultry // ignore: cast_nullable_to_non_nullable +as String?,quantity: freezed == quantity ? _self.quantity : quantity // ignore: cast_nullable_to_non_nullable +as int?,losses: freezed == losses ? _self.losses : losses // ignore: cast_nullable_to_non_nullable +as int?,leftOver: freezed == leftOver ? _self.leftOver : leftOver // ignore: cast_nullable_to_non_nullable +as int?,outProvinceKilledQuantity: freezed == outProvinceKilledQuantity ? _self.outProvinceKilledQuantity : outProvinceKilledQuantity // ignore: cast_nullable_to_non_nullable +as double?,exportKilledQuantity: freezed == exportKilledQuantity ? _self.exportKilledQuantity : exportKilledQuantity // ignore: cast_nullable_to_non_nullable +as double?,hall: freezed == hall ? _self.hall : hall // ignore: cast_nullable_to_non_nullable +as int?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?,period: freezed == period ? _self.period : period // ignore: cast_nullable_to_non_nullable +as int?,state: freezed == state ? _self.state : state // ignore: cast_nullable_to_non_nullable +as String?,age: freezed == age ? _self.age : age // ignore: cast_nullable_to_non_nullable +as int?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [Hatching]. +extension HatchingPatterns on Hatching { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _Hatching value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _Hatching() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _Hatching value) $default,){ +final _that = this; +switch (_that) { +case _Hatching(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _Hatching value)? $default,){ +final _that = this; +switch (_that) { +case _Hatching() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? poultryKey, String? poultryHatchingKey, String? poultry, int? quantity, int? losses, int? leftOver, double? outProvinceKilledQuantity, double? exportKilledQuantity, int? hall, String? date, int? period, String? state, int? age)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _Hatching() when $default != null: +return $default(_that.poultryKey,_that.poultryHatchingKey,_that.poultry,_that.quantity,_that.losses,_that.leftOver,_that.outProvinceKilledQuantity,_that.exportKilledQuantity,_that.hall,_that.date,_that.period,_that.state,_that.age);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? poultryKey, String? poultryHatchingKey, String? poultry, int? quantity, int? losses, int? leftOver, double? outProvinceKilledQuantity, double? exportKilledQuantity, int? hall, String? date, int? period, String? state, int? age) $default,) {final _that = this; +switch (_that) { +case _Hatching(): +return $default(_that.poultryKey,_that.poultryHatchingKey,_that.poultry,_that.quantity,_that.losses,_that.leftOver,_that.outProvinceKilledQuantity,_that.exportKilledQuantity,_that.hall,_that.date,_that.period,_that.state,_that.age);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? poultryKey, String? poultryHatchingKey, String? poultry, int? quantity, int? losses, int? leftOver, double? outProvinceKilledQuantity, double? exportKilledQuantity, int? hall, String? date, int? period, String? state, int? age)? $default,) {final _that = this; +switch (_that) { +case _Hatching() when $default != null: +return $default(_that.poultryKey,_that.poultryHatchingKey,_that.poultry,_that.quantity,_that.losses,_that.leftOver,_that.outProvinceKilledQuantity,_that.exportKilledQuantity,_that.hall,_that.date,_that.period,_that.state,_that.age);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _Hatching implements Hatching { + const _Hatching({this.poultryKey, this.poultryHatchingKey, this.poultry, this.quantity, this.losses, this.leftOver, this.outProvinceKilledQuantity, this.exportKilledQuantity, this.hall, this.date, this.period, this.state, this.age}); + factory _Hatching.fromJson(Map json) => _$HatchingFromJson(json); + +@override final String? poultryKey; +@override final String? poultryHatchingKey; +@override final String? poultry; +@override final int? quantity; +@override final int? losses; +@override final int? leftOver; +@override final double? outProvinceKilledQuantity; +@override final double? exportKilledQuantity; +@override final int? hall; +@override final String? date; +@override final int? period; +@override final String? state; +@override final int? age; + +/// Create a copy of Hatching +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$HatchingCopyWith<_Hatching> get copyWith => __$HatchingCopyWithImpl<_Hatching>(this, _$identity); + +@override +Map toJson() { + return _$HatchingToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Hatching&&(identical(other.poultryKey, poultryKey) || other.poultryKey == poultryKey)&&(identical(other.poultryHatchingKey, poultryHatchingKey) || other.poultryHatchingKey == poultryHatchingKey)&&(identical(other.poultry, poultry) || other.poultry == poultry)&&(identical(other.quantity, quantity) || other.quantity == quantity)&&(identical(other.losses, losses) || other.losses == losses)&&(identical(other.leftOver, leftOver) || other.leftOver == leftOver)&&(identical(other.outProvinceKilledQuantity, outProvinceKilledQuantity) || other.outProvinceKilledQuantity == outProvinceKilledQuantity)&&(identical(other.exportKilledQuantity, exportKilledQuantity) || other.exportKilledQuantity == exportKilledQuantity)&&(identical(other.hall, hall) || other.hall == hall)&&(identical(other.date, date) || other.date == date)&&(identical(other.period, period) || other.period == period)&&(identical(other.state, state) || other.state == state)&&(identical(other.age, age) || other.age == age)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,poultryKey,poultryHatchingKey,poultry,quantity,losses,leftOver,outProvinceKilledQuantity,exportKilledQuantity,hall,date,period,state,age); + +@override +String toString() { + return 'Hatching(poultryKey: $poultryKey, poultryHatchingKey: $poultryHatchingKey, poultry: $poultry, quantity: $quantity, losses: $losses, leftOver: $leftOver, outProvinceKilledQuantity: $outProvinceKilledQuantity, exportKilledQuantity: $exportKilledQuantity, hall: $hall, date: $date, period: $period, state: $state, age: $age)'; +} + + +} + +/// @nodoc +abstract mixin class _$HatchingCopyWith<$Res> implements $HatchingCopyWith<$Res> { + factory _$HatchingCopyWith(_Hatching value, $Res Function(_Hatching) _then) = __$HatchingCopyWithImpl; +@override @useResult +$Res call({ + String? poultryKey, String? poultryHatchingKey, String? poultry, int? quantity, int? losses, int? leftOver, double? outProvinceKilledQuantity, double? exportKilledQuantity, int? hall, String? date, int? period, String? state, int? age +}); + + + + +} +/// @nodoc +class __$HatchingCopyWithImpl<$Res> + implements _$HatchingCopyWith<$Res> { + __$HatchingCopyWithImpl(this._self, this._then); + + final _Hatching _self; + final $Res Function(_Hatching) _then; + +/// Create a copy of Hatching +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? poultryKey = freezed,Object? poultryHatchingKey = freezed,Object? poultry = freezed,Object? quantity = freezed,Object? losses = freezed,Object? leftOver = freezed,Object? outProvinceKilledQuantity = freezed,Object? exportKilledQuantity = freezed,Object? hall = freezed,Object? date = freezed,Object? period = freezed,Object? state = freezed,Object? age = freezed,}) { + return _then(_Hatching( +poultryKey: freezed == poultryKey ? _self.poultryKey : poultryKey // ignore: cast_nullable_to_non_nullable +as String?,poultryHatchingKey: freezed == poultryHatchingKey ? _self.poultryHatchingKey : poultryHatchingKey // ignore: cast_nullable_to_non_nullable +as String?,poultry: freezed == poultry ? _self.poultry : poultry // ignore: cast_nullable_to_non_nullable +as String?,quantity: freezed == quantity ? _self.quantity : quantity // ignore: cast_nullable_to_non_nullable +as int?,losses: freezed == losses ? _self.losses : losses // ignore: cast_nullable_to_non_nullable +as int?,leftOver: freezed == leftOver ? _self.leftOver : leftOver // ignore: cast_nullable_to_non_nullable +as int?,outProvinceKilledQuantity: freezed == outProvinceKilledQuantity ? _self.outProvinceKilledQuantity : outProvinceKilledQuantity // ignore: cast_nullable_to_non_nullable +as double?,exportKilledQuantity: freezed == exportKilledQuantity ? _self.exportKilledQuantity : exportKilledQuantity // ignore: cast_nullable_to_non_nullable +as double?,hall: freezed == hall ? _self.hall : hall // ignore: cast_nullable_to_non_nullable +as int?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?,period: freezed == period ? _self.period : period // ignore: cast_nullable_to_non_nullable +as int?,state: freezed == state ? _self.state : state // ignore: cast_nullable_to_non_nullable +as String?,age: freezed == age ? _self.age : age // ignore: cast_nullable_to_non_nullable +as int?, + )); +} + + +} + + +/// @nodoc +mixin _$Allow { + + bool? get city; bool? get province; +/// Create a copy of Allow +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$AllowCopyWith get copyWith => _$AllowCopyWithImpl(this as Allow, _$identity); + + /// Serializes this Allow to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is Allow&&(identical(other.city, city) || other.city == city)&&(identical(other.province, province) || other.province == province)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,city,province); + +@override +String toString() { + return 'Allow(city: $city, province: $province)'; +} + + +} + +/// @nodoc +abstract mixin class $AllowCopyWith<$Res> { + factory $AllowCopyWith(Allow value, $Res Function(Allow) _then) = _$AllowCopyWithImpl; +@useResult +$Res call({ + bool? city, bool? province +}); + + + + +} +/// @nodoc +class _$AllowCopyWithImpl<$Res> + implements $AllowCopyWith<$Res> { + _$AllowCopyWithImpl(this._self, this._then); + + final Allow _self; + final $Res Function(Allow) _then; + +/// Create a copy of Allow +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? city = freezed,Object? province = freezed,}) { + return _then(_self.copyWith( +city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as bool?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as bool?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [Allow]. +extension AllowPatterns on Allow { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _Allow value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _Allow() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _Allow value) $default,){ +final _that = this; +switch (_that) { +case _Allow(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _Allow value)? $default,){ +final _that = this; +switch (_that) { +case _Allow() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( bool? city, bool? province)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _Allow() when $default != null: +return $default(_that.city,_that.province);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( bool? city, bool? province) $default,) {final _that = this; +switch (_that) { +case _Allow(): +return $default(_that.city,_that.province);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( bool? city, bool? province)? $default,) {final _that = this; +switch (_that) { +case _Allow() when $default != null: +return $default(_that.city,_that.province);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _Allow implements Allow { + const _Allow({this.city, this.province}); + factory _Allow.fromJson(Map json) => _$AllowFromJson(json); + +@override final bool? city; +@override final bool? province; + +/// Create a copy of Allow +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$AllowCopyWith<_Allow> get copyWith => __$AllowCopyWithImpl<_Allow>(this, _$identity); + +@override +Map toJson() { + return _$AllowToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Allow&&(identical(other.city, city) || other.city == city)&&(identical(other.province, province) || other.province == province)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,city,province); + +@override +String toString() { + return 'Allow(city: $city, province: $province)'; +} + + +} + +/// @nodoc +abstract mixin class _$AllowCopyWith<$Res> implements $AllowCopyWith<$Res> { + factory _$AllowCopyWith(_Allow value, $Res Function(_Allow) _then) = __$AllowCopyWithImpl; +@override @useResult +$Res call({ + bool? city, bool? province +}); + + + + +} +/// @nodoc +class __$AllowCopyWithImpl<$Res> + implements _$AllowCopyWith<$Res> { + __$AllowCopyWithImpl(this._self, this._then); + + final _Allow _self; + final $Res Function(_Allow) _then; + +/// Create a copy of Allow +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? city = freezed,Object? province = freezed,}) { + return _then(_Allow( +city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as bool?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as bool?, + )); +} + + +} + + +/// @nodoc +mixin _$ProvinceAllowChooseKillHouse { + + bool? get allowState; bool? get mandatory; +/// Create a copy of ProvinceAllowChooseKillHouse +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ProvinceAllowChooseKillHouseCopyWith get copyWith => _$ProvinceAllowChooseKillHouseCopyWithImpl(this as ProvinceAllowChooseKillHouse, _$identity); + + /// Serializes this ProvinceAllowChooseKillHouse to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is ProvinceAllowChooseKillHouse&&(identical(other.allowState, allowState) || other.allowState == allowState)&&(identical(other.mandatory, mandatory) || other.mandatory == mandatory)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,allowState,mandatory); + +@override +String toString() { + return 'ProvinceAllowChooseKillHouse(allowState: $allowState, mandatory: $mandatory)'; +} + + +} + +/// @nodoc +abstract mixin class $ProvinceAllowChooseKillHouseCopyWith<$Res> { + factory $ProvinceAllowChooseKillHouseCopyWith(ProvinceAllowChooseKillHouse value, $Res Function(ProvinceAllowChooseKillHouse) _then) = _$ProvinceAllowChooseKillHouseCopyWithImpl; +@useResult +$Res call({ + bool? allowState, bool? mandatory +}); + + + + +} +/// @nodoc +class _$ProvinceAllowChooseKillHouseCopyWithImpl<$Res> + implements $ProvinceAllowChooseKillHouseCopyWith<$Res> { + _$ProvinceAllowChooseKillHouseCopyWithImpl(this._self, this._then); + + final ProvinceAllowChooseKillHouse _self; + final $Res Function(ProvinceAllowChooseKillHouse) _then; + +/// Create a copy of ProvinceAllowChooseKillHouse +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? allowState = freezed,Object? mandatory = freezed,}) { + return _then(_self.copyWith( +allowState: freezed == allowState ? _self.allowState : allowState // ignore: cast_nullable_to_non_nullable +as bool?,mandatory: freezed == mandatory ? _self.mandatory : mandatory // ignore: cast_nullable_to_non_nullable +as bool?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [ProvinceAllowChooseKillHouse]. +extension ProvinceAllowChooseKillHousePatterns on ProvinceAllowChooseKillHouse { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _ProvinceAllowChooseKillHouse value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _ProvinceAllowChooseKillHouse() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _ProvinceAllowChooseKillHouse value) $default,){ +final _that = this; +switch (_that) { +case _ProvinceAllowChooseKillHouse(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _ProvinceAllowChooseKillHouse value)? $default,){ +final _that = this; +switch (_that) { +case _ProvinceAllowChooseKillHouse() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( bool? allowState, bool? mandatory)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _ProvinceAllowChooseKillHouse() when $default != null: +return $default(_that.allowState,_that.mandatory);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( bool? allowState, bool? mandatory) $default,) {final _that = this; +switch (_that) { +case _ProvinceAllowChooseKillHouse(): +return $default(_that.allowState,_that.mandatory);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( bool? allowState, bool? mandatory)? $default,) {final _that = this; +switch (_that) { +case _ProvinceAllowChooseKillHouse() when $default != null: +return $default(_that.allowState,_that.mandatory);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _ProvinceAllowChooseKillHouse implements ProvinceAllowChooseKillHouse { + const _ProvinceAllowChooseKillHouse({this.allowState, this.mandatory}); + factory _ProvinceAllowChooseKillHouse.fromJson(Map json) => _$ProvinceAllowChooseKillHouseFromJson(json); + +@override final bool? allowState; +@override final bool? mandatory; + +/// Create a copy of ProvinceAllowChooseKillHouse +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ProvinceAllowChooseKillHouseCopyWith<_ProvinceAllowChooseKillHouse> get copyWith => __$ProvinceAllowChooseKillHouseCopyWithImpl<_ProvinceAllowChooseKillHouse>(this, _$identity); + +@override +Map toJson() { + return _$ProvinceAllowChooseKillHouseToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _ProvinceAllowChooseKillHouse&&(identical(other.allowState, allowState) || other.allowState == allowState)&&(identical(other.mandatory, mandatory) || other.mandatory == mandatory)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,allowState,mandatory); + +@override +String toString() { + return 'ProvinceAllowChooseKillHouse(allowState: $allowState, mandatory: $mandatory)'; +} + + +} + +/// @nodoc +abstract mixin class _$ProvinceAllowChooseKillHouseCopyWith<$Res> implements $ProvinceAllowChooseKillHouseCopyWith<$Res> { + factory _$ProvinceAllowChooseKillHouseCopyWith(_ProvinceAllowChooseKillHouse value, $Res Function(_ProvinceAllowChooseKillHouse) _then) = __$ProvinceAllowChooseKillHouseCopyWithImpl; +@override @useResult +$Res call({ + bool? allowState, bool? mandatory +}); + + + + +} +/// @nodoc +class __$ProvinceAllowChooseKillHouseCopyWithImpl<$Res> + implements _$ProvinceAllowChooseKillHouseCopyWith<$Res> { + __$ProvinceAllowChooseKillHouseCopyWithImpl(this._self, this._then); + + final _ProvinceAllowChooseKillHouse _self; + final $Res Function(_ProvinceAllowChooseKillHouse) _then; + +/// Create a copy of ProvinceAllowChooseKillHouse +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? allowState = freezed,Object? mandatory = freezed,}) { + return _then(_ProvinceAllowChooseKillHouse( +allowState: freezed == allowState ? _self.allowState : allowState // ignore: cast_nullable_to_non_nullable +as bool?,mandatory: freezed == mandatory ? _self.mandatory : mandatory // ignore: cast_nullable_to_non_nullable +as bool?, + )); +} + + +} + + +/// @nodoc +mixin _$VetFarm { + + String? get fullName; String? get mobile; String? get city; String? get province; 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.fullName, fullName) || other.fullName == fullName)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.city, city) || other.city == city)&&(identical(other.province, province) || other.province == province)&&(identical(other.vetFarmFullName, vetFarmFullName) || other.vetFarmFullName == vetFarmFullName)&&(identical(other.vetFarmMobile, vetFarmMobile) || other.vetFarmMobile == vetFarmMobile)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,fullName,mobile,city,province,vetFarmFullName,vetFarmMobile); + +@override +String toString() { + return 'VetFarm(fullName: $fullName, mobile: $mobile, city: $city, province: $province, vetFarmFullName: $vetFarmFullName, vetFarmMobile: $vetFarmMobile)'; +} + + +} + +/// @nodoc +abstract mixin class $VetFarmCopyWith<$Res> { + factory $VetFarmCopyWith(VetFarm value, $Res Function(VetFarm) _then) = _$VetFarmCopyWithImpl; +@useResult +$Res call({ + String? fullName, String? mobile, String? city, String? province, 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? fullName = freezed,Object? mobile = freezed,Object? city = freezed,Object? province = freezed,Object? vetFarmFullName = freezed,Object? vetFarmMobile = freezed,}) { + return _then(_self.copyWith( +fullName: freezed == fullName ? _self.fullName : fullName // ignore: cast_nullable_to_non_nullable +as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as String?,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? fullName, String? mobile, String? city, String? province, String? vetFarmFullName, String? vetFarmMobile)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _VetFarm() when $default != null: +return $default(_that.fullName,_that.mobile,_that.city,_that.province,_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? fullName, String? mobile, String? city, String? province, String? vetFarmFullName, String? vetFarmMobile) $default,) {final _that = this; +switch (_that) { +case _VetFarm(): +return $default(_that.fullName,_that.mobile,_that.city,_that.province,_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? fullName, String? mobile, String? city, String? province, String? vetFarmFullName, String? vetFarmMobile)? $default,) {final _that = this; +switch (_that) { +case _VetFarm() when $default != null: +return $default(_that.fullName,_that.mobile,_that.city,_that.province,_that.vetFarmFullName,_that.vetFarmMobile);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _VetFarm implements VetFarm { + const _VetFarm({this.fullName, this.mobile, this.city, this.province, this.vetFarmFullName, this.vetFarmMobile}); + factory _VetFarm.fromJson(Map json) => _$VetFarmFromJson(json); + +@override final String? fullName; +@override final String? mobile; +@override final String? city; +@override final String? province; +@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.fullName, fullName) || other.fullName == fullName)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.city, city) || other.city == city)&&(identical(other.province, province) || other.province == province)&&(identical(other.vetFarmFullName, vetFarmFullName) || other.vetFarmFullName == vetFarmFullName)&&(identical(other.vetFarmMobile, vetFarmMobile) || other.vetFarmMobile == vetFarmMobile)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,fullName,mobile,city,province,vetFarmFullName,vetFarmMobile); + +@override +String toString() { + return 'VetFarm(fullName: $fullName, mobile: $mobile, city: $city, province: $province, 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? fullName, String? mobile, String? city, String? province, 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? fullName = freezed,Object? mobile = freezed,Object? city = freezed,Object? province = freezed,Object? vetFarmFullName = freezed,Object? vetFarmMobile = freezed,}) { + return _then(_VetFarm( +fullName: freezed == fullName ? _self.fullName : fullName // ignore: cast_nullable_to_non_nullable +as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as String?,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 _$LastHatchingDiffrentRequestQuantity { + + dynamic get leftExportQuantity; double? get leftPoultryOutProvince; int? get lastHatchingRemainQuantity; +/// Create a copy of LastHatchingDiffrentRequestQuantity +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$LastHatchingDiffrentRequestQuantityCopyWith get copyWith => _$LastHatchingDiffrentRequestQuantityCopyWithImpl(this as LastHatchingDiffrentRequestQuantity, _$identity); + + /// Serializes this LastHatchingDiffrentRequestQuantity to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is LastHatchingDiffrentRequestQuantity&&const DeepCollectionEquality().equals(other.leftExportQuantity, leftExportQuantity)&&(identical(other.leftPoultryOutProvince, leftPoultryOutProvince) || other.leftPoultryOutProvince == leftPoultryOutProvince)&&(identical(other.lastHatchingRemainQuantity, lastHatchingRemainQuantity) || other.lastHatchingRemainQuantity == lastHatchingRemainQuantity)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,const DeepCollectionEquality().hash(leftExportQuantity),leftPoultryOutProvince,lastHatchingRemainQuantity); + +@override +String toString() { + return 'LastHatchingDiffrentRequestQuantity(leftExportQuantity: $leftExportQuantity, leftPoultryOutProvince: $leftPoultryOutProvince, lastHatchingRemainQuantity: $lastHatchingRemainQuantity)'; +} + + +} + +/// @nodoc +abstract mixin class $LastHatchingDiffrentRequestQuantityCopyWith<$Res> { + factory $LastHatchingDiffrentRequestQuantityCopyWith(LastHatchingDiffrentRequestQuantity value, $Res Function(LastHatchingDiffrentRequestQuantity) _then) = _$LastHatchingDiffrentRequestQuantityCopyWithImpl; +@useResult +$Res call({ + dynamic leftExportQuantity, double? leftPoultryOutProvince, int? lastHatchingRemainQuantity +}); + + + + +} +/// @nodoc +class _$LastHatchingDiffrentRequestQuantityCopyWithImpl<$Res> + implements $LastHatchingDiffrentRequestQuantityCopyWith<$Res> { + _$LastHatchingDiffrentRequestQuantityCopyWithImpl(this._self, this._then); + + final LastHatchingDiffrentRequestQuantity _self; + final $Res Function(LastHatchingDiffrentRequestQuantity) _then; + +/// Create a copy of LastHatchingDiffrentRequestQuantity +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? leftExportQuantity = freezed,Object? leftPoultryOutProvince = freezed,Object? lastHatchingRemainQuantity = freezed,}) { + return _then(_self.copyWith( +leftExportQuantity: freezed == leftExportQuantity ? _self.leftExportQuantity : leftExportQuantity // ignore: cast_nullable_to_non_nullable +as dynamic,leftPoultryOutProvince: freezed == leftPoultryOutProvince ? _self.leftPoultryOutProvince : leftPoultryOutProvince // ignore: cast_nullable_to_non_nullable +as double?,lastHatchingRemainQuantity: freezed == lastHatchingRemainQuantity ? _self.lastHatchingRemainQuantity : lastHatchingRemainQuantity // ignore: cast_nullable_to_non_nullable +as int?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [LastHatchingDiffrentRequestQuantity]. +extension LastHatchingDiffrentRequestQuantityPatterns on LastHatchingDiffrentRequestQuantity { +/// 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( _LastHatchingDiffrentRequestQuantity value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _LastHatchingDiffrentRequestQuantity() 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( _LastHatchingDiffrentRequestQuantity value) $default,){ +final _that = this; +switch (_that) { +case _LastHatchingDiffrentRequestQuantity(): +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( _LastHatchingDiffrentRequestQuantity value)? $default,){ +final _that = this; +switch (_that) { +case _LastHatchingDiffrentRequestQuantity() 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( dynamic leftExportQuantity, double? leftPoultryOutProvince, int? lastHatchingRemainQuantity)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _LastHatchingDiffrentRequestQuantity() when $default != null: +return $default(_that.leftExportQuantity,_that.leftPoultryOutProvince,_that.lastHatchingRemainQuantity);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( dynamic leftExportQuantity, double? leftPoultryOutProvince, int? lastHatchingRemainQuantity) $default,) {final _that = this; +switch (_that) { +case _LastHatchingDiffrentRequestQuantity(): +return $default(_that.leftExportQuantity,_that.leftPoultryOutProvince,_that.lastHatchingRemainQuantity);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( dynamic leftExportQuantity, double? leftPoultryOutProvince, int? lastHatchingRemainQuantity)? $default,) {final _that = this; +switch (_that) { +case _LastHatchingDiffrentRequestQuantity() when $default != null: +return $default(_that.leftExportQuantity,_that.leftPoultryOutProvince,_that.lastHatchingRemainQuantity);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _LastHatchingDiffrentRequestQuantity implements LastHatchingDiffrentRequestQuantity { + const _LastHatchingDiffrentRequestQuantity({this.leftExportQuantity, this.leftPoultryOutProvince, this.lastHatchingRemainQuantity}); + factory _LastHatchingDiffrentRequestQuantity.fromJson(Map json) => _$LastHatchingDiffrentRequestQuantityFromJson(json); + +@override final dynamic leftExportQuantity; +@override final double? leftPoultryOutProvince; +@override final int? lastHatchingRemainQuantity; + +/// Create a copy of LastHatchingDiffrentRequestQuantity +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$LastHatchingDiffrentRequestQuantityCopyWith<_LastHatchingDiffrentRequestQuantity> get copyWith => __$LastHatchingDiffrentRequestQuantityCopyWithImpl<_LastHatchingDiffrentRequestQuantity>(this, _$identity); + +@override +Map toJson() { + return _$LastHatchingDiffrentRequestQuantityToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _LastHatchingDiffrentRequestQuantity&&const DeepCollectionEquality().equals(other.leftExportQuantity, leftExportQuantity)&&(identical(other.leftPoultryOutProvince, leftPoultryOutProvince) || other.leftPoultryOutProvince == leftPoultryOutProvince)&&(identical(other.lastHatchingRemainQuantity, lastHatchingRemainQuantity) || other.lastHatchingRemainQuantity == lastHatchingRemainQuantity)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,const DeepCollectionEquality().hash(leftExportQuantity),leftPoultryOutProvince,lastHatchingRemainQuantity); + +@override +String toString() { + return 'LastHatchingDiffrentRequestQuantity(leftExportQuantity: $leftExportQuantity, leftPoultryOutProvince: $leftPoultryOutProvince, lastHatchingRemainQuantity: $lastHatchingRemainQuantity)'; +} + + +} + +/// @nodoc +abstract mixin class _$LastHatchingDiffrentRequestQuantityCopyWith<$Res> implements $LastHatchingDiffrentRequestQuantityCopyWith<$Res> { + factory _$LastHatchingDiffrentRequestQuantityCopyWith(_LastHatchingDiffrentRequestQuantity value, $Res Function(_LastHatchingDiffrentRequestQuantity) _then) = __$LastHatchingDiffrentRequestQuantityCopyWithImpl; +@override @useResult +$Res call({ + dynamic leftExportQuantity, double? leftPoultryOutProvince, int? lastHatchingRemainQuantity +}); + + + + +} +/// @nodoc +class __$LastHatchingDiffrentRequestQuantityCopyWithImpl<$Res> + implements _$LastHatchingDiffrentRequestQuantityCopyWith<$Res> { + __$LastHatchingDiffrentRequestQuantityCopyWithImpl(this._self, this._then); + + final _LastHatchingDiffrentRequestQuantity _self; + final $Res Function(_LastHatchingDiffrentRequestQuantity) _then; + +/// Create a copy of LastHatchingDiffrentRequestQuantity +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? leftExportQuantity = freezed,Object? leftPoultryOutProvince = freezed,Object? lastHatchingRemainQuantity = freezed,}) { + return _then(_LastHatchingDiffrentRequestQuantity( +leftExportQuantity: freezed == leftExportQuantity ? _self.leftExportQuantity : leftExportQuantity // ignore: cast_nullable_to_non_nullable +as dynamic,leftPoultryOutProvince: freezed == leftPoultryOutProvince ? _self.leftPoultryOutProvince : leftPoultryOutProvince // ignore: cast_nullable_to_non_nullable +as double?,lastHatchingRemainQuantity: freezed == lastHatchingRemainQuantity ? _self.lastHatchingRemainQuantity : lastHatchingRemainQuantity // ignore: cast_nullable_to_non_nullable +as int?, + )); +} + + +} + + +/// @nodoc +mixin _$UserBankInfo { + + String? get key; String? get nameOfBankUser; String? get bankName; String? get card; String? get shaba; String? get account; int? get userBankIdKey; String? get provinceName; +/// Create a copy of UserBankInfo +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$UserBankInfoCopyWith get copyWith => _$UserBankInfoCopyWithImpl(this as UserBankInfo, _$identity); + + /// Serializes this UserBankInfo to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is UserBankInfo&&(identical(other.key, key) || other.key == key)&&(identical(other.nameOfBankUser, nameOfBankUser) || other.nameOfBankUser == nameOfBankUser)&&(identical(other.bankName, bankName) || other.bankName == bankName)&&(identical(other.card, card) || other.card == card)&&(identical(other.shaba, shaba) || other.shaba == shaba)&&(identical(other.account, account) || other.account == account)&&(identical(other.userBankIdKey, userBankIdKey) || other.userBankIdKey == userBankIdKey)&&(identical(other.provinceName, provinceName) || other.provinceName == provinceName)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,nameOfBankUser,bankName,card,shaba,account,userBankIdKey,provinceName); + +@override +String toString() { + return 'UserBankInfo(key: $key, nameOfBankUser: $nameOfBankUser, bankName: $bankName, card: $card, shaba: $shaba, account: $account, userBankIdKey: $userBankIdKey, provinceName: $provinceName)'; +} + + +} + +/// @nodoc +abstract mixin class $UserBankInfoCopyWith<$Res> { + factory $UserBankInfoCopyWith(UserBankInfo value, $Res Function(UserBankInfo) _then) = _$UserBankInfoCopyWithImpl; +@useResult +$Res call({ + String? key, String? nameOfBankUser, String? bankName, String? card, String? shaba, String? account, int? userBankIdKey, String? provinceName +}); + + + + +} +/// @nodoc +class _$UserBankInfoCopyWithImpl<$Res> + implements $UserBankInfoCopyWith<$Res> { + _$UserBankInfoCopyWithImpl(this._self, this._then); + + final UserBankInfo _self; + final $Res Function(UserBankInfo) _then; + +/// Create a copy of UserBankInfo +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? key = freezed,Object? nameOfBankUser = freezed,Object? bankName = freezed,Object? card = freezed,Object? shaba = freezed,Object? account = freezed,Object? userBankIdKey = freezed,Object? provinceName = freezed,}) { + return _then(_self.copyWith( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,nameOfBankUser: freezed == nameOfBankUser ? _self.nameOfBankUser : nameOfBankUser // ignore: cast_nullable_to_non_nullable +as String?,bankName: freezed == bankName ? _self.bankName : bankName // ignore: cast_nullable_to_non_nullable +as String?,card: freezed == card ? _self.card : card // ignore: cast_nullable_to_non_nullable +as String?,shaba: freezed == shaba ? _self.shaba : shaba // ignore: cast_nullable_to_non_nullable +as String?,account: freezed == account ? _self.account : account // ignore: cast_nullable_to_non_nullable +as String?,userBankIdKey: freezed == userBankIdKey ? _self.userBankIdKey : userBankIdKey // ignore: cast_nullable_to_non_nullable +as int?,provinceName: freezed == provinceName ? _self.provinceName : provinceName // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [UserBankInfo]. +extension UserBankInfoPatterns on UserBankInfo { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _UserBankInfo value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _UserBankInfo() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _UserBankInfo value) $default,){ +final _that = this; +switch (_that) { +case _UserBankInfo(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _UserBankInfo value)? $default,){ +final _that = this; +switch (_that) { +case _UserBankInfo() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? key, String? nameOfBankUser, String? bankName, String? card, String? shaba, String? account, int? userBankIdKey, String? provinceName)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _UserBankInfo() when $default != null: +return $default(_that.key,_that.nameOfBankUser,_that.bankName,_that.card,_that.shaba,_that.account,_that.userBankIdKey,_that.provinceName);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? key, String? nameOfBankUser, String? bankName, String? card, String? shaba, String? account, int? userBankIdKey, String? provinceName) $default,) {final _that = this; +switch (_that) { +case _UserBankInfo(): +return $default(_that.key,_that.nameOfBankUser,_that.bankName,_that.card,_that.shaba,_that.account,_that.userBankIdKey,_that.provinceName);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? key, String? nameOfBankUser, String? bankName, String? card, String? shaba, String? account, int? userBankIdKey, String? provinceName)? $default,) {final _that = this; +switch (_that) { +case _UserBankInfo() when $default != null: +return $default(_that.key,_that.nameOfBankUser,_that.bankName,_that.card,_that.shaba,_that.account,_that.userBankIdKey,_that.provinceName);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _UserBankInfo implements UserBankInfo { + const _UserBankInfo({this.key, this.nameOfBankUser, this.bankName, this.card, this.shaba, this.account, this.userBankIdKey, this.provinceName}); + factory _UserBankInfo.fromJson(Map json) => _$UserBankInfoFromJson(json); + +@override final String? key; +@override final String? nameOfBankUser; +@override final String? bankName; +@override final String? card; +@override final String? shaba; +@override final String? account; +@override final int? userBankIdKey; +@override final String? provinceName; + +/// Create a copy of UserBankInfo +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$UserBankInfoCopyWith<_UserBankInfo> get copyWith => __$UserBankInfoCopyWithImpl<_UserBankInfo>(this, _$identity); + +@override +Map toJson() { + return _$UserBankInfoToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _UserBankInfo&&(identical(other.key, key) || other.key == key)&&(identical(other.nameOfBankUser, nameOfBankUser) || other.nameOfBankUser == nameOfBankUser)&&(identical(other.bankName, bankName) || other.bankName == bankName)&&(identical(other.card, card) || other.card == card)&&(identical(other.shaba, shaba) || other.shaba == shaba)&&(identical(other.account, account) || other.account == account)&&(identical(other.userBankIdKey, userBankIdKey) || other.userBankIdKey == userBankIdKey)&&(identical(other.provinceName, provinceName) || other.provinceName == provinceName)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,nameOfBankUser,bankName,card,shaba,account,userBankIdKey,provinceName); + +@override +String toString() { + return 'UserBankInfo(key: $key, nameOfBankUser: $nameOfBankUser, bankName: $bankName, card: $card, shaba: $shaba, account: $account, userBankIdKey: $userBankIdKey, provinceName: $provinceName)'; +} + + +} + +/// @nodoc +abstract mixin class _$UserBankInfoCopyWith<$Res> implements $UserBankInfoCopyWith<$Res> { + factory _$UserBankInfoCopyWith(_UserBankInfo value, $Res Function(_UserBankInfo) _then) = __$UserBankInfoCopyWithImpl; +@override @useResult +$Res call({ + String? key, String? nameOfBankUser, String? bankName, String? card, String? shaba, String? account, int? userBankIdKey, String? provinceName +}); + + + + +} +/// @nodoc +class __$UserBankInfoCopyWithImpl<$Res> + implements _$UserBankInfoCopyWith<$Res> { + __$UserBankInfoCopyWithImpl(this._self, this._then); + + final _UserBankInfo _self; + final $Res Function(_UserBankInfo) _then; + +/// Create a copy of UserBankInfo +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? key = freezed,Object? nameOfBankUser = freezed,Object? bankName = freezed,Object? card = freezed,Object? shaba = freezed,Object? account = freezed,Object? userBankIdKey = freezed,Object? provinceName = freezed,}) { + return _then(_UserBankInfo( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,nameOfBankUser: freezed == nameOfBankUser ? _self.nameOfBankUser : nameOfBankUser // ignore: cast_nullable_to_non_nullable +as String?,bankName: freezed == bankName ? _self.bankName : bankName // ignore: cast_nullable_to_non_nullable +as String?,card: freezed == card ? _self.card : card // ignore: cast_nullable_to_non_nullable +as String?,shaba: freezed == shaba ? _self.shaba : shaba // ignore: cast_nullable_to_non_nullable +as String?,account: freezed == account ? _self.account : account // ignore: cast_nullable_to_non_nullable +as String?,userBankIdKey: freezed == userBankIdKey ? _self.userBankIdKey : userBankIdKey // ignore: cast_nullable_to_non_nullable +as int?,provinceName: freezed == provinceName ? _self.provinceName : provinceName // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$ChainCompany { + + ChainUser? get user; dynamic get userBankInfo; String? get key; bool? get trash; String? get name; dynamic get city; dynamic get province; dynamic get postalCode; dynamic get address; int? get wallet; +/// Create a copy of ChainCompany +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ChainCompanyCopyWith get copyWith => _$ChainCompanyCopyWithImpl(this as ChainCompany, _$identity); + + /// Serializes this ChainCompany to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is ChainCompany&&(identical(other.user, user) || other.user == user)&&const DeepCollectionEquality().equals(other.userBankInfo, userBankInfo)&&(identical(other.key, key) || other.key == key)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.name, name) || other.name == name)&&const DeepCollectionEquality().equals(other.city, city)&&const DeepCollectionEquality().equals(other.province, province)&&const DeepCollectionEquality().equals(other.postalCode, postalCode)&&const DeepCollectionEquality().equals(other.address, address)&&(identical(other.wallet, wallet) || other.wallet == wallet)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,user,const DeepCollectionEquality().hash(userBankInfo),key,trash,name,const DeepCollectionEquality().hash(city),const DeepCollectionEquality().hash(province),const DeepCollectionEquality().hash(postalCode),const DeepCollectionEquality().hash(address),wallet); + +@override +String toString() { + return 'ChainCompany(user: $user, userBankInfo: $userBankInfo, key: $key, trash: $trash, name: $name, city: $city, province: $province, postalCode: $postalCode, address: $address, wallet: $wallet)'; +} + + +} + +/// @nodoc +abstract mixin class $ChainCompanyCopyWith<$Res> { + factory $ChainCompanyCopyWith(ChainCompany value, $Res Function(ChainCompany) _then) = _$ChainCompanyCopyWithImpl; +@useResult +$Res call({ + ChainUser? user, dynamic userBankInfo, String? key, bool? trash, String? name, dynamic city, dynamic province, dynamic postalCode, dynamic address, int? wallet +}); + + +$ChainUserCopyWith<$Res>? get user; + +} +/// @nodoc +class _$ChainCompanyCopyWithImpl<$Res> + implements $ChainCompanyCopyWith<$Res> { + _$ChainCompanyCopyWithImpl(this._self, this._then); + + final ChainCompany _self; + final $Res Function(ChainCompany) _then; + +/// Create a copy of ChainCompany +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? user = freezed,Object? userBankInfo = freezed,Object? key = freezed,Object? trash = freezed,Object? name = freezed,Object? city = freezed,Object? province = freezed,Object? postalCode = freezed,Object? address = freezed,Object? wallet = freezed,}) { + return _then(_self.copyWith( +user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable +as ChainUser?,userBankInfo: freezed == userBankInfo ? _self.userBankInfo : userBankInfo // ignore: cast_nullable_to_non_nullable +as dynamic,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable +as bool?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as dynamic,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as dynamic,postalCode: freezed == postalCode ? _self.postalCode : postalCode // ignore: cast_nullable_to_non_nullable +as dynamic,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable +as dynamic,wallet: freezed == wallet ? _self.wallet : wallet // ignore: cast_nullable_to_non_nullable +as int?, + )); +} +/// Create a copy of ChainCompany +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ChainUserCopyWith<$Res>? get user { + if (_self.user == null) { + return null; + } + + return $ChainUserCopyWith<$Res>(_self.user!, (value) { + return _then(_self.copyWith(user: value)); + }); +} +} + + +/// Adds pattern-matching-related methods to [ChainCompany]. +extension ChainCompanyPatterns on ChainCompany { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _ChainCompany value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _ChainCompany() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _ChainCompany value) $default,){ +final _that = this; +switch (_that) { +case _ChainCompany(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _ChainCompany value)? $default,){ +final _that = this; +switch (_that) { +case _ChainCompany() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( ChainUser? user, dynamic userBankInfo, String? key, bool? trash, String? name, dynamic city, dynamic province, dynamic postalCode, dynamic address, int? wallet)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _ChainCompany() when $default != null: +return $default(_that.user,_that.userBankInfo,_that.key,_that.trash,_that.name,_that.city,_that.province,_that.postalCode,_that.address,_that.wallet);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( ChainUser? user, dynamic userBankInfo, String? key, bool? trash, String? name, dynamic city, dynamic province, dynamic postalCode, dynamic address, int? wallet) $default,) {final _that = this; +switch (_that) { +case _ChainCompany(): +return $default(_that.user,_that.userBankInfo,_that.key,_that.trash,_that.name,_that.city,_that.province,_that.postalCode,_that.address,_that.wallet);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( ChainUser? user, dynamic userBankInfo, String? key, bool? trash, String? name, dynamic city, dynamic province, dynamic postalCode, dynamic address, int? wallet)? $default,) {final _that = this; +switch (_that) { +case _ChainCompany() when $default != null: +return $default(_that.user,_that.userBankInfo,_that.key,_that.trash,_that.name,_that.city,_that.province,_that.postalCode,_that.address,_that.wallet);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _ChainCompany implements ChainCompany { + const _ChainCompany({this.user, this.userBankInfo, this.key, this.trash, this.name, this.city, this.province, this.postalCode, this.address, this.wallet}); + factory _ChainCompany.fromJson(Map json) => _$ChainCompanyFromJson(json); + +@override final ChainUser? user; +@override final dynamic userBankInfo; +@override final String? key; +@override final bool? trash; +@override final String? name; +@override final dynamic city; +@override final dynamic province; +@override final dynamic postalCode; +@override final dynamic address; +@override final int? wallet; + +/// Create a copy of ChainCompany +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ChainCompanyCopyWith<_ChainCompany> get copyWith => __$ChainCompanyCopyWithImpl<_ChainCompany>(this, _$identity); + +@override +Map toJson() { + return _$ChainCompanyToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _ChainCompany&&(identical(other.user, user) || other.user == user)&&const DeepCollectionEquality().equals(other.userBankInfo, userBankInfo)&&(identical(other.key, key) || other.key == key)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.name, name) || other.name == name)&&const DeepCollectionEquality().equals(other.city, city)&&const DeepCollectionEquality().equals(other.province, province)&&const DeepCollectionEquality().equals(other.postalCode, postalCode)&&const DeepCollectionEquality().equals(other.address, address)&&(identical(other.wallet, wallet) || other.wallet == wallet)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,user,const DeepCollectionEquality().hash(userBankInfo),key,trash,name,const DeepCollectionEquality().hash(city),const DeepCollectionEquality().hash(province),const DeepCollectionEquality().hash(postalCode),const DeepCollectionEquality().hash(address),wallet); + +@override +String toString() { + return 'ChainCompany(user: $user, userBankInfo: $userBankInfo, key: $key, trash: $trash, name: $name, city: $city, province: $province, postalCode: $postalCode, address: $address, wallet: $wallet)'; +} + + +} + +/// @nodoc +abstract mixin class _$ChainCompanyCopyWith<$Res> implements $ChainCompanyCopyWith<$Res> { + factory _$ChainCompanyCopyWith(_ChainCompany value, $Res Function(_ChainCompany) _then) = __$ChainCompanyCopyWithImpl; +@override @useResult +$Res call({ + ChainUser? user, dynamic userBankInfo, String? key, bool? trash, String? name, dynamic city, dynamic province, dynamic postalCode, dynamic address, int? wallet +}); + + +@override $ChainUserCopyWith<$Res>? get user; + +} +/// @nodoc +class __$ChainCompanyCopyWithImpl<$Res> + implements _$ChainCompanyCopyWith<$Res> { + __$ChainCompanyCopyWithImpl(this._self, this._then); + + final _ChainCompany _self; + final $Res Function(_ChainCompany) _then; + +/// Create a copy of ChainCompany +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? user = freezed,Object? userBankInfo = freezed,Object? key = freezed,Object? trash = freezed,Object? name = freezed,Object? city = freezed,Object? province = freezed,Object? postalCode = freezed,Object? address = freezed,Object? wallet = freezed,}) { + return _then(_ChainCompany( +user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable +as ChainUser?,userBankInfo: freezed == userBankInfo ? _self.userBankInfo : userBankInfo // ignore: cast_nullable_to_non_nullable +as dynamic,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable +as bool?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as dynamic,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as dynamic,postalCode: freezed == postalCode ? _self.postalCode : postalCode // ignore: cast_nullable_to_non_nullable +as dynamic,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable +as dynamic,wallet: freezed == wallet ? _self.wallet : wallet // ignore: cast_nullable_to_non_nullable +as int?, + )); +} + +/// Create a copy of ChainCompany +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ChainUserCopyWith<$Res>? get user { + if (_self.user == null) { + return null; + } + + return $ChainUserCopyWith<$Res>(_self.user!, (value) { + return _then(_self.copyWith(user: value)); + }); +} +} + + +/// @nodoc +mixin _$ChainUser { + + List? get role; String? get city; String? get province; String? get key; String? get userGateWayId; dynamic get userDjangoIdForeignKey; dynamic get provinceIdForeignKey; dynamic get cityIdForeignKey; dynamic get systemUserProfileIdKey; String? get fullname; String? get firstName; String? get lastName; dynamic get nationalCode; dynamic get nationalCodeImage; String? get nationalId; String? get mobile; dynamic get birthday; dynamic get image; String? get password; bool? get active; ChainUserState? get state; int? get baseOrder; int? get cityNumber; String? get cityName; int? get provinceNumber; String? get provinceName; String? get unitName; String? get unitNationalId; String? get unitRegistrationNumber; String? get unitEconomicalNumber; String? get unitProvince; String? get unitCity; String? get unitPostalCode; String? get unitAddress; +/// Create a copy of ChainUser +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ChainUserCopyWith get copyWith => _$ChainUserCopyWithImpl(this as ChainUser, _$identity); + + /// Serializes this ChainUser to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is ChainUser&&const DeepCollectionEquality().equals(other.role, role)&&(identical(other.city, city) || other.city == city)&&(identical(other.province, province) || other.province == province)&&(identical(other.key, key) || other.key == key)&&(identical(other.userGateWayId, userGateWayId) || other.userGateWayId == userGateWayId)&&const DeepCollectionEquality().equals(other.userDjangoIdForeignKey, userDjangoIdForeignKey)&&const DeepCollectionEquality().equals(other.provinceIdForeignKey, provinceIdForeignKey)&&const DeepCollectionEquality().equals(other.cityIdForeignKey, cityIdForeignKey)&&const DeepCollectionEquality().equals(other.systemUserProfileIdKey, systemUserProfileIdKey)&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&const DeepCollectionEquality().equals(other.nationalCode, nationalCode)&&const DeepCollectionEquality().equals(other.nationalCodeImage, nationalCodeImage)&&(identical(other.nationalId, nationalId) || other.nationalId == nationalId)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&const DeepCollectionEquality().equals(other.birthday, birthday)&&const DeepCollectionEquality().equals(other.image, image)&&(identical(other.password, password) || other.password == password)&&(identical(other.active, active) || other.active == active)&&(identical(other.state, state) || other.state == state)&&(identical(other.baseOrder, baseOrder) || other.baseOrder == baseOrder)&&(identical(other.cityNumber, cityNumber) || other.cityNumber == cityNumber)&&(identical(other.cityName, cityName) || other.cityName == cityName)&&(identical(other.provinceNumber, provinceNumber) || other.provinceNumber == provinceNumber)&&(identical(other.provinceName, provinceName) || other.provinceName == provinceName)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.unitNationalId, unitNationalId) || other.unitNationalId == unitNationalId)&&(identical(other.unitRegistrationNumber, unitRegistrationNumber) || other.unitRegistrationNumber == unitRegistrationNumber)&&(identical(other.unitEconomicalNumber, unitEconomicalNumber) || other.unitEconomicalNumber == unitEconomicalNumber)&&(identical(other.unitProvince, unitProvince) || other.unitProvince == unitProvince)&&(identical(other.unitCity, unitCity) || other.unitCity == unitCity)&&(identical(other.unitPostalCode, unitPostalCode) || other.unitPostalCode == unitPostalCode)&&(identical(other.unitAddress, unitAddress) || other.unitAddress == unitAddress)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,const DeepCollectionEquality().hash(role),city,province,key,userGateWayId,const DeepCollectionEquality().hash(userDjangoIdForeignKey),const DeepCollectionEquality().hash(provinceIdForeignKey),const DeepCollectionEquality().hash(cityIdForeignKey),const DeepCollectionEquality().hash(systemUserProfileIdKey),fullname,firstName,lastName,const DeepCollectionEquality().hash(nationalCode),const DeepCollectionEquality().hash(nationalCodeImage),nationalId,mobile,const DeepCollectionEquality().hash(birthday),const DeepCollectionEquality().hash(image),password,active,state,baseOrder,cityNumber,cityName,provinceNumber,provinceName,unitName,unitNationalId,unitRegistrationNumber,unitEconomicalNumber,unitProvince,unitCity,unitPostalCode,unitAddress]); + +@override +String toString() { + return 'ChainUser(role: $role, city: $city, province: $province, key: $key, userGateWayId: $userGateWayId, userDjangoIdForeignKey: $userDjangoIdForeignKey, provinceIdForeignKey: $provinceIdForeignKey, cityIdForeignKey: $cityIdForeignKey, systemUserProfileIdKey: $systemUserProfileIdKey, fullname: $fullname, firstName: $firstName, lastName: $lastName, nationalCode: $nationalCode, nationalCodeImage: $nationalCodeImage, nationalId: $nationalId, mobile: $mobile, birthday: $birthday, image: $image, password: $password, active: $active, state: $state, baseOrder: $baseOrder, cityNumber: $cityNumber, cityName: $cityName, provinceNumber: $provinceNumber, provinceName: $provinceName, unitName: $unitName, unitNationalId: $unitNationalId, unitRegistrationNumber: $unitRegistrationNumber, unitEconomicalNumber: $unitEconomicalNumber, unitProvince: $unitProvince, unitCity: $unitCity, unitPostalCode: $unitPostalCode, unitAddress: $unitAddress)'; +} + + +} + +/// @nodoc +abstract mixin class $ChainUserCopyWith<$Res> { + factory $ChainUserCopyWith(ChainUser value, $Res Function(ChainUser) _then) = _$ChainUserCopyWithImpl; +@useResult +$Res call({ + List? role, String? city, String? province, String? key, String? userGateWayId, dynamic userDjangoIdForeignKey, dynamic provinceIdForeignKey, dynamic cityIdForeignKey, dynamic systemUserProfileIdKey, String? fullname, String? firstName, String? lastName, dynamic nationalCode, dynamic nationalCodeImage, String? nationalId, String? mobile, dynamic birthday, dynamic image, String? password, bool? active, ChainUserState? state, int? baseOrder, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, String? unitName, String? unitNationalId, String? unitRegistrationNumber, String? unitEconomicalNumber, String? unitProvince, String? unitCity, String? unitPostalCode, String? unitAddress +}); + + +$ChainUserStateCopyWith<$Res>? get state; + +} +/// @nodoc +class _$ChainUserCopyWithImpl<$Res> + implements $ChainUserCopyWith<$Res> { + _$ChainUserCopyWithImpl(this._self, this._then); + + final ChainUser _self; + final $Res Function(ChainUser) _then; + +/// Create a copy of ChainUser +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? role = freezed,Object? city = freezed,Object? province = freezed,Object? key = freezed,Object? userGateWayId = freezed,Object? userDjangoIdForeignKey = freezed,Object? provinceIdForeignKey = freezed,Object? cityIdForeignKey = freezed,Object? systemUserProfileIdKey = freezed,Object? fullname = freezed,Object? firstName = freezed,Object? lastName = freezed,Object? nationalCode = freezed,Object? nationalCodeImage = freezed,Object? nationalId = freezed,Object? mobile = freezed,Object? birthday = freezed,Object? image = freezed,Object? password = freezed,Object? active = freezed,Object? state = freezed,Object? baseOrder = freezed,Object? cityNumber = freezed,Object? cityName = freezed,Object? provinceNumber = freezed,Object? provinceName = freezed,Object? unitName = freezed,Object? unitNationalId = freezed,Object? unitRegistrationNumber = freezed,Object? unitEconomicalNumber = freezed,Object? unitProvince = freezed,Object? unitCity = freezed,Object? unitPostalCode = freezed,Object? unitAddress = freezed,}) { + return _then(_self.copyWith( +role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable +as List?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as String?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,userGateWayId: freezed == userGateWayId ? _self.userGateWayId : userGateWayId // ignore: cast_nullable_to_non_nullable +as String?,userDjangoIdForeignKey: freezed == userDjangoIdForeignKey ? _self.userDjangoIdForeignKey : userDjangoIdForeignKey // ignore: cast_nullable_to_non_nullable +as dynamic,provinceIdForeignKey: freezed == provinceIdForeignKey ? _self.provinceIdForeignKey : provinceIdForeignKey // ignore: cast_nullable_to_non_nullable +as dynamic,cityIdForeignKey: freezed == cityIdForeignKey ? _self.cityIdForeignKey : cityIdForeignKey // ignore: cast_nullable_to_non_nullable +as dynamic,systemUserProfileIdKey: freezed == systemUserProfileIdKey ? _self.systemUserProfileIdKey : systemUserProfileIdKey // ignore: cast_nullable_to_non_nullable +as dynamic,fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable +as String?,firstName: freezed == firstName ? _self.firstName : firstName // ignore: cast_nullable_to_non_nullable +as String?,lastName: freezed == lastName ? _self.lastName : lastName // ignore: cast_nullable_to_non_nullable +as String?,nationalCode: freezed == nationalCode ? _self.nationalCode : nationalCode // ignore: cast_nullable_to_non_nullable +as dynamic,nationalCodeImage: freezed == nationalCodeImage ? _self.nationalCodeImage : nationalCodeImage // ignore: cast_nullable_to_non_nullable +as dynamic,nationalId: freezed == nationalId ? _self.nationalId : nationalId // ignore: cast_nullable_to_non_nullable +as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?,birthday: freezed == birthday ? _self.birthday : birthday // ignore: cast_nullable_to_non_nullable +as dynamic,image: freezed == image ? _self.image : image // ignore: cast_nullable_to_non_nullable +as dynamic,password: freezed == password ? _self.password : password // ignore: cast_nullable_to_non_nullable +as String?,active: freezed == active ? _self.active : active // ignore: cast_nullable_to_non_nullable +as bool?,state: freezed == state ? _self.state : state // ignore: cast_nullable_to_non_nullable +as ChainUserState?,baseOrder: freezed == baseOrder ? _self.baseOrder : baseOrder // ignore: cast_nullable_to_non_nullable +as int?,cityNumber: freezed == cityNumber ? _self.cityNumber : cityNumber // ignore: cast_nullable_to_non_nullable +as int?,cityName: freezed == cityName ? _self.cityName : cityName // ignore: cast_nullable_to_non_nullable +as String?,provinceNumber: freezed == provinceNumber ? _self.provinceNumber : provinceNumber // ignore: cast_nullable_to_non_nullable +as int?,provinceName: freezed == provinceName ? _self.provinceName : provinceName // ignore: cast_nullable_to_non_nullable +as String?,unitName: freezed == unitName ? _self.unitName : unitName // ignore: cast_nullable_to_non_nullable +as String?,unitNationalId: freezed == unitNationalId ? _self.unitNationalId : unitNationalId // ignore: cast_nullable_to_non_nullable +as String?,unitRegistrationNumber: freezed == unitRegistrationNumber ? _self.unitRegistrationNumber : unitRegistrationNumber // ignore: cast_nullable_to_non_nullable +as String?,unitEconomicalNumber: freezed == unitEconomicalNumber ? _self.unitEconomicalNumber : unitEconomicalNumber // ignore: cast_nullable_to_non_nullable +as String?,unitProvince: freezed == unitProvince ? _self.unitProvince : unitProvince // ignore: cast_nullable_to_non_nullable +as String?,unitCity: freezed == unitCity ? _self.unitCity : unitCity // ignore: cast_nullable_to_non_nullable +as String?,unitPostalCode: freezed == unitPostalCode ? _self.unitPostalCode : unitPostalCode // ignore: cast_nullable_to_non_nullable +as String?,unitAddress: freezed == unitAddress ? _self.unitAddress : unitAddress // ignore: cast_nullable_to_non_nullable +as String?, + )); +} +/// Create a copy of ChainUser +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ChainUserStateCopyWith<$Res>? get state { + if (_self.state == null) { + return null; + } + + return $ChainUserStateCopyWith<$Res>(_self.state!, (value) { + return _then(_self.copyWith(state: value)); + }); +} +} + + +/// Adds pattern-matching-related methods to [ChainUser]. +extension ChainUserPatterns on ChainUser { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _ChainUser value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _ChainUser() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _ChainUser value) $default,){ +final _that = this; +switch (_that) { +case _ChainUser(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _ChainUser value)? $default,){ +final _that = this; +switch (_that) { +case _ChainUser() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( List? role, String? city, String? province, String? key, String? userGateWayId, dynamic userDjangoIdForeignKey, dynamic provinceIdForeignKey, dynamic cityIdForeignKey, dynamic systemUserProfileIdKey, String? fullname, String? firstName, String? lastName, dynamic nationalCode, dynamic nationalCodeImage, String? nationalId, String? mobile, dynamic birthday, dynamic image, String? password, bool? active, ChainUserState? state, int? baseOrder, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, String? unitName, String? unitNationalId, String? unitRegistrationNumber, String? unitEconomicalNumber, String? unitProvince, String? unitCity, String? unitPostalCode, String? unitAddress)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _ChainUser() when $default != null: +return $default(_that.role,_that.city,_that.province,_that.key,_that.userGateWayId,_that.userDjangoIdForeignKey,_that.provinceIdForeignKey,_that.cityIdForeignKey,_that.systemUserProfileIdKey,_that.fullname,_that.firstName,_that.lastName,_that.nationalCode,_that.nationalCodeImage,_that.nationalId,_that.mobile,_that.birthday,_that.image,_that.password,_that.active,_that.state,_that.baseOrder,_that.cityNumber,_that.cityName,_that.provinceNumber,_that.provinceName,_that.unitName,_that.unitNationalId,_that.unitRegistrationNumber,_that.unitEconomicalNumber,_that.unitProvince,_that.unitCity,_that.unitPostalCode,_that.unitAddress);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( List? role, String? city, String? province, String? key, String? userGateWayId, dynamic userDjangoIdForeignKey, dynamic provinceIdForeignKey, dynamic cityIdForeignKey, dynamic systemUserProfileIdKey, String? fullname, String? firstName, String? lastName, dynamic nationalCode, dynamic nationalCodeImage, String? nationalId, String? mobile, dynamic birthday, dynamic image, String? password, bool? active, ChainUserState? state, int? baseOrder, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, String? unitName, String? unitNationalId, String? unitRegistrationNumber, String? unitEconomicalNumber, String? unitProvince, String? unitCity, String? unitPostalCode, String? unitAddress) $default,) {final _that = this; +switch (_that) { +case _ChainUser(): +return $default(_that.role,_that.city,_that.province,_that.key,_that.userGateWayId,_that.userDjangoIdForeignKey,_that.provinceIdForeignKey,_that.cityIdForeignKey,_that.systemUserProfileIdKey,_that.fullname,_that.firstName,_that.lastName,_that.nationalCode,_that.nationalCodeImage,_that.nationalId,_that.mobile,_that.birthday,_that.image,_that.password,_that.active,_that.state,_that.baseOrder,_that.cityNumber,_that.cityName,_that.provinceNumber,_that.provinceName,_that.unitName,_that.unitNationalId,_that.unitRegistrationNumber,_that.unitEconomicalNumber,_that.unitProvince,_that.unitCity,_that.unitPostalCode,_that.unitAddress);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( List? role, String? city, String? province, String? key, String? userGateWayId, dynamic userDjangoIdForeignKey, dynamic provinceIdForeignKey, dynamic cityIdForeignKey, dynamic systemUserProfileIdKey, String? fullname, String? firstName, String? lastName, dynamic nationalCode, dynamic nationalCodeImage, String? nationalId, String? mobile, dynamic birthday, dynamic image, String? password, bool? active, ChainUserState? state, int? baseOrder, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, String? unitName, String? unitNationalId, String? unitRegistrationNumber, String? unitEconomicalNumber, String? unitProvince, String? unitCity, String? unitPostalCode, String? unitAddress)? $default,) {final _that = this; +switch (_that) { +case _ChainUser() when $default != null: +return $default(_that.role,_that.city,_that.province,_that.key,_that.userGateWayId,_that.userDjangoIdForeignKey,_that.provinceIdForeignKey,_that.cityIdForeignKey,_that.systemUserProfileIdKey,_that.fullname,_that.firstName,_that.lastName,_that.nationalCode,_that.nationalCodeImage,_that.nationalId,_that.mobile,_that.birthday,_that.image,_that.password,_that.active,_that.state,_that.baseOrder,_that.cityNumber,_that.cityName,_that.provinceNumber,_that.provinceName,_that.unitName,_that.unitNationalId,_that.unitRegistrationNumber,_that.unitEconomicalNumber,_that.unitProvince,_that.unitCity,_that.unitPostalCode,_that.unitAddress);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _ChainUser implements ChainUser { + const _ChainUser({final List? role, this.city, this.province, this.key, this.userGateWayId, this.userDjangoIdForeignKey, this.provinceIdForeignKey, this.cityIdForeignKey, this.systemUserProfileIdKey, this.fullname, this.firstName, this.lastName, this.nationalCode, this.nationalCodeImage, this.nationalId, this.mobile, this.birthday, this.image, this.password, this.active, this.state, this.baseOrder, this.cityNumber, this.cityName, this.provinceNumber, this.provinceName, this.unitName, this.unitNationalId, this.unitRegistrationNumber, this.unitEconomicalNumber, this.unitProvince, this.unitCity, this.unitPostalCode, this.unitAddress}): _role = role; + factory _ChainUser.fromJson(Map json) => _$ChainUserFromJson(json); + + final List? _role; +@override List? get role { + final value = _role; + if (value == null) return null; + if (_role is EqualUnmodifiableListView) return _role; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + +@override final String? city; +@override final String? province; +@override final String? key; +@override final String? userGateWayId; +@override final dynamic userDjangoIdForeignKey; +@override final dynamic provinceIdForeignKey; +@override final dynamic cityIdForeignKey; +@override final dynamic systemUserProfileIdKey; +@override final String? fullname; +@override final String? firstName; +@override final String? lastName; +@override final dynamic nationalCode; +@override final dynamic nationalCodeImage; +@override final String? nationalId; +@override final String? mobile; +@override final dynamic birthday; +@override final dynamic image; +@override final String? password; +@override final bool? active; +@override final ChainUserState? state; +@override final int? baseOrder; +@override final int? cityNumber; +@override final String? cityName; +@override final int? provinceNumber; +@override final String? provinceName; +@override final String? unitName; +@override final String? unitNationalId; +@override final String? unitRegistrationNumber; +@override final String? unitEconomicalNumber; +@override final String? unitProvince; +@override final String? unitCity; +@override final String? unitPostalCode; +@override final String? unitAddress; + +/// Create a copy of ChainUser +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ChainUserCopyWith<_ChainUser> get copyWith => __$ChainUserCopyWithImpl<_ChainUser>(this, _$identity); + +@override +Map toJson() { + return _$ChainUserToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _ChainUser&&const DeepCollectionEquality().equals(other._role, _role)&&(identical(other.city, city) || other.city == city)&&(identical(other.province, province) || other.province == province)&&(identical(other.key, key) || other.key == key)&&(identical(other.userGateWayId, userGateWayId) || other.userGateWayId == userGateWayId)&&const DeepCollectionEquality().equals(other.userDjangoIdForeignKey, userDjangoIdForeignKey)&&const DeepCollectionEquality().equals(other.provinceIdForeignKey, provinceIdForeignKey)&&const DeepCollectionEquality().equals(other.cityIdForeignKey, cityIdForeignKey)&&const DeepCollectionEquality().equals(other.systemUserProfileIdKey, systemUserProfileIdKey)&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&const DeepCollectionEquality().equals(other.nationalCode, nationalCode)&&const DeepCollectionEquality().equals(other.nationalCodeImage, nationalCodeImage)&&(identical(other.nationalId, nationalId) || other.nationalId == nationalId)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&const DeepCollectionEquality().equals(other.birthday, birthday)&&const DeepCollectionEquality().equals(other.image, image)&&(identical(other.password, password) || other.password == password)&&(identical(other.active, active) || other.active == active)&&(identical(other.state, state) || other.state == state)&&(identical(other.baseOrder, baseOrder) || other.baseOrder == baseOrder)&&(identical(other.cityNumber, cityNumber) || other.cityNumber == cityNumber)&&(identical(other.cityName, cityName) || other.cityName == cityName)&&(identical(other.provinceNumber, provinceNumber) || other.provinceNumber == provinceNumber)&&(identical(other.provinceName, provinceName) || other.provinceName == provinceName)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.unitNationalId, unitNationalId) || other.unitNationalId == unitNationalId)&&(identical(other.unitRegistrationNumber, unitRegistrationNumber) || other.unitRegistrationNumber == unitRegistrationNumber)&&(identical(other.unitEconomicalNumber, unitEconomicalNumber) || other.unitEconomicalNumber == unitEconomicalNumber)&&(identical(other.unitProvince, unitProvince) || other.unitProvince == unitProvince)&&(identical(other.unitCity, unitCity) || other.unitCity == unitCity)&&(identical(other.unitPostalCode, unitPostalCode) || other.unitPostalCode == unitPostalCode)&&(identical(other.unitAddress, unitAddress) || other.unitAddress == unitAddress)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,const DeepCollectionEquality().hash(_role),city,province,key,userGateWayId,const DeepCollectionEquality().hash(userDjangoIdForeignKey),const DeepCollectionEquality().hash(provinceIdForeignKey),const DeepCollectionEquality().hash(cityIdForeignKey),const DeepCollectionEquality().hash(systemUserProfileIdKey),fullname,firstName,lastName,const DeepCollectionEquality().hash(nationalCode),const DeepCollectionEquality().hash(nationalCodeImage),nationalId,mobile,const DeepCollectionEquality().hash(birthday),const DeepCollectionEquality().hash(image),password,active,state,baseOrder,cityNumber,cityName,provinceNumber,provinceName,unitName,unitNationalId,unitRegistrationNumber,unitEconomicalNumber,unitProvince,unitCity,unitPostalCode,unitAddress]); + +@override +String toString() { + return 'ChainUser(role: $role, city: $city, province: $province, key: $key, userGateWayId: $userGateWayId, userDjangoIdForeignKey: $userDjangoIdForeignKey, provinceIdForeignKey: $provinceIdForeignKey, cityIdForeignKey: $cityIdForeignKey, systemUserProfileIdKey: $systemUserProfileIdKey, fullname: $fullname, firstName: $firstName, lastName: $lastName, nationalCode: $nationalCode, nationalCodeImage: $nationalCodeImage, nationalId: $nationalId, mobile: $mobile, birthday: $birthday, image: $image, password: $password, active: $active, state: $state, baseOrder: $baseOrder, cityNumber: $cityNumber, cityName: $cityName, provinceNumber: $provinceNumber, provinceName: $provinceName, unitName: $unitName, unitNationalId: $unitNationalId, unitRegistrationNumber: $unitRegistrationNumber, unitEconomicalNumber: $unitEconomicalNumber, unitProvince: $unitProvince, unitCity: $unitCity, unitPostalCode: $unitPostalCode, unitAddress: $unitAddress)'; +} + + +} + +/// @nodoc +abstract mixin class _$ChainUserCopyWith<$Res> implements $ChainUserCopyWith<$Res> { + factory _$ChainUserCopyWith(_ChainUser value, $Res Function(_ChainUser) _then) = __$ChainUserCopyWithImpl; +@override @useResult +$Res call({ + List? role, String? city, String? province, String? key, String? userGateWayId, dynamic userDjangoIdForeignKey, dynamic provinceIdForeignKey, dynamic cityIdForeignKey, dynamic systemUserProfileIdKey, String? fullname, String? firstName, String? lastName, dynamic nationalCode, dynamic nationalCodeImage, String? nationalId, String? mobile, dynamic birthday, dynamic image, String? password, bool? active, ChainUserState? state, int? baseOrder, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, String? unitName, String? unitNationalId, String? unitRegistrationNumber, String? unitEconomicalNumber, String? unitProvince, String? unitCity, String? unitPostalCode, String? unitAddress +}); + + +@override $ChainUserStateCopyWith<$Res>? get state; + +} +/// @nodoc +class __$ChainUserCopyWithImpl<$Res> + implements _$ChainUserCopyWith<$Res> { + __$ChainUserCopyWithImpl(this._self, this._then); + + final _ChainUser _self; + final $Res Function(_ChainUser) _then; + +/// Create a copy of ChainUser +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? role = freezed,Object? city = freezed,Object? province = freezed,Object? key = freezed,Object? userGateWayId = freezed,Object? userDjangoIdForeignKey = freezed,Object? provinceIdForeignKey = freezed,Object? cityIdForeignKey = freezed,Object? systemUserProfileIdKey = freezed,Object? fullname = freezed,Object? firstName = freezed,Object? lastName = freezed,Object? nationalCode = freezed,Object? nationalCodeImage = freezed,Object? nationalId = freezed,Object? mobile = freezed,Object? birthday = freezed,Object? image = freezed,Object? password = freezed,Object? active = freezed,Object? state = freezed,Object? baseOrder = freezed,Object? cityNumber = freezed,Object? cityName = freezed,Object? provinceNumber = freezed,Object? provinceName = freezed,Object? unitName = freezed,Object? unitNationalId = freezed,Object? unitRegistrationNumber = freezed,Object? unitEconomicalNumber = freezed,Object? unitProvince = freezed,Object? unitCity = freezed,Object? unitPostalCode = freezed,Object? unitAddress = freezed,}) { + return _then(_ChainUser( +role: freezed == role ? _self._role : role // ignore: cast_nullable_to_non_nullable +as List?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as String?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,userGateWayId: freezed == userGateWayId ? _self.userGateWayId : userGateWayId // ignore: cast_nullable_to_non_nullable +as String?,userDjangoIdForeignKey: freezed == userDjangoIdForeignKey ? _self.userDjangoIdForeignKey : userDjangoIdForeignKey // ignore: cast_nullable_to_non_nullable +as dynamic,provinceIdForeignKey: freezed == provinceIdForeignKey ? _self.provinceIdForeignKey : provinceIdForeignKey // ignore: cast_nullable_to_non_nullable +as dynamic,cityIdForeignKey: freezed == cityIdForeignKey ? _self.cityIdForeignKey : cityIdForeignKey // ignore: cast_nullable_to_non_nullable +as dynamic,systemUserProfileIdKey: freezed == systemUserProfileIdKey ? _self.systemUserProfileIdKey : systemUserProfileIdKey // ignore: cast_nullable_to_non_nullable +as dynamic,fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable +as String?,firstName: freezed == firstName ? _self.firstName : firstName // ignore: cast_nullable_to_non_nullable +as String?,lastName: freezed == lastName ? _self.lastName : lastName // ignore: cast_nullable_to_non_nullable +as String?,nationalCode: freezed == nationalCode ? _self.nationalCode : nationalCode // ignore: cast_nullable_to_non_nullable +as dynamic,nationalCodeImage: freezed == nationalCodeImage ? _self.nationalCodeImage : nationalCodeImage // ignore: cast_nullable_to_non_nullable +as dynamic,nationalId: freezed == nationalId ? _self.nationalId : nationalId // ignore: cast_nullable_to_non_nullable +as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?,birthday: freezed == birthday ? _self.birthday : birthday // ignore: cast_nullable_to_non_nullable +as dynamic,image: freezed == image ? _self.image : image // ignore: cast_nullable_to_non_nullable +as dynamic,password: freezed == password ? _self.password : password // ignore: cast_nullable_to_non_nullable +as String?,active: freezed == active ? _self.active : active // ignore: cast_nullable_to_non_nullable +as bool?,state: freezed == state ? _self.state : state // ignore: cast_nullable_to_non_nullable +as ChainUserState?,baseOrder: freezed == baseOrder ? _self.baseOrder : baseOrder // ignore: cast_nullable_to_non_nullable +as int?,cityNumber: freezed == cityNumber ? _self.cityNumber : cityNumber // ignore: cast_nullable_to_non_nullable +as int?,cityName: freezed == cityName ? _self.cityName : cityName // ignore: cast_nullable_to_non_nullable +as String?,provinceNumber: freezed == provinceNumber ? _self.provinceNumber : provinceNumber // ignore: cast_nullable_to_non_nullable +as int?,provinceName: freezed == provinceName ? _self.provinceName : provinceName // ignore: cast_nullable_to_non_nullable +as String?,unitName: freezed == unitName ? _self.unitName : unitName // ignore: cast_nullable_to_non_nullable +as String?,unitNationalId: freezed == unitNationalId ? _self.unitNationalId : unitNationalId // ignore: cast_nullable_to_non_nullable +as String?,unitRegistrationNumber: freezed == unitRegistrationNumber ? _self.unitRegistrationNumber : unitRegistrationNumber // ignore: cast_nullable_to_non_nullable +as String?,unitEconomicalNumber: freezed == unitEconomicalNumber ? _self.unitEconomicalNumber : unitEconomicalNumber // ignore: cast_nullable_to_non_nullable +as String?,unitProvince: freezed == unitProvince ? _self.unitProvince : unitProvince // ignore: cast_nullable_to_non_nullable +as String?,unitCity: freezed == unitCity ? _self.unitCity : unitCity // ignore: cast_nullable_to_non_nullable +as String?,unitPostalCode: freezed == unitPostalCode ? _self.unitPostalCode : unitPostalCode // ignore: cast_nullable_to_non_nullable +as String?,unitAddress: freezed == unitAddress ? _self.unitAddress : unitAddress // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +/// Create a copy of ChainUser +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ChainUserStateCopyWith<$Res>? get state { + if (_self.state == null) { + return null; + } + + return $ChainUserStateCopyWith<$Res>(_self.state!, (value) { + return _then(_self.copyWith(state: value)); + }); +} +} + + +/// @nodoc +mixin _$ChainUserState { + + String? get city; String? get image; String? get mobile; String? get birthday; String? get province; String? get lastName; String? get firstName; String? get nationalId; String? get nationalCode; +/// Create a copy of ChainUserState +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ChainUserStateCopyWith get copyWith => _$ChainUserStateCopyWithImpl(this as ChainUserState, _$identity); + + /// Serializes this ChainUserState to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is ChainUserState&&(identical(other.city, city) || other.city == city)&&(identical(other.image, image) || other.image == image)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.birthday, birthday) || other.birthday == birthday)&&(identical(other.province, province) || other.province == province)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.nationalId, nationalId) || other.nationalId == nationalId)&&(identical(other.nationalCode, nationalCode) || other.nationalCode == nationalCode)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,city,image,mobile,birthday,province,lastName,firstName,nationalId,nationalCode); + +@override +String toString() { + return 'ChainUserState(city: $city, image: $image, mobile: $mobile, birthday: $birthday, province: $province, lastName: $lastName, firstName: $firstName, nationalId: $nationalId, nationalCode: $nationalCode)'; +} + + +} + +/// @nodoc +abstract mixin class $ChainUserStateCopyWith<$Res> { + factory $ChainUserStateCopyWith(ChainUserState value, $Res Function(ChainUserState) _then) = _$ChainUserStateCopyWithImpl; +@useResult +$Res call({ + String? city, String? image, String? mobile, String? birthday, String? province, String? lastName, String? firstName, String? nationalId, String? nationalCode +}); + + + + +} +/// @nodoc +class _$ChainUserStateCopyWithImpl<$Res> + implements $ChainUserStateCopyWith<$Res> { + _$ChainUserStateCopyWithImpl(this._self, this._then); + + final ChainUserState _self; + final $Res Function(ChainUserState) _then; + +/// Create a copy of ChainUserState +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? city = freezed,Object? image = freezed,Object? mobile = freezed,Object? birthday = freezed,Object? province = freezed,Object? lastName = freezed,Object? firstName = freezed,Object? nationalId = freezed,Object? nationalCode = freezed,}) { + return _then(_self.copyWith( +city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as String?,image: freezed == image ? _self.image : image // ignore: cast_nullable_to_non_nullable +as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?,birthday: freezed == birthday ? _self.birthday : birthday // ignore: cast_nullable_to_non_nullable +as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as String?,lastName: freezed == lastName ? _self.lastName : lastName // ignore: cast_nullable_to_non_nullable +as String?,firstName: freezed == firstName ? _self.firstName : firstName // ignore: cast_nullable_to_non_nullable +as String?,nationalId: freezed == nationalId ? _self.nationalId : nationalId // ignore: cast_nullable_to_non_nullable +as String?,nationalCode: freezed == nationalCode ? _self.nationalCode : nationalCode // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [ChainUserState]. +extension ChainUserStatePatterns on ChainUserState { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _ChainUserState value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _ChainUserState() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _ChainUserState value) $default,){ +final _that = this; +switch (_that) { +case _ChainUserState(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _ChainUserState value)? $default,){ +final _that = this; +switch (_that) { +case _ChainUserState() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? city, String? image, String? mobile, String? birthday, String? province, String? lastName, String? firstName, String? nationalId, String? nationalCode)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _ChainUserState() when $default != null: +return $default(_that.city,_that.image,_that.mobile,_that.birthday,_that.province,_that.lastName,_that.firstName,_that.nationalId,_that.nationalCode);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? city, String? image, String? mobile, String? birthday, String? province, String? lastName, String? firstName, String? nationalId, String? nationalCode) $default,) {final _that = this; +switch (_that) { +case _ChainUserState(): +return $default(_that.city,_that.image,_that.mobile,_that.birthday,_that.province,_that.lastName,_that.firstName,_that.nationalId,_that.nationalCode);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? city, String? image, String? mobile, String? birthday, String? province, String? lastName, String? firstName, String? nationalId, String? nationalCode)? $default,) {final _that = this; +switch (_that) { +case _ChainUserState() when $default != null: +return $default(_that.city,_that.image,_that.mobile,_that.birthday,_that.province,_that.lastName,_that.firstName,_that.nationalId,_that.nationalCode);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _ChainUserState implements ChainUserState { + const _ChainUserState({this.city, this.image, this.mobile, this.birthday, this.province, this.lastName, this.firstName, this.nationalId, this.nationalCode}); + factory _ChainUserState.fromJson(Map json) => _$ChainUserStateFromJson(json); + +@override final String? city; +@override final String? image; +@override final String? mobile; +@override final String? birthday; +@override final String? province; +@override final String? lastName; +@override final String? firstName; +@override final String? nationalId; +@override final String? nationalCode; + +/// Create a copy of ChainUserState +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ChainUserStateCopyWith<_ChainUserState> get copyWith => __$ChainUserStateCopyWithImpl<_ChainUserState>(this, _$identity); + +@override +Map toJson() { + return _$ChainUserStateToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _ChainUserState&&(identical(other.city, city) || other.city == city)&&(identical(other.image, image) || other.image == image)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.birthday, birthday) || other.birthday == birthday)&&(identical(other.province, province) || other.province == province)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.nationalId, nationalId) || other.nationalId == nationalId)&&(identical(other.nationalCode, nationalCode) || other.nationalCode == nationalCode)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,city,image,mobile,birthday,province,lastName,firstName,nationalId,nationalCode); + +@override +String toString() { + return 'ChainUserState(city: $city, image: $image, mobile: $mobile, birthday: $birthday, province: $province, lastName: $lastName, firstName: $firstName, nationalId: $nationalId, nationalCode: $nationalCode)'; +} + + +} + +/// @nodoc +abstract mixin class _$ChainUserStateCopyWith<$Res> implements $ChainUserStateCopyWith<$Res> { + factory _$ChainUserStateCopyWith(_ChainUserState value, $Res Function(_ChainUserState) _then) = __$ChainUserStateCopyWithImpl; +@override @useResult +$Res call({ + String? city, String? image, String? mobile, String? birthday, String? province, String? lastName, String? firstName, String? nationalId, String? nationalCode +}); + + + + +} +/// @nodoc +class __$ChainUserStateCopyWithImpl<$Res> + implements _$ChainUserStateCopyWith<$Res> { + __$ChainUserStateCopyWithImpl(this._self, this._then); + + final _ChainUserState _self; + final $Res Function(_ChainUserState) _then; + +/// Create a copy of ChainUserState +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? city = freezed,Object? image = freezed,Object? mobile = freezed,Object? birthday = freezed,Object? province = freezed,Object? lastName = freezed,Object? firstName = freezed,Object? nationalId = freezed,Object? nationalCode = freezed,}) { + return _then(_ChainUserState( +city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as String?,image: freezed == image ? _self.image : image // ignore: cast_nullable_to_non_nullable +as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?,birthday: freezed == birthday ? _self.birthday : birthday // ignore: cast_nullable_to_non_nullable +as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as String?,lastName: freezed == lastName ? _self.lastName : lastName // ignore: cast_nullable_to_non_nullable +as String?,firstName: freezed == firstName ? _self.firstName : firstName // ignore: cast_nullable_to_non_nullable +as String?,nationalId: freezed == nationalId ? _self.nationalId : nationalId // ignore: cast_nullable_to_non_nullable +as String?,nationalCode: freezed == nationalCode ? _self.nationalCode : nationalCode // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$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 _$ManagementHatchingAgeRange { + + double? get fromWeight; double? get toWeight; +/// Create a copy of ManagementHatchingAgeRange +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ManagementHatchingAgeRangeCopyWith get copyWith => _$ManagementHatchingAgeRangeCopyWithImpl(this as ManagementHatchingAgeRange, _$identity); + + /// Serializes this ManagementHatchingAgeRange to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is ManagementHatchingAgeRange&&(identical(other.fromWeight, fromWeight) || other.fromWeight == fromWeight)&&(identical(other.toWeight, toWeight) || other.toWeight == toWeight)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,fromWeight,toWeight); + +@override +String toString() { + return 'ManagementHatchingAgeRange(fromWeight: $fromWeight, toWeight: $toWeight)'; +} + + +} + +/// @nodoc +abstract mixin class $ManagementHatchingAgeRangeCopyWith<$Res> { + factory $ManagementHatchingAgeRangeCopyWith(ManagementHatchingAgeRange value, $Res Function(ManagementHatchingAgeRange) _then) = _$ManagementHatchingAgeRangeCopyWithImpl; +@useResult +$Res call({ + double? fromWeight, double? toWeight +}); + + + + +} +/// @nodoc +class _$ManagementHatchingAgeRangeCopyWithImpl<$Res> + implements $ManagementHatchingAgeRangeCopyWith<$Res> { + _$ManagementHatchingAgeRangeCopyWithImpl(this._self, this._then); + + final ManagementHatchingAgeRange _self; + final $Res Function(ManagementHatchingAgeRange) _then; + +/// Create a copy of ManagementHatchingAgeRange +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? fromWeight = freezed,Object? toWeight = freezed,}) { + return _then(_self.copyWith( +fromWeight: freezed == fromWeight ? _self.fromWeight : fromWeight // ignore: cast_nullable_to_non_nullable +as double?,toWeight: freezed == toWeight ? _self.toWeight : toWeight // ignore: cast_nullable_to_non_nullable +as double?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [ManagementHatchingAgeRange]. +extension ManagementHatchingAgeRangePatterns on ManagementHatchingAgeRange { +/// 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( _ManagementHatchingAgeRange value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _ManagementHatchingAgeRange() 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( _ManagementHatchingAgeRange value) $default,){ +final _that = this; +switch (_that) { +case _ManagementHatchingAgeRange(): +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( _ManagementHatchingAgeRange value)? $default,){ +final _that = this; +switch (_that) { +case _ManagementHatchingAgeRange() 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( double? fromWeight, double? toWeight)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _ManagementHatchingAgeRange() when $default != null: +return $default(_that.fromWeight,_that.toWeight);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( double? fromWeight, double? toWeight) $default,) {final _that = this; +switch (_that) { +case _ManagementHatchingAgeRange(): +return $default(_that.fromWeight,_that.toWeight);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( double? fromWeight, double? toWeight)? $default,) {final _that = this; +switch (_that) { +case _ManagementHatchingAgeRange() when $default != null: +return $default(_that.fromWeight,_that.toWeight);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _ManagementHatchingAgeRange implements ManagementHatchingAgeRange { + const _ManagementHatchingAgeRange({this.fromWeight, this.toWeight}); + factory _ManagementHatchingAgeRange.fromJson(Map json) => _$ManagementHatchingAgeRangeFromJson(json); + +@override final double? fromWeight; +@override final double? toWeight; + +/// Create a copy of ManagementHatchingAgeRange +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ManagementHatchingAgeRangeCopyWith<_ManagementHatchingAgeRange> get copyWith => __$ManagementHatchingAgeRangeCopyWithImpl<_ManagementHatchingAgeRange>(this, _$identity); + +@override +Map toJson() { + return _$ManagementHatchingAgeRangeToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _ManagementHatchingAgeRange&&(identical(other.fromWeight, fromWeight) || other.fromWeight == fromWeight)&&(identical(other.toWeight, toWeight) || other.toWeight == toWeight)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,fromWeight,toWeight); + +@override +String toString() { + return 'ManagementHatchingAgeRange(fromWeight: $fromWeight, toWeight: $toWeight)'; +} + + +} + +/// @nodoc +abstract mixin class _$ManagementHatchingAgeRangeCopyWith<$Res> implements $ManagementHatchingAgeRangeCopyWith<$Res> { + factory _$ManagementHatchingAgeRangeCopyWith(_ManagementHatchingAgeRange value, $Res Function(_ManagementHatchingAgeRange) _then) = __$ManagementHatchingAgeRangeCopyWithImpl; +@override @useResult +$Res call({ + double? fromWeight, double? toWeight +}); + + + + +} +/// @nodoc +class __$ManagementHatchingAgeRangeCopyWithImpl<$Res> + implements _$ManagementHatchingAgeRangeCopyWith<$Res> { + __$ManagementHatchingAgeRangeCopyWithImpl(this._self, this._then); + + final _ManagementHatchingAgeRange _self; + final $Res Function(_ManagementHatchingAgeRange) _then; + +/// Create a copy of ManagementHatchingAgeRange +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? fromWeight = freezed,Object? toWeight = freezed,}) { + return _then(_ManagementHatchingAgeRange( +fromWeight: freezed == fromWeight ? _self.fromWeight : fromWeight // ignore: cast_nullable_to_non_nullable +as double?,toWeight: freezed == toWeight ? _self.toWeight : toWeight // ignore: cast_nullable_to_non_nullable +as double?, + )); +} + + +} + + +/// @nodoc +mixin _$Registrar { + + String? get date; String? get role; String? get fullname; +/// Create a copy of Registrar +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$RegistrarCopyWith get copyWith => _$RegistrarCopyWithImpl(this as Registrar, _$identity); + + /// Serializes this Registrar to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is Registrar&&(identical(other.date, date) || other.date == date)&&(identical(other.role, role) || other.role == role)&&(identical(other.fullname, fullname) || other.fullname == fullname)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,date,role,fullname); + +@override +String toString() { + return 'Registrar(date: $date, role: $role, fullname: $fullname)'; +} + + +} + +/// @nodoc +abstract mixin class $RegistrarCopyWith<$Res> { + factory $RegistrarCopyWith(Registrar value, $Res Function(Registrar) _then) = _$RegistrarCopyWithImpl; +@useResult +$Res call({ + String? date, String? role, String? fullname +}); + + + + +} +/// @nodoc +class _$RegistrarCopyWithImpl<$Res> + implements $RegistrarCopyWith<$Res> { + _$RegistrarCopyWithImpl(this._self, this._then); + + final Registrar _self; + final $Res Function(Registrar) _then; + +/// Create a copy of Registrar +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? date = freezed,Object? role = freezed,Object? fullname = freezed,}) { + return _then(_self.copyWith( +date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?,role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable +as String?,fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [Registrar]. +extension RegistrarPatterns on Registrar { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _Registrar value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _Registrar() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _Registrar value) $default,){ +final _that = this; +switch (_that) { +case _Registrar(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _Registrar value)? $default,){ +final _that = this; +switch (_that) { +case _Registrar() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? date, String? role, String? fullname)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _Registrar() when $default != null: +return $default(_that.date,_that.role,_that.fullname);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? date, String? role, String? fullname) $default,) {final _that = this; +switch (_that) { +case _Registrar(): +return $default(_that.date,_that.role,_that.fullname);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? date, String? role, String? fullname)? $default,) {final _that = this; +switch (_that) { +case _Registrar() when $default != null: +return $default(_that.date,_that.role,_that.fullname);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _Registrar implements Registrar { + const _Registrar({this.date, this.role, this.fullname}); + factory _Registrar.fromJson(Map json) => _$RegistrarFromJson(json); + +@override final String? date; +@override final String? role; +@override final String? fullname; + +/// Create a copy of Registrar +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$RegistrarCopyWith<_Registrar> get copyWith => __$RegistrarCopyWithImpl<_Registrar>(this, _$identity); + +@override +Map toJson() { + return _$RegistrarToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Registrar&&(identical(other.date, date) || other.date == date)&&(identical(other.role, role) || other.role == role)&&(identical(other.fullname, fullname) || other.fullname == fullname)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,date,role,fullname); + +@override +String toString() { + return 'Registrar(date: $date, role: $role, fullname: $fullname)'; +} + + +} + +/// @nodoc +abstract mixin class _$RegistrarCopyWith<$Res> implements $RegistrarCopyWith<$Res> { + factory _$RegistrarCopyWith(_Registrar value, $Res Function(_Registrar) _then) = __$RegistrarCopyWithImpl; +@override @useResult +$Res call({ + String? date, String? role, String? fullname +}); + + + + +} +/// @nodoc +class __$RegistrarCopyWithImpl<$Res> + implements _$RegistrarCopyWith<$Res> { + __$RegistrarCopyWithImpl(this._self, this._then); + + final _Registrar _self; + final $Res Function(_Registrar) _then; + +/// Create a copy of Registrar +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? date = freezed,Object? role = freezed,Object? fullname = freezed,}) { + return _then(_Registrar( +date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?,role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable +as String?,fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$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 { + + String? get date; String? get role; String? get type; String? get fullName; +/// Create a copy of LastChange +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$LastChangeCopyWith get copyWith => _$LastChangeCopyWithImpl(this as LastChange, _$identity); + + /// Serializes this LastChange to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is LastChange&&(identical(other.date, date) || other.date == date)&&(identical(other.role, role) || other.role == role)&&(identical(other.type, type) || other.type == type)&&(identical(other.fullName, fullName) || other.fullName == fullName)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,date,role,type,fullName); + +@override +String toString() { + return 'LastChange(date: $date, role: $role, type: $type, fullName: $fullName)'; +} + + +} + +/// @nodoc +abstract mixin class $LastChangeCopyWith<$Res> { + factory $LastChangeCopyWith(LastChange value, $Res Function(LastChange) _then) = _$LastChangeCopyWithImpl; +@useResult +$Res call({ + String? date, String? role, String? type, String? fullName +}); + + + + +} +/// @nodoc +class _$LastChangeCopyWithImpl<$Res> + implements $LastChangeCopyWith<$Res> { + _$LastChangeCopyWithImpl(this._self, this._then); + + final LastChange _self; + final $Res Function(LastChange) _then; + +/// Create a copy of LastChange +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? date = freezed,Object? role = freezed,Object? type = freezed,Object? fullName = freezed,}) { + return _then(_self.copyWith( +date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?,role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable +as String?,type: freezed == type ? _self.type : type // ignore: cast_nullable_to_non_nullable +as String?,fullName: freezed == fullName ? _self.fullName : fullName // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [LastChange]. +extension LastChangePatterns on LastChange { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _LastChange value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _LastChange() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _LastChange value) $default,){ +final _that = this; +switch (_that) { +case _LastChange(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _LastChange value)? $default,){ +final _that = this; +switch (_that) { +case _LastChange() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? date, String? role, String? type, String? fullName)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _LastChange() when $default != null: +return $default(_that.date,_that.role,_that.type,_that.fullName);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? date, String? role, String? type, String? fullName) $default,) {final _that = this; +switch (_that) { +case _LastChange(): +return $default(_that.date,_that.role,_that.type,_that.fullName);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? date, String? role, String? type, String? fullName)? $default,) {final _that = this; +switch (_that) { +case _LastChange() when $default != null: +return $default(_that.date,_that.role,_that.type,_that.fullName);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _LastChange implements LastChange { + const _LastChange({this.date, this.role, this.type, this.fullName}); + factory _LastChange.fromJson(Map json) => _$LastChangeFromJson(json); + +@override final String? date; +@override final String? role; +@override final String? type; +@override final String? fullName; + +/// Create a copy of LastChange +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$LastChangeCopyWith<_LastChange> get copyWith => __$LastChangeCopyWithImpl<_LastChange>(this, _$identity); + +@override +Map toJson() { + return _$LastChangeToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _LastChange&&(identical(other.date, date) || other.date == date)&&(identical(other.role, role) || other.role == role)&&(identical(other.type, type) || other.type == type)&&(identical(other.fullName, fullName) || other.fullName == fullName)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,date,role,type,fullName); + +@override +String toString() { + return 'LastChange(date: $date, role: $role, type: $type, fullName: $fullName)'; +} + + +} + +/// @nodoc +abstract mixin class _$LastChangeCopyWith<$Res> implements $LastChangeCopyWith<$Res> { + factory _$LastChangeCopyWith(_LastChange value, $Res Function(_LastChange) _then) = __$LastChangeCopyWithImpl; +@override @useResult +$Res call({ + String? date, String? role, String? type, String? fullName +}); + + + + +} +/// @nodoc +class __$LastChangeCopyWithImpl<$Res> + implements _$LastChangeCopyWith<$Res> { + __$LastChangeCopyWithImpl(this._self, this._then); + + final _LastChange _self; + final $Res Function(_LastChange) _then; + +/// Create a copy of LastChange +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? date = freezed,Object? role = freezed,Object? type = freezed,Object? fullName = freezed,}) { + return _then(_LastChange( +date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?,role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable +as String?,type: freezed == type ? _self.type : type // ignore: cast_nullable_to_non_nullable +as String?,fullName: freezed == fullName ? _self.fullName : fullName // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$LatestHatchingChange { + + String? get date; String? get role; String? get fullName; +/// Create a copy of LatestHatchingChange +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$LatestHatchingChangeCopyWith get copyWith => _$LatestHatchingChangeCopyWithImpl(this as LatestHatchingChange, _$identity); + + /// Serializes this LatestHatchingChange to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is LatestHatchingChange&&(identical(other.date, date) || other.date == date)&&(identical(other.role, role) || other.role == role)&&(identical(other.fullName, fullName) || other.fullName == fullName)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,date,role,fullName); + +@override +String toString() { + return 'LatestHatchingChange(date: $date, role: $role, fullName: $fullName)'; +} + + +} + +/// @nodoc +abstract mixin class $LatestHatchingChangeCopyWith<$Res> { + factory $LatestHatchingChangeCopyWith(LatestHatchingChange value, $Res Function(LatestHatchingChange) _then) = _$LatestHatchingChangeCopyWithImpl; +@useResult +$Res call({ + String? date, String? role, String? fullName +}); + + + + +} +/// @nodoc +class _$LatestHatchingChangeCopyWithImpl<$Res> + implements $LatestHatchingChangeCopyWith<$Res> { + _$LatestHatchingChangeCopyWithImpl(this._self, this._then); + + final LatestHatchingChange _self; + final $Res Function(LatestHatchingChange) _then; + +/// Create a copy of LatestHatchingChange +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? date = freezed,Object? role = freezed,Object? fullName = freezed,}) { + return _then(_self.copyWith( +date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?,role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable +as String?,fullName: freezed == fullName ? _self.fullName : fullName // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [LatestHatchingChange]. +extension LatestHatchingChangePatterns on LatestHatchingChange { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _LatestHatchingChange value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _LatestHatchingChange() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _LatestHatchingChange value) $default,){ +final _that = this; +switch (_that) { +case _LatestHatchingChange(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _LatestHatchingChange value)? $default,){ +final _that = this; +switch (_that) { +case _LatestHatchingChange() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? date, String? role, String? fullName)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _LatestHatchingChange() when $default != null: +return $default(_that.date,_that.role,_that.fullName);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? date, String? role, String? fullName) $default,) {final _that = this; +switch (_that) { +case _LatestHatchingChange(): +return $default(_that.date,_that.role,_that.fullName);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? date, String? role, String? fullName)? $default,) {final _that = this; +switch (_that) { +case _LatestHatchingChange() when $default != null: +return $default(_that.date,_that.role,_that.fullName);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _LatestHatchingChange implements LatestHatchingChange { + const _LatestHatchingChange({this.date, this.role, this.fullName}); + factory _LatestHatchingChange.fromJson(Map json) => _$LatestHatchingChangeFromJson(json); + +@override final String? date; +@override final String? role; +@override final String? fullName; + +/// Create a copy of LatestHatchingChange +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$LatestHatchingChangeCopyWith<_LatestHatchingChange> get copyWith => __$LatestHatchingChangeCopyWithImpl<_LatestHatchingChange>(this, _$identity); + +@override +Map toJson() { + return _$LatestHatchingChangeToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _LatestHatchingChange&&(identical(other.date, date) || other.date == date)&&(identical(other.role, role) || other.role == role)&&(identical(other.fullName, fullName) || other.fullName == fullName)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,date,role,fullName); + +@override +String toString() { + return 'LatestHatchingChange(date: $date, role: $role, fullName: $fullName)'; +} + + +} + +/// @nodoc +abstract mixin class _$LatestHatchingChangeCopyWith<$Res> implements $LatestHatchingChangeCopyWith<$Res> { + factory _$LatestHatchingChangeCopyWith(_LatestHatchingChange value, $Res Function(_LatestHatchingChange) _then) = __$LatestHatchingChangeCopyWithImpl; +@override @useResult +$Res call({ + String? date, String? role, String? fullName +}); + + + + +} +/// @nodoc +class __$LatestHatchingChangeCopyWithImpl<$Res> + implements _$LatestHatchingChangeCopyWith<$Res> { + __$LatestHatchingChangeCopyWithImpl(this._self, this._then); + + final _LatestHatchingChange _self; + final $Res Function(_LatestHatchingChange) _then; + +/// Create a copy of LatestHatchingChange +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? date = freezed,Object? role = freezed,Object? fullName = freezed,}) { + return _then(_LatestHatchingChange( +date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?,role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable +as String?,fullName: freezed == fullName ? _self.fullName : fullName // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + +// dart format on diff --git a/packages/chicken/lib/data/models/response/poultry_hatching/poultry_hatching.g.dart b/packages/chicken/lib/data/models/response/poultry_hatching/poultry_hatching.g.dart new file mode 100644 index 0000000..25bfbcb --- /dev/null +++ b/packages/chicken/lib/data/models/response/poultry_hatching/poultry_hatching.g.dart @@ -0,0 +1,929 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'poultry_hatching.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +_PoultryHatching _$PoultryHatchingFromJson( + Map json, +) => _PoultryHatching( + id: (json['id'] as num?)?.toInt(), + poultry: json['poultry'] == null + ? null + : Poultry.fromJson(json['poultry'] as Map), + chainCompany: json['chain_company'] == null + ? null + : ChainCompany.fromJson(json['chain_company'] as Map), + age: (json['age'] as num?)?.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, + ), + managementHatchingAgeRange: json['management_hatching_age_range'] == null + ? null + : ManagementHatchingAgeRange.fromJson( + json['management_hatching_age_range'] as Map, + ), + key: json['key'] as String?, + createDate: json['create_date'] as String?, + modifyDate: json['modify_date'] as String?, + trash: json['trash'] as bool?, + hasChainCompany: json['has_chain_company'] as bool?, + poultryIdForeignKey: json['poultry_id_foreign_key'], + 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'] as String?, + predicateDate: json['predicate_date'], + 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'] == null + ? null + : Registrar.fromJson(json['registrar'] as Map), + 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'] as String?, + violationMessage: json['violation_message'] as String?, + violationImage: (json['violation_image'] as List?) + ?.map((e) => e as String) + .toList(), + violationReporter: json['violation_reporter'] as String?, + violationReportDate: json['violation_report_date'] as String?, + violationReportEditor: json['violation_report_editor'] as String?, + violationReportEditDate: json['violation_report_edit_date'] as String?, + totalLosses: (json['total_losses'] as num?)?.toInt(), + directLosses: (json['direct_losses'] as num?)?.toInt(), + directLossesInputer: json['direct_losses_inputer'] as String?, + directLossesDate: json['direct_losses_date'] as String?, + directLossesEditor: json['direct_losses_editor'] as String?, + directLossesLastEditDate: json['direct_losses_last_edit_date'] as String?, + endPeriodLossesInputer: json['end_period_losses_inputer'] as String?, + endPeriodLossesDate: json['end_period_losses_date'] as String?, + endPeriodLossesEditor: json['end_period_losses_editor'] as String?, + endPeriodLossesLastEditDate: + json['end_period_losses_last_edit_date'] as String?, + breedingUniqueId: json['breeding_unique_id'] as String?, + licenceNumber: json['licence_number'] as String?, + temporaryTrash: json['temporary_trash'] as bool?, + temporaryDeleted: json['temporary_deleted'] as bool?, + firstDateInputArchive: json['first_date_input_archive'], + 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'], + interactTypeName: json['interact_type_name'] as String?, + unionTypeName: json['union_type_name'], + certId: json['cert_id'], + increaseQuantity: (json['increase_quantity'] as num?)?.toInt(), + tenantFullname: json['tenant_fullname'] as String?, + tenantNationalCode: json['tenant_national_code'] as String?, + tenantMobile: json['tenant_mobile'] as String?, + tenantCity: json['tenant_city'] as String?, + hasTenant: json['has_tenant'] as bool?, + archiveDate: json['archive_date'], + createdBy: json['created_by'], + modifiedBy: json['modified_by'], +); + +Map _$PoultryHatchingToJson(_PoultryHatching instance) => + { + 'id': instance.id, + 'poultry': instance.poultry, + 'chain_company': instance.chainCompany, + 'age': instance.age, + 'inspection_losses': instance.inspectionLosses, + 'vet_farm': instance.vetFarm, + 'active_kill': instance.activeKill, + 'killing_info': instance.killingInfo, + 'free_governmental_info': instance.freeGovernmentalInfo, + 'management_hatching_age_range': instance.managementHatchingAgeRange, + 'key': instance.key, + 'create_date': instance.createDate, + 'modify_date': instance.modifyDate, + 'trash': instance.trash, + 'has_chain_company': instance.hasChainCompany, + 'poultry_id_foreign_key': instance.poultryIdForeignKey, + 'poultry_hatching_id_key': instance.poultryHatchingIdKey, + 'quantity': instance.quantity, + 'losses': instance.losses, + 'left_over': instance.leftOver, + 'killed_quantity': instance.killedQuantity, + 'extra_killed_quantity': instance.extraKilledQuantity, + 'governmental_killed_quantity': instance.governmentalKilledQuantity, + 'governmental_quantity': instance.governmentalQuantity, + 'free_killed_quantity': instance.freeKilledQuantity, + 'free_quantity': instance.freeQuantity, + 'chain_killed_quantity': instance.chainKilledQuantity, + 'chain_killed_weight': instance.chainKilledWeight, + 'out_province_killed_weight': instance.outProvinceKilledWeight, + 'out_province_killed_quantity': instance.outProvinceKilledQuantity, + 'export_killed_weight': instance.exportKilledWeight, + 'export_killed_quantity': instance.exportKilledQuantity, + 'total_commitment': instance.totalCommitment, + 'commitment_type': instance.commitmentType, + 'total_commitment_quantity': instance.totalCommitmentQuantity, + 'total_free_commitment_quantity': instance.totalFreeCommitmentQuantity, + 'total_free_commitment_weight': instance.totalFreeCommitmentWeight, + 'total_killed_weight': instance.totalKilledWeight, + 'total_average_killed_weight': instance.totalAverageKilledWeight, + 'request_left_over': instance.requestLeftOver, + 'hall': instance.hall, + 'date': instance.date, + 'predicate_date': instance.predicateDate, + 'chicken_breed': instance.chickenBreed, + 'period': instance.period, + 'allow_hatching': instance.allowHatching, + 'state': instance.state, + 'archive': instance.archive, + 'violation': instance.violation, + 'message': instance.message, + 'registrar': instance.registrar, + 'breed': instance.breed, + 'city_number': instance.cityNumber, + 'city_name': instance.cityName, + 'province_number': instance.provinceNumber, + 'province_name': instance.provinceName, + 'last_change': instance.lastChange, + 'chicken_age': instance.chickenAge, + 'now_age': instance.nowAge, + 'latest_hatching_change': instance.latestHatchingChange, + 'violation_report': instance.violationReport, + 'violation_message': instance.violationMessage, + 'violation_image': instance.violationImage, + 'violation_reporter': instance.violationReporter, + 'violation_report_date': instance.violationReportDate, + 'violation_report_editor': instance.violationReportEditor, + 'violation_report_edit_date': instance.violationReportEditDate, + 'total_losses': instance.totalLosses, + 'direct_losses': instance.directLosses, + 'direct_losses_inputer': instance.directLossesInputer, + 'direct_losses_date': instance.directLossesDate, + 'direct_losses_editor': instance.directLossesEditor, + 'direct_losses_last_edit_date': instance.directLossesLastEditDate, + 'end_period_losses_inputer': instance.endPeriodLossesInputer, + 'end_period_losses_date': instance.endPeriodLossesDate, + 'end_period_losses_editor': instance.endPeriodLossesEditor, + 'end_period_losses_last_edit_date': instance.endPeriodLossesLastEditDate, + 'breeding_unique_id': instance.breedingUniqueId, + 'licence_number': instance.licenceNumber, + 'temporary_trash': instance.temporaryTrash, + 'temporary_deleted': instance.temporaryDeleted, + 'first_date_input_archive': instance.firstDateInputArchive, + 'second_date_input_archive': instance.secondDateInputArchive, + 'input_archiver': instance.inputArchiver, + 'output_archive_date': instance.outputArchiveDate, + 'output_archiver': instance.outputArchiver, + 'bar_difference_request_weight': instance.barDifferenceRequestWeight, + 'bar_difference_request_quantity': instance.barDifferenceRequestQuantity, + 'health_certificate': instance.healthCertificate, + 'samasat_discharge_percentage': instance.samasatDischargePercentage, + 'person_type_name': instance.personTypeName, + 'interact_type_name': instance.interactTypeName, + 'union_type_name': instance.unionTypeName, + 'cert_id': instance.certId, + 'increase_quantity': instance.increaseQuantity, + 'tenant_fullname': instance.tenantFullname, + 'tenant_national_code': instance.tenantNationalCode, + 'tenant_mobile': instance.tenantMobile, + 'tenant_city': instance.tenantCity, + 'has_tenant': instance.hasTenant, + 'archive_date': instance.archiveDate, + 'created_by': instance.createdBy, + 'modified_by': instance.modifiedBy, + }; + +_Poultry _$PoultryFromJson(Map json) => _Poultry( + userprofile: json['userprofile'] == null + ? null + : UserProfile.fromJson(json['userprofile'] as Map), + address: json['address'] == null + ? null + : Address.fromJson(json['address'] as Map), + poultryOwner: json['poultry_owner'], + poultryTenant: json['poultry_tenant'] == null + ? null + : PoultryTenant.fromJson(json['poultry_tenant'] as Map), + hatching: (json['hatching'] as List?) + ?.map((e) => Hatching.fromJson(e as Map)) + .toList(), + registerVetHalls: (json['register_vet_halls'] as List?) + ?.map((e) => (e as num).toInt()) + .toList(), + allow: json['allow'] == null + ? null + : Allow.fromJson(json['allow'] as Map), + provinceAllowChooseKillHouse: json['province_allow_choose_kill_house'] == null + ? null + : ProvinceAllowChooseKillHouse.fromJson( + json['province_allow_choose_kill_house'] as Map, + ), + provinceAllowSellFree: json['province_allow_sell_free'] as bool?, + vetFarm: json['vet_farm'] == null + ? null + : VetFarm.fromJson(json['vet_farm'] as Map), + lastHatchingDiffrentRequestQuantity: + json['last_hatching_diffrent_request_quantity'] == null + ? null + : LastHatchingDiffrentRequestQuantity.fromJson( + json['last_hatching_diffrent_request_quantity'] + as Map, + ), + userBankInfo: json['user_bank_info'] == null + ? null + : UserBankInfo.fromJson(json['user_bank_info'] as Map), + leftOverOwnHatching: (json['left_over_own_hatching'] as num?)?.toInt(), + key: json['key'] as String?, + trash: json['trash'] as bool?, + ownerIdForeignKey: (json['owner_id_foreign_key'] as num?)?.toInt(), + userIdForeignKey: (json['user_id_foreign_key'] as num?)?.toInt(), + addressIdForeignKey: (json['address_id_foreign_key'] as num?)?.toInt(), + hasChainCompany: json['has_chain_company'] as bool?, + userBankIdForeignKey: (json['user_bank_id_foreign_key'] as num?)?.toInt(), + cityOperator: json['city_operator'] as String?, + unitName: json['unit_name'] as String?, + gisCode: json['gis_code'] as String?, + operatingLicenceCapacity: (json['operating_licence_capacity'] as num?) + ?.toInt(), + numberOfHalls: (json['number_of_halls'] as num?)?.toInt(), + tenant: json['tenant'] as bool?, + hasTenant: json['has_tenant'] as bool?, + personType: json['person_type'], + economicCode: json['economic_code'], + systemCode: json['system_code'] as String?, + epidemiologicalCode: json['epidemiological_code'] as String?, + breedingUniqueId: json['breeding_unique_id'] as String?, + totalCapacity: (json['total_capacity'] as num?)?.toInt(), + licenceNumber: json['licence_number'] as String?, + healthCertificateNumber: json['health_certificate_number'] as String?, + numberOfRequests: (json['number_of_requests'] as num?)?.toInt(), + hatchingDate: json['hatching_date'] as String?, + lastPartyDate: json['last_party_date'] as String?, + numberOfIncubators: (json['number_of_incubators'] as num?)?.toInt(), + herdAgeByDay: (json['herd_age_by_day'] as num?)?.toInt(), + herdAgeByWeek: (json['herd_age_by_week'] as num?)?.toInt(), + numberOfParty: (json['number_of_party'] as num?)?.toInt(), + communicationType: json['communication_type'], + cooperative: json['cooperative'], + dateOfRegister: json['date_of_register'] as String?, + unitStatus: json['unit_status'], + active: json['active'] as bool?, + identityDocuments: json['identity_documents'], + samasatUserCode: json['samasat_user_code'], + baseOrder: json['base_order'], + incubationDate: json['incubation_date'] as String?, + walletAmount: (json['wallet_amount'] as num?)?.toInt(), + city: (json['city'] as num?)?.toInt(), + 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?, + walletIdForeignKey: (json['wallet_id_foreign_key'] as num?)?.toInt(), + poultryIdKey: (json['poultry_id_key'] as num?)?.toInt(), + lat: (json['lat'] as num?)?.toDouble(), + long: (json['long'] as num?)?.toDouble(), + date: json['date'], + killingAveAge: (json['killing_ave_age'] as num?)?.toInt(), + activeLeftOver: (json['active_left_over'] as num?)?.toInt(), + killingAveCount: (json['killing_ave_count'] as num?)?.toInt(), + killingAveWeight: (json['killing_ave_weight'] as num?)?.toInt(), + killingLiveWeight: (json['killing_live_weight'] as num?)?.toInt(), + killingCarcassesWeight: (json['killing_carcasses_weight'] as num?)?.toInt(), + killingLossWeightPercent: (json['killing_loss_weight_percent'] as num?) + ?.toInt(), + realKillingAveWeight: (json['real_killing_ave_weight'] as num?)?.toDouble(), + realKillingLiveWeight: (json['real_killing_live_weight'] as num?)?.toDouble(), + realKillingCarcassesWeight: (json['real_killing_carcasses_weight'] as num?) + ?.toDouble(), + realKillingLossWeightPercent: + (json['real_killing_loss_weight_percent'] as num?)?.toDouble(), + interestLicenseId: json['interest_license_id'], + orderLimit: json['order_limit'] as bool?, + owner: json['owner'], + wallet: (json['wallet'] as num?)?.toInt(), +); + +Map _$PoultryToJson(_Poultry instance) => { + 'userprofile': instance.userprofile, + 'address': instance.address, + 'poultry_owner': instance.poultryOwner, + 'poultry_tenant': instance.poultryTenant, + 'hatching': instance.hatching, + 'register_vet_halls': instance.registerVetHalls, + 'allow': instance.allow, + 'province_allow_choose_kill_house': instance.provinceAllowChooseKillHouse, + 'province_allow_sell_free': instance.provinceAllowSellFree, + 'vet_farm': instance.vetFarm, + 'last_hatching_diffrent_request_quantity': + instance.lastHatchingDiffrentRequestQuantity, + 'user_bank_info': instance.userBankInfo, + 'left_over_own_hatching': instance.leftOverOwnHatching, + 'key': instance.key, + 'trash': instance.trash, + 'owner_id_foreign_key': instance.ownerIdForeignKey, + 'user_id_foreign_key': instance.userIdForeignKey, + 'address_id_foreign_key': instance.addressIdForeignKey, + 'has_chain_company': instance.hasChainCompany, + 'user_bank_id_foreign_key': instance.userBankIdForeignKey, + 'city_operator': instance.cityOperator, + 'unit_name': instance.unitName, + 'gis_code': instance.gisCode, + 'operating_licence_capacity': instance.operatingLicenceCapacity, + 'number_of_halls': instance.numberOfHalls, + 'tenant': instance.tenant, + 'has_tenant': instance.hasTenant, + 'person_type': instance.personType, + 'economic_code': instance.economicCode, + 'system_code': instance.systemCode, + 'epidemiological_code': instance.epidemiologicalCode, + 'breeding_unique_id': instance.breedingUniqueId, + 'total_capacity': instance.totalCapacity, + 'licence_number': instance.licenceNumber, + 'health_certificate_number': instance.healthCertificateNumber, + 'number_of_requests': instance.numberOfRequests, + 'hatching_date': instance.hatchingDate, + 'last_party_date': instance.lastPartyDate, + 'number_of_incubators': instance.numberOfIncubators, + 'herd_age_by_day': instance.herdAgeByDay, + 'herd_age_by_week': instance.herdAgeByWeek, + 'number_of_party': instance.numberOfParty, + 'communication_type': instance.communicationType, + 'cooperative': instance.cooperative, + 'date_of_register': instance.dateOfRegister, + 'unit_status': instance.unitStatus, + 'active': instance.active, + 'identity_documents': instance.identityDocuments, + 'samasat_user_code': instance.samasatUserCode, + 'base_order': instance.baseOrder, + 'incubation_date': instance.incubationDate, + 'wallet_amount': instance.walletAmount, + 'city': instance.city, + 'city_number': instance.cityNumber, + 'city_name': instance.cityName, + 'province_number': instance.provinceNumber, + 'province_name': instance.provinceName, + 'wallet_id_foreign_key': instance.walletIdForeignKey, + 'poultry_id_key': instance.poultryIdKey, + 'lat': instance.lat, + 'long': instance.long, + 'date': instance.date, + 'killing_ave_age': instance.killingAveAge, + 'active_left_over': instance.activeLeftOver, + 'killing_ave_count': instance.killingAveCount, + 'killing_ave_weight': instance.killingAveWeight, + 'killing_live_weight': instance.killingLiveWeight, + 'killing_carcasses_weight': instance.killingCarcassesWeight, + 'killing_loss_weight_percent': instance.killingLossWeightPercent, + 'real_killing_ave_weight': instance.realKillingAveWeight, + 'real_killing_live_weight': instance.realKillingLiveWeight, + 'real_killing_carcasses_weight': instance.realKillingCarcassesWeight, + 'real_killing_loss_weight_percent': instance.realKillingLossWeightPercent, + 'interest_license_id': instance.interestLicenseId, + 'order_limit': instance.orderLimit, + 'owner': instance.owner, + 'wallet': instance.wallet, +}; + +_UserProfile _$UserProfileFromJson(Map json) => _UserProfile( + userKey: json['user_key'] as String?, + baseOrder: (json['base_order'] as num?)?.toInt(), + fullName: json['full_name'] as String?, + mobile: json['mobile'] as String?, + city: json['city'] as String?, + province: json['province'] as String?, + breedingUniqueId: json['breeding_unique_id'] as String?, +); + +Map _$UserProfileToJson(_UserProfile instance) => + { + 'user_key': instance.userKey, + 'base_order': instance.baseOrder, + 'full_name': instance.fullName, + 'mobile': instance.mobile, + 'city': instance.city, + 'province': instance.province, + 'breeding_unique_id': instance.breedingUniqueId, + }; + +_Address _$AddressFromJson(Map json) => _Address( + province: json['province'] == null + ? null + : Province.fromJson(json['province'] as Map), + city: json['city'] == null + ? null + : City.fromJson(json['city'] as Map), + address: json['address'] as String?, + postalCode: json['postal_code'] as String?, +); + +Map _$AddressToJson(_Address instance) => { + 'province': instance.province, + 'city': instance.city, + 'address': instance.address, + 'postal_code': instance.postalCode, +}; + +_Province _$ProvinceFromJson(Map json) => + _Province(key: json['key'] as String?, name: json['name'] as String?); + +Map _$ProvinceToJson(_Province instance) => { + 'key': instance.key, + 'name': instance.name, +}; + +_City _$CityFromJson(Map json) => + _City(key: json['key'] as String?, name: json['name'] as String?); + +Map _$CityToJson(_City instance) => { + 'key': instance.key, + 'name': instance.name, +}; + +_PoultryTenant _$PoultryTenantFromJson(Map json) => + _PoultryTenant( + key: json['key'] as String?, + firstName: json['first_name'] as String?, + lastName: json['last_name'] as String?, + fullName: json['full_name'] as String?, + mobile: json['mobile'] as String?, + nationalId: json['national_id'] as String?, + breedingUniqueId: json['breeding_unique_id'] as String?, + ); + +Map _$PoultryTenantToJson(_PoultryTenant instance) => + { + 'key': instance.key, + 'first_name': instance.firstName, + 'last_name': instance.lastName, + 'full_name': instance.fullName, + 'mobile': instance.mobile, + 'national_id': instance.nationalId, + 'breeding_unique_id': instance.breedingUniqueId, + }; + +_Hatching _$HatchingFromJson(Map json) => _Hatching( + poultryKey: json['poultry_key'] as String?, + poultryHatchingKey: json['poultry_hatching_key'] as String?, + poultry: json['poultry'] as String?, + quantity: (json['quantity'] as num?)?.toInt(), + losses: (json['losses'] as num?)?.toInt(), + leftOver: (json['left_over'] as num?)?.toInt(), + outProvinceKilledQuantity: (json['out_province_killed_quantity'] as num?) + ?.toDouble(), + exportKilledQuantity: (json['export_killed_quantity'] as num?)?.toDouble(), + hall: (json['hall'] as num?)?.toInt(), + date: json['date'] as String?, + period: (json['period'] as num?)?.toInt(), + state: json['state'] as String?, + age: (json['age'] as num?)?.toInt(), +); + +Map _$HatchingToJson(_Hatching instance) => { + 'poultry_key': instance.poultryKey, + 'poultry_hatching_key': instance.poultryHatchingKey, + 'poultry': instance.poultry, + 'quantity': instance.quantity, + 'losses': instance.losses, + 'left_over': instance.leftOver, + 'out_province_killed_quantity': instance.outProvinceKilledQuantity, + 'export_killed_quantity': instance.exportKilledQuantity, + 'hall': instance.hall, + 'date': instance.date, + 'period': instance.period, + 'state': instance.state, + 'age': instance.age, +}; + +_Allow _$AllowFromJson(Map json) => + _Allow(city: json['city'] as bool?, province: json['province'] as bool?); + +Map _$AllowToJson(_Allow instance) => { + 'city': instance.city, + 'province': instance.province, +}; + +_ProvinceAllowChooseKillHouse _$ProvinceAllowChooseKillHouseFromJson( + Map json, +) => _ProvinceAllowChooseKillHouse( + allowState: json['allow_state'] as bool?, + mandatory: json['mandatory'] as bool?, +); + +Map _$ProvinceAllowChooseKillHouseToJson( + _ProvinceAllowChooseKillHouse instance, +) => { + 'allow_state': instance.allowState, + 'mandatory': instance.mandatory, +}; + +_VetFarm _$VetFarmFromJson(Map json) => _VetFarm( + fullName: json['full_name'] as String?, + mobile: json['mobile'] as String?, + city: json['city'] as String?, + province: json['province'] as String?, + vetFarmFullName: json['vet_farm_full_name'] as String?, + vetFarmMobile: json['vet_farm_mobile'] as String?, +); + +Map _$VetFarmToJson(_VetFarm instance) => { + 'full_name': instance.fullName, + 'mobile': instance.mobile, + 'city': instance.city, + 'province': instance.province, + 'vet_farm_full_name': instance.vetFarmFullName, + 'vet_farm_mobile': instance.vetFarmMobile, +}; + +_LastHatchingDiffrentRequestQuantity +_$LastHatchingDiffrentRequestQuantityFromJson(Map json) => + _LastHatchingDiffrentRequestQuantity( + leftExportQuantity: json['left_export_quantity'], + leftPoultryOutProvince: (json['left_poultry_out_province'] as num?) + ?.toDouble(), + lastHatchingRemainQuantity: + (json['last_hatching_remain_quantity'] as num?)?.toInt(), + ); + +Map _$LastHatchingDiffrentRequestQuantityToJson( + _LastHatchingDiffrentRequestQuantity instance, +) => { + 'left_export_quantity': instance.leftExportQuantity, + 'left_poultry_out_province': instance.leftPoultryOutProvince, + 'last_hatching_remain_quantity': instance.lastHatchingRemainQuantity, +}; + +_UserBankInfo _$UserBankInfoFromJson(Map json) => + _UserBankInfo( + key: json['key'] as String?, + nameOfBankUser: json['name_of_bank_user'] as String?, + bankName: json['bank_name'] as String?, + card: json['card'] as String?, + shaba: json['shaba'] as String?, + account: json['account'] as String?, + userBankIdKey: (json['user_bank_id_key'] as num?)?.toInt(), + provinceName: json['province_name'] as String?, + ); + +Map _$UserBankInfoToJson(_UserBankInfo instance) => + { + 'key': instance.key, + 'name_of_bank_user': instance.nameOfBankUser, + 'bank_name': instance.bankName, + 'card': instance.card, + 'shaba': instance.shaba, + 'account': instance.account, + 'user_bank_id_key': instance.userBankIdKey, + 'province_name': instance.provinceName, + }; + +_ChainCompany _$ChainCompanyFromJson(Map json) => + _ChainCompany( + user: json['user'] == null + ? null + : ChainUser.fromJson(json['user'] as Map), + userBankInfo: json['user_bank_info'], + key: json['key'] as String?, + trash: json['trash'] as bool?, + name: json['name'] as String?, + city: json['city'], + province: json['province'], + postalCode: json['postal_code'], + address: json['address'], + wallet: (json['wallet'] as num?)?.toInt(), + ); + +Map _$ChainCompanyToJson(_ChainCompany instance) => + { + 'user': instance.user, + 'user_bank_info': instance.userBankInfo, + 'key': instance.key, + 'trash': instance.trash, + 'name': instance.name, + 'city': instance.city, + 'province': instance.province, + 'postal_code': instance.postalCode, + 'address': instance.address, + 'wallet': instance.wallet, + }; + +_ChainUser _$ChainUserFromJson(Map json) => _ChainUser( + role: (json['role'] as List?)?.map((e) => e as String).toList(), + city: json['city'] as String?, + province: json['province'] as String?, + key: json['key'] as String?, + userGateWayId: json['user_gate_way_id'] as String?, + userDjangoIdForeignKey: json['user_django_id_foreign_key'], + provinceIdForeignKey: json['province_id_foreign_key'], + cityIdForeignKey: json['city_id_foreign_key'], + systemUserProfileIdKey: json['system_user_profile_id_key'], + fullname: json['fullname'] as String?, + firstName: json['first_name'] as String?, + lastName: json['last_name'] as String?, + nationalCode: json['national_code'], + nationalCodeImage: json['national_code_image'], + nationalId: json['national_id'] as String?, + mobile: json['mobile'] as String?, + birthday: json['birthday'], + image: json['image'], + password: json['password'] as String?, + active: json['active'] as bool?, + state: json['state'] == null + ? null + : ChainUserState.fromJson(json['state'] as Map), + baseOrder: (json['base_order'] as num?)?.toInt(), + 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?, + unitName: json['unit_name'] as String?, + unitNationalId: json['unit_national_id'] as String?, + unitRegistrationNumber: json['unit_registration_number'] as String?, + unitEconomicalNumber: json['unit_economical_number'] as String?, + unitProvince: json['unit_province'] as String?, + unitCity: json['unit_city'] as String?, + unitPostalCode: json['unit_postal_code'] as String?, + unitAddress: json['unit_address'] as String?, +); + +Map _$ChainUserToJson(_ChainUser instance) => + { + 'role': instance.role, + 'city': instance.city, + 'province': instance.province, + 'key': instance.key, + 'user_gate_way_id': instance.userGateWayId, + 'user_django_id_foreign_key': instance.userDjangoIdForeignKey, + 'province_id_foreign_key': instance.provinceIdForeignKey, + 'city_id_foreign_key': instance.cityIdForeignKey, + 'system_user_profile_id_key': instance.systemUserProfileIdKey, + 'fullname': instance.fullname, + 'first_name': instance.firstName, + 'last_name': instance.lastName, + 'national_code': instance.nationalCode, + 'national_code_image': instance.nationalCodeImage, + 'national_id': instance.nationalId, + 'mobile': instance.mobile, + 'birthday': instance.birthday, + 'image': instance.image, + 'password': instance.password, + 'active': instance.active, + 'state': instance.state, + 'base_order': instance.baseOrder, + 'city_number': instance.cityNumber, + 'city_name': instance.cityName, + 'province_number': instance.provinceNumber, + 'province_name': instance.provinceName, + 'unit_name': instance.unitName, + 'unit_national_id': instance.unitNationalId, + 'unit_registration_number': instance.unitRegistrationNumber, + 'unit_economical_number': instance.unitEconomicalNumber, + 'unit_province': instance.unitProvince, + 'unit_city': instance.unitCity, + 'unit_postal_code': instance.unitPostalCode, + 'unit_address': instance.unitAddress, + }; + +_ChainUserState _$ChainUserStateFromJson(Map json) => + _ChainUserState( + city: json['city'] as String?, + image: json['image'] as String?, + mobile: json['mobile'] as String?, + birthday: json['birthday'] as String?, + province: json['province'] as String?, + lastName: json['last_name'] as String?, + firstName: json['first_name'] as String?, + nationalId: json['national_id'] as String?, + nationalCode: json['national_code'] as String?, + ); + +Map _$ChainUserStateToJson(_ChainUserState instance) => + { + 'city': instance.city, + 'image': instance.image, + 'mobile': instance.mobile, + 'birthday': instance.birthday, + 'province': instance.province, + 'last_name': instance.lastName, + 'first_name': instance.firstName, + 'national_id': instance.nationalId, + 'national_code': instance.nationalCode, + }; + +_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, +}; + +_ManagementHatchingAgeRange _$ManagementHatchingAgeRangeFromJson( + Map json, +) => _ManagementHatchingAgeRange( + fromWeight: (json['from_weight'] as num?)?.toDouble(), + toWeight: (json['to_weight'] as num?)?.toDouble(), +); + +Map _$ManagementHatchingAgeRangeToJson( + _ManagementHatchingAgeRange instance, +) => { + 'from_weight': instance.fromWeight, + 'to_weight': instance.toWeight, +}; + +_Registrar _$RegistrarFromJson(Map json) => _Registrar( + date: json['date'] as String?, + role: json['role'] as String?, + fullname: json['fullname'] as String?, +); + +Map _$RegistrarToJson(_Registrar instance) => + { + 'date': instance.date, + 'role': instance.role, + 'fullname': instance.fullname, + }; + +_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'] as String?, + role: json['role'] as String?, + type: json['type'] as String?, + fullName: json['full_name'] as String?, +); + +Map _$LastChangeToJson(_LastChange instance) => + { + 'date': instance.date, + 'role': instance.role, + 'type': instance.type, + 'full_name': instance.fullName, + }; + +_LatestHatchingChange _$LatestHatchingChangeFromJson( + Map json, +) => _LatestHatchingChange( + date: json['date'] as String?, + role: json['role'] as String?, + fullName: json['full_name'] as String?, +); + +Map _$LatestHatchingChangeToJson( + _LatestHatchingChange instance, +) => { + 'date': instance.date, + 'role': instance.role, + 'full_name': instance.fullName, +}; diff --git a/packages/chicken/lib/data/models/response/poultry_order/poultry_order.dart b/packages/chicken/lib/data/models/response/poultry_order/poultry_order.dart new file mode 100644 index 0000000..607ef0b --- /dev/null +++ b/packages/chicken/lib/data/models/response/poultry_order/poultry_order.dart @@ -0,0 +1,151 @@ +import 'package:freezed_annotation/freezed_annotation.dart'; + +part 'poultry_order.freezed.dart'; +part 'poultry_order.g.dart'; + +@freezed +abstract class PoultryOrder with _$PoultryOrder { + const factory PoultryOrder({ + String? key, + int? id, + Poultry? poultry, + int? orderCode, + String? createDate, + String? sendDate, + List? killHouseList, + int? firstQuantity, + int? quantity, + bool? directBuying, + bool? union, + double? amount, + String? financialOperation, + int? remainQuantity, + @JsonKey(name: "Index_weight") double? indexWeight, + Hatching? hatching, + String? finalState, + int? losses, + String? provinceState, + String? stateProcess, + Registrar? registrar, + VetFarm? vetFarm, + bool? freeSaleInProvince, + bool? freezing, + bool? export, + String? cityCheckRequest, + bool? market, + }) = _PoultryOrder; + + factory PoultryOrder.fromJson(Map json) => _$PoultryOrderFromJson(json); +} + +@freezed +abstract class Poultry with _$Poultry { + const factory Poultry({ + String? unitName, + String? cityOperator, + User? user, + int? totalCapacity, + Address? address, + String? breedingUniqueId, + String? systemCode, + }) = _Poultry; + + factory Poultry.fromJson(Map json) => _$PoultryFromJson(json); +} + +@freezed +abstract class User with _$User { + const factory User({ + String? fullName, + String? firstName, + String? lastName, + int? baseOrder, + String? mobile, + String? nationalId, + String? nationalCode, + String? key, + City? city, + String? unitName, + String? unitNationalId, + String? unitRegistrationNumber, + String? unitEconomicalNumber, + String? unitProvince, + String? unitCity, + String? unitPostalCode, + String? unitAddress, + }) = _User; + + factory User.fromJson(Map json) => _$UserFromJson(json); +} + +@freezed +abstract class City with _$City { + const factory City({ + int? id, + String? key, + String? createDate, + String? modifyDate, + bool? trash, + int? provinceIdForeignKey, + int? cityIdKey, + String? name, + double? productPrice, + bool? provinceCenter, + int? cityNumber, + String? cityName, + int? provinceNumber, + String? provinceName, + dynamic createdBy, + dynamic modifiedBy, + int? province, + }) = _City; + + factory City.fromJson(Map json) => _$CityFromJson(json); +} + +@freezed +abstract class Address with _$Address { + const factory Address({Province? province, City? city, String? address, String? postalCode}) = + _Address; + + factory Address.fromJson(Map json) => _$AddressFromJson(json); +} + +@freezed +abstract class Province with _$Province { + const factory Province({String? key, String? name}) = _Province; + + factory Province.fromJson(Map json) => _$ProvinceFromJson(json); +} + +@freezed +abstract class Hatching with _$Hatching { + const factory Hatching({ + int? age, + int? leftOver, + String? fileState, + String? hatchingDate, + String? allowHatching, + int? inspectionLosses, + double? inspectionLossesPercent, + double? totalLossesPercent, + double? poultryLossesPercent, + double? totalWeight, + }) = _Hatching; + + factory Hatching.fromJson(Map json) => _$HatchingFromJson(json); +} + +@freezed +abstract class Registrar with _$Registrar { + const factory Registrar({String? date, String? role, String? fullName}) = _Registrar; + + factory Registrar.fromJson(Map json) => _$RegistrarFromJson(json); +} + +@freezed +abstract class VetFarm with _$VetFarm { + const factory VetFarm({String? vetFarmFullName, String? vetFarmMobile}) = _VetFarm; + + factory VetFarm.fromJson(Map json) => _$VetFarmFromJson(json); +} diff --git a/packages/chicken/lib/data/models/response/poultry_order/poultry_order.freezed.dart b/packages/chicken/lib/data/models/response/poultry_order/poultry_order.freezed.dart new file mode 100644 index 0000000..cf022e3 --- /dev/null +++ b/packages/chicken/lib/data/models/response/poultry_order/poultry_order.freezed.dart @@ -0,0 +1,2845 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// coverage:ignore-file +// ignore_for_file: type=lint +// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark + +part of 'poultry_order.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; + +/// @nodoc +mixin _$PoultryOrder { + + String? get key; int? get id; Poultry? get poultry; int? get orderCode; String? get createDate; String? get sendDate; List? get killHouseList; int? get firstQuantity; int? get quantity; bool? get directBuying; bool? get union; double? get amount; String? get financialOperation; int? get remainQuantity;@JsonKey(name: "Index_weight") double? get indexWeight; Hatching? get hatching; String? get finalState; int? get losses; String? get provinceState; String? get stateProcess; Registrar? get registrar; VetFarm? get vetFarm; bool? get freeSaleInProvince; bool? get freezing; bool? get export; String? get cityCheckRequest; bool? get market; +/// Create a copy of PoultryOrder +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$PoultryOrderCopyWith get copyWith => _$PoultryOrderCopyWithImpl(this as PoultryOrder, _$identity); + + /// Serializes this PoultryOrder to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is PoultryOrder&&(identical(other.key, key) || other.key == key)&&(identical(other.id, id) || other.id == id)&&(identical(other.poultry, poultry) || other.poultry == poultry)&&(identical(other.orderCode, orderCode) || other.orderCode == orderCode)&&(identical(other.createDate, createDate) || other.createDate == createDate)&&(identical(other.sendDate, sendDate) || other.sendDate == sendDate)&&const DeepCollectionEquality().equals(other.killHouseList, killHouseList)&&(identical(other.firstQuantity, firstQuantity) || other.firstQuantity == firstQuantity)&&(identical(other.quantity, quantity) || other.quantity == quantity)&&(identical(other.directBuying, directBuying) || other.directBuying == directBuying)&&(identical(other.union, union) || other.union == union)&&(identical(other.amount, amount) || other.amount == amount)&&(identical(other.financialOperation, financialOperation) || other.financialOperation == financialOperation)&&(identical(other.remainQuantity, remainQuantity) || other.remainQuantity == remainQuantity)&&(identical(other.indexWeight, indexWeight) || other.indexWeight == indexWeight)&&(identical(other.hatching, hatching) || other.hatching == hatching)&&(identical(other.finalState, finalState) || other.finalState == finalState)&&(identical(other.losses, losses) || other.losses == losses)&&(identical(other.provinceState, provinceState) || other.provinceState == provinceState)&&(identical(other.stateProcess, stateProcess) || other.stateProcess == stateProcess)&&(identical(other.registrar, registrar) || other.registrar == registrar)&&(identical(other.vetFarm, vetFarm) || other.vetFarm == vetFarm)&&(identical(other.freeSaleInProvince, freeSaleInProvince) || other.freeSaleInProvince == freeSaleInProvince)&&(identical(other.freezing, freezing) || other.freezing == freezing)&&(identical(other.export, export) || other.export == export)&&(identical(other.cityCheckRequest, cityCheckRequest) || other.cityCheckRequest == cityCheckRequest)&&(identical(other.market, market) || other.market == market)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,key,id,poultry,orderCode,createDate,sendDate,const DeepCollectionEquality().hash(killHouseList),firstQuantity,quantity,directBuying,union,amount,financialOperation,remainQuantity,indexWeight,hatching,finalState,losses,provinceState,stateProcess,registrar,vetFarm,freeSaleInProvince,freezing,export,cityCheckRequest,market]); + +@override +String toString() { + return 'PoultryOrder(key: $key, id: $id, poultry: $poultry, orderCode: $orderCode, createDate: $createDate, sendDate: $sendDate, killHouseList: $killHouseList, firstQuantity: $firstQuantity, quantity: $quantity, directBuying: $directBuying, union: $union, amount: $amount, financialOperation: $financialOperation, remainQuantity: $remainQuantity, indexWeight: $indexWeight, hatching: $hatching, finalState: $finalState, losses: $losses, provinceState: $provinceState, stateProcess: $stateProcess, registrar: $registrar, vetFarm: $vetFarm, freeSaleInProvince: $freeSaleInProvince, freezing: $freezing, export: $export, cityCheckRequest: $cityCheckRequest, market: $market)'; +} + + +} + +/// @nodoc +abstract mixin class $PoultryOrderCopyWith<$Res> { + factory $PoultryOrderCopyWith(PoultryOrder value, $Res Function(PoultryOrder) _then) = _$PoultryOrderCopyWithImpl; +@useResult +$Res call({ + String? key, int? id, Poultry? poultry, int? orderCode, String? createDate, String? sendDate, List? killHouseList, int? firstQuantity, int? quantity, bool? directBuying, bool? union, double? amount, String? financialOperation, int? remainQuantity,@JsonKey(name: "Index_weight") double? indexWeight, Hatching? hatching, String? finalState, int? losses, String? provinceState, String? stateProcess, Registrar? registrar, VetFarm? vetFarm, bool? freeSaleInProvince, bool? freezing, bool? export, String? cityCheckRequest, bool? market +}); + + +$PoultryCopyWith<$Res>? get poultry;$HatchingCopyWith<$Res>? get hatching;$RegistrarCopyWith<$Res>? get registrar;$VetFarmCopyWith<$Res>? get vetFarm; + +} +/// @nodoc +class _$PoultryOrderCopyWithImpl<$Res> + implements $PoultryOrderCopyWith<$Res> { + _$PoultryOrderCopyWithImpl(this._self, this._then); + + final PoultryOrder _self; + final $Res Function(PoultryOrder) _then; + +/// Create a copy of PoultryOrder +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? key = freezed,Object? id = freezed,Object? poultry = freezed,Object? orderCode = freezed,Object? createDate = freezed,Object? sendDate = freezed,Object? killHouseList = freezed,Object? firstQuantity = freezed,Object? quantity = freezed,Object? directBuying = freezed,Object? union = freezed,Object? amount = freezed,Object? financialOperation = freezed,Object? remainQuantity = freezed,Object? indexWeight = freezed,Object? hatching = freezed,Object? finalState = freezed,Object? losses = freezed,Object? provinceState = freezed,Object? stateProcess = freezed,Object? registrar = freezed,Object? vetFarm = freezed,Object? freeSaleInProvince = freezed,Object? freezing = freezed,Object? export = freezed,Object? cityCheckRequest = freezed,Object? market = freezed,}) { + return _then(_self.copyWith( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable +as int?,poultry: freezed == poultry ? _self.poultry : poultry // ignore: cast_nullable_to_non_nullable +as Poultry?,orderCode: freezed == orderCode ? _self.orderCode : orderCode // ignore: cast_nullable_to_non_nullable +as int?,createDate: freezed == createDate ? _self.createDate : createDate // ignore: cast_nullable_to_non_nullable +as String?,sendDate: freezed == sendDate ? _self.sendDate : sendDate // ignore: cast_nullable_to_non_nullable +as String?,killHouseList: freezed == killHouseList ? _self.killHouseList : killHouseList // ignore: cast_nullable_to_non_nullable +as List?,firstQuantity: freezed == firstQuantity ? _self.firstQuantity : firstQuantity // ignore: cast_nullable_to_non_nullable +as int?,quantity: freezed == quantity ? _self.quantity : quantity // ignore: cast_nullable_to_non_nullable +as int?,directBuying: freezed == directBuying ? _self.directBuying : directBuying // ignore: cast_nullable_to_non_nullable +as bool?,union: freezed == union ? _self.union : union // ignore: cast_nullable_to_non_nullable +as bool?,amount: freezed == amount ? _self.amount : amount // ignore: cast_nullable_to_non_nullable +as double?,financialOperation: freezed == financialOperation ? _self.financialOperation : financialOperation // ignore: cast_nullable_to_non_nullable +as String?,remainQuantity: freezed == remainQuantity ? _self.remainQuantity : remainQuantity // ignore: cast_nullable_to_non_nullable +as int?,indexWeight: freezed == indexWeight ? _self.indexWeight : indexWeight // ignore: cast_nullable_to_non_nullable +as double?,hatching: freezed == hatching ? _self.hatching : hatching // ignore: cast_nullable_to_non_nullable +as Hatching?,finalState: freezed == finalState ? _self.finalState : finalState // ignore: cast_nullable_to_non_nullable +as String?,losses: freezed == losses ? _self.losses : losses // ignore: cast_nullable_to_non_nullable +as int?,provinceState: freezed == provinceState ? _self.provinceState : provinceState // ignore: cast_nullable_to_non_nullable +as String?,stateProcess: freezed == stateProcess ? _self.stateProcess : stateProcess // ignore: cast_nullable_to_non_nullable +as String?,registrar: freezed == registrar ? _self.registrar : registrar // ignore: cast_nullable_to_non_nullable +as Registrar?,vetFarm: freezed == vetFarm ? _self.vetFarm : vetFarm // ignore: cast_nullable_to_non_nullable +as VetFarm?,freeSaleInProvince: freezed == freeSaleInProvince ? _self.freeSaleInProvince : freeSaleInProvince // ignore: cast_nullable_to_non_nullable +as bool?,freezing: freezed == freezing ? _self.freezing : freezing // ignore: cast_nullable_to_non_nullable +as bool?,export: freezed == export ? _self.export : export // ignore: cast_nullable_to_non_nullable +as bool?,cityCheckRequest: freezed == cityCheckRequest ? _self.cityCheckRequest : cityCheckRequest // ignore: cast_nullable_to_non_nullable +as String?,market: freezed == market ? _self.market : market // ignore: cast_nullable_to_non_nullable +as bool?, + )); +} +/// Create a copy of PoultryOrder +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$PoultryCopyWith<$Res>? get poultry { + if (_self.poultry == null) { + return null; + } + + return $PoultryCopyWith<$Res>(_self.poultry!, (value) { + return _then(_self.copyWith(poultry: value)); + }); +}/// Create a copy of PoultryOrder +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$HatchingCopyWith<$Res>? get hatching { + if (_self.hatching == null) { + return null; + } + + return $HatchingCopyWith<$Res>(_self.hatching!, (value) { + return _then(_self.copyWith(hatching: value)); + }); +}/// Create a copy of PoultryOrder +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$RegistrarCopyWith<$Res>? get registrar { + if (_self.registrar == null) { + return null; + } + + return $RegistrarCopyWith<$Res>(_self.registrar!, (value) { + return _then(_self.copyWith(registrar: value)); + }); +}/// Create a copy of PoultryOrder +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$VetFarmCopyWith<$Res>? get vetFarm { + if (_self.vetFarm == null) { + return null; + } + + return $VetFarmCopyWith<$Res>(_self.vetFarm!, (value) { + return _then(_self.copyWith(vetFarm: value)); + }); +} +} + + +/// Adds pattern-matching-related methods to [PoultryOrder]. +extension PoultryOrderPatterns on PoultryOrder { +/// 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( _PoultryOrder value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _PoultryOrder() 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( _PoultryOrder value) $default,){ +final _that = this; +switch (_that) { +case _PoultryOrder(): +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( _PoultryOrder value)? $default,){ +final _that = this; +switch (_that) { +case _PoultryOrder() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? key, int? id, Poultry? poultry, int? orderCode, String? createDate, String? sendDate, List? killHouseList, int? firstQuantity, int? quantity, bool? directBuying, bool? union, double? amount, String? financialOperation, int? remainQuantity, @JsonKey(name: "Index_weight") double? indexWeight, Hatching? hatching, String? finalState, int? losses, String? provinceState, String? stateProcess, Registrar? registrar, VetFarm? vetFarm, bool? freeSaleInProvince, bool? freezing, bool? export, String? cityCheckRequest, bool? market)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _PoultryOrder() when $default != null: +return $default(_that.key,_that.id,_that.poultry,_that.orderCode,_that.createDate,_that.sendDate,_that.killHouseList,_that.firstQuantity,_that.quantity,_that.directBuying,_that.union,_that.amount,_that.financialOperation,_that.remainQuantity,_that.indexWeight,_that.hatching,_that.finalState,_that.losses,_that.provinceState,_that.stateProcess,_that.registrar,_that.vetFarm,_that.freeSaleInProvince,_that.freezing,_that.export,_that.cityCheckRequest,_that.market);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? key, int? id, Poultry? poultry, int? orderCode, String? createDate, String? sendDate, List? killHouseList, int? firstQuantity, int? quantity, bool? directBuying, bool? union, double? amount, String? financialOperation, int? remainQuantity, @JsonKey(name: "Index_weight") double? indexWeight, Hatching? hatching, String? finalState, int? losses, String? provinceState, String? stateProcess, Registrar? registrar, VetFarm? vetFarm, bool? freeSaleInProvince, bool? freezing, bool? export, String? cityCheckRequest, bool? market) $default,) {final _that = this; +switch (_that) { +case _PoultryOrder(): +return $default(_that.key,_that.id,_that.poultry,_that.orderCode,_that.createDate,_that.sendDate,_that.killHouseList,_that.firstQuantity,_that.quantity,_that.directBuying,_that.union,_that.amount,_that.financialOperation,_that.remainQuantity,_that.indexWeight,_that.hatching,_that.finalState,_that.losses,_that.provinceState,_that.stateProcess,_that.registrar,_that.vetFarm,_that.freeSaleInProvince,_that.freezing,_that.export,_that.cityCheckRequest,_that.market);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? key, int? id, Poultry? poultry, int? orderCode, String? createDate, String? sendDate, List? killHouseList, int? firstQuantity, int? quantity, bool? directBuying, bool? union, double? amount, String? financialOperation, int? remainQuantity, @JsonKey(name: "Index_weight") double? indexWeight, Hatching? hatching, String? finalState, int? losses, String? provinceState, String? stateProcess, Registrar? registrar, VetFarm? vetFarm, bool? freeSaleInProvince, bool? freezing, bool? export, String? cityCheckRequest, bool? market)? $default,) {final _that = this; +switch (_that) { +case _PoultryOrder() when $default != null: +return $default(_that.key,_that.id,_that.poultry,_that.orderCode,_that.createDate,_that.sendDate,_that.killHouseList,_that.firstQuantity,_that.quantity,_that.directBuying,_that.union,_that.amount,_that.financialOperation,_that.remainQuantity,_that.indexWeight,_that.hatching,_that.finalState,_that.losses,_that.provinceState,_that.stateProcess,_that.registrar,_that.vetFarm,_that.freeSaleInProvince,_that.freezing,_that.export,_that.cityCheckRequest,_that.market);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _PoultryOrder implements PoultryOrder { + const _PoultryOrder({this.key, this.id, this.poultry, this.orderCode, this.createDate, this.sendDate, final List? killHouseList, this.firstQuantity, this.quantity, this.directBuying, this.union, this.amount, this.financialOperation, this.remainQuantity, @JsonKey(name: "Index_weight") this.indexWeight, this.hatching, this.finalState, this.losses, this.provinceState, this.stateProcess, this.registrar, this.vetFarm, this.freeSaleInProvince, this.freezing, this.export, this.cityCheckRequest, this.market}): _killHouseList = killHouseList; + factory _PoultryOrder.fromJson(Map json) => _$PoultryOrderFromJson(json); + +@override final String? key; +@override final int? id; +@override final Poultry? poultry; +@override final int? orderCode; +@override final String? createDate; +@override final String? sendDate; + final List? _killHouseList; +@override List? get killHouseList { + final value = _killHouseList; + if (value == null) return null; + if (_killHouseList is EqualUnmodifiableListView) return _killHouseList; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + +@override final int? firstQuantity; +@override final int? quantity; +@override final bool? directBuying; +@override final bool? union; +@override final double? amount; +@override final String? financialOperation; +@override final int? remainQuantity; +@override@JsonKey(name: "Index_weight") final double? indexWeight; +@override final Hatching? hatching; +@override final String? finalState; +@override final int? losses; +@override final String? provinceState; +@override final String? stateProcess; +@override final Registrar? registrar; +@override final VetFarm? vetFarm; +@override final bool? freeSaleInProvince; +@override final bool? freezing; +@override final bool? export; +@override final String? cityCheckRequest; +@override final bool? market; + +/// Create a copy of PoultryOrder +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$PoultryOrderCopyWith<_PoultryOrder> get copyWith => __$PoultryOrderCopyWithImpl<_PoultryOrder>(this, _$identity); + +@override +Map toJson() { + return _$PoultryOrderToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _PoultryOrder&&(identical(other.key, key) || other.key == key)&&(identical(other.id, id) || other.id == id)&&(identical(other.poultry, poultry) || other.poultry == poultry)&&(identical(other.orderCode, orderCode) || other.orderCode == orderCode)&&(identical(other.createDate, createDate) || other.createDate == createDate)&&(identical(other.sendDate, sendDate) || other.sendDate == sendDate)&&const DeepCollectionEquality().equals(other._killHouseList, _killHouseList)&&(identical(other.firstQuantity, firstQuantity) || other.firstQuantity == firstQuantity)&&(identical(other.quantity, quantity) || other.quantity == quantity)&&(identical(other.directBuying, directBuying) || other.directBuying == directBuying)&&(identical(other.union, union) || other.union == union)&&(identical(other.amount, amount) || other.amount == amount)&&(identical(other.financialOperation, financialOperation) || other.financialOperation == financialOperation)&&(identical(other.remainQuantity, remainQuantity) || other.remainQuantity == remainQuantity)&&(identical(other.indexWeight, indexWeight) || other.indexWeight == indexWeight)&&(identical(other.hatching, hatching) || other.hatching == hatching)&&(identical(other.finalState, finalState) || other.finalState == finalState)&&(identical(other.losses, losses) || other.losses == losses)&&(identical(other.provinceState, provinceState) || other.provinceState == provinceState)&&(identical(other.stateProcess, stateProcess) || other.stateProcess == stateProcess)&&(identical(other.registrar, registrar) || other.registrar == registrar)&&(identical(other.vetFarm, vetFarm) || other.vetFarm == vetFarm)&&(identical(other.freeSaleInProvince, freeSaleInProvince) || other.freeSaleInProvince == freeSaleInProvince)&&(identical(other.freezing, freezing) || other.freezing == freezing)&&(identical(other.export, export) || other.export == export)&&(identical(other.cityCheckRequest, cityCheckRequest) || other.cityCheckRequest == cityCheckRequest)&&(identical(other.market, market) || other.market == market)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,key,id,poultry,orderCode,createDate,sendDate,const DeepCollectionEquality().hash(_killHouseList),firstQuantity,quantity,directBuying,union,amount,financialOperation,remainQuantity,indexWeight,hatching,finalState,losses,provinceState,stateProcess,registrar,vetFarm,freeSaleInProvince,freezing,export,cityCheckRequest,market]); + +@override +String toString() { + return 'PoultryOrder(key: $key, id: $id, poultry: $poultry, orderCode: $orderCode, createDate: $createDate, sendDate: $sendDate, killHouseList: $killHouseList, firstQuantity: $firstQuantity, quantity: $quantity, directBuying: $directBuying, union: $union, amount: $amount, financialOperation: $financialOperation, remainQuantity: $remainQuantity, indexWeight: $indexWeight, hatching: $hatching, finalState: $finalState, losses: $losses, provinceState: $provinceState, stateProcess: $stateProcess, registrar: $registrar, vetFarm: $vetFarm, freeSaleInProvince: $freeSaleInProvince, freezing: $freezing, export: $export, cityCheckRequest: $cityCheckRequest, market: $market)'; +} + + +} + +/// @nodoc +abstract mixin class _$PoultryOrderCopyWith<$Res> implements $PoultryOrderCopyWith<$Res> { + factory _$PoultryOrderCopyWith(_PoultryOrder value, $Res Function(_PoultryOrder) _then) = __$PoultryOrderCopyWithImpl; +@override @useResult +$Res call({ + String? key, int? id, Poultry? poultry, int? orderCode, String? createDate, String? sendDate, List? killHouseList, int? firstQuantity, int? quantity, bool? directBuying, bool? union, double? amount, String? financialOperation, int? remainQuantity,@JsonKey(name: "Index_weight") double? indexWeight, Hatching? hatching, String? finalState, int? losses, String? provinceState, String? stateProcess, Registrar? registrar, VetFarm? vetFarm, bool? freeSaleInProvince, bool? freezing, bool? export, String? cityCheckRequest, bool? market +}); + + +@override $PoultryCopyWith<$Res>? get poultry;@override $HatchingCopyWith<$Res>? get hatching;@override $RegistrarCopyWith<$Res>? get registrar;@override $VetFarmCopyWith<$Res>? get vetFarm; + +} +/// @nodoc +class __$PoultryOrderCopyWithImpl<$Res> + implements _$PoultryOrderCopyWith<$Res> { + __$PoultryOrderCopyWithImpl(this._self, this._then); + + final _PoultryOrder _self; + final $Res Function(_PoultryOrder) _then; + +/// Create a copy of PoultryOrder +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? key = freezed,Object? id = freezed,Object? poultry = freezed,Object? orderCode = freezed,Object? createDate = freezed,Object? sendDate = freezed,Object? killHouseList = freezed,Object? firstQuantity = freezed,Object? quantity = freezed,Object? directBuying = freezed,Object? union = freezed,Object? amount = freezed,Object? financialOperation = freezed,Object? remainQuantity = freezed,Object? indexWeight = freezed,Object? hatching = freezed,Object? finalState = freezed,Object? losses = freezed,Object? provinceState = freezed,Object? stateProcess = freezed,Object? registrar = freezed,Object? vetFarm = freezed,Object? freeSaleInProvince = freezed,Object? freezing = freezed,Object? export = freezed,Object? cityCheckRequest = freezed,Object? market = freezed,}) { + return _then(_PoultryOrder( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable +as int?,poultry: freezed == poultry ? _self.poultry : poultry // ignore: cast_nullable_to_non_nullable +as Poultry?,orderCode: freezed == orderCode ? _self.orderCode : orderCode // ignore: cast_nullable_to_non_nullable +as int?,createDate: freezed == createDate ? _self.createDate : createDate // ignore: cast_nullable_to_non_nullable +as String?,sendDate: freezed == sendDate ? _self.sendDate : sendDate // ignore: cast_nullable_to_non_nullable +as String?,killHouseList: freezed == killHouseList ? _self._killHouseList : killHouseList // ignore: cast_nullable_to_non_nullable +as List?,firstQuantity: freezed == firstQuantity ? _self.firstQuantity : firstQuantity // ignore: cast_nullable_to_non_nullable +as int?,quantity: freezed == quantity ? _self.quantity : quantity // ignore: cast_nullable_to_non_nullable +as int?,directBuying: freezed == directBuying ? _self.directBuying : directBuying // ignore: cast_nullable_to_non_nullable +as bool?,union: freezed == union ? _self.union : union // ignore: cast_nullable_to_non_nullable +as bool?,amount: freezed == amount ? _self.amount : amount // ignore: cast_nullable_to_non_nullable +as double?,financialOperation: freezed == financialOperation ? _self.financialOperation : financialOperation // ignore: cast_nullable_to_non_nullable +as String?,remainQuantity: freezed == remainQuantity ? _self.remainQuantity : remainQuantity // ignore: cast_nullable_to_non_nullable +as int?,indexWeight: freezed == indexWeight ? _self.indexWeight : indexWeight // ignore: cast_nullable_to_non_nullable +as double?,hatching: freezed == hatching ? _self.hatching : hatching // ignore: cast_nullable_to_non_nullable +as Hatching?,finalState: freezed == finalState ? _self.finalState : finalState // ignore: cast_nullable_to_non_nullable +as String?,losses: freezed == losses ? _self.losses : losses // ignore: cast_nullable_to_non_nullable +as int?,provinceState: freezed == provinceState ? _self.provinceState : provinceState // ignore: cast_nullable_to_non_nullable +as String?,stateProcess: freezed == stateProcess ? _self.stateProcess : stateProcess // ignore: cast_nullable_to_non_nullable +as String?,registrar: freezed == registrar ? _self.registrar : registrar // ignore: cast_nullable_to_non_nullable +as Registrar?,vetFarm: freezed == vetFarm ? _self.vetFarm : vetFarm // ignore: cast_nullable_to_non_nullable +as VetFarm?,freeSaleInProvince: freezed == freeSaleInProvince ? _self.freeSaleInProvince : freeSaleInProvince // ignore: cast_nullable_to_non_nullable +as bool?,freezing: freezed == freezing ? _self.freezing : freezing // ignore: cast_nullable_to_non_nullable +as bool?,export: freezed == export ? _self.export : export // ignore: cast_nullable_to_non_nullable +as bool?,cityCheckRequest: freezed == cityCheckRequest ? _self.cityCheckRequest : cityCheckRequest // ignore: cast_nullable_to_non_nullable +as String?,market: freezed == market ? _self.market : market // ignore: cast_nullable_to_non_nullable +as bool?, + )); +} + +/// Create a copy of PoultryOrder +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$PoultryCopyWith<$Res>? get poultry { + if (_self.poultry == null) { + return null; + } + + return $PoultryCopyWith<$Res>(_self.poultry!, (value) { + return _then(_self.copyWith(poultry: value)); + }); +}/// Create a copy of PoultryOrder +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$HatchingCopyWith<$Res>? get hatching { + if (_self.hatching == null) { + return null; + } + + return $HatchingCopyWith<$Res>(_self.hatching!, (value) { + return _then(_self.copyWith(hatching: value)); + }); +}/// Create a copy of PoultryOrder +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$RegistrarCopyWith<$Res>? get registrar { + if (_self.registrar == null) { + return null; + } + + return $RegistrarCopyWith<$Res>(_self.registrar!, (value) { + return _then(_self.copyWith(registrar: value)); + }); +}/// Create a copy of PoultryOrder +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$VetFarmCopyWith<$Res>? get vetFarm { + if (_self.vetFarm == null) { + return null; + } + + return $VetFarmCopyWith<$Res>(_self.vetFarm!, (value) { + return _then(_self.copyWith(vetFarm: value)); + }); +} +} + + +/// @nodoc +mixin _$Poultry { + + String? get unitName; String? get cityOperator; User? get user; int? get totalCapacity; Address? get address; String? get breedingUniqueId; String? get systemCode; +/// Create a copy of Poultry +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$PoultryCopyWith get copyWith => _$PoultryCopyWithImpl(this as Poultry, _$identity); + + /// Serializes this Poultry to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is Poultry&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.cityOperator, cityOperator) || other.cityOperator == cityOperator)&&(identical(other.user, user) || other.user == user)&&(identical(other.totalCapacity, totalCapacity) || other.totalCapacity == totalCapacity)&&(identical(other.address, address) || other.address == address)&&(identical(other.breedingUniqueId, breedingUniqueId) || other.breedingUniqueId == breedingUniqueId)&&(identical(other.systemCode, systemCode) || other.systemCode == systemCode)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,unitName,cityOperator,user,totalCapacity,address,breedingUniqueId,systemCode); + +@override +String toString() { + return 'Poultry(unitName: $unitName, cityOperator: $cityOperator, user: $user, totalCapacity: $totalCapacity, address: $address, breedingUniqueId: $breedingUniqueId, systemCode: $systemCode)'; +} + + +} + +/// @nodoc +abstract mixin class $PoultryCopyWith<$Res> { + factory $PoultryCopyWith(Poultry value, $Res Function(Poultry) _then) = _$PoultryCopyWithImpl; +@useResult +$Res call({ + String? unitName, String? cityOperator, User? user, int? totalCapacity, Address? address, String? breedingUniqueId, String? systemCode +}); + + +$UserCopyWith<$Res>? get user;$AddressCopyWith<$Res>? get address; + +} +/// @nodoc +class _$PoultryCopyWithImpl<$Res> + implements $PoultryCopyWith<$Res> { + _$PoultryCopyWithImpl(this._self, this._then); + + final Poultry _self; + final $Res Function(Poultry) _then; + +/// Create a copy of Poultry +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? unitName = freezed,Object? cityOperator = freezed,Object? user = freezed,Object? totalCapacity = freezed,Object? address = freezed,Object? breedingUniqueId = freezed,Object? systemCode = freezed,}) { + return _then(_self.copyWith( +unitName: freezed == unitName ? _self.unitName : unitName // ignore: cast_nullable_to_non_nullable +as String?,cityOperator: freezed == cityOperator ? _self.cityOperator : cityOperator // ignore: cast_nullable_to_non_nullable +as String?,user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable +as User?,totalCapacity: freezed == totalCapacity ? _self.totalCapacity : totalCapacity // ignore: cast_nullable_to_non_nullable +as int?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable +as Address?,breedingUniqueId: freezed == breedingUniqueId ? _self.breedingUniqueId : breedingUniqueId // ignore: cast_nullable_to_non_nullable +as String?,systemCode: freezed == systemCode ? _self.systemCode : systemCode // ignore: cast_nullable_to_non_nullable +as String?, + )); +} +/// Create a copy of Poultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$UserCopyWith<$Res>? get user { + if (_self.user == null) { + return null; + } + + return $UserCopyWith<$Res>(_self.user!, (value) { + return _then(_self.copyWith(user: value)); + }); +}/// Create a copy of Poultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$AddressCopyWith<$Res>? get address { + if (_self.address == null) { + return null; + } + + return $AddressCopyWith<$Res>(_self.address!, (value) { + return _then(_self.copyWith(address: value)); + }); +} +} + + +/// Adds pattern-matching-related methods to [Poultry]. +extension PoultryPatterns on Poultry { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _Poultry value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _Poultry() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _Poultry value) $default,){ +final _that = this; +switch (_that) { +case _Poultry(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _Poultry value)? $default,){ +final _that = this; +switch (_that) { +case _Poultry() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? unitName, String? cityOperator, User? user, int? totalCapacity, Address? address, String? breedingUniqueId, String? systemCode)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _Poultry() when $default != null: +return $default(_that.unitName,_that.cityOperator,_that.user,_that.totalCapacity,_that.address,_that.breedingUniqueId,_that.systemCode);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? unitName, String? cityOperator, User? user, int? totalCapacity, Address? address, String? breedingUniqueId, String? systemCode) $default,) {final _that = this; +switch (_that) { +case _Poultry(): +return $default(_that.unitName,_that.cityOperator,_that.user,_that.totalCapacity,_that.address,_that.breedingUniqueId,_that.systemCode);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? unitName, String? cityOperator, User? user, int? totalCapacity, Address? address, String? breedingUniqueId, String? systemCode)? $default,) {final _that = this; +switch (_that) { +case _Poultry() when $default != null: +return $default(_that.unitName,_that.cityOperator,_that.user,_that.totalCapacity,_that.address,_that.breedingUniqueId,_that.systemCode);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _Poultry implements Poultry { + const _Poultry({this.unitName, this.cityOperator, this.user, this.totalCapacity, this.address, this.breedingUniqueId, this.systemCode}); + factory _Poultry.fromJson(Map json) => _$PoultryFromJson(json); + +@override final String? unitName; +@override final String? cityOperator; +@override final User? user; +@override final int? totalCapacity; +@override final Address? address; +@override final String? breedingUniqueId; +@override final String? systemCode; + +/// Create a copy of Poultry +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$PoultryCopyWith<_Poultry> get copyWith => __$PoultryCopyWithImpl<_Poultry>(this, _$identity); + +@override +Map toJson() { + return _$PoultryToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Poultry&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.cityOperator, cityOperator) || other.cityOperator == cityOperator)&&(identical(other.user, user) || other.user == user)&&(identical(other.totalCapacity, totalCapacity) || other.totalCapacity == totalCapacity)&&(identical(other.address, address) || other.address == address)&&(identical(other.breedingUniqueId, breedingUniqueId) || other.breedingUniqueId == breedingUniqueId)&&(identical(other.systemCode, systemCode) || other.systemCode == systemCode)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,unitName,cityOperator,user,totalCapacity,address,breedingUniqueId,systemCode); + +@override +String toString() { + return 'Poultry(unitName: $unitName, cityOperator: $cityOperator, user: $user, totalCapacity: $totalCapacity, address: $address, breedingUniqueId: $breedingUniqueId, systemCode: $systemCode)'; +} + + +} + +/// @nodoc +abstract mixin class _$PoultryCopyWith<$Res> implements $PoultryCopyWith<$Res> { + factory _$PoultryCopyWith(_Poultry value, $Res Function(_Poultry) _then) = __$PoultryCopyWithImpl; +@override @useResult +$Res call({ + String? unitName, String? cityOperator, User? user, int? totalCapacity, Address? address, String? breedingUniqueId, String? systemCode +}); + + +@override $UserCopyWith<$Res>? get user;@override $AddressCopyWith<$Res>? get address; + +} +/// @nodoc +class __$PoultryCopyWithImpl<$Res> + implements _$PoultryCopyWith<$Res> { + __$PoultryCopyWithImpl(this._self, this._then); + + final _Poultry _self; + final $Res Function(_Poultry) _then; + +/// Create a copy of Poultry +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? unitName = freezed,Object? cityOperator = freezed,Object? user = freezed,Object? totalCapacity = freezed,Object? address = freezed,Object? breedingUniqueId = freezed,Object? systemCode = freezed,}) { + return _then(_Poultry( +unitName: freezed == unitName ? _self.unitName : unitName // ignore: cast_nullable_to_non_nullable +as String?,cityOperator: freezed == cityOperator ? _self.cityOperator : cityOperator // ignore: cast_nullable_to_non_nullable +as String?,user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable +as User?,totalCapacity: freezed == totalCapacity ? _self.totalCapacity : totalCapacity // ignore: cast_nullable_to_non_nullable +as int?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable +as Address?,breedingUniqueId: freezed == breedingUniqueId ? _self.breedingUniqueId : breedingUniqueId // ignore: cast_nullable_to_non_nullable +as String?,systemCode: freezed == systemCode ? _self.systemCode : systemCode // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +/// Create a copy of Poultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$UserCopyWith<$Res>? get user { + if (_self.user == null) { + return null; + } + + return $UserCopyWith<$Res>(_self.user!, (value) { + return _then(_self.copyWith(user: value)); + }); +}/// Create a copy of Poultry +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$AddressCopyWith<$Res>? get address { + if (_self.address == null) { + return null; + } + + return $AddressCopyWith<$Res>(_self.address!, (value) { + return _then(_self.copyWith(address: value)); + }); +} +} + + +/// @nodoc +mixin _$User { + + String? get fullName; String? get firstName; String? get lastName; int? get baseOrder; String? get mobile; String? get nationalId; String? get nationalCode; String? get key; City? get city; String? get unitName; String? get unitNationalId; String? get unitRegistrationNumber; String? get unitEconomicalNumber; String? get unitProvince; String? get unitCity; String? get unitPostalCode; String? get unitAddress; +/// Create a copy of User +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$UserCopyWith get copyWith => _$UserCopyWithImpl(this as User, _$identity); + + /// Serializes this User to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is User&&(identical(other.fullName, fullName) || other.fullName == fullName)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.baseOrder, baseOrder) || other.baseOrder == baseOrder)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.nationalId, nationalId) || other.nationalId == nationalId)&&(identical(other.nationalCode, nationalCode) || other.nationalCode == nationalCode)&&(identical(other.key, key) || other.key == key)&&(identical(other.city, city) || other.city == city)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.unitNationalId, unitNationalId) || other.unitNationalId == unitNationalId)&&(identical(other.unitRegistrationNumber, unitRegistrationNumber) || other.unitRegistrationNumber == unitRegistrationNumber)&&(identical(other.unitEconomicalNumber, unitEconomicalNumber) || other.unitEconomicalNumber == unitEconomicalNumber)&&(identical(other.unitProvince, unitProvince) || other.unitProvince == unitProvince)&&(identical(other.unitCity, unitCity) || other.unitCity == unitCity)&&(identical(other.unitPostalCode, unitPostalCode) || other.unitPostalCode == unitPostalCode)&&(identical(other.unitAddress, unitAddress) || other.unitAddress == unitAddress)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,fullName,firstName,lastName,baseOrder,mobile,nationalId,nationalCode,key,city,unitName,unitNationalId,unitRegistrationNumber,unitEconomicalNumber,unitProvince,unitCity,unitPostalCode,unitAddress); + +@override +String toString() { + return 'User(fullName: $fullName, firstName: $firstName, lastName: $lastName, baseOrder: $baseOrder, mobile: $mobile, nationalId: $nationalId, nationalCode: $nationalCode, key: $key, city: $city, unitName: $unitName, unitNationalId: $unitNationalId, unitRegistrationNumber: $unitRegistrationNumber, unitEconomicalNumber: $unitEconomicalNumber, unitProvince: $unitProvince, unitCity: $unitCity, unitPostalCode: $unitPostalCode, unitAddress: $unitAddress)'; +} + + +} + +/// @nodoc +abstract mixin class $UserCopyWith<$Res> { + factory $UserCopyWith(User value, $Res Function(User) _then) = _$UserCopyWithImpl; +@useResult +$Res call({ + String? fullName, String? firstName, String? lastName, int? baseOrder, String? mobile, String? nationalId, String? nationalCode, String? key, City? city, String? unitName, String? unitNationalId, String? unitRegistrationNumber, String? unitEconomicalNumber, String? unitProvince, String? unitCity, String? unitPostalCode, String? unitAddress +}); + + +$CityCopyWith<$Res>? get city; + +} +/// @nodoc +class _$UserCopyWithImpl<$Res> + implements $UserCopyWith<$Res> { + _$UserCopyWithImpl(this._self, this._then); + + final User _self; + final $Res Function(User) _then; + +/// Create a copy of User +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? fullName = freezed,Object? firstName = freezed,Object? lastName = freezed,Object? baseOrder = freezed,Object? mobile = freezed,Object? nationalId = freezed,Object? nationalCode = freezed,Object? key = freezed,Object? city = freezed,Object? unitName = freezed,Object? unitNationalId = freezed,Object? unitRegistrationNumber = freezed,Object? unitEconomicalNumber = freezed,Object? unitProvince = freezed,Object? unitCity = freezed,Object? unitPostalCode = freezed,Object? unitAddress = freezed,}) { + return _then(_self.copyWith( +fullName: freezed == fullName ? _self.fullName : fullName // ignore: cast_nullable_to_non_nullable +as String?,firstName: freezed == firstName ? _self.firstName : firstName // ignore: cast_nullable_to_non_nullable +as String?,lastName: freezed == lastName ? _self.lastName : lastName // ignore: cast_nullable_to_non_nullable +as String?,baseOrder: freezed == baseOrder ? _self.baseOrder : baseOrder // ignore: cast_nullable_to_non_nullable +as int?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?,nationalId: freezed == nationalId ? _self.nationalId : nationalId // ignore: cast_nullable_to_non_nullable +as String?,nationalCode: freezed == nationalCode ? _self.nationalCode : nationalCode // ignore: cast_nullable_to_non_nullable +as String?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as City?,unitName: freezed == unitName ? _self.unitName : unitName // ignore: cast_nullable_to_non_nullable +as String?,unitNationalId: freezed == unitNationalId ? _self.unitNationalId : unitNationalId // ignore: cast_nullable_to_non_nullable +as String?,unitRegistrationNumber: freezed == unitRegistrationNumber ? _self.unitRegistrationNumber : unitRegistrationNumber // ignore: cast_nullable_to_non_nullable +as String?,unitEconomicalNumber: freezed == unitEconomicalNumber ? _self.unitEconomicalNumber : unitEconomicalNumber // ignore: cast_nullable_to_non_nullable +as String?,unitProvince: freezed == unitProvince ? _self.unitProvince : unitProvince // ignore: cast_nullable_to_non_nullable +as String?,unitCity: freezed == unitCity ? _self.unitCity : unitCity // ignore: cast_nullable_to_non_nullable +as String?,unitPostalCode: freezed == unitPostalCode ? _self.unitPostalCode : unitPostalCode // ignore: cast_nullable_to_non_nullable +as String?,unitAddress: freezed == unitAddress ? _self.unitAddress : unitAddress // ignore: cast_nullable_to_non_nullable +as String?, + )); +} +/// Create a copy of User +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$CityCopyWith<$Res>? get city { + if (_self.city == null) { + return null; + } + + return $CityCopyWith<$Res>(_self.city!, (value) { + return _then(_self.copyWith(city: value)); + }); +} +} + + +/// Adds pattern-matching-related methods to [User]. +extension UserPatterns on User { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _User value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _User() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _User value) $default,){ +final _that = this; +switch (_that) { +case _User(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _User value)? $default,){ +final _that = this; +switch (_that) { +case _User() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? fullName, String? firstName, String? lastName, int? baseOrder, String? mobile, String? nationalId, String? nationalCode, String? key, City? city, String? unitName, String? unitNationalId, String? unitRegistrationNumber, String? unitEconomicalNumber, String? unitProvince, String? unitCity, String? unitPostalCode, String? unitAddress)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _User() when $default != null: +return $default(_that.fullName,_that.firstName,_that.lastName,_that.baseOrder,_that.mobile,_that.nationalId,_that.nationalCode,_that.key,_that.city,_that.unitName,_that.unitNationalId,_that.unitRegistrationNumber,_that.unitEconomicalNumber,_that.unitProvince,_that.unitCity,_that.unitPostalCode,_that.unitAddress);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? fullName, String? firstName, String? lastName, int? baseOrder, String? mobile, String? nationalId, String? nationalCode, String? key, City? city, String? unitName, String? unitNationalId, String? unitRegistrationNumber, String? unitEconomicalNumber, String? unitProvince, String? unitCity, String? unitPostalCode, String? unitAddress) $default,) {final _that = this; +switch (_that) { +case _User(): +return $default(_that.fullName,_that.firstName,_that.lastName,_that.baseOrder,_that.mobile,_that.nationalId,_that.nationalCode,_that.key,_that.city,_that.unitName,_that.unitNationalId,_that.unitRegistrationNumber,_that.unitEconomicalNumber,_that.unitProvince,_that.unitCity,_that.unitPostalCode,_that.unitAddress);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? fullName, String? firstName, String? lastName, int? baseOrder, String? mobile, String? nationalId, String? nationalCode, String? key, City? city, String? unitName, String? unitNationalId, String? unitRegistrationNumber, String? unitEconomicalNumber, String? unitProvince, String? unitCity, String? unitPostalCode, String? unitAddress)? $default,) {final _that = this; +switch (_that) { +case _User() when $default != null: +return $default(_that.fullName,_that.firstName,_that.lastName,_that.baseOrder,_that.mobile,_that.nationalId,_that.nationalCode,_that.key,_that.city,_that.unitName,_that.unitNationalId,_that.unitRegistrationNumber,_that.unitEconomicalNumber,_that.unitProvince,_that.unitCity,_that.unitPostalCode,_that.unitAddress);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _User implements User { + const _User({this.fullName, this.firstName, this.lastName, this.baseOrder, this.mobile, this.nationalId, this.nationalCode, this.key, this.city, this.unitName, this.unitNationalId, this.unitRegistrationNumber, this.unitEconomicalNumber, this.unitProvince, this.unitCity, this.unitPostalCode, this.unitAddress}); + factory _User.fromJson(Map json) => _$UserFromJson(json); + +@override final String? fullName; +@override final String? firstName; +@override final String? lastName; +@override final int? baseOrder; +@override final String? mobile; +@override final String? nationalId; +@override final String? nationalCode; +@override final String? key; +@override final City? city; +@override final String? unitName; +@override final String? unitNationalId; +@override final String? unitRegistrationNumber; +@override final String? unitEconomicalNumber; +@override final String? unitProvince; +@override final String? unitCity; +@override final String? unitPostalCode; +@override final String? unitAddress; + +/// Create a copy of User +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$UserCopyWith<_User> get copyWith => __$UserCopyWithImpl<_User>(this, _$identity); + +@override +Map toJson() { + return _$UserToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _User&&(identical(other.fullName, fullName) || other.fullName == fullName)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.baseOrder, baseOrder) || other.baseOrder == baseOrder)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.nationalId, nationalId) || other.nationalId == nationalId)&&(identical(other.nationalCode, nationalCode) || other.nationalCode == nationalCode)&&(identical(other.key, key) || other.key == key)&&(identical(other.city, city) || other.city == city)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.unitNationalId, unitNationalId) || other.unitNationalId == unitNationalId)&&(identical(other.unitRegistrationNumber, unitRegistrationNumber) || other.unitRegistrationNumber == unitRegistrationNumber)&&(identical(other.unitEconomicalNumber, unitEconomicalNumber) || other.unitEconomicalNumber == unitEconomicalNumber)&&(identical(other.unitProvince, unitProvince) || other.unitProvince == unitProvince)&&(identical(other.unitCity, unitCity) || other.unitCity == unitCity)&&(identical(other.unitPostalCode, unitPostalCode) || other.unitPostalCode == unitPostalCode)&&(identical(other.unitAddress, unitAddress) || other.unitAddress == unitAddress)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,fullName,firstName,lastName,baseOrder,mobile,nationalId,nationalCode,key,city,unitName,unitNationalId,unitRegistrationNumber,unitEconomicalNumber,unitProvince,unitCity,unitPostalCode,unitAddress); + +@override +String toString() { + return 'User(fullName: $fullName, firstName: $firstName, lastName: $lastName, baseOrder: $baseOrder, mobile: $mobile, nationalId: $nationalId, nationalCode: $nationalCode, key: $key, city: $city, unitName: $unitName, unitNationalId: $unitNationalId, unitRegistrationNumber: $unitRegistrationNumber, unitEconomicalNumber: $unitEconomicalNumber, unitProvince: $unitProvince, unitCity: $unitCity, unitPostalCode: $unitPostalCode, unitAddress: $unitAddress)'; +} + + +} + +/// @nodoc +abstract mixin class _$UserCopyWith<$Res> implements $UserCopyWith<$Res> { + factory _$UserCopyWith(_User value, $Res Function(_User) _then) = __$UserCopyWithImpl; +@override @useResult +$Res call({ + String? fullName, String? firstName, String? lastName, int? baseOrder, String? mobile, String? nationalId, String? nationalCode, String? key, City? city, String? unitName, String? unitNationalId, String? unitRegistrationNumber, String? unitEconomicalNumber, String? unitProvince, String? unitCity, String? unitPostalCode, String? unitAddress +}); + + +@override $CityCopyWith<$Res>? get city; + +} +/// @nodoc +class __$UserCopyWithImpl<$Res> + implements _$UserCopyWith<$Res> { + __$UserCopyWithImpl(this._self, this._then); + + final _User _self; + final $Res Function(_User) _then; + +/// Create a copy of User +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? fullName = freezed,Object? firstName = freezed,Object? lastName = freezed,Object? baseOrder = freezed,Object? mobile = freezed,Object? nationalId = freezed,Object? nationalCode = freezed,Object? key = freezed,Object? city = freezed,Object? unitName = freezed,Object? unitNationalId = freezed,Object? unitRegistrationNumber = freezed,Object? unitEconomicalNumber = freezed,Object? unitProvince = freezed,Object? unitCity = freezed,Object? unitPostalCode = freezed,Object? unitAddress = freezed,}) { + return _then(_User( +fullName: freezed == fullName ? _self.fullName : fullName // ignore: cast_nullable_to_non_nullable +as String?,firstName: freezed == firstName ? _self.firstName : firstName // ignore: cast_nullable_to_non_nullable +as String?,lastName: freezed == lastName ? _self.lastName : lastName // ignore: cast_nullable_to_non_nullable +as String?,baseOrder: freezed == baseOrder ? _self.baseOrder : baseOrder // ignore: cast_nullable_to_non_nullable +as int?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?,nationalId: freezed == nationalId ? _self.nationalId : nationalId // ignore: cast_nullable_to_non_nullable +as String?,nationalCode: freezed == nationalCode ? _self.nationalCode : nationalCode // ignore: cast_nullable_to_non_nullable +as String?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as City?,unitName: freezed == unitName ? _self.unitName : unitName // ignore: cast_nullable_to_non_nullable +as String?,unitNationalId: freezed == unitNationalId ? _self.unitNationalId : unitNationalId // ignore: cast_nullable_to_non_nullable +as String?,unitRegistrationNumber: freezed == unitRegistrationNumber ? _self.unitRegistrationNumber : unitRegistrationNumber // ignore: cast_nullable_to_non_nullable +as String?,unitEconomicalNumber: freezed == unitEconomicalNumber ? _self.unitEconomicalNumber : unitEconomicalNumber // ignore: cast_nullable_to_non_nullable +as String?,unitProvince: freezed == unitProvince ? _self.unitProvince : unitProvince // ignore: cast_nullable_to_non_nullable +as String?,unitCity: freezed == unitCity ? _self.unitCity : unitCity // ignore: cast_nullable_to_non_nullable +as String?,unitPostalCode: freezed == unitPostalCode ? _self.unitPostalCode : unitPostalCode // ignore: cast_nullable_to_non_nullable +as String?,unitAddress: freezed == unitAddress ? _self.unitAddress : unitAddress // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +/// Create a copy of User +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$CityCopyWith<$Res>? get city { + if (_self.city == null) { + return null; + } + + return $CityCopyWith<$Res>(_self.city!, (value) { + return _then(_self.copyWith(city: value)); + }); +} +} + + +/// @nodoc +mixin _$City { + + int? get id; String? get key; String? get createDate; String? get modifyDate; bool? get trash; int? get provinceIdForeignKey; int? get cityIdKey; String? get name; double? get productPrice; bool? get provinceCenter; int? get cityNumber; String? get cityName; int? get provinceNumber; String? get provinceName; dynamic get createdBy; dynamic get modifiedBy; int? get province; +/// Create a copy of City +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$CityCopyWith get copyWith => _$CityCopyWithImpl(this as City, _$identity); + + /// Serializes this City to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is City&&(identical(other.id, id) || other.id == id)&&(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.provinceIdForeignKey, provinceIdForeignKey) || other.provinceIdForeignKey == provinceIdForeignKey)&&(identical(other.cityIdKey, cityIdKey) || other.cityIdKey == cityIdKey)&&(identical(other.name, name) || other.name == name)&&(identical(other.productPrice, productPrice) || other.productPrice == productPrice)&&(identical(other.provinceCenter, provinceCenter) || other.provinceCenter == provinceCenter)&&(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)&&const DeepCollectionEquality().equals(other.createdBy, createdBy)&&const DeepCollectionEquality().equals(other.modifiedBy, modifiedBy)&&(identical(other.province, province) || other.province == province)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,id,key,createDate,modifyDate,trash,provinceIdForeignKey,cityIdKey,name,productPrice,provinceCenter,cityNumber,cityName,provinceNumber,provinceName,const DeepCollectionEquality().hash(createdBy),const DeepCollectionEquality().hash(modifiedBy),province); + +@override +String toString() { + return 'City(id: $id, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, provinceIdForeignKey: $provinceIdForeignKey, cityIdKey: $cityIdKey, name: $name, productPrice: $productPrice, provinceCenter: $provinceCenter, cityNumber: $cityNumber, cityName: $cityName, provinceNumber: $provinceNumber, provinceName: $provinceName, createdBy: $createdBy, modifiedBy: $modifiedBy, province: $province)'; +} + + +} + +/// @nodoc +abstract mixin class $CityCopyWith<$Res> { + factory $CityCopyWith(City value, $Res Function(City) _then) = _$CityCopyWithImpl; +@useResult +$Res call({ + int? id, String? key, String? createDate, String? modifyDate, bool? trash, int? provinceIdForeignKey, int? cityIdKey, String? name, double? productPrice, bool? provinceCenter, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, dynamic createdBy, dynamic modifiedBy, int? province +}); + + + + +} +/// @nodoc +class _$CityCopyWithImpl<$Res> + implements $CityCopyWith<$Res> { + _$CityCopyWithImpl(this._self, this._then); + + final City _self; + final $Res Function(City) _then; + +/// Create a copy of City +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? key = freezed,Object? createDate = freezed,Object? modifyDate = freezed,Object? trash = freezed,Object? provinceIdForeignKey = freezed,Object? cityIdKey = freezed,Object? name = freezed,Object? productPrice = freezed,Object? provinceCenter = freezed,Object? cityNumber = freezed,Object? cityName = freezed,Object? provinceNumber = freezed,Object? provinceName = freezed,Object? createdBy = freezed,Object? modifiedBy = freezed,Object? province = freezed,}) { + return _then(_self.copyWith( +id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable +as int?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,createDate: freezed == createDate ? _self.createDate : createDate // ignore: cast_nullable_to_non_nullable +as String?,modifyDate: freezed == modifyDate ? _self.modifyDate : modifyDate // ignore: cast_nullable_to_non_nullable +as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable +as bool?,provinceIdForeignKey: freezed == provinceIdForeignKey ? _self.provinceIdForeignKey : provinceIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,cityIdKey: freezed == cityIdKey ? _self.cityIdKey : cityIdKey // ignore: cast_nullable_to_non_nullable +as int?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?,productPrice: freezed == productPrice ? _self.productPrice : productPrice // ignore: cast_nullable_to_non_nullable +as double?,provinceCenter: freezed == provinceCenter ? _self.provinceCenter : provinceCenter // ignore: cast_nullable_to_non_nullable +as bool?,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?,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,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as int?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [City]. +extension CityPatterns on City { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _City value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _City() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _City value) $default,){ +final _that = this; +switch (_that) { +case _City(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _City value)? $default,){ +final _that = this; +switch (_that) { +case _City() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( int? id, String? key, String? createDate, String? modifyDate, bool? trash, int? provinceIdForeignKey, int? cityIdKey, String? name, double? productPrice, bool? provinceCenter, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, dynamic createdBy, dynamic modifiedBy, int? province)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _City() when $default != null: +return $default(_that.id,_that.key,_that.createDate,_that.modifyDate,_that.trash,_that.provinceIdForeignKey,_that.cityIdKey,_that.name,_that.productPrice,_that.provinceCenter,_that.cityNumber,_that.cityName,_that.provinceNumber,_that.provinceName,_that.createdBy,_that.modifiedBy,_that.province);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( int? id, String? key, String? createDate, String? modifyDate, bool? trash, int? provinceIdForeignKey, int? cityIdKey, String? name, double? productPrice, bool? provinceCenter, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, dynamic createdBy, dynamic modifiedBy, int? province) $default,) {final _that = this; +switch (_that) { +case _City(): +return $default(_that.id,_that.key,_that.createDate,_that.modifyDate,_that.trash,_that.provinceIdForeignKey,_that.cityIdKey,_that.name,_that.productPrice,_that.provinceCenter,_that.cityNumber,_that.cityName,_that.provinceNumber,_that.provinceName,_that.createdBy,_that.modifiedBy,_that.province);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( int? id, String? key, String? createDate, String? modifyDate, bool? trash, int? provinceIdForeignKey, int? cityIdKey, String? name, double? productPrice, bool? provinceCenter, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, dynamic createdBy, dynamic modifiedBy, int? province)? $default,) {final _that = this; +switch (_that) { +case _City() when $default != null: +return $default(_that.id,_that.key,_that.createDate,_that.modifyDate,_that.trash,_that.provinceIdForeignKey,_that.cityIdKey,_that.name,_that.productPrice,_that.provinceCenter,_that.cityNumber,_that.cityName,_that.provinceNumber,_that.provinceName,_that.createdBy,_that.modifiedBy,_that.province);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _City implements City { + const _City({this.id, this.key, this.createDate, this.modifyDate, this.trash, this.provinceIdForeignKey, this.cityIdKey, this.name, this.productPrice, this.provinceCenter, this.cityNumber, this.cityName, this.provinceNumber, this.provinceName, this.createdBy, this.modifiedBy, this.province}); + factory _City.fromJson(Map json) => _$CityFromJson(json); + +@override final int? id; +@override final String? key; +@override final String? createDate; +@override final String? modifyDate; +@override final bool? trash; +@override final int? provinceIdForeignKey; +@override final int? cityIdKey; +@override final String? name; +@override final double? productPrice; +@override final bool? provinceCenter; +@override final int? cityNumber; +@override final String? cityName; +@override final int? provinceNumber; +@override final String? provinceName; +@override final dynamic createdBy; +@override final dynamic modifiedBy; +@override final int? province; + +/// Create a copy of City +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$CityCopyWith<_City> get copyWith => __$CityCopyWithImpl<_City>(this, _$identity); + +@override +Map toJson() { + return _$CityToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _City&&(identical(other.id, id) || other.id == id)&&(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.provinceIdForeignKey, provinceIdForeignKey) || other.provinceIdForeignKey == provinceIdForeignKey)&&(identical(other.cityIdKey, cityIdKey) || other.cityIdKey == cityIdKey)&&(identical(other.name, name) || other.name == name)&&(identical(other.productPrice, productPrice) || other.productPrice == productPrice)&&(identical(other.provinceCenter, provinceCenter) || other.provinceCenter == provinceCenter)&&(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)&&const DeepCollectionEquality().equals(other.createdBy, createdBy)&&const DeepCollectionEquality().equals(other.modifiedBy, modifiedBy)&&(identical(other.province, province) || other.province == province)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,id,key,createDate,modifyDate,trash,provinceIdForeignKey,cityIdKey,name,productPrice,provinceCenter,cityNumber,cityName,provinceNumber,provinceName,const DeepCollectionEquality().hash(createdBy),const DeepCollectionEquality().hash(modifiedBy),province); + +@override +String toString() { + return 'City(id: $id, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, provinceIdForeignKey: $provinceIdForeignKey, cityIdKey: $cityIdKey, name: $name, productPrice: $productPrice, provinceCenter: $provinceCenter, cityNumber: $cityNumber, cityName: $cityName, provinceNumber: $provinceNumber, provinceName: $provinceName, createdBy: $createdBy, modifiedBy: $modifiedBy, province: $province)'; +} + + +} + +/// @nodoc +abstract mixin class _$CityCopyWith<$Res> implements $CityCopyWith<$Res> { + factory _$CityCopyWith(_City value, $Res Function(_City) _then) = __$CityCopyWithImpl; +@override @useResult +$Res call({ + int? id, String? key, String? createDate, String? modifyDate, bool? trash, int? provinceIdForeignKey, int? cityIdKey, String? name, double? productPrice, bool? provinceCenter, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, dynamic createdBy, dynamic modifiedBy, int? province +}); + + + + +} +/// @nodoc +class __$CityCopyWithImpl<$Res> + implements _$CityCopyWith<$Res> { + __$CityCopyWithImpl(this._self, this._then); + + final _City _self; + final $Res Function(_City) _then; + +/// Create a copy of City +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? key = freezed,Object? createDate = freezed,Object? modifyDate = freezed,Object? trash = freezed,Object? provinceIdForeignKey = freezed,Object? cityIdKey = freezed,Object? name = freezed,Object? productPrice = freezed,Object? provinceCenter = freezed,Object? cityNumber = freezed,Object? cityName = freezed,Object? provinceNumber = freezed,Object? provinceName = freezed,Object? createdBy = freezed,Object? modifiedBy = freezed,Object? province = freezed,}) { + return _then(_City( +id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable +as int?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,createDate: freezed == createDate ? _self.createDate : createDate // ignore: cast_nullable_to_non_nullable +as String?,modifyDate: freezed == modifyDate ? _self.modifyDate : modifyDate // ignore: cast_nullable_to_non_nullable +as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable +as bool?,provinceIdForeignKey: freezed == provinceIdForeignKey ? _self.provinceIdForeignKey : provinceIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,cityIdKey: freezed == cityIdKey ? _self.cityIdKey : cityIdKey // ignore: cast_nullable_to_non_nullable +as int?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?,productPrice: freezed == productPrice ? _self.productPrice : productPrice // ignore: cast_nullable_to_non_nullable +as double?,provinceCenter: freezed == provinceCenter ? _self.provinceCenter : provinceCenter // ignore: cast_nullable_to_non_nullable +as bool?,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?,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,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as int?, + )); +} + + +} + + +/// @nodoc +mixin _$Address { + + Province? get province; City? get city; String? get address; String? get postalCode; +/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$AddressCopyWith
get copyWith => _$AddressCopyWithImpl
(this as Address, _$identity); + + /// Serializes this Address to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is Address&&(identical(other.province, province) || other.province == province)&&(identical(other.city, city) || other.city == city)&&(identical(other.address, address) || other.address == address)&&(identical(other.postalCode, postalCode) || other.postalCode == postalCode)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,province,city,address,postalCode); + +@override +String toString() { + return 'Address(province: $province, city: $city, address: $address, postalCode: $postalCode)'; +} + + +} + +/// @nodoc +abstract mixin class $AddressCopyWith<$Res> { + factory $AddressCopyWith(Address value, $Res Function(Address) _then) = _$AddressCopyWithImpl; +@useResult +$Res call({ + Province? province, City? city, String? address, String? postalCode +}); + + +$ProvinceCopyWith<$Res>? get province;$CityCopyWith<$Res>? get city; + +} +/// @nodoc +class _$AddressCopyWithImpl<$Res> + implements $AddressCopyWith<$Res> { + _$AddressCopyWithImpl(this._self, this._then); + + final Address _self; + final $Res Function(Address) _then; + +/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? province = freezed,Object? city = freezed,Object? address = freezed,Object? postalCode = freezed,}) { + return _then(_self.copyWith( +province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as Province?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as City?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable +as String?,postalCode: freezed == postalCode ? _self.postalCode : postalCode // ignore: cast_nullable_to_non_nullable +as String?, + )); +} +/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ProvinceCopyWith<$Res>? get province { + if (_self.province == null) { + return null; + } + + return $ProvinceCopyWith<$Res>(_self.province!, (value) { + return _then(_self.copyWith(province: value)); + }); +}/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$CityCopyWith<$Res>? get city { + if (_self.city == null) { + return null; + } + + return $CityCopyWith<$Res>(_self.city!, (value) { + return _then(_self.copyWith(city: value)); + }); +} +} + + +/// Adds pattern-matching-related methods to [Address]. +extension AddressPatterns on Address { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _Address value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _Address() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _Address value) $default,){ +final _that = this; +switch (_that) { +case _Address(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _Address value)? $default,){ +final _that = this; +switch (_that) { +case _Address() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( Province? province, City? city, String? address, String? postalCode)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _Address() when $default != null: +return $default(_that.province,_that.city,_that.address,_that.postalCode);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( Province? province, City? city, String? address, String? postalCode) $default,) {final _that = this; +switch (_that) { +case _Address(): +return $default(_that.province,_that.city,_that.address,_that.postalCode);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( Province? province, City? city, String? address, String? postalCode)? $default,) {final _that = this; +switch (_that) { +case _Address() when $default != null: +return $default(_that.province,_that.city,_that.address,_that.postalCode);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _Address implements Address { + const _Address({this.province, this.city, this.address, this.postalCode}); + factory _Address.fromJson(Map json) => _$AddressFromJson(json); + +@override final Province? province; +@override final City? city; +@override final String? address; +@override final String? postalCode; + +/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$AddressCopyWith<_Address> get copyWith => __$AddressCopyWithImpl<_Address>(this, _$identity); + +@override +Map toJson() { + return _$AddressToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Address&&(identical(other.province, province) || other.province == province)&&(identical(other.city, city) || other.city == city)&&(identical(other.address, address) || other.address == address)&&(identical(other.postalCode, postalCode) || other.postalCode == postalCode)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,province,city,address,postalCode); + +@override +String toString() { + return 'Address(province: $province, city: $city, address: $address, postalCode: $postalCode)'; +} + + +} + +/// @nodoc +abstract mixin class _$AddressCopyWith<$Res> implements $AddressCopyWith<$Res> { + factory _$AddressCopyWith(_Address value, $Res Function(_Address) _then) = __$AddressCopyWithImpl; +@override @useResult +$Res call({ + Province? province, City? city, String? address, String? postalCode +}); + + +@override $ProvinceCopyWith<$Res>? get province;@override $CityCopyWith<$Res>? get city; + +} +/// @nodoc +class __$AddressCopyWithImpl<$Res> + implements _$AddressCopyWith<$Res> { + __$AddressCopyWithImpl(this._self, this._then); + + final _Address _self; + final $Res Function(_Address) _then; + +/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? province = freezed,Object? city = freezed,Object? address = freezed,Object? postalCode = freezed,}) { + return _then(_Address( +province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as Province?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as City?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable +as String?,postalCode: freezed == postalCode ? _self.postalCode : postalCode // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ProvinceCopyWith<$Res>? get province { + if (_self.province == null) { + return null; + } + + return $ProvinceCopyWith<$Res>(_self.province!, (value) { + return _then(_self.copyWith(province: value)); + }); +}/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$CityCopyWith<$Res>? get city { + if (_self.city == null) { + return null; + } + + return $CityCopyWith<$Res>(_self.city!, (value) { + return _then(_self.copyWith(city: value)); + }); +} +} + + +/// @nodoc +mixin _$Province { + + String? get key; String? get name; +/// Create a copy of Province +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ProvinceCopyWith get copyWith => _$ProvinceCopyWithImpl(this as Province, _$identity); + + /// Serializes this Province to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is Province&&(identical(other.key, key) || other.key == key)&&(identical(other.name, name) || other.name == name)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,name); + +@override +String toString() { + return 'Province(key: $key, name: $name)'; +} + + +} + +/// @nodoc +abstract mixin class $ProvinceCopyWith<$Res> { + factory $ProvinceCopyWith(Province value, $Res Function(Province) _then) = _$ProvinceCopyWithImpl; +@useResult +$Res call({ + String? key, String? name +}); + + + + +} +/// @nodoc +class _$ProvinceCopyWithImpl<$Res> + implements $ProvinceCopyWith<$Res> { + _$ProvinceCopyWithImpl(this._self, this._then); + + final Province _self; + final $Res Function(Province) _then; + +/// Create a copy of Province +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? key = freezed,Object? name = freezed,}) { + return _then(_self.copyWith( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [Province]. +extension ProvincePatterns on Province { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _Province value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _Province() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _Province value) $default,){ +final _that = this; +switch (_that) { +case _Province(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _Province value)? $default,){ +final _that = this; +switch (_that) { +case _Province() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? key, String? name)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _Province() when $default != null: +return $default(_that.key,_that.name);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? key, String? name) $default,) {final _that = this; +switch (_that) { +case _Province(): +return $default(_that.key,_that.name);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? key, String? name)? $default,) {final _that = this; +switch (_that) { +case _Province() when $default != null: +return $default(_that.key,_that.name);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _Province implements Province { + const _Province({this.key, this.name}); + factory _Province.fromJson(Map json) => _$ProvinceFromJson(json); + +@override final String? key; +@override final String? name; + +/// Create a copy of Province +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ProvinceCopyWith<_Province> get copyWith => __$ProvinceCopyWithImpl<_Province>(this, _$identity); + +@override +Map toJson() { + return _$ProvinceToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Province&&(identical(other.key, key) || other.key == key)&&(identical(other.name, name) || other.name == name)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,name); + +@override +String toString() { + return 'Province(key: $key, name: $name)'; +} + + +} + +/// @nodoc +abstract mixin class _$ProvinceCopyWith<$Res> implements $ProvinceCopyWith<$Res> { + factory _$ProvinceCopyWith(_Province value, $Res Function(_Province) _then) = __$ProvinceCopyWithImpl; +@override @useResult +$Res call({ + String? key, String? name +}); + + + + +} +/// @nodoc +class __$ProvinceCopyWithImpl<$Res> + implements _$ProvinceCopyWith<$Res> { + __$ProvinceCopyWithImpl(this._self, this._then); + + final _Province _self; + final $Res Function(_Province) _then; + +/// Create a copy of Province +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? key = freezed,Object? name = freezed,}) { + return _then(_Province( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$Hatching { + + int? get age; int? get leftOver; String? get fileState; String? get hatchingDate; String? get allowHatching; int? get inspectionLosses; double? get inspectionLossesPercent; double? get totalLossesPercent; double? get poultryLossesPercent; double? get totalWeight; +/// Create a copy of Hatching +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$HatchingCopyWith get copyWith => _$HatchingCopyWithImpl(this as Hatching, _$identity); + + /// Serializes this Hatching to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is Hatching&&(identical(other.age, age) || other.age == age)&&(identical(other.leftOver, leftOver) || other.leftOver == leftOver)&&(identical(other.fileState, fileState) || other.fileState == fileState)&&(identical(other.hatchingDate, hatchingDate) || other.hatchingDate == hatchingDate)&&(identical(other.allowHatching, allowHatching) || other.allowHatching == allowHatching)&&(identical(other.inspectionLosses, inspectionLosses) || other.inspectionLosses == inspectionLosses)&&(identical(other.inspectionLossesPercent, inspectionLossesPercent) || other.inspectionLossesPercent == inspectionLossesPercent)&&(identical(other.totalLossesPercent, totalLossesPercent) || other.totalLossesPercent == totalLossesPercent)&&(identical(other.poultryLossesPercent, poultryLossesPercent) || other.poultryLossesPercent == poultryLossesPercent)&&(identical(other.totalWeight, totalWeight) || other.totalWeight == totalWeight)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,age,leftOver,fileState,hatchingDate,allowHatching,inspectionLosses,inspectionLossesPercent,totalLossesPercent,poultryLossesPercent,totalWeight); + +@override +String toString() { + return 'Hatching(age: $age, leftOver: $leftOver, fileState: $fileState, hatchingDate: $hatchingDate, allowHatching: $allowHatching, inspectionLosses: $inspectionLosses, inspectionLossesPercent: $inspectionLossesPercent, totalLossesPercent: $totalLossesPercent, poultryLossesPercent: $poultryLossesPercent, totalWeight: $totalWeight)'; +} + + +} + +/// @nodoc +abstract mixin class $HatchingCopyWith<$Res> { + factory $HatchingCopyWith(Hatching value, $Res Function(Hatching) _then) = _$HatchingCopyWithImpl; +@useResult +$Res call({ + int? age, int? leftOver, String? fileState, String? hatchingDate, String? allowHatching, int? inspectionLosses, double? inspectionLossesPercent, double? totalLossesPercent, double? poultryLossesPercent, double? totalWeight +}); + + + + +} +/// @nodoc +class _$HatchingCopyWithImpl<$Res> + implements $HatchingCopyWith<$Res> { + _$HatchingCopyWithImpl(this._self, this._then); + + final Hatching _self; + final $Res Function(Hatching) _then; + +/// Create a copy of Hatching +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? age = freezed,Object? leftOver = freezed,Object? fileState = freezed,Object? hatchingDate = freezed,Object? allowHatching = freezed,Object? inspectionLosses = freezed,Object? inspectionLossesPercent = freezed,Object? totalLossesPercent = freezed,Object? poultryLossesPercent = freezed,Object? totalWeight = freezed,}) { + return _then(_self.copyWith( +age: freezed == age ? _self.age : age // ignore: cast_nullable_to_non_nullable +as int?,leftOver: freezed == leftOver ? _self.leftOver : leftOver // ignore: cast_nullable_to_non_nullable +as int?,fileState: freezed == fileState ? _self.fileState : fileState // ignore: cast_nullable_to_non_nullable +as String?,hatchingDate: freezed == hatchingDate ? _self.hatchingDate : hatchingDate // ignore: cast_nullable_to_non_nullable +as String?,allowHatching: freezed == allowHatching ? _self.allowHatching : allowHatching // ignore: cast_nullable_to_non_nullable +as String?,inspectionLosses: freezed == inspectionLosses ? _self.inspectionLosses : inspectionLosses // ignore: cast_nullable_to_non_nullable +as int?,inspectionLossesPercent: freezed == inspectionLossesPercent ? _self.inspectionLossesPercent : inspectionLossesPercent // ignore: cast_nullable_to_non_nullable +as double?,totalLossesPercent: freezed == totalLossesPercent ? _self.totalLossesPercent : totalLossesPercent // ignore: cast_nullable_to_non_nullable +as double?,poultryLossesPercent: freezed == poultryLossesPercent ? _self.poultryLossesPercent : poultryLossesPercent // ignore: cast_nullable_to_non_nullable +as double?,totalWeight: freezed == totalWeight ? _self.totalWeight : totalWeight // ignore: cast_nullable_to_non_nullable +as double?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [Hatching]. +extension HatchingPatterns on Hatching { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _Hatching value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _Hatching() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _Hatching value) $default,){ +final _that = this; +switch (_that) { +case _Hatching(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _Hatching value)? $default,){ +final _that = this; +switch (_that) { +case _Hatching() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( int? age, int? leftOver, String? fileState, String? hatchingDate, String? allowHatching, int? inspectionLosses, double? inspectionLossesPercent, double? totalLossesPercent, double? poultryLossesPercent, double? totalWeight)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _Hatching() when $default != null: +return $default(_that.age,_that.leftOver,_that.fileState,_that.hatchingDate,_that.allowHatching,_that.inspectionLosses,_that.inspectionLossesPercent,_that.totalLossesPercent,_that.poultryLossesPercent,_that.totalWeight);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( int? age, int? leftOver, String? fileState, String? hatchingDate, String? allowHatching, int? inspectionLosses, double? inspectionLossesPercent, double? totalLossesPercent, double? poultryLossesPercent, double? totalWeight) $default,) {final _that = this; +switch (_that) { +case _Hatching(): +return $default(_that.age,_that.leftOver,_that.fileState,_that.hatchingDate,_that.allowHatching,_that.inspectionLosses,_that.inspectionLossesPercent,_that.totalLossesPercent,_that.poultryLossesPercent,_that.totalWeight);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( int? age, int? leftOver, String? fileState, String? hatchingDate, String? allowHatching, int? inspectionLosses, double? inspectionLossesPercent, double? totalLossesPercent, double? poultryLossesPercent, double? totalWeight)? $default,) {final _that = this; +switch (_that) { +case _Hatching() when $default != null: +return $default(_that.age,_that.leftOver,_that.fileState,_that.hatchingDate,_that.allowHatching,_that.inspectionLosses,_that.inspectionLossesPercent,_that.totalLossesPercent,_that.poultryLossesPercent,_that.totalWeight);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _Hatching implements Hatching { + const _Hatching({this.age, this.leftOver, this.fileState, this.hatchingDate, this.allowHatching, this.inspectionLosses, this.inspectionLossesPercent, this.totalLossesPercent, this.poultryLossesPercent, this.totalWeight}); + factory _Hatching.fromJson(Map json) => _$HatchingFromJson(json); + +@override final int? age; +@override final int? leftOver; +@override final String? fileState; +@override final String? hatchingDate; +@override final String? allowHatching; +@override final int? inspectionLosses; +@override final double? inspectionLossesPercent; +@override final double? totalLossesPercent; +@override final double? poultryLossesPercent; +@override final double? totalWeight; + +/// Create a copy of Hatching +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$HatchingCopyWith<_Hatching> get copyWith => __$HatchingCopyWithImpl<_Hatching>(this, _$identity); + +@override +Map toJson() { + return _$HatchingToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Hatching&&(identical(other.age, age) || other.age == age)&&(identical(other.leftOver, leftOver) || other.leftOver == leftOver)&&(identical(other.fileState, fileState) || other.fileState == fileState)&&(identical(other.hatchingDate, hatchingDate) || other.hatchingDate == hatchingDate)&&(identical(other.allowHatching, allowHatching) || other.allowHatching == allowHatching)&&(identical(other.inspectionLosses, inspectionLosses) || other.inspectionLosses == inspectionLosses)&&(identical(other.inspectionLossesPercent, inspectionLossesPercent) || other.inspectionLossesPercent == inspectionLossesPercent)&&(identical(other.totalLossesPercent, totalLossesPercent) || other.totalLossesPercent == totalLossesPercent)&&(identical(other.poultryLossesPercent, poultryLossesPercent) || other.poultryLossesPercent == poultryLossesPercent)&&(identical(other.totalWeight, totalWeight) || other.totalWeight == totalWeight)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,age,leftOver,fileState,hatchingDate,allowHatching,inspectionLosses,inspectionLossesPercent,totalLossesPercent,poultryLossesPercent,totalWeight); + +@override +String toString() { + return 'Hatching(age: $age, leftOver: $leftOver, fileState: $fileState, hatchingDate: $hatchingDate, allowHatching: $allowHatching, inspectionLosses: $inspectionLosses, inspectionLossesPercent: $inspectionLossesPercent, totalLossesPercent: $totalLossesPercent, poultryLossesPercent: $poultryLossesPercent, totalWeight: $totalWeight)'; +} + + +} + +/// @nodoc +abstract mixin class _$HatchingCopyWith<$Res> implements $HatchingCopyWith<$Res> { + factory _$HatchingCopyWith(_Hatching value, $Res Function(_Hatching) _then) = __$HatchingCopyWithImpl; +@override @useResult +$Res call({ + int? age, int? leftOver, String? fileState, String? hatchingDate, String? allowHatching, int? inspectionLosses, double? inspectionLossesPercent, double? totalLossesPercent, double? poultryLossesPercent, double? totalWeight +}); + + + + +} +/// @nodoc +class __$HatchingCopyWithImpl<$Res> + implements _$HatchingCopyWith<$Res> { + __$HatchingCopyWithImpl(this._self, this._then); + + final _Hatching _self; + final $Res Function(_Hatching) _then; + +/// Create a copy of Hatching +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? age = freezed,Object? leftOver = freezed,Object? fileState = freezed,Object? hatchingDate = freezed,Object? allowHatching = freezed,Object? inspectionLosses = freezed,Object? inspectionLossesPercent = freezed,Object? totalLossesPercent = freezed,Object? poultryLossesPercent = freezed,Object? totalWeight = freezed,}) { + return _then(_Hatching( +age: freezed == age ? _self.age : age // ignore: cast_nullable_to_non_nullable +as int?,leftOver: freezed == leftOver ? _self.leftOver : leftOver // ignore: cast_nullable_to_non_nullable +as int?,fileState: freezed == fileState ? _self.fileState : fileState // ignore: cast_nullable_to_non_nullable +as String?,hatchingDate: freezed == hatchingDate ? _self.hatchingDate : hatchingDate // ignore: cast_nullable_to_non_nullable +as String?,allowHatching: freezed == allowHatching ? _self.allowHatching : allowHatching // ignore: cast_nullable_to_non_nullable +as String?,inspectionLosses: freezed == inspectionLosses ? _self.inspectionLosses : inspectionLosses // ignore: cast_nullable_to_non_nullable +as int?,inspectionLossesPercent: freezed == inspectionLossesPercent ? _self.inspectionLossesPercent : inspectionLossesPercent // ignore: cast_nullable_to_non_nullable +as double?,totalLossesPercent: freezed == totalLossesPercent ? _self.totalLossesPercent : totalLossesPercent // ignore: cast_nullable_to_non_nullable +as double?,poultryLossesPercent: freezed == poultryLossesPercent ? _self.poultryLossesPercent : poultryLossesPercent // ignore: cast_nullable_to_non_nullable +as double?,totalWeight: freezed == totalWeight ? _self.totalWeight : totalWeight // ignore: cast_nullable_to_non_nullable +as double?, + )); +} + + +} + + +/// @nodoc +mixin _$Registrar { + + String? get date; String? get role; String? get fullName; +/// Create a copy of Registrar +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$RegistrarCopyWith get copyWith => _$RegistrarCopyWithImpl(this as Registrar, _$identity); + + /// Serializes this Registrar to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is Registrar&&(identical(other.date, date) || other.date == date)&&(identical(other.role, role) || other.role == role)&&(identical(other.fullName, fullName) || other.fullName == fullName)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,date,role,fullName); + +@override +String toString() { + return 'Registrar(date: $date, role: $role, fullName: $fullName)'; +} + + +} + +/// @nodoc +abstract mixin class $RegistrarCopyWith<$Res> { + factory $RegistrarCopyWith(Registrar value, $Res Function(Registrar) _then) = _$RegistrarCopyWithImpl; +@useResult +$Res call({ + String? date, String? role, String? fullName +}); + + + + +} +/// @nodoc +class _$RegistrarCopyWithImpl<$Res> + implements $RegistrarCopyWith<$Res> { + _$RegistrarCopyWithImpl(this._self, this._then); + + final Registrar _self; + final $Res Function(Registrar) _then; + +/// Create a copy of Registrar +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? date = freezed,Object? role = freezed,Object? fullName = freezed,}) { + return _then(_self.copyWith( +date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?,role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable +as String?,fullName: freezed == fullName ? _self.fullName : fullName // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [Registrar]. +extension RegistrarPatterns on Registrar { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _Registrar value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _Registrar() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _Registrar value) $default,){ +final _that = this; +switch (_that) { +case _Registrar(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _Registrar value)? $default,){ +final _that = this; +switch (_that) { +case _Registrar() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? date, String? role, String? fullName)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _Registrar() when $default != null: +return $default(_that.date,_that.role,_that.fullName);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? date, String? role, String? fullName) $default,) {final _that = this; +switch (_that) { +case _Registrar(): +return $default(_that.date,_that.role,_that.fullName);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? date, String? role, String? fullName)? $default,) {final _that = this; +switch (_that) { +case _Registrar() when $default != null: +return $default(_that.date,_that.role,_that.fullName);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _Registrar implements Registrar { + const _Registrar({this.date, this.role, this.fullName}); + factory _Registrar.fromJson(Map json) => _$RegistrarFromJson(json); + +@override final String? date; +@override final String? role; +@override final String? fullName; + +/// Create a copy of Registrar +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$RegistrarCopyWith<_Registrar> get copyWith => __$RegistrarCopyWithImpl<_Registrar>(this, _$identity); + +@override +Map toJson() { + return _$RegistrarToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Registrar&&(identical(other.date, date) || other.date == date)&&(identical(other.role, role) || other.role == role)&&(identical(other.fullName, fullName) || other.fullName == fullName)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,date,role,fullName); + +@override +String toString() { + return 'Registrar(date: $date, role: $role, fullName: $fullName)'; +} + + +} + +/// @nodoc +abstract mixin class _$RegistrarCopyWith<$Res> implements $RegistrarCopyWith<$Res> { + factory _$RegistrarCopyWith(_Registrar value, $Res Function(_Registrar) _then) = __$RegistrarCopyWithImpl; +@override @useResult +$Res call({ + String? date, String? role, String? fullName +}); + + + + +} +/// @nodoc +class __$RegistrarCopyWithImpl<$Res> + implements _$RegistrarCopyWith<$Res> { + __$RegistrarCopyWithImpl(this._self, this._then); + + final _Registrar _self; + final $Res Function(_Registrar) _then; + +/// Create a copy of Registrar +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? date = freezed,Object? role = freezed,Object? fullName = freezed,}) { + return _then(_Registrar( +date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?,role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable +as String?,fullName: freezed == fullName ? _self.fullName : fullName // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$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?, + )); +} + + +} + +// dart format on diff --git a/packages/chicken/lib/data/models/response/poultry_order/poultry_order.g.dart b/packages/chicken/lib/data/models/response/poultry_order/poultry_order.g.dart new file mode 100644 index 0000000..d5cf384 --- /dev/null +++ b/packages/chicken/lib/data/models/response/poultry_order/poultry_order.g.dart @@ -0,0 +1,261 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'poultry_order.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +_PoultryOrder _$PoultryOrderFromJson(Map json) => + _PoultryOrder( + key: json['key'] as String?, + id: (json['id'] as num?)?.toInt(), + poultry: json['poultry'] == null + ? null + : Poultry.fromJson(json['poultry'] as Map), + orderCode: (json['order_code'] as num?)?.toInt(), + createDate: json['create_date'] as String?, + sendDate: json['send_date'] as String?, + killHouseList: (json['kill_house_list'] as List?) + ?.map((e) => e as String) + .toList(), + firstQuantity: (json['first_quantity'] as num?)?.toInt(), + quantity: (json['quantity'] as num?)?.toInt(), + directBuying: json['direct_buying'] as bool?, + union: json['union'] as bool?, + amount: (json['amount'] as num?)?.toDouble(), + financialOperation: json['financial_operation'] as String?, + remainQuantity: (json['remain_quantity'] as num?)?.toInt(), + indexWeight: (json['Index_weight'] as num?)?.toDouble(), + hatching: json['hatching'] == null + ? null + : Hatching.fromJson(json['hatching'] as Map), + finalState: json['final_state'] as String?, + losses: (json['losses'] as num?)?.toInt(), + provinceState: json['province_state'] as String?, + stateProcess: json['state_process'] as String?, + registrar: json['registrar'] == null + ? null + : Registrar.fromJson(json['registrar'] as Map), + vetFarm: json['vet_farm'] == null + ? null + : VetFarm.fromJson(json['vet_farm'] as Map), + freeSaleInProvince: json['free_sale_in_province'] as bool?, + freezing: json['freezing'] as bool?, + export: json['export'] as bool?, + cityCheckRequest: json['city_check_request'] as String?, + market: json['market'] as bool?, + ); + +Map _$PoultryOrderToJson(_PoultryOrder instance) => + { + 'key': instance.key, + 'id': instance.id, + 'poultry': instance.poultry, + 'order_code': instance.orderCode, + 'create_date': instance.createDate, + 'send_date': instance.sendDate, + 'kill_house_list': instance.killHouseList, + 'first_quantity': instance.firstQuantity, + 'quantity': instance.quantity, + 'direct_buying': instance.directBuying, + 'union': instance.union, + 'amount': instance.amount, + 'financial_operation': instance.financialOperation, + 'remain_quantity': instance.remainQuantity, + 'Index_weight': instance.indexWeight, + 'hatching': instance.hatching, + 'final_state': instance.finalState, + 'losses': instance.losses, + 'province_state': instance.provinceState, + 'state_process': instance.stateProcess, + 'registrar': instance.registrar, + 'vet_farm': instance.vetFarm, + 'free_sale_in_province': instance.freeSaleInProvince, + 'freezing': instance.freezing, + 'export': instance.export, + 'city_check_request': instance.cityCheckRequest, + 'market': instance.market, + }; + +_Poultry _$PoultryFromJson(Map json) => _Poultry( + unitName: json['unit_name'] as String?, + cityOperator: json['city_operator'] as String?, + user: json['user'] == null + ? null + : User.fromJson(json['user'] as Map), + totalCapacity: (json['total_capacity'] as num?)?.toInt(), + address: json['address'] == null + ? null + : Address.fromJson(json['address'] as Map), + breedingUniqueId: json['breeding_unique_id'] as String?, + systemCode: json['system_code'] as String?, +); + +Map _$PoultryToJson(_Poultry instance) => { + 'unit_name': instance.unitName, + 'city_operator': instance.cityOperator, + 'user': instance.user, + 'total_capacity': instance.totalCapacity, + 'address': instance.address, + 'breeding_unique_id': instance.breedingUniqueId, + 'system_code': instance.systemCode, +}; + +_User _$UserFromJson(Map json) => _User( + fullName: json['full_name'] as String?, + firstName: json['first_name'] as String?, + lastName: json['last_name'] as String?, + baseOrder: (json['base_order'] as num?)?.toInt(), + mobile: json['mobile'] as String?, + nationalId: json['national_id'] as String?, + nationalCode: json['national_code'] as String?, + key: json['key'] as String?, + city: json['city'] == null + ? null + : City.fromJson(json['city'] as Map), + unitName: json['unit_name'] as String?, + unitNationalId: json['unit_national_id'] as String?, + unitRegistrationNumber: json['unit_registration_number'] as String?, + unitEconomicalNumber: json['unit_economical_number'] as String?, + unitProvince: json['unit_province'] as String?, + unitCity: json['unit_city'] as String?, + unitPostalCode: json['unit_postal_code'] as String?, + unitAddress: json['unit_address'] as String?, +); + +Map _$UserToJson(_User instance) => { + 'full_name': instance.fullName, + 'first_name': instance.firstName, + 'last_name': instance.lastName, + 'base_order': instance.baseOrder, + 'mobile': instance.mobile, + 'national_id': instance.nationalId, + 'national_code': instance.nationalCode, + 'key': instance.key, + 'city': instance.city, + 'unit_name': instance.unitName, + 'unit_national_id': instance.unitNationalId, + 'unit_registration_number': instance.unitRegistrationNumber, + 'unit_economical_number': instance.unitEconomicalNumber, + 'unit_province': instance.unitProvince, + 'unit_city': instance.unitCity, + 'unit_postal_code': instance.unitPostalCode, + 'unit_address': instance.unitAddress, +}; + +_City _$CityFromJson(Map json) => _City( + id: (json['id'] as num?)?.toInt(), + key: json['key'] as String?, + createDate: json['create_date'] as String?, + modifyDate: json['modify_date'] as String?, + trash: json['trash'] as bool?, + provinceIdForeignKey: (json['province_id_foreign_key'] as num?)?.toInt(), + cityIdKey: (json['city_id_key'] as num?)?.toInt(), + name: json['name'] as String?, + productPrice: (json['product_price'] as num?)?.toDouble(), + provinceCenter: json['province_center'] as bool?, + 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?, + createdBy: json['created_by'], + modifiedBy: json['modified_by'], + province: (json['province'] as num?)?.toInt(), +); + +Map _$CityToJson(_City instance) => { + 'id': instance.id, + 'key': instance.key, + 'create_date': instance.createDate, + 'modify_date': instance.modifyDate, + 'trash': instance.trash, + 'province_id_foreign_key': instance.provinceIdForeignKey, + 'city_id_key': instance.cityIdKey, + 'name': instance.name, + 'product_price': instance.productPrice, + 'province_center': instance.provinceCenter, + 'city_number': instance.cityNumber, + 'city_name': instance.cityName, + 'province_number': instance.provinceNumber, + 'province_name': instance.provinceName, + 'created_by': instance.createdBy, + 'modified_by': instance.modifiedBy, + 'province': instance.province, +}; + +_Address _$AddressFromJson(Map json) => _Address( + province: json['province'] == null + ? null + : Province.fromJson(json['province'] as Map), + city: json['city'] == null + ? null + : City.fromJson(json['city'] as Map), + address: json['address'] as String?, + postalCode: json['postal_code'] as String?, +); + +Map _$AddressToJson(_Address instance) => { + 'province': instance.province, + 'city': instance.city, + 'address': instance.address, + 'postal_code': instance.postalCode, +}; + +_Province _$ProvinceFromJson(Map json) => + _Province(key: json['key'] as String?, name: json['name'] as String?); + +Map _$ProvinceToJson(_Province instance) => { + 'key': instance.key, + 'name': instance.name, +}; + +_Hatching _$HatchingFromJson(Map json) => _Hatching( + age: (json['age'] as num?)?.toInt(), + leftOver: (json['left_over'] as num?)?.toInt(), + fileState: json['file_state'] as String?, + hatchingDate: json['hatching_date'] as String?, + allowHatching: json['allow_hatching'] as String?, + inspectionLosses: (json['inspection_losses'] as num?)?.toInt(), + inspectionLossesPercent: (json['inspection_losses_percent'] as num?) + ?.toDouble(), + totalLossesPercent: (json['total_losses_percent'] as num?)?.toDouble(), + poultryLossesPercent: (json['poultry_losses_percent'] as num?)?.toDouble(), + totalWeight: (json['total_weight'] as num?)?.toDouble(), +); + +Map _$HatchingToJson(_Hatching instance) => { + 'age': instance.age, + 'left_over': instance.leftOver, + 'file_state': instance.fileState, + 'hatching_date': instance.hatchingDate, + 'allow_hatching': instance.allowHatching, + 'inspection_losses': instance.inspectionLosses, + 'inspection_losses_percent': instance.inspectionLossesPercent, + 'total_losses_percent': instance.totalLossesPercent, + 'poultry_losses_percent': instance.poultryLossesPercent, + 'total_weight': instance.totalWeight, +}; + +_Registrar _$RegistrarFromJson(Map json) => _Registrar( + date: json['date'] as String?, + role: json['role'] as String?, + fullName: json['full_name'] as String?, +); + +Map _$RegistrarToJson(_Registrar instance) => + { + 'date': instance.date, + 'role': instance.role, + 'full_name': instance.fullName, + }; + +_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, +}; diff --git a/packages/chicken/lib/data/models/response/sell_for_freezing/sell_for_freezing.dart b/packages/chicken/lib/data/models/response/sell_for_freezing/sell_for_freezing.dart new file mode 100644 index 0000000..fe1f7e9 --- /dev/null +++ b/packages/chicken/lib/data/models/response/sell_for_freezing/sell_for_freezing.dart @@ -0,0 +1,16 @@ +import 'package:rasadyar_core/core.dart'; + +part 'sell_for_freezing.freezed.dart'; +part 'sell_for_freezing.g.dart'; + +@freezed +abstract class SellForFreezing with _$SellForFreezing { + const factory SellForFreezing({ + bool? permission, + }) = _SellForFreezing; + + factory SellForFreezing.fromJson(Map json) => + _$SellForFreezingFromJson(json); +} + + diff --git a/packages/chicken/lib/data/models/response/sell_for_freezing/sell_for_freezing.freezed.dart b/packages/chicken/lib/data/models/response/sell_for_freezing/sell_for_freezing.freezed.dart new file mode 100644 index 0000000..9d90844 --- /dev/null +++ b/packages/chicken/lib/data/models/response/sell_for_freezing/sell_for_freezing.freezed.dart @@ -0,0 +1,277 @@ +// 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 'sell_for_freezing.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; + +/// @nodoc +mixin _$SellForFreezing { + + bool? get permission; +/// Create a copy of SellForFreezing +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$SellForFreezingCopyWith get copyWith => _$SellForFreezingCopyWithImpl(this as SellForFreezing, _$identity); + + /// Serializes this SellForFreezing to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is SellForFreezing&&(identical(other.permission, permission) || other.permission == permission)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,permission); + +@override +String toString() { + return 'SellForFreezing(permission: $permission)'; +} + + +} + +/// @nodoc +abstract mixin class $SellForFreezingCopyWith<$Res> { + factory $SellForFreezingCopyWith(SellForFreezing value, $Res Function(SellForFreezing) _then) = _$SellForFreezingCopyWithImpl; +@useResult +$Res call({ + bool? permission +}); + + + + +} +/// @nodoc +class _$SellForFreezingCopyWithImpl<$Res> + implements $SellForFreezingCopyWith<$Res> { + _$SellForFreezingCopyWithImpl(this._self, this._then); + + final SellForFreezing _self; + final $Res Function(SellForFreezing) _then; + +/// Create a copy of SellForFreezing +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? permission = freezed,}) { + return _then(_self.copyWith( +permission: freezed == permission ? _self.permission : permission // ignore: cast_nullable_to_non_nullable +as bool?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [SellForFreezing]. +extension SellForFreezingPatterns on SellForFreezing { +/// 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( _SellForFreezing value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _SellForFreezing() 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( _SellForFreezing value) $default,){ +final _that = this; +switch (_that) { +case _SellForFreezing(): +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( _SellForFreezing value)? $default,){ +final _that = this; +switch (_that) { +case _SellForFreezing() 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? permission)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _SellForFreezing() when $default != null: +return $default(_that.permission);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? permission) $default,) {final _that = this; +switch (_that) { +case _SellForFreezing(): +return $default(_that.permission);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? permission)? $default,) {final _that = this; +switch (_that) { +case _SellForFreezing() when $default != null: +return $default(_that.permission);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _SellForFreezing implements SellForFreezing { + const _SellForFreezing({this.permission}); + factory _SellForFreezing.fromJson(Map json) => _$SellForFreezingFromJson(json); + +@override final bool? permission; + +/// Create a copy of SellForFreezing +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$SellForFreezingCopyWith<_SellForFreezing> get copyWith => __$SellForFreezingCopyWithImpl<_SellForFreezing>(this, _$identity); + +@override +Map toJson() { + return _$SellForFreezingToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _SellForFreezing&&(identical(other.permission, permission) || other.permission == permission)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,permission); + +@override +String toString() { + return 'SellForFreezing(permission: $permission)'; +} + + +} + +/// @nodoc +abstract mixin class _$SellForFreezingCopyWith<$Res> implements $SellForFreezingCopyWith<$Res> { + factory _$SellForFreezingCopyWith(_SellForFreezing value, $Res Function(_SellForFreezing) _then) = __$SellForFreezingCopyWithImpl; +@override @useResult +$Res call({ + bool? permission +}); + + + + +} +/// @nodoc +class __$SellForFreezingCopyWithImpl<$Res> + implements _$SellForFreezingCopyWith<$Res> { + __$SellForFreezingCopyWithImpl(this._self, this._then); + + final _SellForFreezing _self; + final $Res Function(_SellForFreezing) _then; + +/// Create a copy of SellForFreezing +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? permission = freezed,}) { + return _then(_SellForFreezing( +permission: freezed == permission ? _self.permission : permission // ignore: cast_nullable_to_non_nullable +as bool?, + )); +} + + +} + +// dart format on diff --git a/packages/chicken/lib/data/models/response/sell_for_freezing/sell_for_freezing.g.dart b/packages/chicken/lib/data/models/response/sell_for_freezing/sell_for_freezing.g.dart new file mode 100644 index 0000000..93f1125 --- /dev/null +++ b/packages/chicken/lib/data/models/response/sell_for_freezing/sell_for_freezing.g.dart @@ -0,0 +1,13 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'sell_for_freezing.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +_SellForFreezing _$SellForFreezingFromJson(Map json) => + _SellForFreezing(permission: json['permission'] as bool?); + +Map _$SellForFreezingToJson(_SellForFreezing instance) => + {'permission': instance.permission}; diff --git a/packages/chicken/lib/data/repositories/poultry_science/poultry_science_repository.dart b/packages/chicken/lib/data/repositories/poultry_science/poultry_science_repository.dart index 394c32e..52d9787 100644 --- a/packages/chicken/lib/data/repositories/poultry_science/poultry_science_repository.dart +++ b/packages/chicken/lib/data/repositories/poultry_science/poultry_science_repository.dart @@ -1,7 +1,16 @@ +import 'package:rasadyar_chicken/data/models/poultry_export/poultry_export.dart'; +import 'package:rasadyar_chicken/data/models/request/kill_registration/kill_registration.dart'; +import 'package:rasadyar_chicken/data/models/response/all_poultry/all_poultry.dart'; +import 'package:rasadyar_chicken/data/models/response/approved_price/approved_price.dart'; import 'package:rasadyar_chicken/data/models/response/hatching/hatching_models.dart'; import 'package:rasadyar_chicken/data/models/response/hatching_report/hatching_report.dart'; -import 'package:rasadyar_chicken/data/models/response/poultry/poultry_farm.dart'; +import 'package:rasadyar_chicken/data/models/response/kill_house_poultry/kill_house_poultry.dart'; +import 'package:rasadyar_chicken/data/models/response/kill_request_poultry/kill_request_poultry.dart'; +import 'package:rasadyar_chicken/data/models/response/poultry_farm/poultry_farm.dart'; +import 'package:rasadyar_chicken/data/models/response/poultry_hatching/poultry_hatching.dart'; +import 'package:rasadyar_chicken/data/models/response/poultry_order/poultry_order.dart'; import 'package:rasadyar_chicken/data/models/response/poultry_science/home_poultry_science/home_poultry_science_model.dart'; +import 'package:rasadyar_chicken/data/models/response/sell_for_freezing/sell_for_freezing.dart'; import 'package:rasadyar_core/core.dart'; abstract class PoultryScienceRepository { @@ -30,4 +39,50 @@ abstract class PoultryScienceRepository { Map? queryParameters, }); + Future getApprovedPrice({ required String token, + Map? queryParameters,}); + + + Future?> getAllPoultry({ + required String token, + Map? queryParameters, + }); + + + Future getSellForFreezing({ + required String token, + Map? queryParameters, + }); + + + Future getPoultryExport({ + required String token, + Map? queryParameters, + }); + + Future?> getUserPoultry({ + required String token, + Map? queryParameters, + }); + + Future?> getPoultryHatching({ + required String token, + Map? queryParameters, + }); + + Future?> getKillHouseList({ + required String token, + Map? queryParameters, + }); + + Future submitKillRegistration({ + required String token, + required KillRegistrationRequest request, + }); + + Future?> getPoultryOderList({ + required String token, + Map? queryParameters, + }); + } diff --git a/packages/chicken/lib/data/repositories/poultry_science/poultry_science_repository_imp.dart b/packages/chicken/lib/data/repositories/poultry_science/poultry_science_repository_imp.dart index a635354..cdcaca8 100644 --- a/packages/chicken/lib/data/repositories/poultry_science/poultry_science_repository_imp.dart +++ b/packages/chicken/lib/data/repositories/poultry_science/poultry_science_repository_imp.dart @@ -1,8 +1,17 @@ import 'package:rasadyar_chicken/data/data_source/remote/poultry_science/poultry_science_remote.dart'; +import 'package:rasadyar_chicken/data/models/poultry_export/poultry_export.dart'; +import 'package:rasadyar_chicken/data/models/request/kill_registration/kill_registration.dart'; +import 'package:rasadyar_chicken/data/models/response/all_poultry/all_poultry.dart'; +import 'package:rasadyar_chicken/data/models/response/approved_price/approved_price.dart'; import 'package:rasadyar_chicken/data/models/response/hatching/hatching_models.dart'; import 'package:rasadyar_chicken/data/models/response/hatching_report/hatching_report.dart'; -import 'package:rasadyar_chicken/data/models/response/poultry/poultry_farm.dart'; +import 'package:rasadyar_chicken/data/models/response/kill_house_poultry/kill_house_poultry.dart'; +import 'package:rasadyar_chicken/data/models/response/kill_request_poultry/kill_request_poultry.dart'; +import 'package:rasadyar_chicken/data/models/response/poultry_farm/poultry_farm.dart'; +import 'package:rasadyar_chicken/data/models/response/poultry_hatching/poultry_hatching.dart'; +import 'package:rasadyar_chicken/data/models/response/poultry_order/poultry_order.dart'; import 'package:rasadyar_chicken/data/models/response/poultry_science/home_poultry_science/home_poultry_science_model.dart'; +import 'package:rasadyar_chicken/data/models/response/sell_for_freezing/sell_for_freezing.dart'; import 'package:rasadyar_core/core.dart'; import 'poultry_science_repository.dart'; @@ -53,4 +62,76 @@ class PoultryScienceRepositoryImp implements PoultryScienceRepository { queryParameters: queryParameters, ); } + + @override + Future getApprovedPrice({ + required String token, + Map? queryParameters, + }) async { + return await datasource.getApprovedPrice(token: token, queryParameters: queryParameters); + } + + @override + Future?> getAllPoultry({ + required String token, + Map? queryParameters, + }) async { + return await datasource.getAllPoultry(token: token, queryParameters: queryParameters); + } + + @override + Future getPoultryExport({ + required String token, + Map? queryParameters, + }) async { + return await datasource.getPoultryExport(token: token, queryParameters: queryParameters); + } + + @override + Future getSellForFreezing({ + required String token, + Map? queryParameters, + }) async { + return await datasource.getSellForFreezing(token: token, queryParameters: queryParameters); + } + + @override + Future?> getUserPoultry({ + required String token, + Map? queryParameters, + }) async { + return await datasource.getUserPoultry(token: token, queryParameters: queryParameters); + } + + @override + Future?> getPoultryHatching({ + required String token, + Map? queryParameters, + }) async { + return await datasource.getPoultryHatching(token: token, queryParameters: queryParameters); + } + + @override + Future?> getKillHouseList({ + required String token, + Map? queryParameters, + }) async { + return await datasource.getKillHouseList(token: token, queryParameters: queryParameters); + } + + @override + Future submitKillRegistration({ + required String token, + required KillRegistrationRequest request, + }) async { + await datasource.submitKillRegistration(token: token, request: request); + } + + @override + Future?> getPoultryOderList({ + required String token, + Map? queryParameters, + }) async { + return await datasource.getPoultryOderList(token: token, queryParameters: queryParameters); + } } diff --git a/packages/chicken/lib/presentation/pages/common/profile/logic.dart b/packages/chicken/lib/presentation/pages/common/profile/logic.dart index 4a1f2ca..d577487 100644 --- a/packages/chicken/lib/presentation/pages/common/profile/logic.dart +++ b/packages/chicken/lib/presentation/pages/common/profile/logic.dart @@ -1,12 +1,13 @@ import 'package:flutter/material.dart'; +import 'package:rasadyar_chicken/data/di/chicken_di.dart'; import 'package:rasadyar_chicken/data/models/request/change_password/change_password_request_model.dart'; import 'package:rasadyar_chicken/data/models/response/iran_province_city/iran_province_city_model.dart'; import 'package:rasadyar_chicken/data/models/response/user_profile/user_profile.dart'; -import 'package:rasadyar_chicken/presentation/pages/steward/root/logic.dart'; +import 'package:rasadyar_chicken/data/repositories/chicken/chicken_repository.dart'; import 'package:rasadyar_core/core.dart'; class ProfileLogic extends GetxController { - StewardRootLogic rootLogic = Get.find(); + ChickenRepository chickenRepository = diChicken.get(); GService gService = Get.find(); TokenStorageService tokenService = Get.find(); RxInt selectedInformationType = 0.obs; @@ -78,9 +79,8 @@ class ProfileLogic extends GetxController { Future getUserProfile() async { userProfile.value = Resource.loading(); await safeCall( - call: () async => await rootLogic.chickenRepository.getUserProfile( - token: rootLogic.tokenService.accessToken.value!, - ), + call: () async => + await chickenRepository.getUserProfile(token: tokenService.accessToken.value!), onSuccess: (result) { if (result != null) { userProfile.value = Resource.success(result); @@ -92,8 +92,7 @@ class ProfileLogic extends GetxController { Future getCites() async { await safeCall( - call: () => - rootLogic.chickenRepository.getCity(provinceName: selectedProvince.value?.name ?? ''), + call: () => chickenRepository.getCity(provinceName: selectedProvince.value?.name ?? ''), onSuccess: (result) { if (result != null && result.isNotEmpty) { cites.value = result; @@ -115,8 +114,8 @@ class ProfileLogic extends GetxController { ); isOnLoading.value = true; await safeCall( - call: () async => await rootLogic.chickenRepository.updateUserProfile( - token: rootLogic.tokenService.accessToken.value!, + call: () async => await chickenRepository.updateUserProfile( + token: tokenService.accessToken.value!, userProfile: userProfile, ), onSuccess: (result) { @@ -136,8 +135,8 @@ class ProfileLogic extends GetxController { ); await safeCall( - call: () async => await rootLogic.chickenRepository.updatePassword( - token: rootLogic.tokenService.accessToken.value!, + call: () async => await chickenRepository.updatePassword( + token: tokenService.accessToken.value!, model: model, ), ); @@ -147,7 +146,7 @@ class ProfileLogic extends GetxController { Future getUserRole() async { userLocal.value = Resource.loading(); await safeCall( - call: () async => rootLogic.tokenService.getUserLocal(Module.chicken), + call: () async => tokenService.getUserLocal(Module.chicken), onSuccess: (result) { if (result != null) { userLocal.value = Resource.success(result); @@ -164,7 +163,8 @@ class ProfileLogic extends GetxController { } Future changeUserRole(String newRole) async { - await gService.saveSelectedRole(Module.chicken, newRole); + dLog(newRole); + await gService.saveRoute(Module.chicken, newRole); Get.offAllNamed(newRole); } diff --git a/packages/chicken/lib/presentation/pages/common/profile/view.dart b/packages/chicken/lib/presentation/pages/common/profile/view.dart index 6f797c3..0409f74 100644 --- a/packages/chicken/lib/presentation/pages/common/profile/view.dart +++ b/packages/chicken/lib/presentation/pages/common/profile/view.dart @@ -4,7 +4,6 @@ import 'package:flutter/cupertino.dart' hide Image; import 'package:flutter/material.dart'; import 'package:rasadyar_chicken/data/common/fa_user_role.dart'; import 'package:rasadyar_chicken/data/di/chicken_di.dart'; -import 'package:rasadyar_chicken/data/models/response/iran_province_city/iran_province_city_model.dart'; import 'package:rasadyar_chicken/data/models/response/user_profile/user_profile.dart'; import 'package:rasadyar_core/core.dart'; @@ -461,33 +460,6 @@ class ProfilePage extends GetView { ); } - Widget _provinceWidget() { - return Obx(() { - return OverlayDropdownWidget( - items: controller.rootLogic.provinces, - onChanged: (value) { - controller.selectedProvince.value = value; - }, - selectedItem: controller.selectedProvince.value, - itemBuilder: (item) => Text(item.name ?? 'بدون نام'), - labelBuilder: (item) => Text(item?.name ?? 'انتخاب استان'), - ); - }); - } - - Widget _cityWidget() { - return ObxValue((data) { - return OverlayDropdownWidget( - items: data, - onChanged: (value) { - controller.selectedCity.value = value; - }, - selectedItem: controller.selectedCity.value, - itemBuilder: (item) => Text(item.name ?? 'بدون نام'), - labelBuilder: (item) => Text(item?.name ?? 'انتخاب شهر'), - ); - }, controller.cites); - } Widget changePasswordBottomSheet() { return BaseBottomSheet( @@ -616,7 +588,7 @@ class ProfilePage extends GetView { backgroundColor: AppColor.error, onPressed: () async { await Future.wait([ - controller.rootLogic.tokenService.deleteModuleTokens(Module.chicken), + controller.tokenService.deleteModuleTokens(Module.chicken), controller.gService.clearSelectedModule(), ]).then((value) async { await removeChickenDI(); @@ -660,7 +632,7 @@ class ProfilePage extends GetView { Map tmpRole = getFaUserRoleWithOnTap(item?[index]); return CustomChip( isSelected: - controller.gService.getSelectedRole(Module.chicken) == tmpRole.values.first, + controller.gService.getRoute(Module.chicken) == tmpRole.values.first, title: tmpRole.keys.first, index: index, onTap: (int p1) { diff --git a/packages/chicken/lib/presentation/pages/common/role/view.dart b/packages/chicken/lib/presentation/pages/common/role/view.dart index ec0f3aa..576e4b7 100644 --- a/packages/chicken/lib/presentation/pages/common/role/view.dart +++ b/packages/chicken/lib/presentation/pages/common/role/view.dart @@ -42,10 +42,15 @@ class RolePage extends GetView { title: role.keys.first, onTap: () async { String route = role.values.first; - await controller.gService.saveSelectedRole( + await controller.gService.saveRoute( Module.chicken, route, ); + + await controller.gService.saveRole( + Module.chicken, + data[index], + ); Get.offAllNamed(route); }, ); diff --git a/packages/chicken/lib/presentation/pages/poultry_science/active_hatching/view.dart b/packages/chicken/lib/presentation/pages/poultry_science/active_hatching/view.dart index 76f321f..ec00fab 100644 --- a/packages/chicken/lib/presentation/pages/poultry_science/active_hatching/view.dart +++ b/packages/chicken/lib/presentation/pages/poultry_science/active_hatching/view.dart @@ -3,6 +3,7 @@ import 'package:get/get.dart'; import 'package:rasadyar_chicken/data/models/response/hatching/hatching_models.dart'; import 'package:rasadyar_chicken/data/models/response/hatching_report/hatching_report.dart'; import 'package:rasadyar_chicken/presentation/pages/poultry_science/active_hatching/logic.dart'; +import 'package:rasadyar_chicken/presentation/utils/nested_keys_utils.dart'; import 'package:rasadyar_chicken/presentation/widget/base_page/view.dart'; import 'package:rasadyar_core/core.dart'; import 'package:rasadyar_core/presentation/widget/list_item/list_item2.dart'; @@ -17,7 +18,7 @@ class ActiveHatchingPage extends GetView { hasSearch: false, hasFilter: false, routes: controller.routesName, - onBackPressed: () => Get.back(id: 0), + onBackPressed: () => Get.back(id: poultryFirstKey), widgets: [ hatchingWidget() ], @@ -127,11 +128,11 @@ class ActiveHatchingPage extends GetView { buildRow(title: 'شماره مجوز جوجه ریزی', value: item.licenceNumber ?? 'N/A'), buildRow( title: 'حجم جوجه ریزی', - value: item.quantity.separatedByComma, + value: item.quantity.separatedByCommaFa, valueStyle: AppFonts.yekan14.copyWith(color: AppColor.blueNormal), ), - buildRow(title: 'مانده در سالن', value: item.leftOver.separatedByComma), - buildRow(title: 'تلفات', value: item.losses.separatedByComma), + buildRow(title: 'مانده در سالن', value: item.leftOver.separatedByCommaFa), + buildRow(title: 'تلفات', value: item.losses.separatedByCommaFa), buildRow( title: 'دامپزشک فارم', value: '${item.vetFarm?.vetFarmFullName}(${item.vetFarm?.vetFarmMobile})', diff --git a/packages/chicken/lib/presentation/pages/poultry_science/farm/logic.dart b/packages/chicken/lib/presentation/pages/poultry_science/farm/logic.dart index 6a5740a..92ff674 100644 --- a/packages/chicken/lib/presentation/pages/poultry_science/farm/logic.dart +++ b/packages/chicken/lib/presentation/pages/poultry_science/farm/logic.dart @@ -1,5 +1,6 @@ import 'package:flutter/material.dart'; -import 'package:rasadyar_chicken/data/models/response/poultry/poultry_farm.dart'; +import 'package:rasadyar_chicken/data/models/response/poultry_farm/poultry_farm.dart'; + import 'package:rasadyar_chicken/presentation/pages/poultry_science/home/logic.dart'; import 'package:rasadyar_chicken/presentation/pages/poultry_science/root/logic.dart'; import 'package:rasadyar_core/core.dart'; diff --git a/packages/chicken/lib/presentation/pages/poultry_science/farm/view.dart b/packages/chicken/lib/presentation/pages/poultry_science/farm/view.dart index 3d2f14e..45c88de 100644 --- a/packages/chicken/lib/presentation/pages/poultry_science/farm/view.dart +++ b/packages/chicken/lib/presentation/pages/poultry_science/farm/view.dart @@ -1,5 +1,7 @@ import 'package:flutter/material.dart'; -import 'package:rasadyar_chicken/data/models/response/poultry/poultry_farm.dart'; +import 'package:rasadyar_chicken/data/models/response/poultry_farm/poultry_farm.dart'; + +import 'package:rasadyar_chicken/presentation/utils/nested_keys_utils.dart'; import 'package:rasadyar_chicken/presentation/widget/base_page/view.dart'; import 'package:rasadyar_core/core.dart'; @@ -14,7 +16,7 @@ class FarmPage extends GetView { routes: controller.routes, hasFilter: false, hasSearch: false, - onBackPressed: () => Get.back(id: 0), + onBackPressed: () => Get.back(id: poultryFirstKey), widgets: [firstTagInformation(), farmListWidget()], ); } @@ -131,7 +133,7 @@ class FarmPage extends GetView { title: 'دامپزشک فارم', value: '${item.vetFarm?.fullName ?? '-'} (${item.vetFarm?.mobile ?? '-'})', ), - buildRow(title: 'ظرفیت فارم', value: item.totalCapacity.separatedByComma), + buildRow(title: 'ظرفیت فارم', value: item.totalCapacity.separatedByCommaFa), buildRow( title: 'جوجه ریزی فعال (تعداد دوره) ', value: diff --git a/packages/chicken/lib/presentation/pages/poultry_science/genocide/logic.dart b/packages/chicken/lib/presentation/pages/poultry_science/genocide/logic.dart new file mode 100644 index 0000000..6f060c6 --- /dev/null +++ b/packages/chicken/lib/presentation/pages/poultry_science/genocide/logic.dart @@ -0,0 +1,86 @@ +import 'package:rasadyar_chicken/data/models/response/poultry_order/poultry_order.dart'; +import 'package:rasadyar_chicken/presentation/pages/poultry_science/root/logic.dart'; +import 'package:rasadyar_core/core.dart'; + +class GenocideLogic extends GetxController { + List routes = ['اقدام', 'درخواست کشتارها']; + var tokenService = Get.find(); + var gService = Get.find(); + var rootLogic = Get.find(); + + Rx>> poultryOrderList = + Resource>.loading().obs; + + RxList isExpandedList = [].obs; + final RxInt currentPage = 1.obs; + + final RxBool isLoadingMore = false.obs; + + Rx fromDateFilter = Jalali + .now() + .obs; + Rx toDateFilter = Jalali + .now() + .obs; + RxnString searchedValue = RxnString(); + + /* final RxBool isLoadingMoreAllocationsMade = false.obs; + final RxBool isOnLoadingSubmitOrEdit = false.obs;*/ + + @override + void onReady() { + super.onReady(); + getPoultryOrderList(); + } + + @override + void onClose() { + // TODO: implement onClose + super.onClose(); + } + + Future getPoultryOrderList([bool loadingMore = false]) async { + if (loadingMore) { + isLoadingMore.value = true; + } else { + poultryOrderList.value = Resource>.loading(); + } + + if (searchedValue.value != null && + searchedValue.value!.trim().isNotEmpty && + currentPage.value > 1) { + currentPage.value = 1; + } + await safeCall( + call: () => + rootLogic.poultryRepository.getPoultryOderList( + token: rootLogic.tokenService.accessToken.value!, + queryParameters: buildQueryParams( + pageSize: 20, + page: currentPage.value, + search: 'filter', + role: gService.getRole(Module.chicken), + value: searchedValue.value, + fromDate: fromDateFilter.value.toDateTime(), + toDate: toDateFilter.value.toDateTime(), + queryParams: {'today': null} + ), + ), + onSuccess: (res) async { + await Future.delayed(Duration(milliseconds: 500)); + if ((res?.count ?? 0) == 0) { + poultryOrderList.value = Resource>.empty(); + } else { + poultryOrderList.value = Resource>.success( + PaginationModel( + count: res?.count ?? 0, + next: res?.next, + previous: res?.previous, + results: [...(poultryOrderList.value.data?.results ?? []), ...(res?.results ?? [])], + ), + ); + } + }, + ); + } +} diff --git a/packages/chicken/lib/presentation/pages/poultry_science/genocide/view.dart b/packages/chicken/lib/presentation/pages/poultry_science/genocide/view.dart new file mode 100644 index 0000000..aacb5b8 --- /dev/null +++ b/packages/chicken/lib/presentation/pages/poultry_science/genocide/view.dart @@ -0,0 +1,222 @@ +import 'package:flutter/material.dart'; +import 'package:rasadyar_chicken/data/models/response/poultry_order/poultry_order.dart'; +import 'package:rasadyar_chicken/presentation/routes/routes.dart'; +import 'package:rasadyar_chicken/presentation/utils/nested_keys_utils.dart'; +import 'package:rasadyar_chicken/presentation/widget/base_page/view.dart'; +import 'package:rasadyar_core/core.dart'; + +import 'logic.dart'; + +class GenocidePage extends GetView { + const GenocidePage({super.key}); + + @override + Widget build(BuildContext context) { + return BasePage( + routes: controller.routes, + hasSearch: false, + hasFilter: false, + onBackPressed: () => Get.back(id: poultryFirstKey), + floatingActionButtonLocation: FloatingActionButtonLocation.startFloat, + floatingActionButton: RFab.add( + onPressed: () { + Get.toNamed(ChickenRoutes.killingRegistrationPoultryScience, id: poultryFirstKey); + }, + ), + widgets: [poultryOrderListWidget()], + ); + } + + Widget poultryOrderListWidget() { + return Expanded( + child: ObxValue((data) { + return RPaginatedListView( + listType: ListType.separated, + resource: data.value, + hasMore: data.value.data?.next != null, + padding: EdgeInsets.fromLTRB(8, 8, 8, 80), + itemBuilder: (context, index) { + var item = data.value.data!.results![index]; + return ObxValue((val) { + return ExpandableListItem2( + selected: val.contains(index), + onTap: () => controller.isExpandedList.toggle(index), + index: index, + child: itemListWidget(item), + secondChild: itemListExpandedWidget(item), + labelColor: AppColor.blueLight, + labelIcon: Assets.vec.cubeScanSvg.path, + ); + }, controller.isExpandedList); + }, + itemCount: data.value.data?.results?.length ?? 0, + separatorBuilder: (context, index) => SizedBox(height: 8.h), + onLoadMore: () async => controller.getPoultryOrderList(true), + onRefresh: () async { + controller.currentPage.value = 1; + await controller.getPoultryOrderList(); + }, + ); + }, controller.poultryOrderList), + ); + } + + Container itemListExpandedWidget(PoultryOrder item) { + return Container( + padding: EdgeInsets.symmetric(horizontal: 8), + decoration: BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(8)), + child: Column( + spacing: 8, + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Text( + item.poultry?.unitName ?? 'N/A', + textAlign: TextAlign.center, + style: AppFonts.yekan16.copyWith(color: AppColor.greenDark), + ), + Spacer(), + + Visibility( + child: Text( + '${item.poultry?.address?.province?.name} / ${item.poultry?.address?.city?.name}', + textAlign: TextAlign.center, + style: AppFonts.yekan14.copyWith(color: AppColor.blueNormal), + ), + ), + ], + ), + Container( + height: 32, + padding: EdgeInsets.symmetric(horizontal: 8), + decoration: ShapeDecoration( + color: AppColor.blueLight, + shape: RoundedRectangleBorder( + side: BorderSide(width: 1, color: AppColor.blueLightHover), + borderRadius: BorderRadius.circular(8), + ), + ), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Text( + 'سن مرغ: ${item.hatching?.age ?? '-'}', + style: AppFonts.yekan14.copyWith(color: AppColor.textColor), + ), + + Text( + item.sendDate?.formattedJalaliDate ?? '-', + style: AppFonts.yekan14.copyWith(color: AppColor.textColor), + ), + + Text( + 'تعداد:${item.quantity.separatedByComma ?? '-'} (قطعه)', + style: AppFonts.yekan14.copyWith(color: AppColor.textColor), + ), + ], + ), + ), + + buildRow(title: 'کد سفارش', value: '${item.orderCode} '), + buildRow( + title: 'نوع فروش', + value: (item.freeSaleInProvince ?? false) ? 'آزاد' : 'دولتی ', + ), + buildRow(title: 'نوع کشتار ', value: getKillType(item)), + buildRow(title: 'درخواست', value: getRequestType(item) ?? 'N/A'), + + buildRow(title: 'میانگین وزنی', value: '${(item.indexWeight)} (کیلوگرم)'), + buildRow(title: 'قیمت مرغدار', value: '${item.amount.separatedByComma} (ریال)'), + buildRow(title: 'مانده در سالن ', value: '${item.hatching?.leftOver.separatedByComma ?? 0} (قطعه)'), + buildRow(title: ' وضعیت', value: getState(item)), + ], + ), + ); + } + + Widget itemListWidget(PoultryOrder item) { + return Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + SizedBox(width: 20), + Expanded( + flex: 2, + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + crossAxisAlignment: CrossAxisAlignment.center, + spacing: 3, + children: [ + Text( + item.poultry?.unitName ?? 'N/A', + textAlign: TextAlign.start, + style: AppFonts.yekan12.copyWith(color: AppColor.blueNormal), + ), + Text( + item.sendDate?.formattedJalaliDate ?? '-', + textAlign: TextAlign.center, + style: AppFonts.yekan14.copyWith(color: AppColor.bgDark), + ), + ], + ), + ), + Expanded( + flex: 3, + child: Column( + spacing: 3, + mainAxisAlignment: MainAxisAlignment.center, + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + Text( + 'کد سفارش : ${item.orderCode ?? '-'}', + textAlign: TextAlign.start, + style: AppFonts.yekan12.copyWith(color: AppColor.blueNormal), + ), + + Text( + 'تعداد:${item.quantity.separatedByComma ?? '-'} (قطعه)', + style: AppFonts.yekan14.copyWith(color: AppColor.textColor), + ), + ], + ), + ), + Expanded( + flex: 1, + child: Assets.vec.scanSvg.svg( + width: 32.w, + height: 32.h, + colorFilter: ColorFilter.mode(AppColor.blueNormal, BlendMode.srcIn), + ), + ), + ], + ); + } +} + +String getRequestType(PoultryOrder item) { + if (item.market ?? false) { + return 'پنل معاملات'; + } else if (item.union ?? false) { + return 'اتحادیه'; + } else { + return 'خرید مستقیم'; + } +} + +String getKillType(PoultryOrder item) { + if (item.export ?? false) { + return 'صادرات'; + } else if (item.freezing ?? false) { + return 'انجماد'; + } else { + return 'عادی'; + } +} + +String getState(PoultryOrder item) { + if (item.stateProcess == 'pending') { + return 'در انتظار تایید'; + } else { + return 'تایید شده'; + } +} \ No newline at end of file diff --git a/packages/chicken/lib/presentation/pages/poultry_science/home/logic.dart b/packages/chicken/lib/presentation/pages/poultry_science/home/logic.dart index bfe84db..f07e1cf 100644 --- a/packages/chicken/lib/presentation/pages/poultry_science/home/logic.dart +++ b/packages/chicken/lib/presentation/pages/poultry_science/home/logic.dart @@ -116,13 +116,13 @@ class PoultryScienceHomeLogic extends GetxController { tagInfo['first'] = tagInfo['first']!.map((tag) { if (tag.labelTitle == 'کل فارم ها') { return tag.copyWith( - value: result.farmCount?.separatedByComma ?? '0', + value: result.farmCount?.separatedByCommaFa ?? '0', isLoading: false, ); } if (tag.labelTitle == 'تعداد جوجه ریزی') { return tag.copyWith( - value: result.hatchingCount?.separatedByComma ?? '0', + value: result.hatchingCount?.separatedByCommaFa ?? '0', isLoading: false, ); } @@ -134,12 +134,12 @@ class PoultryScienceHomeLogic extends GetxController { switch (tag.labelTitle) { case 'حجم جوجه ریزی': return tag.copyWith( - value: result.hatchingQuantity?.separatedByComma ?? '0', + value: result.hatchingQuantity?.separatedByCommaFa ?? '0', isLoading: false, ); case 'مانده در سالن': return tag.copyWith( - value: result.hatchingLeftOver?.separatedByComma ?? '0', + value: result.hatchingLeftOver?.separatedByCommaFa ?? '0', isLoading: false, ); default: @@ -152,12 +152,12 @@ class PoultryScienceHomeLogic extends GetxController { switch (tag.labelTitle) { case 'تلفات': return tag.copyWith( - value: result.hatchingLosses?.separatedByComma ?? '0', + value: result.hatchingLosses?.separatedByCommaFa ?? '0', isLoading: false, ); case 'حجم کشتار شده': return tag.copyWith( - value: result.hatchingKilledQuantity?.separatedByComma ?? '0', + value: result.hatchingKilledQuantity?.separatedByCommaFa ?? '0', isLoading: false, ); default: @@ -169,12 +169,12 @@ class PoultryScienceHomeLogic extends GetxController { switch (element.labelTitle) { case 'کمترین سن جوجه ریزی': return element.copyWith( - value: result.hatchingMinAge?.separatedByComma ?? '0', + value: result.hatchingMinAge?.separatedByCommaFa ?? '0', isLoading: false, ); case 'بیشترین سن جوجه ریزی': return element.copyWith( - value: result.hatchingMaxAge?.separatedByComma ?? '0', + value: result.hatchingMaxAge?.separatedByCommaFa ?? '0', isLoading: false, ); default: diff --git a/packages/chicken/lib/presentation/pages/poultry_science/inspection/view.dart b/packages/chicken/lib/presentation/pages/poultry_science/inspection/view.dart index 30b7e87..db28b5c 100644 --- a/packages/chicken/lib/presentation/pages/poultry_science/inspection/view.dart +++ b/packages/chicken/lib/presentation/pages/poultry_science/inspection/view.dart @@ -3,6 +3,7 @@ import 'dart:io'; import 'package:flutter/material.dart'; import 'package:rasadyar_chicken/data/models/response/hatching/hatching_models.dart'; import 'package:rasadyar_chicken/data/models/response/hatching_report/hatching_report.dart'; +import 'package:rasadyar_chicken/presentation/utils/nested_keys_utils.dart'; import 'package:rasadyar_chicken/presentation/widget/base_page/view.dart'; import 'package:rasadyar_chicken/presentation/widget/page_route.dart'; import 'package:rasadyar_core/core.dart'; @@ -18,7 +19,7 @@ class InspectionPoultrySciencePage extends GetView buildPageRoute(route), controller.routesName), - onBackPressed: () => Get.back(id: 0), + onBackPressed: () => Get.back(id: poultryFirstKey), widgets: [ segmentWidget(), @@ -132,11 +133,11 @@ class InspectionPoultrySciencePage extends GetView routes = ['اقدام', 'درخواست کشتارها', 'ثبت کشتار']; + var tokenService = Get.find(); + var gService = Get.find(); + var rootLogic = Get.find(); + GlobalKey formKey = GlobalKey(); + + Rxn approvedPrice = Rxn(); + Rx killsDate = Jalali.now().obs; + + Rxn sellForFreezing = Rxn(); + Rxn poultryExport = Rxn(); + + TextEditingController quantityKillsController = TextEditingController(); + TextEditingController quantityLoseController = TextEditingController(text: 0.toString()); + TextEditingController averageWeightKillsController = TextEditingController(); + TextEditingController priceFreeSaleController = TextEditingController(); + + RxInt generatedApprovedPrice = 0.obs; + RxBool isOnSubmitLoading = false.obs; + + RxBool isExportSelected = false.obs; + RxBool isFreezedSelected = false.obs; + RxBool isMarketSelected = false.obs; + RxBool isFreeSale = false.obs; + + //step 1 + Rx>> allPoultryList = Resource>.loading().obs; + Rxn selectedPoultry = Rxn(); + + //step 2 + Rx>> poultryList = Resource>.success( + [], + ).obs; + Rxn selectedKillRequestPoultry = Rxn(); + + //step 3 + Rx>> poultryHatchingList = Resource>.success( + [], + ).obs; + Rxn selectedPoultryHatching = Rxn(); + + //step 5 + Rx>> killHouseList = Resource>.success( + [], + ).obs; + Rxn selectedKillHouse = Rxn(); + + @override + void onReady() { + super.onReady(); + + getApprovedPrice(); + + getAllPoultryList(); + + getSellForFreezing(); + + getPoultryExport(); + + priceListener(); + + ever(selectedKillRequestPoultry, (callback) { + if (callback?.provinceAllowChooseKillHouse?.allowState ?? false) { + getKillHouseList(); + } + }); + + everAll( + [selectedPoultry, selectedKillRequestPoultry, selectedPoultryHatching, selectedKillHouse], + (callback) { + checkSubmitButton(); + }, + ); + } + + @override + void onClose() { + super.onClose(); + quantityKillsController.dispose(); + quantityLoseController.dispose(); + averageWeightKillsController.dispose(); + priceFreeSaleController.dispose(); + clearSelectedStep1(); + clearSelectedStep2(); + selectedKillHouse.value = null; + killHouseList.value = Resource>.success([]); + } + + void priceListener() { + quantityKillsController.addListener(() { + if (averageWeightKillsController.text.isNotEmpty && quantityKillsController.text.isNotEmpty) { + generatedApprovedPrice.value = calculateApprovedPrice().toInt(); + priceFreeSaleController.text = generatedApprovedPrice.value.separatedByComma; + + checkSubmitButton(); + } else { + generatedApprovedPrice.value = 0; + priceFreeSaleController.text = '0'; + checkSubmitButton(); + } + }); + + averageWeightKillsController.addListener(() { + if (averageWeightKillsController.text.isNotEmpty && quantityKillsController.text.isNotEmpty) { + generatedApprovedPrice.value = calculateApprovedPrice().toInt(); + priceFreeSaleController.text = generatedApprovedPrice.value.separatedByComma; + checkSubmitButton(); + } else { + generatedApprovedPrice.value = 0; + priceFreeSaleController.text = '0'; + checkSubmitButton(); + } + }); + + priceFreeSaleController.addListener(() { + final text = priceFreeSaleController.text; + if (text.isNotEmpty) { + generatedApprovedPrice.value = int.parse(text.replaceAll(',', '')); + } else { + generatedApprovedPrice.value = 0; + } + checkSubmitButton(); + }); + } + + void clearSelectedStep1() { + selectedPoultry.value = null; + selectedKillRequestPoultry.value = null; + selectedPoultryHatching.value = null; + poultryList.value = Resource>.success([]); + poultryHatchingList.value = Resource>.success([]); + } + + void clearSelectedStep2() { + selectedKillRequestPoultry.value = null; + selectedPoultryHatching.value = null; + poultryHatchingList.value = Resource>.success([]); + } + + Future getApprovedPrice() async { + await safeCall( + call: () async => await rootLogic.poultryRepository.getApprovedPrice( + token: tokenService.accessToken.value ?? '', + ), + onSuccess: (result) { + if (result != null) { + approvedPrice.value = result; + } + }, + onError: (error, stackTrace) {}, + ); + } + + Future getAllPoultryList() async { + await safeCall( + call: () async => await rootLogic.poultryRepository.getAllPoultry( + token: tokenService.accessToken.value ?? '', + queryParameters: buildRawQueryParams(role: gService.getRole(Module.chicken)), + ), + onSuccess: (result) { + if (result != null) { + allPoultryList.value = Resource>.success(result); + } + }, + onError: (error, stackTrace) { + allPoultryList.value = Resource>.error('$error -- $stackTrace'); + }, + ); + } + + Future getSellForFreezing() async { + await safeCall( + call: () async => await rootLogic.poultryRepository.getSellForFreezing( + token: tokenService.accessToken.value ?? '', + ), + onSuccess: (result) { + if (result != null) { + sellForFreezing.value = result; + } + }, + onError: (error, stackTrace) {}, + ); + } + + Future getPoultryExport() async { + await safeCall( + call: () async => await rootLogic.poultryRepository.getPoultryExport( + token: tokenService.accessToken.value ?? '', + ), + onSuccess: (result) { + if (result != null) { + poultryExport.value = result; + } + }, + onError: (error, stackTrace) {}, + ); + } + + Future getUserPoultryList() async { + poultryList.value = Resource>.loading(); + await safeCall( + call: () async => await rootLogic.poultryRepository.getUserPoultry( + token: tokenService.accessToken.value ?? '', + queryParameters: buildQueryParams( + value: selectedPoultry.value?.user?.mobile, + queryParams: {'type': 'filter'}, + ), + ), + onSuccess: (result) { + if (result != null) { + poultryList.value = Resource>.success(result); + } + }, + onError: (error, stackTrace) { + poultryList.value = Resource>.error('$error -- $stackTrace'); + }, + ); + } + + Future getPoultryHatchingList() async { + poultryHatchingList.value = Resource>.loading(); + await safeCall( + call: () async => await rootLogic.poultryRepository.getPoultryHatching( + token: tokenService.accessToken.value ?? '', + queryParameters: buildRawQueryParams( + queryParams: {'key': selectedKillRequestPoultry.value?.key}, + ), + ), + onSuccess: (result) { + if (result != null) { + poultryHatchingList.value = Resource>.success(result); + } + }, + onError: (error, stackTrace) { + poultryHatchingList.value = Resource>.error('$error -- $stackTrace'); + }, + ); + } + + Future getKillHouseList() async { + killHouseList.value = Resource>.loading(); + await safeCall( + call: () async => await rootLogic.poultryRepository.getKillHouseList( + token: tokenService.accessToken.value ?? '', + queryParameters: buildRawQueryParams( + queryParams: {'show_poultry': '', 'date': DateTime.now().formattedDashedGregorian}, + ), + ), + onSuccess: (result) { + if (result != null) { + killHouseList.value = Resource>.success(result); + } + }, + onError: (error, stackTrace) { + killHouseList.value = Resource>.error('$error -- $stackTrace'); + }, + ); + } + + double calculateApprovedPrice() { + final inputWeight = double.parse(averageWeightKillsController.text) * 1000; + final lowestWeight = approvedPrice.value?.lowestWeight ?? 0; + final highestWeight = approvedPrice.value?.highestWeight ?? 0; + final lowestPrice = approvedPrice.value?.lowestPrice ?? 0; + final highestPrice = approvedPrice.value?.highestPrice ?? 0; + + if (inputWeight <= lowestWeight) { + return lowestPrice; + } else if (inputWeight >= highestWeight) { + return highestPrice; + } else { + final diffWeight = highestWeight - lowestWeight; + final diffPrice = highestPrice - lowestPrice; + final fraction = diffPrice / diffWeight; + final diffFromMinWeight = inputWeight - lowestWeight; + return diffFromMinWeight * fraction + lowestPrice; + } + } + + void changeSaleType() { + isFreeSale.value = !isFreeSale.value; + generatedApprovedPrice.value = calculateApprovedPrice().toInt(); + } + + void checkSubmitButton() { + isOnSubmitLoading.value = + selectedPoultry.value != null && + selectedKillRequestPoultry.value != null && + selectedPoultryHatching.value != null && + quantityKillsController.text.isNotEmpty && + averageWeightKillsController.text.isNotEmpty && + ((selectedKillRequestPoultry.value?.provinceAllowChooseKillHouse?.mandatory ?? false) + ? selectedKillHouse.value != null + : true); + } + + Future submitKillRegistration() async { + isOnSubmitLoading.value = false; + if (!formKey.currentState!.validate()) { + return; + } + KillRegistrationRequest registrationRequest = KillRegistrationRequest( + indexWeight: double.parse(averageWeightKillsController.text), + amount: generatedApprovedPrice.value, + approvedPrice: approvedPrice.value?.approved ?? false, + auctionList: [], + cash: true, + chickenBreed: selectedPoultryHatching.value?.chickenBreed, + confirmPoultryMobile: selectedPoultry.value?.user?.mobile, + credit: false, + export: isExportSelected.value, + financialOperation: "outside-system", + freeSaleInProvince: isMarketSelected.value, + freezing: isFreezedSelected.value, + killHouseList: [ + if (selectedKillHouse.value != null) + '${selectedKillHouse.value?.name}(${selectedKillHouse.value?.fullname})', + ], + killReqKey: selectedKillHouse.value?.killReqKey, + losses: quantityLoseController.text, + market: isMarketSelected.value, + operatorKey: "", + poultryHatchingKey: selectedPoultryHatching.value?.key, + poultryKey: selectedPoultry.value?.key, + quantity: int.parse(quantityKillsController.text), + role: gService.getRole(Module.chicken), + sendDate: killsDate.value.toDateTime().formattedDashedGregorian, + ); + + await safeCall( + call: () async => await rootLogic.poultryRepository.submitKillRegistration( + token: tokenService.accessToken.value ?? '', + request: registrationRequest, + ), + onSuccess: (result) async { + defaultShowSuccessMessage( + 'ثبت با موفقیت انجام شد', + onDismissed: () { + Get.back(id: poultryFirstKey); + }, + ); + }, + onError: (error, stackTrace) {}, + ); + } +} diff --git a/packages/chicken/lib/presentation/pages/poultry_science/killing_registration/view.dart b/packages/chicken/lib/presentation/pages/poultry_science/killing_registration/view.dart new file mode 100644 index 0000000..b4fdb60 --- /dev/null +++ b/packages/chicken/lib/presentation/pages/poultry_science/killing_registration/view.dart @@ -0,0 +1,496 @@ +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:rasadyar_chicken/data/models/response/all_poultry/all_poultry.dart'; +import 'package:rasadyar_chicken/data/models/response/kill_house_poultry/kill_house_poultry.dart'; +import 'package:rasadyar_chicken/data/models/response/kill_request_poultry/kill_request_poultry.dart'; +import 'package:rasadyar_chicken/data/models/response/poultry_hatching/poultry_hatching.dart'; +import 'package:rasadyar_chicken/presentation/utils/nested_keys_utils.dart'; +import 'package:rasadyar_chicken/presentation/widget/base_page/view.dart'; +import 'package:rasadyar_core/core.dart'; + +import 'logic.dart'; + +class KillingRegistrationPage extends GetView { + const KillingRegistrationPage({super.key}); + + @override + Widget build(BuildContext context) { + return BasePageWithScroll( + hasSearch: false, + hasFilter: false, + routes: controller.routes, + onBackPressed: () => Get.back(id: poultryFirstKey), + widgets: [ + poultryFarmWidget(), + poultryUserListWidget(), + poultryHatchingWidget(), + ObxValue((data) { + return Visibility( + visible: controller.selectedPoultryHatching.value != null, + child: Form( + key: controller.formKey, + child: Column( + children: [ + informationWidget(), + killDateWidget( + date: controller.killsDate, + onChanged: (Jalali jalali) { + controller.killsDate.value = jalali; + }, + ), + loseWidget(), + quantityKillsWidget(), + averageWeightKillsWidget(), + saleTypeWidget(), + priceWidget(), + buyerListWidget(), + slaughterhouseSelectedWidget(), + submitButtonWidget(), + ], + ), + ), + ); + }, controller.selectedPoultryHatching), + ], + ); + } + + Widget informationWidget() { + return Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 10.h), + child: ObxValue( + (data) => Column( + spacing: 8, + children: [ + buildUnitRow( + title: 'تعداد جوجه ریزی', + value: data.value?.quantity.separatedByCommaFa, + unit: 'قطعه', + ), + buildUnitRow( + title: 'جمع تلفات ثبت شده دامپزشک و مرغدار', + value: data.value?.losses.separatedByCommaFa, + unit: 'قطعه', + ), + buildUnitRow( + title: 'باقیمانده', + value: data.value?.leftOver.separatedByCommaFa, + unit: 'قطعه', + ), + buildUnitRow( + title: 'سن مرغ', + value: data.value?.chickenAge.separatedByCommaFa, + unit: 'روز', + ), + buildUnitRow( + title: 'مجوز فروش آزاد', + value: data.value?.freeGovernmentalInfo?.totalFreeCommitmentQuantity.separatedByCommaFa, + unit: 'قطعه', + ), + buildUnitRow( + title: 'مانده فروش آزاد', + value: data + .value + ?.freeGovernmentalInfo + ?.leftTotalFreeCommitmentQuantity + .separatedByCommaFa, + unit: 'قطعه', + ), + ], + ), + controller.selectedPoultryHatching, + ), + ); + } + + Widget poultryFarmWidget() { + return Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 10.h), + child: ObxValue((data) { + return ResourceOverlayDropdown( + items: data.value, + background: Colors.white, + onChanged: (value) { + controller.clearSelectedStep1(); + controller.selectedPoultry.value = value; + controller.getUserPoultryList(); + }, + selectedItem: controller.selectedPoultry.value, + itemBuilder: (item) => Text(labelPoultry(item), maxLines: 2), + labelBuilder: (item) => Text(labelPoultry(item)), + ); + }, controller.allPoultryList), + ); + } + + String labelPoultry(AllPoultry? item) { + if (item == null) { + return 'انتخاب مرغداری'; + } else { + return '${item.unitName} (${item.address?.city?.name}) / ${item.user?.fullname} (${item.user?.mobile}) / ${item.lastHatchingRemainQuantity} قطعه '; + } + } + + Widget poultryUserListWidget() { + return Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w), + child: ObxValue((data) { + return ResourceOverlayDropdown( + items: data.value, + background: Colors.white, + onChanged: (value) { + controller.clearSelectedStep2(); + controller.selectedKillRequestPoultry.value = value; + controller.getPoultryHatchingList(); + }, + selectedItem: controller.selectedKillRequestPoultry.value, + itemBuilder: (item) => Text(item.unitName ?? '-'), + labelBuilder: (item) => Text(item?.unitName ?? 'محل پرورش'), + ); + }, controller.poultryList), + ); + } + + Widget poultryHatchingWidget() { + return Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 10.h), + child: ObxValue((data) { + return ResourceOverlayDropdown( + items: data.value, + background: Colors.white, + onChanged: (value) { + controller.selectedPoultryHatching.value = value; + }, + selectedItem: controller.selectedPoultryHatching.value, + itemBuilder: (item) => Text(labelPoultryHatching(item)), + labelBuilder: (item) => Text(labelPoultryHatching(item)), + ); + }, controller.poultryHatchingList), + ); + } + + String labelPoultryHatching(PoultryHatching? item) { + if (item == null) { + return 'دوره جوجه ریزی'; + } else { + return ' دوره ${item.period} سالن ${item.hall} نژاد ${item.chickenBreed} باقیمانده ${item.leftOver} قطعه '; + } + } + + Widget killDateWidget({required Rx date, required Function(Jalali jalali) onChanged}) { + return GestureDetector( + onTap: () { + Get.bottomSheet(modalDatePicker(onDateSelected: (value) => onChanged(value))); + }, + child: Container( + height: 40, + margin: EdgeInsets.symmetric(horizontal: 20.w), + decoration: BoxDecoration( + color: Colors.white, + borderRadius: BorderRadius.circular(8), + border: Border.all(width: 1, color: AppColor.darkGreyLight), + ), + padding: EdgeInsets.symmetric(horizontal: 11, vertical: 4), + child: Row( + spacing: 8, + children: [ + Assets.vec.calendarSvg.svg( + width: 24, + height: 24, + colorFilter: const ColorFilter.mode(AppColor.bgDark, BlendMode.srcIn), + ), + Text('تاریخ کشتار', style: AppFonts.yekan14.copyWith(color: AppColor.bgDark)), + Spacer(), + ObxValue((data) { + return Text( + date.value.formatCompactDate(), + textAlign: TextAlign.center, + style: AppFonts.yekan14.copyWith(color: AppColor.darkGreyDark), + ); + }, date), + ], + ), + ), + ); + } + + Widget loseWidget() { + return Padding( + padding: EdgeInsets.fromLTRB(20.w, 10.h, 20.w, 0), + child: RTextField( + label: 'تعداد تلفات (قطعه)', + filled: true, + filledColor: Colors.white, + keyboardType: TextInputType.number, + controller: controller.quantityLoseController, + ), + ); + } + + Widget quantityKillsWidget() { + return Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 10.h), + child: RTextField( + label: 'تعداد کشتار (قطعه)', + filled: true, + validator: (value) { + if (value == null || value.isEmpty) { + return 'تعداد کشتار را وارد کنید'; + } + final count = double.tryParse(value.replaceAll(',', '')); + if (controller.isFreeSale.value) { + if (count! > + (controller + .selectedPoultryHatching + .value + ?.freeGovernmentalInfo + ?.leftTotalFreeCommitmentQuantity ?? + 0)) { + return 'مجوز فروش آزاد شما کافی نیست'; + } + } else { + if (count! > (controller.selectedPoultryHatching.value?.leftOver ?? 0)) { + return 'تعداد کشتار نباید بیشتر از باقیمانده جوجه ریزی باشد'; + } + } + return null; + }, + textInputAction: TextInputAction.next, + filledColor: Colors.white, + keyboardType: TextInputType.number, + inputFormatters: [FilteringTextInputFormatter.digitsOnly, SeparatorInputFormatter()], + controller: controller.quantityKillsController, + ), + ); + } + + Widget averageWeightKillsWidget() { + return Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w), + child: RTextField( + label: 'میانگین وزن (کیلوگرم)', + filled: true, + validator: (value) { + if (value == null || value.isEmpty) { + return 'میانگین وزن را وارد کنید'; + } + final weight = double.tryParse(value.replaceAll(',', '')); + if (weight == null || weight <= 0) { + return 'میانگین وزن باید عددی بزرگتر از صفر باشد'; + } else if (weight > + (controller.selectedPoultryHatching.value?.managementHatchingAgeRange?.toWeight ?? + 10000) || + weight < + (controller + .selectedPoultryHatching + .value + ?.managementHatchingAgeRange + ?.fromWeight ?? + -10000)) { + return 'میانگین وزن باید بین ${controller.selectedPoultryHatching.value?.managementHatchingAgeRange?.fromWeight} تا ${controller.selectedPoultryHatching.value?.managementHatchingAgeRange?.toWeight} کیلوگرم باشد'; + } + return null; + }, + filledColor: Colors.white, + keyboardType: TextInputType.number, + controller: controller.averageWeightKillsController, + ), + ); + } + + Widget saleTypeWidget() { + return Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 10.h), + child: ObxValue((data) { + return Row( + mainAxisAlignment: MainAxisAlignment.spaceAround, + children: [ + CustomChip( + title: 'فروش دولتی', + index: 0, + onTap: (int p1) { + + + controller.changeSaleType(); + }, + isSelected: !(data.value), + ), + CustomChip( + title: 'فروش آزاد', + index: 1, + onTap: (int p1) { + controller.changeSaleType(); + + }, + isSelected: data.value, + ), + ], + ); + }, controller.isFreeSale), + ); + } + + Widget priceWidget() { + return ObxValue((data){ + if(!data.value){ + return Container( + height: 40.h, + margin: EdgeInsets.symmetric(horizontal: 20.w), + decoration: BoxDecoration( + color: Colors.white, + borderRadius: BorderRadius.circular(8), + border: Border.all(width: 1.w, color: AppColor.darkGreyLight), + ), + padding: EdgeInsets.symmetric(horizontal: 11.w, vertical: 4.h), + child: Row( + spacing: 8, + children: [ + Text('قیمت مصوب', style: AppFonts.yekan14.copyWith(color: AppColor.bgDark)), + Spacer(), + + ObxValue((data) { + return Text( + ' ${data.value.separatedByCommaFa} ریال', + textAlign: TextAlign.center, + style: AppFonts.yekan14.copyWith(color: AppColor.darkGreyDark), + ); + }, controller.generatedApprovedPrice), + ], + ), + ); + }else{ + return Padding( + padding: EdgeInsets.fromLTRB(20.w, 10.h, 20.w, 0), + child: RTextField( + label: 'قیمت پیشنهادی (ریال)', + validator: (value) { + if (value == null || value.isEmpty) { + return 'قیمت پیشنهادی را وارد کنید'; + } + final price = double.tryParse(value.replaceAll(',', '')); + dLog(controller.priceFreeSaleController.text); + fLog(value); + if (price == null || price <= 0) { + return 'قیمت پیشنهادی باید عددی بزرگتر از صفر باشد'; + } + return null; + }, + filled: true, + filledColor: Colors.white, + keyboardType: TextInputType.number, + inputFormatters: [FilteringTextInputFormatter.digitsOnly, SeparatorInputFormatter()], + controller: controller.priceFreeSaleController, + ), + ); + } + + }, controller.isFreeSale); + + } + + Widget buyerListWidget() { + return Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 10.h), + child: ObxValue((data) { + return Visibility( + visible: data.value?.provinceAllowChooseKillHouse?.allowState ?? false, + child: ObxValue((data) { + return ResourceOverlayDropdown( + items: data.value, + background: Colors.white, + onChanged: (value) { + controller.selectedKillHouse.value = value; + }, + selectedItem: controller.selectedKillHouse.value, + itemBuilder: (item) => Text(buildKillHouseLabel(item)), + labelBuilder: (item) => Text(buildKillHouseLabel(item)), + ); + }, controller.killHouseList), + ); + }, controller.selectedKillRequestPoultry), + ); + } + + String buildKillHouseLabel(KillHousePoultry? item) { + if (item == null) { + return 'خریدار/ظرفیت باقیمانده'; + } else { + return '${item.name} / ${item.quantitySum} قطعه '; + } + } + + Widget slaughterhouseSelectedWidget() { + return Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w), + child: Wrap( + spacing: 10, + runSpacing: 10, + + children: [ + ObxValue((data) { + return Visibility( + visible: data.value?.permission ?? false, + child: ObxValue( + (data) => CheckBoxChips( + title: 'کشتار برای انجماد', + data: data.value, + onTap: (p1) { + controller.isFreezedSelected.value = !controller.isFreezedSelected.value; + }, + isSelected: data.value, + ), + controller.isFreezedSelected, + ), + ); + }, controller.sellForFreezing), + + ObxValue((data) { + return CheckBoxChips( + title: 'نمایش در پنل معاملات', + data: 0, + onTap: (int p1) { + controller.isMarketSelected.value = !controller.isMarketSelected.value; + }, + isSelected: data.value, + ); + }, controller.isMarketSelected), + + ObxValue((data) { + return Visibility( + visible: data.value?.allow ?? false, + child: ObxValue((data) { + return CheckBoxChips( + title: 'کشتار برای صادرات', + data: data.value, + onTap: (_) { + controller.isExportSelected.value = !controller.isExportSelected.value; + }, + isSelected: data.value, + ); + }, controller.isExportSelected), + ); + }, controller.poultryExport), + ], + ), + ); + } + + Widget submitButtonWidget() { + return ObxValue((data) { + return Padding( + padding: EdgeInsets.symmetric(horizontal: 20.w, vertical: 20.h), + child: RElevated( + enabled: data.value, + height: 45.h, + isFullWidth: true, + backgroundColor: AppColor.greenNormal, + textStyle: AppFonts.yekan16Bold.copyWith(color: Colors.white), + onPressed: () { + controller.submitKillRegistration(); + }, + text: 'ثبت کشتار', + ), + ); + }, controller.isOnSubmitLoading); + } +} diff --git a/packages/chicken/lib/presentation/pages/poultry_science/poultry_action/logic.dart b/packages/chicken/lib/presentation/pages/poultry_science/poultry_action/logic.dart index af61936..6b8e332 100644 --- a/packages/chicken/lib/presentation/pages/poultry_science/poultry_action/logic.dart +++ b/packages/chicken/lib/presentation/pages/poultry_science/poultry_action/logic.dart @@ -18,7 +18,7 @@ class PoultryActionLogic extends GetxController { ), PoultryActionItem( title: "ثبت کشتار", - route: ChickenRoutes.killingRegistrationPoultryScience, + route: ChickenRoutes.genocidePoultryScience, icon: Assets.vec.noteRemoveSvg.path, ), PoultryActionItem( diff --git a/packages/chicken/lib/presentation/pages/poultry_science/poultry_action/view.dart b/packages/chicken/lib/presentation/pages/poultry_science/poultry_action/view.dart index f98341b..391ddd2 100644 --- a/packages/chicken/lib/presentation/pages/poultry_science/poultry_action/view.dart +++ b/packages/chicken/lib/presentation/pages/poultry_science/poultry_action/view.dart @@ -1,4 +1,5 @@ import 'package:flutter/material.dart'; +import 'package:rasadyar_chicken/presentation/utils/nested_keys_utils.dart'; import 'package:rasadyar_chicken/presentation/widget/app_bar.dart'; import 'package:rasadyar_core/core.dart'; @@ -53,7 +54,7 @@ class PoultryActionPage extends GetView { vecIcon: item.icon, iconColor: AppColor.blueNormal, onTap: () async { - Get.toNamed(item.route, id: 0); + Get.toNamed(item.route, id: poultryFirstKey); }, ); }, diff --git a/packages/chicken/lib/presentation/pages/poultry_science/root/logic.dart b/packages/chicken/lib/presentation/pages/poultry_science/root/logic.dart index 38ae72c..d28567f 100644 --- a/packages/chicken/lib/presentation/pages/poultry_science/root/logic.dart +++ b/packages/chicken/lib/presentation/pages/poultry_science/root/logic.dart @@ -4,6 +4,7 @@ import 'package:rasadyar_chicken/data/repositories/poultry_science/poultry_scien import 'package:rasadyar_chicken/presentation/pages/common/profile/view.dart'; import 'package:rasadyar_chicken/presentation/pages/poultry_science/home/view.dart'; import 'package:rasadyar_chicken/presentation/pages/poultry_science/poultry_action/view.dart'; +import 'package:rasadyar_chicken/presentation/utils/nested_keys_utils.dart'; import 'package:rasadyar_chicken/presentation/utils/utils.dart'; import 'package:rasadyar_core/core.dart'; @@ -12,9 +13,11 @@ enum ErrorLocationType { serviceDisabled, permissionDenied, none } class PoultryScienceRootLogic extends GetxController { RxInt currentPage = 1.obs; List pages = [PoultryActionPage(), PoultryScienceHomePage(), ProfilePage()]; - late DioRemote dioRemote; + var tokenService = Get.find(); + late PoultryScienceRepository poultryRepository; + RxList errorLocationType = RxList(); RxMap homeExpandedList = RxMap(); @@ -46,4 +49,17 @@ class PoultryScienceRootLogic extends GetxController { void changePage(int index) { currentPage.value = index; } + + int getNestedKey() { + switch (currentPage.value) { + case 0: + return poultryFirstKey; + case 1: + return poultrySecondKey; + case 2: + return poultryThirdKey; + default: + return poultryFirstKey; + } + } } diff --git a/packages/chicken/lib/presentation/pages/poultry_science/root/view.dart b/packages/chicken/lib/presentation/pages/poultry_science/root/view.dart index 23373de..1ce331a 100644 --- a/packages/chicken/lib/presentation/pages/poultry_science/root/view.dart +++ b/packages/chicken/lib/presentation/pages/poultry_science/root/view.dart @@ -18,7 +18,7 @@ class PoultryScienceRootPage extends GetView { return PopScope( canPop: false, onPopInvokedWithResult: (didPop, result) async { - final nestedKey = Get.nestedKey(controller.currentPage.value); + final nestedKey = Get.nestedKey(controller.getNestedKey()); final currentNavigator = nestedKey?.currentState; if (currentNavigator?.canPop() ?? false) { diff --git a/packages/chicken/lib/presentation/pages/steward/buy_in_province_all/view.dart b/packages/chicken/lib/presentation/pages/steward/buy_in_province_all/view.dart index fe18e6e..5efc567 100644 --- a/packages/chicken/lib/presentation/pages/steward/buy_in_province_all/view.dart +++ b/packages/chicken/lib/presentation/pages/steward/buy_in_province_all/view.dart @@ -92,7 +92,7 @@ class BuyInProvinceAllPage extends GetView { ), ), Text( - '${item.weightOfCarcasses?.separatedByComma}kg', + '${item.weightOfCarcasses?.separatedByCommaFa}kg', textAlign: TextAlign.left, style: AppFonts.yekan12.copyWith(color: AppColor.blueNormal), ), @@ -206,9 +206,9 @@ class BuyInProvinceAllPage extends GetView { buildRow(title: 'محصول', value: item.product?.name ?? 'N/A'), buildRow( title: 'وزن خریداری شده', - value: '${item.weightOfCarcasses?.separatedByComma} کیلوگرم', + value: '${item.weightOfCarcasses?.separatedByCommaFa} کیلوگرم', ), - buildRow(title: 'قیمت کل', value: '${item.totalAmount?.separatedByComma} ریال'), + buildRow(title: 'قیمت کل', value: '${item.totalAmount?.separatedByCommaFa} ریال'), Visibility( visible: item.receiverState == 'pending', child: Row( diff --git a/packages/chicken/lib/presentation/pages/steward/buy_in_province_waiting/view.dart b/packages/chicken/lib/presentation/pages/steward/buy_in_province_waiting/view.dart index d556141..fced8d4 100644 --- a/packages/chicken/lib/presentation/pages/steward/buy_in_province_waiting/view.dart +++ b/packages/chicken/lib/presentation/pages/steward/buy_in_province_waiting/view.dart @@ -109,7 +109,7 @@ class BuyInProvinceWaitingPage extends GetView { ), ), Text( - '${item.weightOfCarcasses?.separatedByComma}kg', + '${item.weightOfCarcasses?.separatedByCommaFa}kg', textAlign: TextAlign.left, style: AppFonts.yekan12.copyWith(color: AppColor.blueNormal), ), @@ -218,9 +218,9 @@ class BuyInProvinceWaitingPage extends GetView { buildRow(title: 'محصول', value: item.product?.name ?? 'N/A'), buildRow( title: 'وزن خریداری شده', - value: '${item.weightOfCarcasses?.separatedByComma} کیلوگرم', + value: '${item.weightOfCarcasses?.separatedByCommaFa} کیلوگرم', ), - buildRow(title: 'قیمت کل', value: '${item.totalAmount?.separatedByComma} ریال'), + buildRow(title: 'قیمت کل', value: '${item.totalAmount?.separatedByCommaFa} ریال'), Row( mainAxisAlignment: MainAxisAlignment.center, spacing: 16.w, diff --git a/packages/chicken/lib/presentation/pages/steward/buy_out_of_province/view.dart b/packages/chicken/lib/presentation/pages/steward/buy_out_of_province/view.dart index 066ac19..54f513f 100644 --- a/packages/chicken/lib/presentation/pages/steward/buy_out_of_province/view.dart +++ b/packages/chicken/lib/presentation/pages/steward/buy_out_of_province/view.dart @@ -142,7 +142,7 @@ class BuyOutOfProvincePage extends GetView { buildRow(title: 'محصول', value: item.product?.name ?? 'N/A'), buildRow( title: 'وزن خریداری شده', - value: '${item.weightOfCarcasses?.separatedByComma} کیلوگرم', + value: '${item.weightOfCarcasses?.separatedByCommaFa} کیلوگرم', ), buildRowOnTapped( title: 'مشاهده بارنامه', @@ -269,7 +269,7 @@ class BuyOutOfProvincePage extends GetView { ), ), Text( - '${item.weightOfCarcasses?.separatedByComma}kg', + '${item.weightOfCarcasses?.separatedByCommaFa}kg', textAlign: TextAlign.left, style: AppFonts.yekan12.copyWith(color: AppColor.blueNormal), ), @@ -427,7 +427,7 @@ class BuyOutOfProvincePage extends GetView { Text(item?.name ?? 'انتخاب محصول'), Spacer(), Text( - 'موجودی:${controller.rootLogic.inventoryModel.value?.totalRemainWeight.separatedByComma ?? 0}', + 'موجودی:${controller.rootLogic.inventoryModel.value?.totalRemainWeight.separatedByCommaFa ?? 0}', ), ], ), diff --git a/packages/chicken/lib/presentation/pages/steward/home/view.dart b/packages/chicken/lib/presentation/pages/steward/home/view.dart index c7947d2..c5ccfc0 100644 --- a/packages/chicken/lib/presentation/pages/steward/home/view.dart +++ b/packages/chicken/lib/presentation/pages/steward/home/view.dart @@ -175,7 +175,7 @@ class HomePage extends GetView { child: _informationIconCard( title: 'توزیع داخل استان', isLoading: data.value == null, - description: data.value?.freeSalesWeight.separatedByComma ?? '0', + description: data.value?.freeSalesWeight.separatedByCommaFa ?? '0', iconPath: Assets.vec.truckSvg.path, iconColor: const Color.fromRGBO(85, 97, 93, 1), bgDescriptionColor: const Color(0xFFE6FAF5), @@ -186,7 +186,7 @@ class HomePage extends GetView { child: _informationIconCard( title: 'توزیع خارج استان', isLoading: data.value == null, - description: data.value?.stewardAllocationsWeight.separatedByComma ?? '0', + description: data.value?.stewardAllocationsWeight.separatedByCommaFa ?? '0', iconPath: Assets.vec.truckFastSvg.path, iconColor: Color(0xFF647379), bgDescriptionColor: const Color(0xFFEAEFFF), @@ -223,7 +223,7 @@ class HomePage extends GetView { description: data.value != null ? ((data.value?.provinceGovernmentalCarcassesWeight ?? 0) + (data.value?.provinceFreeCarcassesWeight ?? 0)) - .separatedByComma + .separatedByCommaFa : '0', iconPath: Assets.vec.cubeSvg.path, iconColor: const Color(0xFF6C5D60), @@ -235,7 +235,7 @@ class HomePage extends GetView { child: _informationLabelCard( title: 'خارج استان', isLoading: data.value == null, - description: data.value?.freeBuyingCarcassesWeight.separatedByComma ?? '0', + description: data.value?.freeBuyingCarcassesWeight.separatedByCommaFa ?? '0', iconPath: Assets.vec.cubeSearchSvg.path, iconColor: Color(0xFF2D5FFF), bgLabelColor: const Color(0xFFAFCBFF), @@ -259,7 +259,7 @@ class HomePage extends GetView { child: _informationLabelCard( title: 'مانده انبار', isLoading: data.value == null, - description: data.value?.totalRemainWeight.separatedByComma ?? '0', + description: data.value?.totalRemainWeight.separatedByCommaFa ?? '0', iconPath: Assets.vec.cubeSearchSvg.path, iconColor: const Color(0xFF426060), bgDescriptionColor: const Color(0xFFC7DFE0), @@ -270,7 +270,7 @@ class HomePage extends GetView { child: _informationLabelCard( title: 'توزیع شده', isLoading: data.value == null, - description: data.value?.realAllocatedWeight.separatedByComma ?? '0', + description: data.value?.realAllocatedWeight.separatedByCommaFa ?? '0', iconPath: Assets.vec.cubeRotateSvg.path, iconColor: Color(0xFF5C4D64), bgLabelColor: Color(0xFFC8B8D1), @@ -295,7 +295,7 @@ class HomePage extends GetView { title: 'بارهای امروز', titleColor: AppColor.blueNormal, isLoading: data.value == null, - description: data.value?.separatedByComma ?? '0', + description: data.value?.separatedByCommaFa ?? '0', iconPath: Assets.vec.cubeSearchSvg.path, iconColor: AppColor.blueNormal, bgDescriptionColor: Colors.white, @@ -314,9 +314,9 @@ class HomePage extends GetView { return _informationLabelCard( title: 'درانتظار تایید', isLoading: data.value == null, - description: data.value?.totalNotEnteredBars.separatedByComma ?? '0', + description: data.value?.totalNotEnteredBars.separatedByCommaFa ?? '0', unit: - '(${data.value?.totalNotEnteredKillHouseRequestsWeight.separatedByComma})\nکیلوگرم', + '(${data.value?.totalNotEnteredKillHouseRequestsWeight.separatedByCommaFa})\nکیلوگرم', iconPath: Assets.vec.cubeWattingSvg.path, bgDescriptionColor: Colors.white, gradient: LinearGradient( diff --git a/packages/chicken/lib/presentation/pages/steward/sales_in_province/view.dart b/packages/chicken/lib/presentation/pages/steward/sales_in_province/view.dart index 6996833..cba133c 100644 --- a/packages/chicken/lib/presentation/pages/steward/sales_in_province/view.dart +++ b/packages/chicken/lib/presentation/pages/steward/sales_in_province/view.dart @@ -178,7 +178,7 @@ class SalesInProvincePage extends GetView { ), ), Text( - '${item.weightOfCarcasses?.separatedByComma}kg', + '${item.weightOfCarcasses?.separatedByCommaFa}kg', textAlign: TextAlign.left, style: AppFonts.yekan12.copyWith(color: AppColor.blueNormal), ), @@ -186,7 +186,7 @@ class SalesInProvincePage extends GetView { ), SizedBox(height: 2), Text( - '${item.amount.separatedByComma} ریال', + '${item.amount.separatedByCommaFa} ریال', textAlign: TextAlign.center, style: AppFonts.yekan12.copyWith(color: AppColor.darkGreyDark), ), @@ -303,13 +303,13 @@ class SalesInProvincePage extends GetView { ), buildRow( title: 'وزن خریداری شده', - value: '${item.weightOfCarcasses?.separatedByComma} کیلوگرم', + value: '${item.weightOfCarcasses?.separatedByCommaFa} کیلوگرم', ), buildRow( title: 'افت وزن(کیلوگرم)', value: item.weightLossOfCarcasses?.toInt().toString() ?? 'N/A', ), - buildRow(title: 'قیمت کل', value: '${item.totalAmount?.separatedByComma} ریال'), + buildRow(title: 'قیمت کل', value: '${item.totalAmount?.separatedByCommaFa} ریال'), buildRow(title: 'کداحراز', value: item.registrationCode?.toString() ?? 'ندارد'), buildRow( @@ -603,7 +603,7 @@ class SalesInProvincePage extends GetView { Text(item?.name ?? 'انتخاب محصول'), Spacer(), Text( - 'موجودی:${controller.rootLogic.inventoryModel.value?.totalRemainWeight.separatedByComma ?? 0}', + 'موجودی:${controller.rootLogic.inventoryModel.value?.totalRemainWeight.separatedByCommaFa ?? 0}', ), ], ), @@ -780,16 +780,16 @@ class SalesInProvincePage extends GetView { buildRow( title: 'قیمت هر کیلو', - value: '${controller.tmpStewardAllocation?.amount.separatedByComma ?? 0} ریال ', + value: '${controller.tmpStewardAllocation?.amount.separatedByCommaFa ?? 0} ریال ', ), buildRow( title: 'وزن تخصیصی', value: - '${controller.tmpStewardAllocation?.weightOfCarcasses?.toInt().separatedByComma ?? 0} کیلوگرم', + '${controller.tmpStewardAllocation?.weightOfCarcasses?.toInt().separatedByCommaFa ?? 0} کیلوگرم', ), buildRow( title: 'قیمت کل', - value: '${controller.tmpStewardAllocation?.totalAmount.separatedByComma ?? 0} ریال', + value: '${controller.tmpStewardAllocation?.totalAmount.separatedByCommaFa ?? 0} ریال', ), Row( diff --git a/packages/chicken/lib/presentation/pages/steward/sales_out_of_province/view.dart b/packages/chicken/lib/presentation/pages/steward/sales_out_of_province/view.dart index 1c7ea3c..5ef71e5 100644 --- a/packages/chicken/lib/presentation/pages/steward/sales_out_of_province/view.dart +++ b/packages/chicken/lib/presentation/pages/steward/sales_out_of_province/view.dart @@ -156,7 +156,7 @@ class SalesOutOfProvincePage extends GetView { style: AppFonts.yekan12.copyWith(color: AppColor.bgDark), ), Text( - '${item.weightOfCarcasses?.separatedByComma ?? 0}KG', + '${item.weightOfCarcasses?.separatedByCommaFa ?? 0}KG', textAlign: TextAlign.center, style: AppFonts.yekan12.copyWith(color: AppColor.bgDark), ), @@ -235,7 +235,7 @@ class SalesOutOfProvincePage extends GetView { buildRow(title: 'مشخصات خریدار', value: item.buyer?.fullname ?? 'N/A'), buildRow(title: 'تلفن خریدار', value: item.buyer?.mobile ?? 'N/A'), buildRow(title: 'نام واحد', value: item.buyer?.unitName ?? 'N/A'), - buildRow(title: 'وزن لاشه', value: '${item.weightOfCarcasses?.separatedByComma}'), + buildRow(title: 'وزن لاشه', value: '${item.weightOfCarcasses?.separatedByCommaFa}'), Row( mainAxisAlignment: MainAxisAlignment.center, @@ -419,7 +419,7 @@ class SalesOutOfProvincePage extends GetView { Text(item?.name ?? 'انتخاب محصول'), Spacer(), Text( - 'موجودی:${controller.rootLogic.inventoryModel.value?.totalRemainWeight.separatedByComma ?? 0}', + 'موجودی:${controller.rootLogic.inventoryModel.value?.totalRemainWeight.separatedByCommaFa ?? 0}', ), ], ), diff --git a/packages/chicken/lib/presentation/pages/steward/sales_out_of_province_buyers/view.dart b/packages/chicken/lib/presentation/pages/steward/sales_out_of_province_buyers/view.dart index 311aee8..7432c18 100644 --- a/packages/chicken/lib/presentation/pages/steward/sales_out_of_province_buyers/view.dart +++ b/packages/chicken/lib/presentation/pages/steward/sales_out_of_province_buyers/view.dart @@ -281,9 +281,9 @@ class SalesOutOfProvinceBuyersPage extends GetView { Expanded( flex: 2, child: Text( - '${item.weight.separatedByComma} KG', + '${item.weight.separatedByCommaFa} KG', textAlign: TextAlign.center, style: AppFonts.yekan12.copyWith(color: AppColor.bgDark), ), @@ -204,7 +204,7 @@ class SegmentationPage extends GetView { : item.buyer?.shop ?? 'N/A', ), buildRow(title: 'ماهیت', value: item.toGuild != null ? 'مباشر' : 'قطعه‌بند'), - buildRow(title: 'وزن قطعه‌بندی', value: '${item.weight?.separatedByComma}'), + buildRow(title: 'وزن قطعه‌بندی', value: '${item.weight?.separatedByCommaFa}'), Row( mainAxisAlignment: MainAxisAlignment.center, @@ -394,7 +394,7 @@ class SegmentationPage extends GetView { Text(item?.name ?? 'انتخاب محصول'), Spacer(), Text( - 'موجودی: ${controller.rootLogic.inventoryModel.value?.totalRemainWeight.separatedByComma ?? 0} کیلوگرم', + 'موجودی: ${controller.rootLogic.inventoryModel.value?.totalRemainWeight.separatedByCommaFa ?? 0} کیلوگرم', ), ], ), diff --git a/packages/chicken/lib/presentation/routes/global_binding.dart b/packages/chicken/lib/presentation/routes/global_binding.dart new file mode 100644 index 0000000..a975108 --- /dev/null +++ b/packages/chicken/lib/presentation/routes/global_binding.dart @@ -0,0 +1,19 @@ +import 'package:rasadyar_chicken/presentation/pages/common/profile/logic.dart'; +import 'package:rasadyar_chicken/presentation/pages/poultry_science/root/logic.dart'; +import 'package:rasadyar_chicken/presentation/pages/steward/root/logic.dart'; +import 'package:rasadyar_chicken/presentation/widget/search/logic.dart'; +import 'package:rasadyar_core/core.dart'; + +import '../widget/base_page/logic.dart'; + +class GlobalBinding extends Bindings { + @override + void dependencies() { + Get.put(BaseLogic(), permanent: true); + + Get.lazyPut(() => ProfileLogic(), fenix: true); + Get.lazyPut(() => SearchLogic(), fenix: true); + + //root logics + } +} diff --git a/packages/chicken/lib/presentation/routes/pages.dart b/packages/chicken/lib/presentation/routes/pages.dart index 4375caf..5e93bb0 100644 --- a/packages/chicken/lib/presentation/routes/pages.dart +++ b/packages/chicken/lib/presentation/routes/pages.dart @@ -1,20 +1,26 @@ import 'package:rasadyar_chicken/presentation/pages/common/auth/logic.dart'; import 'package:rasadyar_chicken/presentation/pages/common/auth/view.dart'; import 'package:rasadyar_chicken/presentation/pages/common/profile/logic.dart'; +import 'package:rasadyar_chicken/presentation/pages/common/profile/view.dart'; import 'package:rasadyar_chicken/presentation/pages/common/role/logic.dart'; import 'package:rasadyar_chicken/presentation/pages/common/role/view.dart'; import 'package:rasadyar_chicken/presentation/pages/poultry_science/active_hatching/logic.dart'; import 'package:rasadyar_chicken/presentation/pages/poultry_science/active_hatching/view.dart'; import 'package:rasadyar_chicken/presentation/pages/poultry_science/farm/logic.dart'; import 'package:rasadyar_chicken/presentation/pages/poultry_science/farm/view.dart'; +import 'package:rasadyar_chicken/presentation/pages/poultry_science/genocide/logic.dart'; +import 'package:rasadyar_chicken/presentation/pages/poultry_science/genocide/view.dart'; import 'package:rasadyar_chicken/presentation/pages/poultry_science/home/logic.dart'; import 'package:rasadyar_chicken/presentation/pages/poultry_science/inspection/logic.dart'; import 'package:rasadyar_chicken/presentation/pages/poultry_science/inspection/view.dart'; +import 'package:rasadyar_chicken/presentation/pages/poultry_science/killing_registration/logic.dart'; +import 'package:rasadyar_chicken/presentation/pages/poultry_science/killing_registration/view.dart'; import 'package:rasadyar_chicken/presentation/pages/poultry_science/poultry_action/logic.dart'; import 'package:rasadyar_chicken/presentation/pages/poultry_science/poultry_action/view.dart'; import 'package:rasadyar_chicken/presentation/pages/poultry_science/root/logic.dart'; import 'package:rasadyar_chicken/presentation/pages/poultry_science/root/view.dart'; import 'package:rasadyar_chicken/presentation/pages/steward/steward.dart'; +import 'package:rasadyar_chicken/presentation/routes/global_binding.dart'; import 'package:rasadyar_chicken/presentation/routes/routes.dart'; import 'package:rasadyar_chicken/presentation/widget/base_page/logic.dart'; import 'package:rasadyar_chicken/presentation/widget/captcha/logic.dart'; @@ -42,21 +48,22 @@ sealed class ChickenPages { }), ), + //region Steward Pages GetPage( name: ChickenRoutes.initSteward, page: () => StewardRootPage(), middlewares: [AuthMiddleware()], - binding: BindingsBuilder(() { - Get.lazyPut(() => BaseLogic()); - Get.lazyPut(() => StewardRootLogic()); - Get.lazyPut(() => HomeLogic()); - Get.lazyPut(() => BuyLogic()); - Get.lazyPut(() => SaleLogic()); - Get.lazyPut(() => ProfileLogic()); - Get.lazyPut(() => SegmentationLogic()); - Get.lazyPut(() => SearchLogic()); - }), + bindings: [ + GlobalBinding(), + BindingsBuilder(() { + Get.lazyPut(() => StewardRootLogic()); + Get.lazyPut(() => HomeLogic()); + Get.lazyPut(() => BuyLogic()); + Get.lazyPut(() => SaleLogic()); + Get.lazyPut(() => SegmentationLogic()); + }), + ], ), GetPage( @@ -154,15 +161,15 @@ sealed class ChickenPages { name: ChickenRoutes.initPoultryScience, page: () => PoultryScienceRootPage(), middlewares: [AuthMiddleware()], - binding: BindingsBuilder(() { - Get.lazyPut(() => BaseLogic()); - Get.lazyPut(() => SearchLogic()); - Get.lazyPut(() => PoultryScienceRootLogic()); - Get.lazyPut(() => StewardRootLogic()); - Get.lazyPut(() => PoultryScienceHomeLogic()); - Get.lazyPut(() => ProfileLogic()); - Get.lazyPut(() => PoultryActionLogic()); - }), + bindings: [ + GlobalBinding(), + BindingsBuilder(() { + Get.lazyPut(() => PoultryScienceRootLogic()); + Get.lazyPut(() => PoultryScienceHomeLogic()); + Get.lazyPut(() => PoultryActionLogic()); + }), + ], + ), GetPage( @@ -202,6 +209,25 @@ sealed class ChickenPages { Get.lazyPut(() => PoultryScienceRootLogic()); }), ), + GetPage( + name: ChickenRoutes.genocidePoultryScience, + page: () => GenocidePage(), + middlewares: [AuthMiddleware()], + binding: BindingsBuilder(() { + Get.lazyPut(() => GenocideLogic()); + Get.lazyPut(() => PoultryScienceRootLogic()); + }), + ), + GetPage( + name: ChickenRoutes.killingRegistrationPoultryScience, + page: () => KillingRegistrationPage(), + middlewares: [AuthMiddleware()], + binding: BindingsBuilder(() { + Get.lazyPut(() => KillingRegistrationLogic()); + Get.lazyPut(() => GenocideLogic()); + Get.lazyPut(() => PoultryScienceRootLogic()); + }), + ), //endregion ]; } diff --git a/packages/chicken/lib/presentation/routes/routes.dart b/packages/chicken/lib/presentation/routes/routes.dart index 8f3a586..fe4e827 100644 --- a/packages/chicken/lib/presentation/routes/routes.dart +++ b/packages/chicken/lib/presentation/routes/routes.dart @@ -4,6 +4,7 @@ sealed class ChickenRoutes { static const auth = '/AuthChicken'; static const _base = '/chicken'; static const role = '$_base/role'; + static const String profile = '$_base/profile'; //region Steward Routes static const _steward = '$_base/steward'; @@ -31,6 +32,10 @@ sealed class ChickenRoutes { static const inspectionPoultryScience = '$_poultryScience/inspection'; static const farmPoultryScience = '$_poultryScience/farm'; static const activeHatchingPoultryScience = '$_poultryScience/activeHatching'; - static const killingRegistrationPoultryScience = '$_poultryScience/KillingRegistration'; + static const genocidePoultryScience = '$_poultryScience/genocidePoultryScience'; + static const killingRegistrationPoultryScience = '$genocidePoultryScience/KillingRegistration'; + + + //endregion } diff --git a/packages/chicken/lib/presentation/widget/base_page/view.dart b/packages/chicken/lib/presentation/widget/base_page/view.dart index d816b3b..d08e4d7 100644 --- a/packages/chicken/lib/presentation/widget/base_page/view.dart +++ b/packages/chicken/lib/presentation/widget/base_page/view.dart @@ -6,7 +6,7 @@ import 'package:rasadyar_chicken/presentation/widget/search/logic.dart'; import 'package:rasadyar_chicken/presentation/widget/search/view.dart'; import 'package:rasadyar_core/core.dart'; -class BasePage extends StatefulWidget { +class BasePage extends StatefulWidget { const BasePage({ super.key, this.routes, @@ -51,10 +51,11 @@ class _BasePageState extends State { BaseLogic get controller => Get.find(); Worker? filterWorker; bool _isBottomSheetOpen = false; + @override void initState() { super.initState(); - /* filterWorker = ever(controller.isFilterSelected, (bool isSelected) { + /* filterWorker = ever(controller.isFilterSelected, (bool isSelected) { if (!mounted) return; if (isSelected && widget.filteringWidget != null) { @@ -92,6 +93,7 @@ class _BasePageState extends State { filterWorker?.dispose(); super.dispose(); } + void _onFilterTap() { if (widget.hasFilter && widget.filteringWidget != null) { // بررسی اینکه آیا این route در top است یا نه @@ -110,7 +112,6 @@ class _BasePageState extends State { } } - @override Widget build(BuildContext context) { return PopScope( @@ -143,3 +144,109 @@ class _BasePageState extends State { ); } } + +class BasePageWithScroll extends StatefulWidget { + const BasePageWithScroll({ + super.key, + this.routes, + required this.widgets, + this.routesWidget, + this.floatingActionButtonLocation, + this.floatingActionButton, + this.onSearchChanged, + this.hasBack = true, + this.hasFilter = true, + this.hasSearch = true, + this.isBase = false, + this.onBackPressed, + this.onFilterTap, + this.onSearchTap, + this.filteringWidget, + }) : assert( + (routes != null) || routesWidget != null, + 'Either routes or routesWidget must be provided.', + ); + + final List? routes; + final Widget? routesWidget; + final List widgets; + final FloatingActionButtonLocation? floatingActionButtonLocation; + final Widget? floatingActionButton; + final Widget? filteringWidget; + final void Function(String?)? onSearchChanged; + final bool hasBack; + final bool hasFilter; + final bool hasSearch; + final bool isBase; + final VoidCallback? onBackPressed; + final GestureTapCallback? onFilterTap; + final GestureTapCallback? onSearchTap; + + @override + State createState() => _BasePageWithScrollState(); +} + +class _BasePageWithScrollState extends State { + BaseLogic get controller => Get.find(); + Worker? filterWorker; + + @override + void dispose() { + filterWorker?.dispose(); + super.dispose(); + } + + void _onFilterTap() { + if (widget.hasFilter && widget.filteringWidget != null) { + // بررسی اینکه آیا این route در top است یا نه + final currentRoute = ModalRoute.of(context); + if (currentRoute?.isCurrent != true) { + return; + } + + // مستقیماً bottomSheet را باز کنید + Get.bottomSheet( + widget.filteringWidget!, + isScrollControlled: true, + isDismissible: true, + enableDrag: true, + ); + } + } + + @override + Widget build(BuildContext context) { + return PopScope( + canPop: false, + onPopInvokedWithResult: (didPop, result) => widget.onBackPressed, + child: Scaffold( + backgroundColor: AppColor.bgLight, + appBar: chickenAppBar( + hasBack: widget.isBase ? false : widget.hasBack, + onBackPressed: widget.onBackPressed, + hasFilter: widget.hasFilter, + hasSearch: widget.hasSearch, + isBase: widget.isBase, + onFilterTap: widget.hasFilter ? _onFilterTap : null, + onSearchTap: widget.hasSearch ? () => Get.find().toggleSearch() : null, + ), + body: SingleChildScrollView( + physics: BouncingScrollPhysics(), + padding: EdgeInsets.symmetric(vertical: 8.h), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + widget.routesWidget != null ? widget.routesWidget! : buildPageRoute(widget.routes!), + if (!widget.isBase && widget.hasSearch) ...{ + SearchWidget(onSearchChanged: widget.onSearchChanged), + }, + ...widget.widgets, + ], + ), + ), + floatingActionButtonLocation: widget.floatingActionButtonLocation, + floatingActionButton: widget.floatingActionButton, + ), + ); + } +} diff --git a/packages/chicken/lib/presentation/widget/steward/inventory_widget.dart b/packages/chicken/lib/presentation/widget/steward/inventory_widget.dart index 89c2316..6082232 100644 --- a/packages/chicken/lib/presentation/widget/steward/inventory_widget.dart +++ b/packages/chicken/lib/presentation/widget/steward/inventory_widget.dart @@ -15,7 +15,7 @@ Widget inventoryWidget(StewardRootLogic rootLogic) { alignment: Alignment.center, child: ObxValue((data) { return Text( - ' موجودی انبار: ${data.value?.totalRemainWeight?.toInt().separatedByComma ?? '0'} کیلوگرم', + ' موجودی انبار: ${data.value?.totalRemainWeight?.toInt().separatedByCommaFa ?? '0'} کیلوگرم', style: AppFonts.yekan16.copyWith(color: AppColor.mediumGreyDarkHover), ); }, rootLogic.inventoryModel), diff --git a/packages/core/lib/data/model/local/app_model/app_model.dart b/packages/core/lib/data/model/local/app_model/app_model.dart index 3ea2cde..ff90e83 100644 --- a/packages/core/lib/data/model/local/app_model/app_model.dart +++ b/packages/core/lib/data/model/local/app_model/app_model.dart @@ -16,12 +16,7 @@ class AppModel extends HiveObject { @HiveField(3) List? targetPages; - AppModel({ - this.isFirstRun, - this.isDarkMode, - this.selectedModule, - this.targetPages, - }); + AppModel({this.isFirstRun, this.isDarkMode, this.selectedModule, this.targetPages}); @override String toString() { @@ -40,6 +35,9 @@ class TargetPage extends HiveObject { @HiveField(2) Module? module; + @HiveField(3) + String? selectedRole; + TargetPage({required this.route, this.functions, this.module}); @override diff --git a/packages/core/lib/data/model/local/app_model/app_model.g.dart b/packages/core/lib/data/model/local/app_model/app_model.g.dart index d2d338b..4cd9eb5 100644 --- a/packages/core/lib/data/model/local/app_model/app_model.g.dart +++ b/packages/core/lib/data/model/local/app_model/app_model.g.dart @@ -63,19 +63,21 @@ class TargetPageAdapter extends TypeAdapter { route: fields[0] as String?, functions: (fields[1] as List?)?.cast(), module: fields[2] as Module?, - ); + )..selectedRole = fields[3] as String?; } @override void write(BinaryWriter writer, TargetPage obj) { writer - ..writeByte(3) + ..writeByte(4) ..writeByte(0) ..write(obj.route) ..writeByte(1) ..write(obj.functions) ..writeByte(2) - ..write(obj.module); + ..write(obj.module) + ..writeByte(3) + ..write(obj.selectedRole); } @override diff --git a/packages/core/lib/data/services/g_service.dart b/packages/core/lib/data/services/g_service.dart index 4960010..0506cfc 100644 --- a/packages/core/lib/data/services/g_service.dart +++ b/packages/core/lib/data/services/g_service.dart @@ -46,8 +46,9 @@ class GService extends GetxService { return res; } - Future saveSelectedRole(Module module, String route) async { + Future saveRoute(Module module, String route) async { AppModel model = box.values.first; + TargetPage? targetPage = model.targetPages?.firstWhere((element) => element.module == module); if (targetPage != null) { targetPage.route = route; @@ -55,10 +56,21 @@ class GService extends GetxService { } } - String? getSelectedRole(Module module) { - TargetPage? targetPage = getTargetPage(module); + String? getRoute(Module module) { + return getTargetPage(module)?.route; + } - return targetPage?.route; + Future saveRole(Module module, String role) async { + AppModel model = box.values.first; + TargetPage? targetPage = model.targetPages?.firstWhere((element) => element.module == module); + if (targetPage != null) { + targetPage.selectedRole = role; + model.save(); + } + } + + String? getRole(Module module) { + return getTargetPage(module)?.selectedRole; } Future setIsNotFirstTime() async { diff --git a/packages/core/lib/presentation/widget/bottom_sheet/date_picker_bottom_sheet.dart b/packages/core/lib/presentation/widget/bottom_sheet/date_picker_bottom_sheet.dart index 7d3195a..035d49b 100644 --- a/packages/core/lib/presentation/widget/bottom_sheet/date_picker_bottom_sheet.dart +++ b/packages/core/lib/presentation/widget/bottom_sheet/date_picker_bottom_sheet.dart @@ -3,13 +3,13 @@ import 'package:flutter/material.dart'; import '../../../core.dart'; GestureDetector dateFilterWidget({ - isFrom = true, + bool isFrom = true, required Rx date, required Function(Jalali jalali) onChanged, }) { return GestureDetector( onTap: () { - Get.bottomSheet(modalDatePicker((value) => onChanged(value))); + Get.bottomSheet(modalDatePicker(onDateSelected: (value) => onChanged(value))); }, child: Container( height: 35, @@ -42,8 +42,8 @@ GestureDetector dateFilterWidget({ ); } -Container modalDatePicker(ValueChanged onDateSelected) { - Jalali? tempPickedDate; +Container modalDatePicker({required ValueChanged onDateSelected,Jalali? initialDate,}) { + Jalali? datePicked; return Container( height: 250, color: Colors.white, @@ -58,7 +58,7 @@ Container modalDatePicker(ValueChanged onDateSelected) { width: 70, textStyle: AppFonts.yekan14.copyWith(color: Colors.white), onPressed: () { - onDateSelected(tempPickedDate ?? Jalali.now()); + onDateSelected(initialDate ?? Jalali.now()); Get.back(); }, text: 'تایید', @@ -70,7 +70,7 @@ Container modalDatePicker(ValueChanged onDateSelected) { backgroundColor: AppColor.error, textStyle: AppFonts.yekan14.copyWith(color: Colors.white), onPressed: () { - onDateSelected(tempPickedDate ?? Jalali.now()); + onDateSelected(initialDate ?? Jalali.now()); Get.back(); }, text: 'لغو', @@ -81,10 +81,10 @@ Container modalDatePicker(ValueChanged onDateSelected) { Divider(height: 0, thickness: 1), Expanded( child: PersianCupertinoDatePicker( - initialDateTime: Jalali.now(), + initialDateTime: initialDate ??Jalali.now(), mode: PersianCupertinoDatePickerMode.date, onDateTimeChanged: (dateTime) { - tempPickedDate = dateTime; + datePicked = dateTime; }, ), ), diff --git a/packages/core/lib/presentation/widget/chips/r_chips.dart b/packages/core/lib/presentation/widget/chips/r_chips.dart index d93e900..42997af 100644 --- a/packages/core/lib/presentation/widget/chips/r_chips.dart +++ b/packages/core/lib/presentation/widget/chips/r_chips.dart @@ -108,3 +108,65 @@ class RFilterChips extends StatelessWidget { ); } } + +class CheckBoxChips extends StatelessWidget { + const CheckBoxChips({ + super.key, + this.isSelected = false, + required this.title, + required this.data, + required this.onTap, + this.selectedColor = AppColor.blueNormal, + this.unSelectedColor = AppColor.textColor, + }); + + final bool isSelected; + final String title; + final T data; + final Function(T) onTap; + final Color selectedColor; + final Color unSelectedColor; + + @override + Widget build(BuildContext context) { + return GestureDetector( + onTap: () { + onTap.call(data); + }, + child: Container( + height: 32.h, + padding: EdgeInsets.symmetric(horizontal: 8.w, vertical: 6.h), + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(8), + border: Border.all(color: isSelected ? selectedColor : unSelectedColor, width: 1), + ), + child: Row( + mainAxisSize: MainAxisSize.min, + children: [ + SizedBox( + width: 12.w, + height: 12.h, + child: Checkbox( + value: isSelected, + onChanged: (value) { + onTap.call(data); + }, + visualDensity: VisualDensity.compact, + activeColor: selectedColor, + checkColor: Colors.white, + side: BorderSide(color: isSelected ? selectedColor : unSelectedColor, width: 1), + materialTapTargetSize: MaterialTapTargetSize.shrinkWrap, + ), + ), + SizedBox(width: 12.w), + Text( + title, + style: isSelected + ? AppFonts.yekan12Bold.copyWith(color: AppColor.blueNormal) + : AppFonts.yekan12.copyWith(color: unSelectedColor), + ), + ], + ), + )); + } +} diff --git a/packages/core/lib/presentation/widget/list_row_item.dart b/packages/core/lib/presentation/widget/list_row_item.dart index cd6bdaf..dfb4d15 100644 --- a/packages/core/lib/presentation/widget/list_row_item.dart +++ b/packages/core/lib/presentation/widget/list_row_item.dart @@ -49,7 +49,8 @@ Widget buildRowOnTapped({ children: [ Flexible( flex: 2, - child: titleWidget ?? + child: + titleWidget ?? Text( title ?? 'N/A', textAlign: TextAlign.right, @@ -60,7 +61,8 @@ Widget buildRowOnTapped({ flex: 2, child: GestureDetector( onTap: onTap, - child: valueWidget ?? + child: + valueWidget ?? Text( value ?? 'N/A', textAlign: TextAlign.left, @@ -72,3 +74,51 @@ Widget buildRowOnTapped({ ), ); } + +Widget buildUnitRow({ + required String title, + String? value, + required String unit, + TextStyle? titleStyle, + TextStyle? valueStyle, + TextStyle? unitStyle, +}) { + return Padding( + padding: const EdgeInsets.symmetric(vertical: 4.0), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Flexible( + flex: 2, + child: Text( + title, + textAlign: TextAlign.right, + style: titleStyle ?? AppFonts.yekan14.copyWith(color: AppColor.darkGreyDarkHover), + ), + ), + Flexible( + flex: 2, + child: Row( + mainAxisAlignment: MainAxisAlignment.end, + spacing: 5, + children: [ + Text( + value == null || value.isEmpty ? '-' : value, + textAlign: TextAlign.left, + style: valueStyle ?? AppFonts.yekan14.copyWith(color: AppColor.darkGreyDarkHover), + ), + Visibility( + visible: value != null ||( value?.isNotEmpty ?? false), + child: Text( + unit, + textAlign: TextAlign.left, + style: valueStyle ?? AppFonts.yekan14.copyWith(color: AppColor.darkGreyDarkHover), + ), + ), + ], + ), + ), + ], + ), + ); +} diff --git a/packages/core/lib/presentation/widget/overlay_dropdown_widget/view.dart b/packages/core/lib/presentation/widget/overlay_dropdown_widget/overlay_dropdown.dart similarity index 100% rename from packages/core/lib/presentation/widget/overlay_dropdown_widget/view.dart rename to packages/core/lib/presentation/widget/overlay_dropdown_widget/overlay_dropdown.dart diff --git a/packages/core/lib/presentation/widget/overlay_dropdown_widget/resource_overlay_dropdown.dart b/packages/core/lib/presentation/widget/overlay_dropdown_widget/resource_overlay_dropdown.dart new file mode 100644 index 0000000..b146c6a --- /dev/null +++ b/packages/core/lib/presentation/widget/overlay_dropdown_widget/resource_overlay_dropdown.dart @@ -0,0 +1,184 @@ +import 'package:flutter/cupertino.dart'; +import 'package:flutter/material.dart'; +import 'package:rasadyar_core/core.dart'; + +class ResourceOverlayDropdown extends StatefulWidget { + final Resource> items; + final T? selectedItem; + final T? initialValue; + final int? height; + final Color? background; + final bool? hasDropIcon; + final Widget Function(T item) itemBuilder; + final Widget Function(T? selected) labelBuilder; + final void Function(T selected)? onChanged; + final EdgeInsets? contentPadding; + final bool isDisabled; + + const ResourceOverlayDropdown({ + super.key, + required this.items, + required this.itemBuilder, + required this.labelBuilder, + this.initialValue, + this.onChanged, + this.selectedItem, + this.contentPadding, + this.height, + this.background, + this.hasDropIcon = true, + this.isDisabled = false, + }); + + @override + State> createState() => _ResourceOverlayDropdownState(); +} + +class _ResourceOverlayDropdownState extends State> { + final GlobalKey _key = GlobalKey(); + OverlayEntry? _overlayEntry; + bool _isOpen = false; + T? selectedItem; + + @override + void initState() { + super.initState(); + selectedItem = widget.selectedItem ?? widget.initialValue; + } + + @override + void didUpdateWidget(covariant ResourceOverlayDropdown oldWidget) { + super.didUpdateWidget(oldWidget); + if (widget.selectedItem != oldWidget.selectedItem) { + setState(() { + selectedItem = widget.selectedItem; + }); + } + } + + void _showOverlay() { + if (_overlayEntry != null) return; + + final renderBox = _key.currentContext!.findRenderObject() as RenderBox; + final size = renderBox.size; + final offset = renderBox.localToGlobal(Offset.zero); + + _overlayEntry = OverlayEntry( + builder: (_) => GestureDetector( + onTap: _removeOverlay, + behavior: HitTestBehavior.translucent, + child: Stack( + children: [ + Positioned( + left: offset.dx, + top: offset.dy + size.height + 4, + width: size.width, + child: Material( + elevation: 4, + borderRadius: BorderRadius.circular(8), + child: Container( + decoration: BoxDecoration( + color: widget.background ?? AppColor.bgLight, + border: Border.all(color: AppColor.darkGreyLight), + borderRadius: BorderRadius.circular(8), + ), + constraints: const BoxConstraints(maxHeight: 300), + child: ListView( + padding: EdgeInsets.zero, + shrinkWrap: true, + physics: const BouncingScrollPhysics(), + children: + widget.items.data?.map((item) { + return InkWell( + onTap: () { + widget.onChanged?.call(item); + setState(() { + selectedItem = item; + }); + _removeOverlay(); + }, + child: Padding( + padding: + widget.contentPadding ?? + const EdgeInsets.symmetric(horizontal: 8, vertical: 4), + child: widget.itemBuilder(item), + ), + ); + }).toList() ?? + [], + ), + ), + ), + ), + ], + ), + ), + ); + + Overlay.of(context).insert(_overlayEntry!); + setState(() => _isOpen = true); + } + + void _removeOverlay({bool fromDispose = false}) { + _overlayEntry?.remove(); + _overlayEntry = null; + if (!fromDispose && mounted) { + setState(() => _isOpen = false); + } + } + + @override + void dispose() { + _removeOverlay(fromDispose: true); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return LayoutBuilder( + builder: (context, constraints) { + return GestureDetector( + key: _key, + onTap: (widget.isDisabled || widget.items.status == ResourceStatus.loading) + ? null + : () { + _isOpen ? _removeOverlay() : _showOverlay(); + }, + child: Container( + height: widget.height?.toDouble() ?? 40, + width: constraints.maxWidth, + padding: const EdgeInsets.symmetric(horizontal: 12), + decoration: BoxDecoration( + color: widget.background ?? AppColor.bgLight, + border: Border.all(color: AppColor.darkGreyLight), + borderRadius: BorderRadius.circular(8), + ), + child: _buildWidget(widget.items), + ), + ); + }, + ); + } + + Widget? _buildWidget(Resource> items) { + switch (items.status) { + case ResourceStatus.initial: + case ResourceStatus.loading: + return CupertinoActivityIndicator(); + case ResourceStatus.success: + return Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Expanded(child: widget.labelBuilder(selectedItem)), + if (widget.hasDropIcon ?? true) + Icon(_isOpen ? CupertinoIcons.chevron_up : CupertinoIcons.chevron_down, size: 14), + ], + ); + case ResourceStatus.error: + return Text('Error', style: AppFonts.yekan12.copyWith(color: AppColor.redNormal)); + + case ResourceStatus.empty: + return Text('بدون نتیجه', style: AppFonts.yekan12.copyWith(color: AppColor.textColor)); + } + } +} diff --git a/packages/core/lib/presentation/widget/widget.dart b/packages/core/lib/presentation/widget/widget.dart index dafd2d1..721222f 100644 --- a/packages/core/lib/presentation/widget/widget.dart +++ b/packages/core/lib/presentation/widget/widget.dart @@ -27,7 +27,8 @@ export 'loading_widget.dart'; // other export 'logo_widget.dart'; export 'marquee/r_marquee.dart'; -export 'overlay_dropdown_widget/view.dart'; +export 'overlay_dropdown_widget/overlay_dropdown.dart'; +export 'overlay_dropdown_widget/resource_overlay_dropdown.dart'; export 'pagination/pagination_from_until.dart'; export 'pagination/show_more.dart'; export 'slider/slider.dart'; diff --git a/packages/core/lib/utils/extension/num_utils.dart b/packages/core/lib/utils/extension/num_utils.dart index 880d901..b7293b9 100644 --- a/packages/core/lib/utils/extension/num_utils.dart +++ b/packages/core/lib/utils/extension/num_utils.dart @@ -1,8 +1,14 @@ import 'package:intl/intl.dart'; extension XNumExtension on num? { - String get separatedByComma { + String get separatedByCommaFa { final formatter = NumberFormat('#,###', 'fa_IR'); return this == null ? '':formatter.format(this); } + + + String get separatedByComma { + final formatter = NumberFormat('#,###', 'en_US'); + return this == null ? '':formatter.format(this); + } } diff --git a/packages/core/lib/utils/network/safe_call_utils.dart b/packages/core/lib/utils/network/safe_call_utils.dart index 0c2b117..06153a0 100644 --- a/packages/core/lib/utils/network/safe_call_utils.dart +++ b/packages/core/lib/utils/network/safe_call_utils.dart @@ -1,6 +1,7 @@ import 'package:flutter/material.dart'; import '../../core.dart'; + /// Handles global API requests management with CancelToken. class ApiHandler { // Global CancelToken for all requests. @@ -24,8 +25,6 @@ class ApiHandler { } } - - typedef AppAsyncCallback = Future Function(); typedef ErrorCallback = Function(dynamic error, StackTrace? stackTrace); typedef VoidCallback = void Function(); @@ -56,12 +55,11 @@ Future gSafeCall({ final result = await call(); if (showSuccess) { - (onShowSuccessMessage ?? _defaultShowSuccessMessage)('عملیات با موفقیت انجام شد'); + (onShowSuccessMessage ?? defaultShowSuccessMessage)('عملیات با موفقیت انجام شد'); } onSuccess?.call(result); return result; - } catch (error, stackTrace) { retryCount++; @@ -75,7 +73,6 @@ Future gSafeCall({ return null; } - if (retryCount > maxRetries || !_isRetryableError(error)) { if (showError) { final message = _getErrorMessage(error); @@ -85,7 +82,6 @@ Future gSafeCall({ return null; } - if (retryCount <= maxRetries) { await Future.delayed(retryDelay); } @@ -108,8 +104,7 @@ bool _isRetryableError(dynamic error) { return error.type == DioExceptionType.connectionTimeout || error.type == DioExceptionType.receiveTimeout || error.type == DioExceptionType.sendTimeout || - (error.response?.statusCode != null && - error.response!.statusCode! >= 500); + (error.response?.statusCode != null && error.response!.statusCode! >= 500); } return false; } @@ -146,10 +141,7 @@ String _getErrorMessage(dynamic error) { void _defaultShowLoading() { // نمایش loading - Get.dialog( - Center(child: CircularProgressIndicator()), - barrierDismissible: false, - ); + Get.dialog(Center(child: CircularProgressIndicator()), barrierDismissible: false); } void _defaultHideLoading() { @@ -159,12 +151,22 @@ void _defaultHideLoading() { } } -void _defaultShowSuccessMessage(String message) { +void defaultShowSuccessMessage( + String message, { + int durationInSeconds = 2, + VoidCallback? onDismissed, +}) { Get.snackbar( 'موفقیت', message, + duration: Duration(seconds: durationInSeconds), snackPosition: SnackPosition.TOP, backgroundColor: Colors.green, + snackbarStatus: (status) { + if (status == SnackbarStatus.CLOSED) { + onDismissed?.call(); + } + }, colorText: Colors.white, ); } diff --git a/packages/inspection/lib/presentation/pages/inspection_map/view.dart b/packages/inspection/lib/presentation/pages/inspection_map/view.dart index 433fdb9..7cf5b8f 100644 --- a/packages/inspection/lib/presentation/pages/inspection_map/view.dart +++ b/packages/inspection/lib/presentation/pages/inspection_map/view.dart @@ -549,7 +549,7 @@ Widget cardWithLabel({ children: [ Text(title, style: AppFonts.yekan12.copyWith(color: AppColor.textColor)), Text( - count.separatedByComma, + count.separatedByCommaFa, style: AppFonts.yekan16.copyWith(color: AppColor.textColor), ), Text(unit, style: AppFonts.yekan12.copyWith(color: AppColor.textColor)), diff --git a/packages/inspection/lib/presentation/pages/inspection_map/widget/map/view.dart b/packages/inspection/lib/presentation/pages/inspection_map/widget/map/view.dart index 417f50d..5095798 100644 --- a/packages/inspection/lib/presentation/pages/inspection_map/widget/map/view.dart +++ b/packages/inspection/lib/presentation/pages/inspection_map/widget/map/view.dart @@ -426,7 +426,7 @@ class MapPage extends GetView { ), buildRow( title: 'باقیمانده', - value: '${location.hatching?.first.leftOver.separatedByComma ?? 'N/A'} عدد', + value: '${location.hatching?.first.leftOver.separatedByCommaFa ?? 'N/A'} عدد', ), buildRow( title: 'سن جوجه ریزی', @@ -523,21 +523,21 @@ class MapPage extends GetView { buildRow( title: 'تعداد جوجه ریزی', - value: hatchingDetails?.quantity.separatedByComma.addCountEXT ?? 'N/A', + value: hatchingDetails?.quantity.separatedByCommaFa.addCountEXT ?? 'N/A', ), buildRow( title: 'تلفات کل', - value: hatchingDetails?.totalLosses.separatedByComma.addCountEXT ?? 'N/A', + value: hatchingDetails?.totalLosses.separatedByCommaFa.addCountEXT ?? 'N/A', ), buildRow( title: 'تلفات دامپزشکی', - value: hatchingDetails?.losses.separatedByComma.addCountEXT ?? 'N/A', + value: hatchingDetails?.losses.separatedByCommaFa.addCountEXT ?? 'N/A', ), buildRow( title: 'باقیمانده در سالن', - value: hatchingDetails?.leftOver.separatedByComma.addCountEXT ?? 'N/A', + value: hatchingDetails?.leftOver.separatedByCommaFa.addCountEXT ?? 'N/A', ), buildRow(title: 'نژاد', value: hatchingDetails?.chickenBreed ?? 'N/A'), @@ -553,7 +553,7 @@ class MapPage extends GetView { buildRow( title: 'تعداد کشتار', - value: hatchingDetails?.killedQuantity.separatedByComma.addCountEXT ?? 'N/A', + value: hatchingDetails?.killedQuantity.separatedByCommaFa.addCountEXT ?? 'N/A', ), buildRow( @@ -563,7 +563,7 @@ class MapPage extends GetView { buildRow( title: 'وزن کشتار', - value: hatchingDetails?.totalKilledWeight.separatedByComma.addKgEXT ?? 'N/A', + value: hatchingDetails?.totalKilledWeight.separatedByCommaFa.addKgEXT ?? 'N/A', ), ], ); diff --git a/packages/inspection/lib/presentation/pages/statistics/view.dart b/packages/inspection/lib/presentation/pages/statistics/view.dart index 4d05d6e..c4175ab 100644 --- a/packages/inspection/lib/presentation/pages/statistics/view.dart +++ b/packages/inspection/lib/presentation/pages/statistics/view.dart @@ -168,7 +168,7 @@ class StatisticsPage extends GetView { title: 'تعداد تراکنش ها', titleColor: AppColor.blueNormal, isLoading: data.value == null, - description: 25369654.separatedByComma, + description: 25369654.separatedByCommaFa, iconPath: Assets.vec.cubeScanSvg.path, bgDescriptionColor: Colors.white, gradient: LinearGradient( @@ -186,7 +186,7 @@ class StatisticsPage extends GetView { return _informationLabelCard( title: 'جمع تراکنش ها', isLoading: data.value == null, - description: data.value.separatedByComma ?? '0', + description: data.value.separatedByCommaFa ?? '0', unit: 'ريال', iconPath: Assets.vec.cubeCardSvg.path, bgDescriptionColor: Colors.white, diff --git a/packages/livestock/lib/presentation/page/request_tagging/view.dart b/packages/livestock/lib/presentation/page/request_tagging/view.dart index b72d4bf..2cab292 100644 --- a/packages/livestock/lib/presentation/page/request_tagging/view.dart +++ b/packages/livestock/lib/presentation/page/request_tagging/view.dart @@ -855,7 +855,7 @@ class RequestTaggingPage extends GetView { return GestureDetector( onTap: () { Get.bottomSheet( - modalDatePicker((value) { + modalDatePicker(onDateSelected: (value) { controller.dateOfBirth.value = value; }), isScrollControlled: true,