From 1cfcf9fa8fca49fa3ee077e27cb548350887d9d3 Mon Sep 17 00:00:00 2001 From: MrM Date: Thu, 5 Jun 2025 23:26:44 +0330 Subject: [PATCH] feat : chicken root page , inventory , sale in province --- assets/icons/inside.svg | 1 + assets/icons/outside.svg | 27 + assets/icons/whare_house.svg | 1 + lib/infrastructure/di/di.dart | 2 + lib/res/assets_res.dart | 3 + packages/auth/lib/data/di/auth_di.dart | 2 - packages/chicken/build.yaml | 6 + .../chicken/lib/data/common/constant.dart | 14 + .../lib/data/common/dio_error_handler.dart | 58 + .../chicken/lib/data/common/dio_manager.dart | 33 + packages/chicken/lib/data/di/chicken_di.dart | 19 + .../conform_allocation.dart | 18 + .../conform_allocation.freezed.dart | 160 + .../conform_allocation.g.dart | 25 + .../steward_allocation_request.dart | 20 + .../steward_allocation_request.freezed.dart | 166 + .../steward_allocation_request.g.dart | 33 + .../submit_steward_allocation.dart | 26 + .../submit_steward_allocation.freezed.dart | 184 ++ .../submit_steward_allocation.g.dart | 43 + .../allocated_made/allocated_made.dart | 227 ++ .../allocated_made.freezed.dart | 1899 ++++++++++++ .../allocated_made/allocated_made.g.dart | 373 +++ .../bar_information/bar_information.dart | 25 + .../bar_information.freezed.dart | 181 ++ .../bar_information/bar_information.g.dart | 47 + .../models/response/guild/guild_model.dart | 28 + .../response/guild/guild_model.freezed.dart | 320 ++ .../models/response/guild/guild_model.g.dart | 36 + .../response/guild_profile/guild_profile.dart | 160 + .../guild_profile/guild_profile.freezed.dart | 1521 +++++++++ .../guild_profile/guild_profile.g.dart | 244 ++ .../imported_loads_model.dart | 311 ++ .../imported_loads_model.freezed.dart | 2744 +++++++++++++++++ .../imported_loads_model.g.dart | 491 +++ .../response/inventory/inventory_model.dart | 56 + .../inventory/inventory_model.freezed.dart | 274 ++ .../response/inventory/inventory_model.g.dart | 127 + .../kill_house_distribution_info.dart | 15 + .../kill_house_distribution_info.freezed.dart | 151 + .../kill_house_distribution_info.g.dart | 22 + .../roles_products/roles_products.dart | 67 + .../roles_products.freezed.dart | 423 +++ .../roles_products/roles_products.g.dart | 141 + .../waiting_arrival/waiting_arrival.dart | 266 ++ .../waiting_arrival.freezed.dart | 2733 ++++++++++++++++ .../waiting_arrival/waiting_arrival.g.dart | 440 +++ .../data/repositories/chicken_repository.dart | 60 + .../repositories/chicken_repository_imp.dart | 194 ++ .../pages/entering_the_warehouse/logic.dart | 151 + .../entering_the_warehouse/string_utils.dart | 25 + .../pages/entering_the_warehouse/view.dart | 600 ++++ .../lib/presentation/pages/root/logic.dart | 118 +- .../lib/presentation/pages/root/view.dart | 507 ++- .../pages/sales_within_province/logic.dart | 213 ++ .../pages/sales_within_province/view.dart | 574 ++++ .../lib/presentation/routes/pages.dart | 27 +- .../lib/presentation/routes/routes.dart | 5 +- packages/chicken/test/chicken_test.dart | 16 - packages/core/lib/core.dart | 1 + .../lib/infrastructure/remote/dio_remote.dart | 43 +- .../lib/presentation/common/assets.gen.dart | 12 + .../lib/presentation/common/fonts.gen.dart | 4 +- .../presentation/utils/data_time_utils.dart | 8 + .../presentation/utils/list_extensions.dart | 4 +- .../core/lib/presentation/utils/utils.dart | 3 +- packages/core/lib/utils/date_time_utils.dart | 10 + pubspec.yaml | 3 + 68 files changed, 16615 insertions(+), 126 deletions(-) create mode 100644 assets/icons/inside.svg create mode 100644 assets/icons/outside.svg create mode 100644 assets/icons/whare_house.svg create mode 100644 packages/chicken/build.yaml create mode 100644 packages/chicken/lib/data/common/constant.dart create mode 100644 packages/chicken/lib/data/common/dio_error_handler.dart create mode 100644 packages/chicken/lib/data/common/dio_manager.dart create mode 100644 packages/chicken/lib/data/di/chicken_di.dart create mode 100644 packages/chicken/lib/data/models/request/conform_allocation/conform_allocation.dart create mode 100644 packages/chicken/lib/data/models/request/conform_allocation/conform_allocation.freezed.dart create mode 100644 packages/chicken/lib/data/models/request/conform_allocation/conform_allocation.g.dart create mode 100644 packages/chicken/lib/data/models/request/steward_allocation/steward_allocation_request.dart create mode 100644 packages/chicken/lib/data/models/request/steward_allocation/steward_allocation_request.freezed.dart create mode 100644 packages/chicken/lib/data/models/request/steward_allocation/steward_allocation_request.g.dart create mode 100644 packages/chicken/lib/data/models/request/submit_steward_allocation/submit_steward_allocation.dart create mode 100644 packages/chicken/lib/data/models/request/submit_steward_allocation/submit_steward_allocation.freezed.dart create mode 100644 packages/chicken/lib/data/models/request/submit_steward_allocation/submit_steward_allocation.g.dart create mode 100644 packages/chicken/lib/data/models/response/allocated_made/allocated_made.dart create mode 100644 packages/chicken/lib/data/models/response/allocated_made/allocated_made.freezed.dart create mode 100644 packages/chicken/lib/data/models/response/allocated_made/allocated_made.g.dart create mode 100644 packages/chicken/lib/data/models/response/bar_information/bar_information.dart create mode 100644 packages/chicken/lib/data/models/response/bar_information/bar_information.freezed.dart create mode 100644 packages/chicken/lib/data/models/response/bar_information/bar_information.g.dart create mode 100644 packages/chicken/lib/data/models/response/guild/guild_model.dart create mode 100644 packages/chicken/lib/data/models/response/guild/guild_model.freezed.dart create mode 100644 packages/chicken/lib/data/models/response/guild/guild_model.g.dart create mode 100644 packages/chicken/lib/data/models/response/guild_profile/guild_profile.dart create mode 100644 packages/chicken/lib/data/models/response/guild_profile/guild_profile.freezed.dart create mode 100644 packages/chicken/lib/data/models/response/guild_profile/guild_profile.g.dart create mode 100644 packages/chicken/lib/data/models/response/imported_loads_model/imported_loads_model.dart create mode 100644 packages/chicken/lib/data/models/response/imported_loads_model/imported_loads_model.freezed.dart create mode 100644 packages/chicken/lib/data/models/response/imported_loads_model/imported_loads_model.g.dart create mode 100644 packages/chicken/lib/data/models/response/inventory/inventory_model.dart create mode 100644 packages/chicken/lib/data/models/response/inventory/inventory_model.freezed.dart create mode 100644 packages/chicken/lib/data/models/response/inventory/inventory_model.g.dart create mode 100644 packages/chicken/lib/data/models/response/kill_house_distribution_info/kill_house_distribution_info.dart create mode 100644 packages/chicken/lib/data/models/response/kill_house_distribution_info/kill_house_distribution_info.freezed.dart create mode 100644 packages/chicken/lib/data/models/response/kill_house_distribution_info/kill_house_distribution_info.g.dart create mode 100644 packages/chicken/lib/data/models/response/roles_products/roles_products.dart create mode 100644 packages/chicken/lib/data/models/response/roles_products/roles_products.freezed.dart create mode 100644 packages/chicken/lib/data/models/response/roles_products/roles_products.g.dart create mode 100644 packages/chicken/lib/data/models/response/waiting_arrival/waiting_arrival.dart create mode 100644 packages/chicken/lib/data/models/response/waiting_arrival/waiting_arrival.freezed.dart create mode 100644 packages/chicken/lib/data/models/response/waiting_arrival/waiting_arrival.g.dart create mode 100644 packages/chicken/lib/data/repositories/chicken_repository.dart create mode 100644 packages/chicken/lib/data/repositories/chicken_repository_imp.dart create mode 100644 packages/chicken/lib/presentation/pages/entering_the_warehouse/logic.dart create mode 100644 packages/chicken/lib/presentation/pages/entering_the_warehouse/string_utils.dart create mode 100644 packages/chicken/lib/presentation/pages/entering_the_warehouse/view.dart create mode 100644 packages/chicken/lib/presentation/pages/sales_within_province/logic.dart create mode 100644 packages/chicken/lib/presentation/pages/sales_within_province/view.dart delete mode 100644 packages/chicken/test/chicken_test.dart create mode 100644 packages/core/lib/presentation/utils/data_time_utils.dart create mode 100644 packages/core/lib/utils/date_time_utils.dart diff --git a/assets/icons/inside.svg b/assets/icons/inside.svg new file mode 100644 index 0000000..88704db --- /dev/null +++ b/assets/icons/inside.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/icons/outside.svg b/assets/icons/outside.svg new file mode 100644 index 0000000..72b6978 --- /dev/null +++ b/assets/icons/outside.svg @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/icons/whare_house.svg b/assets/icons/whare_house.svg new file mode 100644 index 0000000..5033d61 --- /dev/null +++ b/assets/icons/whare_house.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/lib/infrastructure/di/di.dart b/lib/infrastructure/di/di.dart index b7107fb..1058c46 100644 --- a/lib/infrastructure/di/di.dart +++ b/lib/infrastructure/di/di.dart @@ -1,5 +1,6 @@ import 'package:rasadyar_auth/auth.dart'; +import 'package:rasadyar_chicken/data/di/chicken_di.dart'; import 'package:rasadyar_core/core.dart'; final di = GetIt.instance; @@ -8,6 +9,7 @@ Future setupInjection() async{ await setupAuthDI(); await setupAllCoreProvider(); + } diff --git a/lib/res/assets_res.dart b/lib/res/assets_res.dart index 3ed9350..18ff89e 100644 --- a/lib/res/assets_res.dart +++ b/lib/res/assets_res.dart @@ -8,4 +8,7 @@ class AssetsRes { static const String PROJECT_NAME = 'rasadyar_app'; static const String PROJECT_VERSION = '1.2.0+2'; + static const String INSIDE = 'assets/icons/inside.svg'; + static const String OUTSIDE = 'assets/icons/outside.svg'; + static const String WHARE_HOUSE = 'assets/icons/whare_house.svg'; } diff --git a/packages/auth/lib/data/di/auth_di.dart b/packages/auth/lib/data/di/auth_di.dart index 5accae7..e6b40cd 100644 --- a/packages/auth/lib/data/di/auth_di.dart +++ b/packages/auth/lib/data/di/auth_di.dart @@ -11,8 +11,6 @@ Future setupAuthDI() async { diAuth.registerLazySingleton(() => DioRemoteManager()); diAuth.registerLazySingleton(() => DioRemote()); - /* final manager = diAuth.get(); - final dioRemote = await manager.setEnvironment(ApiEnvironment.dam);*/ final dioRemote = diAuth.get(); await dioRemote.init(); diff --git a/packages/chicken/build.yaml b/packages/chicken/build.yaml new file mode 100644 index 0000000..840029b --- /dev/null +++ b/packages/chicken/build.yaml @@ -0,0 +1,6 @@ +targets: + $default: + builders: + json_serializable: + options: + field_rename: snake \ No newline at end of file diff --git a/packages/chicken/lib/data/common/constant.dart b/packages/chicken/lib/data/common/constant.dart new file mode 100644 index 0000000..c0b0982 --- /dev/null +++ b/packages/chicken/lib/data/common/constant.dart @@ -0,0 +1,14 @@ +enum ApiEnvironment { + dam(url: 'https://api.dam.rasadyar.net/'); + + const ApiEnvironment({required this.url}); + + final String url; + + String get baseUrl { + switch (this) { + case ApiEnvironment.dam: + return url; + } + } +} diff --git a/packages/chicken/lib/data/common/dio_error_handler.dart b/packages/chicken/lib/data/common/dio_error_handler.dart new file mode 100644 index 0000000..57f29bc --- /dev/null +++ b/packages/chicken/lib/data/common/dio_error_handler.dart @@ -0,0 +1,58 @@ +import 'package:flutter/material.dart'; +import 'package:rasadyar_core/core.dart'; + +class DioErrorHandler { + void handle(DioException error) { + switch (error.response?.statusCode) { + case 401: + _handleGeneric(error); + break; + case 403: + _handleGeneric(error); + break; + + case 410: + _handle410(); + break; + default: + _handleGeneric(error); + } + } + + //wrong password/user name => "detail": "No active account found with the given credentials" - 401 + void _handle410() { + Get.showSnackbar(_errorSnackBar('نام کاربری یا رمز عبور اشتباه است')); + } + + //wrong captcha => "detail": "Captcha code is incorrect" - 403 + void _handle403() {} + + void _handleGeneric(DioException error) { + Get.showSnackbar( + _errorSnackBar( + error.response?.data.keys.first == 'is_user' + ? 'کاربر با این شماره تلفن وجود ندارد' + : error.response?.data[error.response?.data.keys.first] ?? + 'خطا در برقراری ارتباط با سرور', + ), + ); + } + + GetSnackBar _errorSnackBar(String message) { + return GetSnackBar( + titleText: Text( + 'خطا', + style: AppFonts.yekan14.copyWith(color: Colors.white), + ), + messageText: Text( + message, + style: AppFonts.yekan12.copyWith(color: Colors.white), + ), + backgroundColor: AppColor.error, + margin: EdgeInsets.symmetric(horizontal: 12, vertical: 8), + borderRadius: 12, + duration: Duration(milliseconds: 3500), + snackPosition: SnackPosition.TOP, + ); + } +} diff --git a/packages/chicken/lib/data/common/dio_manager.dart b/packages/chicken/lib/data/common/dio_manager.dart new file mode 100644 index 0000000..e6d2946 --- /dev/null +++ b/packages/chicken/lib/data/common/dio_manager.dart @@ -0,0 +1,33 @@ +import 'package:rasadyar_auth/data/repositories/auth_repository_imp.dart'; +import 'package:rasadyar_core/core.dart'; + +import '../di/chicken_di.dart'; +import 'constant.dart'; + +class DioRemoteManager { + DioRemote? _currentClient; + ApiEnvironment? _currentEnv; + + Future setEnvironment([ + ApiEnvironment env = ApiEnvironment.dam, + ]) async { + if (_currentEnv != env) { + _currentClient = DioRemote(baseUrl: env.baseUrl); + await _currentClient?.init(); + _currentEnv = env; + } + return _currentClient!; + } + + DioRemote get currentClient { + if (_currentClient == null) { + throw Exception('Call setEnvironment() before accessing DioRemote.'); + } + + return _currentClient!; + } + + ApiEnvironment? get currentEnv => _currentEnv; +} + + diff --git a/packages/chicken/lib/data/di/chicken_di.dart b/packages/chicken/lib/data/di/chicken_di.dart new file mode 100644 index 0000000..5746bed --- /dev/null +++ b/packages/chicken/lib/data/di/chicken_di.dart @@ -0,0 +1,19 @@ +import 'package:rasadyar_auth/data/di/auth_di.dart'; +import 'package:rasadyar_auth/data/services/token_storage_service.dart'; +import 'package:rasadyar_chicken/data/repositories/chicken_repository_imp.dart'; +import 'package:rasadyar_core/core.dart'; + +GetIt diChicken = GetIt.instance; + +Future setupChickenDI() async { + var tokenService = Get.find(); + + diAuth.registerLazySingleton( + () => DioRemote(baseUrl: tokenService.baseurl.value), + ); + final dioRemote = diAuth.get(); + await dioRemote.init(); + diAuth.registerLazySingleton( + () => ChickenRepositoryImpl(dioRemote), + ); +} diff --git a/packages/chicken/lib/data/models/request/conform_allocation/conform_allocation.dart b/packages/chicken/lib/data/models/request/conform_allocation/conform_allocation.dart new file mode 100644 index 0000000..34cb139 --- /dev/null +++ b/packages/chicken/lib/data/models/request/conform_allocation/conform_allocation.dart @@ -0,0 +1,18 @@ +import 'package:freezed_annotation/freezed_annotation.dart'; + +part 'conform_allocation.freezed.dart'; +part 'conform_allocation.g.dart'; + +@freezed +abstract class ConformAllocation with _$ConformAllocation { + factory ConformAllocation({ + String? allocation_key, + int? number_of_carcasses, + int? weight_of_carcasses, + int? amount, + int? total_amount, + }) = _ConformAllocation; + + factory ConformAllocation.fromJson(Map json) => + _$ConformAllocationFromJson(json); +} diff --git a/packages/chicken/lib/data/models/request/conform_allocation/conform_allocation.freezed.dart b/packages/chicken/lib/data/models/request/conform_allocation/conform_allocation.freezed.dart new file mode 100644 index 0000000..b08cbcb --- /dev/null +++ b/packages/chicken/lib/data/models/request/conform_allocation/conform_allocation.freezed.dart @@ -0,0 +1,160 @@ +// dart format width=80 +// coverage:ignore-file +// GENERATED CODE - DO NOT MODIFY BY HAND +// 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 'conform_allocation.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; + +/// @nodoc +mixin _$ConformAllocation { + + String? get allocation_key; int? get number_of_carcasses; int? get weight_of_carcasses; int? get amount; int? get total_amount; +/// Create a copy of ConformAllocation +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ConformAllocationCopyWith get copyWith => _$ConformAllocationCopyWithImpl(this as ConformAllocation, _$identity); + + /// Serializes this ConformAllocation to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is ConformAllocation&&(identical(other.allocation_key, allocation_key) || other.allocation_key == allocation_key)&&(identical(other.number_of_carcasses, number_of_carcasses) || other.number_of_carcasses == number_of_carcasses)&&(identical(other.weight_of_carcasses, weight_of_carcasses) || other.weight_of_carcasses == weight_of_carcasses)&&(identical(other.amount, amount) || other.amount == amount)&&(identical(other.total_amount, total_amount) || other.total_amount == total_amount)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,allocation_key,number_of_carcasses,weight_of_carcasses,amount,total_amount); + +@override +String toString() { + return 'ConformAllocation(allocation_key: $allocation_key, number_of_carcasses: $number_of_carcasses, weight_of_carcasses: $weight_of_carcasses, amount: $amount, total_amount: $total_amount)'; +} + + +} + +/// @nodoc +abstract mixin class $ConformAllocationCopyWith<$Res> { + factory $ConformAllocationCopyWith(ConformAllocation value, $Res Function(ConformAllocation) _then) = _$ConformAllocationCopyWithImpl; +@useResult +$Res call({ + String? allocation_key, int? number_of_carcasses, int? weight_of_carcasses, int? amount, int? total_amount +}); + + + + +} +/// @nodoc +class _$ConformAllocationCopyWithImpl<$Res> + implements $ConformAllocationCopyWith<$Res> { + _$ConformAllocationCopyWithImpl(this._self, this._then); + + final ConformAllocation _self; + final $Res Function(ConformAllocation) _then; + +/// Create a copy of ConformAllocation +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? allocation_key = freezed,Object? number_of_carcasses = freezed,Object? weight_of_carcasses = freezed,Object? amount = freezed,Object? total_amount = freezed,}) { + return _then(_self.copyWith( +allocation_key: freezed == allocation_key ? _self.allocation_key : allocation_key // ignore: cast_nullable_to_non_nullable +as String?,number_of_carcasses: freezed == number_of_carcasses ? _self.number_of_carcasses : number_of_carcasses // ignore: cast_nullable_to_non_nullable +as int?,weight_of_carcasses: freezed == weight_of_carcasses ? _self.weight_of_carcasses : weight_of_carcasses // ignore: cast_nullable_to_non_nullable +as int?,amount: freezed == amount ? _self.amount : amount // ignore: cast_nullable_to_non_nullable +as int?,total_amount: freezed == total_amount ? _self.total_amount : total_amount // ignore: cast_nullable_to_non_nullable +as int?, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _ConformAllocation implements ConformAllocation { + _ConformAllocation({this.allocation_key, this.number_of_carcasses, this.weight_of_carcasses, this.amount, this.total_amount}); + factory _ConformAllocation.fromJson(Map json) => _$ConformAllocationFromJson(json); + +@override final String? allocation_key; +@override final int? number_of_carcasses; +@override final int? weight_of_carcasses; +@override final int? amount; +@override final int? total_amount; + +/// Create a copy of ConformAllocation +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ConformAllocationCopyWith<_ConformAllocation> get copyWith => __$ConformAllocationCopyWithImpl<_ConformAllocation>(this, _$identity); + +@override +Map toJson() { + return _$ConformAllocationToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _ConformAllocation&&(identical(other.allocation_key, allocation_key) || other.allocation_key == allocation_key)&&(identical(other.number_of_carcasses, number_of_carcasses) || other.number_of_carcasses == number_of_carcasses)&&(identical(other.weight_of_carcasses, weight_of_carcasses) || other.weight_of_carcasses == weight_of_carcasses)&&(identical(other.amount, amount) || other.amount == amount)&&(identical(other.total_amount, total_amount) || other.total_amount == total_amount)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,allocation_key,number_of_carcasses,weight_of_carcasses,amount,total_amount); + +@override +String toString() { + return 'ConformAllocation(allocation_key: $allocation_key, number_of_carcasses: $number_of_carcasses, weight_of_carcasses: $weight_of_carcasses, amount: $amount, total_amount: $total_amount)'; +} + + +} + +/// @nodoc +abstract mixin class _$ConformAllocationCopyWith<$Res> implements $ConformAllocationCopyWith<$Res> { + factory _$ConformAllocationCopyWith(_ConformAllocation value, $Res Function(_ConformAllocation) _then) = __$ConformAllocationCopyWithImpl; +@override @useResult +$Res call({ + String? allocation_key, int? number_of_carcasses, int? weight_of_carcasses, int? amount, int? total_amount +}); + + + + +} +/// @nodoc +class __$ConformAllocationCopyWithImpl<$Res> + implements _$ConformAllocationCopyWith<$Res> { + __$ConformAllocationCopyWithImpl(this._self, this._then); + + final _ConformAllocation _self; + final $Res Function(_ConformAllocation) _then; + +/// Create a copy of ConformAllocation +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? allocation_key = freezed,Object? number_of_carcasses = freezed,Object? weight_of_carcasses = freezed,Object? amount = freezed,Object? total_amount = freezed,}) { + return _then(_ConformAllocation( +allocation_key: freezed == allocation_key ? _self.allocation_key : allocation_key // ignore: cast_nullable_to_non_nullable +as String?,number_of_carcasses: freezed == number_of_carcasses ? _self.number_of_carcasses : number_of_carcasses // ignore: cast_nullable_to_non_nullable +as int?,weight_of_carcasses: freezed == weight_of_carcasses ? _self.weight_of_carcasses : weight_of_carcasses // ignore: cast_nullable_to_non_nullable +as int?,amount: freezed == amount ? _self.amount : amount // ignore: cast_nullable_to_non_nullable +as int?,total_amount: freezed == total_amount ? _self.total_amount : total_amount // ignore: cast_nullable_to_non_nullable +as int?, + )); +} + + +} + +// dart format on diff --git a/packages/chicken/lib/data/models/request/conform_allocation/conform_allocation.g.dart b/packages/chicken/lib/data/models/request/conform_allocation/conform_allocation.g.dart new file mode 100644 index 0000000..a4a1b45 --- /dev/null +++ b/packages/chicken/lib/data/models/request/conform_allocation/conform_allocation.g.dart @@ -0,0 +1,25 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'conform_allocation.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +_ConformAllocation _$ConformAllocationFromJson(Map json) => + _ConformAllocation( + allocation_key: json['allocation_key'] as String?, + number_of_carcasses: (json['number_of_carcasses'] as num?)?.toInt(), + weight_of_carcasses: (json['weight_of_carcasses'] as num?)?.toInt(), + amount: (json['amount'] as num?)?.toInt(), + total_amount: (json['total_amount'] as num?)?.toInt(), + ); + +Map _$ConformAllocationToJson(_ConformAllocation instance) => + { + 'allocation_key': instance.allocation_key, + 'number_of_carcasses': instance.number_of_carcasses, + 'weight_of_carcasses': instance.weight_of_carcasses, + 'amount': instance.amount, + 'total_amount': instance.total_amount, + }; diff --git a/packages/chicken/lib/data/models/request/steward_allocation/steward_allocation_request.dart b/packages/chicken/lib/data/models/request/steward_allocation/steward_allocation_request.dart new file mode 100644 index 0000000..d041ddf --- /dev/null +++ b/packages/chicken/lib/data/models/request/steward_allocation/steward_allocation_request.dart @@ -0,0 +1,20 @@ +import 'package:freezed_annotation/freezed_annotation.dart'; + +part 'steward_allocation_request.freezed.dart'; +part 'steward_allocation_request.g.dart'; + +@freezed +abstract class StewardAllocationRequest with _$StewardAllocationRequest { + const factory StewardAllocationRequest({ + bool? checkAllocation, + String? allocationKey, + String? state, + int? registrationCode, + int? receiverRealNumberOfCarcasses, + int? receiverRealWeightOfCarcasses, + int? weightLossOfCarcasses, + }) = _StewardAllocationRequest; + + factory StewardAllocationRequest.fromJson(Map json) => + _$StewardAllocationRequestFromJson(json); +} diff --git a/packages/chicken/lib/data/models/request/steward_allocation/steward_allocation_request.freezed.dart b/packages/chicken/lib/data/models/request/steward_allocation/steward_allocation_request.freezed.dart new file mode 100644 index 0000000..c19c23e --- /dev/null +++ b/packages/chicken/lib/data/models/request/steward_allocation/steward_allocation_request.freezed.dart @@ -0,0 +1,166 @@ +// dart format width=80 +// coverage:ignore-file +// GENERATED CODE - DO NOT MODIFY BY HAND +// 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 'steward_allocation_request.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; + +/// @nodoc +mixin _$StewardAllocationRequest { + + bool? get checkAllocation; String? get allocationKey; String? get state; int? get registrationCode; int? get receiverRealNumberOfCarcasses; int? get receiverRealWeightOfCarcasses; int? get weightLossOfCarcasses; +/// Create a copy of StewardAllocationRequest +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$StewardAllocationRequestCopyWith get copyWith => _$StewardAllocationRequestCopyWithImpl(this as StewardAllocationRequest, _$identity); + + /// Serializes this StewardAllocationRequest to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is StewardAllocationRequest&&(identical(other.checkAllocation, checkAllocation) || other.checkAllocation == checkAllocation)&&(identical(other.allocationKey, allocationKey) || other.allocationKey == allocationKey)&&(identical(other.state, state) || other.state == state)&&(identical(other.registrationCode, registrationCode) || other.registrationCode == registrationCode)&&(identical(other.receiverRealNumberOfCarcasses, receiverRealNumberOfCarcasses) || other.receiverRealNumberOfCarcasses == receiverRealNumberOfCarcasses)&&(identical(other.receiverRealWeightOfCarcasses, receiverRealWeightOfCarcasses) || other.receiverRealWeightOfCarcasses == receiverRealWeightOfCarcasses)&&(identical(other.weightLossOfCarcasses, weightLossOfCarcasses) || other.weightLossOfCarcasses == weightLossOfCarcasses)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,checkAllocation,allocationKey,state,registrationCode,receiverRealNumberOfCarcasses,receiverRealWeightOfCarcasses,weightLossOfCarcasses); + +@override +String toString() { + return 'StewardAllocationRequest(checkAllocation: $checkAllocation, allocationKey: $allocationKey, state: $state, registrationCode: $registrationCode, receiverRealNumberOfCarcasses: $receiverRealNumberOfCarcasses, receiverRealWeightOfCarcasses: $receiverRealWeightOfCarcasses, weightLossOfCarcasses: $weightLossOfCarcasses)'; +} + + +} + +/// @nodoc +abstract mixin class $StewardAllocationRequestCopyWith<$Res> { + factory $StewardAllocationRequestCopyWith(StewardAllocationRequest value, $Res Function(StewardAllocationRequest) _then) = _$StewardAllocationRequestCopyWithImpl; +@useResult +$Res call({ + bool? checkAllocation, String? allocationKey, String? state, int? registrationCode, int? receiverRealNumberOfCarcasses, int? receiverRealWeightOfCarcasses, int? weightLossOfCarcasses +}); + + + + +} +/// @nodoc +class _$StewardAllocationRequestCopyWithImpl<$Res> + implements $StewardAllocationRequestCopyWith<$Res> { + _$StewardAllocationRequestCopyWithImpl(this._self, this._then); + + final StewardAllocationRequest _self; + final $Res Function(StewardAllocationRequest) _then; + +/// Create a copy of StewardAllocationRequest +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? checkAllocation = freezed,Object? allocationKey = freezed,Object? state = freezed,Object? registrationCode = freezed,Object? receiverRealNumberOfCarcasses = freezed,Object? receiverRealWeightOfCarcasses = freezed,Object? weightLossOfCarcasses = freezed,}) { + return _then(_self.copyWith( +checkAllocation: freezed == checkAllocation ? _self.checkAllocation : checkAllocation // ignore: cast_nullable_to_non_nullable +as bool?,allocationKey: freezed == allocationKey ? _self.allocationKey : allocationKey // ignore: cast_nullable_to_non_nullable +as String?,state: freezed == state ? _self.state : state // ignore: cast_nullable_to_non_nullable +as String?,registrationCode: freezed == registrationCode ? _self.registrationCode : registrationCode // ignore: cast_nullable_to_non_nullable +as int?,receiverRealNumberOfCarcasses: freezed == receiverRealNumberOfCarcasses ? _self.receiverRealNumberOfCarcasses : receiverRealNumberOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?,receiverRealWeightOfCarcasses: freezed == receiverRealWeightOfCarcasses ? _self.receiverRealWeightOfCarcasses : receiverRealWeightOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?,weightLossOfCarcasses: freezed == weightLossOfCarcasses ? _self.weightLossOfCarcasses : weightLossOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _StewardAllocationRequest implements StewardAllocationRequest { + const _StewardAllocationRequest({this.checkAllocation, this.allocationKey, this.state, this.registrationCode, this.receiverRealNumberOfCarcasses, this.receiverRealWeightOfCarcasses, this.weightLossOfCarcasses}); + factory _StewardAllocationRequest.fromJson(Map json) => _$StewardAllocationRequestFromJson(json); + +@override final bool? checkAllocation; +@override final String? allocationKey; +@override final String? state; +@override final int? registrationCode; +@override final int? receiverRealNumberOfCarcasses; +@override final int? receiverRealWeightOfCarcasses; +@override final int? weightLossOfCarcasses; + +/// Create a copy of StewardAllocationRequest +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$StewardAllocationRequestCopyWith<_StewardAllocationRequest> get copyWith => __$StewardAllocationRequestCopyWithImpl<_StewardAllocationRequest>(this, _$identity); + +@override +Map toJson() { + return _$StewardAllocationRequestToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _StewardAllocationRequest&&(identical(other.checkAllocation, checkAllocation) || other.checkAllocation == checkAllocation)&&(identical(other.allocationKey, allocationKey) || other.allocationKey == allocationKey)&&(identical(other.state, state) || other.state == state)&&(identical(other.registrationCode, registrationCode) || other.registrationCode == registrationCode)&&(identical(other.receiverRealNumberOfCarcasses, receiverRealNumberOfCarcasses) || other.receiverRealNumberOfCarcasses == receiverRealNumberOfCarcasses)&&(identical(other.receiverRealWeightOfCarcasses, receiverRealWeightOfCarcasses) || other.receiverRealWeightOfCarcasses == receiverRealWeightOfCarcasses)&&(identical(other.weightLossOfCarcasses, weightLossOfCarcasses) || other.weightLossOfCarcasses == weightLossOfCarcasses)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,checkAllocation,allocationKey,state,registrationCode,receiverRealNumberOfCarcasses,receiverRealWeightOfCarcasses,weightLossOfCarcasses); + +@override +String toString() { + return 'StewardAllocationRequest(checkAllocation: $checkAllocation, allocationKey: $allocationKey, state: $state, registrationCode: $registrationCode, receiverRealNumberOfCarcasses: $receiverRealNumberOfCarcasses, receiverRealWeightOfCarcasses: $receiverRealWeightOfCarcasses, weightLossOfCarcasses: $weightLossOfCarcasses)'; +} + + +} + +/// @nodoc +abstract mixin class _$StewardAllocationRequestCopyWith<$Res> implements $StewardAllocationRequestCopyWith<$Res> { + factory _$StewardAllocationRequestCopyWith(_StewardAllocationRequest value, $Res Function(_StewardAllocationRequest) _then) = __$StewardAllocationRequestCopyWithImpl; +@override @useResult +$Res call({ + bool? checkAllocation, String? allocationKey, String? state, int? registrationCode, int? receiverRealNumberOfCarcasses, int? receiverRealWeightOfCarcasses, int? weightLossOfCarcasses +}); + + + + +} +/// @nodoc +class __$StewardAllocationRequestCopyWithImpl<$Res> + implements _$StewardAllocationRequestCopyWith<$Res> { + __$StewardAllocationRequestCopyWithImpl(this._self, this._then); + + final _StewardAllocationRequest _self; + final $Res Function(_StewardAllocationRequest) _then; + +/// Create a copy of StewardAllocationRequest +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? checkAllocation = freezed,Object? allocationKey = freezed,Object? state = freezed,Object? registrationCode = freezed,Object? receiverRealNumberOfCarcasses = freezed,Object? receiverRealWeightOfCarcasses = freezed,Object? weightLossOfCarcasses = freezed,}) { + return _then(_StewardAllocationRequest( +checkAllocation: freezed == checkAllocation ? _self.checkAllocation : checkAllocation // ignore: cast_nullable_to_non_nullable +as bool?,allocationKey: freezed == allocationKey ? _self.allocationKey : allocationKey // ignore: cast_nullable_to_non_nullable +as String?,state: freezed == state ? _self.state : state // ignore: cast_nullable_to_non_nullable +as String?,registrationCode: freezed == registrationCode ? _self.registrationCode : registrationCode // ignore: cast_nullable_to_non_nullable +as int?,receiverRealNumberOfCarcasses: freezed == receiverRealNumberOfCarcasses ? _self.receiverRealNumberOfCarcasses : receiverRealNumberOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?,receiverRealWeightOfCarcasses: freezed == receiverRealWeightOfCarcasses ? _self.receiverRealWeightOfCarcasses : receiverRealWeightOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?,weightLossOfCarcasses: freezed == weightLossOfCarcasses ? _self.weightLossOfCarcasses : weightLossOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?, + )); +} + + +} + +// dart format on diff --git a/packages/chicken/lib/data/models/request/steward_allocation/steward_allocation_request.g.dart b/packages/chicken/lib/data/models/request/steward_allocation/steward_allocation_request.g.dart new file mode 100644 index 0000000..d463989 --- /dev/null +++ b/packages/chicken/lib/data/models/request/steward_allocation/steward_allocation_request.g.dart @@ -0,0 +1,33 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'steward_allocation_request.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +_StewardAllocationRequest _$StewardAllocationRequestFromJson( + Map json, +) => _StewardAllocationRequest( + checkAllocation: json['check_allocation'] as bool?, + allocationKey: json['allocation_key'] as String?, + state: json['state'] as String?, + registrationCode: (json['registration_code'] as num?)?.toInt(), + receiverRealNumberOfCarcasses: + (json['receiver_real_number_of_carcasses'] as num?)?.toInt(), + receiverRealWeightOfCarcasses: + (json['receiver_real_weight_of_carcasses'] as num?)?.toInt(), + weightLossOfCarcasses: (json['weight_loss_of_carcasses'] as num?)?.toInt(), +); + +Map _$StewardAllocationRequestToJson( + _StewardAllocationRequest instance, +) => { + 'check_allocation': instance.checkAllocation, + 'allocation_key': instance.allocationKey, + 'state': instance.state, + 'registration_code': instance.registrationCode, + 'receiver_real_number_of_carcasses': instance.receiverRealNumberOfCarcasses, + 'receiver_real_weight_of_carcasses': instance.receiverRealWeightOfCarcasses, + 'weight_loss_of_carcasses': instance.weightLossOfCarcasses, +}; diff --git a/packages/chicken/lib/data/models/request/submit_steward_allocation/submit_steward_allocation.dart b/packages/chicken/lib/data/models/request/submit_steward_allocation/submit_steward_allocation.dart new file mode 100644 index 0000000..8833933 --- /dev/null +++ b/packages/chicken/lib/data/models/request/submit_steward_allocation/submit_steward_allocation.dart @@ -0,0 +1,26 @@ +import 'package:freezed_annotation/freezed_annotation.dart'; + +part 'submit_steward_allocation.freezed.dart'; +part 'submit_steward_allocation.g.dart'; + +@freezed +abstract class SubmitStewardAllocation with _$SubmitStewardAllocation { + const factory SubmitStewardAllocation({ + String? sellerType, + String? buyerType, + String? guildKey, + String? productKey, + String? type, + String? allocationType, + int? numberOfCarcasses, + int? weightOfCarcasses, + String? sellType, + int? amount, + int? totalAmount, + bool? approvedPriceStatus, + String? date, + }) = _SubmitStewardAllocation; + + factory SubmitStewardAllocation.fromJson(Map json) => + _$SubmitStewardAllocationFromJson(json); +} \ No newline at end of file diff --git a/packages/chicken/lib/data/models/request/submit_steward_allocation/submit_steward_allocation.freezed.dart b/packages/chicken/lib/data/models/request/submit_steward_allocation/submit_steward_allocation.freezed.dart new file mode 100644 index 0000000..257af6e --- /dev/null +++ b/packages/chicken/lib/data/models/request/submit_steward_allocation/submit_steward_allocation.freezed.dart @@ -0,0 +1,184 @@ +// dart format width=80 +// coverage:ignore-file +// GENERATED CODE - DO NOT MODIFY BY HAND +// 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 'submit_steward_allocation.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; + +/// @nodoc +mixin _$SubmitStewardAllocation { + + String? get sellerType; String? get buyerType; String? get guildKey; String? get productKey; String? get type; String? get allocationType; int? get numberOfCarcasses; int? get weightOfCarcasses; String? get sellType; int? get amount; int? get totalAmount; bool? get approvedPriceStatus; String? get date; +/// Create a copy of SubmitStewardAllocation +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$SubmitStewardAllocationCopyWith get copyWith => _$SubmitStewardAllocationCopyWithImpl(this as SubmitStewardAllocation, _$identity); + + /// Serializes this SubmitStewardAllocation to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is SubmitStewardAllocation&&(identical(other.sellerType, sellerType) || other.sellerType == sellerType)&&(identical(other.buyerType, buyerType) || other.buyerType == buyerType)&&(identical(other.guildKey, guildKey) || other.guildKey == guildKey)&&(identical(other.productKey, productKey) || other.productKey == productKey)&&(identical(other.type, type) || other.type == type)&&(identical(other.allocationType, allocationType) || other.allocationType == allocationType)&&(identical(other.numberOfCarcasses, numberOfCarcasses) || other.numberOfCarcasses == numberOfCarcasses)&&(identical(other.weightOfCarcasses, weightOfCarcasses) || other.weightOfCarcasses == weightOfCarcasses)&&(identical(other.sellType, sellType) || other.sellType == sellType)&&(identical(other.amount, amount) || other.amount == amount)&&(identical(other.totalAmount, totalAmount) || other.totalAmount == totalAmount)&&(identical(other.approvedPriceStatus, approvedPriceStatus) || other.approvedPriceStatus == approvedPriceStatus)&&(identical(other.date, date) || other.date == date)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,sellerType,buyerType,guildKey,productKey,type,allocationType,numberOfCarcasses,weightOfCarcasses,sellType,amount,totalAmount,approvedPriceStatus,date); + +@override +String toString() { + return 'SubmitStewardAllocation(sellerType: $sellerType, buyerType: $buyerType, guildKey: $guildKey, productKey: $productKey, type: $type, allocationType: $allocationType, numberOfCarcasses: $numberOfCarcasses, weightOfCarcasses: $weightOfCarcasses, sellType: $sellType, amount: $amount, totalAmount: $totalAmount, approvedPriceStatus: $approvedPriceStatus, date: $date)'; +} + + +} + +/// @nodoc +abstract mixin class $SubmitStewardAllocationCopyWith<$Res> { + factory $SubmitStewardAllocationCopyWith(SubmitStewardAllocation value, $Res Function(SubmitStewardAllocation) _then) = _$SubmitStewardAllocationCopyWithImpl; +@useResult +$Res call({ + String? sellerType, String? buyerType, String? guildKey, String? productKey, String? type, String? allocationType, int? numberOfCarcasses, int? weightOfCarcasses, String? sellType, int? amount, int? totalAmount, bool? approvedPriceStatus, String? date +}); + + + + +} +/// @nodoc +class _$SubmitStewardAllocationCopyWithImpl<$Res> + implements $SubmitStewardAllocationCopyWith<$Res> { + _$SubmitStewardAllocationCopyWithImpl(this._self, this._then); + + final SubmitStewardAllocation _self; + final $Res Function(SubmitStewardAllocation) _then; + +/// Create a copy of SubmitStewardAllocation +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? sellerType = freezed,Object? buyerType = freezed,Object? guildKey = freezed,Object? productKey = freezed,Object? type = freezed,Object? allocationType = freezed,Object? numberOfCarcasses = freezed,Object? weightOfCarcasses = freezed,Object? sellType = freezed,Object? amount = freezed,Object? totalAmount = freezed,Object? approvedPriceStatus = freezed,Object? date = freezed,}) { + return _then(_self.copyWith( +sellerType: freezed == sellerType ? _self.sellerType : sellerType // ignore: cast_nullable_to_non_nullable +as String?,buyerType: freezed == buyerType ? _self.buyerType : buyerType // ignore: cast_nullable_to_non_nullable +as String?,guildKey: freezed == guildKey ? _self.guildKey : guildKey // ignore: cast_nullable_to_non_nullable +as String?,productKey: freezed == productKey ? _self.productKey : productKey // ignore: cast_nullable_to_non_nullable +as String?,type: freezed == type ? _self.type : type // ignore: cast_nullable_to_non_nullable +as String?,allocationType: freezed == allocationType ? _self.allocationType : allocationType // ignore: cast_nullable_to_non_nullable +as String?,numberOfCarcasses: freezed == numberOfCarcasses ? _self.numberOfCarcasses : numberOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?,weightOfCarcasses: freezed == weightOfCarcasses ? _self.weightOfCarcasses : weightOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?,sellType: freezed == sellType ? _self.sellType : sellType // ignore: cast_nullable_to_non_nullable +as String?,amount: freezed == amount ? _self.amount : amount // ignore: cast_nullable_to_non_nullable +as int?,totalAmount: freezed == totalAmount ? _self.totalAmount : totalAmount // ignore: cast_nullable_to_non_nullable +as int?,approvedPriceStatus: freezed == approvedPriceStatus ? _self.approvedPriceStatus : approvedPriceStatus // ignore: cast_nullable_to_non_nullable +as bool?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _SubmitStewardAllocation implements SubmitStewardAllocation { + const _SubmitStewardAllocation({this.sellerType, this.buyerType, this.guildKey, this.productKey, this.type, this.allocationType, this.numberOfCarcasses, this.weightOfCarcasses, this.sellType, this.amount, this.totalAmount, this.approvedPriceStatus, this.date}); + factory _SubmitStewardAllocation.fromJson(Map json) => _$SubmitStewardAllocationFromJson(json); + +@override final String? sellerType; +@override final String? buyerType; +@override final String? guildKey; +@override final String? productKey; +@override final String? type; +@override final String? allocationType; +@override final int? numberOfCarcasses; +@override final int? weightOfCarcasses; +@override final String? sellType; +@override final int? amount; +@override final int? totalAmount; +@override final bool? approvedPriceStatus; +@override final String? date; + +/// Create a copy of SubmitStewardAllocation +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$SubmitStewardAllocationCopyWith<_SubmitStewardAllocation> get copyWith => __$SubmitStewardAllocationCopyWithImpl<_SubmitStewardAllocation>(this, _$identity); + +@override +Map toJson() { + return _$SubmitStewardAllocationToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _SubmitStewardAllocation&&(identical(other.sellerType, sellerType) || other.sellerType == sellerType)&&(identical(other.buyerType, buyerType) || other.buyerType == buyerType)&&(identical(other.guildKey, guildKey) || other.guildKey == guildKey)&&(identical(other.productKey, productKey) || other.productKey == productKey)&&(identical(other.type, type) || other.type == type)&&(identical(other.allocationType, allocationType) || other.allocationType == allocationType)&&(identical(other.numberOfCarcasses, numberOfCarcasses) || other.numberOfCarcasses == numberOfCarcasses)&&(identical(other.weightOfCarcasses, weightOfCarcasses) || other.weightOfCarcasses == weightOfCarcasses)&&(identical(other.sellType, sellType) || other.sellType == sellType)&&(identical(other.amount, amount) || other.amount == amount)&&(identical(other.totalAmount, totalAmount) || other.totalAmount == totalAmount)&&(identical(other.approvedPriceStatus, approvedPriceStatus) || other.approvedPriceStatus == approvedPriceStatus)&&(identical(other.date, date) || other.date == date)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,sellerType,buyerType,guildKey,productKey,type,allocationType,numberOfCarcasses,weightOfCarcasses,sellType,amount,totalAmount,approvedPriceStatus,date); + +@override +String toString() { + return 'SubmitStewardAllocation(sellerType: $sellerType, buyerType: $buyerType, guildKey: $guildKey, productKey: $productKey, type: $type, allocationType: $allocationType, numberOfCarcasses: $numberOfCarcasses, weightOfCarcasses: $weightOfCarcasses, sellType: $sellType, amount: $amount, totalAmount: $totalAmount, approvedPriceStatus: $approvedPriceStatus, date: $date)'; +} + + +} + +/// @nodoc +abstract mixin class _$SubmitStewardAllocationCopyWith<$Res> implements $SubmitStewardAllocationCopyWith<$Res> { + factory _$SubmitStewardAllocationCopyWith(_SubmitStewardAllocation value, $Res Function(_SubmitStewardAllocation) _then) = __$SubmitStewardAllocationCopyWithImpl; +@override @useResult +$Res call({ + String? sellerType, String? buyerType, String? guildKey, String? productKey, String? type, String? allocationType, int? numberOfCarcasses, int? weightOfCarcasses, String? sellType, int? amount, int? totalAmount, bool? approvedPriceStatus, String? date +}); + + + + +} +/// @nodoc +class __$SubmitStewardAllocationCopyWithImpl<$Res> + implements _$SubmitStewardAllocationCopyWith<$Res> { + __$SubmitStewardAllocationCopyWithImpl(this._self, this._then); + + final _SubmitStewardAllocation _self; + final $Res Function(_SubmitStewardAllocation) _then; + +/// Create a copy of SubmitStewardAllocation +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? sellerType = freezed,Object? buyerType = freezed,Object? guildKey = freezed,Object? productKey = freezed,Object? type = freezed,Object? allocationType = freezed,Object? numberOfCarcasses = freezed,Object? weightOfCarcasses = freezed,Object? sellType = freezed,Object? amount = freezed,Object? totalAmount = freezed,Object? approvedPriceStatus = freezed,Object? date = freezed,}) { + return _then(_SubmitStewardAllocation( +sellerType: freezed == sellerType ? _self.sellerType : sellerType // ignore: cast_nullable_to_non_nullable +as String?,buyerType: freezed == buyerType ? _self.buyerType : buyerType // ignore: cast_nullable_to_non_nullable +as String?,guildKey: freezed == guildKey ? _self.guildKey : guildKey // ignore: cast_nullable_to_non_nullable +as String?,productKey: freezed == productKey ? _self.productKey : productKey // ignore: cast_nullable_to_non_nullable +as String?,type: freezed == type ? _self.type : type // ignore: cast_nullable_to_non_nullable +as String?,allocationType: freezed == allocationType ? _self.allocationType : allocationType // ignore: cast_nullable_to_non_nullable +as String?,numberOfCarcasses: freezed == numberOfCarcasses ? _self.numberOfCarcasses : numberOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?,weightOfCarcasses: freezed == weightOfCarcasses ? _self.weightOfCarcasses : weightOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?,sellType: freezed == sellType ? _self.sellType : sellType // ignore: cast_nullable_to_non_nullable +as String?,amount: freezed == amount ? _self.amount : amount // ignore: cast_nullable_to_non_nullable +as int?,totalAmount: freezed == totalAmount ? _self.totalAmount : totalAmount // ignore: cast_nullable_to_non_nullable +as int?,approvedPriceStatus: freezed == approvedPriceStatus ? _self.approvedPriceStatus : approvedPriceStatus // ignore: cast_nullable_to_non_nullable +as bool?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + +// dart format on diff --git a/packages/chicken/lib/data/models/request/submit_steward_allocation/submit_steward_allocation.g.dart b/packages/chicken/lib/data/models/request/submit_steward_allocation/submit_steward_allocation.g.dart new file mode 100644 index 0000000..8b4b2e4 --- /dev/null +++ b/packages/chicken/lib/data/models/request/submit_steward_allocation/submit_steward_allocation.g.dart @@ -0,0 +1,43 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'submit_steward_allocation.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +_SubmitStewardAllocation _$SubmitStewardAllocationFromJson( + Map json, +) => _SubmitStewardAllocation( + sellerType: json['seller_type'] as String?, + buyerType: json['buyer_type'] as String?, + guildKey: json['guild_key'] as String?, + productKey: json['product_key'] as String?, + type: json['type'] as String?, + allocationType: json['allocation_type'] as String?, + numberOfCarcasses: (json['number_of_carcasses'] as num?)?.toInt(), + weightOfCarcasses: (json['weight_of_carcasses'] as num?)?.toInt(), + sellType: json['sell_type'] as String?, + amount: (json['amount'] as num?)?.toInt(), + totalAmount: (json['total_amount'] as num?)?.toInt(), + approvedPriceStatus: json['approved_price_status'] as bool?, + date: json['date'] as String?, +); + +Map _$SubmitStewardAllocationToJson( + _SubmitStewardAllocation instance, +) => { + 'seller_type': instance.sellerType, + 'buyer_type': instance.buyerType, + 'guild_key': instance.guildKey, + 'product_key': instance.productKey, + 'type': instance.type, + 'allocation_type': instance.allocationType, + 'number_of_carcasses': instance.numberOfCarcasses, + 'weight_of_carcasses': instance.weightOfCarcasses, + 'sell_type': instance.sellType, + 'amount': instance.amount, + 'total_amount': instance.totalAmount, + 'approved_price_status': instance.approvedPriceStatus, + 'date': instance.date, +}; diff --git a/packages/chicken/lib/data/models/response/allocated_made/allocated_made.dart b/packages/chicken/lib/data/models/response/allocated_made/allocated_made.dart new file mode 100644 index 0000000..78f4f6c --- /dev/null +++ b/packages/chicken/lib/data/models/response/allocated_made/allocated_made.dart @@ -0,0 +1,227 @@ +import 'package:freezed_annotation/freezed_annotation.dart'; + +part 'allocated_made.freezed.dart'; +part 'allocated_made.g.dart'; + +@freezed +abstract class AllocatedMadeModel with _$AllocatedMadeModel { + factory AllocatedMadeModel({ + int? count, + String? next, + String? previous, + List? results, + }) = _AllocatedMadeModel; + + factory AllocatedMadeModel.fromJson(Map json) => + _$AllocatedMadeModelFromJson(json); +} + +@freezed +abstract class AllocatedMadeResult with _$AllocatedMadeResult { + factory AllocatedMadeResult({ + int? id, + Product? product, + dynamic kill_house, + dynamic to_kill_house, + Steward? steward, + dynamic to_steward, + dynamic guilds, + Steward? to_guilds, + dynamic to_cold_house, + int? index_weight, + int? date_timestamp, + int? new_state, + int? new_receiver_state, + int? new_allocation_state, + String? key, + String? create_date, + String? modify_date, + bool? trash, + int? number_of_carcasses, + int? real_number_of_carcasses, + int? receiver_real_number_of_carcasses, + int? weight_of_carcasses, + int? real_weight_of_carcasses, + int? receiver_real_weight_of_carcasses, + int? weight_loss_of_carcasses, + bool? final_registration, + String? sell_type, + String? product_name, + String? seller_type, + String? type, + String? sale_type, + String? allocation_type, + bool? system_registration_code, + int? registration_code, + int? amount, + int? total_amount, + int? total_amount_paid, + int? total_amount_remain, + String? logged_registration_code, + String? state, + String? receiver_state, + String? allocation_state, + String? date, + String? role, + String? steward_temp_key, + bool? approved_price_status, + bool? calculate_status, + bool? temporary_trash, + bool? temporary_deleted, + String? created_by, + String? modified_by, + dynamic ware_house, + dynamic steward_ware_house, + dynamic car, + dynamic dispenser, + }) = _AllocatedMadeResult; + + factory AllocatedMadeResult.fromJson(Map json) => + _$AllocatedMadeResultFromJson(json); +} + +@freezed +abstract class Product with _$Product { + factory Product({ + int? weight_average, + }) = _Product; + + factory Product.fromJson(Map json) => + _$ProductFromJson(json); +} + +@freezed +abstract class Steward with _$Steward { + factory Steward({ + int? id, + User? user, + Address? address, + Activity? guild_area_activity, + Activity? guild_type_activity, + List? kill_house, + List? steward_kill_house, + List? stewards, + PosStatus? get_pos_status, + String? key, + String? create_date, + String? modify_date, + bool? trash, + dynamic user_id_foreign_key, + dynamic address_id_foreign_key, + dynamic user_bank_id_foreign_key, + dynamic wallet_id_foreign_key, + dynamic provincial_government_id_key, + dynamic identity_documents, + bool? active, + int? city_number, + String? city_name, + String? guilds_id, + String? license_number, + String? guilds_name, + String? phone, + String? type_activity, + String? area_activity, + int? province_number, + String? province_name, + bool? steward, + bool? has_pos, + dynamic centers_allocation, + dynamic kill_house_centers_allocation, + dynamic allocation_limit, + bool? limitation_allocation, + String? registerar_role, + String? registerar_fullname, + String? registerar_mobile, + bool? kill_house_register, + bool? steward_register, + bool? guilds_room_register, + bool? pos_company_register, + String? province_accept_state, + String? province_message, + String? condition, + String? description_condition, + bool? steward_active, + dynamic steward_allocation_limit, + bool? steward_limitation_allocation, + bool? license, + dynamic license_form, + dynamic license_file, + String? reviewer_role, + String? reviewer_fullname, + String? reviewer_mobile, + String? checker_message, + bool? final_accept, + bool? temporary_registration, + String? created_by, + String? modified_by, + dynamic user_bank_info, + int? wallet, + List? cars, + List? user_level, + }) = _Steward; + + factory Steward.fromJson(Map json) => + _$StewardFromJson(json); +} + +@freezed +abstract class User with _$User { + factory User({ + String? fullname, + String? first_name, + String? last_name, + String? mobile, + String? national_id, + String? city, + }) = _User; + + factory User.fromJson(Map json) => + _$UserFromJson(json); +} + +@freezed +abstract class Address with _$Address { + factory Address({ + Province? province, + Province? city, + String? address, + String? postal_code, + }) = _Address; + + factory Address.fromJson(Map json) => + _$AddressFromJson(json); +} + +@freezed +abstract class Province with _$Province { + factory Province({ + String? key, + String? name, + }) = _Province; + + factory Province.fromJson(Map json) => + _$ProvinceFromJson(json); +} + +@freezed +abstract class Activity with _$Activity { + factory Activity({ + String? key, + String? title, + }) = _Activity; + + factory Activity.fromJson(Map json) => + _$ActivityFromJson(json); +} + +@freezed +abstract class PosStatus with _$PosStatus { + factory PosStatus({ + int? len_active_sessions, + bool? has_pons, + bool? has_active_pons, + }) = _PosStatus; + + factory PosStatus.fromJson(Map json) => + _$PosStatusFromJson(json); +} diff --git a/packages/chicken/lib/data/models/response/allocated_made/allocated_made.freezed.dart b/packages/chicken/lib/data/models/response/allocated_made/allocated_made.freezed.dart new file mode 100644 index 0000000..72b6981 --- /dev/null +++ b/packages/chicken/lib/data/models/response/allocated_made/allocated_made.freezed.dart @@ -0,0 +1,1899 @@ +// dart format width=80 +// coverage:ignore-file +// GENERATED CODE - DO NOT MODIFY BY HAND +// 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 'allocated_made.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; + +/// @nodoc +mixin _$AllocatedMadeModel { + + int? get count; String? get next; String? get previous; List? get results; +/// Create a copy of AllocatedMadeModel +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$AllocatedMadeModelCopyWith get copyWith => _$AllocatedMadeModelCopyWithImpl(this as AllocatedMadeModel, _$identity); + + /// Serializes this AllocatedMadeModel to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is AllocatedMadeModel&&(identical(other.count, count) || other.count == count)&&(identical(other.next, next) || other.next == next)&&(identical(other.previous, previous) || other.previous == previous)&&const DeepCollectionEquality().equals(other.results, results)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,count,next,previous,const DeepCollectionEquality().hash(results)); + +@override +String toString() { + return 'AllocatedMadeModel(count: $count, next: $next, previous: $previous, results: $results)'; +} + + +} + +/// @nodoc +abstract mixin class $AllocatedMadeModelCopyWith<$Res> { + factory $AllocatedMadeModelCopyWith(AllocatedMadeModel value, $Res Function(AllocatedMadeModel) _then) = _$AllocatedMadeModelCopyWithImpl; +@useResult +$Res call({ + int? count, String? next, String? previous, List? results +}); + + + + +} +/// @nodoc +class _$AllocatedMadeModelCopyWithImpl<$Res> + implements $AllocatedMadeModelCopyWith<$Res> { + _$AllocatedMadeModelCopyWithImpl(this._self, this._then); + + final AllocatedMadeModel _self; + final $Res Function(AllocatedMadeModel) _then; + +/// Create a copy of AllocatedMadeModel +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? count = freezed,Object? next = freezed,Object? previous = freezed,Object? results = freezed,}) { + return _then(_self.copyWith( +count: freezed == count ? _self.count : count // ignore: cast_nullable_to_non_nullable +as int?,next: freezed == next ? _self.next : next // ignore: cast_nullable_to_non_nullable +as String?,previous: freezed == previous ? _self.previous : previous // ignore: cast_nullable_to_non_nullable +as String?,results: freezed == results ? _self.results : results // ignore: cast_nullable_to_non_nullable +as List?, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _AllocatedMadeModel implements AllocatedMadeModel { + _AllocatedMadeModel({this.count, this.next, this.previous, final List? results}): _results = results; + factory _AllocatedMadeModel.fromJson(Map json) => _$AllocatedMadeModelFromJson(json); + +@override final int? count; +@override final String? next; +@override final String? previous; + final List? _results; +@override List? get results { + final value = _results; + if (value == null) return null; + if (_results is EqualUnmodifiableListView) return _results; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + + +/// Create a copy of AllocatedMadeModel +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$AllocatedMadeModelCopyWith<_AllocatedMadeModel> get copyWith => __$AllocatedMadeModelCopyWithImpl<_AllocatedMadeModel>(this, _$identity); + +@override +Map toJson() { + return _$AllocatedMadeModelToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _AllocatedMadeModel&&(identical(other.count, count) || other.count == count)&&(identical(other.next, next) || other.next == next)&&(identical(other.previous, previous) || other.previous == previous)&&const DeepCollectionEquality().equals(other._results, _results)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,count,next,previous,const DeepCollectionEquality().hash(_results)); + +@override +String toString() { + return 'AllocatedMadeModel(count: $count, next: $next, previous: $previous, results: $results)'; +} + + +} + +/// @nodoc +abstract mixin class _$AllocatedMadeModelCopyWith<$Res> implements $AllocatedMadeModelCopyWith<$Res> { + factory _$AllocatedMadeModelCopyWith(_AllocatedMadeModel value, $Res Function(_AllocatedMadeModel) _then) = __$AllocatedMadeModelCopyWithImpl; +@override @useResult +$Res call({ + int? count, String? next, String? previous, List? results +}); + + + + +} +/// @nodoc +class __$AllocatedMadeModelCopyWithImpl<$Res> + implements _$AllocatedMadeModelCopyWith<$Res> { + __$AllocatedMadeModelCopyWithImpl(this._self, this._then); + + final _AllocatedMadeModel _self; + final $Res Function(_AllocatedMadeModel) _then; + +/// Create a copy of AllocatedMadeModel +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? count = freezed,Object? next = freezed,Object? previous = freezed,Object? results = freezed,}) { + return _then(_AllocatedMadeModel( +count: freezed == count ? _self.count : count // ignore: cast_nullable_to_non_nullable +as int?,next: freezed == next ? _self.next : next // ignore: cast_nullable_to_non_nullable +as String?,previous: freezed == previous ? _self.previous : previous // ignore: cast_nullable_to_non_nullable +as String?,results: freezed == results ? _self._results : results // ignore: cast_nullable_to_non_nullable +as List?, + )); +} + + +} + + +/// @nodoc +mixin _$AllocatedMadeResult { + + int? get id; Product? get product; dynamic get kill_house; dynamic get to_kill_house; Steward? get steward; dynamic get to_steward; dynamic get guilds; Steward? get to_guilds; dynamic get to_cold_house; int? get index_weight; int? get date_timestamp; int? get new_state; int? get new_receiver_state; int? get new_allocation_state; String? get key; String? get create_date; String? get modify_date; bool? get trash; int? get number_of_carcasses; int? get real_number_of_carcasses; int? get receiver_real_number_of_carcasses; int? get weight_of_carcasses; int? get real_weight_of_carcasses; int? get receiver_real_weight_of_carcasses; int? get weight_loss_of_carcasses; bool? get final_registration; String? get sell_type; String? get product_name; String? get seller_type; String? get type; String? get sale_type; String? get allocation_type; bool? get system_registration_code; int? get registration_code; int? get amount; int? get total_amount; int? get total_amount_paid; int? get total_amount_remain; String? get logged_registration_code; String? get state; String? get receiver_state; String? get allocation_state; String? get date; String? get role; String? get steward_temp_key; bool? get approved_price_status; bool? get calculate_status; bool? get temporary_trash; bool? get temporary_deleted; String? get created_by; String? get modified_by; dynamic get ware_house; dynamic get steward_ware_house; dynamic get car; dynamic get dispenser; +/// Create a copy of AllocatedMadeResult +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$AllocatedMadeResultCopyWith get copyWith => _$AllocatedMadeResultCopyWithImpl(this as AllocatedMadeResult, _$identity); + + /// Serializes this AllocatedMadeResult to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is AllocatedMadeResult&&(identical(other.id, id) || other.id == id)&&(identical(other.product, product) || other.product == product)&&const DeepCollectionEquality().equals(other.kill_house, kill_house)&&const DeepCollectionEquality().equals(other.to_kill_house, to_kill_house)&&(identical(other.steward, steward) || other.steward == steward)&&const DeepCollectionEquality().equals(other.to_steward, to_steward)&&const DeepCollectionEquality().equals(other.guilds, guilds)&&(identical(other.to_guilds, to_guilds) || other.to_guilds == to_guilds)&&const DeepCollectionEquality().equals(other.to_cold_house, to_cold_house)&&(identical(other.index_weight, index_weight) || other.index_weight == index_weight)&&(identical(other.date_timestamp, date_timestamp) || other.date_timestamp == date_timestamp)&&(identical(other.new_state, new_state) || other.new_state == new_state)&&(identical(other.new_receiver_state, new_receiver_state) || other.new_receiver_state == new_receiver_state)&&(identical(other.new_allocation_state, new_allocation_state) || other.new_allocation_state == new_allocation_state)&&(identical(other.key, key) || other.key == key)&&(identical(other.create_date, create_date) || other.create_date == create_date)&&(identical(other.modify_date, modify_date) || other.modify_date == modify_date)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.number_of_carcasses, number_of_carcasses) || other.number_of_carcasses == number_of_carcasses)&&(identical(other.real_number_of_carcasses, real_number_of_carcasses) || other.real_number_of_carcasses == real_number_of_carcasses)&&(identical(other.receiver_real_number_of_carcasses, receiver_real_number_of_carcasses) || other.receiver_real_number_of_carcasses == receiver_real_number_of_carcasses)&&(identical(other.weight_of_carcasses, weight_of_carcasses) || other.weight_of_carcasses == weight_of_carcasses)&&(identical(other.real_weight_of_carcasses, real_weight_of_carcasses) || other.real_weight_of_carcasses == real_weight_of_carcasses)&&(identical(other.receiver_real_weight_of_carcasses, receiver_real_weight_of_carcasses) || other.receiver_real_weight_of_carcasses == receiver_real_weight_of_carcasses)&&(identical(other.weight_loss_of_carcasses, weight_loss_of_carcasses) || other.weight_loss_of_carcasses == weight_loss_of_carcasses)&&(identical(other.final_registration, final_registration) || other.final_registration == final_registration)&&(identical(other.sell_type, sell_type) || other.sell_type == sell_type)&&(identical(other.product_name, product_name) || other.product_name == product_name)&&(identical(other.seller_type, seller_type) || other.seller_type == seller_type)&&(identical(other.type, type) || other.type == type)&&(identical(other.sale_type, sale_type) || other.sale_type == sale_type)&&(identical(other.allocation_type, allocation_type) || other.allocation_type == allocation_type)&&(identical(other.system_registration_code, system_registration_code) || other.system_registration_code == system_registration_code)&&(identical(other.registration_code, registration_code) || other.registration_code == registration_code)&&(identical(other.amount, amount) || other.amount == amount)&&(identical(other.total_amount, total_amount) || other.total_amount == total_amount)&&(identical(other.total_amount_paid, total_amount_paid) || other.total_amount_paid == total_amount_paid)&&(identical(other.total_amount_remain, total_amount_remain) || other.total_amount_remain == total_amount_remain)&&(identical(other.logged_registration_code, logged_registration_code) || other.logged_registration_code == logged_registration_code)&&(identical(other.state, state) || other.state == state)&&(identical(other.receiver_state, receiver_state) || other.receiver_state == receiver_state)&&(identical(other.allocation_state, allocation_state) || other.allocation_state == allocation_state)&&(identical(other.date, date) || other.date == date)&&(identical(other.role, role) || other.role == role)&&(identical(other.steward_temp_key, steward_temp_key) || other.steward_temp_key == steward_temp_key)&&(identical(other.approved_price_status, approved_price_status) || other.approved_price_status == approved_price_status)&&(identical(other.calculate_status, calculate_status) || other.calculate_status == calculate_status)&&(identical(other.temporary_trash, temporary_trash) || other.temporary_trash == temporary_trash)&&(identical(other.temporary_deleted, temporary_deleted) || other.temporary_deleted == temporary_deleted)&&(identical(other.created_by, created_by) || other.created_by == created_by)&&(identical(other.modified_by, modified_by) || other.modified_by == modified_by)&&const DeepCollectionEquality().equals(other.ware_house, ware_house)&&const DeepCollectionEquality().equals(other.steward_ware_house, steward_ware_house)&&const DeepCollectionEquality().equals(other.car, car)&&const DeepCollectionEquality().equals(other.dispenser, dispenser)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,id,product,const DeepCollectionEquality().hash(kill_house),const DeepCollectionEquality().hash(to_kill_house),steward,const DeepCollectionEquality().hash(to_steward),const DeepCollectionEquality().hash(guilds),to_guilds,const DeepCollectionEquality().hash(to_cold_house),index_weight,date_timestamp,new_state,new_receiver_state,new_allocation_state,key,create_date,modify_date,trash,number_of_carcasses,real_number_of_carcasses,receiver_real_number_of_carcasses,weight_of_carcasses,real_weight_of_carcasses,receiver_real_weight_of_carcasses,weight_loss_of_carcasses,final_registration,sell_type,product_name,seller_type,type,sale_type,allocation_type,system_registration_code,registration_code,amount,total_amount,total_amount_paid,total_amount_remain,logged_registration_code,state,receiver_state,allocation_state,date,role,steward_temp_key,approved_price_status,calculate_status,temporary_trash,temporary_deleted,created_by,modified_by,const DeepCollectionEquality().hash(ware_house),const DeepCollectionEquality().hash(steward_ware_house),const DeepCollectionEquality().hash(car),const DeepCollectionEquality().hash(dispenser)]); + +@override +String toString() { + return 'AllocatedMadeResult(id: $id, product: $product, kill_house: $kill_house, to_kill_house: $to_kill_house, steward: $steward, to_steward: $to_steward, guilds: $guilds, to_guilds: $to_guilds, to_cold_house: $to_cold_house, index_weight: $index_weight, date_timestamp: $date_timestamp, new_state: $new_state, new_receiver_state: $new_receiver_state, new_allocation_state: $new_allocation_state, key: $key, create_date: $create_date, modify_date: $modify_date, trash: $trash, number_of_carcasses: $number_of_carcasses, real_number_of_carcasses: $real_number_of_carcasses, receiver_real_number_of_carcasses: $receiver_real_number_of_carcasses, weight_of_carcasses: $weight_of_carcasses, real_weight_of_carcasses: $real_weight_of_carcasses, receiver_real_weight_of_carcasses: $receiver_real_weight_of_carcasses, weight_loss_of_carcasses: $weight_loss_of_carcasses, final_registration: $final_registration, sell_type: $sell_type, product_name: $product_name, seller_type: $seller_type, type: $type, sale_type: $sale_type, allocation_type: $allocation_type, system_registration_code: $system_registration_code, registration_code: $registration_code, amount: $amount, total_amount: $total_amount, total_amount_paid: $total_amount_paid, total_amount_remain: $total_amount_remain, logged_registration_code: $logged_registration_code, state: $state, receiver_state: $receiver_state, allocation_state: $allocation_state, date: $date, role: $role, steward_temp_key: $steward_temp_key, approved_price_status: $approved_price_status, calculate_status: $calculate_status, temporary_trash: $temporary_trash, temporary_deleted: $temporary_deleted, created_by: $created_by, modified_by: $modified_by, ware_house: $ware_house, steward_ware_house: $steward_ware_house, car: $car, dispenser: $dispenser)'; +} + + +} + +/// @nodoc +abstract mixin class $AllocatedMadeResultCopyWith<$Res> { + factory $AllocatedMadeResultCopyWith(AllocatedMadeResult value, $Res Function(AllocatedMadeResult) _then) = _$AllocatedMadeResultCopyWithImpl; +@useResult +$Res call({ + int? id, Product? product, dynamic kill_house, dynamic to_kill_house, Steward? steward, dynamic to_steward, dynamic guilds, Steward? to_guilds, dynamic to_cold_house, int? index_weight, int? date_timestamp, int? new_state, int? new_receiver_state, int? new_allocation_state, String? key, String? create_date, String? modify_date, bool? trash, int? number_of_carcasses, int? real_number_of_carcasses, int? receiver_real_number_of_carcasses, int? weight_of_carcasses, int? real_weight_of_carcasses, int? receiver_real_weight_of_carcasses, int? weight_loss_of_carcasses, bool? final_registration, String? sell_type, String? product_name, String? seller_type, String? type, String? sale_type, String? allocation_type, bool? system_registration_code, int? registration_code, int? amount, int? total_amount, int? total_amount_paid, int? total_amount_remain, String? logged_registration_code, String? state, String? receiver_state, String? allocation_state, String? date, String? role, String? steward_temp_key, bool? approved_price_status, bool? calculate_status, bool? temporary_trash, bool? temporary_deleted, String? created_by, String? modified_by, dynamic ware_house, dynamic steward_ware_house, dynamic car, dynamic dispenser +}); + + +$ProductCopyWith<$Res>? get product;$StewardCopyWith<$Res>? get steward;$StewardCopyWith<$Res>? get to_guilds; + +} +/// @nodoc +class _$AllocatedMadeResultCopyWithImpl<$Res> + implements $AllocatedMadeResultCopyWith<$Res> { + _$AllocatedMadeResultCopyWithImpl(this._self, this._then); + + final AllocatedMadeResult _self; + final $Res Function(AllocatedMadeResult) _then; + +/// Create a copy of AllocatedMadeResult +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? product = freezed,Object? kill_house = freezed,Object? to_kill_house = freezed,Object? steward = freezed,Object? to_steward = freezed,Object? guilds = freezed,Object? to_guilds = freezed,Object? to_cold_house = freezed,Object? index_weight = freezed,Object? date_timestamp = freezed,Object? new_state = freezed,Object? new_receiver_state = freezed,Object? new_allocation_state = freezed,Object? key = freezed,Object? create_date = freezed,Object? modify_date = freezed,Object? trash = freezed,Object? number_of_carcasses = freezed,Object? real_number_of_carcasses = freezed,Object? receiver_real_number_of_carcasses = freezed,Object? weight_of_carcasses = freezed,Object? real_weight_of_carcasses = freezed,Object? receiver_real_weight_of_carcasses = freezed,Object? weight_loss_of_carcasses = freezed,Object? final_registration = freezed,Object? sell_type = freezed,Object? product_name = freezed,Object? seller_type = freezed,Object? type = freezed,Object? sale_type = freezed,Object? allocation_type = freezed,Object? system_registration_code = freezed,Object? registration_code = freezed,Object? amount = freezed,Object? total_amount = freezed,Object? total_amount_paid = freezed,Object? total_amount_remain = freezed,Object? logged_registration_code = freezed,Object? state = freezed,Object? receiver_state = freezed,Object? allocation_state = freezed,Object? date = freezed,Object? role = freezed,Object? steward_temp_key = freezed,Object? approved_price_status = freezed,Object? calculate_status = freezed,Object? temporary_trash = freezed,Object? temporary_deleted = freezed,Object? created_by = freezed,Object? modified_by = freezed,Object? ware_house = freezed,Object? steward_ware_house = freezed,Object? car = freezed,Object? dispenser = freezed,}) { + return _then(_self.copyWith( +id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable +as int?,product: freezed == product ? _self.product : product // ignore: cast_nullable_to_non_nullable +as Product?,kill_house: freezed == kill_house ? _self.kill_house : kill_house // ignore: cast_nullable_to_non_nullable +as dynamic,to_kill_house: freezed == to_kill_house ? _self.to_kill_house : to_kill_house // ignore: cast_nullable_to_non_nullable +as dynamic,steward: freezed == steward ? _self.steward : steward // ignore: cast_nullable_to_non_nullable +as Steward?,to_steward: freezed == to_steward ? _self.to_steward : to_steward // ignore: cast_nullable_to_non_nullable +as dynamic,guilds: freezed == guilds ? _self.guilds : guilds // ignore: cast_nullable_to_non_nullable +as dynamic,to_guilds: freezed == to_guilds ? _self.to_guilds : to_guilds // ignore: cast_nullable_to_non_nullable +as Steward?,to_cold_house: freezed == to_cold_house ? _self.to_cold_house : to_cold_house // ignore: cast_nullable_to_non_nullable +as dynamic,index_weight: freezed == index_weight ? _self.index_weight : index_weight // ignore: cast_nullable_to_non_nullable +as int?,date_timestamp: freezed == date_timestamp ? _self.date_timestamp : date_timestamp // ignore: cast_nullable_to_non_nullable +as int?,new_state: freezed == new_state ? _self.new_state : new_state // ignore: cast_nullable_to_non_nullable +as int?,new_receiver_state: freezed == new_receiver_state ? _self.new_receiver_state : new_receiver_state // ignore: cast_nullable_to_non_nullable +as int?,new_allocation_state: freezed == new_allocation_state ? _self.new_allocation_state : new_allocation_state // ignore: cast_nullable_to_non_nullable +as int?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,create_date: freezed == create_date ? _self.create_date : create_date // ignore: cast_nullable_to_non_nullable +as String?,modify_date: freezed == modify_date ? _self.modify_date : modify_date // ignore: cast_nullable_to_non_nullable +as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable +as bool?,number_of_carcasses: freezed == number_of_carcasses ? _self.number_of_carcasses : number_of_carcasses // ignore: cast_nullable_to_non_nullable +as int?,real_number_of_carcasses: freezed == real_number_of_carcasses ? _self.real_number_of_carcasses : real_number_of_carcasses // ignore: cast_nullable_to_non_nullable +as int?,receiver_real_number_of_carcasses: freezed == receiver_real_number_of_carcasses ? _self.receiver_real_number_of_carcasses : receiver_real_number_of_carcasses // ignore: cast_nullable_to_non_nullable +as int?,weight_of_carcasses: freezed == weight_of_carcasses ? _self.weight_of_carcasses : weight_of_carcasses // ignore: cast_nullable_to_non_nullable +as int?,real_weight_of_carcasses: freezed == real_weight_of_carcasses ? _self.real_weight_of_carcasses : real_weight_of_carcasses // ignore: cast_nullable_to_non_nullable +as int?,receiver_real_weight_of_carcasses: freezed == receiver_real_weight_of_carcasses ? _self.receiver_real_weight_of_carcasses : receiver_real_weight_of_carcasses // ignore: cast_nullable_to_non_nullable +as int?,weight_loss_of_carcasses: freezed == weight_loss_of_carcasses ? _self.weight_loss_of_carcasses : weight_loss_of_carcasses // ignore: cast_nullable_to_non_nullable +as int?,final_registration: freezed == final_registration ? _self.final_registration : final_registration // ignore: cast_nullable_to_non_nullable +as bool?,sell_type: freezed == sell_type ? _self.sell_type : sell_type // ignore: cast_nullable_to_non_nullable +as String?,product_name: freezed == product_name ? _self.product_name : product_name // ignore: cast_nullable_to_non_nullable +as String?,seller_type: freezed == seller_type ? _self.seller_type : seller_type // ignore: cast_nullable_to_non_nullable +as String?,type: freezed == type ? _self.type : type // ignore: cast_nullable_to_non_nullable +as String?,sale_type: freezed == sale_type ? _self.sale_type : sale_type // ignore: cast_nullable_to_non_nullable +as String?,allocation_type: freezed == allocation_type ? _self.allocation_type : allocation_type // ignore: cast_nullable_to_non_nullable +as String?,system_registration_code: freezed == system_registration_code ? _self.system_registration_code : system_registration_code // ignore: cast_nullable_to_non_nullable +as bool?,registration_code: freezed == registration_code ? _self.registration_code : registration_code // ignore: cast_nullable_to_non_nullable +as int?,amount: freezed == amount ? _self.amount : amount // ignore: cast_nullable_to_non_nullable +as int?,total_amount: freezed == total_amount ? _self.total_amount : total_amount // ignore: cast_nullable_to_non_nullable +as int?,total_amount_paid: freezed == total_amount_paid ? _self.total_amount_paid : total_amount_paid // ignore: cast_nullable_to_non_nullable +as int?,total_amount_remain: freezed == total_amount_remain ? _self.total_amount_remain : total_amount_remain // ignore: cast_nullable_to_non_nullable +as int?,logged_registration_code: freezed == logged_registration_code ? _self.logged_registration_code : logged_registration_code // ignore: cast_nullable_to_non_nullable +as String?,state: freezed == state ? _self.state : state // ignore: cast_nullable_to_non_nullable +as String?,receiver_state: freezed == receiver_state ? _self.receiver_state : receiver_state // ignore: cast_nullable_to_non_nullable +as String?,allocation_state: freezed == allocation_state ? _self.allocation_state : allocation_state // ignore: cast_nullable_to_non_nullable +as String?,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?,steward_temp_key: freezed == steward_temp_key ? _self.steward_temp_key : steward_temp_key // ignore: cast_nullable_to_non_nullable +as String?,approved_price_status: freezed == approved_price_status ? _self.approved_price_status : approved_price_status // ignore: cast_nullable_to_non_nullable +as bool?,calculate_status: freezed == calculate_status ? _self.calculate_status : calculate_status // ignore: cast_nullable_to_non_nullable +as bool?,temporary_trash: freezed == temporary_trash ? _self.temporary_trash : temporary_trash // ignore: cast_nullable_to_non_nullable +as bool?,temporary_deleted: freezed == temporary_deleted ? _self.temporary_deleted : temporary_deleted // ignore: cast_nullable_to_non_nullable +as bool?,created_by: freezed == created_by ? _self.created_by : created_by // ignore: cast_nullable_to_non_nullable +as String?,modified_by: freezed == modified_by ? _self.modified_by : modified_by // ignore: cast_nullable_to_non_nullable +as String?,ware_house: freezed == ware_house ? _self.ware_house : ware_house // ignore: cast_nullable_to_non_nullable +as dynamic,steward_ware_house: freezed == steward_ware_house ? _self.steward_ware_house : steward_ware_house // ignore: cast_nullable_to_non_nullable +as dynamic,car: freezed == car ? _self.car : car // ignore: cast_nullable_to_non_nullable +as dynamic,dispenser: freezed == dispenser ? _self.dispenser : dispenser // ignore: cast_nullable_to_non_nullable +as dynamic, + )); +} +/// Create a copy of AllocatedMadeResult +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ProductCopyWith<$Res>? get product { + if (_self.product == null) { + return null; + } + + return $ProductCopyWith<$Res>(_self.product!, (value) { + return _then(_self.copyWith(product: value)); + }); +}/// Create a copy of AllocatedMadeResult +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$StewardCopyWith<$Res>? get steward { + if (_self.steward == null) { + return null; + } + + return $StewardCopyWith<$Res>(_self.steward!, (value) { + return _then(_self.copyWith(steward: value)); + }); +}/// Create a copy of AllocatedMadeResult +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$StewardCopyWith<$Res>? get to_guilds { + if (_self.to_guilds == null) { + return null; + } + + return $StewardCopyWith<$Res>(_self.to_guilds!, (value) { + return _then(_self.copyWith(to_guilds: value)); + }); +} +} + + +/// @nodoc +@JsonSerializable() + +class _AllocatedMadeResult implements AllocatedMadeResult { + _AllocatedMadeResult({this.id, this.product, this.kill_house, this.to_kill_house, this.steward, this.to_steward, this.guilds, this.to_guilds, this.to_cold_house, this.index_weight, this.date_timestamp, this.new_state, this.new_receiver_state, this.new_allocation_state, this.key, this.create_date, this.modify_date, this.trash, this.number_of_carcasses, this.real_number_of_carcasses, this.receiver_real_number_of_carcasses, this.weight_of_carcasses, this.real_weight_of_carcasses, this.receiver_real_weight_of_carcasses, this.weight_loss_of_carcasses, this.final_registration, this.sell_type, this.product_name, this.seller_type, this.type, this.sale_type, this.allocation_type, this.system_registration_code, this.registration_code, this.amount, this.total_amount, this.total_amount_paid, this.total_amount_remain, this.logged_registration_code, this.state, this.receiver_state, this.allocation_state, this.date, this.role, this.steward_temp_key, this.approved_price_status, this.calculate_status, this.temporary_trash, this.temporary_deleted, this.created_by, this.modified_by, this.ware_house, this.steward_ware_house, this.car, this.dispenser}); + factory _AllocatedMadeResult.fromJson(Map json) => _$AllocatedMadeResultFromJson(json); + +@override final int? id; +@override final Product? product; +@override final dynamic kill_house; +@override final dynamic to_kill_house; +@override final Steward? steward; +@override final dynamic to_steward; +@override final dynamic guilds; +@override final Steward? to_guilds; +@override final dynamic to_cold_house; +@override final int? index_weight; +@override final int? date_timestamp; +@override final int? new_state; +@override final int? new_receiver_state; +@override final int? new_allocation_state; +@override final String? key; +@override final String? create_date; +@override final String? modify_date; +@override final bool? trash; +@override final int? number_of_carcasses; +@override final int? real_number_of_carcasses; +@override final int? receiver_real_number_of_carcasses; +@override final int? weight_of_carcasses; +@override final int? real_weight_of_carcasses; +@override final int? receiver_real_weight_of_carcasses; +@override final int? weight_loss_of_carcasses; +@override final bool? final_registration; +@override final String? sell_type; +@override final String? product_name; +@override final String? seller_type; +@override final String? type; +@override final String? sale_type; +@override final String? allocation_type; +@override final bool? system_registration_code; +@override final int? registration_code; +@override final int? amount; +@override final int? total_amount; +@override final int? total_amount_paid; +@override final int? total_amount_remain; +@override final String? logged_registration_code; +@override final String? state; +@override final String? receiver_state; +@override final String? allocation_state; +@override final String? date; +@override final String? role; +@override final String? steward_temp_key; +@override final bool? approved_price_status; +@override final bool? calculate_status; +@override final bool? temporary_trash; +@override final bool? temporary_deleted; +@override final String? created_by; +@override final String? modified_by; +@override final dynamic ware_house; +@override final dynamic steward_ware_house; +@override final dynamic car; +@override final dynamic dispenser; + +/// Create a copy of AllocatedMadeResult +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$AllocatedMadeResultCopyWith<_AllocatedMadeResult> get copyWith => __$AllocatedMadeResultCopyWithImpl<_AllocatedMadeResult>(this, _$identity); + +@override +Map toJson() { + return _$AllocatedMadeResultToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _AllocatedMadeResult&&(identical(other.id, id) || other.id == id)&&(identical(other.product, product) || other.product == product)&&const DeepCollectionEquality().equals(other.kill_house, kill_house)&&const DeepCollectionEquality().equals(other.to_kill_house, to_kill_house)&&(identical(other.steward, steward) || other.steward == steward)&&const DeepCollectionEquality().equals(other.to_steward, to_steward)&&const DeepCollectionEquality().equals(other.guilds, guilds)&&(identical(other.to_guilds, to_guilds) || other.to_guilds == to_guilds)&&const DeepCollectionEquality().equals(other.to_cold_house, to_cold_house)&&(identical(other.index_weight, index_weight) || other.index_weight == index_weight)&&(identical(other.date_timestamp, date_timestamp) || other.date_timestamp == date_timestamp)&&(identical(other.new_state, new_state) || other.new_state == new_state)&&(identical(other.new_receiver_state, new_receiver_state) || other.new_receiver_state == new_receiver_state)&&(identical(other.new_allocation_state, new_allocation_state) || other.new_allocation_state == new_allocation_state)&&(identical(other.key, key) || other.key == key)&&(identical(other.create_date, create_date) || other.create_date == create_date)&&(identical(other.modify_date, modify_date) || other.modify_date == modify_date)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.number_of_carcasses, number_of_carcasses) || other.number_of_carcasses == number_of_carcasses)&&(identical(other.real_number_of_carcasses, real_number_of_carcasses) || other.real_number_of_carcasses == real_number_of_carcasses)&&(identical(other.receiver_real_number_of_carcasses, receiver_real_number_of_carcasses) || other.receiver_real_number_of_carcasses == receiver_real_number_of_carcasses)&&(identical(other.weight_of_carcasses, weight_of_carcasses) || other.weight_of_carcasses == weight_of_carcasses)&&(identical(other.real_weight_of_carcasses, real_weight_of_carcasses) || other.real_weight_of_carcasses == real_weight_of_carcasses)&&(identical(other.receiver_real_weight_of_carcasses, receiver_real_weight_of_carcasses) || other.receiver_real_weight_of_carcasses == receiver_real_weight_of_carcasses)&&(identical(other.weight_loss_of_carcasses, weight_loss_of_carcasses) || other.weight_loss_of_carcasses == weight_loss_of_carcasses)&&(identical(other.final_registration, final_registration) || other.final_registration == final_registration)&&(identical(other.sell_type, sell_type) || other.sell_type == sell_type)&&(identical(other.product_name, product_name) || other.product_name == product_name)&&(identical(other.seller_type, seller_type) || other.seller_type == seller_type)&&(identical(other.type, type) || other.type == type)&&(identical(other.sale_type, sale_type) || other.sale_type == sale_type)&&(identical(other.allocation_type, allocation_type) || other.allocation_type == allocation_type)&&(identical(other.system_registration_code, system_registration_code) || other.system_registration_code == system_registration_code)&&(identical(other.registration_code, registration_code) || other.registration_code == registration_code)&&(identical(other.amount, amount) || other.amount == amount)&&(identical(other.total_amount, total_amount) || other.total_amount == total_amount)&&(identical(other.total_amount_paid, total_amount_paid) || other.total_amount_paid == total_amount_paid)&&(identical(other.total_amount_remain, total_amount_remain) || other.total_amount_remain == total_amount_remain)&&(identical(other.logged_registration_code, logged_registration_code) || other.logged_registration_code == logged_registration_code)&&(identical(other.state, state) || other.state == state)&&(identical(other.receiver_state, receiver_state) || other.receiver_state == receiver_state)&&(identical(other.allocation_state, allocation_state) || other.allocation_state == allocation_state)&&(identical(other.date, date) || other.date == date)&&(identical(other.role, role) || other.role == role)&&(identical(other.steward_temp_key, steward_temp_key) || other.steward_temp_key == steward_temp_key)&&(identical(other.approved_price_status, approved_price_status) || other.approved_price_status == approved_price_status)&&(identical(other.calculate_status, calculate_status) || other.calculate_status == calculate_status)&&(identical(other.temporary_trash, temporary_trash) || other.temporary_trash == temporary_trash)&&(identical(other.temporary_deleted, temporary_deleted) || other.temporary_deleted == temporary_deleted)&&(identical(other.created_by, created_by) || other.created_by == created_by)&&(identical(other.modified_by, modified_by) || other.modified_by == modified_by)&&const DeepCollectionEquality().equals(other.ware_house, ware_house)&&const DeepCollectionEquality().equals(other.steward_ware_house, steward_ware_house)&&const DeepCollectionEquality().equals(other.car, car)&&const DeepCollectionEquality().equals(other.dispenser, dispenser)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,id,product,const DeepCollectionEquality().hash(kill_house),const DeepCollectionEquality().hash(to_kill_house),steward,const DeepCollectionEquality().hash(to_steward),const DeepCollectionEquality().hash(guilds),to_guilds,const DeepCollectionEquality().hash(to_cold_house),index_weight,date_timestamp,new_state,new_receiver_state,new_allocation_state,key,create_date,modify_date,trash,number_of_carcasses,real_number_of_carcasses,receiver_real_number_of_carcasses,weight_of_carcasses,real_weight_of_carcasses,receiver_real_weight_of_carcasses,weight_loss_of_carcasses,final_registration,sell_type,product_name,seller_type,type,sale_type,allocation_type,system_registration_code,registration_code,amount,total_amount,total_amount_paid,total_amount_remain,logged_registration_code,state,receiver_state,allocation_state,date,role,steward_temp_key,approved_price_status,calculate_status,temporary_trash,temporary_deleted,created_by,modified_by,const DeepCollectionEquality().hash(ware_house),const DeepCollectionEquality().hash(steward_ware_house),const DeepCollectionEquality().hash(car),const DeepCollectionEquality().hash(dispenser)]); + +@override +String toString() { + return 'AllocatedMadeResult(id: $id, product: $product, kill_house: $kill_house, to_kill_house: $to_kill_house, steward: $steward, to_steward: $to_steward, guilds: $guilds, to_guilds: $to_guilds, to_cold_house: $to_cold_house, index_weight: $index_weight, date_timestamp: $date_timestamp, new_state: $new_state, new_receiver_state: $new_receiver_state, new_allocation_state: $new_allocation_state, key: $key, create_date: $create_date, modify_date: $modify_date, trash: $trash, number_of_carcasses: $number_of_carcasses, real_number_of_carcasses: $real_number_of_carcasses, receiver_real_number_of_carcasses: $receiver_real_number_of_carcasses, weight_of_carcasses: $weight_of_carcasses, real_weight_of_carcasses: $real_weight_of_carcasses, receiver_real_weight_of_carcasses: $receiver_real_weight_of_carcasses, weight_loss_of_carcasses: $weight_loss_of_carcasses, final_registration: $final_registration, sell_type: $sell_type, product_name: $product_name, seller_type: $seller_type, type: $type, sale_type: $sale_type, allocation_type: $allocation_type, system_registration_code: $system_registration_code, registration_code: $registration_code, amount: $amount, total_amount: $total_amount, total_amount_paid: $total_amount_paid, total_amount_remain: $total_amount_remain, logged_registration_code: $logged_registration_code, state: $state, receiver_state: $receiver_state, allocation_state: $allocation_state, date: $date, role: $role, steward_temp_key: $steward_temp_key, approved_price_status: $approved_price_status, calculate_status: $calculate_status, temporary_trash: $temporary_trash, temporary_deleted: $temporary_deleted, created_by: $created_by, modified_by: $modified_by, ware_house: $ware_house, steward_ware_house: $steward_ware_house, car: $car, dispenser: $dispenser)'; +} + + +} + +/// @nodoc +abstract mixin class _$AllocatedMadeResultCopyWith<$Res> implements $AllocatedMadeResultCopyWith<$Res> { + factory _$AllocatedMadeResultCopyWith(_AllocatedMadeResult value, $Res Function(_AllocatedMadeResult) _then) = __$AllocatedMadeResultCopyWithImpl; +@override @useResult +$Res call({ + int? id, Product? product, dynamic kill_house, dynamic to_kill_house, Steward? steward, dynamic to_steward, dynamic guilds, Steward? to_guilds, dynamic to_cold_house, int? index_weight, int? date_timestamp, int? new_state, int? new_receiver_state, int? new_allocation_state, String? key, String? create_date, String? modify_date, bool? trash, int? number_of_carcasses, int? real_number_of_carcasses, int? receiver_real_number_of_carcasses, int? weight_of_carcasses, int? real_weight_of_carcasses, int? receiver_real_weight_of_carcasses, int? weight_loss_of_carcasses, bool? final_registration, String? sell_type, String? product_name, String? seller_type, String? type, String? sale_type, String? allocation_type, bool? system_registration_code, int? registration_code, int? amount, int? total_amount, int? total_amount_paid, int? total_amount_remain, String? logged_registration_code, String? state, String? receiver_state, String? allocation_state, String? date, String? role, String? steward_temp_key, bool? approved_price_status, bool? calculate_status, bool? temporary_trash, bool? temporary_deleted, String? created_by, String? modified_by, dynamic ware_house, dynamic steward_ware_house, dynamic car, dynamic dispenser +}); + + +@override $ProductCopyWith<$Res>? get product;@override $StewardCopyWith<$Res>? get steward;@override $StewardCopyWith<$Res>? get to_guilds; + +} +/// @nodoc +class __$AllocatedMadeResultCopyWithImpl<$Res> + implements _$AllocatedMadeResultCopyWith<$Res> { + __$AllocatedMadeResultCopyWithImpl(this._self, this._then); + + final _AllocatedMadeResult _self; + final $Res Function(_AllocatedMadeResult) _then; + +/// Create a copy of AllocatedMadeResult +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? product = freezed,Object? kill_house = freezed,Object? to_kill_house = freezed,Object? steward = freezed,Object? to_steward = freezed,Object? guilds = freezed,Object? to_guilds = freezed,Object? to_cold_house = freezed,Object? index_weight = freezed,Object? date_timestamp = freezed,Object? new_state = freezed,Object? new_receiver_state = freezed,Object? new_allocation_state = freezed,Object? key = freezed,Object? create_date = freezed,Object? modify_date = freezed,Object? trash = freezed,Object? number_of_carcasses = freezed,Object? real_number_of_carcasses = freezed,Object? receiver_real_number_of_carcasses = freezed,Object? weight_of_carcasses = freezed,Object? real_weight_of_carcasses = freezed,Object? receiver_real_weight_of_carcasses = freezed,Object? weight_loss_of_carcasses = freezed,Object? final_registration = freezed,Object? sell_type = freezed,Object? product_name = freezed,Object? seller_type = freezed,Object? type = freezed,Object? sale_type = freezed,Object? allocation_type = freezed,Object? system_registration_code = freezed,Object? registration_code = freezed,Object? amount = freezed,Object? total_amount = freezed,Object? total_amount_paid = freezed,Object? total_amount_remain = freezed,Object? logged_registration_code = freezed,Object? state = freezed,Object? receiver_state = freezed,Object? allocation_state = freezed,Object? date = freezed,Object? role = freezed,Object? steward_temp_key = freezed,Object? approved_price_status = freezed,Object? calculate_status = freezed,Object? temporary_trash = freezed,Object? temporary_deleted = freezed,Object? created_by = freezed,Object? modified_by = freezed,Object? ware_house = freezed,Object? steward_ware_house = freezed,Object? car = freezed,Object? dispenser = freezed,}) { + return _then(_AllocatedMadeResult( +id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable +as int?,product: freezed == product ? _self.product : product // ignore: cast_nullable_to_non_nullable +as Product?,kill_house: freezed == kill_house ? _self.kill_house : kill_house // ignore: cast_nullable_to_non_nullable +as dynamic,to_kill_house: freezed == to_kill_house ? _self.to_kill_house : to_kill_house // ignore: cast_nullable_to_non_nullable +as dynamic,steward: freezed == steward ? _self.steward : steward // ignore: cast_nullable_to_non_nullable +as Steward?,to_steward: freezed == to_steward ? _self.to_steward : to_steward // ignore: cast_nullable_to_non_nullable +as dynamic,guilds: freezed == guilds ? _self.guilds : guilds // ignore: cast_nullable_to_non_nullable +as dynamic,to_guilds: freezed == to_guilds ? _self.to_guilds : to_guilds // ignore: cast_nullable_to_non_nullable +as Steward?,to_cold_house: freezed == to_cold_house ? _self.to_cold_house : to_cold_house // ignore: cast_nullable_to_non_nullable +as dynamic,index_weight: freezed == index_weight ? _self.index_weight : index_weight // ignore: cast_nullable_to_non_nullable +as int?,date_timestamp: freezed == date_timestamp ? _self.date_timestamp : date_timestamp // ignore: cast_nullable_to_non_nullable +as int?,new_state: freezed == new_state ? _self.new_state : new_state // ignore: cast_nullable_to_non_nullable +as int?,new_receiver_state: freezed == new_receiver_state ? _self.new_receiver_state : new_receiver_state // ignore: cast_nullable_to_non_nullable +as int?,new_allocation_state: freezed == new_allocation_state ? _self.new_allocation_state : new_allocation_state // ignore: cast_nullable_to_non_nullable +as int?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,create_date: freezed == create_date ? _self.create_date : create_date // ignore: cast_nullable_to_non_nullable +as String?,modify_date: freezed == modify_date ? _self.modify_date : modify_date // ignore: cast_nullable_to_non_nullable +as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable +as bool?,number_of_carcasses: freezed == number_of_carcasses ? _self.number_of_carcasses : number_of_carcasses // ignore: cast_nullable_to_non_nullable +as int?,real_number_of_carcasses: freezed == real_number_of_carcasses ? _self.real_number_of_carcasses : real_number_of_carcasses // ignore: cast_nullable_to_non_nullable +as int?,receiver_real_number_of_carcasses: freezed == receiver_real_number_of_carcasses ? _self.receiver_real_number_of_carcasses : receiver_real_number_of_carcasses // ignore: cast_nullable_to_non_nullable +as int?,weight_of_carcasses: freezed == weight_of_carcasses ? _self.weight_of_carcasses : weight_of_carcasses // ignore: cast_nullable_to_non_nullable +as int?,real_weight_of_carcasses: freezed == real_weight_of_carcasses ? _self.real_weight_of_carcasses : real_weight_of_carcasses // ignore: cast_nullable_to_non_nullable +as int?,receiver_real_weight_of_carcasses: freezed == receiver_real_weight_of_carcasses ? _self.receiver_real_weight_of_carcasses : receiver_real_weight_of_carcasses // ignore: cast_nullable_to_non_nullable +as int?,weight_loss_of_carcasses: freezed == weight_loss_of_carcasses ? _self.weight_loss_of_carcasses : weight_loss_of_carcasses // ignore: cast_nullable_to_non_nullable +as int?,final_registration: freezed == final_registration ? _self.final_registration : final_registration // ignore: cast_nullable_to_non_nullable +as bool?,sell_type: freezed == sell_type ? _self.sell_type : sell_type // ignore: cast_nullable_to_non_nullable +as String?,product_name: freezed == product_name ? _self.product_name : product_name // ignore: cast_nullable_to_non_nullable +as String?,seller_type: freezed == seller_type ? _self.seller_type : seller_type // ignore: cast_nullable_to_non_nullable +as String?,type: freezed == type ? _self.type : type // ignore: cast_nullable_to_non_nullable +as String?,sale_type: freezed == sale_type ? _self.sale_type : sale_type // ignore: cast_nullable_to_non_nullable +as String?,allocation_type: freezed == allocation_type ? _self.allocation_type : allocation_type // ignore: cast_nullable_to_non_nullable +as String?,system_registration_code: freezed == system_registration_code ? _self.system_registration_code : system_registration_code // ignore: cast_nullable_to_non_nullable +as bool?,registration_code: freezed == registration_code ? _self.registration_code : registration_code // ignore: cast_nullable_to_non_nullable +as int?,amount: freezed == amount ? _self.amount : amount // ignore: cast_nullable_to_non_nullable +as int?,total_amount: freezed == total_amount ? _self.total_amount : total_amount // ignore: cast_nullable_to_non_nullable +as int?,total_amount_paid: freezed == total_amount_paid ? _self.total_amount_paid : total_amount_paid // ignore: cast_nullable_to_non_nullable +as int?,total_amount_remain: freezed == total_amount_remain ? _self.total_amount_remain : total_amount_remain // ignore: cast_nullable_to_non_nullable +as int?,logged_registration_code: freezed == logged_registration_code ? _self.logged_registration_code : logged_registration_code // ignore: cast_nullable_to_non_nullable +as String?,state: freezed == state ? _self.state : state // ignore: cast_nullable_to_non_nullable +as String?,receiver_state: freezed == receiver_state ? _self.receiver_state : receiver_state // ignore: cast_nullable_to_non_nullable +as String?,allocation_state: freezed == allocation_state ? _self.allocation_state : allocation_state // ignore: cast_nullable_to_non_nullable +as String?,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?,steward_temp_key: freezed == steward_temp_key ? _self.steward_temp_key : steward_temp_key // ignore: cast_nullable_to_non_nullable +as String?,approved_price_status: freezed == approved_price_status ? _self.approved_price_status : approved_price_status // ignore: cast_nullable_to_non_nullable +as bool?,calculate_status: freezed == calculate_status ? _self.calculate_status : calculate_status // ignore: cast_nullable_to_non_nullable +as bool?,temporary_trash: freezed == temporary_trash ? _self.temporary_trash : temporary_trash // ignore: cast_nullable_to_non_nullable +as bool?,temporary_deleted: freezed == temporary_deleted ? _self.temporary_deleted : temporary_deleted // ignore: cast_nullable_to_non_nullable +as bool?,created_by: freezed == created_by ? _self.created_by : created_by // ignore: cast_nullable_to_non_nullable +as String?,modified_by: freezed == modified_by ? _self.modified_by : modified_by // ignore: cast_nullable_to_non_nullable +as String?,ware_house: freezed == ware_house ? _self.ware_house : ware_house // ignore: cast_nullable_to_non_nullable +as dynamic,steward_ware_house: freezed == steward_ware_house ? _self.steward_ware_house : steward_ware_house // ignore: cast_nullable_to_non_nullable +as dynamic,car: freezed == car ? _self.car : car // ignore: cast_nullable_to_non_nullable +as dynamic,dispenser: freezed == dispenser ? _self.dispenser : dispenser // ignore: cast_nullable_to_non_nullable +as dynamic, + )); +} + +/// Create a copy of AllocatedMadeResult +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ProductCopyWith<$Res>? get product { + if (_self.product == null) { + return null; + } + + return $ProductCopyWith<$Res>(_self.product!, (value) { + return _then(_self.copyWith(product: value)); + }); +}/// Create a copy of AllocatedMadeResult +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$StewardCopyWith<$Res>? get steward { + if (_self.steward == null) { + return null; + } + + return $StewardCopyWith<$Res>(_self.steward!, (value) { + return _then(_self.copyWith(steward: value)); + }); +}/// Create a copy of AllocatedMadeResult +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$StewardCopyWith<$Res>? get to_guilds { + if (_self.to_guilds == null) { + return null; + } + + return $StewardCopyWith<$Res>(_self.to_guilds!, (value) { + return _then(_self.copyWith(to_guilds: value)); + }); +} +} + + +/// @nodoc +mixin _$Product { + + int? get weight_average; +/// Create a copy of Product +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ProductCopyWith get copyWith => _$ProductCopyWithImpl(this as Product, _$identity); + + /// Serializes this Product to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is Product&&(identical(other.weight_average, weight_average) || other.weight_average == weight_average)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,weight_average); + +@override +String toString() { + return 'Product(weight_average: $weight_average)'; +} + + +} + +/// @nodoc +abstract mixin class $ProductCopyWith<$Res> { + factory $ProductCopyWith(Product value, $Res Function(Product) _then) = _$ProductCopyWithImpl; +@useResult +$Res call({ + int? weight_average +}); + + + + +} +/// @nodoc +class _$ProductCopyWithImpl<$Res> + implements $ProductCopyWith<$Res> { + _$ProductCopyWithImpl(this._self, this._then); + + final Product _self; + final $Res Function(Product) _then; + +/// Create a copy of Product +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? weight_average = freezed,}) { + return _then(_self.copyWith( +weight_average: freezed == weight_average ? _self.weight_average : weight_average // ignore: cast_nullable_to_non_nullable +as int?, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _Product implements Product { + _Product({this.weight_average}); + factory _Product.fromJson(Map json) => _$ProductFromJson(json); + +@override final int? weight_average; + +/// Create a copy of Product +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ProductCopyWith<_Product> get copyWith => __$ProductCopyWithImpl<_Product>(this, _$identity); + +@override +Map toJson() { + return _$ProductToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Product&&(identical(other.weight_average, weight_average) || other.weight_average == weight_average)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,weight_average); + +@override +String toString() { + return 'Product(weight_average: $weight_average)'; +} + + +} + +/// @nodoc +abstract mixin class _$ProductCopyWith<$Res> implements $ProductCopyWith<$Res> { + factory _$ProductCopyWith(_Product value, $Res Function(_Product) _then) = __$ProductCopyWithImpl; +@override @useResult +$Res call({ + int? weight_average +}); + + + + +} +/// @nodoc +class __$ProductCopyWithImpl<$Res> + implements _$ProductCopyWith<$Res> { + __$ProductCopyWithImpl(this._self, this._then); + + final _Product _self; + final $Res Function(_Product) _then; + +/// Create a copy of Product +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? weight_average = freezed,}) { + return _then(_Product( +weight_average: freezed == weight_average ? _self.weight_average : weight_average // ignore: cast_nullable_to_non_nullable +as int?, + )); +} + + +} + + +/// @nodoc +mixin _$Steward { + + int? get id; User? get user; Address? get address; Activity? get guild_area_activity; Activity? get guild_type_activity; List? get kill_house; List? get steward_kill_house; List? get stewards; PosStatus? get get_pos_status; String? get key; String? get create_date; String? get modify_date; bool? get trash; dynamic get user_id_foreign_key; dynamic get address_id_foreign_key; dynamic get user_bank_id_foreign_key; dynamic get wallet_id_foreign_key; dynamic get provincial_government_id_key; dynamic get identity_documents; bool? get active; int? get city_number; String? get city_name; String? get guilds_id; String? get license_number; String? get guilds_name; String? get phone; String? get type_activity; String? get area_activity; int? get province_number; String? get province_name; bool? get steward; bool? get has_pos; dynamic get centers_allocation; dynamic get kill_house_centers_allocation; dynamic get allocation_limit; bool? get limitation_allocation; String? get registerar_role; String? get registerar_fullname; String? get registerar_mobile; bool? get kill_house_register; bool? get steward_register; bool? get guilds_room_register; bool? get pos_company_register; String? get province_accept_state; String? get province_message; String? get condition; String? get description_condition; bool? get steward_active; dynamic get steward_allocation_limit; bool? get steward_limitation_allocation; bool? get license; dynamic get license_form; dynamic get license_file; String? get reviewer_role; String? get reviewer_fullname; String? get reviewer_mobile; String? get checker_message; bool? get final_accept; bool? get temporary_registration; String? get created_by; String? get modified_by; dynamic get user_bank_info; int? get wallet; List? get cars; List? get user_level; +/// Create a copy of Steward +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$StewardCopyWith get copyWith => _$StewardCopyWithImpl(this as Steward, _$identity); + + /// Serializes this Steward to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is Steward&&(identical(other.id, id) || other.id == id)&&(identical(other.user, user) || other.user == user)&&(identical(other.address, address) || other.address == address)&&(identical(other.guild_area_activity, guild_area_activity) || other.guild_area_activity == guild_area_activity)&&(identical(other.guild_type_activity, guild_type_activity) || other.guild_type_activity == guild_type_activity)&&const DeepCollectionEquality().equals(other.kill_house, kill_house)&&const DeepCollectionEquality().equals(other.steward_kill_house, steward_kill_house)&&const DeepCollectionEquality().equals(other.stewards, stewards)&&(identical(other.get_pos_status, get_pos_status) || other.get_pos_status == get_pos_status)&&(identical(other.key, key) || other.key == key)&&(identical(other.create_date, create_date) || other.create_date == create_date)&&(identical(other.modify_date, modify_date) || other.modify_date == modify_date)&&(identical(other.trash, trash) || other.trash == trash)&&const DeepCollectionEquality().equals(other.user_id_foreign_key, user_id_foreign_key)&&const DeepCollectionEquality().equals(other.address_id_foreign_key, address_id_foreign_key)&&const DeepCollectionEquality().equals(other.user_bank_id_foreign_key, user_bank_id_foreign_key)&&const DeepCollectionEquality().equals(other.wallet_id_foreign_key, wallet_id_foreign_key)&&const DeepCollectionEquality().equals(other.provincial_government_id_key, provincial_government_id_key)&&const DeepCollectionEquality().equals(other.identity_documents, identity_documents)&&(identical(other.active, active) || other.active == active)&&(identical(other.city_number, city_number) || other.city_number == city_number)&&(identical(other.city_name, city_name) || other.city_name == city_name)&&(identical(other.guilds_id, guilds_id) || other.guilds_id == guilds_id)&&(identical(other.license_number, license_number) || other.license_number == license_number)&&(identical(other.guilds_name, guilds_name) || other.guilds_name == guilds_name)&&(identical(other.phone, phone) || other.phone == phone)&&(identical(other.type_activity, type_activity) || other.type_activity == type_activity)&&(identical(other.area_activity, area_activity) || other.area_activity == area_activity)&&(identical(other.province_number, province_number) || other.province_number == province_number)&&(identical(other.province_name, province_name) || other.province_name == province_name)&&(identical(other.steward, steward) || other.steward == steward)&&(identical(other.has_pos, has_pos) || other.has_pos == has_pos)&&const DeepCollectionEquality().equals(other.centers_allocation, centers_allocation)&&const DeepCollectionEquality().equals(other.kill_house_centers_allocation, kill_house_centers_allocation)&&const DeepCollectionEquality().equals(other.allocation_limit, allocation_limit)&&(identical(other.limitation_allocation, limitation_allocation) || other.limitation_allocation == limitation_allocation)&&(identical(other.registerar_role, registerar_role) || other.registerar_role == registerar_role)&&(identical(other.registerar_fullname, registerar_fullname) || other.registerar_fullname == registerar_fullname)&&(identical(other.registerar_mobile, registerar_mobile) || other.registerar_mobile == registerar_mobile)&&(identical(other.kill_house_register, kill_house_register) || other.kill_house_register == kill_house_register)&&(identical(other.steward_register, steward_register) || other.steward_register == steward_register)&&(identical(other.guilds_room_register, guilds_room_register) || other.guilds_room_register == guilds_room_register)&&(identical(other.pos_company_register, pos_company_register) || other.pos_company_register == pos_company_register)&&(identical(other.province_accept_state, province_accept_state) || other.province_accept_state == province_accept_state)&&(identical(other.province_message, province_message) || other.province_message == province_message)&&(identical(other.condition, condition) || other.condition == condition)&&(identical(other.description_condition, description_condition) || other.description_condition == description_condition)&&(identical(other.steward_active, steward_active) || other.steward_active == steward_active)&&const DeepCollectionEquality().equals(other.steward_allocation_limit, steward_allocation_limit)&&(identical(other.steward_limitation_allocation, steward_limitation_allocation) || other.steward_limitation_allocation == steward_limitation_allocation)&&(identical(other.license, license) || other.license == license)&&const DeepCollectionEquality().equals(other.license_form, license_form)&&const DeepCollectionEquality().equals(other.license_file, license_file)&&(identical(other.reviewer_role, reviewer_role) || other.reviewer_role == reviewer_role)&&(identical(other.reviewer_fullname, reviewer_fullname) || other.reviewer_fullname == reviewer_fullname)&&(identical(other.reviewer_mobile, reviewer_mobile) || other.reviewer_mobile == reviewer_mobile)&&(identical(other.checker_message, checker_message) || other.checker_message == checker_message)&&(identical(other.final_accept, final_accept) || other.final_accept == final_accept)&&(identical(other.temporary_registration, temporary_registration) || other.temporary_registration == temporary_registration)&&(identical(other.created_by, created_by) || other.created_by == created_by)&&(identical(other.modified_by, modified_by) || other.modified_by == modified_by)&&const DeepCollectionEquality().equals(other.user_bank_info, user_bank_info)&&(identical(other.wallet, wallet) || other.wallet == wallet)&&const DeepCollectionEquality().equals(other.cars, cars)&&const DeepCollectionEquality().equals(other.user_level, user_level)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,id,user,address,guild_area_activity,guild_type_activity,const DeepCollectionEquality().hash(kill_house),const DeepCollectionEquality().hash(steward_kill_house),const DeepCollectionEquality().hash(stewards),get_pos_status,key,create_date,modify_date,trash,const DeepCollectionEquality().hash(user_id_foreign_key),const DeepCollectionEquality().hash(address_id_foreign_key),const DeepCollectionEquality().hash(user_bank_id_foreign_key),const DeepCollectionEquality().hash(wallet_id_foreign_key),const DeepCollectionEquality().hash(provincial_government_id_key),const DeepCollectionEquality().hash(identity_documents),active,city_number,city_name,guilds_id,license_number,guilds_name,phone,type_activity,area_activity,province_number,province_name,steward,has_pos,const DeepCollectionEquality().hash(centers_allocation),const DeepCollectionEquality().hash(kill_house_centers_allocation),const DeepCollectionEquality().hash(allocation_limit),limitation_allocation,registerar_role,registerar_fullname,registerar_mobile,kill_house_register,steward_register,guilds_room_register,pos_company_register,province_accept_state,province_message,condition,description_condition,steward_active,const DeepCollectionEquality().hash(steward_allocation_limit),steward_limitation_allocation,license,const DeepCollectionEquality().hash(license_form),const DeepCollectionEquality().hash(license_file),reviewer_role,reviewer_fullname,reviewer_mobile,checker_message,final_accept,temporary_registration,created_by,modified_by,const DeepCollectionEquality().hash(user_bank_info),wallet,const DeepCollectionEquality().hash(cars),const DeepCollectionEquality().hash(user_level)]); + +@override +String toString() { + return 'Steward(id: $id, user: $user, address: $address, guild_area_activity: $guild_area_activity, guild_type_activity: $guild_type_activity, kill_house: $kill_house, steward_kill_house: $steward_kill_house, stewards: $stewards, get_pos_status: $get_pos_status, key: $key, create_date: $create_date, modify_date: $modify_date, trash: $trash, user_id_foreign_key: $user_id_foreign_key, address_id_foreign_key: $address_id_foreign_key, user_bank_id_foreign_key: $user_bank_id_foreign_key, wallet_id_foreign_key: $wallet_id_foreign_key, provincial_government_id_key: $provincial_government_id_key, identity_documents: $identity_documents, active: $active, city_number: $city_number, city_name: $city_name, guilds_id: $guilds_id, license_number: $license_number, guilds_name: $guilds_name, phone: $phone, type_activity: $type_activity, area_activity: $area_activity, province_number: $province_number, province_name: $province_name, steward: $steward, has_pos: $has_pos, centers_allocation: $centers_allocation, kill_house_centers_allocation: $kill_house_centers_allocation, allocation_limit: $allocation_limit, limitation_allocation: $limitation_allocation, registerar_role: $registerar_role, registerar_fullname: $registerar_fullname, registerar_mobile: $registerar_mobile, kill_house_register: $kill_house_register, steward_register: $steward_register, guilds_room_register: $guilds_room_register, pos_company_register: $pos_company_register, province_accept_state: $province_accept_state, province_message: $province_message, condition: $condition, description_condition: $description_condition, steward_active: $steward_active, steward_allocation_limit: $steward_allocation_limit, steward_limitation_allocation: $steward_limitation_allocation, license: $license, license_form: $license_form, license_file: $license_file, reviewer_role: $reviewer_role, reviewer_fullname: $reviewer_fullname, reviewer_mobile: $reviewer_mobile, checker_message: $checker_message, final_accept: $final_accept, temporary_registration: $temporary_registration, created_by: $created_by, modified_by: $modified_by, user_bank_info: $user_bank_info, wallet: $wallet, cars: $cars, user_level: $user_level)'; +} + + +} + +/// @nodoc +abstract mixin class $StewardCopyWith<$Res> { + factory $StewardCopyWith(Steward value, $Res Function(Steward) _then) = _$StewardCopyWithImpl; +@useResult +$Res call({ + int? id, User? user, Address? address, Activity? guild_area_activity, Activity? guild_type_activity, List? kill_house, List? steward_kill_house, List? stewards, PosStatus? get_pos_status, String? key, String? create_date, String? modify_date, bool? trash, dynamic user_id_foreign_key, dynamic address_id_foreign_key, dynamic user_bank_id_foreign_key, dynamic wallet_id_foreign_key, dynamic provincial_government_id_key, dynamic identity_documents, bool? active, int? city_number, String? city_name, String? guilds_id, String? license_number, String? guilds_name, String? phone, String? type_activity, String? area_activity, int? province_number, String? province_name, bool? steward, bool? has_pos, dynamic centers_allocation, dynamic kill_house_centers_allocation, dynamic allocation_limit, bool? limitation_allocation, String? registerar_role, String? registerar_fullname, String? registerar_mobile, bool? kill_house_register, bool? steward_register, bool? guilds_room_register, bool? pos_company_register, String? province_accept_state, String? province_message, String? condition, String? description_condition, bool? steward_active, dynamic steward_allocation_limit, bool? steward_limitation_allocation, bool? license, dynamic license_form, dynamic license_file, String? reviewer_role, String? reviewer_fullname, String? reviewer_mobile, String? checker_message, bool? final_accept, bool? temporary_registration, String? created_by, String? modified_by, dynamic user_bank_info, int? wallet, List? cars, List? user_level +}); + + +$UserCopyWith<$Res>? get user;$AddressCopyWith<$Res>? get address;$ActivityCopyWith<$Res>? get guild_area_activity;$ActivityCopyWith<$Res>? get guild_type_activity;$PosStatusCopyWith<$Res>? get get_pos_status; + +} +/// @nodoc +class _$StewardCopyWithImpl<$Res> + implements $StewardCopyWith<$Res> { + _$StewardCopyWithImpl(this._self, this._then); + + final Steward _self; + final $Res Function(Steward) _then; + +/// Create a copy of Steward +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? user = freezed,Object? address = freezed,Object? guild_area_activity = freezed,Object? guild_type_activity = freezed,Object? kill_house = freezed,Object? steward_kill_house = freezed,Object? stewards = freezed,Object? get_pos_status = freezed,Object? key = freezed,Object? create_date = freezed,Object? modify_date = freezed,Object? trash = freezed,Object? user_id_foreign_key = freezed,Object? address_id_foreign_key = freezed,Object? user_bank_id_foreign_key = freezed,Object? wallet_id_foreign_key = freezed,Object? provincial_government_id_key = freezed,Object? identity_documents = freezed,Object? active = freezed,Object? city_number = freezed,Object? city_name = freezed,Object? guilds_id = freezed,Object? license_number = freezed,Object? guilds_name = freezed,Object? phone = freezed,Object? type_activity = freezed,Object? area_activity = freezed,Object? province_number = freezed,Object? province_name = freezed,Object? steward = freezed,Object? has_pos = freezed,Object? centers_allocation = freezed,Object? kill_house_centers_allocation = freezed,Object? allocation_limit = freezed,Object? limitation_allocation = freezed,Object? registerar_role = freezed,Object? registerar_fullname = freezed,Object? registerar_mobile = freezed,Object? kill_house_register = freezed,Object? steward_register = freezed,Object? guilds_room_register = freezed,Object? pos_company_register = freezed,Object? province_accept_state = freezed,Object? province_message = freezed,Object? condition = freezed,Object? description_condition = freezed,Object? steward_active = freezed,Object? steward_allocation_limit = freezed,Object? steward_limitation_allocation = freezed,Object? license = freezed,Object? license_form = freezed,Object? license_file = freezed,Object? reviewer_role = freezed,Object? reviewer_fullname = freezed,Object? reviewer_mobile = freezed,Object? checker_message = freezed,Object? final_accept = freezed,Object? temporary_registration = freezed,Object? created_by = freezed,Object? modified_by = freezed,Object? user_bank_info = freezed,Object? wallet = freezed,Object? cars = freezed,Object? user_level = freezed,}) { + return _then(_self.copyWith( +id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable +as int?,user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable +as User?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable +as Address?,guild_area_activity: freezed == guild_area_activity ? _self.guild_area_activity : guild_area_activity // ignore: cast_nullable_to_non_nullable +as Activity?,guild_type_activity: freezed == guild_type_activity ? _self.guild_type_activity : guild_type_activity // ignore: cast_nullable_to_non_nullable +as Activity?,kill_house: freezed == kill_house ? _self.kill_house : kill_house // ignore: cast_nullable_to_non_nullable +as List?,steward_kill_house: freezed == steward_kill_house ? _self.steward_kill_house : steward_kill_house // ignore: cast_nullable_to_non_nullable +as List?,stewards: freezed == stewards ? _self.stewards : stewards // ignore: cast_nullable_to_non_nullable +as List?,get_pos_status: freezed == get_pos_status ? _self.get_pos_status : get_pos_status // ignore: cast_nullable_to_non_nullable +as PosStatus?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,create_date: freezed == create_date ? _self.create_date : create_date // ignore: cast_nullable_to_non_nullable +as String?,modify_date: freezed == modify_date ? _self.modify_date : modify_date // ignore: cast_nullable_to_non_nullable +as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable +as bool?,user_id_foreign_key: freezed == user_id_foreign_key ? _self.user_id_foreign_key : user_id_foreign_key // ignore: cast_nullable_to_non_nullable +as dynamic,address_id_foreign_key: freezed == address_id_foreign_key ? _self.address_id_foreign_key : address_id_foreign_key // ignore: cast_nullable_to_non_nullable +as dynamic,user_bank_id_foreign_key: freezed == user_bank_id_foreign_key ? _self.user_bank_id_foreign_key : user_bank_id_foreign_key // ignore: cast_nullable_to_non_nullable +as dynamic,wallet_id_foreign_key: freezed == wallet_id_foreign_key ? _self.wallet_id_foreign_key : wallet_id_foreign_key // ignore: cast_nullable_to_non_nullable +as dynamic,provincial_government_id_key: freezed == provincial_government_id_key ? _self.provincial_government_id_key : provincial_government_id_key // ignore: cast_nullable_to_non_nullable +as dynamic,identity_documents: freezed == identity_documents ? _self.identity_documents : identity_documents // ignore: cast_nullable_to_non_nullable +as dynamic,active: freezed == active ? _self.active : active // ignore: cast_nullable_to_non_nullable +as bool?,city_number: freezed == city_number ? _self.city_number : city_number // ignore: cast_nullable_to_non_nullable +as int?,city_name: freezed == city_name ? _self.city_name : city_name // ignore: cast_nullable_to_non_nullable +as String?,guilds_id: freezed == guilds_id ? _self.guilds_id : guilds_id // ignore: cast_nullable_to_non_nullable +as String?,license_number: freezed == license_number ? _self.license_number : license_number // ignore: cast_nullable_to_non_nullable +as String?,guilds_name: freezed == guilds_name ? _self.guilds_name : guilds_name // ignore: cast_nullable_to_non_nullable +as String?,phone: freezed == phone ? _self.phone : phone // ignore: cast_nullable_to_non_nullable +as String?,type_activity: freezed == type_activity ? _self.type_activity : type_activity // ignore: cast_nullable_to_non_nullable +as String?,area_activity: freezed == area_activity ? _self.area_activity : area_activity // ignore: cast_nullable_to_non_nullable +as String?,province_number: freezed == province_number ? _self.province_number : province_number // ignore: cast_nullable_to_non_nullable +as int?,province_name: freezed == province_name ? _self.province_name : province_name // ignore: cast_nullable_to_non_nullable +as String?,steward: freezed == steward ? _self.steward : steward // ignore: cast_nullable_to_non_nullable +as bool?,has_pos: freezed == has_pos ? _self.has_pos : has_pos // ignore: cast_nullable_to_non_nullable +as bool?,centers_allocation: freezed == centers_allocation ? _self.centers_allocation : centers_allocation // ignore: cast_nullable_to_non_nullable +as dynamic,kill_house_centers_allocation: freezed == kill_house_centers_allocation ? _self.kill_house_centers_allocation : kill_house_centers_allocation // ignore: cast_nullable_to_non_nullable +as dynamic,allocation_limit: freezed == allocation_limit ? _self.allocation_limit : allocation_limit // ignore: cast_nullable_to_non_nullable +as dynamic,limitation_allocation: freezed == limitation_allocation ? _self.limitation_allocation : limitation_allocation // ignore: cast_nullable_to_non_nullable +as bool?,registerar_role: freezed == registerar_role ? _self.registerar_role : registerar_role // ignore: cast_nullable_to_non_nullable +as String?,registerar_fullname: freezed == registerar_fullname ? _self.registerar_fullname : registerar_fullname // ignore: cast_nullable_to_non_nullable +as String?,registerar_mobile: freezed == registerar_mobile ? _self.registerar_mobile : registerar_mobile // ignore: cast_nullable_to_non_nullable +as String?,kill_house_register: freezed == kill_house_register ? _self.kill_house_register : kill_house_register // ignore: cast_nullable_to_non_nullable +as bool?,steward_register: freezed == steward_register ? _self.steward_register : steward_register // ignore: cast_nullable_to_non_nullable +as bool?,guilds_room_register: freezed == guilds_room_register ? _self.guilds_room_register : guilds_room_register // ignore: cast_nullable_to_non_nullable +as bool?,pos_company_register: freezed == pos_company_register ? _self.pos_company_register : pos_company_register // ignore: cast_nullable_to_non_nullable +as bool?,province_accept_state: freezed == province_accept_state ? _self.province_accept_state : province_accept_state // ignore: cast_nullable_to_non_nullable +as String?,province_message: freezed == province_message ? _self.province_message : province_message // ignore: cast_nullable_to_non_nullable +as String?,condition: freezed == condition ? _self.condition : condition // ignore: cast_nullable_to_non_nullable +as String?,description_condition: freezed == description_condition ? _self.description_condition : description_condition // ignore: cast_nullable_to_non_nullable +as String?,steward_active: freezed == steward_active ? _self.steward_active : steward_active // ignore: cast_nullable_to_non_nullable +as bool?,steward_allocation_limit: freezed == steward_allocation_limit ? _self.steward_allocation_limit : steward_allocation_limit // ignore: cast_nullable_to_non_nullable +as dynamic,steward_limitation_allocation: freezed == steward_limitation_allocation ? _self.steward_limitation_allocation : steward_limitation_allocation // ignore: cast_nullable_to_non_nullable +as bool?,license: freezed == license ? _self.license : license // ignore: cast_nullable_to_non_nullable +as bool?,license_form: freezed == license_form ? _self.license_form : license_form // ignore: cast_nullable_to_non_nullable +as dynamic,license_file: freezed == license_file ? _self.license_file : license_file // ignore: cast_nullable_to_non_nullable +as dynamic,reviewer_role: freezed == reviewer_role ? _self.reviewer_role : reviewer_role // ignore: cast_nullable_to_non_nullable +as String?,reviewer_fullname: freezed == reviewer_fullname ? _self.reviewer_fullname : reviewer_fullname // ignore: cast_nullable_to_non_nullable +as String?,reviewer_mobile: freezed == reviewer_mobile ? _self.reviewer_mobile : reviewer_mobile // ignore: cast_nullable_to_non_nullable +as String?,checker_message: freezed == checker_message ? _self.checker_message : checker_message // ignore: cast_nullable_to_non_nullable +as String?,final_accept: freezed == final_accept ? _self.final_accept : final_accept // ignore: cast_nullable_to_non_nullable +as bool?,temporary_registration: freezed == temporary_registration ? _self.temporary_registration : temporary_registration // ignore: cast_nullable_to_non_nullable +as bool?,created_by: freezed == created_by ? _self.created_by : created_by // ignore: cast_nullable_to_non_nullable +as String?,modified_by: freezed == modified_by ? _self.modified_by : modified_by // ignore: cast_nullable_to_non_nullable +as String?,user_bank_info: freezed == user_bank_info ? _self.user_bank_info : user_bank_info // ignore: cast_nullable_to_non_nullable +as dynamic,wallet: freezed == wallet ? _self.wallet : wallet // ignore: cast_nullable_to_non_nullable +as int?,cars: freezed == cars ? _self.cars : cars // ignore: cast_nullable_to_non_nullable +as List?,user_level: freezed == user_level ? _self.user_level : user_level // ignore: cast_nullable_to_non_nullable +as List?, + )); +} +/// Create a copy of Steward +/// 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 Steward +/// 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 Steward +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ActivityCopyWith<$Res>? get guild_area_activity { + if (_self.guild_area_activity == null) { + return null; + } + + return $ActivityCopyWith<$Res>(_self.guild_area_activity!, (value) { + return _then(_self.copyWith(guild_area_activity: value)); + }); +}/// Create a copy of Steward +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ActivityCopyWith<$Res>? get guild_type_activity { + if (_self.guild_type_activity == null) { + return null; + } + + return $ActivityCopyWith<$Res>(_self.guild_type_activity!, (value) { + return _then(_self.copyWith(guild_type_activity: value)); + }); +}/// Create a copy of Steward +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$PosStatusCopyWith<$Res>? get get_pos_status { + if (_self.get_pos_status == null) { + return null; + } + + return $PosStatusCopyWith<$Res>(_self.get_pos_status!, (value) { + return _then(_self.copyWith(get_pos_status: value)); + }); +} +} + + +/// @nodoc +@JsonSerializable() + +class _Steward implements Steward { + _Steward({this.id, this.user, this.address, this.guild_area_activity, this.guild_type_activity, final List? kill_house, final List? steward_kill_house, final List? stewards, this.get_pos_status, this.key, this.create_date, this.modify_date, this.trash, this.user_id_foreign_key, this.address_id_foreign_key, this.user_bank_id_foreign_key, this.wallet_id_foreign_key, this.provincial_government_id_key, this.identity_documents, this.active, this.city_number, this.city_name, this.guilds_id, this.license_number, this.guilds_name, this.phone, this.type_activity, this.area_activity, this.province_number, this.province_name, this.steward, this.has_pos, this.centers_allocation, this.kill_house_centers_allocation, this.allocation_limit, this.limitation_allocation, this.registerar_role, this.registerar_fullname, this.registerar_mobile, this.kill_house_register, this.steward_register, this.guilds_room_register, this.pos_company_register, this.province_accept_state, this.province_message, this.condition, this.description_condition, this.steward_active, this.steward_allocation_limit, this.steward_limitation_allocation, this.license, this.license_form, this.license_file, this.reviewer_role, this.reviewer_fullname, this.reviewer_mobile, this.checker_message, this.final_accept, this.temporary_registration, this.created_by, this.modified_by, this.user_bank_info, this.wallet, final List? cars, final List? user_level}): _kill_house = kill_house,_steward_kill_house = steward_kill_house,_stewards = stewards,_cars = cars,_user_level = user_level; + factory _Steward.fromJson(Map json) => _$StewardFromJson(json); + +@override final int? id; +@override final User? user; +@override final Address? address; +@override final Activity? guild_area_activity; +@override final Activity? guild_type_activity; + final List? _kill_house; +@override List? get kill_house { + final value = _kill_house; + if (value == null) return null; + if (_kill_house is EqualUnmodifiableListView) return _kill_house; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + + final List? _steward_kill_house; +@override List? get steward_kill_house { + final value = _steward_kill_house; + if (value == null) return null; + if (_steward_kill_house is EqualUnmodifiableListView) return _steward_kill_house; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + + final List? _stewards; +@override List? get stewards { + final value = _stewards; + if (value == null) return null; + if (_stewards is EqualUnmodifiableListView) return _stewards; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + +@override final PosStatus? get_pos_status; +@override final String? key; +@override final String? create_date; +@override final String? modify_date; +@override final bool? trash; +@override final dynamic user_id_foreign_key; +@override final dynamic address_id_foreign_key; +@override final dynamic user_bank_id_foreign_key; +@override final dynamic wallet_id_foreign_key; +@override final dynamic provincial_government_id_key; +@override final dynamic identity_documents; +@override final bool? active; +@override final int? city_number; +@override final String? city_name; +@override final String? guilds_id; +@override final String? license_number; +@override final String? guilds_name; +@override final String? phone; +@override final String? type_activity; +@override final String? area_activity; +@override final int? province_number; +@override final String? province_name; +@override final bool? steward; +@override final bool? has_pos; +@override final dynamic centers_allocation; +@override final dynamic kill_house_centers_allocation; +@override final dynamic allocation_limit; +@override final bool? limitation_allocation; +@override final String? registerar_role; +@override final String? registerar_fullname; +@override final String? registerar_mobile; +@override final bool? kill_house_register; +@override final bool? steward_register; +@override final bool? guilds_room_register; +@override final bool? pos_company_register; +@override final String? province_accept_state; +@override final String? province_message; +@override final String? condition; +@override final String? description_condition; +@override final bool? steward_active; +@override final dynamic steward_allocation_limit; +@override final bool? steward_limitation_allocation; +@override final bool? license; +@override final dynamic license_form; +@override final dynamic license_file; +@override final String? reviewer_role; +@override final String? reviewer_fullname; +@override final String? reviewer_mobile; +@override final String? checker_message; +@override final bool? final_accept; +@override final bool? temporary_registration; +@override final String? created_by; +@override final String? modified_by; +@override final dynamic user_bank_info; +@override final int? wallet; + final List? _cars; +@override List? get cars { + final value = _cars; + if (value == null) return null; + if (_cars is EqualUnmodifiableListView) return _cars; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + + final List? _user_level; +@override List? get user_level { + final value = _user_level; + if (value == null) return null; + if (_user_level is EqualUnmodifiableListView) return _user_level; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + + +/// Create a copy of Steward +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$StewardCopyWith<_Steward> get copyWith => __$StewardCopyWithImpl<_Steward>(this, _$identity); + +@override +Map toJson() { + return _$StewardToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Steward&&(identical(other.id, id) || other.id == id)&&(identical(other.user, user) || other.user == user)&&(identical(other.address, address) || other.address == address)&&(identical(other.guild_area_activity, guild_area_activity) || other.guild_area_activity == guild_area_activity)&&(identical(other.guild_type_activity, guild_type_activity) || other.guild_type_activity == guild_type_activity)&&const DeepCollectionEquality().equals(other._kill_house, _kill_house)&&const DeepCollectionEquality().equals(other._steward_kill_house, _steward_kill_house)&&const DeepCollectionEquality().equals(other._stewards, _stewards)&&(identical(other.get_pos_status, get_pos_status) || other.get_pos_status == get_pos_status)&&(identical(other.key, key) || other.key == key)&&(identical(other.create_date, create_date) || other.create_date == create_date)&&(identical(other.modify_date, modify_date) || other.modify_date == modify_date)&&(identical(other.trash, trash) || other.trash == trash)&&const DeepCollectionEquality().equals(other.user_id_foreign_key, user_id_foreign_key)&&const DeepCollectionEquality().equals(other.address_id_foreign_key, address_id_foreign_key)&&const DeepCollectionEquality().equals(other.user_bank_id_foreign_key, user_bank_id_foreign_key)&&const DeepCollectionEquality().equals(other.wallet_id_foreign_key, wallet_id_foreign_key)&&const DeepCollectionEquality().equals(other.provincial_government_id_key, provincial_government_id_key)&&const DeepCollectionEquality().equals(other.identity_documents, identity_documents)&&(identical(other.active, active) || other.active == active)&&(identical(other.city_number, city_number) || other.city_number == city_number)&&(identical(other.city_name, city_name) || other.city_name == city_name)&&(identical(other.guilds_id, guilds_id) || other.guilds_id == guilds_id)&&(identical(other.license_number, license_number) || other.license_number == license_number)&&(identical(other.guilds_name, guilds_name) || other.guilds_name == guilds_name)&&(identical(other.phone, phone) || other.phone == phone)&&(identical(other.type_activity, type_activity) || other.type_activity == type_activity)&&(identical(other.area_activity, area_activity) || other.area_activity == area_activity)&&(identical(other.province_number, province_number) || other.province_number == province_number)&&(identical(other.province_name, province_name) || other.province_name == province_name)&&(identical(other.steward, steward) || other.steward == steward)&&(identical(other.has_pos, has_pos) || other.has_pos == has_pos)&&const DeepCollectionEquality().equals(other.centers_allocation, centers_allocation)&&const DeepCollectionEquality().equals(other.kill_house_centers_allocation, kill_house_centers_allocation)&&const DeepCollectionEquality().equals(other.allocation_limit, allocation_limit)&&(identical(other.limitation_allocation, limitation_allocation) || other.limitation_allocation == limitation_allocation)&&(identical(other.registerar_role, registerar_role) || other.registerar_role == registerar_role)&&(identical(other.registerar_fullname, registerar_fullname) || other.registerar_fullname == registerar_fullname)&&(identical(other.registerar_mobile, registerar_mobile) || other.registerar_mobile == registerar_mobile)&&(identical(other.kill_house_register, kill_house_register) || other.kill_house_register == kill_house_register)&&(identical(other.steward_register, steward_register) || other.steward_register == steward_register)&&(identical(other.guilds_room_register, guilds_room_register) || other.guilds_room_register == guilds_room_register)&&(identical(other.pos_company_register, pos_company_register) || other.pos_company_register == pos_company_register)&&(identical(other.province_accept_state, province_accept_state) || other.province_accept_state == province_accept_state)&&(identical(other.province_message, province_message) || other.province_message == province_message)&&(identical(other.condition, condition) || other.condition == condition)&&(identical(other.description_condition, description_condition) || other.description_condition == description_condition)&&(identical(other.steward_active, steward_active) || other.steward_active == steward_active)&&const DeepCollectionEquality().equals(other.steward_allocation_limit, steward_allocation_limit)&&(identical(other.steward_limitation_allocation, steward_limitation_allocation) || other.steward_limitation_allocation == steward_limitation_allocation)&&(identical(other.license, license) || other.license == license)&&const DeepCollectionEquality().equals(other.license_form, license_form)&&const DeepCollectionEquality().equals(other.license_file, license_file)&&(identical(other.reviewer_role, reviewer_role) || other.reviewer_role == reviewer_role)&&(identical(other.reviewer_fullname, reviewer_fullname) || other.reviewer_fullname == reviewer_fullname)&&(identical(other.reviewer_mobile, reviewer_mobile) || other.reviewer_mobile == reviewer_mobile)&&(identical(other.checker_message, checker_message) || other.checker_message == checker_message)&&(identical(other.final_accept, final_accept) || other.final_accept == final_accept)&&(identical(other.temporary_registration, temporary_registration) || other.temporary_registration == temporary_registration)&&(identical(other.created_by, created_by) || other.created_by == created_by)&&(identical(other.modified_by, modified_by) || other.modified_by == modified_by)&&const DeepCollectionEquality().equals(other.user_bank_info, user_bank_info)&&(identical(other.wallet, wallet) || other.wallet == wallet)&&const DeepCollectionEquality().equals(other._cars, _cars)&&const DeepCollectionEquality().equals(other._user_level, _user_level)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,id,user,address,guild_area_activity,guild_type_activity,const DeepCollectionEquality().hash(_kill_house),const DeepCollectionEquality().hash(_steward_kill_house),const DeepCollectionEquality().hash(_stewards),get_pos_status,key,create_date,modify_date,trash,const DeepCollectionEquality().hash(user_id_foreign_key),const DeepCollectionEquality().hash(address_id_foreign_key),const DeepCollectionEquality().hash(user_bank_id_foreign_key),const DeepCollectionEquality().hash(wallet_id_foreign_key),const DeepCollectionEquality().hash(provincial_government_id_key),const DeepCollectionEquality().hash(identity_documents),active,city_number,city_name,guilds_id,license_number,guilds_name,phone,type_activity,area_activity,province_number,province_name,steward,has_pos,const DeepCollectionEquality().hash(centers_allocation),const DeepCollectionEquality().hash(kill_house_centers_allocation),const DeepCollectionEquality().hash(allocation_limit),limitation_allocation,registerar_role,registerar_fullname,registerar_mobile,kill_house_register,steward_register,guilds_room_register,pos_company_register,province_accept_state,province_message,condition,description_condition,steward_active,const DeepCollectionEquality().hash(steward_allocation_limit),steward_limitation_allocation,license,const DeepCollectionEquality().hash(license_form),const DeepCollectionEquality().hash(license_file),reviewer_role,reviewer_fullname,reviewer_mobile,checker_message,final_accept,temporary_registration,created_by,modified_by,const DeepCollectionEquality().hash(user_bank_info),wallet,const DeepCollectionEquality().hash(_cars),const DeepCollectionEquality().hash(_user_level)]); + +@override +String toString() { + return 'Steward(id: $id, user: $user, address: $address, guild_area_activity: $guild_area_activity, guild_type_activity: $guild_type_activity, kill_house: $kill_house, steward_kill_house: $steward_kill_house, stewards: $stewards, get_pos_status: $get_pos_status, key: $key, create_date: $create_date, modify_date: $modify_date, trash: $trash, user_id_foreign_key: $user_id_foreign_key, address_id_foreign_key: $address_id_foreign_key, user_bank_id_foreign_key: $user_bank_id_foreign_key, wallet_id_foreign_key: $wallet_id_foreign_key, provincial_government_id_key: $provincial_government_id_key, identity_documents: $identity_documents, active: $active, city_number: $city_number, city_name: $city_name, guilds_id: $guilds_id, license_number: $license_number, guilds_name: $guilds_name, phone: $phone, type_activity: $type_activity, area_activity: $area_activity, province_number: $province_number, province_name: $province_name, steward: $steward, has_pos: $has_pos, centers_allocation: $centers_allocation, kill_house_centers_allocation: $kill_house_centers_allocation, allocation_limit: $allocation_limit, limitation_allocation: $limitation_allocation, registerar_role: $registerar_role, registerar_fullname: $registerar_fullname, registerar_mobile: $registerar_mobile, kill_house_register: $kill_house_register, steward_register: $steward_register, guilds_room_register: $guilds_room_register, pos_company_register: $pos_company_register, province_accept_state: $province_accept_state, province_message: $province_message, condition: $condition, description_condition: $description_condition, steward_active: $steward_active, steward_allocation_limit: $steward_allocation_limit, steward_limitation_allocation: $steward_limitation_allocation, license: $license, license_form: $license_form, license_file: $license_file, reviewer_role: $reviewer_role, reviewer_fullname: $reviewer_fullname, reviewer_mobile: $reviewer_mobile, checker_message: $checker_message, final_accept: $final_accept, temporary_registration: $temporary_registration, created_by: $created_by, modified_by: $modified_by, user_bank_info: $user_bank_info, wallet: $wallet, cars: $cars, user_level: $user_level)'; +} + + +} + +/// @nodoc +abstract mixin class _$StewardCopyWith<$Res> implements $StewardCopyWith<$Res> { + factory _$StewardCopyWith(_Steward value, $Res Function(_Steward) _then) = __$StewardCopyWithImpl; +@override @useResult +$Res call({ + int? id, User? user, Address? address, Activity? guild_area_activity, Activity? guild_type_activity, List? kill_house, List? steward_kill_house, List? stewards, PosStatus? get_pos_status, String? key, String? create_date, String? modify_date, bool? trash, dynamic user_id_foreign_key, dynamic address_id_foreign_key, dynamic user_bank_id_foreign_key, dynamic wallet_id_foreign_key, dynamic provincial_government_id_key, dynamic identity_documents, bool? active, int? city_number, String? city_name, String? guilds_id, String? license_number, String? guilds_name, String? phone, String? type_activity, String? area_activity, int? province_number, String? province_name, bool? steward, bool? has_pos, dynamic centers_allocation, dynamic kill_house_centers_allocation, dynamic allocation_limit, bool? limitation_allocation, String? registerar_role, String? registerar_fullname, String? registerar_mobile, bool? kill_house_register, bool? steward_register, bool? guilds_room_register, bool? pos_company_register, String? province_accept_state, String? province_message, String? condition, String? description_condition, bool? steward_active, dynamic steward_allocation_limit, bool? steward_limitation_allocation, bool? license, dynamic license_form, dynamic license_file, String? reviewer_role, String? reviewer_fullname, String? reviewer_mobile, String? checker_message, bool? final_accept, bool? temporary_registration, String? created_by, String? modified_by, dynamic user_bank_info, int? wallet, List? cars, List? user_level +}); + + +@override $UserCopyWith<$Res>? get user;@override $AddressCopyWith<$Res>? get address;@override $ActivityCopyWith<$Res>? get guild_area_activity;@override $ActivityCopyWith<$Res>? get guild_type_activity;@override $PosStatusCopyWith<$Res>? get get_pos_status; + +} +/// @nodoc +class __$StewardCopyWithImpl<$Res> + implements _$StewardCopyWith<$Res> { + __$StewardCopyWithImpl(this._self, this._then); + + final _Steward _self; + final $Res Function(_Steward) _then; + +/// Create a copy of Steward +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? user = freezed,Object? address = freezed,Object? guild_area_activity = freezed,Object? guild_type_activity = freezed,Object? kill_house = freezed,Object? steward_kill_house = freezed,Object? stewards = freezed,Object? get_pos_status = freezed,Object? key = freezed,Object? create_date = freezed,Object? modify_date = freezed,Object? trash = freezed,Object? user_id_foreign_key = freezed,Object? address_id_foreign_key = freezed,Object? user_bank_id_foreign_key = freezed,Object? wallet_id_foreign_key = freezed,Object? provincial_government_id_key = freezed,Object? identity_documents = freezed,Object? active = freezed,Object? city_number = freezed,Object? city_name = freezed,Object? guilds_id = freezed,Object? license_number = freezed,Object? guilds_name = freezed,Object? phone = freezed,Object? type_activity = freezed,Object? area_activity = freezed,Object? province_number = freezed,Object? province_name = freezed,Object? steward = freezed,Object? has_pos = freezed,Object? centers_allocation = freezed,Object? kill_house_centers_allocation = freezed,Object? allocation_limit = freezed,Object? limitation_allocation = freezed,Object? registerar_role = freezed,Object? registerar_fullname = freezed,Object? registerar_mobile = freezed,Object? kill_house_register = freezed,Object? steward_register = freezed,Object? guilds_room_register = freezed,Object? pos_company_register = freezed,Object? province_accept_state = freezed,Object? province_message = freezed,Object? condition = freezed,Object? description_condition = freezed,Object? steward_active = freezed,Object? steward_allocation_limit = freezed,Object? steward_limitation_allocation = freezed,Object? license = freezed,Object? license_form = freezed,Object? license_file = freezed,Object? reviewer_role = freezed,Object? reviewer_fullname = freezed,Object? reviewer_mobile = freezed,Object? checker_message = freezed,Object? final_accept = freezed,Object? temporary_registration = freezed,Object? created_by = freezed,Object? modified_by = freezed,Object? user_bank_info = freezed,Object? wallet = freezed,Object? cars = freezed,Object? user_level = freezed,}) { + return _then(_Steward( +id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable +as int?,user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable +as User?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable +as Address?,guild_area_activity: freezed == guild_area_activity ? _self.guild_area_activity : guild_area_activity // ignore: cast_nullable_to_non_nullable +as Activity?,guild_type_activity: freezed == guild_type_activity ? _self.guild_type_activity : guild_type_activity // ignore: cast_nullable_to_non_nullable +as Activity?,kill_house: freezed == kill_house ? _self._kill_house : kill_house // ignore: cast_nullable_to_non_nullable +as List?,steward_kill_house: freezed == steward_kill_house ? _self._steward_kill_house : steward_kill_house // ignore: cast_nullable_to_non_nullable +as List?,stewards: freezed == stewards ? _self._stewards : stewards // ignore: cast_nullable_to_non_nullable +as List?,get_pos_status: freezed == get_pos_status ? _self.get_pos_status : get_pos_status // ignore: cast_nullable_to_non_nullable +as PosStatus?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,create_date: freezed == create_date ? _self.create_date : create_date // ignore: cast_nullable_to_non_nullable +as String?,modify_date: freezed == modify_date ? _self.modify_date : modify_date // ignore: cast_nullable_to_non_nullable +as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable +as bool?,user_id_foreign_key: freezed == user_id_foreign_key ? _self.user_id_foreign_key : user_id_foreign_key // ignore: cast_nullable_to_non_nullable +as dynamic,address_id_foreign_key: freezed == address_id_foreign_key ? _self.address_id_foreign_key : address_id_foreign_key // ignore: cast_nullable_to_non_nullable +as dynamic,user_bank_id_foreign_key: freezed == user_bank_id_foreign_key ? _self.user_bank_id_foreign_key : user_bank_id_foreign_key // ignore: cast_nullable_to_non_nullable +as dynamic,wallet_id_foreign_key: freezed == wallet_id_foreign_key ? _self.wallet_id_foreign_key : wallet_id_foreign_key // ignore: cast_nullable_to_non_nullable +as dynamic,provincial_government_id_key: freezed == provincial_government_id_key ? _self.provincial_government_id_key : provincial_government_id_key // ignore: cast_nullable_to_non_nullable +as dynamic,identity_documents: freezed == identity_documents ? _self.identity_documents : identity_documents // ignore: cast_nullable_to_non_nullable +as dynamic,active: freezed == active ? _self.active : active // ignore: cast_nullable_to_non_nullable +as bool?,city_number: freezed == city_number ? _self.city_number : city_number // ignore: cast_nullable_to_non_nullable +as int?,city_name: freezed == city_name ? _self.city_name : city_name // ignore: cast_nullable_to_non_nullable +as String?,guilds_id: freezed == guilds_id ? _self.guilds_id : guilds_id // ignore: cast_nullable_to_non_nullable +as String?,license_number: freezed == license_number ? _self.license_number : license_number // ignore: cast_nullable_to_non_nullable +as String?,guilds_name: freezed == guilds_name ? _self.guilds_name : guilds_name // ignore: cast_nullable_to_non_nullable +as String?,phone: freezed == phone ? _self.phone : phone // ignore: cast_nullable_to_non_nullable +as String?,type_activity: freezed == type_activity ? _self.type_activity : type_activity // ignore: cast_nullable_to_non_nullable +as String?,area_activity: freezed == area_activity ? _self.area_activity : area_activity // ignore: cast_nullable_to_non_nullable +as String?,province_number: freezed == province_number ? _self.province_number : province_number // ignore: cast_nullable_to_non_nullable +as int?,province_name: freezed == province_name ? _self.province_name : province_name // ignore: cast_nullable_to_non_nullable +as String?,steward: freezed == steward ? _self.steward : steward // ignore: cast_nullable_to_non_nullable +as bool?,has_pos: freezed == has_pos ? _self.has_pos : has_pos // ignore: cast_nullable_to_non_nullable +as bool?,centers_allocation: freezed == centers_allocation ? _self.centers_allocation : centers_allocation // ignore: cast_nullable_to_non_nullable +as dynamic,kill_house_centers_allocation: freezed == kill_house_centers_allocation ? _self.kill_house_centers_allocation : kill_house_centers_allocation // ignore: cast_nullable_to_non_nullable +as dynamic,allocation_limit: freezed == allocation_limit ? _self.allocation_limit : allocation_limit // ignore: cast_nullable_to_non_nullable +as dynamic,limitation_allocation: freezed == limitation_allocation ? _self.limitation_allocation : limitation_allocation // ignore: cast_nullable_to_non_nullable +as bool?,registerar_role: freezed == registerar_role ? _self.registerar_role : registerar_role // ignore: cast_nullable_to_non_nullable +as String?,registerar_fullname: freezed == registerar_fullname ? _self.registerar_fullname : registerar_fullname // ignore: cast_nullable_to_non_nullable +as String?,registerar_mobile: freezed == registerar_mobile ? _self.registerar_mobile : registerar_mobile // ignore: cast_nullable_to_non_nullable +as String?,kill_house_register: freezed == kill_house_register ? _self.kill_house_register : kill_house_register // ignore: cast_nullable_to_non_nullable +as bool?,steward_register: freezed == steward_register ? _self.steward_register : steward_register // ignore: cast_nullable_to_non_nullable +as bool?,guilds_room_register: freezed == guilds_room_register ? _self.guilds_room_register : guilds_room_register // ignore: cast_nullable_to_non_nullable +as bool?,pos_company_register: freezed == pos_company_register ? _self.pos_company_register : pos_company_register // ignore: cast_nullable_to_non_nullable +as bool?,province_accept_state: freezed == province_accept_state ? _self.province_accept_state : province_accept_state // ignore: cast_nullable_to_non_nullable +as String?,province_message: freezed == province_message ? _self.province_message : province_message // ignore: cast_nullable_to_non_nullable +as String?,condition: freezed == condition ? _self.condition : condition // ignore: cast_nullable_to_non_nullable +as String?,description_condition: freezed == description_condition ? _self.description_condition : description_condition // ignore: cast_nullable_to_non_nullable +as String?,steward_active: freezed == steward_active ? _self.steward_active : steward_active // ignore: cast_nullable_to_non_nullable +as bool?,steward_allocation_limit: freezed == steward_allocation_limit ? _self.steward_allocation_limit : steward_allocation_limit // ignore: cast_nullable_to_non_nullable +as dynamic,steward_limitation_allocation: freezed == steward_limitation_allocation ? _self.steward_limitation_allocation : steward_limitation_allocation // ignore: cast_nullable_to_non_nullable +as bool?,license: freezed == license ? _self.license : license // ignore: cast_nullable_to_non_nullable +as bool?,license_form: freezed == license_form ? _self.license_form : license_form // ignore: cast_nullable_to_non_nullable +as dynamic,license_file: freezed == license_file ? _self.license_file : license_file // ignore: cast_nullable_to_non_nullable +as dynamic,reviewer_role: freezed == reviewer_role ? _self.reviewer_role : reviewer_role // ignore: cast_nullable_to_non_nullable +as String?,reviewer_fullname: freezed == reviewer_fullname ? _self.reviewer_fullname : reviewer_fullname // ignore: cast_nullable_to_non_nullable +as String?,reviewer_mobile: freezed == reviewer_mobile ? _self.reviewer_mobile : reviewer_mobile // ignore: cast_nullable_to_non_nullable +as String?,checker_message: freezed == checker_message ? _self.checker_message : checker_message // ignore: cast_nullable_to_non_nullable +as String?,final_accept: freezed == final_accept ? _self.final_accept : final_accept // ignore: cast_nullable_to_non_nullable +as bool?,temporary_registration: freezed == temporary_registration ? _self.temporary_registration : temporary_registration // ignore: cast_nullable_to_non_nullable +as bool?,created_by: freezed == created_by ? _self.created_by : created_by // ignore: cast_nullable_to_non_nullable +as String?,modified_by: freezed == modified_by ? _self.modified_by : modified_by // ignore: cast_nullable_to_non_nullable +as String?,user_bank_info: freezed == user_bank_info ? _self.user_bank_info : user_bank_info // ignore: cast_nullable_to_non_nullable +as dynamic,wallet: freezed == wallet ? _self.wallet : wallet // ignore: cast_nullable_to_non_nullable +as int?,cars: freezed == cars ? _self._cars : cars // ignore: cast_nullable_to_non_nullable +as List?,user_level: freezed == user_level ? _self._user_level : user_level // ignore: cast_nullable_to_non_nullable +as List?, + )); +} + +/// Create a copy of Steward +/// 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 Steward +/// 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 Steward +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ActivityCopyWith<$Res>? get guild_area_activity { + if (_self.guild_area_activity == null) { + return null; + } + + return $ActivityCopyWith<$Res>(_self.guild_area_activity!, (value) { + return _then(_self.copyWith(guild_area_activity: value)); + }); +}/// Create a copy of Steward +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ActivityCopyWith<$Res>? get guild_type_activity { + if (_self.guild_type_activity == null) { + return null; + } + + return $ActivityCopyWith<$Res>(_self.guild_type_activity!, (value) { + return _then(_self.copyWith(guild_type_activity: value)); + }); +}/// Create a copy of Steward +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$PosStatusCopyWith<$Res>? get get_pos_status { + if (_self.get_pos_status == null) { + return null; + } + + return $PosStatusCopyWith<$Res>(_self.get_pos_status!, (value) { + return _then(_self.copyWith(get_pos_status: value)); + }); +} +} + + +/// @nodoc +mixin _$User { + + String? get fullname; String? get first_name; String? get last_name; String? get mobile; String? get national_id; String? get city; +/// 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.first_name, first_name) || other.first_name == first_name)&&(identical(other.last_name, last_name) || other.last_name == last_name)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.national_id, national_id) || other.national_id == national_id)&&(identical(other.city, city) || other.city == city)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,fullname,first_name,last_name,mobile,national_id,city); + +@override +String toString() { + return 'User(fullname: $fullname, first_name: $first_name, last_name: $last_name, mobile: $mobile, national_id: $national_id, city: $city)'; +} + + +} + +/// @nodoc +abstract mixin class $UserCopyWith<$Res> { + factory $UserCopyWith(User value, $Res Function(User) _then) = _$UserCopyWithImpl; +@useResult +$Res call({ + String? fullname, String? first_name, String? last_name, String? mobile, String? national_id, String? 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? first_name = freezed,Object? last_name = freezed,Object? mobile = freezed,Object? national_id = freezed,Object? city = freezed,}) { + return _then(_self.copyWith( +fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable +as String?,first_name: freezed == first_name ? _self.first_name : first_name // ignore: cast_nullable_to_non_nullable +as String?,last_name: freezed == last_name ? _self.last_name : last_name // ignore: cast_nullable_to_non_nullable +as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?,national_id: freezed == national_id ? _self.national_id : national_id // ignore: cast_nullable_to_non_nullable +as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _User implements User { + _User({this.fullname, this.first_name, this.last_name, this.mobile, this.national_id, this.city}); + factory _User.fromJson(Map json) => _$UserFromJson(json); + +@override final String? fullname; +@override final String? first_name; +@override final String? last_name; +@override final String? mobile; +@override final String? national_id; +@override final String? city; + +/// 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.first_name, first_name) || other.first_name == first_name)&&(identical(other.last_name, last_name) || other.last_name == last_name)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.national_id, national_id) || other.national_id == national_id)&&(identical(other.city, city) || other.city == city)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,fullname,first_name,last_name,mobile,national_id,city); + +@override +String toString() { + return 'User(fullname: $fullname, first_name: $first_name, last_name: $last_name, mobile: $mobile, national_id: $national_id, city: $city)'; +} + + +} + +/// @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? first_name, String? last_name, String? mobile, String? national_id, String? 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? first_name = freezed,Object? last_name = freezed,Object? mobile = freezed,Object? national_id = freezed,Object? city = freezed,}) { + return _then(_User( +fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable +as String?,first_name: freezed == first_name ? _self.first_name : first_name // ignore: cast_nullable_to_non_nullable +as String?,last_name: freezed == last_name ? _self.last_name : last_name // ignore: cast_nullable_to_non_nullable +as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?,national_id: freezed == national_id ? _self.national_id : national_id // ignore: cast_nullable_to_non_nullable +as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$Address { + + Province? get province; Province? get city; String? get address; String? get postal_code; +/// 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.postal_code, postal_code) || other.postal_code == postal_code)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,province,city,address,postal_code); + +@override +String toString() { + return 'Address(province: $province, city: $city, address: $address, postal_code: $postal_code)'; +} + + +} + +/// @nodoc +abstract mixin class $AddressCopyWith<$Res> { + factory $AddressCopyWith(Address value, $Res Function(Address) _then) = _$AddressCopyWithImpl; +@useResult +$Res call({ + Province? province, Province? city, String? address, String? postal_code +}); + + +$ProvinceCopyWith<$Res>? get province;$ProvinceCopyWith<$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? postal_code = 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 Province?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable +as String?,postal_code: freezed == postal_code ? _self.postal_code : postal_code // 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') +$ProvinceCopyWith<$Res>? get city { + if (_self.city == null) { + return null; + } + + return $ProvinceCopyWith<$Res>(_self.city!, (value) { + return _then(_self.copyWith(city: value)); + }); +} +} + + +/// @nodoc +@JsonSerializable() + +class _Address implements Address { + _Address({this.province, this.city, this.address, this.postal_code}); + factory _Address.fromJson(Map json) => _$AddressFromJson(json); + +@override final Province? province; +@override final Province? city; +@override final String? address; +@override final String? postal_code; + +/// 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.postal_code, postal_code) || other.postal_code == postal_code)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,province,city,address,postal_code); + +@override +String toString() { + return 'Address(province: $province, city: $city, address: $address, postal_code: $postal_code)'; +} + + +} + +/// @nodoc +abstract mixin class _$AddressCopyWith<$Res> implements $AddressCopyWith<$Res> { + factory _$AddressCopyWith(_Address value, $Res Function(_Address) _then) = __$AddressCopyWithImpl; +@override @useResult +$Res call({ + Province? province, Province? city, String? address, String? postal_code +}); + + +@override $ProvinceCopyWith<$Res>? get province;@override $ProvinceCopyWith<$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? postal_code = 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 Province?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable +as String?,postal_code: freezed == postal_code ? _self.postal_code : postal_code // 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') +$ProvinceCopyWith<$Res>? get city { + if (_self.city == null) { + return null; + } + + return $ProvinceCopyWith<$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?, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _Province implements Province { + _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 _$Activity { + + String? get key; String? get title; +/// Create a copy of Activity +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ActivityCopyWith get copyWith => _$ActivityCopyWithImpl(this as Activity, _$identity); + + /// Serializes this Activity to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is Activity&&(identical(other.key, key) || other.key == key)&&(identical(other.title, title) || other.title == title)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,title); + +@override +String toString() { + return 'Activity(key: $key, title: $title)'; +} + + +} + +/// @nodoc +abstract mixin class $ActivityCopyWith<$Res> { + factory $ActivityCopyWith(Activity value, $Res Function(Activity) _then) = _$ActivityCopyWithImpl; +@useResult +$Res call({ + String? key, String? title +}); + + + + +} +/// @nodoc +class _$ActivityCopyWithImpl<$Res> + implements $ActivityCopyWith<$Res> { + _$ActivityCopyWithImpl(this._self, this._then); + + final Activity _self; + final $Res Function(Activity) _then; + +/// Create a copy of Activity +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? key = freezed,Object? title = freezed,}) { + return _then(_self.copyWith( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,title: freezed == title ? _self.title : title // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _Activity implements Activity { + _Activity({this.key, this.title}); + factory _Activity.fromJson(Map json) => _$ActivityFromJson(json); + +@override final String? key; +@override final String? title; + +/// Create a copy of Activity +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ActivityCopyWith<_Activity> get copyWith => __$ActivityCopyWithImpl<_Activity>(this, _$identity); + +@override +Map toJson() { + return _$ActivityToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Activity&&(identical(other.key, key) || other.key == key)&&(identical(other.title, title) || other.title == title)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,title); + +@override +String toString() { + return 'Activity(key: $key, title: $title)'; +} + + +} + +/// @nodoc +abstract mixin class _$ActivityCopyWith<$Res> implements $ActivityCopyWith<$Res> { + factory _$ActivityCopyWith(_Activity value, $Res Function(_Activity) _then) = __$ActivityCopyWithImpl; +@override @useResult +$Res call({ + String? key, String? title +}); + + + + +} +/// @nodoc +class __$ActivityCopyWithImpl<$Res> + implements _$ActivityCopyWith<$Res> { + __$ActivityCopyWithImpl(this._self, this._then); + + final _Activity _self; + final $Res Function(_Activity) _then; + +/// Create a copy of Activity +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? key = freezed,Object? title = freezed,}) { + return _then(_Activity( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,title: freezed == title ? _self.title : title // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$PosStatus { + + int? get len_active_sessions; bool? get has_pons; bool? get has_active_pons; +/// Create a copy of PosStatus +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$PosStatusCopyWith get copyWith => _$PosStatusCopyWithImpl(this as PosStatus, _$identity); + + /// Serializes this PosStatus to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is PosStatus&&(identical(other.len_active_sessions, len_active_sessions) || other.len_active_sessions == len_active_sessions)&&(identical(other.has_pons, has_pons) || other.has_pons == has_pons)&&(identical(other.has_active_pons, has_active_pons) || other.has_active_pons == has_active_pons)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,len_active_sessions,has_pons,has_active_pons); + +@override +String toString() { + return 'PosStatus(len_active_sessions: $len_active_sessions, has_pons: $has_pons, has_active_pons: $has_active_pons)'; +} + + +} + +/// @nodoc +abstract mixin class $PosStatusCopyWith<$Res> { + factory $PosStatusCopyWith(PosStatus value, $Res Function(PosStatus) _then) = _$PosStatusCopyWithImpl; +@useResult +$Res call({ + int? len_active_sessions, bool? has_pons, bool? has_active_pons +}); + + + + +} +/// @nodoc +class _$PosStatusCopyWithImpl<$Res> + implements $PosStatusCopyWith<$Res> { + _$PosStatusCopyWithImpl(this._self, this._then); + + final PosStatus _self; + final $Res Function(PosStatus) _then; + +/// Create a copy of PosStatus +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? len_active_sessions = freezed,Object? has_pons = freezed,Object? has_active_pons = freezed,}) { + return _then(_self.copyWith( +len_active_sessions: freezed == len_active_sessions ? _self.len_active_sessions : len_active_sessions // ignore: cast_nullable_to_non_nullable +as int?,has_pons: freezed == has_pons ? _self.has_pons : has_pons // ignore: cast_nullable_to_non_nullable +as bool?,has_active_pons: freezed == has_active_pons ? _self.has_active_pons : has_active_pons // ignore: cast_nullable_to_non_nullable +as bool?, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _PosStatus implements PosStatus { + _PosStatus({this.len_active_sessions, this.has_pons, this.has_active_pons}); + factory _PosStatus.fromJson(Map json) => _$PosStatusFromJson(json); + +@override final int? len_active_sessions; +@override final bool? has_pons; +@override final bool? has_active_pons; + +/// Create a copy of PosStatus +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$PosStatusCopyWith<_PosStatus> get copyWith => __$PosStatusCopyWithImpl<_PosStatus>(this, _$identity); + +@override +Map toJson() { + return _$PosStatusToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _PosStatus&&(identical(other.len_active_sessions, len_active_sessions) || other.len_active_sessions == len_active_sessions)&&(identical(other.has_pons, has_pons) || other.has_pons == has_pons)&&(identical(other.has_active_pons, has_active_pons) || other.has_active_pons == has_active_pons)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,len_active_sessions,has_pons,has_active_pons); + +@override +String toString() { + return 'PosStatus(len_active_sessions: $len_active_sessions, has_pons: $has_pons, has_active_pons: $has_active_pons)'; +} + + +} + +/// @nodoc +abstract mixin class _$PosStatusCopyWith<$Res> implements $PosStatusCopyWith<$Res> { + factory _$PosStatusCopyWith(_PosStatus value, $Res Function(_PosStatus) _then) = __$PosStatusCopyWithImpl; +@override @useResult +$Res call({ + int? len_active_sessions, bool? has_pons, bool? has_active_pons +}); + + + + +} +/// @nodoc +class __$PosStatusCopyWithImpl<$Res> + implements _$PosStatusCopyWith<$Res> { + __$PosStatusCopyWithImpl(this._self, this._then); + + final _PosStatus _self; + final $Res Function(_PosStatus) _then; + +/// Create a copy of PosStatus +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? len_active_sessions = freezed,Object? has_pons = freezed,Object? has_active_pons = freezed,}) { + return _then(_PosStatus( +len_active_sessions: freezed == len_active_sessions ? _self.len_active_sessions : len_active_sessions // ignore: cast_nullable_to_non_nullable +as int?,has_pons: freezed == has_pons ? _self.has_pons : has_pons // ignore: cast_nullable_to_non_nullable +as bool?,has_active_pons: freezed == has_active_pons ? _self.has_active_pons : has_active_pons // ignore: cast_nullable_to_non_nullable +as bool?, + )); +} + + +} + +// dart format on diff --git a/packages/chicken/lib/data/models/response/allocated_made/allocated_made.g.dart b/packages/chicken/lib/data/models/response/allocated_made/allocated_made.g.dart new file mode 100644 index 0000000..9116ccf --- /dev/null +++ b/packages/chicken/lib/data/models/response/allocated_made/allocated_made.g.dart @@ -0,0 +1,373 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'allocated_made.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +_AllocatedMadeModel _$AllocatedMadeModelFromJson(Map json) => + _AllocatedMadeModel( + count: (json['count'] as num?)?.toInt(), + next: json['next'] as String?, + previous: json['previous'] as String?, + results: (json['results'] as List?) + ?.map((e) => AllocatedMadeResult.fromJson(e as Map)) + .toList(), + ); + +Map _$AllocatedMadeModelToJson(_AllocatedMadeModel instance) => + { + 'count': instance.count, + 'next': instance.next, + 'previous': instance.previous, + 'results': instance.results, + }; + +_AllocatedMadeResult _$AllocatedMadeResultFromJson( + Map json, +) => _AllocatedMadeResult( + id: (json['id'] as num?)?.toInt(), + product: json['product'] == null + ? null + : Product.fromJson(json['product'] as Map), + kill_house: json['kill_house'], + to_kill_house: json['to_kill_house'], + steward: json['steward'] == null + ? null + : Steward.fromJson(json['steward'] as Map), + to_steward: json['to_steward'], + guilds: json['guilds'], + to_guilds: json['to_guilds'] == null + ? null + : Steward.fromJson(json['to_guilds'] as Map), + to_cold_house: json['to_cold_house'], + index_weight: (json['index_weight'] as num?)?.toInt(), + date_timestamp: (json['date_timestamp'] as num?)?.toInt(), + new_state: (json['new_state'] as num?)?.toInt(), + new_receiver_state: (json['new_receiver_state'] as num?)?.toInt(), + new_allocation_state: (json['new_allocation_state'] as num?)?.toInt(), + key: json['key'] as String?, + create_date: json['create_date'] as String?, + modify_date: json['modify_date'] as String?, + trash: json['trash'] as bool?, + number_of_carcasses: (json['number_of_carcasses'] as num?)?.toInt(), + real_number_of_carcasses: (json['real_number_of_carcasses'] as num?)?.toInt(), + receiver_real_number_of_carcasses: + (json['receiver_real_number_of_carcasses'] as num?)?.toInt(), + weight_of_carcasses: (json['weight_of_carcasses'] as num?)?.toInt(), + real_weight_of_carcasses: (json['real_weight_of_carcasses'] as num?)?.toInt(), + receiver_real_weight_of_carcasses: + (json['receiver_real_weight_of_carcasses'] as num?)?.toInt(), + weight_loss_of_carcasses: (json['weight_loss_of_carcasses'] as num?)?.toInt(), + final_registration: json['final_registration'] as bool?, + sell_type: json['sell_type'] as String?, + product_name: json['product_name'] as String?, + seller_type: json['seller_type'] as String?, + type: json['type'] as String?, + sale_type: json['sale_type'] as String?, + allocation_type: json['allocation_type'] as String?, + system_registration_code: json['system_registration_code'] as bool?, + registration_code: (json['registration_code'] as num?)?.toInt(), + amount: (json['amount'] as num?)?.toInt(), + total_amount: (json['total_amount'] as num?)?.toInt(), + total_amount_paid: (json['total_amount_paid'] as num?)?.toInt(), + total_amount_remain: (json['total_amount_remain'] as num?)?.toInt(), + logged_registration_code: json['logged_registration_code'] as String?, + state: json['state'] as String?, + receiver_state: json['receiver_state'] as String?, + allocation_state: json['allocation_state'] as String?, + date: json['date'] as String?, + role: json['role'] as String?, + steward_temp_key: json['steward_temp_key'] as String?, + approved_price_status: json['approved_price_status'] as bool?, + calculate_status: json['calculate_status'] as bool?, + temporary_trash: json['temporary_trash'] as bool?, + temporary_deleted: json['temporary_deleted'] as bool?, + created_by: json['created_by'] as String?, + modified_by: json['modified_by'] as String?, + ware_house: json['ware_house'], + steward_ware_house: json['steward_ware_house'], + car: json['car'], + dispenser: json['dispenser'], +); + +Map _$AllocatedMadeResultToJson( + _AllocatedMadeResult instance, +) => { + 'id': instance.id, + 'product': instance.product, + 'kill_house': instance.kill_house, + 'to_kill_house': instance.to_kill_house, + 'steward': instance.steward, + 'to_steward': instance.to_steward, + 'guilds': instance.guilds, + 'to_guilds': instance.to_guilds, + 'to_cold_house': instance.to_cold_house, + 'index_weight': instance.index_weight, + 'date_timestamp': instance.date_timestamp, + 'new_state': instance.new_state, + 'new_receiver_state': instance.new_receiver_state, + 'new_allocation_state': instance.new_allocation_state, + 'key': instance.key, + 'create_date': instance.create_date, + 'modify_date': instance.modify_date, + 'trash': instance.trash, + 'number_of_carcasses': instance.number_of_carcasses, + 'real_number_of_carcasses': instance.real_number_of_carcasses, + 'receiver_real_number_of_carcasses': + instance.receiver_real_number_of_carcasses, + 'weight_of_carcasses': instance.weight_of_carcasses, + 'real_weight_of_carcasses': instance.real_weight_of_carcasses, + 'receiver_real_weight_of_carcasses': + instance.receiver_real_weight_of_carcasses, + 'weight_loss_of_carcasses': instance.weight_loss_of_carcasses, + 'final_registration': instance.final_registration, + 'sell_type': instance.sell_type, + 'product_name': instance.product_name, + 'seller_type': instance.seller_type, + 'type': instance.type, + 'sale_type': instance.sale_type, + 'allocation_type': instance.allocation_type, + 'system_registration_code': instance.system_registration_code, + 'registration_code': instance.registration_code, + 'amount': instance.amount, + 'total_amount': instance.total_amount, + 'total_amount_paid': instance.total_amount_paid, + 'total_amount_remain': instance.total_amount_remain, + 'logged_registration_code': instance.logged_registration_code, + 'state': instance.state, + 'receiver_state': instance.receiver_state, + 'allocation_state': instance.allocation_state, + 'date': instance.date, + 'role': instance.role, + 'steward_temp_key': instance.steward_temp_key, + 'approved_price_status': instance.approved_price_status, + 'calculate_status': instance.calculate_status, + 'temporary_trash': instance.temporary_trash, + 'temporary_deleted': instance.temporary_deleted, + 'created_by': instance.created_by, + 'modified_by': instance.modified_by, + 'ware_house': instance.ware_house, + 'steward_ware_house': instance.steward_ware_house, + 'car': instance.car, + 'dispenser': instance.dispenser, +}; + +_Product _$ProductFromJson(Map json) => + _Product(weight_average: (json['weight_average'] as num?)?.toInt()); + +Map _$ProductToJson(_Product instance) => { + 'weight_average': instance.weight_average, +}; + +_Steward _$StewardFromJson(Map json) => _Steward( + id: (json['id'] as num?)?.toInt(), + user: json['user'] == null + ? null + : User.fromJson(json['user'] as Map), + address: json['address'] == null + ? null + : Address.fromJson(json['address'] as Map), + guild_area_activity: json['guild_area_activity'] == null + ? null + : Activity.fromJson(json['guild_area_activity'] as Map), + guild_type_activity: json['guild_type_activity'] == null + ? null + : Activity.fromJson(json['guild_type_activity'] as Map), + kill_house: json['kill_house'] as List?, + steward_kill_house: json['steward_kill_house'] as List?, + stewards: json['stewards'] as List?, + get_pos_status: json['get_pos_status'] == null + ? null + : PosStatus.fromJson(json['get_pos_status'] as Map), + key: json['key'] as String?, + create_date: json['create_date'] as String?, + modify_date: json['modify_date'] as String?, + trash: json['trash'] as bool?, + user_id_foreign_key: json['user_id_foreign_key'], + address_id_foreign_key: json['address_id_foreign_key'], + user_bank_id_foreign_key: json['user_bank_id_foreign_key'], + wallet_id_foreign_key: json['wallet_id_foreign_key'], + provincial_government_id_key: json['provincial_government_id_key'], + identity_documents: json['identity_documents'], + active: json['active'] as bool?, + city_number: (json['city_number'] as num?)?.toInt(), + city_name: json['city_name'] as String?, + guilds_id: json['guilds_id'] as String?, + license_number: json['license_number'] as String?, + guilds_name: json['guilds_name'] as String?, + phone: json['phone'] as String?, + type_activity: json['type_activity'] as String?, + area_activity: json['area_activity'] as String?, + province_number: (json['province_number'] as num?)?.toInt(), + province_name: json['province_name'] as String?, + steward: json['steward'] as bool?, + has_pos: json['has_pos'] as bool?, + centers_allocation: json['centers_allocation'], + kill_house_centers_allocation: json['kill_house_centers_allocation'], + allocation_limit: json['allocation_limit'], + limitation_allocation: json['limitation_allocation'] as bool?, + registerar_role: json['registerar_role'] as String?, + registerar_fullname: json['registerar_fullname'] as String?, + registerar_mobile: json['registerar_mobile'] as String?, + kill_house_register: json['kill_house_register'] as bool?, + steward_register: json['steward_register'] as bool?, + guilds_room_register: json['guilds_room_register'] as bool?, + pos_company_register: json['pos_company_register'] as bool?, + province_accept_state: json['province_accept_state'] as String?, + province_message: json['province_message'] as String?, + condition: json['condition'] as String?, + description_condition: json['description_condition'] as String?, + steward_active: json['steward_active'] as bool?, + steward_allocation_limit: json['steward_allocation_limit'], + steward_limitation_allocation: json['steward_limitation_allocation'] as bool?, + license: json['license'] as bool?, + license_form: json['license_form'], + license_file: json['license_file'], + reviewer_role: json['reviewer_role'] as String?, + reviewer_fullname: json['reviewer_fullname'] as String?, + reviewer_mobile: json['reviewer_mobile'] as String?, + checker_message: json['checker_message'] as String?, + final_accept: json['final_accept'] as bool?, + temporary_registration: json['temporary_registration'] as bool?, + created_by: json['created_by'] as String?, + modified_by: json['modified_by'] as String?, + user_bank_info: json['user_bank_info'], + wallet: (json['wallet'] as num?)?.toInt(), + cars: json['cars'] as List?, + user_level: json['user_level'] as List?, +); + +Map _$StewardToJson(_Steward instance) => { + 'id': instance.id, + 'user': instance.user, + 'address': instance.address, + 'guild_area_activity': instance.guild_area_activity, + 'guild_type_activity': instance.guild_type_activity, + 'kill_house': instance.kill_house, + 'steward_kill_house': instance.steward_kill_house, + 'stewards': instance.stewards, + 'get_pos_status': instance.get_pos_status, + 'key': instance.key, + 'create_date': instance.create_date, + 'modify_date': instance.modify_date, + 'trash': instance.trash, + 'user_id_foreign_key': instance.user_id_foreign_key, + 'address_id_foreign_key': instance.address_id_foreign_key, + 'user_bank_id_foreign_key': instance.user_bank_id_foreign_key, + 'wallet_id_foreign_key': instance.wallet_id_foreign_key, + 'provincial_government_id_key': instance.provincial_government_id_key, + 'identity_documents': instance.identity_documents, + 'active': instance.active, + 'city_number': instance.city_number, + 'city_name': instance.city_name, + 'guilds_id': instance.guilds_id, + 'license_number': instance.license_number, + 'guilds_name': instance.guilds_name, + 'phone': instance.phone, + 'type_activity': instance.type_activity, + 'area_activity': instance.area_activity, + 'province_number': instance.province_number, + 'province_name': instance.province_name, + 'steward': instance.steward, + 'has_pos': instance.has_pos, + 'centers_allocation': instance.centers_allocation, + 'kill_house_centers_allocation': instance.kill_house_centers_allocation, + 'allocation_limit': instance.allocation_limit, + 'limitation_allocation': instance.limitation_allocation, + 'registerar_role': instance.registerar_role, + 'registerar_fullname': instance.registerar_fullname, + 'registerar_mobile': instance.registerar_mobile, + 'kill_house_register': instance.kill_house_register, + 'steward_register': instance.steward_register, + 'guilds_room_register': instance.guilds_room_register, + 'pos_company_register': instance.pos_company_register, + 'province_accept_state': instance.province_accept_state, + 'province_message': instance.province_message, + 'condition': instance.condition, + 'description_condition': instance.description_condition, + 'steward_active': instance.steward_active, + 'steward_allocation_limit': instance.steward_allocation_limit, + 'steward_limitation_allocation': instance.steward_limitation_allocation, + 'license': instance.license, + 'license_form': instance.license_form, + 'license_file': instance.license_file, + 'reviewer_role': instance.reviewer_role, + 'reviewer_fullname': instance.reviewer_fullname, + 'reviewer_mobile': instance.reviewer_mobile, + 'checker_message': instance.checker_message, + 'final_accept': instance.final_accept, + 'temporary_registration': instance.temporary_registration, + 'created_by': instance.created_by, + 'modified_by': instance.modified_by, + 'user_bank_info': instance.user_bank_info, + 'wallet': instance.wallet, + 'cars': instance.cars, + 'user_level': instance.user_level, +}; + +_User _$UserFromJson(Map json) => _User( + fullname: json['fullname'] as String?, + first_name: json['first_name'] as String?, + last_name: json['last_name'] as String?, + mobile: json['mobile'] as String?, + national_id: json['national_id'] as String?, + city: json['city'] as String?, +); + +Map _$UserToJson(_User instance) => { + 'fullname': instance.fullname, + 'first_name': instance.first_name, + 'last_name': instance.last_name, + 'mobile': instance.mobile, + 'national_id': instance.national_id, + 'city': instance.city, +}; + +_Address _$AddressFromJson(Map json) => _Address( + province: json['province'] == null + ? null + : Province.fromJson(json['province'] as Map), + city: json['city'] == null + ? null + : Province.fromJson(json['city'] as Map), + address: json['address'] as String?, + postal_code: json['postal_code'] as String?, +); + +Map _$AddressToJson(_Address instance) => { + 'province': instance.province, + 'city': instance.city, + 'address': instance.address, + 'postal_code': instance.postal_code, +}; + +_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, +}; + +_Activity _$ActivityFromJson(Map json) => + _Activity(key: json['key'] as String?, title: json['title'] as String?); + +Map _$ActivityToJson(_Activity instance) => { + 'key': instance.key, + 'title': instance.title, +}; + +_PosStatus _$PosStatusFromJson(Map json) => _PosStatus( + len_active_sessions: (json['len_active_sessions'] as num?)?.toInt(), + has_pons: json['has_pons'] as bool?, + has_active_pons: json['has_active_pons'] as bool?, +); + +Map _$PosStatusToJson(_PosStatus instance) => + { + 'len_active_sessions': instance.len_active_sessions, + 'has_pons': instance.has_pons, + 'has_active_pons': instance.has_active_pons, + }; diff --git a/packages/chicken/lib/data/models/response/bar_information/bar_information.dart b/packages/chicken/lib/data/models/response/bar_information/bar_information.dart new file mode 100644 index 0000000..ed39c98 --- /dev/null +++ b/packages/chicken/lib/data/models/response/bar_information/bar_information.dart @@ -0,0 +1,25 @@ +import 'package:freezed_annotation/freezed_annotation.dart'; + +part 'bar_information.freezed.dart'; +part 'bar_information.g.dart'; + +@freezed +abstract class BarInformation with _$BarInformation { + const factory BarInformation({ + int? totalBars, + int? totalBarsQuantity, + double? totalBarsWeight, + int? totalEnteredBars, + int? totalEnteredBarsQuantity, + double? totalEnteredBarsWeight, + int? totalNotEnteredBars, + int? totalNotEnteredBarsQuantity, + double? totalNotEnteredKillHouseRequestsWeight, + int? totalRejectedBars, + int? totalRejectedBarsQuantity, + double? totalRejectedBarsWeight, + }) = _BarInformation; + + factory BarInformation.fromJson(Map json) => + _$BarInformationFromJson(json); +} diff --git a/packages/chicken/lib/data/models/response/bar_information/bar_information.freezed.dart b/packages/chicken/lib/data/models/response/bar_information/bar_information.freezed.dart new file mode 100644 index 0000000..e8b13e8 --- /dev/null +++ b/packages/chicken/lib/data/models/response/bar_information/bar_information.freezed.dart @@ -0,0 +1,181 @@ +// dart format width=80 +// coverage:ignore-file +// GENERATED CODE - DO NOT MODIFY BY HAND +// 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 'bar_information.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; + +/// @nodoc +mixin _$BarInformation { + + int? get totalBars; int? get totalBarsQuantity; double? get totalBarsWeight; int? get totalEnteredBars; int? get totalEnteredBarsQuantity; double? get totalEnteredBarsWeight; int? get totalNotEnteredBars; int? get totalNotEnteredBarsQuantity; double? get totalNotEnteredKillHouseRequestsWeight; int? get totalRejectedBars; int? get totalRejectedBarsQuantity; double? get totalRejectedBarsWeight; +/// Create a copy of BarInformation +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$BarInformationCopyWith get copyWith => _$BarInformationCopyWithImpl(this as BarInformation, _$identity); + + /// Serializes this BarInformation to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is BarInformation&&(identical(other.totalBars, totalBars) || other.totalBars == totalBars)&&(identical(other.totalBarsQuantity, totalBarsQuantity) || other.totalBarsQuantity == totalBarsQuantity)&&(identical(other.totalBarsWeight, totalBarsWeight) || other.totalBarsWeight == totalBarsWeight)&&(identical(other.totalEnteredBars, totalEnteredBars) || other.totalEnteredBars == totalEnteredBars)&&(identical(other.totalEnteredBarsQuantity, totalEnteredBarsQuantity) || other.totalEnteredBarsQuantity == totalEnteredBarsQuantity)&&(identical(other.totalEnteredBarsWeight, totalEnteredBarsWeight) || other.totalEnteredBarsWeight == totalEnteredBarsWeight)&&(identical(other.totalNotEnteredBars, totalNotEnteredBars) || other.totalNotEnteredBars == totalNotEnteredBars)&&(identical(other.totalNotEnteredBarsQuantity, totalNotEnteredBarsQuantity) || other.totalNotEnteredBarsQuantity == totalNotEnteredBarsQuantity)&&(identical(other.totalNotEnteredKillHouseRequestsWeight, totalNotEnteredKillHouseRequestsWeight) || other.totalNotEnteredKillHouseRequestsWeight == totalNotEnteredKillHouseRequestsWeight)&&(identical(other.totalRejectedBars, totalRejectedBars) || other.totalRejectedBars == totalRejectedBars)&&(identical(other.totalRejectedBarsQuantity, totalRejectedBarsQuantity) || other.totalRejectedBarsQuantity == totalRejectedBarsQuantity)&&(identical(other.totalRejectedBarsWeight, totalRejectedBarsWeight) || other.totalRejectedBarsWeight == totalRejectedBarsWeight)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,totalBars,totalBarsQuantity,totalBarsWeight,totalEnteredBars,totalEnteredBarsQuantity,totalEnteredBarsWeight,totalNotEnteredBars,totalNotEnteredBarsQuantity,totalNotEnteredKillHouseRequestsWeight,totalRejectedBars,totalRejectedBarsQuantity,totalRejectedBarsWeight); + +@override +String toString() { + return 'BarInformation(totalBars: $totalBars, totalBarsQuantity: $totalBarsQuantity, totalBarsWeight: $totalBarsWeight, totalEnteredBars: $totalEnteredBars, totalEnteredBarsQuantity: $totalEnteredBarsQuantity, totalEnteredBarsWeight: $totalEnteredBarsWeight, totalNotEnteredBars: $totalNotEnteredBars, totalNotEnteredBarsQuantity: $totalNotEnteredBarsQuantity, totalNotEnteredKillHouseRequestsWeight: $totalNotEnteredKillHouseRequestsWeight, totalRejectedBars: $totalRejectedBars, totalRejectedBarsQuantity: $totalRejectedBarsQuantity, totalRejectedBarsWeight: $totalRejectedBarsWeight)'; +} + + +} + +/// @nodoc +abstract mixin class $BarInformationCopyWith<$Res> { + factory $BarInformationCopyWith(BarInformation value, $Res Function(BarInformation) _then) = _$BarInformationCopyWithImpl; +@useResult +$Res call({ + int? totalBars, int? totalBarsQuantity, double? totalBarsWeight, int? totalEnteredBars, int? totalEnteredBarsQuantity, double? totalEnteredBarsWeight, int? totalNotEnteredBars, int? totalNotEnteredBarsQuantity, double? totalNotEnteredKillHouseRequestsWeight, int? totalRejectedBars, int? totalRejectedBarsQuantity, double? totalRejectedBarsWeight +}); + + + + +} +/// @nodoc +class _$BarInformationCopyWithImpl<$Res> + implements $BarInformationCopyWith<$Res> { + _$BarInformationCopyWithImpl(this._self, this._then); + + final BarInformation _self; + final $Res Function(BarInformation) _then; + +/// Create a copy of BarInformation +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? totalBars = freezed,Object? totalBarsQuantity = freezed,Object? totalBarsWeight = freezed,Object? totalEnteredBars = freezed,Object? totalEnteredBarsQuantity = freezed,Object? totalEnteredBarsWeight = freezed,Object? totalNotEnteredBars = freezed,Object? totalNotEnteredBarsQuantity = freezed,Object? totalNotEnteredKillHouseRequestsWeight = freezed,Object? totalRejectedBars = freezed,Object? totalRejectedBarsQuantity = freezed,Object? totalRejectedBarsWeight = freezed,}) { + return _then(_self.copyWith( +totalBars: freezed == totalBars ? _self.totalBars : totalBars // ignore: cast_nullable_to_non_nullable +as int?,totalBarsQuantity: freezed == totalBarsQuantity ? _self.totalBarsQuantity : totalBarsQuantity // ignore: cast_nullable_to_non_nullable +as int?,totalBarsWeight: freezed == totalBarsWeight ? _self.totalBarsWeight : totalBarsWeight // ignore: cast_nullable_to_non_nullable +as double?,totalEnteredBars: freezed == totalEnteredBars ? _self.totalEnteredBars : totalEnteredBars // ignore: cast_nullable_to_non_nullable +as int?,totalEnteredBarsQuantity: freezed == totalEnteredBarsQuantity ? _self.totalEnteredBarsQuantity : totalEnteredBarsQuantity // ignore: cast_nullable_to_non_nullable +as int?,totalEnteredBarsWeight: freezed == totalEnteredBarsWeight ? _self.totalEnteredBarsWeight : totalEnteredBarsWeight // ignore: cast_nullable_to_non_nullable +as double?,totalNotEnteredBars: freezed == totalNotEnteredBars ? _self.totalNotEnteredBars : totalNotEnteredBars // ignore: cast_nullable_to_non_nullable +as int?,totalNotEnteredBarsQuantity: freezed == totalNotEnteredBarsQuantity ? _self.totalNotEnteredBarsQuantity : totalNotEnteredBarsQuantity // ignore: cast_nullable_to_non_nullable +as int?,totalNotEnteredKillHouseRequestsWeight: freezed == totalNotEnteredKillHouseRequestsWeight ? _self.totalNotEnteredKillHouseRequestsWeight : totalNotEnteredKillHouseRequestsWeight // ignore: cast_nullable_to_non_nullable +as double?,totalRejectedBars: freezed == totalRejectedBars ? _self.totalRejectedBars : totalRejectedBars // ignore: cast_nullable_to_non_nullable +as int?,totalRejectedBarsQuantity: freezed == totalRejectedBarsQuantity ? _self.totalRejectedBarsQuantity : totalRejectedBarsQuantity // ignore: cast_nullable_to_non_nullable +as int?,totalRejectedBarsWeight: freezed == totalRejectedBarsWeight ? _self.totalRejectedBarsWeight : totalRejectedBarsWeight // ignore: cast_nullable_to_non_nullable +as double?, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _BarInformation implements BarInformation { + const _BarInformation({this.totalBars, this.totalBarsQuantity, this.totalBarsWeight, this.totalEnteredBars, this.totalEnteredBarsQuantity, this.totalEnteredBarsWeight, this.totalNotEnteredBars, this.totalNotEnteredBarsQuantity, this.totalNotEnteredKillHouseRequestsWeight, this.totalRejectedBars, this.totalRejectedBarsQuantity, this.totalRejectedBarsWeight}); + factory _BarInformation.fromJson(Map json) => _$BarInformationFromJson(json); + +@override final int? totalBars; +@override final int? totalBarsQuantity; +@override final double? totalBarsWeight; +@override final int? totalEnteredBars; +@override final int? totalEnteredBarsQuantity; +@override final double? totalEnteredBarsWeight; +@override final int? totalNotEnteredBars; +@override final int? totalNotEnteredBarsQuantity; +@override final double? totalNotEnteredKillHouseRequestsWeight; +@override final int? totalRejectedBars; +@override final int? totalRejectedBarsQuantity; +@override final double? totalRejectedBarsWeight; + +/// Create a copy of BarInformation +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$BarInformationCopyWith<_BarInformation> get copyWith => __$BarInformationCopyWithImpl<_BarInformation>(this, _$identity); + +@override +Map toJson() { + return _$BarInformationToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _BarInformation&&(identical(other.totalBars, totalBars) || other.totalBars == totalBars)&&(identical(other.totalBarsQuantity, totalBarsQuantity) || other.totalBarsQuantity == totalBarsQuantity)&&(identical(other.totalBarsWeight, totalBarsWeight) || other.totalBarsWeight == totalBarsWeight)&&(identical(other.totalEnteredBars, totalEnteredBars) || other.totalEnteredBars == totalEnteredBars)&&(identical(other.totalEnteredBarsQuantity, totalEnteredBarsQuantity) || other.totalEnteredBarsQuantity == totalEnteredBarsQuantity)&&(identical(other.totalEnteredBarsWeight, totalEnteredBarsWeight) || other.totalEnteredBarsWeight == totalEnteredBarsWeight)&&(identical(other.totalNotEnteredBars, totalNotEnteredBars) || other.totalNotEnteredBars == totalNotEnteredBars)&&(identical(other.totalNotEnteredBarsQuantity, totalNotEnteredBarsQuantity) || other.totalNotEnteredBarsQuantity == totalNotEnteredBarsQuantity)&&(identical(other.totalNotEnteredKillHouseRequestsWeight, totalNotEnteredKillHouseRequestsWeight) || other.totalNotEnteredKillHouseRequestsWeight == totalNotEnteredKillHouseRequestsWeight)&&(identical(other.totalRejectedBars, totalRejectedBars) || other.totalRejectedBars == totalRejectedBars)&&(identical(other.totalRejectedBarsQuantity, totalRejectedBarsQuantity) || other.totalRejectedBarsQuantity == totalRejectedBarsQuantity)&&(identical(other.totalRejectedBarsWeight, totalRejectedBarsWeight) || other.totalRejectedBarsWeight == totalRejectedBarsWeight)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,totalBars,totalBarsQuantity,totalBarsWeight,totalEnteredBars,totalEnteredBarsQuantity,totalEnteredBarsWeight,totalNotEnteredBars,totalNotEnteredBarsQuantity,totalNotEnteredKillHouseRequestsWeight,totalRejectedBars,totalRejectedBarsQuantity,totalRejectedBarsWeight); + +@override +String toString() { + return 'BarInformation(totalBars: $totalBars, totalBarsQuantity: $totalBarsQuantity, totalBarsWeight: $totalBarsWeight, totalEnteredBars: $totalEnteredBars, totalEnteredBarsQuantity: $totalEnteredBarsQuantity, totalEnteredBarsWeight: $totalEnteredBarsWeight, totalNotEnteredBars: $totalNotEnteredBars, totalNotEnteredBarsQuantity: $totalNotEnteredBarsQuantity, totalNotEnteredKillHouseRequestsWeight: $totalNotEnteredKillHouseRequestsWeight, totalRejectedBars: $totalRejectedBars, totalRejectedBarsQuantity: $totalRejectedBarsQuantity, totalRejectedBarsWeight: $totalRejectedBarsWeight)'; +} + + +} + +/// @nodoc +abstract mixin class _$BarInformationCopyWith<$Res> implements $BarInformationCopyWith<$Res> { + factory _$BarInformationCopyWith(_BarInformation value, $Res Function(_BarInformation) _then) = __$BarInformationCopyWithImpl; +@override @useResult +$Res call({ + int? totalBars, int? totalBarsQuantity, double? totalBarsWeight, int? totalEnteredBars, int? totalEnteredBarsQuantity, double? totalEnteredBarsWeight, int? totalNotEnteredBars, int? totalNotEnteredBarsQuantity, double? totalNotEnteredKillHouseRequestsWeight, int? totalRejectedBars, int? totalRejectedBarsQuantity, double? totalRejectedBarsWeight +}); + + + + +} +/// @nodoc +class __$BarInformationCopyWithImpl<$Res> + implements _$BarInformationCopyWith<$Res> { + __$BarInformationCopyWithImpl(this._self, this._then); + + final _BarInformation _self; + final $Res Function(_BarInformation) _then; + +/// Create a copy of BarInformation +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? totalBars = freezed,Object? totalBarsQuantity = freezed,Object? totalBarsWeight = freezed,Object? totalEnteredBars = freezed,Object? totalEnteredBarsQuantity = freezed,Object? totalEnteredBarsWeight = freezed,Object? totalNotEnteredBars = freezed,Object? totalNotEnteredBarsQuantity = freezed,Object? totalNotEnteredKillHouseRequestsWeight = freezed,Object? totalRejectedBars = freezed,Object? totalRejectedBarsQuantity = freezed,Object? totalRejectedBarsWeight = freezed,}) { + return _then(_BarInformation( +totalBars: freezed == totalBars ? _self.totalBars : totalBars // ignore: cast_nullable_to_non_nullable +as int?,totalBarsQuantity: freezed == totalBarsQuantity ? _self.totalBarsQuantity : totalBarsQuantity // ignore: cast_nullable_to_non_nullable +as int?,totalBarsWeight: freezed == totalBarsWeight ? _self.totalBarsWeight : totalBarsWeight // ignore: cast_nullable_to_non_nullable +as double?,totalEnteredBars: freezed == totalEnteredBars ? _self.totalEnteredBars : totalEnteredBars // ignore: cast_nullable_to_non_nullable +as int?,totalEnteredBarsQuantity: freezed == totalEnteredBarsQuantity ? _self.totalEnteredBarsQuantity : totalEnteredBarsQuantity // ignore: cast_nullable_to_non_nullable +as int?,totalEnteredBarsWeight: freezed == totalEnteredBarsWeight ? _self.totalEnteredBarsWeight : totalEnteredBarsWeight // ignore: cast_nullable_to_non_nullable +as double?,totalNotEnteredBars: freezed == totalNotEnteredBars ? _self.totalNotEnteredBars : totalNotEnteredBars // ignore: cast_nullable_to_non_nullable +as int?,totalNotEnteredBarsQuantity: freezed == totalNotEnteredBarsQuantity ? _self.totalNotEnteredBarsQuantity : totalNotEnteredBarsQuantity // ignore: cast_nullable_to_non_nullable +as int?,totalNotEnteredKillHouseRequestsWeight: freezed == totalNotEnteredKillHouseRequestsWeight ? _self.totalNotEnteredKillHouseRequestsWeight : totalNotEnteredKillHouseRequestsWeight // ignore: cast_nullable_to_non_nullable +as double?,totalRejectedBars: freezed == totalRejectedBars ? _self.totalRejectedBars : totalRejectedBars // ignore: cast_nullable_to_non_nullable +as int?,totalRejectedBarsQuantity: freezed == totalRejectedBarsQuantity ? _self.totalRejectedBarsQuantity : totalRejectedBarsQuantity // ignore: cast_nullable_to_non_nullable +as int?,totalRejectedBarsWeight: freezed == totalRejectedBarsWeight ? _self.totalRejectedBarsWeight : totalRejectedBarsWeight // ignore: cast_nullable_to_non_nullable +as double?, + )); +} + + +} + +// dart format on diff --git a/packages/chicken/lib/data/models/response/bar_information/bar_information.g.dart b/packages/chicken/lib/data/models/response/bar_information/bar_information.g.dart new file mode 100644 index 0000000..51c1221 --- /dev/null +++ b/packages/chicken/lib/data/models/response/bar_information/bar_information.g.dart @@ -0,0 +1,47 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'bar_information.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +_BarInformation _$BarInformationFromJson(Map json) => + _BarInformation( + totalBars: (json['total_bars'] as num?)?.toInt(), + totalBarsQuantity: (json['total_bars_quantity'] as num?)?.toInt(), + totalBarsWeight: (json['total_bars_weight'] as num?)?.toDouble(), + totalEnteredBars: (json['total_entered_bars'] as num?)?.toInt(), + totalEnteredBarsQuantity: (json['total_entered_bars_quantity'] as num?) + ?.toInt(), + totalEnteredBarsWeight: (json['total_entered_bars_weight'] as num?) + ?.toDouble(), + totalNotEnteredBars: (json['total_not_entered_bars'] as num?)?.toInt(), + totalNotEnteredBarsQuantity: + (json['total_not_entered_bars_quantity'] as num?)?.toInt(), + totalNotEnteredKillHouseRequestsWeight: + (json['total_not_entered_kill_house_requests_weight'] as num?) + ?.toDouble(), + totalRejectedBars: (json['total_rejected_bars'] as num?)?.toInt(), + totalRejectedBarsQuantity: (json['total_rejected_bars_quantity'] as num?) + ?.toInt(), + totalRejectedBarsWeight: (json['total_rejected_bars_weight'] as num?) + ?.toDouble(), + ); + +Map _$BarInformationToJson(_BarInformation instance) => + { + 'total_bars': instance.totalBars, + 'total_bars_quantity': instance.totalBarsQuantity, + 'total_bars_weight': instance.totalBarsWeight, + 'total_entered_bars': instance.totalEnteredBars, + 'total_entered_bars_quantity': instance.totalEnteredBarsQuantity, + 'total_entered_bars_weight': instance.totalEnteredBarsWeight, + 'total_not_entered_bars': instance.totalNotEnteredBars, + 'total_not_entered_bars_quantity': instance.totalNotEnteredBarsQuantity, + 'total_not_entered_kill_house_requests_weight': + instance.totalNotEnteredKillHouseRequestsWeight, + 'total_rejected_bars': instance.totalRejectedBars, + 'total_rejected_bars_quantity': instance.totalRejectedBarsQuantity, + 'total_rejected_bars_weight': instance.totalRejectedBarsWeight, + }; diff --git a/packages/chicken/lib/data/models/response/guild/guild_model.dart b/packages/chicken/lib/data/models/response/guild/guild_model.dart new file mode 100644 index 0000000..22beee1 --- /dev/null +++ b/packages/chicken/lib/data/models/response/guild/guild_model.dart @@ -0,0 +1,28 @@ +import 'package:freezed_annotation/freezed_annotation.dart'; + +part 'guild_model.freezed.dart'; +part 'guild_model.g.dart'; + +@freezed +abstract class GuildModel with _$GuildModel { + const factory GuildModel({ + String? key, + String? guildsName, + bool? steward, + User? user, + }) = _GuildModel; + + factory GuildModel.fromJson(Map json) => + _$GuildModelFromJson(json); +} + +@freezed +abstract class User with _$User { + const factory User({ + String? fullname, + String? mobile, + String? city, + }) = _User; + + factory User.fromJson(Map json) => _$UserFromJson(json); +} \ No newline at end of file diff --git a/packages/chicken/lib/data/models/response/guild/guild_model.freezed.dart b/packages/chicken/lib/data/models/response/guild/guild_model.freezed.dart new file mode 100644 index 0000000..1456502 --- /dev/null +++ b/packages/chicken/lib/data/models/response/guild/guild_model.freezed.dart @@ -0,0 +1,320 @@ +// dart format width=80 +// coverage:ignore-file +// GENERATED CODE - DO NOT MODIFY BY HAND +// 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 'guild_model.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; + +/// @nodoc +mixin _$GuildModel { + + String? get key; String? get guildsName; bool? get steward; User? get user; +/// Create a copy of GuildModel +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$GuildModelCopyWith get copyWith => _$GuildModelCopyWithImpl(this as GuildModel, _$identity); + + /// Serializes this GuildModel to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is GuildModel&&(identical(other.key, key) || other.key == key)&&(identical(other.guildsName, guildsName) || other.guildsName == guildsName)&&(identical(other.steward, steward) || other.steward == steward)&&(identical(other.user, user) || other.user == user)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,guildsName,steward,user); + +@override +String toString() { + return 'GuildModel(key: $key, guildsName: $guildsName, steward: $steward, user: $user)'; +} + + +} + +/// @nodoc +abstract mixin class $GuildModelCopyWith<$Res> { + factory $GuildModelCopyWith(GuildModel value, $Res Function(GuildModel) _then) = _$GuildModelCopyWithImpl; +@useResult +$Res call({ + String? key, String? guildsName, bool? steward, User? user +}); + + +$UserCopyWith<$Res>? get user; + +} +/// @nodoc +class _$GuildModelCopyWithImpl<$Res> + implements $GuildModelCopyWith<$Res> { + _$GuildModelCopyWithImpl(this._self, this._then); + + final GuildModel _self; + final $Res Function(GuildModel) _then; + +/// Create a copy of GuildModel +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? key = freezed,Object? guildsName = freezed,Object? steward = freezed,Object? user = freezed,}) { + return _then(_self.copyWith( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,guildsName: freezed == guildsName ? _self.guildsName : guildsName // ignore: cast_nullable_to_non_nullable +as String?,steward: freezed == steward ? _self.steward : steward // ignore: cast_nullable_to_non_nullable +as bool?,user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable +as User?, + )); +} +/// Create a copy of GuildModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$UserCopyWith<$Res>? get user { + if (_self.user == null) { + return null; + } + + return $UserCopyWith<$Res>(_self.user!, (value) { + return _then(_self.copyWith(user: value)); + }); +} +} + + +/// @nodoc +@JsonSerializable() + +class _GuildModel implements GuildModel { + const _GuildModel({this.key, this.guildsName, this.steward, this.user}); + factory _GuildModel.fromJson(Map json) => _$GuildModelFromJson(json); + +@override final String? key; +@override final String? guildsName; +@override final bool? steward; +@override final User? user; + +/// Create a copy of GuildModel +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$GuildModelCopyWith<_GuildModel> get copyWith => __$GuildModelCopyWithImpl<_GuildModel>(this, _$identity); + +@override +Map toJson() { + return _$GuildModelToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _GuildModel&&(identical(other.key, key) || other.key == key)&&(identical(other.guildsName, guildsName) || other.guildsName == guildsName)&&(identical(other.steward, steward) || other.steward == steward)&&(identical(other.user, user) || other.user == user)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,guildsName,steward,user); + +@override +String toString() { + return 'GuildModel(key: $key, guildsName: $guildsName, steward: $steward, user: $user)'; +} + + +} + +/// @nodoc +abstract mixin class _$GuildModelCopyWith<$Res> implements $GuildModelCopyWith<$Res> { + factory _$GuildModelCopyWith(_GuildModel value, $Res Function(_GuildModel) _then) = __$GuildModelCopyWithImpl; +@override @useResult +$Res call({ + String? key, String? guildsName, bool? steward, User? user +}); + + +@override $UserCopyWith<$Res>? get user; + +} +/// @nodoc +class __$GuildModelCopyWithImpl<$Res> + implements _$GuildModelCopyWith<$Res> { + __$GuildModelCopyWithImpl(this._self, this._then); + + final _GuildModel _self; + final $Res Function(_GuildModel) _then; + +/// Create a copy of GuildModel +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? key = freezed,Object? guildsName = freezed,Object? steward = freezed,Object? user = freezed,}) { + return _then(_GuildModel( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,guildsName: freezed == guildsName ? _self.guildsName : guildsName // ignore: cast_nullable_to_non_nullable +as String?,steward: freezed == steward ? _self.steward : steward // ignore: cast_nullable_to_non_nullable +as bool?,user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable +as User?, + )); +} + +/// Create a copy of GuildModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$UserCopyWith<$Res>? get user { + if (_self.user == null) { + return null; + } + + return $UserCopyWith<$Res>(_self.user!, (value) { + return _then(_self.copyWith(user: value)); + }); +} +} + + +/// @nodoc +mixin _$User { + + String? get fullname; String? get mobile; String? get city; +/// 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)&&(identical(other.city, city) || other.city == city)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,fullname,mobile,city); + +@override +String toString() { + return 'User(fullname: $fullname, mobile: $mobile, city: $city)'; +} + + +} + +/// @nodoc +abstract mixin class $UserCopyWith<$Res> { + factory $UserCopyWith(User value, $Res Function(User) _then) = _$UserCopyWithImpl; +@useResult +$Res call({ + String? fullname, String? mobile, String? 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? mobile = freezed,Object? city = freezed,}) { + return _then(_self.copyWith( +fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable +as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _User implements User { + const _User({this.fullname, this.mobile, this.city}); + factory _User.fromJson(Map json) => _$UserFromJson(json); + +@override final String? fullname; +@override final String? mobile; +@override final String? city; + +/// 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)&&(identical(other.city, city) || other.city == city)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,fullname,mobile,city); + +@override +String toString() { + return 'User(fullname: $fullname, mobile: $mobile, city: $city)'; +} + + +} + +/// @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, String? 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? mobile = freezed,Object? city = 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?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + +// dart format on diff --git a/packages/chicken/lib/data/models/response/guild/guild_model.g.dart b/packages/chicken/lib/data/models/response/guild/guild_model.g.dart new file mode 100644 index 0000000..4b82c26 --- /dev/null +++ b/packages/chicken/lib/data/models/response/guild/guild_model.g.dart @@ -0,0 +1,36 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'guild_model.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +_GuildModel _$GuildModelFromJson(Map json) => _GuildModel( + key: json['key'] as String?, + guildsName: json['guilds_name'] as String?, + steward: json['steward'] as bool?, + user: json['user'] == null + ? null + : User.fromJson(json['user'] as Map), +); + +Map _$GuildModelToJson(_GuildModel instance) => + { + 'key': instance.key, + 'guilds_name': instance.guildsName, + 'steward': instance.steward, + 'user': instance.user, + }; + +_User _$UserFromJson(Map json) => _User( + fullname: json['fullname'] as String?, + mobile: json['mobile'] as String?, + city: json['city'] as String?, +); + +Map _$UserToJson(_User instance) => { + 'fullname': instance.fullname, + 'mobile': instance.mobile, + 'city': instance.city, +}; diff --git a/packages/chicken/lib/data/models/response/guild_profile/guild_profile.dart b/packages/chicken/lib/data/models/response/guild_profile/guild_profile.dart new file mode 100644 index 0000000..4572332 --- /dev/null +++ b/packages/chicken/lib/data/models/response/guild_profile/guild_profile.dart @@ -0,0 +1,160 @@ +import 'package:freezed_annotation/freezed_annotation.dart'; + +part 'guild_profile.freezed.dart'; +part 'guild_profile.g.dart'; + +@freezed +abstract class GuildProfile with _$GuildProfile { + const factory GuildProfile({ + int? id, + User? user, + Address? address, + GuildAreaActivity? guild_area_activity, + GuildTypeActivity? guild_type_activity, + List? kill_house, + List? steward_kill_house, + List? stewards, + GetPosStatus? get_pos_status, + String? key, + String? create_date, + String? modify_date, + bool? trash, + String? user_id_foreign_key, + String? address_id_foreign_key, + String? user_bank_id_foreign_key, + String? wallet_id_foreign_key, + String? provincial_government_id_key, + dynamic identity_documents, + bool? active, + int? city_number, + String? city_name, + String? guilds_id, + String? license_number, + String? guilds_name, + String? phone, + String? type_activity, + String? area_activity, + int? province_number, + String? province_name, + bool? steward, + bool? has_pos, + dynamic centers_allocation, + dynamic kill_house_centers_allocation, + dynamic allocation_limit, + bool? limitation_allocation, + String? registerar_role, + String? registerar_fullname, + String? registerar_mobile, + bool? kill_house_register, + bool? steward_register, + bool? guilds_room_register, + bool? pos_company_register, + String? province_accept_state, + String? province_message, + String? condition, + String? description_condition, + bool? steward_active, + dynamic steward_allocation_limit, + bool? steward_limitation_allocation, + bool? license, + dynamic license_form, + dynamic license_file, + String? reviewer_role, + String? reviewer_fullname, + String? reviewer_mobile, + String? checker_message, + bool? final_accept, + bool? temporary_registration, + String? created_by, + String? modified_by, + dynamic user_bank_info, + int? wallet, + List? cars, + List? user_level, + }) = _GuildProfile; + + factory GuildProfile.fromJson(Map json) => + _$GuildProfileFromJson(json); +} + +@freezed +abstract class User with _$User { + const factory User({ + String? fullname, + String? first_name, + String? last_name, + String? mobile, + String? national_id, + String? city, + }) = _User; + + factory User.fromJson(Map json) => _$UserFromJson(json); +} + +@freezed +abstract class Address with _$Address { + const factory Address({ + Province? province, + City? city, + String? address, + String? postal_code, + }) = _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 GuildAreaActivity with _$GuildAreaActivity { + const factory GuildAreaActivity({ + String? key, + String? title, + }) = _GuildAreaActivity; + + factory GuildAreaActivity.fromJson(Map json) => + _$GuildAreaActivityFromJson(json); +} + +@freezed +abstract class GuildTypeActivity with _$GuildTypeActivity { + const factory GuildTypeActivity({ + String? key, + String? title, + }) = _GuildTypeActivity; + + factory GuildTypeActivity.fromJson(Map json) => + _$GuildTypeActivityFromJson(json); +} + +@freezed +abstract class GetPosStatus with _$GetPosStatus { + const factory GetPosStatus({ + int? len_active_sessions, + bool? has_pons, + bool? has_active_pons, + }) = _GetPosStatus; + + factory GetPosStatus.fromJson(Map json) => + _$GetPosStatusFromJson(json); +} \ No newline at end of file diff --git a/packages/chicken/lib/data/models/response/guild_profile/guild_profile.freezed.dart b/packages/chicken/lib/data/models/response/guild_profile/guild_profile.freezed.dart new file mode 100644 index 0000000..12b9656 --- /dev/null +++ b/packages/chicken/lib/data/models/response/guild_profile/guild_profile.freezed.dart @@ -0,0 +1,1521 @@ +// dart format width=80 +// coverage:ignore-file +// GENERATED CODE - DO NOT MODIFY BY HAND +// 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 'guild_profile.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; + +/// @nodoc +mixin _$GuildProfile { + + int? get id; User? get user; Address? get address; GuildAreaActivity? get guild_area_activity; GuildTypeActivity? get guild_type_activity; List? get kill_house; List? get steward_kill_house; List? get stewards; GetPosStatus? get get_pos_status; String? get key; String? get create_date; String? get modify_date; bool? get trash; String? get user_id_foreign_key; String? get address_id_foreign_key; String? get user_bank_id_foreign_key; String? get wallet_id_foreign_key; String? get provincial_government_id_key; dynamic get identity_documents; bool? get active; int? get city_number; String? get city_name; String? get guilds_id; String? get license_number; String? get guilds_name; String? get phone; String? get type_activity; String? get area_activity; int? get province_number; String? get province_name; bool? get steward; bool? get has_pos; dynamic get centers_allocation; dynamic get kill_house_centers_allocation; dynamic get allocation_limit; bool? get limitation_allocation; String? get registerar_role; String? get registerar_fullname; String? get registerar_mobile; bool? get kill_house_register; bool? get steward_register; bool? get guilds_room_register; bool? get pos_company_register; String? get province_accept_state; String? get province_message; String? get condition; String? get description_condition; bool? get steward_active; dynamic get steward_allocation_limit; bool? get steward_limitation_allocation; bool? get license; dynamic get license_form; dynamic get license_file; String? get reviewer_role; String? get reviewer_fullname; String? get reviewer_mobile; String? get checker_message; bool? get final_accept; bool? get temporary_registration; String? get created_by; String? get modified_by; dynamic get user_bank_info; int? get wallet; List? get cars; List? get user_level; +/// Create a copy of GuildProfile +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$GuildProfileCopyWith get copyWith => _$GuildProfileCopyWithImpl(this as GuildProfile, _$identity); + + /// Serializes this GuildProfile to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is GuildProfile&&(identical(other.id, id) || other.id == id)&&(identical(other.user, user) || other.user == user)&&(identical(other.address, address) || other.address == address)&&(identical(other.guild_area_activity, guild_area_activity) || other.guild_area_activity == guild_area_activity)&&(identical(other.guild_type_activity, guild_type_activity) || other.guild_type_activity == guild_type_activity)&&const DeepCollectionEquality().equals(other.kill_house, kill_house)&&const DeepCollectionEquality().equals(other.steward_kill_house, steward_kill_house)&&const DeepCollectionEquality().equals(other.stewards, stewards)&&(identical(other.get_pos_status, get_pos_status) || other.get_pos_status == get_pos_status)&&(identical(other.key, key) || other.key == key)&&(identical(other.create_date, create_date) || other.create_date == create_date)&&(identical(other.modify_date, modify_date) || other.modify_date == modify_date)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.user_id_foreign_key, user_id_foreign_key) || other.user_id_foreign_key == user_id_foreign_key)&&(identical(other.address_id_foreign_key, address_id_foreign_key) || other.address_id_foreign_key == address_id_foreign_key)&&(identical(other.user_bank_id_foreign_key, user_bank_id_foreign_key) || other.user_bank_id_foreign_key == user_bank_id_foreign_key)&&(identical(other.wallet_id_foreign_key, wallet_id_foreign_key) || other.wallet_id_foreign_key == wallet_id_foreign_key)&&(identical(other.provincial_government_id_key, provincial_government_id_key) || other.provincial_government_id_key == provincial_government_id_key)&&const DeepCollectionEquality().equals(other.identity_documents, identity_documents)&&(identical(other.active, active) || other.active == active)&&(identical(other.city_number, city_number) || other.city_number == city_number)&&(identical(other.city_name, city_name) || other.city_name == city_name)&&(identical(other.guilds_id, guilds_id) || other.guilds_id == guilds_id)&&(identical(other.license_number, license_number) || other.license_number == license_number)&&(identical(other.guilds_name, guilds_name) || other.guilds_name == guilds_name)&&(identical(other.phone, phone) || other.phone == phone)&&(identical(other.type_activity, type_activity) || other.type_activity == type_activity)&&(identical(other.area_activity, area_activity) || other.area_activity == area_activity)&&(identical(other.province_number, province_number) || other.province_number == province_number)&&(identical(other.province_name, province_name) || other.province_name == province_name)&&(identical(other.steward, steward) || other.steward == steward)&&(identical(other.has_pos, has_pos) || other.has_pos == has_pos)&&const DeepCollectionEquality().equals(other.centers_allocation, centers_allocation)&&const DeepCollectionEquality().equals(other.kill_house_centers_allocation, kill_house_centers_allocation)&&const DeepCollectionEquality().equals(other.allocation_limit, allocation_limit)&&(identical(other.limitation_allocation, limitation_allocation) || other.limitation_allocation == limitation_allocation)&&(identical(other.registerar_role, registerar_role) || other.registerar_role == registerar_role)&&(identical(other.registerar_fullname, registerar_fullname) || other.registerar_fullname == registerar_fullname)&&(identical(other.registerar_mobile, registerar_mobile) || other.registerar_mobile == registerar_mobile)&&(identical(other.kill_house_register, kill_house_register) || other.kill_house_register == kill_house_register)&&(identical(other.steward_register, steward_register) || other.steward_register == steward_register)&&(identical(other.guilds_room_register, guilds_room_register) || other.guilds_room_register == guilds_room_register)&&(identical(other.pos_company_register, pos_company_register) || other.pos_company_register == pos_company_register)&&(identical(other.province_accept_state, province_accept_state) || other.province_accept_state == province_accept_state)&&(identical(other.province_message, province_message) || other.province_message == province_message)&&(identical(other.condition, condition) || other.condition == condition)&&(identical(other.description_condition, description_condition) || other.description_condition == description_condition)&&(identical(other.steward_active, steward_active) || other.steward_active == steward_active)&&const DeepCollectionEquality().equals(other.steward_allocation_limit, steward_allocation_limit)&&(identical(other.steward_limitation_allocation, steward_limitation_allocation) || other.steward_limitation_allocation == steward_limitation_allocation)&&(identical(other.license, license) || other.license == license)&&const DeepCollectionEquality().equals(other.license_form, license_form)&&const DeepCollectionEquality().equals(other.license_file, license_file)&&(identical(other.reviewer_role, reviewer_role) || other.reviewer_role == reviewer_role)&&(identical(other.reviewer_fullname, reviewer_fullname) || other.reviewer_fullname == reviewer_fullname)&&(identical(other.reviewer_mobile, reviewer_mobile) || other.reviewer_mobile == reviewer_mobile)&&(identical(other.checker_message, checker_message) || other.checker_message == checker_message)&&(identical(other.final_accept, final_accept) || other.final_accept == final_accept)&&(identical(other.temporary_registration, temporary_registration) || other.temporary_registration == temporary_registration)&&(identical(other.created_by, created_by) || other.created_by == created_by)&&(identical(other.modified_by, modified_by) || other.modified_by == modified_by)&&const DeepCollectionEquality().equals(other.user_bank_info, user_bank_info)&&(identical(other.wallet, wallet) || other.wallet == wallet)&&const DeepCollectionEquality().equals(other.cars, cars)&&const DeepCollectionEquality().equals(other.user_level, user_level)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,id,user,address,guild_area_activity,guild_type_activity,const DeepCollectionEquality().hash(kill_house),const DeepCollectionEquality().hash(steward_kill_house),const DeepCollectionEquality().hash(stewards),get_pos_status,key,create_date,modify_date,trash,user_id_foreign_key,address_id_foreign_key,user_bank_id_foreign_key,wallet_id_foreign_key,provincial_government_id_key,const DeepCollectionEquality().hash(identity_documents),active,city_number,city_name,guilds_id,license_number,guilds_name,phone,type_activity,area_activity,province_number,province_name,steward,has_pos,const DeepCollectionEquality().hash(centers_allocation),const DeepCollectionEquality().hash(kill_house_centers_allocation),const DeepCollectionEquality().hash(allocation_limit),limitation_allocation,registerar_role,registerar_fullname,registerar_mobile,kill_house_register,steward_register,guilds_room_register,pos_company_register,province_accept_state,province_message,condition,description_condition,steward_active,const DeepCollectionEquality().hash(steward_allocation_limit),steward_limitation_allocation,license,const DeepCollectionEquality().hash(license_form),const DeepCollectionEquality().hash(license_file),reviewer_role,reviewer_fullname,reviewer_mobile,checker_message,final_accept,temporary_registration,created_by,modified_by,const DeepCollectionEquality().hash(user_bank_info),wallet,const DeepCollectionEquality().hash(cars),const DeepCollectionEquality().hash(user_level)]); + +@override +String toString() { + return 'GuildProfile(id: $id, user: $user, address: $address, guild_area_activity: $guild_area_activity, guild_type_activity: $guild_type_activity, kill_house: $kill_house, steward_kill_house: $steward_kill_house, stewards: $stewards, get_pos_status: $get_pos_status, key: $key, create_date: $create_date, modify_date: $modify_date, trash: $trash, user_id_foreign_key: $user_id_foreign_key, address_id_foreign_key: $address_id_foreign_key, user_bank_id_foreign_key: $user_bank_id_foreign_key, wallet_id_foreign_key: $wallet_id_foreign_key, provincial_government_id_key: $provincial_government_id_key, identity_documents: $identity_documents, active: $active, city_number: $city_number, city_name: $city_name, guilds_id: $guilds_id, license_number: $license_number, guilds_name: $guilds_name, phone: $phone, type_activity: $type_activity, area_activity: $area_activity, province_number: $province_number, province_name: $province_name, steward: $steward, has_pos: $has_pos, centers_allocation: $centers_allocation, kill_house_centers_allocation: $kill_house_centers_allocation, allocation_limit: $allocation_limit, limitation_allocation: $limitation_allocation, registerar_role: $registerar_role, registerar_fullname: $registerar_fullname, registerar_mobile: $registerar_mobile, kill_house_register: $kill_house_register, steward_register: $steward_register, guilds_room_register: $guilds_room_register, pos_company_register: $pos_company_register, province_accept_state: $province_accept_state, province_message: $province_message, condition: $condition, description_condition: $description_condition, steward_active: $steward_active, steward_allocation_limit: $steward_allocation_limit, steward_limitation_allocation: $steward_limitation_allocation, license: $license, license_form: $license_form, license_file: $license_file, reviewer_role: $reviewer_role, reviewer_fullname: $reviewer_fullname, reviewer_mobile: $reviewer_mobile, checker_message: $checker_message, final_accept: $final_accept, temporary_registration: $temporary_registration, created_by: $created_by, modified_by: $modified_by, user_bank_info: $user_bank_info, wallet: $wallet, cars: $cars, user_level: $user_level)'; +} + + +} + +/// @nodoc +abstract mixin class $GuildProfileCopyWith<$Res> { + factory $GuildProfileCopyWith(GuildProfile value, $Res Function(GuildProfile) _then) = _$GuildProfileCopyWithImpl; +@useResult +$Res call({ + int? id, User? user, Address? address, GuildAreaActivity? guild_area_activity, GuildTypeActivity? guild_type_activity, List? kill_house, List? steward_kill_house, List? stewards, GetPosStatus? get_pos_status, String? key, String? create_date, String? modify_date, bool? trash, String? user_id_foreign_key, String? address_id_foreign_key, String? user_bank_id_foreign_key, String? wallet_id_foreign_key, String? provincial_government_id_key, dynamic identity_documents, bool? active, int? city_number, String? city_name, String? guilds_id, String? license_number, String? guilds_name, String? phone, String? type_activity, String? area_activity, int? province_number, String? province_name, bool? steward, bool? has_pos, dynamic centers_allocation, dynamic kill_house_centers_allocation, dynamic allocation_limit, bool? limitation_allocation, String? registerar_role, String? registerar_fullname, String? registerar_mobile, bool? kill_house_register, bool? steward_register, bool? guilds_room_register, bool? pos_company_register, String? province_accept_state, String? province_message, String? condition, String? description_condition, bool? steward_active, dynamic steward_allocation_limit, bool? steward_limitation_allocation, bool? license, dynamic license_form, dynamic license_file, String? reviewer_role, String? reviewer_fullname, String? reviewer_mobile, String? checker_message, bool? final_accept, bool? temporary_registration, String? created_by, String? modified_by, dynamic user_bank_info, int? wallet, List? cars, List? user_level +}); + + +$UserCopyWith<$Res>? get user;$AddressCopyWith<$Res>? get address;$GuildAreaActivityCopyWith<$Res>? get guild_area_activity;$GuildTypeActivityCopyWith<$Res>? get guild_type_activity;$GetPosStatusCopyWith<$Res>? get get_pos_status; + +} +/// @nodoc +class _$GuildProfileCopyWithImpl<$Res> + implements $GuildProfileCopyWith<$Res> { + _$GuildProfileCopyWithImpl(this._self, this._then); + + final GuildProfile _self; + final $Res Function(GuildProfile) _then; + +/// Create a copy of GuildProfile +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? user = freezed,Object? address = freezed,Object? guild_area_activity = freezed,Object? guild_type_activity = freezed,Object? kill_house = freezed,Object? steward_kill_house = freezed,Object? stewards = freezed,Object? get_pos_status = freezed,Object? key = freezed,Object? create_date = freezed,Object? modify_date = freezed,Object? trash = freezed,Object? user_id_foreign_key = freezed,Object? address_id_foreign_key = freezed,Object? user_bank_id_foreign_key = freezed,Object? wallet_id_foreign_key = freezed,Object? provincial_government_id_key = freezed,Object? identity_documents = freezed,Object? active = freezed,Object? city_number = freezed,Object? city_name = freezed,Object? guilds_id = freezed,Object? license_number = freezed,Object? guilds_name = freezed,Object? phone = freezed,Object? type_activity = freezed,Object? area_activity = freezed,Object? province_number = freezed,Object? province_name = freezed,Object? steward = freezed,Object? has_pos = freezed,Object? centers_allocation = freezed,Object? kill_house_centers_allocation = freezed,Object? allocation_limit = freezed,Object? limitation_allocation = freezed,Object? registerar_role = freezed,Object? registerar_fullname = freezed,Object? registerar_mobile = freezed,Object? kill_house_register = freezed,Object? steward_register = freezed,Object? guilds_room_register = freezed,Object? pos_company_register = freezed,Object? province_accept_state = freezed,Object? province_message = freezed,Object? condition = freezed,Object? description_condition = freezed,Object? steward_active = freezed,Object? steward_allocation_limit = freezed,Object? steward_limitation_allocation = freezed,Object? license = freezed,Object? license_form = freezed,Object? license_file = freezed,Object? reviewer_role = freezed,Object? reviewer_fullname = freezed,Object? reviewer_mobile = freezed,Object? checker_message = freezed,Object? final_accept = freezed,Object? temporary_registration = freezed,Object? created_by = freezed,Object? modified_by = freezed,Object? user_bank_info = freezed,Object? wallet = freezed,Object? cars = freezed,Object? user_level = freezed,}) { + return _then(_self.copyWith( +id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable +as int?,user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable +as User?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable +as Address?,guild_area_activity: freezed == guild_area_activity ? _self.guild_area_activity : guild_area_activity // ignore: cast_nullable_to_non_nullable +as GuildAreaActivity?,guild_type_activity: freezed == guild_type_activity ? _self.guild_type_activity : guild_type_activity // ignore: cast_nullable_to_non_nullable +as GuildTypeActivity?,kill_house: freezed == kill_house ? _self.kill_house : kill_house // ignore: cast_nullable_to_non_nullable +as List?,steward_kill_house: freezed == steward_kill_house ? _self.steward_kill_house : steward_kill_house // ignore: cast_nullable_to_non_nullable +as List?,stewards: freezed == stewards ? _self.stewards : stewards // ignore: cast_nullable_to_non_nullable +as List?,get_pos_status: freezed == get_pos_status ? _self.get_pos_status : get_pos_status // ignore: cast_nullable_to_non_nullable +as GetPosStatus?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,create_date: freezed == create_date ? _self.create_date : create_date // ignore: cast_nullable_to_non_nullable +as String?,modify_date: freezed == modify_date ? _self.modify_date : modify_date // ignore: cast_nullable_to_non_nullable +as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable +as bool?,user_id_foreign_key: freezed == user_id_foreign_key ? _self.user_id_foreign_key : user_id_foreign_key // ignore: cast_nullable_to_non_nullable +as String?,address_id_foreign_key: freezed == address_id_foreign_key ? _self.address_id_foreign_key : address_id_foreign_key // ignore: cast_nullable_to_non_nullable +as String?,user_bank_id_foreign_key: freezed == user_bank_id_foreign_key ? _self.user_bank_id_foreign_key : user_bank_id_foreign_key // ignore: cast_nullable_to_non_nullable +as String?,wallet_id_foreign_key: freezed == wallet_id_foreign_key ? _self.wallet_id_foreign_key : wallet_id_foreign_key // ignore: cast_nullable_to_non_nullable +as String?,provincial_government_id_key: freezed == provincial_government_id_key ? _self.provincial_government_id_key : provincial_government_id_key // ignore: cast_nullable_to_non_nullable +as String?,identity_documents: freezed == identity_documents ? _self.identity_documents : identity_documents // ignore: cast_nullable_to_non_nullable +as dynamic,active: freezed == active ? _self.active : active // ignore: cast_nullable_to_non_nullable +as bool?,city_number: freezed == city_number ? _self.city_number : city_number // ignore: cast_nullable_to_non_nullable +as int?,city_name: freezed == city_name ? _self.city_name : city_name // ignore: cast_nullable_to_non_nullable +as String?,guilds_id: freezed == guilds_id ? _self.guilds_id : guilds_id // ignore: cast_nullable_to_non_nullable +as String?,license_number: freezed == license_number ? _self.license_number : license_number // ignore: cast_nullable_to_non_nullable +as String?,guilds_name: freezed == guilds_name ? _self.guilds_name : guilds_name // ignore: cast_nullable_to_non_nullable +as String?,phone: freezed == phone ? _self.phone : phone // ignore: cast_nullable_to_non_nullable +as String?,type_activity: freezed == type_activity ? _self.type_activity : type_activity // ignore: cast_nullable_to_non_nullable +as String?,area_activity: freezed == area_activity ? _self.area_activity : area_activity // ignore: cast_nullable_to_non_nullable +as String?,province_number: freezed == province_number ? _self.province_number : province_number // ignore: cast_nullable_to_non_nullable +as int?,province_name: freezed == province_name ? _self.province_name : province_name // ignore: cast_nullable_to_non_nullable +as String?,steward: freezed == steward ? _self.steward : steward // ignore: cast_nullable_to_non_nullable +as bool?,has_pos: freezed == has_pos ? _self.has_pos : has_pos // ignore: cast_nullable_to_non_nullable +as bool?,centers_allocation: freezed == centers_allocation ? _self.centers_allocation : centers_allocation // ignore: cast_nullable_to_non_nullable +as dynamic,kill_house_centers_allocation: freezed == kill_house_centers_allocation ? _self.kill_house_centers_allocation : kill_house_centers_allocation // ignore: cast_nullable_to_non_nullable +as dynamic,allocation_limit: freezed == allocation_limit ? _self.allocation_limit : allocation_limit // ignore: cast_nullable_to_non_nullable +as dynamic,limitation_allocation: freezed == limitation_allocation ? _self.limitation_allocation : limitation_allocation // ignore: cast_nullable_to_non_nullable +as bool?,registerar_role: freezed == registerar_role ? _self.registerar_role : registerar_role // ignore: cast_nullable_to_non_nullable +as String?,registerar_fullname: freezed == registerar_fullname ? _self.registerar_fullname : registerar_fullname // ignore: cast_nullable_to_non_nullable +as String?,registerar_mobile: freezed == registerar_mobile ? _self.registerar_mobile : registerar_mobile // ignore: cast_nullable_to_non_nullable +as String?,kill_house_register: freezed == kill_house_register ? _self.kill_house_register : kill_house_register // ignore: cast_nullable_to_non_nullable +as bool?,steward_register: freezed == steward_register ? _self.steward_register : steward_register // ignore: cast_nullable_to_non_nullable +as bool?,guilds_room_register: freezed == guilds_room_register ? _self.guilds_room_register : guilds_room_register // ignore: cast_nullable_to_non_nullable +as bool?,pos_company_register: freezed == pos_company_register ? _self.pos_company_register : pos_company_register // ignore: cast_nullable_to_non_nullable +as bool?,province_accept_state: freezed == province_accept_state ? _self.province_accept_state : province_accept_state // ignore: cast_nullable_to_non_nullable +as String?,province_message: freezed == province_message ? _self.province_message : province_message // ignore: cast_nullable_to_non_nullable +as String?,condition: freezed == condition ? _self.condition : condition // ignore: cast_nullable_to_non_nullable +as String?,description_condition: freezed == description_condition ? _self.description_condition : description_condition // ignore: cast_nullable_to_non_nullable +as String?,steward_active: freezed == steward_active ? _self.steward_active : steward_active // ignore: cast_nullable_to_non_nullable +as bool?,steward_allocation_limit: freezed == steward_allocation_limit ? _self.steward_allocation_limit : steward_allocation_limit // ignore: cast_nullable_to_non_nullable +as dynamic,steward_limitation_allocation: freezed == steward_limitation_allocation ? _self.steward_limitation_allocation : steward_limitation_allocation // ignore: cast_nullable_to_non_nullable +as bool?,license: freezed == license ? _self.license : license // ignore: cast_nullable_to_non_nullable +as bool?,license_form: freezed == license_form ? _self.license_form : license_form // ignore: cast_nullable_to_non_nullable +as dynamic,license_file: freezed == license_file ? _self.license_file : license_file // ignore: cast_nullable_to_non_nullable +as dynamic,reviewer_role: freezed == reviewer_role ? _self.reviewer_role : reviewer_role // ignore: cast_nullable_to_non_nullable +as String?,reviewer_fullname: freezed == reviewer_fullname ? _self.reviewer_fullname : reviewer_fullname // ignore: cast_nullable_to_non_nullable +as String?,reviewer_mobile: freezed == reviewer_mobile ? _self.reviewer_mobile : reviewer_mobile // ignore: cast_nullable_to_non_nullable +as String?,checker_message: freezed == checker_message ? _self.checker_message : checker_message // ignore: cast_nullable_to_non_nullable +as String?,final_accept: freezed == final_accept ? _self.final_accept : final_accept // ignore: cast_nullable_to_non_nullable +as bool?,temporary_registration: freezed == temporary_registration ? _self.temporary_registration : temporary_registration // ignore: cast_nullable_to_non_nullable +as bool?,created_by: freezed == created_by ? _self.created_by : created_by // ignore: cast_nullable_to_non_nullable +as String?,modified_by: freezed == modified_by ? _self.modified_by : modified_by // ignore: cast_nullable_to_non_nullable +as String?,user_bank_info: freezed == user_bank_info ? _self.user_bank_info : user_bank_info // ignore: cast_nullable_to_non_nullable +as dynamic,wallet: freezed == wallet ? _self.wallet : wallet // ignore: cast_nullable_to_non_nullable +as int?,cars: freezed == cars ? _self.cars : cars // ignore: cast_nullable_to_non_nullable +as List?,user_level: freezed == user_level ? _self.user_level : user_level // ignore: cast_nullable_to_non_nullable +as List?, + )); +} +/// Create a copy of GuildProfile +/// 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 GuildProfile +/// 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 GuildProfile +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$GuildAreaActivityCopyWith<$Res>? get guild_area_activity { + if (_self.guild_area_activity == null) { + return null; + } + + return $GuildAreaActivityCopyWith<$Res>(_self.guild_area_activity!, (value) { + return _then(_self.copyWith(guild_area_activity: value)); + }); +}/// Create a copy of GuildProfile +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$GuildTypeActivityCopyWith<$Res>? get guild_type_activity { + if (_self.guild_type_activity == null) { + return null; + } + + return $GuildTypeActivityCopyWith<$Res>(_self.guild_type_activity!, (value) { + return _then(_self.copyWith(guild_type_activity: value)); + }); +}/// Create a copy of GuildProfile +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$GetPosStatusCopyWith<$Res>? get get_pos_status { + if (_self.get_pos_status == null) { + return null; + } + + return $GetPosStatusCopyWith<$Res>(_self.get_pos_status!, (value) { + return _then(_self.copyWith(get_pos_status: value)); + }); +} +} + + +/// @nodoc +@JsonSerializable() + +class _GuildProfile implements GuildProfile { + const _GuildProfile({this.id, this.user, this.address, this.guild_area_activity, this.guild_type_activity, final List? kill_house, final List? steward_kill_house, final List? stewards, this.get_pos_status, this.key, this.create_date, this.modify_date, this.trash, this.user_id_foreign_key, this.address_id_foreign_key, this.user_bank_id_foreign_key, this.wallet_id_foreign_key, this.provincial_government_id_key, this.identity_documents, this.active, this.city_number, this.city_name, this.guilds_id, this.license_number, this.guilds_name, this.phone, this.type_activity, this.area_activity, this.province_number, this.province_name, this.steward, this.has_pos, this.centers_allocation, this.kill_house_centers_allocation, this.allocation_limit, this.limitation_allocation, this.registerar_role, this.registerar_fullname, this.registerar_mobile, this.kill_house_register, this.steward_register, this.guilds_room_register, this.pos_company_register, this.province_accept_state, this.province_message, this.condition, this.description_condition, this.steward_active, this.steward_allocation_limit, this.steward_limitation_allocation, this.license, this.license_form, this.license_file, this.reviewer_role, this.reviewer_fullname, this.reviewer_mobile, this.checker_message, this.final_accept, this.temporary_registration, this.created_by, this.modified_by, this.user_bank_info, this.wallet, final List? cars, final List? user_level}): _kill_house = kill_house,_steward_kill_house = steward_kill_house,_stewards = stewards,_cars = cars,_user_level = user_level; + factory _GuildProfile.fromJson(Map json) => _$GuildProfileFromJson(json); + +@override final int? id; +@override final User? user; +@override final Address? address; +@override final GuildAreaActivity? guild_area_activity; +@override final GuildTypeActivity? guild_type_activity; + final List? _kill_house; +@override List? get kill_house { + final value = _kill_house; + if (value == null) return null; + if (_kill_house is EqualUnmodifiableListView) return _kill_house; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + + final List? _steward_kill_house; +@override List? get steward_kill_house { + final value = _steward_kill_house; + if (value == null) return null; + if (_steward_kill_house is EqualUnmodifiableListView) return _steward_kill_house; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + + final List? _stewards; +@override List? get stewards { + final value = _stewards; + if (value == null) return null; + if (_stewards is EqualUnmodifiableListView) return _stewards; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + +@override final GetPosStatus? get_pos_status; +@override final String? key; +@override final String? create_date; +@override final String? modify_date; +@override final bool? trash; +@override final String? user_id_foreign_key; +@override final String? address_id_foreign_key; +@override final String? user_bank_id_foreign_key; +@override final String? wallet_id_foreign_key; +@override final String? provincial_government_id_key; +@override final dynamic identity_documents; +@override final bool? active; +@override final int? city_number; +@override final String? city_name; +@override final String? guilds_id; +@override final String? license_number; +@override final String? guilds_name; +@override final String? phone; +@override final String? type_activity; +@override final String? area_activity; +@override final int? province_number; +@override final String? province_name; +@override final bool? steward; +@override final bool? has_pos; +@override final dynamic centers_allocation; +@override final dynamic kill_house_centers_allocation; +@override final dynamic allocation_limit; +@override final bool? limitation_allocation; +@override final String? registerar_role; +@override final String? registerar_fullname; +@override final String? registerar_mobile; +@override final bool? kill_house_register; +@override final bool? steward_register; +@override final bool? guilds_room_register; +@override final bool? pos_company_register; +@override final String? province_accept_state; +@override final String? province_message; +@override final String? condition; +@override final String? description_condition; +@override final bool? steward_active; +@override final dynamic steward_allocation_limit; +@override final bool? steward_limitation_allocation; +@override final bool? license; +@override final dynamic license_form; +@override final dynamic license_file; +@override final String? reviewer_role; +@override final String? reviewer_fullname; +@override final String? reviewer_mobile; +@override final String? checker_message; +@override final bool? final_accept; +@override final bool? temporary_registration; +@override final String? created_by; +@override final String? modified_by; +@override final dynamic user_bank_info; +@override final int? wallet; + final List? _cars; +@override List? get cars { + final value = _cars; + if (value == null) return null; + if (_cars is EqualUnmodifiableListView) return _cars; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + + final List? _user_level; +@override List? get user_level { + final value = _user_level; + if (value == null) return null; + if (_user_level is EqualUnmodifiableListView) return _user_level; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + + +/// Create a copy of GuildProfile +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$GuildProfileCopyWith<_GuildProfile> get copyWith => __$GuildProfileCopyWithImpl<_GuildProfile>(this, _$identity); + +@override +Map toJson() { + return _$GuildProfileToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _GuildProfile&&(identical(other.id, id) || other.id == id)&&(identical(other.user, user) || other.user == user)&&(identical(other.address, address) || other.address == address)&&(identical(other.guild_area_activity, guild_area_activity) || other.guild_area_activity == guild_area_activity)&&(identical(other.guild_type_activity, guild_type_activity) || other.guild_type_activity == guild_type_activity)&&const DeepCollectionEquality().equals(other._kill_house, _kill_house)&&const DeepCollectionEquality().equals(other._steward_kill_house, _steward_kill_house)&&const DeepCollectionEquality().equals(other._stewards, _stewards)&&(identical(other.get_pos_status, get_pos_status) || other.get_pos_status == get_pos_status)&&(identical(other.key, key) || other.key == key)&&(identical(other.create_date, create_date) || other.create_date == create_date)&&(identical(other.modify_date, modify_date) || other.modify_date == modify_date)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.user_id_foreign_key, user_id_foreign_key) || other.user_id_foreign_key == user_id_foreign_key)&&(identical(other.address_id_foreign_key, address_id_foreign_key) || other.address_id_foreign_key == address_id_foreign_key)&&(identical(other.user_bank_id_foreign_key, user_bank_id_foreign_key) || other.user_bank_id_foreign_key == user_bank_id_foreign_key)&&(identical(other.wallet_id_foreign_key, wallet_id_foreign_key) || other.wallet_id_foreign_key == wallet_id_foreign_key)&&(identical(other.provincial_government_id_key, provincial_government_id_key) || other.provincial_government_id_key == provincial_government_id_key)&&const DeepCollectionEquality().equals(other.identity_documents, identity_documents)&&(identical(other.active, active) || other.active == active)&&(identical(other.city_number, city_number) || other.city_number == city_number)&&(identical(other.city_name, city_name) || other.city_name == city_name)&&(identical(other.guilds_id, guilds_id) || other.guilds_id == guilds_id)&&(identical(other.license_number, license_number) || other.license_number == license_number)&&(identical(other.guilds_name, guilds_name) || other.guilds_name == guilds_name)&&(identical(other.phone, phone) || other.phone == phone)&&(identical(other.type_activity, type_activity) || other.type_activity == type_activity)&&(identical(other.area_activity, area_activity) || other.area_activity == area_activity)&&(identical(other.province_number, province_number) || other.province_number == province_number)&&(identical(other.province_name, province_name) || other.province_name == province_name)&&(identical(other.steward, steward) || other.steward == steward)&&(identical(other.has_pos, has_pos) || other.has_pos == has_pos)&&const DeepCollectionEquality().equals(other.centers_allocation, centers_allocation)&&const DeepCollectionEquality().equals(other.kill_house_centers_allocation, kill_house_centers_allocation)&&const DeepCollectionEquality().equals(other.allocation_limit, allocation_limit)&&(identical(other.limitation_allocation, limitation_allocation) || other.limitation_allocation == limitation_allocation)&&(identical(other.registerar_role, registerar_role) || other.registerar_role == registerar_role)&&(identical(other.registerar_fullname, registerar_fullname) || other.registerar_fullname == registerar_fullname)&&(identical(other.registerar_mobile, registerar_mobile) || other.registerar_mobile == registerar_mobile)&&(identical(other.kill_house_register, kill_house_register) || other.kill_house_register == kill_house_register)&&(identical(other.steward_register, steward_register) || other.steward_register == steward_register)&&(identical(other.guilds_room_register, guilds_room_register) || other.guilds_room_register == guilds_room_register)&&(identical(other.pos_company_register, pos_company_register) || other.pos_company_register == pos_company_register)&&(identical(other.province_accept_state, province_accept_state) || other.province_accept_state == province_accept_state)&&(identical(other.province_message, province_message) || other.province_message == province_message)&&(identical(other.condition, condition) || other.condition == condition)&&(identical(other.description_condition, description_condition) || other.description_condition == description_condition)&&(identical(other.steward_active, steward_active) || other.steward_active == steward_active)&&const DeepCollectionEquality().equals(other.steward_allocation_limit, steward_allocation_limit)&&(identical(other.steward_limitation_allocation, steward_limitation_allocation) || other.steward_limitation_allocation == steward_limitation_allocation)&&(identical(other.license, license) || other.license == license)&&const DeepCollectionEquality().equals(other.license_form, license_form)&&const DeepCollectionEquality().equals(other.license_file, license_file)&&(identical(other.reviewer_role, reviewer_role) || other.reviewer_role == reviewer_role)&&(identical(other.reviewer_fullname, reviewer_fullname) || other.reviewer_fullname == reviewer_fullname)&&(identical(other.reviewer_mobile, reviewer_mobile) || other.reviewer_mobile == reviewer_mobile)&&(identical(other.checker_message, checker_message) || other.checker_message == checker_message)&&(identical(other.final_accept, final_accept) || other.final_accept == final_accept)&&(identical(other.temporary_registration, temporary_registration) || other.temporary_registration == temporary_registration)&&(identical(other.created_by, created_by) || other.created_by == created_by)&&(identical(other.modified_by, modified_by) || other.modified_by == modified_by)&&const DeepCollectionEquality().equals(other.user_bank_info, user_bank_info)&&(identical(other.wallet, wallet) || other.wallet == wallet)&&const DeepCollectionEquality().equals(other._cars, _cars)&&const DeepCollectionEquality().equals(other._user_level, _user_level)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,id,user,address,guild_area_activity,guild_type_activity,const DeepCollectionEquality().hash(_kill_house),const DeepCollectionEquality().hash(_steward_kill_house),const DeepCollectionEquality().hash(_stewards),get_pos_status,key,create_date,modify_date,trash,user_id_foreign_key,address_id_foreign_key,user_bank_id_foreign_key,wallet_id_foreign_key,provincial_government_id_key,const DeepCollectionEquality().hash(identity_documents),active,city_number,city_name,guilds_id,license_number,guilds_name,phone,type_activity,area_activity,province_number,province_name,steward,has_pos,const DeepCollectionEquality().hash(centers_allocation),const DeepCollectionEquality().hash(kill_house_centers_allocation),const DeepCollectionEquality().hash(allocation_limit),limitation_allocation,registerar_role,registerar_fullname,registerar_mobile,kill_house_register,steward_register,guilds_room_register,pos_company_register,province_accept_state,province_message,condition,description_condition,steward_active,const DeepCollectionEquality().hash(steward_allocation_limit),steward_limitation_allocation,license,const DeepCollectionEquality().hash(license_form),const DeepCollectionEquality().hash(license_file),reviewer_role,reviewer_fullname,reviewer_mobile,checker_message,final_accept,temporary_registration,created_by,modified_by,const DeepCollectionEquality().hash(user_bank_info),wallet,const DeepCollectionEquality().hash(_cars),const DeepCollectionEquality().hash(_user_level)]); + +@override +String toString() { + return 'GuildProfile(id: $id, user: $user, address: $address, guild_area_activity: $guild_area_activity, guild_type_activity: $guild_type_activity, kill_house: $kill_house, steward_kill_house: $steward_kill_house, stewards: $stewards, get_pos_status: $get_pos_status, key: $key, create_date: $create_date, modify_date: $modify_date, trash: $trash, user_id_foreign_key: $user_id_foreign_key, address_id_foreign_key: $address_id_foreign_key, user_bank_id_foreign_key: $user_bank_id_foreign_key, wallet_id_foreign_key: $wallet_id_foreign_key, provincial_government_id_key: $provincial_government_id_key, identity_documents: $identity_documents, active: $active, city_number: $city_number, city_name: $city_name, guilds_id: $guilds_id, license_number: $license_number, guilds_name: $guilds_name, phone: $phone, type_activity: $type_activity, area_activity: $area_activity, province_number: $province_number, province_name: $province_name, steward: $steward, has_pos: $has_pos, centers_allocation: $centers_allocation, kill_house_centers_allocation: $kill_house_centers_allocation, allocation_limit: $allocation_limit, limitation_allocation: $limitation_allocation, registerar_role: $registerar_role, registerar_fullname: $registerar_fullname, registerar_mobile: $registerar_mobile, kill_house_register: $kill_house_register, steward_register: $steward_register, guilds_room_register: $guilds_room_register, pos_company_register: $pos_company_register, province_accept_state: $province_accept_state, province_message: $province_message, condition: $condition, description_condition: $description_condition, steward_active: $steward_active, steward_allocation_limit: $steward_allocation_limit, steward_limitation_allocation: $steward_limitation_allocation, license: $license, license_form: $license_form, license_file: $license_file, reviewer_role: $reviewer_role, reviewer_fullname: $reviewer_fullname, reviewer_mobile: $reviewer_mobile, checker_message: $checker_message, final_accept: $final_accept, temporary_registration: $temporary_registration, created_by: $created_by, modified_by: $modified_by, user_bank_info: $user_bank_info, wallet: $wallet, cars: $cars, user_level: $user_level)'; +} + + +} + +/// @nodoc +abstract mixin class _$GuildProfileCopyWith<$Res> implements $GuildProfileCopyWith<$Res> { + factory _$GuildProfileCopyWith(_GuildProfile value, $Res Function(_GuildProfile) _then) = __$GuildProfileCopyWithImpl; +@override @useResult +$Res call({ + int? id, User? user, Address? address, GuildAreaActivity? guild_area_activity, GuildTypeActivity? guild_type_activity, List? kill_house, List? steward_kill_house, List? stewards, GetPosStatus? get_pos_status, String? key, String? create_date, String? modify_date, bool? trash, String? user_id_foreign_key, String? address_id_foreign_key, String? user_bank_id_foreign_key, String? wallet_id_foreign_key, String? provincial_government_id_key, dynamic identity_documents, bool? active, int? city_number, String? city_name, String? guilds_id, String? license_number, String? guilds_name, String? phone, String? type_activity, String? area_activity, int? province_number, String? province_name, bool? steward, bool? has_pos, dynamic centers_allocation, dynamic kill_house_centers_allocation, dynamic allocation_limit, bool? limitation_allocation, String? registerar_role, String? registerar_fullname, String? registerar_mobile, bool? kill_house_register, bool? steward_register, bool? guilds_room_register, bool? pos_company_register, String? province_accept_state, String? province_message, String? condition, String? description_condition, bool? steward_active, dynamic steward_allocation_limit, bool? steward_limitation_allocation, bool? license, dynamic license_form, dynamic license_file, String? reviewer_role, String? reviewer_fullname, String? reviewer_mobile, String? checker_message, bool? final_accept, bool? temporary_registration, String? created_by, String? modified_by, dynamic user_bank_info, int? wallet, List? cars, List? user_level +}); + + +@override $UserCopyWith<$Res>? get user;@override $AddressCopyWith<$Res>? get address;@override $GuildAreaActivityCopyWith<$Res>? get guild_area_activity;@override $GuildTypeActivityCopyWith<$Res>? get guild_type_activity;@override $GetPosStatusCopyWith<$Res>? get get_pos_status; + +} +/// @nodoc +class __$GuildProfileCopyWithImpl<$Res> + implements _$GuildProfileCopyWith<$Res> { + __$GuildProfileCopyWithImpl(this._self, this._then); + + final _GuildProfile _self; + final $Res Function(_GuildProfile) _then; + +/// Create a copy of GuildProfile +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? user = freezed,Object? address = freezed,Object? guild_area_activity = freezed,Object? guild_type_activity = freezed,Object? kill_house = freezed,Object? steward_kill_house = freezed,Object? stewards = freezed,Object? get_pos_status = freezed,Object? key = freezed,Object? create_date = freezed,Object? modify_date = freezed,Object? trash = freezed,Object? user_id_foreign_key = freezed,Object? address_id_foreign_key = freezed,Object? user_bank_id_foreign_key = freezed,Object? wallet_id_foreign_key = freezed,Object? provincial_government_id_key = freezed,Object? identity_documents = freezed,Object? active = freezed,Object? city_number = freezed,Object? city_name = freezed,Object? guilds_id = freezed,Object? license_number = freezed,Object? guilds_name = freezed,Object? phone = freezed,Object? type_activity = freezed,Object? area_activity = freezed,Object? province_number = freezed,Object? province_name = freezed,Object? steward = freezed,Object? has_pos = freezed,Object? centers_allocation = freezed,Object? kill_house_centers_allocation = freezed,Object? allocation_limit = freezed,Object? limitation_allocation = freezed,Object? registerar_role = freezed,Object? registerar_fullname = freezed,Object? registerar_mobile = freezed,Object? kill_house_register = freezed,Object? steward_register = freezed,Object? guilds_room_register = freezed,Object? pos_company_register = freezed,Object? province_accept_state = freezed,Object? province_message = freezed,Object? condition = freezed,Object? description_condition = freezed,Object? steward_active = freezed,Object? steward_allocation_limit = freezed,Object? steward_limitation_allocation = freezed,Object? license = freezed,Object? license_form = freezed,Object? license_file = freezed,Object? reviewer_role = freezed,Object? reviewer_fullname = freezed,Object? reviewer_mobile = freezed,Object? checker_message = freezed,Object? final_accept = freezed,Object? temporary_registration = freezed,Object? created_by = freezed,Object? modified_by = freezed,Object? user_bank_info = freezed,Object? wallet = freezed,Object? cars = freezed,Object? user_level = freezed,}) { + return _then(_GuildProfile( +id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable +as int?,user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable +as User?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable +as Address?,guild_area_activity: freezed == guild_area_activity ? _self.guild_area_activity : guild_area_activity // ignore: cast_nullable_to_non_nullable +as GuildAreaActivity?,guild_type_activity: freezed == guild_type_activity ? _self.guild_type_activity : guild_type_activity // ignore: cast_nullable_to_non_nullable +as GuildTypeActivity?,kill_house: freezed == kill_house ? _self._kill_house : kill_house // ignore: cast_nullable_to_non_nullable +as List?,steward_kill_house: freezed == steward_kill_house ? _self._steward_kill_house : steward_kill_house // ignore: cast_nullable_to_non_nullable +as List?,stewards: freezed == stewards ? _self._stewards : stewards // ignore: cast_nullable_to_non_nullable +as List?,get_pos_status: freezed == get_pos_status ? _self.get_pos_status : get_pos_status // ignore: cast_nullable_to_non_nullable +as GetPosStatus?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,create_date: freezed == create_date ? _self.create_date : create_date // ignore: cast_nullable_to_non_nullable +as String?,modify_date: freezed == modify_date ? _self.modify_date : modify_date // ignore: cast_nullable_to_non_nullable +as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable +as bool?,user_id_foreign_key: freezed == user_id_foreign_key ? _self.user_id_foreign_key : user_id_foreign_key // ignore: cast_nullable_to_non_nullable +as String?,address_id_foreign_key: freezed == address_id_foreign_key ? _self.address_id_foreign_key : address_id_foreign_key // ignore: cast_nullable_to_non_nullable +as String?,user_bank_id_foreign_key: freezed == user_bank_id_foreign_key ? _self.user_bank_id_foreign_key : user_bank_id_foreign_key // ignore: cast_nullable_to_non_nullable +as String?,wallet_id_foreign_key: freezed == wallet_id_foreign_key ? _self.wallet_id_foreign_key : wallet_id_foreign_key // ignore: cast_nullable_to_non_nullable +as String?,provincial_government_id_key: freezed == provincial_government_id_key ? _self.provincial_government_id_key : provincial_government_id_key // ignore: cast_nullable_to_non_nullable +as String?,identity_documents: freezed == identity_documents ? _self.identity_documents : identity_documents // ignore: cast_nullable_to_non_nullable +as dynamic,active: freezed == active ? _self.active : active // ignore: cast_nullable_to_non_nullable +as bool?,city_number: freezed == city_number ? _self.city_number : city_number // ignore: cast_nullable_to_non_nullable +as int?,city_name: freezed == city_name ? _self.city_name : city_name // ignore: cast_nullable_to_non_nullable +as String?,guilds_id: freezed == guilds_id ? _self.guilds_id : guilds_id // ignore: cast_nullable_to_non_nullable +as String?,license_number: freezed == license_number ? _self.license_number : license_number // ignore: cast_nullable_to_non_nullable +as String?,guilds_name: freezed == guilds_name ? _self.guilds_name : guilds_name // ignore: cast_nullable_to_non_nullable +as String?,phone: freezed == phone ? _self.phone : phone // ignore: cast_nullable_to_non_nullable +as String?,type_activity: freezed == type_activity ? _self.type_activity : type_activity // ignore: cast_nullable_to_non_nullable +as String?,area_activity: freezed == area_activity ? _self.area_activity : area_activity // ignore: cast_nullable_to_non_nullable +as String?,province_number: freezed == province_number ? _self.province_number : province_number // ignore: cast_nullable_to_non_nullable +as int?,province_name: freezed == province_name ? _self.province_name : province_name // ignore: cast_nullable_to_non_nullable +as String?,steward: freezed == steward ? _self.steward : steward // ignore: cast_nullable_to_non_nullable +as bool?,has_pos: freezed == has_pos ? _self.has_pos : has_pos // ignore: cast_nullable_to_non_nullable +as bool?,centers_allocation: freezed == centers_allocation ? _self.centers_allocation : centers_allocation // ignore: cast_nullable_to_non_nullable +as dynamic,kill_house_centers_allocation: freezed == kill_house_centers_allocation ? _self.kill_house_centers_allocation : kill_house_centers_allocation // ignore: cast_nullable_to_non_nullable +as dynamic,allocation_limit: freezed == allocation_limit ? _self.allocation_limit : allocation_limit // ignore: cast_nullable_to_non_nullable +as dynamic,limitation_allocation: freezed == limitation_allocation ? _self.limitation_allocation : limitation_allocation // ignore: cast_nullable_to_non_nullable +as bool?,registerar_role: freezed == registerar_role ? _self.registerar_role : registerar_role // ignore: cast_nullable_to_non_nullable +as String?,registerar_fullname: freezed == registerar_fullname ? _self.registerar_fullname : registerar_fullname // ignore: cast_nullable_to_non_nullable +as String?,registerar_mobile: freezed == registerar_mobile ? _self.registerar_mobile : registerar_mobile // ignore: cast_nullable_to_non_nullable +as String?,kill_house_register: freezed == kill_house_register ? _self.kill_house_register : kill_house_register // ignore: cast_nullable_to_non_nullable +as bool?,steward_register: freezed == steward_register ? _self.steward_register : steward_register // ignore: cast_nullable_to_non_nullable +as bool?,guilds_room_register: freezed == guilds_room_register ? _self.guilds_room_register : guilds_room_register // ignore: cast_nullable_to_non_nullable +as bool?,pos_company_register: freezed == pos_company_register ? _self.pos_company_register : pos_company_register // ignore: cast_nullable_to_non_nullable +as bool?,province_accept_state: freezed == province_accept_state ? _self.province_accept_state : province_accept_state // ignore: cast_nullable_to_non_nullable +as String?,province_message: freezed == province_message ? _self.province_message : province_message // ignore: cast_nullable_to_non_nullable +as String?,condition: freezed == condition ? _self.condition : condition // ignore: cast_nullable_to_non_nullable +as String?,description_condition: freezed == description_condition ? _self.description_condition : description_condition // ignore: cast_nullable_to_non_nullable +as String?,steward_active: freezed == steward_active ? _self.steward_active : steward_active // ignore: cast_nullable_to_non_nullable +as bool?,steward_allocation_limit: freezed == steward_allocation_limit ? _self.steward_allocation_limit : steward_allocation_limit // ignore: cast_nullable_to_non_nullable +as dynamic,steward_limitation_allocation: freezed == steward_limitation_allocation ? _self.steward_limitation_allocation : steward_limitation_allocation // ignore: cast_nullable_to_non_nullable +as bool?,license: freezed == license ? _self.license : license // ignore: cast_nullable_to_non_nullable +as bool?,license_form: freezed == license_form ? _self.license_form : license_form // ignore: cast_nullable_to_non_nullable +as dynamic,license_file: freezed == license_file ? _self.license_file : license_file // ignore: cast_nullable_to_non_nullable +as dynamic,reviewer_role: freezed == reviewer_role ? _self.reviewer_role : reviewer_role // ignore: cast_nullable_to_non_nullable +as String?,reviewer_fullname: freezed == reviewer_fullname ? _self.reviewer_fullname : reviewer_fullname // ignore: cast_nullable_to_non_nullable +as String?,reviewer_mobile: freezed == reviewer_mobile ? _self.reviewer_mobile : reviewer_mobile // ignore: cast_nullable_to_non_nullable +as String?,checker_message: freezed == checker_message ? _self.checker_message : checker_message // ignore: cast_nullable_to_non_nullable +as String?,final_accept: freezed == final_accept ? _self.final_accept : final_accept // ignore: cast_nullable_to_non_nullable +as bool?,temporary_registration: freezed == temporary_registration ? _self.temporary_registration : temporary_registration // ignore: cast_nullable_to_non_nullable +as bool?,created_by: freezed == created_by ? _self.created_by : created_by // ignore: cast_nullable_to_non_nullable +as String?,modified_by: freezed == modified_by ? _self.modified_by : modified_by // ignore: cast_nullable_to_non_nullable +as String?,user_bank_info: freezed == user_bank_info ? _self.user_bank_info : user_bank_info // ignore: cast_nullable_to_non_nullable +as dynamic,wallet: freezed == wallet ? _self.wallet : wallet // ignore: cast_nullable_to_non_nullable +as int?,cars: freezed == cars ? _self._cars : cars // ignore: cast_nullable_to_non_nullable +as List?,user_level: freezed == user_level ? _self._user_level : user_level // ignore: cast_nullable_to_non_nullable +as List?, + )); +} + +/// Create a copy of GuildProfile +/// 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 GuildProfile +/// 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 GuildProfile +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$GuildAreaActivityCopyWith<$Res>? get guild_area_activity { + if (_self.guild_area_activity == null) { + return null; + } + + return $GuildAreaActivityCopyWith<$Res>(_self.guild_area_activity!, (value) { + return _then(_self.copyWith(guild_area_activity: value)); + }); +}/// Create a copy of GuildProfile +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$GuildTypeActivityCopyWith<$Res>? get guild_type_activity { + if (_self.guild_type_activity == null) { + return null; + } + + return $GuildTypeActivityCopyWith<$Res>(_self.guild_type_activity!, (value) { + return _then(_self.copyWith(guild_type_activity: value)); + }); +}/// Create a copy of GuildProfile +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$GetPosStatusCopyWith<$Res>? get get_pos_status { + if (_self.get_pos_status == null) { + return null; + } + + return $GetPosStatusCopyWith<$Res>(_self.get_pos_status!, (value) { + return _then(_self.copyWith(get_pos_status: value)); + }); +} +} + + +/// @nodoc +mixin _$User { + + String? get fullname; String? get first_name; String? get last_name; String? get mobile; String? get national_id; String? get city; +/// 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.first_name, first_name) || other.first_name == first_name)&&(identical(other.last_name, last_name) || other.last_name == last_name)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.national_id, national_id) || other.national_id == national_id)&&(identical(other.city, city) || other.city == city)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,fullname,first_name,last_name,mobile,national_id,city); + +@override +String toString() { + return 'User(fullname: $fullname, first_name: $first_name, last_name: $last_name, mobile: $mobile, national_id: $national_id, city: $city)'; +} + + +} + +/// @nodoc +abstract mixin class $UserCopyWith<$Res> { + factory $UserCopyWith(User value, $Res Function(User) _then) = _$UserCopyWithImpl; +@useResult +$Res call({ + String? fullname, String? first_name, String? last_name, String? mobile, String? national_id, String? 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? first_name = freezed,Object? last_name = freezed,Object? mobile = freezed,Object? national_id = freezed,Object? city = freezed,}) { + return _then(_self.copyWith( +fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable +as String?,first_name: freezed == first_name ? _self.first_name : first_name // ignore: cast_nullable_to_non_nullable +as String?,last_name: freezed == last_name ? _self.last_name : last_name // ignore: cast_nullable_to_non_nullable +as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?,national_id: freezed == national_id ? _self.national_id : national_id // ignore: cast_nullable_to_non_nullable +as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _User implements User { + const _User({this.fullname, this.first_name, this.last_name, this.mobile, this.national_id, this.city}); + factory _User.fromJson(Map json) => _$UserFromJson(json); + +@override final String? fullname; +@override final String? first_name; +@override final String? last_name; +@override final String? mobile; +@override final String? national_id; +@override final String? city; + +/// 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.first_name, first_name) || other.first_name == first_name)&&(identical(other.last_name, last_name) || other.last_name == last_name)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.national_id, national_id) || other.national_id == national_id)&&(identical(other.city, city) || other.city == city)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,fullname,first_name,last_name,mobile,national_id,city); + +@override +String toString() { + return 'User(fullname: $fullname, first_name: $first_name, last_name: $last_name, mobile: $mobile, national_id: $national_id, city: $city)'; +} + + +} + +/// @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? first_name, String? last_name, String? mobile, String? national_id, String? 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? first_name = freezed,Object? last_name = freezed,Object? mobile = freezed,Object? national_id = freezed,Object? city = freezed,}) { + return _then(_User( +fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable +as String?,first_name: freezed == first_name ? _self.first_name : first_name // ignore: cast_nullable_to_non_nullable +as String?,last_name: freezed == last_name ? _self.last_name : last_name // ignore: cast_nullable_to_non_nullable +as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?,national_id: freezed == national_id ? _self.national_id : national_id // ignore: cast_nullable_to_non_nullable +as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$Address { + + Province? get province; City? get city; String? get address; String? get postal_code; +/// 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.postal_code, postal_code) || other.postal_code == postal_code)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,province,city,address,postal_code); + +@override +String toString() { + return 'Address(province: $province, city: $city, address: $address, postal_code: $postal_code)'; +} + + +} + +/// @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? postal_code +}); + + +$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? postal_code = 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?,postal_code: freezed == postal_code ? _self.postal_code : postal_code // 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 +@JsonSerializable() + +class _Address implements Address { + const _Address({this.province, this.city, this.address, this.postal_code}); + factory _Address.fromJson(Map json) => _$AddressFromJson(json); + +@override final Province? province; +@override final City? city; +@override final String? address; +@override final String? postal_code; + +/// 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.postal_code, postal_code) || other.postal_code == postal_code)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,province,city,address,postal_code); + +@override +String toString() { + return 'Address(province: $province, city: $city, address: $address, postal_code: $postal_code)'; +} + + +} + +/// @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? postal_code +}); + + +@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? postal_code = 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?,postal_code: freezed == postal_code ? _self.postal_code : postal_code // 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?, + )); +} + +} + + +/// @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?, + )); +} + +} + + +/// @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 _$GuildAreaActivity { + + String? get key; String? get title; +/// Create a copy of GuildAreaActivity +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$GuildAreaActivityCopyWith get copyWith => _$GuildAreaActivityCopyWithImpl(this as GuildAreaActivity, _$identity); + + /// Serializes this GuildAreaActivity to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is GuildAreaActivity&&(identical(other.key, key) || other.key == key)&&(identical(other.title, title) || other.title == title)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,title); + +@override +String toString() { + return 'GuildAreaActivity(key: $key, title: $title)'; +} + + +} + +/// @nodoc +abstract mixin class $GuildAreaActivityCopyWith<$Res> { + factory $GuildAreaActivityCopyWith(GuildAreaActivity value, $Res Function(GuildAreaActivity) _then) = _$GuildAreaActivityCopyWithImpl; +@useResult +$Res call({ + String? key, String? title +}); + + + + +} +/// @nodoc +class _$GuildAreaActivityCopyWithImpl<$Res> + implements $GuildAreaActivityCopyWith<$Res> { + _$GuildAreaActivityCopyWithImpl(this._self, this._then); + + final GuildAreaActivity _self; + final $Res Function(GuildAreaActivity) _then; + +/// Create a copy of GuildAreaActivity +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? key = freezed,Object? title = freezed,}) { + return _then(_self.copyWith( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,title: freezed == title ? _self.title : title // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _GuildAreaActivity implements GuildAreaActivity { + const _GuildAreaActivity({this.key, this.title}); + factory _GuildAreaActivity.fromJson(Map json) => _$GuildAreaActivityFromJson(json); + +@override final String? key; +@override final String? title; + +/// Create a copy of GuildAreaActivity +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$GuildAreaActivityCopyWith<_GuildAreaActivity> get copyWith => __$GuildAreaActivityCopyWithImpl<_GuildAreaActivity>(this, _$identity); + +@override +Map toJson() { + return _$GuildAreaActivityToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _GuildAreaActivity&&(identical(other.key, key) || other.key == key)&&(identical(other.title, title) || other.title == title)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,title); + +@override +String toString() { + return 'GuildAreaActivity(key: $key, title: $title)'; +} + + +} + +/// @nodoc +abstract mixin class _$GuildAreaActivityCopyWith<$Res> implements $GuildAreaActivityCopyWith<$Res> { + factory _$GuildAreaActivityCopyWith(_GuildAreaActivity value, $Res Function(_GuildAreaActivity) _then) = __$GuildAreaActivityCopyWithImpl; +@override @useResult +$Res call({ + String? key, String? title +}); + + + + +} +/// @nodoc +class __$GuildAreaActivityCopyWithImpl<$Res> + implements _$GuildAreaActivityCopyWith<$Res> { + __$GuildAreaActivityCopyWithImpl(this._self, this._then); + + final _GuildAreaActivity _self; + final $Res Function(_GuildAreaActivity) _then; + +/// Create a copy of GuildAreaActivity +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? key = freezed,Object? title = freezed,}) { + return _then(_GuildAreaActivity( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,title: freezed == title ? _self.title : title // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$GuildTypeActivity { + + String? get key; String? get title; +/// Create a copy of GuildTypeActivity +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$GuildTypeActivityCopyWith get copyWith => _$GuildTypeActivityCopyWithImpl(this as GuildTypeActivity, _$identity); + + /// Serializes this GuildTypeActivity to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is GuildTypeActivity&&(identical(other.key, key) || other.key == key)&&(identical(other.title, title) || other.title == title)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,title); + +@override +String toString() { + return 'GuildTypeActivity(key: $key, title: $title)'; +} + + +} + +/// @nodoc +abstract mixin class $GuildTypeActivityCopyWith<$Res> { + factory $GuildTypeActivityCopyWith(GuildTypeActivity value, $Res Function(GuildTypeActivity) _then) = _$GuildTypeActivityCopyWithImpl; +@useResult +$Res call({ + String? key, String? title +}); + + + + +} +/// @nodoc +class _$GuildTypeActivityCopyWithImpl<$Res> + implements $GuildTypeActivityCopyWith<$Res> { + _$GuildTypeActivityCopyWithImpl(this._self, this._then); + + final GuildTypeActivity _self; + final $Res Function(GuildTypeActivity) _then; + +/// Create a copy of GuildTypeActivity +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? key = freezed,Object? title = freezed,}) { + return _then(_self.copyWith( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,title: freezed == title ? _self.title : title // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _GuildTypeActivity implements GuildTypeActivity { + const _GuildTypeActivity({this.key, this.title}); + factory _GuildTypeActivity.fromJson(Map json) => _$GuildTypeActivityFromJson(json); + +@override final String? key; +@override final String? title; + +/// Create a copy of GuildTypeActivity +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$GuildTypeActivityCopyWith<_GuildTypeActivity> get copyWith => __$GuildTypeActivityCopyWithImpl<_GuildTypeActivity>(this, _$identity); + +@override +Map toJson() { + return _$GuildTypeActivityToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _GuildTypeActivity&&(identical(other.key, key) || other.key == key)&&(identical(other.title, title) || other.title == title)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,title); + +@override +String toString() { + return 'GuildTypeActivity(key: $key, title: $title)'; +} + + +} + +/// @nodoc +abstract mixin class _$GuildTypeActivityCopyWith<$Res> implements $GuildTypeActivityCopyWith<$Res> { + factory _$GuildTypeActivityCopyWith(_GuildTypeActivity value, $Res Function(_GuildTypeActivity) _then) = __$GuildTypeActivityCopyWithImpl; +@override @useResult +$Res call({ + String? key, String? title +}); + + + + +} +/// @nodoc +class __$GuildTypeActivityCopyWithImpl<$Res> + implements _$GuildTypeActivityCopyWith<$Res> { + __$GuildTypeActivityCopyWithImpl(this._self, this._then); + + final _GuildTypeActivity _self; + final $Res Function(_GuildTypeActivity) _then; + +/// Create a copy of GuildTypeActivity +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? key = freezed,Object? title = freezed,}) { + return _then(_GuildTypeActivity( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,title: freezed == title ? _self.title : title // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$GetPosStatus { + + int? get len_active_sessions; bool? get has_pons; bool? get has_active_pons; +/// Create a copy of GetPosStatus +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$GetPosStatusCopyWith get copyWith => _$GetPosStatusCopyWithImpl(this as GetPosStatus, _$identity); + + /// Serializes this GetPosStatus to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is GetPosStatus&&(identical(other.len_active_sessions, len_active_sessions) || other.len_active_sessions == len_active_sessions)&&(identical(other.has_pons, has_pons) || other.has_pons == has_pons)&&(identical(other.has_active_pons, has_active_pons) || other.has_active_pons == has_active_pons)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,len_active_sessions,has_pons,has_active_pons); + +@override +String toString() { + return 'GetPosStatus(len_active_sessions: $len_active_sessions, has_pons: $has_pons, has_active_pons: $has_active_pons)'; +} + + +} + +/// @nodoc +abstract mixin class $GetPosStatusCopyWith<$Res> { + factory $GetPosStatusCopyWith(GetPosStatus value, $Res Function(GetPosStatus) _then) = _$GetPosStatusCopyWithImpl; +@useResult +$Res call({ + int? len_active_sessions, bool? has_pons, bool? has_active_pons +}); + + + + +} +/// @nodoc +class _$GetPosStatusCopyWithImpl<$Res> + implements $GetPosStatusCopyWith<$Res> { + _$GetPosStatusCopyWithImpl(this._self, this._then); + + final GetPosStatus _self; + final $Res Function(GetPosStatus) _then; + +/// Create a copy of GetPosStatus +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? len_active_sessions = freezed,Object? has_pons = freezed,Object? has_active_pons = freezed,}) { + return _then(_self.copyWith( +len_active_sessions: freezed == len_active_sessions ? _self.len_active_sessions : len_active_sessions // ignore: cast_nullable_to_non_nullable +as int?,has_pons: freezed == has_pons ? _self.has_pons : has_pons // ignore: cast_nullable_to_non_nullable +as bool?,has_active_pons: freezed == has_active_pons ? _self.has_active_pons : has_active_pons // ignore: cast_nullable_to_non_nullable +as bool?, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _GetPosStatus implements GetPosStatus { + const _GetPosStatus({this.len_active_sessions, this.has_pons, this.has_active_pons}); + factory _GetPosStatus.fromJson(Map json) => _$GetPosStatusFromJson(json); + +@override final int? len_active_sessions; +@override final bool? has_pons; +@override final bool? has_active_pons; + +/// Create a copy of GetPosStatus +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$GetPosStatusCopyWith<_GetPosStatus> get copyWith => __$GetPosStatusCopyWithImpl<_GetPosStatus>(this, _$identity); + +@override +Map toJson() { + return _$GetPosStatusToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _GetPosStatus&&(identical(other.len_active_sessions, len_active_sessions) || other.len_active_sessions == len_active_sessions)&&(identical(other.has_pons, has_pons) || other.has_pons == has_pons)&&(identical(other.has_active_pons, has_active_pons) || other.has_active_pons == has_active_pons)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,len_active_sessions,has_pons,has_active_pons); + +@override +String toString() { + return 'GetPosStatus(len_active_sessions: $len_active_sessions, has_pons: $has_pons, has_active_pons: $has_active_pons)'; +} + + +} + +/// @nodoc +abstract mixin class _$GetPosStatusCopyWith<$Res> implements $GetPosStatusCopyWith<$Res> { + factory _$GetPosStatusCopyWith(_GetPosStatus value, $Res Function(_GetPosStatus) _then) = __$GetPosStatusCopyWithImpl; +@override @useResult +$Res call({ + int? len_active_sessions, bool? has_pons, bool? has_active_pons +}); + + + + +} +/// @nodoc +class __$GetPosStatusCopyWithImpl<$Res> + implements _$GetPosStatusCopyWith<$Res> { + __$GetPosStatusCopyWithImpl(this._self, this._then); + + final _GetPosStatus _self; + final $Res Function(_GetPosStatus) _then; + +/// Create a copy of GetPosStatus +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? len_active_sessions = freezed,Object? has_pons = freezed,Object? has_active_pons = freezed,}) { + return _then(_GetPosStatus( +len_active_sessions: freezed == len_active_sessions ? _self.len_active_sessions : len_active_sessions // ignore: cast_nullable_to_non_nullable +as int?,has_pons: freezed == has_pons ? _self.has_pons : has_pons // ignore: cast_nullable_to_non_nullable +as bool?,has_active_pons: freezed == has_active_pons ? _self.has_active_pons : has_active_pons // ignore: cast_nullable_to_non_nullable +as bool?, + )); +} + + +} + +// dart format on diff --git a/packages/chicken/lib/data/models/response/guild_profile/guild_profile.g.dart b/packages/chicken/lib/data/models/response/guild_profile/guild_profile.g.dart new file mode 100644 index 0000000..98edd02 --- /dev/null +++ b/packages/chicken/lib/data/models/response/guild_profile/guild_profile.g.dart @@ -0,0 +1,244 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'guild_profile.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +_GuildProfile _$GuildProfileFromJson( + Map json, +) => _GuildProfile( + id: (json['id'] as num?)?.toInt(), + user: json['user'] == null + ? null + : User.fromJson(json['user'] as Map), + address: json['address'] == null + ? null + : Address.fromJson(json['address'] as Map), + guild_area_activity: json['guild_area_activity'] == null + ? null + : GuildAreaActivity.fromJson( + json['guild_area_activity'] as Map, + ), + guild_type_activity: json['guild_type_activity'] == null + ? null + : GuildTypeActivity.fromJson( + json['guild_type_activity'] as Map, + ), + kill_house: json['kill_house'] as List?, + steward_kill_house: json['steward_kill_house'] as List?, + stewards: json['stewards'] as List?, + get_pos_status: json['get_pos_status'] == null + ? null + : GetPosStatus.fromJson(json['get_pos_status'] as Map), + key: json['key'] as String?, + create_date: json['create_date'] as String?, + modify_date: json['modify_date'] as String?, + trash: json['trash'] as bool?, + user_id_foreign_key: json['user_id_foreign_key'] as String?, + address_id_foreign_key: json['address_id_foreign_key'] as String?, + user_bank_id_foreign_key: json['user_bank_id_foreign_key'] as String?, + wallet_id_foreign_key: json['wallet_id_foreign_key'] as String?, + provincial_government_id_key: json['provincial_government_id_key'] as String?, + identity_documents: json['identity_documents'], + active: json['active'] as bool?, + city_number: (json['city_number'] as num?)?.toInt(), + city_name: json['city_name'] as String?, + guilds_id: json['guilds_id'] as String?, + license_number: json['license_number'] as String?, + guilds_name: json['guilds_name'] as String?, + phone: json['phone'] as String?, + type_activity: json['type_activity'] as String?, + area_activity: json['area_activity'] as String?, + province_number: (json['province_number'] as num?)?.toInt(), + province_name: json['province_name'] as String?, + steward: json['steward'] as bool?, + has_pos: json['has_pos'] as bool?, + centers_allocation: json['centers_allocation'], + kill_house_centers_allocation: json['kill_house_centers_allocation'], + allocation_limit: json['allocation_limit'], + limitation_allocation: json['limitation_allocation'] as bool?, + registerar_role: json['registerar_role'] as String?, + registerar_fullname: json['registerar_fullname'] as String?, + registerar_mobile: json['registerar_mobile'] as String?, + kill_house_register: json['kill_house_register'] as bool?, + steward_register: json['steward_register'] as bool?, + guilds_room_register: json['guilds_room_register'] as bool?, + pos_company_register: json['pos_company_register'] as bool?, + province_accept_state: json['province_accept_state'] as String?, + province_message: json['province_message'] as String?, + condition: json['condition'] as String?, + description_condition: json['description_condition'] as String?, + steward_active: json['steward_active'] as bool?, + steward_allocation_limit: json['steward_allocation_limit'], + steward_limitation_allocation: json['steward_limitation_allocation'] as bool?, + license: json['license'] as bool?, + license_form: json['license_form'], + license_file: json['license_file'], + reviewer_role: json['reviewer_role'] as String?, + reviewer_fullname: json['reviewer_fullname'] as String?, + reviewer_mobile: json['reviewer_mobile'] as String?, + checker_message: json['checker_message'] as String?, + final_accept: json['final_accept'] as bool?, + temporary_registration: json['temporary_registration'] as bool?, + created_by: json['created_by'] as String?, + modified_by: json['modified_by'] as String?, + user_bank_info: json['user_bank_info'], + wallet: (json['wallet'] as num?)?.toInt(), + cars: json['cars'] as List?, + user_level: json['user_level'] as List?, +); + +Map _$GuildProfileToJson(_GuildProfile instance) => + { + 'id': instance.id, + 'user': instance.user, + 'address': instance.address, + 'guild_area_activity': instance.guild_area_activity, + 'guild_type_activity': instance.guild_type_activity, + 'kill_house': instance.kill_house, + 'steward_kill_house': instance.steward_kill_house, + 'stewards': instance.stewards, + 'get_pos_status': instance.get_pos_status, + 'key': instance.key, + 'create_date': instance.create_date, + 'modify_date': instance.modify_date, + 'trash': instance.trash, + 'user_id_foreign_key': instance.user_id_foreign_key, + 'address_id_foreign_key': instance.address_id_foreign_key, + 'user_bank_id_foreign_key': instance.user_bank_id_foreign_key, + 'wallet_id_foreign_key': instance.wallet_id_foreign_key, + 'provincial_government_id_key': instance.provincial_government_id_key, + 'identity_documents': instance.identity_documents, + 'active': instance.active, + 'city_number': instance.city_number, + 'city_name': instance.city_name, + 'guilds_id': instance.guilds_id, + 'license_number': instance.license_number, + 'guilds_name': instance.guilds_name, + 'phone': instance.phone, + 'type_activity': instance.type_activity, + 'area_activity': instance.area_activity, + 'province_number': instance.province_number, + 'province_name': instance.province_name, + 'steward': instance.steward, + 'has_pos': instance.has_pos, + 'centers_allocation': instance.centers_allocation, + 'kill_house_centers_allocation': instance.kill_house_centers_allocation, + 'allocation_limit': instance.allocation_limit, + 'limitation_allocation': instance.limitation_allocation, + 'registerar_role': instance.registerar_role, + 'registerar_fullname': instance.registerar_fullname, + 'registerar_mobile': instance.registerar_mobile, + 'kill_house_register': instance.kill_house_register, + 'steward_register': instance.steward_register, + 'guilds_room_register': instance.guilds_room_register, + 'pos_company_register': instance.pos_company_register, + 'province_accept_state': instance.province_accept_state, + 'province_message': instance.province_message, + 'condition': instance.condition, + 'description_condition': instance.description_condition, + 'steward_active': instance.steward_active, + 'steward_allocation_limit': instance.steward_allocation_limit, + 'steward_limitation_allocation': instance.steward_limitation_allocation, + 'license': instance.license, + 'license_form': instance.license_form, + 'license_file': instance.license_file, + 'reviewer_role': instance.reviewer_role, + 'reviewer_fullname': instance.reviewer_fullname, + 'reviewer_mobile': instance.reviewer_mobile, + 'checker_message': instance.checker_message, + 'final_accept': instance.final_accept, + 'temporary_registration': instance.temporary_registration, + 'created_by': instance.created_by, + 'modified_by': instance.modified_by, + 'user_bank_info': instance.user_bank_info, + 'wallet': instance.wallet, + 'cars': instance.cars, + 'user_level': instance.user_level, + }; + +_User _$UserFromJson(Map json) => _User( + fullname: json['fullname'] as String?, + first_name: json['first_name'] as String?, + last_name: json['last_name'] as String?, + mobile: json['mobile'] as String?, + national_id: json['national_id'] as String?, + city: json['city'] as String?, +); + +Map _$UserToJson(_User instance) => { + 'fullname': instance.fullname, + 'first_name': instance.first_name, + 'last_name': instance.last_name, + 'mobile': instance.mobile, + 'national_id': instance.national_id, + 'city': instance.city, +}; + +_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?, + postal_code: json['postal_code'] as String?, +); + +Map _$AddressToJson(_Address instance) => { + 'province': instance.province, + 'city': instance.city, + 'address': instance.address, + 'postal_code': instance.postal_code, +}; + +_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, +}; + +_GuildAreaActivity _$GuildAreaActivityFromJson(Map json) => + _GuildAreaActivity( + key: json['key'] as String?, + title: json['title'] as String?, + ); + +Map _$GuildAreaActivityToJson(_GuildAreaActivity instance) => + {'key': instance.key, 'title': instance.title}; + +_GuildTypeActivity _$GuildTypeActivityFromJson(Map json) => + _GuildTypeActivity( + key: json['key'] as String?, + title: json['title'] as String?, + ); + +Map _$GuildTypeActivityToJson(_GuildTypeActivity instance) => + {'key': instance.key, 'title': instance.title}; + +_GetPosStatus _$GetPosStatusFromJson(Map json) => + _GetPosStatus( + len_active_sessions: (json['len_active_sessions'] as num?)?.toInt(), + has_pons: json['has_pons'] as bool?, + has_active_pons: json['has_active_pons'] as bool?, + ); + +Map _$GetPosStatusToJson(_GetPosStatus instance) => + { + 'len_active_sessions': instance.len_active_sessions, + 'has_pons': instance.has_pons, + 'has_active_pons': instance.has_active_pons, + }; diff --git a/packages/chicken/lib/data/models/response/imported_loads_model/imported_loads_model.dart b/packages/chicken/lib/data/models/response/imported_loads_model/imported_loads_model.dart new file mode 100644 index 0000000..4df10b9 --- /dev/null +++ b/packages/chicken/lib/data/models/response/imported_loads_model/imported_loads_model.dart @@ -0,0 +1,311 @@ +import 'package:freezed_annotation/freezed_annotation.dart'; + +part 'imported_loads_model.freezed.dart'; +part 'imported_loads_model.g.dart'; + +@freezed +abstract class ImportedLoadsModel with _$ImportedLoadsModel { + const factory ImportedLoadsModel({ + int? count, + String? next, + String? previous, + List? results, + }) = _ImportedLoadsModel; + + factory ImportedLoadsModel.fromJson(Map json) => + _$ImportedLoadsModelFromJson(json); +} + +@freezed +abstract class ImportedLoad with _$ImportedLoad { + const factory ImportedLoad({ + int? id, + Product? product, + KillHouse? killHouse, + dynamic toKillHouse, + dynamic steward, + ToSteward? toSteward, + dynamic guilds, + dynamic toGuilds, + dynamic toColdHouse, + int? indexWeight, + int? dateTimestamp, + int? newState, + int? newReceiverState, + int? newAllocationState, + String? key, + String? createDate, + String? modifyDate, + bool? trash, + int? numberOfCarcasses, + int? realNumberOfCarcasses, + int? receiverRealNumberOfCarcasses, + double? weightOfCarcasses, + double? realWeightOfCarcasses, + double? receiverRealWeightOfCarcasses, + double? weightLossOfCarcasses, + bool? finalRegistration, + String? sellType, + String? productName, + String? sellerType, + String? type, + String? saleType, + String? allocationType, + bool? systemRegistrationCode, + int? registrationCode, + int? amount, + int? totalAmount, + int? totalAmountPaid, + int? totalAmountRemain, + dynamic loggedRegistrationCode, + String? state, + String? receiverState, + String? allocationState, + String? date, + dynamic role, + dynamic stewardTempKey, + bool? approvedPriceStatus, + bool? calculateStatus, + bool? temporaryTrash, + bool? temporaryDeleted, + dynamic createdBy, + dynamic modifiedBy, + dynamic wareHouse, + dynamic stewardWareHouse, + dynamic car, + dynamic dispenser, + }) = _ImportedLoad; + + factory ImportedLoad.fromJson(Map json) => + _$ImportedLoadFromJson(json); +} + +@freezed +abstract class Product with _$Product { + const factory Product({ + double? weightAverage, + }) = _Product; + + factory Product.fromJson(Map json) => + _$ProductFromJson(json); +} + +@freezed +abstract class KillHouse with _$KillHouse { + const factory KillHouse({ + String? key, + KillHouseOperator? killHouseOperator, + String? name, + bool? killer, + }) = _KillHouse; + + factory KillHouse.fromJson(Map json) => + _$KillHouseFromJson(json); +} + +@freezed +abstract class KillHouseOperator with _$KillHouseOperator { + const factory KillHouseOperator({ + User? user, + }) = _KillHouseOperator; + + factory KillHouseOperator.fromJson(Map json) => + _$KillHouseOperatorFromJson(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 ToSteward with _$ToSteward { + const factory ToSteward({ + int? id, + ToStewardUser? user, + Address? address, + Activity? guildAreaActivity, + Activity? guildTypeActivity, + List? killHouse, + List? stewardKillHouse, + List? stewards, + PosStatus? getPosStatus, + String? key, + String? createDate, + String? modifyDate, + bool? trash, + dynamic userIdForeignKey, + dynamic addressIdForeignKey, + dynamic userBankIdForeignKey, + dynamic walletIdForeignKey, + dynamic provincialGovernmentIdKey, + dynamic identityDocuments, + bool? active, + int? cityNumber, + String? cityName, + String? guildsId, + String? licenseNumber, + String? guildsName, + dynamic phone, + String? typeActivity, + String? areaActivity, + int? provinceNumber, + String? provinceName, + bool? steward, + bool? hasPos, + dynamic centersAllocation, + dynamic killHouseCentersAllocation, + dynamic allocationLimit, + bool? limitationAllocation, + dynamic registerarRole, + dynamic registerarFullname, + dynamic registerarMobile, + bool? killHouseRegister, + bool? stewardRegister, + bool? guildsRoomRegister, + bool? posCompanyRegister, + String? provinceAcceptState, + dynamic provinceMessage, + dynamic condition, + dynamic descriptionCondition, + bool? stewardActive, + dynamic stewardAllocationLimit, + bool? stewardLimitationAllocation, + bool? license, + dynamic licenseForm, + dynamic licenseFile, + dynamic reviewerRole, + dynamic reviewerFullname, + dynamic reviewerMobile, + dynamic checkerMessage, + bool? finalAccept, + bool? temporaryRegistration, + dynamic createdBy, + dynamic modifiedBy, + dynamic userBankInfo, + int? wallet, + List? cars, + List? userLevel, + }) = _ToSteward; + + factory ToSteward.fromJson(Map json) => + _$ToStewardFromJson(json); +} + +@freezed +abstract class ToStewardUser with _$ToStewardUser { + const factory ToStewardUser({ + String? fullname, + String? firstName, + String? lastName, + String? mobile, + String? nationalId, + String? city, + }) = _ToStewardUser; + + factory ToStewardUser.fromJson(Map json) => + _$ToStewardUserFromJson(json); +} + +@freezed +abstract class Address with _$Address { + const factory Address({ + Province? province, + CitySimple? 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 CitySimple with _$CitySimple { + const factory CitySimple({ + String? key, + String? name, + }) = _CitySimple; + + factory CitySimple.fromJson(Map json) => + _$CitySimpleFromJson(json); +} + +@freezed +abstract class Activity with _$Activity { + const factory Activity({ + String? key, + String? title, + }) = _Activity; + + factory Activity.fromJson(Map json) => + _$ActivityFromJson(json); +} + +@freezed +abstract class PosStatus with _$PosStatus { + const factory PosStatus({ + int? lenActiveSessions, + bool? hasPons, + bool? hasActivePons, + }) = _PosStatus; + + factory PosStatus.fromJson(Map json) => + _$PosStatusFromJson(json); +} diff --git a/packages/chicken/lib/data/models/response/imported_loads_model/imported_loads_model.freezed.dart b/packages/chicken/lib/data/models/response/imported_loads_model/imported_loads_model.freezed.dart new file mode 100644 index 0000000..16c065c --- /dev/null +++ b/packages/chicken/lib/data/models/response/imported_loads_model/imported_loads_model.freezed.dart @@ -0,0 +1,2744 @@ +// dart format width=80 +// coverage:ignore-file +// GENERATED CODE - DO NOT MODIFY BY HAND +// 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 'imported_loads_model.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; + +/// @nodoc +mixin _$ImportedLoadsModel { + + int? get count; String? get next; String? get previous; List? get results; +/// Create a copy of ImportedLoadsModel +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ImportedLoadsModelCopyWith get copyWith => _$ImportedLoadsModelCopyWithImpl(this as ImportedLoadsModel, _$identity); + + /// Serializes this ImportedLoadsModel to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is ImportedLoadsModel&&(identical(other.count, count) || other.count == count)&&(identical(other.next, next) || other.next == next)&&(identical(other.previous, previous) || other.previous == previous)&&const DeepCollectionEquality().equals(other.results, results)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,count,next,previous,const DeepCollectionEquality().hash(results)); + +@override +String toString() { + return 'ImportedLoadsModel(count: $count, next: $next, previous: $previous, results: $results)'; +} + + +} + +/// @nodoc +abstract mixin class $ImportedLoadsModelCopyWith<$Res> { + factory $ImportedLoadsModelCopyWith(ImportedLoadsModel value, $Res Function(ImportedLoadsModel) _then) = _$ImportedLoadsModelCopyWithImpl; +@useResult +$Res call({ + int? count, String? next, String? previous, List? results +}); + + + + +} +/// @nodoc +class _$ImportedLoadsModelCopyWithImpl<$Res> + implements $ImportedLoadsModelCopyWith<$Res> { + _$ImportedLoadsModelCopyWithImpl(this._self, this._then); + + final ImportedLoadsModel _self; + final $Res Function(ImportedLoadsModel) _then; + +/// Create a copy of ImportedLoadsModel +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? count = freezed,Object? next = freezed,Object? previous = freezed,Object? results = freezed,}) { + return _then(_self.copyWith( +count: freezed == count ? _self.count : count // ignore: cast_nullable_to_non_nullable +as int?,next: freezed == next ? _self.next : next // ignore: cast_nullable_to_non_nullable +as String?,previous: freezed == previous ? _self.previous : previous // ignore: cast_nullable_to_non_nullable +as String?,results: freezed == results ? _self.results : results // ignore: cast_nullable_to_non_nullable +as List?, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _ImportedLoadsModel implements ImportedLoadsModel { + const _ImportedLoadsModel({this.count, this.next, this.previous, final List? results}): _results = results; + factory _ImportedLoadsModel.fromJson(Map json) => _$ImportedLoadsModelFromJson(json); + +@override final int? count; +@override final String? next; +@override final String? previous; + final List? _results; +@override List? get results { + final value = _results; + if (value == null) return null; + if (_results is EqualUnmodifiableListView) return _results; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + + +/// Create a copy of ImportedLoadsModel +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ImportedLoadsModelCopyWith<_ImportedLoadsModel> get copyWith => __$ImportedLoadsModelCopyWithImpl<_ImportedLoadsModel>(this, _$identity); + +@override +Map toJson() { + return _$ImportedLoadsModelToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _ImportedLoadsModel&&(identical(other.count, count) || other.count == count)&&(identical(other.next, next) || other.next == next)&&(identical(other.previous, previous) || other.previous == previous)&&const DeepCollectionEquality().equals(other._results, _results)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,count,next,previous,const DeepCollectionEquality().hash(_results)); + +@override +String toString() { + return 'ImportedLoadsModel(count: $count, next: $next, previous: $previous, results: $results)'; +} + + +} + +/// @nodoc +abstract mixin class _$ImportedLoadsModelCopyWith<$Res> implements $ImportedLoadsModelCopyWith<$Res> { + factory _$ImportedLoadsModelCopyWith(_ImportedLoadsModel value, $Res Function(_ImportedLoadsModel) _then) = __$ImportedLoadsModelCopyWithImpl; +@override @useResult +$Res call({ + int? count, String? next, String? previous, List? results +}); + + + + +} +/// @nodoc +class __$ImportedLoadsModelCopyWithImpl<$Res> + implements _$ImportedLoadsModelCopyWith<$Res> { + __$ImportedLoadsModelCopyWithImpl(this._self, this._then); + + final _ImportedLoadsModel _self; + final $Res Function(_ImportedLoadsModel) _then; + +/// Create a copy of ImportedLoadsModel +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? count = freezed,Object? next = freezed,Object? previous = freezed,Object? results = freezed,}) { + return _then(_ImportedLoadsModel( +count: freezed == count ? _self.count : count // ignore: cast_nullable_to_non_nullable +as int?,next: freezed == next ? _self.next : next // ignore: cast_nullable_to_non_nullable +as String?,previous: freezed == previous ? _self.previous : previous // ignore: cast_nullable_to_non_nullable +as String?,results: freezed == results ? _self._results : results // ignore: cast_nullable_to_non_nullable +as List?, + )); +} + + +} + + +/// @nodoc +mixin _$ImportedLoad { + + int? get id; Product? get product; KillHouse? get killHouse; dynamic get toKillHouse; dynamic get steward; ToSteward? get toSteward; dynamic get guilds; dynamic get toGuilds; dynamic get toColdHouse; int? get indexWeight; int? get dateTimestamp; int? get newState; int? get newReceiverState; int? get newAllocationState; String? get key; String? get createDate; String? get modifyDate; bool? get trash; int? get numberOfCarcasses; int? get realNumberOfCarcasses; int? get receiverRealNumberOfCarcasses; double? get weightOfCarcasses; double? get realWeightOfCarcasses; double? get receiverRealWeightOfCarcasses; double? get weightLossOfCarcasses; bool? get finalRegistration; String? get sellType; String? get productName; String? get sellerType; String? get type; String? get saleType; String? get allocationType; bool? get systemRegistrationCode; int? get registrationCode; int? get amount; int? get totalAmount; int? get totalAmountPaid; int? get totalAmountRemain; dynamic get loggedRegistrationCode; String? get state; String? get receiverState; String? get allocationState; String? get date; dynamic get role; dynamic get stewardTempKey; bool? get approvedPriceStatus; bool? get calculateStatus; bool? get temporaryTrash; bool? get temporaryDeleted; dynamic get createdBy; dynamic get modifiedBy; dynamic get wareHouse; dynamic get stewardWareHouse; dynamic get car; dynamic get dispenser; +/// Create a copy of ImportedLoad +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ImportedLoadCopyWith get copyWith => _$ImportedLoadCopyWithImpl(this as ImportedLoad, _$identity); + + /// Serializes this ImportedLoad to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is ImportedLoad&&(identical(other.id, id) || other.id == id)&&(identical(other.product, product) || other.product == product)&&(identical(other.killHouse, killHouse) || other.killHouse == killHouse)&&const DeepCollectionEquality().equals(other.toKillHouse, toKillHouse)&&const DeepCollectionEquality().equals(other.steward, steward)&&(identical(other.toSteward, toSteward) || other.toSteward == toSteward)&&const DeepCollectionEquality().equals(other.guilds, guilds)&&const DeepCollectionEquality().equals(other.toGuilds, toGuilds)&&const DeepCollectionEquality().equals(other.toColdHouse, toColdHouse)&&(identical(other.indexWeight, indexWeight) || other.indexWeight == indexWeight)&&(identical(other.dateTimestamp, dateTimestamp) || other.dateTimestamp == dateTimestamp)&&(identical(other.newState, newState) || other.newState == newState)&&(identical(other.newReceiverState, newReceiverState) || other.newReceiverState == newReceiverState)&&(identical(other.newAllocationState, newAllocationState) || other.newAllocationState == newAllocationState)&&(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.numberOfCarcasses, numberOfCarcasses) || other.numberOfCarcasses == numberOfCarcasses)&&(identical(other.realNumberOfCarcasses, realNumberOfCarcasses) || other.realNumberOfCarcasses == realNumberOfCarcasses)&&(identical(other.receiverRealNumberOfCarcasses, receiverRealNumberOfCarcasses) || other.receiverRealNumberOfCarcasses == receiverRealNumberOfCarcasses)&&(identical(other.weightOfCarcasses, weightOfCarcasses) || other.weightOfCarcasses == weightOfCarcasses)&&(identical(other.realWeightOfCarcasses, realWeightOfCarcasses) || other.realWeightOfCarcasses == realWeightOfCarcasses)&&(identical(other.receiverRealWeightOfCarcasses, receiverRealWeightOfCarcasses) || other.receiverRealWeightOfCarcasses == receiverRealWeightOfCarcasses)&&(identical(other.weightLossOfCarcasses, weightLossOfCarcasses) || other.weightLossOfCarcasses == weightLossOfCarcasses)&&(identical(other.finalRegistration, finalRegistration) || other.finalRegistration == finalRegistration)&&(identical(other.sellType, sellType) || other.sellType == sellType)&&(identical(other.productName, productName) || other.productName == productName)&&(identical(other.sellerType, sellerType) || other.sellerType == sellerType)&&(identical(other.type, type) || other.type == type)&&(identical(other.saleType, saleType) || other.saleType == saleType)&&(identical(other.allocationType, allocationType) || other.allocationType == allocationType)&&(identical(other.systemRegistrationCode, systemRegistrationCode) || other.systemRegistrationCode == systemRegistrationCode)&&(identical(other.registrationCode, registrationCode) || other.registrationCode == registrationCode)&&(identical(other.amount, amount) || other.amount == amount)&&(identical(other.totalAmount, totalAmount) || other.totalAmount == totalAmount)&&(identical(other.totalAmountPaid, totalAmountPaid) || other.totalAmountPaid == totalAmountPaid)&&(identical(other.totalAmountRemain, totalAmountRemain) || other.totalAmountRemain == totalAmountRemain)&&const DeepCollectionEquality().equals(other.loggedRegistrationCode, loggedRegistrationCode)&&(identical(other.state, state) || other.state == state)&&(identical(other.receiverState, receiverState) || other.receiverState == receiverState)&&(identical(other.allocationState, allocationState) || other.allocationState == allocationState)&&(identical(other.date, date) || other.date == date)&&const DeepCollectionEquality().equals(other.role, role)&&const DeepCollectionEquality().equals(other.stewardTempKey, stewardTempKey)&&(identical(other.approvedPriceStatus, approvedPriceStatus) || other.approvedPriceStatus == approvedPriceStatus)&&(identical(other.calculateStatus, calculateStatus) || other.calculateStatus == calculateStatus)&&(identical(other.temporaryTrash, temporaryTrash) || other.temporaryTrash == temporaryTrash)&&(identical(other.temporaryDeleted, temporaryDeleted) || other.temporaryDeleted == temporaryDeleted)&&const DeepCollectionEquality().equals(other.createdBy, createdBy)&&const DeepCollectionEquality().equals(other.modifiedBy, modifiedBy)&&const DeepCollectionEquality().equals(other.wareHouse, wareHouse)&&const DeepCollectionEquality().equals(other.stewardWareHouse, stewardWareHouse)&&const DeepCollectionEquality().equals(other.car, car)&&const DeepCollectionEquality().equals(other.dispenser, dispenser)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,id,product,killHouse,const DeepCollectionEquality().hash(toKillHouse),const DeepCollectionEquality().hash(steward),toSteward,const DeepCollectionEquality().hash(guilds),const DeepCollectionEquality().hash(toGuilds),const DeepCollectionEquality().hash(toColdHouse),indexWeight,dateTimestamp,newState,newReceiverState,newAllocationState,key,createDate,modifyDate,trash,numberOfCarcasses,realNumberOfCarcasses,receiverRealNumberOfCarcasses,weightOfCarcasses,realWeightOfCarcasses,receiverRealWeightOfCarcasses,weightLossOfCarcasses,finalRegistration,sellType,productName,sellerType,type,saleType,allocationType,systemRegistrationCode,registrationCode,amount,totalAmount,totalAmountPaid,totalAmountRemain,const DeepCollectionEquality().hash(loggedRegistrationCode),state,receiverState,allocationState,date,const DeepCollectionEquality().hash(role),const DeepCollectionEquality().hash(stewardTempKey),approvedPriceStatus,calculateStatus,temporaryTrash,temporaryDeleted,const DeepCollectionEquality().hash(createdBy),const DeepCollectionEquality().hash(modifiedBy),const DeepCollectionEquality().hash(wareHouse),const DeepCollectionEquality().hash(stewardWareHouse),const DeepCollectionEquality().hash(car),const DeepCollectionEquality().hash(dispenser)]); + +@override +String toString() { + return 'ImportedLoad(id: $id, product: $product, killHouse: $killHouse, toKillHouse: $toKillHouse, steward: $steward, toSteward: $toSteward, guilds: $guilds, toGuilds: $toGuilds, toColdHouse: $toColdHouse, indexWeight: $indexWeight, dateTimestamp: $dateTimestamp, newState: $newState, newReceiverState: $newReceiverState, newAllocationState: $newAllocationState, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, numberOfCarcasses: $numberOfCarcasses, realNumberOfCarcasses: $realNumberOfCarcasses, receiverRealNumberOfCarcasses: $receiverRealNumberOfCarcasses, weightOfCarcasses: $weightOfCarcasses, realWeightOfCarcasses: $realWeightOfCarcasses, receiverRealWeightOfCarcasses: $receiverRealWeightOfCarcasses, weightLossOfCarcasses: $weightLossOfCarcasses, finalRegistration: $finalRegistration, sellType: $sellType, productName: $productName, sellerType: $sellerType, type: $type, saleType: $saleType, allocationType: $allocationType, systemRegistrationCode: $systemRegistrationCode, registrationCode: $registrationCode, amount: $amount, totalAmount: $totalAmount, totalAmountPaid: $totalAmountPaid, totalAmountRemain: $totalAmountRemain, loggedRegistrationCode: $loggedRegistrationCode, state: $state, receiverState: $receiverState, allocationState: $allocationState, date: $date, role: $role, stewardTempKey: $stewardTempKey, approvedPriceStatus: $approvedPriceStatus, calculateStatus: $calculateStatus, temporaryTrash: $temporaryTrash, temporaryDeleted: $temporaryDeleted, createdBy: $createdBy, modifiedBy: $modifiedBy, wareHouse: $wareHouse, stewardWareHouse: $stewardWareHouse, car: $car, dispenser: $dispenser)'; +} + + +} + +/// @nodoc +abstract mixin class $ImportedLoadCopyWith<$Res> { + factory $ImportedLoadCopyWith(ImportedLoad value, $Res Function(ImportedLoad) _then) = _$ImportedLoadCopyWithImpl; +@useResult +$Res call({ + int? id, Product? product, KillHouse? killHouse, dynamic toKillHouse, dynamic steward, ToSteward? toSteward, dynamic guilds, dynamic toGuilds, dynamic toColdHouse, int? indexWeight, int? dateTimestamp, int? newState, int? newReceiverState, int? newAllocationState, String? key, String? createDate, String? modifyDate, bool? trash, int? numberOfCarcasses, int? realNumberOfCarcasses, int? receiverRealNumberOfCarcasses, double? weightOfCarcasses, double? realWeightOfCarcasses, double? receiverRealWeightOfCarcasses, double? weightLossOfCarcasses, bool? finalRegistration, String? sellType, String? productName, String? sellerType, String? type, String? saleType, String? allocationType, bool? systemRegistrationCode, int? registrationCode, int? amount, int? totalAmount, int? totalAmountPaid, int? totalAmountRemain, dynamic loggedRegistrationCode, String? state, String? receiverState, String? allocationState, String? date, dynamic role, dynamic stewardTempKey, bool? approvedPriceStatus, bool? calculateStatus, bool? temporaryTrash, bool? temporaryDeleted, dynamic createdBy, dynamic modifiedBy, dynamic wareHouse, dynamic stewardWareHouse, dynamic car, dynamic dispenser +}); + + +$ProductCopyWith<$Res>? get product;$KillHouseCopyWith<$Res>? get killHouse;$ToStewardCopyWith<$Res>? get toSteward; + +} +/// @nodoc +class _$ImportedLoadCopyWithImpl<$Res> + implements $ImportedLoadCopyWith<$Res> { + _$ImportedLoadCopyWithImpl(this._self, this._then); + + final ImportedLoad _self; + final $Res Function(ImportedLoad) _then; + +/// Create a copy of ImportedLoad +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? product = freezed,Object? killHouse = freezed,Object? toKillHouse = freezed,Object? steward = freezed,Object? toSteward = freezed,Object? guilds = freezed,Object? toGuilds = freezed,Object? toColdHouse = freezed,Object? indexWeight = freezed,Object? dateTimestamp = freezed,Object? newState = freezed,Object? newReceiverState = freezed,Object? newAllocationState = freezed,Object? key = freezed,Object? createDate = freezed,Object? modifyDate = freezed,Object? trash = freezed,Object? numberOfCarcasses = freezed,Object? realNumberOfCarcasses = freezed,Object? receiverRealNumberOfCarcasses = freezed,Object? weightOfCarcasses = freezed,Object? realWeightOfCarcasses = freezed,Object? receiverRealWeightOfCarcasses = freezed,Object? weightLossOfCarcasses = freezed,Object? finalRegistration = freezed,Object? sellType = freezed,Object? productName = freezed,Object? sellerType = freezed,Object? type = freezed,Object? saleType = freezed,Object? allocationType = freezed,Object? systemRegistrationCode = freezed,Object? registrationCode = freezed,Object? amount = freezed,Object? totalAmount = freezed,Object? totalAmountPaid = freezed,Object? totalAmountRemain = freezed,Object? loggedRegistrationCode = freezed,Object? state = freezed,Object? receiverState = freezed,Object? allocationState = freezed,Object? date = freezed,Object? role = freezed,Object? stewardTempKey = freezed,Object? approvedPriceStatus = freezed,Object? calculateStatus = freezed,Object? temporaryTrash = freezed,Object? temporaryDeleted = freezed,Object? createdBy = freezed,Object? modifiedBy = freezed,Object? wareHouse = freezed,Object? stewardWareHouse = freezed,Object? car = freezed,Object? dispenser = freezed,}) { + return _then(_self.copyWith( +id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable +as int?,product: freezed == product ? _self.product : product // ignore: cast_nullable_to_non_nullable +as Product?,killHouse: freezed == killHouse ? _self.killHouse : killHouse // ignore: cast_nullable_to_non_nullable +as KillHouse?,toKillHouse: freezed == toKillHouse ? _self.toKillHouse : toKillHouse // ignore: cast_nullable_to_non_nullable +as dynamic,steward: freezed == steward ? _self.steward : steward // ignore: cast_nullable_to_non_nullable +as dynamic,toSteward: freezed == toSteward ? _self.toSteward : toSteward // ignore: cast_nullable_to_non_nullable +as ToSteward?,guilds: freezed == guilds ? _self.guilds : guilds // ignore: cast_nullable_to_non_nullable +as dynamic,toGuilds: freezed == toGuilds ? _self.toGuilds : toGuilds // ignore: cast_nullable_to_non_nullable +as dynamic,toColdHouse: freezed == toColdHouse ? _self.toColdHouse : toColdHouse // ignore: cast_nullable_to_non_nullable +as dynamic,indexWeight: freezed == indexWeight ? _self.indexWeight : indexWeight // ignore: cast_nullable_to_non_nullable +as int?,dateTimestamp: freezed == dateTimestamp ? _self.dateTimestamp : dateTimestamp // ignore: cast_nullable_to_non_nullable +as int?,newState: freezed == newState ? _self.newState : newState // ignore: cast_nullable_to_non_nullable +as int?,newReceiverState: freezed == newReceiverState ? _self.newReceiverState : newReceiverState // ignore: cast_nullable_to_non_nullable +as int?,newAllocationState: freezed == newAllocationState ? _self.newAllocationState : newAllocationState // 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?,numberOfCarcasses: freezed == numberOfCarcasses ? _self.numberOfCarcasses : numberOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?,realNumberOfCarcasses: freezed == realNumberOfCarcasses ? _self.realNumberOfCarcasses : realNumberOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?,receiverRealNumberOfCarcasses: freezed == receiverRealNumberOfCarcasses ? _self.receiverRealNumberOfCarcasses : receiverRealNumberOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?,weightOfCarcasses: freezed == weightOfCarcasses ? _self.weightOfCarcasses : weightOfCarcasses // ignore: cast_nullable_to_non_nullable +as double?,realWeightOfCarcasses: freezed == realWeightOfCarcasses ? _self.realWeightOfCarcasses : realWeightOfCarcasses // ignore: cast_nullable_to_non_nullable +as double?,receiverRealWeightOfCarcasses: freezed == receiverRealWeightOfCarcasses ? _self.receiverRealWeightOfCarcasses : receiverRealWeightOfCarcasses // ignore: cast_nullable_to_non_nullable +as double?,weightLossOfCarcasses: freezed == weightLossOfCarcasses ? _self.weightLossOfCarcasses : weightLossOfCarcasses // ignore: cast_nullable_to_non_nullable +as double?,finalRegistration: freezed == finalRegistration ? _self.finalRegistration : finalRegistration // ignore: cast_nullable_to_non_nullable +as bool?,sellType: freezed == sellType ? _self.sellType : sellType // ignore: cast_nullable_to_non_nullable +as String?,productName: freezed == productName ? _self.productName : productName // ignore: cast_nullable_to_non_nullable +as String?,sellerType: freezed == sellerType ? _self.sellerType : sellerType // ignore: cast_nullable_to_non_nullable +as String?,type: freezed == type ? _self.type : type // ignore: cast_nullable_to_non_nullable +as String?,saleType: freezed == saleType ? _self.saleType : saleType // ignore: cast_nullable_to_non_nullable +as String?,allocationType: freezed == allocationType ? _self.allocationType : allocationType // ignore: cast_nullable_to_non_nullable +as String?,systemRegistrationCode: freezed == systemRegistrationCode ? _self.systemRegistrationCode : systemRegistrationCode // ignore: cast_nullable_to_non_nullable +as bool?,registrationCode: freezed == registrationCode ? _self.registrationCode : registrationCode // ignore: cast_nullable_to_non_nullable +as int?,amount: freezed == amount ? _self.amount : amount // ignore: cast_nullable_to_non_nullable +as int?,totalAmount: freezed == totalAmount ? _self.totalAmount : totalAmount // ignore: cast_nullable_to_non_nullable +as int?,totalAmountPaid: freezed == totalAmountPaid ? _self.totalAmountPaid : totalAmountPaid // ignore: cast_nullable_to_non_nullable +as int?,totalAmountRemain: freezed == totalAmountRemain ? _self.totalAmountRemain : totalAmountRemain // ignore: cast_nullable_to_non_nullable +as int?,loggedRegistrationCode: freezed == loggedRegistrationCode ? _self.loggedRegistrationCode : loggedRegistrationCode // ignore: cast_nullable_to_non_nullable +as dynamic,state: freezed == state ? _self.state : state // ignore: cast_nullable_to_non_nullable +as String?,receiverState: freezed == receiverState ? _self.receiverState : receiverState // ignore: cast_nullable_to_non_nullable +as String?,allocationState: freezed == allocationState ? _self.allocationState : allocationState // ignore: cast_nullable_to_non_nullable +as String?,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 dynamic,stewardTempKey: freezed == stewardTempKey ? _self.stewardTempKey : stewardTempKey // ignore: cast_nullable_to_non_nullable +as dynamic,approvedPriceStatus: freezed == approvedPriceStatus ? _self.approvedPriceStatus : approvedPriceStatus // ignore: cast_nullable_to_non_nullable +as bool?,calculateStatus: freezed == calculateStatus ? _self.calculateStatus : calculateStatus // ignore: cast_nullable_to_non_nullable +as bool?,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?,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,wareHouse: freezed == wareHouse ? _self.wareHouse : wareHouse // ignore: cast_nullable_to_non_nullable +as dynamic,stewardWareHouse: freezed == stewardWareHouse ? _self.stewardWareHouse : stewardWareHouse // ignore: cast_nullable_to_non_nullable +as dynamic,car: freezed == car ? _self.car : car // ignore: cast_nullable_to_non_nullable +as dynamic,dispenser: freezed == dispenser ? _self.dispenser : dispenser // ignore: cast_nullable_to_non_nullable +as dynamic, + )); +} +/// Create a copy of ImportedLoad +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ProductCopyWith<$Res>? get product { + if (_self.product == null) { + return null; + } + + return $ProductCopyWith<$Res>(_self.product!, (value) { + return _then(_self.copyWith(product: value)); + }); +}/// Create a copy of ImportedLoad +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$KillHouseCopyWith<$Res>? get killHouse { + if (_self.killHouse == null) { + return null; + } + + return $KillHouseCopyWith<$Res>(_self.killHouse!, (value) { + return _then(_self.copyWith(killHouse: value)); + }); +}/// Create a copy of ImportedLoad +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ToStewardCopyWith<$Res>? get toSteward { + if (_self.toSteward == null) { + return null; + } + + return $ToStewardCopyWith<$Res>(_self.toSteward!, (value) { + return _then(_self.copyWith(toSteward: value)); + }); +} +} + + +/// @nodoc +@JsonSerializable() + +class _ImportedLoad implements ImportedLoad { + const _ImportedLoad({this.id, this.product, this.killHouse, this.toKillHouse, this.steward, this.toSteward, this.guilds, this.toGuilds, this.toColdHouse, this.indexWeight, this.dateTimestamp, this.newState, this.newReceiverState, this.newAllocationState, this.key, this.createDate, this.modifyDate, this.trash, this.numberOfCarcasses, this.realNumberOfCarcasses, this.receiverRealNumberOfCarcasses, this.weightOfCarcasses, this.realWeightOfCarcasses, this.receiverRealWeightOfCarcasses, this.weightLossOfCarcasses, this.finalRegistration, this.sellType, this.productName, this.sellerType, this.type, this.saleType, this.allocationType, this.systemRegistrationCode, this.registrationCode, this.amount, this.totalAmount, this.totalAmountPaid, this.totalAmountRemain, this.loggedRegistrationCode, this.state, this.receiverState, this.allocationState, this.date, this.role, this.stewardTempKey, this.approvedPriceStatus, this.calculateStatus, this.temporaryTrash, this.temporaryDeleted, this.createdBy, this.modifiedBy, this.wareHouse, this.stewardWareHouse, this.car, this.dispenser}); + factory _ImportedLoad.fromJson(Map json) => _$ImportedLoadFromJson(json); + +@override final int? id; +@override final Product? product; +@override final KillHouse? killHouse; +@override final dynamic toKillHouse; +@override final dynamic steward; +@override final ToSteward? toSteward; +@override final dynamic guilds; +@override final dynamic toGuilds; +@override final dynamic toColdHouse; +@override final int? indexWeight; +@override final int? dateTimestamp; +@override final int? newState; +@override final int? newReceiverState; +@override final int? newAllocationState; +@override final String? key; +@override final String? createDate; +@override final String? modifyDate; +@override final bool? trash; +@override final int? numberOfCarcasses; +@override final int? realNumberOfCarcasses; +@override final int? receiverRealNumberOfCarcasses; +@override final double? weightOfCarcasses; +@override final double? realWeightOfCarcasses; +@override final double? receiverRealWeightOfCarcasses; +@override final double? weightLossOfCarcasses; +@override final bool? finalRegistration; +@override final String? sellType; +@override final String? productName; +@override final String? sellerType; +@override final String? type; +@override final String? saleType; +@override final String? allocationType; +@override final bool? systemRegistrationCode; +@override final int? registrationCode; +@override final int? amount; +@override final int? totalAmount; +@override final int? totalAmountPaid; +@override final int? totalAmountRemain; +@override final dynamic loggedRegistrationCode; +@override final String? state; +@override final String? receiverState; +@override final String? allocationState; +@override final String? date; +@override final dynamic role; +@override final dynamic stewardTempKey; +@override final bool? approvedPriceStatus; +@override final bool? calculateStatus; +@override final bool? temporaryTrash; +@override final bool? temporaryDeleted; +@override final dynamic createdBy; +@override final dynamic modifiedBy; +@override final dynamic wareHouse; +@override final dynamic stewardWareHouse; +@override final dynamic car; +@override final dynamic dispenser; + +/// Create a copy of ImportedLoad +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ImportedLoadCopyWith<_ImportedLoad> get copyWith => __$ImportedLoadCopyWithImpl<_ImportedLoad>(this, _$identity); + +@override +Map toJson() { + return _$ImportedLoadToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _ImportedLoad&&(identical(other.id, id) || other.id == id)&&(identical(other.product, product) || other.product == product)&&(identical(other.killHouse, killHouse) || other.killHouse == killHouse)&&const DeepCollectionEquality().equals(other.toKillHouse, toKillHouse)&&const DeepCollectionEquality().equals(other.steward, steward)&&(identical(other.toSteward, toSteward) || other.toSteward == toSteward)&&const DeepCollectionEquality().equals(other.guilds, guilds)&&const DeepCollectionEquality().equals(other.toGuilds, toGuilds)&&const DeepCollectionEquality().equals(other.toColdHouse, toColdHouse)&&(identical(other.indexWeight, indexWeight) || other.indexWeight == indexWeight)&&(identical(other.dateTimestamp, dateTimestamp) || other.dateTimestamp == dateTimestamp)&&(identical(other.newState, newState) || other.newState == newState)&&(identical(other.newReceiverState, newReceiverState) || other.newReceiverState == newReceiverState)&&(identical(other.newAllocationState, newAllocationState) || other.newAllocationState == newAllocationState)&&(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.numberOfCarcasses, numberOfCarcasses) || other.numberOfCarcasses == numberOfCarcasses)&&(identical(other.realNumberOfCarcasses, realNumberOfCarcasses) || other.realNumberOfCarcasses == realNumberOfCarcasses)&&(identical(other.receiverRealNumberOfCarcasses, receiverRealNumberOfCarcasses) || other.receiverRealNumberOfCarcasses == receiverRealNumberOfCarcasses)&&(identical(other.weightOfCarcasses, weightOfCarcasses) || other.weightOfCarcasses == weightOfCarcasses)&&(identical(other.realWeightOfCarcasses, realWeightOfCarcasses) || other.realWeightOfCarcasses == realWeightOfCarcasses)&&(identical(other.receiverRealWeightOfCarcasses, receiverRealWeightOfCarcasses) || other.receiverRealWeightOfCarcasses == receiverRealWeightOfCarcasses)&&(identical(other.weightLossOfCarcasses, weightLossOfCarcasses) || other.weightLossOfCarcasses == weightLossOfCarcasses)&&(identical(other.finalRegistration, finalRegistration) || other.finalRegistration == finalRegistration)&&(identical(other.sellType, sellType) || other.sellType == sellType)&&(identical(other.productName, productName) || other.productName == productName)&&(identical(other.sellerType, sellerType) || other.sellerType == sellerType)&&(identical(other.type, type) || other.type == type)&&(identical(other.saleType, saleType) || other.saleType == saleType)&&(identical(other.allocationType, allocationType) || other.allocationType == allocationType)&&(identical(other.systemRegistrationCode, systemRegistrationCode) || other.systemRegistrationCode == systemRegistrationCode)&&(identical(other.registrationCode, registrationCode) || other.registrationCode == registrationCode)&&(identical(other.amount, amount) || other.amount == amount)&&(identical(other.totalAmount, totalAmount) || other.totalAmount == totalAmount)&&(identical(other.totalAmountPaid, totalAmountPaid) || other.totalAmountPaid == totalAmountPaid)&&(identical(other.totalAmountRemain, totalAmountRemain) || other.totalAmountRemain == totalAmountRemain)&&const DeepCollectionEquality().equals(other.loggedRegistrationCode, loggedRegistrationCode)&&(identical(other.state, state) || other.state == state)&&(identical(other.receiverState, receiverState) || other.receiverState == receiverState)&&(identical(other.allocationState, allocationState) || other.allocationState == allocationState)&&(identical(other.date, date) || other.date == date)&&const DeepCollectionEquality().equals(other.role, role)&&const DeepCollectionEquality().equals(other.stewardTempKey, stewardTempKey)&&(identical(other.approvedPriceStatus, approvedPriceStatus) || other.approvedPriceStatus == approvedPriceStatus)&&(identical(other.calculateStatus, calculateStatus) || other.calculateStatus == calculateStatus)&&(identical(other.temporaryTrash, temporaryTrash) || other.temporaryTrash == temporaryTrash)&&(identical(other.temporaryDeleted, temporaryDeleted) || other.temporaryDeleted == temporaryDeleted)&&const DeepCollectionEquality().equals(other.createdBy, createdBy)&&const DeepCollectionEquality().equals(other.modifiedBy, modifiedBy)&&const DeepCollectionEquality().equals(other.wareHouse, wareHouse)&&const DeepCollectionEquality().equals(other.stewardWareHouse, stewardWareHouse)&&const DeepCollectionEquality().equals(other.car, car)&&const DeepCollectionEquality().equals(other.dispenser, dispenser)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,id,product,killHouse,const DeepCollectionEquality().hash(toKillHouse),const DeepCollectionEquality().hash(steward),toSteward,const DeepCollectionEquality().hash(guilds),const DeepCollectionEquality().hash(toGuilds),const DeepCollectionEquality().hash(toColdHouse),indexWeight,dateTimestamp,newState,newReceiverState,newAllocationState,key,createDate,modifyDate,trash,numberOfCarcasses,realNumberOfCarcasses,receiverRealNumberOfCarcasses,weightOfCarcasses,realWeightOfCarcasses,receiverRealWeightOfCarcasses,weightLossOfCarcasses,finalRegistration,sellType,productName,sellerType,type,saleType,allocationType,systemRegistrationCode,registrationCode,amount,totalAmount,totalAmountPaid,totalAmountRemain,const DeepCollectionEquality().hash(loggedRegistrationCode),state,receiverState,allocationState,date,const DeepCollectionEquality().hash(role),const DeepCollectionEquality().hash(stewardTempKey),approvedPriceStatus,calculateStatus,temporaryTrash,temporaryDeleted,const DeepCollectionEquality().hash(createdBy),const DeepCollectionEquality().hash(modifiedBy),const DeepCollectionEquality().hash(wareHouse),const DeepCollectionEquality().hash(stewardWareHouse),const DeepCollectionEquality().hash(car),const DeepCollectionEquality().hash(dispenser)]); + +@override +String toString() { + return 'ImportedLoad(id: $id, product: $product, killHouse: $killHouse, toKillHouse: $toKillHouse, steward: $steward, toSteward: $toSteward, guilds: $guilds, toGuilds: $toGuilds, toColdHouse: $toColdHouse, indexWeight: $indexWeight, dateTimestamp: $dateTimestamp, newState: $newState, newReceiverState: $newReceiverState, newAllocationState: $newAllocationState, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, numberOfCarcasses: $numberOfCarcasses, realNumberOfCarcasses: $realNumberOfCarcasses, receiverRealNumberOfCarcasses: $receiverRealNumberOfCarcasses, weightOfCarcasses: $weightOfCarcasses, realWeightOfCarcasses: $realWeightOfCarcasses, receiverRealWeightOfCarcasses: $receiverRealWeightOfCarcasses, weightLossOfCarcasses: $weightLossOfCarcasses, finalRegistration: $finalRegistration, sellType: $sellType, productName: $productName, sellerType: $sellerType, type: $type, saleType: $saleType, allocationType: $allocationType, systemRegistrationCode: $systemRegistrationCode, registrationCode: $registrationCode, amount: $amount, totalAmount: $totalAmount, totalAmountPaid: $totalAmountPaid, totalAmountRemain: $totalAmountRemain, loggedRegistrationCode: $loggedRegistrationCode, state: $state, receiverState: $receiverState, allocationState: $allocationState, date: $date, role: $role, stewardTempKey: $stewardTempKey, approvedPriceStatus: $approvedPriceStatus, calculateStatus: $calculateStatus, temporaryTrash: $temporaryTrash, temporaryDeleted: $temporaryDeleted, createdBy: $createdBy, modifiedBy: $modifiedBy, wareHouse: $wareHouse, stewardWareHouse: $stewardWareHouse, car: $car, dispenser: $dispenser)'; +} + + +} + +/// @nodoc +abstract mixin class _$ImportedLoadCopyWith<$Res> implements $ImportedLoadCopyWith<$Res> { + factory _$ImportedLoadCopyWith(_ImportedLoad value, $Res Function(_ImportedLoad) _then) = __$ImportedLoadCopyWithImpl; +@override @useResult +$Res call({ + int? id, Product? product, KillHouse? killHouse, dynamic toKillHouse, dynamic steward, ToSteward? toSteward, dynamic guilds, dynamic toGuilds, dynamic toColdHouse, int? indexWeight, int? dateTimestamp, int? newState, int? newReceiverState, int? newAllocationState, String? key, String? createDate, String? modifyDate, bool? trash, int? numberOfCarcasses, int? realNumberOfCarcasses, int? receiverRealNumberOfCarcasses, double? weightOfCarcasses, double? realWeightOfCarcasses, double? receiverRealWeightOfCarcasses, double? weightLossOfCarcasses, bool? finalRegistration, String? sellType, String? productName, String? sellerType, String? type, String? saleType, String? allocationType, bool? systemRegistrationCode, int? registrationCode, int? amount, int? totalAmount, int? totalAmountPaid, int? totalAmountRemain, dynamic loggedRegistrationCode, String? state, String? receiverState, String? allocationState, String? date, dynamic role, dynamic stewardTempKey, bool? approvedPriceStatus, bool? calculateStatus, bool? temporaryTrash, bool? temporaryDeleted, dynamic createdBy, dynamic modifiedBy, dynamic wareHouse, dynamic stewardWareHouse, dynamic car, dynamic dispenser +}); + + +@override $ProductCopyWith<$Res>? get product;@override $KillHouseCopyWith<$Res>? get killHouse;@override $ToStewardCopyWith<$Res>? get toSteward; + +} +/// @nodoc +class __$ImportedLoadCopyWithImpl<$Res> + implements _$ImportedLoadCopyWith<$Res> { + __$ImportedLoadCopyWithImpl(this._self, this._then); + + final _ImportedLoad _self; + final $Res Function(_ImportedLoad) _then; + +/// Create a copy of ImportedLoad +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? product = freezed,Object? killHouse = freezed,Object? toKillHouse = freezed,Object? steward = freezed,Object? toSteward = freezed,Object? guilds = freezed,Object? toGuilds = freezed,Object? toColdHouse = freezed,Object? indexWeight = freezed,Object? dateTimestamp = freezed,Object? newState = freezed,Object? newReceiverState = freezed,Object? newAllocationState = freezed,Object? key = freezed,Object? createDate = freezed,Object? modifyDate = freezed,Object? trash = freezed,Object? numberOfCarcasses = freezed,Object? realNumberOfCarcasses = freezed,Object? receiverRealNumberOfCarcasses = freezed,Object? weightOfCarcasses = freezed,Object? realWeightOfCarcasses = freezed,Object? receiverRealWeightOfCarcasses = freezed,Object? weightLossOfCarcasses = freezed,Object? finalRegistration = freezed,Object? sellType = freezed,Object? productName = freezed,Object? sellerType = freezed,Object? type = freezed,Object? saleType = freezed,Object? allocationType = freezed,Object? systemRegistrationCode = freezed,Object? registrationCode = freezed,Object? amount = freezed,Object? totalAmount = freezed,Object? totalAmountPaid = freezed,Object? totalAmountRemain = freezed,Object? loggedRegistrationCode = freezed,Object? state = freezed,Object? receiverState = freezed,Object? allocationState = freezed,Object? date = freezed,Object? role = freezed,Object? stewardTempKey = freezed,Object? approvedPriceStatus = freezed,Object? calculateStatus = freezed,Object? temporaryTrash = freezed,Object? temporaryDeleted = freezed,Object? createdBy = freezed,Object? modifiedBy = freezed,Object? wareHouse = freezed,Object? stewardWareHouse = freezed,Object? car = freezed,Object? dispenser = freezed,}) { + return _then(_ImportedLoad( +id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable +as int?,product: freezed == product ? _self.product : product // ignore: cast_nullable_to_non_nullable +as Product?,killHouse: freezed == killHouse ? _self.killHouse : killHouse // ignore: cast_nullable_to_non_nullable +as KillHouse?,toKillHouse: freezed == toKillHouse ? _self.toKillHouse : toKillHouse // ignore: cast_nullable_to_non_nullable +as dynamic,steward: freezed == steward ? _self.steward : steward // ignore: cast_nullable_to_non_nullable +as dynamic,toSteward: freezed == toSteward ? _self.toSteward : toSteward // ignore: cast_nullable_to_non_nullable +as ToSteward?,guilds: freezed == guilds ? _self.guilds : guilds // ignore: cast_nullable_to_non_nullable +as dynamic,toGuilds: freezed == toGuilds ? _self.toGuilds : toGuilds // ignore: cast_nullable_to_non_nullable +as dynamic,toColdHouse: freezed == toColdHouse ? _self.toColdHouse : toColdHouse // ignore: cast_nullable_to_non_nullable +as dynamic,indexWeight: freezed == indexWeight ? _self.indexWeight : indexWeight // ignore: cast_nullable_to_non_nullable +as int?,dateTimestamp: freezed == dateTimestamp ? _self.dateTimestamp : dateTimestamp // ignore: cast_nullable_to_non_nullable +as int?,newState: freezed == newState ? _self.newState : newState // ignore: cast_nullable_to_non_nullable +as int?,newReceiverState: freezed == newReceiverState ? _self.newReceiverState : newReceiverState // ignore: cast_nullable_to_non_nullable +as int?,newAllocationState: freezed == newAllocationState ? _self.newAllocationState : newAllocationState // 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?,numberOfCarcasses: freezed == numberOfCarcasses ? _self.numberOfCarcasses : numberOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?,realNumberOfCarcasses: freezed == realNumberOfCarcasses ? _self.realNumberOfCarcasses : realNumberOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?,receiverRealNumberOfCarcasses: freezed == receiverRealNumberOfCarcasses ? _self.receiverRealNumberOfCarcasses : receiverRealNumberOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?,weightOfCarcasses: freezed == weightOfCarcasses ? _self.weightOfCarcasses : weightOfCarcasses // ignore: cast_nullable_to_non_nullable +as double?,realWeightOfCarcasses: freezed == realWeightOfCarcasses ? _self.realWeightOfCarcasses : realWeightOfCarcasses // ignore: cast_nullable_to_non_nullable +as double?,receiverRealWeightOfCarcasses: freezed == receiverRealWeightOfCarcasses ? _self.receiverRealWeightOfCarcasses : receiverRealWeightOfCarcasses // ignore: cast_nullable_to_non_nullable +as double?,weightLossOfCarcasses: freezed == weightLossOfCarcasses ? _self.weightLossOfCarcasses : weightLossOfCarcasses // ignore: cast_nullable_to_non_nullable +as double?,finalRegistration: freezed == finalRegistration ? _self.finalRegistration : finalRegistration // ignore: cast_nullable_to_non_nullable +as bool?,sellType: freezed == sellType ? _self.sellType : sellType // ignore: cast_nullable_to_non_nullable +as String?,productName: freezed == productName ? _self.productName : productName // ignore: cast_nullable_to_non_nullable +as String?,sellerType: freezed == sellerType ? _self.sellerType : sellerType // ignore: cast_nullable_to_non_nullable +as String?,type: freezed == type ? _self.type : type // ignore: cast_nullable_to_non_nullable +as String?,saleType: freezed == saleType ? _self.saleType : saleType // ignore: cast_nullable_to_non_nullable +as String?,allocationType: freezed == allocationType ? _self.allocationType : allocationType // ignore: cast_nullable_to_non_nullable +as String?,systemRegistrationCode: freezed == systemRegistrationCode ? _self.systemRegistrationCode : systemRegistrationCode // ignore: cast_nullable_to_non_nullable +as bool?,registrationCode: freezed == registrationCode ? _self.registrationCode : registrationCode // ignore: cast_nullable_to_non_nullable +as int?,amount: freezed == amount ? _self.amount : amount // ignore: cast_nullable_to_non_nullable +as int?,totalAmount: freezed == totalAmount ? _self.totalAmount : totalAmount // ignore: cast_nullable_to_non_nullable +as int?,totalAmountPaid: freezed == totalAmountPaid ? _self.totalAmountPaid : totalAmountPaid // ignore: cast_nullable_to_non_nullable +as int?,totalAmountRemain: freezed == totalAmountRemain ? _self.totalAmountRemain : totalAmountRemain // ignore: cast_nullable_to_non_nullable +as int?,loggedRegistrationCode: freezed == loggedRegistrationCode ? _self.loggedRegistrationCode : loggedRegistrationCode // ignore: cast_nullable_to_non_nullable +as dynamic,state: freezed == state ? _self.state : state // ignore: cast_nullable_to_non_nullable +as String?,receiverState: freezed == receiverState ? _self.receiverState : receiverState // ignore: cast_nullable_to_non_nullable +as String?,allocationState: freezed == allocationState ? _self.allocationState : allocationState // ignore: cast_nullable_to_non_nullable +as String?,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 dynamic,stewardTempKey: freezed == stewardTempKey ? _self.stewardTempKey : stewardTempKey // ignore: cast_nullable_to_non_nullable +as dynamic,approvedPriceStatus: freezed == approvedPriceStatus ? _self.approvedPriceStatus : approvedPriceStatus // ignore: cast_nullable_to_non_nullable +as bool?,calculateStatus: freezed == calculateStatus ? _self.calculateStatus : calculateStatus // ignore: cast_nullable_to_non_nullable +as bool?,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?,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,wareHouse: freezed == wareHouse ? _self.wareHouse : wareHouse // ignore: cast_nullable_to_non_nullable +as dynamic,stewardWareHouse: freezed == stewardWareHouse ? _self.stewardWareHouse : stewardWareHouse // ignore: cast_nullable_to_non_nullable +as dynamic,car: freezed == car ? _self.car : car // ignore: cast_nullable_to_non_nullable +as dynamic,dispenser: freezed == dispenser ? _self.dispenser : dispenser // ignore: cast_nullable_to_non_nullable +as dynamic, + )); +} + +/// Create a copy of ImportedLoad +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ProductCopyWith<$Res>? get product { + if (_self.product == null) { + return null; + } + + return $ProductCopyWith<$Res>(_self.product!, (value) { + return _then(_self.copyWith(product: value)); + }); +}/// Create a copy of ImportedLoad +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$KillHouseCopyWith<$Res>? get killHouse { + if (_self.killHouse == null) { + return null; + } + + return $KillHouseCopyWith<$Res>(_self.killHouse!, (value) { + return _then(_self.copyWith(killHouse: value)); + }); +}/// Create a copy of ImportedLoad +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ToStewardCopyWith<$Res>? get toSteward { + if (_self.toSteward == null) { + return null; + } + + return $ToStewardCopyWith<$Res>(_self.toSteward!, (value) { + return _then(_self.copyWith(toSteward: value)); + }); +} +} + + +/// @nodoc +mixin _$Product { + + double? get weightAverage; +/// Create a copy of Product +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ProductCopyWith get copyWith => _$ProductCopyWithImpl(this as Product, _$identity); + + /// Serializes this Product to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is Product&&(identical(other.weightAverage, weightAverage) || other.weightAverage == weightAverage)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,weightAverage); + +@override +String toString() { + return 'Product(weightAverage: $weightAverage)'; +} + + +} + +/// @nodoc +abstract mixin class $ProductCopyWith<$Res> { + factory $ProductCopyWith(Product value, $Res Function(Product) _then) = _$ProductCopyWithImpl; +@useResult +$Res call({ + double? weightAverage +}); + + + + +} +/// @nodoc +class _$ProductCopyWithImpl<$Res> + implements $ProductCopyWith<$Res> { + _$ProductCopyWithImpl(this._self, this._then); + + final Product _self; + final $Res Function(Product) _then; + +/// Create a copy of Product +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? weightAverage = freezed,}) { + return _then(_self.copyWith( +weightAverage: freezed == weightAverage ? _self.weightAverage : weightAverage // ignore: cast_nullable_to_non_nullable +as double?, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _Product implements Product { + const _Product({this.weightAverage}); + factory _Product.fromJson(Map json) => _$ProductFromJson(json); + +@override final double? weightAverage; + +/// Create a copy of Product +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ProductCopyWith<_Product> get copyWith => __$ProductCopyWithImpl<_Product>(this, _$identity); + +@override +Map toJson() { + return _$ProductToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Product&&(identical(other.weightAverage, weightAverage) || other.weightAverage == weightAverage)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,weightAverage); + +@override +String toString() { + return 'Product(weightAverage: $weightAverage)'; +} + + +} + +/// @nodoc +abstract mixin class _$ProductCopyWith<$Res> implements $ProductCopyWith<$Res> { + factory _$ProductCopyWith(_Product value, $Res Function(_Product) _then) = __$ProductCopyWithImpl; +@override @useResult +$Res call({ + double? weightAverage +}); + + + + +} +/// @nodoc +class __$ProductCopyWithImpl<$Res> + implements _$ProductCopyWith<$Res> { + __$ProductCopyWithImpl(this._self, this._then); + + final _Product _self; + final $Res Function(_Product) _then; + +/// Create a copy of Product +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? weightAverage = freezed,}) { + return _then(_Product( +weightAverage: freezed == weightAverage ? _self.weightAverage : weightAverage // ignore: cast_nullable_to_non_nullable +as double?, + )); +} + + +} + + +/// @nodoc +mixin _$KillHouse { + + String? get key; KillHouseOperator? get killHouseOperator; String? get name; bool? get killer; +/// Create a copy of KillHouse +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$KillHouseCopyWith get copyWith => _$KillHouseCopyWithImpl(this as KillHouse, _$identity); + + /// Serializes this KillHouse to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is KillHouse&&(identical(other.key, key) || other.key == key)&&(identical(other.killHouseOperator, killHouseOperator) || other.killHouseOperator == killHouseOperator)&&(identical(other.name, name) || other.name == name)&&(identical(other.killer, killer) || other.killer == killer)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,killHouseOperator,name,killer); + +@override +String toString() { + return 'KillHouse(key: $key, killHouseOperator: $killHouseOperator, name: $name, killer: $killer)'; +} + + +} + +/// @nodoc +abstract mixin class $KillHouseCopyWith<$Res> { + factory $KillHouseCopyWith(KillHouse value, $Res Function(KillHouse) _then) = _$KillHouseCopyWithImpl; +@useResult +$Res call({ + String? key, KillHouseOperator? killHouseOperator, String? name, bool? killer +}); + + +$KillHouseOperatorCopyWith<$Res>? get killHouseOperator; + +} +/// @nodoc +class _$KillHouseCopyWithImpl<$Res> + implements $KillHouseCopyWith<$Res> { + _$KillHouseCopyWithImpl(this._self, this._then); + + final KillHouse _self; + final $Res Function(KillHouse) _then; + +/// Create a copy of KillHouse +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? key = freezed,Object? killHouseOperator = freezed,Object? name = freezed,Object? killer = freezed,}) { + return _then(_self.copyWith( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,killHouseOperator: freezed == killHouseOperator ? _self.killHouseOperator : killHouseOperator // ignore: cast_nullable_to_non_nullable +as KillHouseOperator?,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?, + )); +} +/// Create a copy of KillHouse +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$KillHouseOperatorCopyWith<$Res>? get killHouseOperator { + if (_self.killHouseOperator == null) { + return null; + } + + return $KillHouseOperatorCopyWith<$Res>(_self.killHouseOperator!, (value) { + return _then(_self.copyWith(killHouseOperator: value)); + }); +} +} + + +/// @nodoc +@JsonSerializable() + +class _KillHouse implements KillHouse { + const _KillHouse({this.key, this.killHouseOperator, this.name, this.killer}); + factory _KillHouse.fromJson(Map json) => _$KillHouseFromJson(json); + +@override final String? key; +@override final KillHouseOperator? killHouseOperator; +@override final String? name; +@override final bool? killer; + +/// Create a copy of KillHouse +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$KillHouseCopyWith<_KillHouse> get copyWith => __$KillHouseCopyWithImpl<_KillHouse>(this, _$identity); + +@override +Map toJson() { + return _$KillHouseToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _KillHouse&&(identical(other.key, key) || other.key == key)&&(identical(other.killHouseOperator, killHouseOperator) || other.killHouseOperator == killHouseOperator)&&(identical(other.name, name) || other.name == name)&&(identical(other.killer, killer) || other.killer == killer)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,killHouseOperator,name,killer); + +@override +String toString() { + return 'KillHouse(key: $key, killHouseOperator: $killHouseOperator, name: $name, killer: $killer)'; +} + + +} + +/// @nodoc +abstract mixin class _$KillHouseCopyWith<$Res> implements $KillHouseCopyWith<$Res> { + factory _$KillHouseCopyWith(_KillHouse value, $Res Function(_KillHouse) _then) = __$KillHouseCopyWithImpl; +@override @useResult +$Res call({ + String? key, KillHouseOperator? killHouseOperator, String? name, bool? killer +}); + + +@override $KillHouseOperatorCopyWith<$Res>? get killHouseOperator; + +} +/// @nodoc +class __$KillHouseCopyWithImpl<$Res> + implements _$KillHouseCopyWith<$Res> { + __$KillHouseCopyWithImpl(this._self, this._then); + + final _KillHouse _self; + final $Res Function(_KillHouse) _then; + +/// Create a copy of KillHouse +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? key = freezed,Object? killHouseOperator = freezed,Object? name = freezed,Object? killer = freezed,}) { + return _then(_KillHouse( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,killHouseOperator: freezed == killHouseOperator ? _self.killHouseOperator : killHouseOperator // ignore: cast_nullable_to_non_nullable +as KillHouseOperator?,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?, + )); +} + +/// Create a copy of KillHouse +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$KillHouseOperatorCopyWith<$Res>? get killHouseOperator { + if (_self.killHouseOperator == null) { + return null; + } + + return $KillHouseOperatorCopyWith<$Res>(_self.killHouseOperator!, (value) { + return _then(_self.copyWith(killHouseOperator: value)); + }); +} +} + + +/// @nodoc +mixin _$KillHouseOperator { + + User? get user; +/// Create a copy of KillHouseOperator +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$KillHouseOperatorCopyWith get copyWith => _$KillHouseOperatorCopyWithImpl(this as KillHouseOperator, _$identity); + + /// Serializes this KillHouseOperator to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is KillHouseOperator&&(identical(other.user, user) || other.user == user)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,user); + +@override +String toString() { + return 'KillHouseOperator(user: $user)'; +} + + +} + +/// @nodoc +abstract mixin class $KillHouseOperatorCopyWith<$Res> { + factory $KillHouseOperatorCopyWith(KillHouseOperator value, $Res Function(KillHouseOperator) _then) = _$KillHouseOperatorCopyWithImpl; +@useResult +$Res call({ + User? user +}); + + +$UserCopyWith<$Res>? get user; + +} +/// @nodoc +class _$KillHouseOperatorCopyWithImpl<$Res> + implements $KillHouseOperatorCopyWith<$Res> { + _$KillHouseOperatorCopyWithImpl(this._self, this._then); + + final KillHouseOperator _self; + final $Res Function(KillHouseOperator) _then; + +/// Create a copy of KillHouseOperator +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? user = freezed,}) { + return _then(_self.copyWith( +user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable +as User?, + )); +} +/// Create a copy of KillHouseOperator +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$UserCopyWith<$Res>? get user { + if (_self.user == null) { + return null; + } + + return $UserCopyWith<$Res>(_self.user!, (value) { + return _then(_self.copyWith(user: value)); + }); +} +} + + +/// @nodoc +@JsonSerializable() + +class _KillHouseOperator implements KillHouseOperator { + const _KillHouseOperator({this.user}); + factory _KillHouseOperator.fromJson(Map json) => _$KillHouseOperatorFromJson(json); + +@override final User? user; + +/// Create a copy of KillHouseOperator +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$KillHouseOperatorCopyWith<_KillHouseOperator> get copyWith => __$KillHouseOperatorCopyWithImpl<_KillHouseOperator>(this, _$identity); + +@override +Map toJson() { + return _$KillHouseOperatorToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _KillHouseOperator&&(identical(other.user, user) || other.user == user)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,user); + +@override +String toString() { + return 'KillHouseOperator(user: $user)'; +} + + +} + +/// @nodoc +abstract mixin class _$KillHouseOperatorCopyWith<$Res> implements $KillHouseOperatorCopyWith<$Res> { + factory _$KillHouseOperatorCopyWith(_KillHouseOperator value, $Res Function(_KillHouseOperator) _then) = __$KillHouseOperatorCopyWithImpl; +@override @useResult +$Res call({ + User? user +}); + + +@override $UserCopyWith<$Res>? get user; + +} +/// @nodoc +class __$KillHouseOperatorCopyWithImpl<$Res> + implements _$KillHouseOperatorCopyWith<$Res> { + __$KillHouseOperatorCopyWithImpl(this._self, this._then); + + final _KillHouseOperator _self; + final $Res Function(_KillHouseOperator) _then; + +/// Create a copy of KillHouseOperator +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? user = freezed,}) { + return _then(_KillHouseOperator( +user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable +as User?, + )); +} + +/// Create a copy of KillHouseOperator +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$UserCopyWith<$Res>? get user { + if (_self.user == null) { + return null; + } + + return $UserCopyWith<$Res>(_self.user!, (value) { + return _then(_self.copyWith(user: value)); + }); +} +} + + +/// @nodoc +mixin _$User { + + String? get fullname; String? get 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)); + }); +} +} + + +/// @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?, + )); +} + +} + + +/// @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 _$ToSteward { + + int? get id; ToStewardUser? get user; Address? get address; Activity? get guildAreaActivity; Activity? get guildTypeActivity; List? get killHouse; List? get stewardKillHouse; List? get stewards; PosStatus? get getPosStatus; String? get key; String? get createDate; String? get modifyDate; bool? get trash; dynamic get userIdForeignKey; dynamic get addressIdForeignKey; dynamic get userBankIdForeignKey; dynamic get walletIdForeignKey; dynamic get provincialGovernmentIdKey; dynamic get identityDocuments; bool? get active; int? get cityNumber; String? get cityName; String? get guildsId; String? get licenseNumber; String? get guildsName; dynamic get phone; String? get typeActivity; String? get areaActivity; int? get provinceNumber; String? get provinceName; bool? get steward; bool? get hasPos; dynamic get centersAllocation; dynamic get killHouseCentersAllocation; dynamic get allocationLimit; bool? get limitationAllocation; dynamic get registerarRole; dynamic get registerarFullname; dynamic get registerarMobile; bool? get killHouseRegister; bool? get stewardRegister; bool? get guildsRoomRegister; bool? get posCompanyRegister; String? get provinceAcceptState; dynamic get provinceMessage; dynamic get condition; dynamic get descriptionCondition; bool? get stewardActive; dynamic get stewardAllocationLimit; bool? get stewardLimitationAllocation; bool? get license; dynamic get licenseForm; dynamic get licenseFile; dynamic get reviewerRole; dynamic get reviewerFullname; dynamic get reviewerMobile; dynamic get checkerMessage; bool? get finalAccept; bool? get temporaryRegistration; dynamic get createdBy; dynamic get modifiedBy; dynamic get userBankInfo; int? get wallet; List? get cars; List? get userLevel; +/// Create a copy of ToSteward +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ToStewardCopyWith get copyWith => _$ToStewardCopyWithImpl(this as ToSteward, _$identity); + + /// Serializes this ToSteward to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is ToSteward&&(identical(other.id, id) || other.id == id)&&(identical(other.user, user) || other.user == user)&&(identical(other.address, address) || other.address == address)&&(identical(other.guildAreaActivity, guildAreaActivity) || other.guildAreaActivity == guildAreaActivity)&&(identical(other.guildTypeActivity, guildTypeActivity) || other.guildTypeActivity == guildTypeActivity)&&const DeepCollectionEquality().equals(other.killHouse, killHouse)&&const DeepCollectionEquality().equals(other.stewardKillHouse, stewardKillHouse)&&const DeepCollectionEquality().equals(other.stewards, stewards)&&(identical(other.getPosStatus, getPosStatus) || other.getPosStatus == getPosStatus)&&(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)&&const DeepCollectionEquality().equals(other.userIdForeignKey, userIdForeignKey)&&const DeepCollectionEquality().equals(other.addressIdForeignKey, addressIdForeignKey)&&const DeepCollectionEquality().equals(other.userBankIdForeignKey, userBankIdForeignKey)&&const DeepCollectionEquality().equals(other.walletIdForeignKey, walletIdForeignKey)&&const DeepCollectionEquality().equals(other.provincialGovernmentIdKey, provincialGovernmentIdKey)&&const DeepCollectionEquality().equals(other.identityDocuments, identityDocuments)&&(identical(other.active, active) || other.active == active)&&(identical(other.cityNumber, cityNumber) || other.cityNumber == cityNumber)&&(identical(other.cityName, cityName) || other.cityName == cityName)&&(identical(other.guildsId, guildsId) || other.guildsId == guildsId)&&(identical(other.licenseNumber, licenseNumber) || other.licenseNumber == licenseNumber)&&(identical(other.guildsName, guildsName) || other.guildsName == guildsName)&&const DeepCollectionEquality().equals(other.phone, phone)&&(identical(other.typeActivity, typeActivity) || other.typeActivity == typeActivity)&&(identical(other.areaActivity, areaActivity) || other.areaActivity == areaActivity)&&(identical(other.provinceNumber, provinceNumber) || other.provinceNumber == provinceNumber)&&(identical(other.provinceName, provinceName) || other.provinceName == provinceName)&&(identical(other.steward, steward) || other.steward == steward)&&(identical(other.hasPos, hasPos) || other.hasPos == hasPos)&&const DeepCollectionEquality().equals(other.centersAllocation, centersAllocation)&&const DeepCollectionEquality().equals(other.killHouseCentersAllocation, killHouseCentersAllocation)&&const DeepCollectionEquality().equals(other.allocationLimit, allocationLimit)&&(identical(other.limitationAllocation, limitationAllocation) || other.limitationAllocation == limitationAllocation)&&const DeepCollectionEquality().equals(other.registerarRole, registerarRole)&&const DeepCollectionEquality().equals(other.registerarFullname, registerarFullname)&&const DeepCollectionEquality().equals(other.registerarMobile, registerarMobile)&&(identical(other.killHouseRegister, killHouseRegister) || other.killHouseRegister == killHouseRegister)&&(identical(other.stewardRegister, stewardRegister) || other.stewardRegister == stewardRegister)&&(identical(other.guildsRoomRegister, guildsRoomRegister) || other.guildsRoomRegister == guildsRoomRegister)&&(identical(other.posCompanyRegister, posCompanyRegister) || other.posCompanyRegister == posCompanyRegister)&&(identical(other.provinceAcceptState, provinceAcceptState) || other.provinceAcceptState == provinceAcceptState)&&const DeepCollectionEquality().equals(other.provinceMessage, provinceMessage)&&const DeepCollectionEquality().equals(other.condition, condition)&&const DeepCollectionEquality().equals(other.descriptionCondition, descriptionCondition)&&(identical(other.stewardActive, stewardActive) || other.stewardActive == stewardActive)&&const DeepCollectionEquality().equals(other.stewardAllocationLimit, stewardAllocationLimit)&&(identical(other.stewardLimitationAllocation, stewardLimitationAllocation) || other.stewardLimitationAllocation == stewardLimitationAllocation)&&(identical(other.license, license) || other.license == license)&&const DeepCollectionEquality().equals(other.licenseForm, licenseForm)&&const DeepCollectionEquality().equals(other.licenseFile, licenseFile)&&const DeepCollectionEquality().equals(other.reviewerRole, reviewerRole)&&const DeepCollectionEquality().equals(other.reviewerFullname, reviewerFullname)&&const DeepCollectionEquality().equals(other.reviewerMobile, reviewerMobile)&&const DeepCollectionEquality().equals(other.checkerMessage, checkerMessage)&&(identical(other.finalAccept, finalAccept) || other.finalAccept == finalAccept)&&(identical(other.temporaryRegistration, temporaryRegistration) || other.temporaryRegistration == temporaryRegistration)&&const DeepCollectionEquality().equals(other.createdBy, createdBy)&&const DeepCollectionEquality().equals(other.modifiedBy, modifiedBy)&&const DeepCollectionEquality().equals(other.userBankInfo, userBankInfo)&&(identical(other.wallet, wallet) || other.wallet == wallet)&&const DeepCollectionEquality().equals(other.cars, cars)&&const DeepCollectionEquality().equals(other.userLevel, userLevel)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,id,user,address,guildAreaActivity,guildTypeActivity,const DeepCollectionEquality().hash(killHouse),const DeepCollectionEquality().hash(stewardKillHouse),const DeepCollectionEquality().hash(stewards),getPosStatus,key,createDate,modifyDate,trash,const DeepCollectionEquality().hash(userIdForeignKey),const DeepCollectionEquality().hash(addressIdForeignKey),const DeepCollectionEquality().hash(userBankIdForeignKey),const DeepCollectionEquality().hash(walletIdForeignKey),const DeepCollectionEquality().hash(provincialGovernmentIdKey),const DeepCollectionEquality().hash(identityDocuments),active,cityNumber,cityName,guildsId,licenseNumber,guildsName,const DeepCollectionEquality().hash(phone),typeActivity,areaActivity,provinceNumber,provinceName,steward,hasPos,const DeepCollectionEquality().hash(centersAllocation),const DeepCollectionEquality().hash(killHouseCentersAllocation),const DeepCollectionEquality().hash(allocationLimit),limitationAllocation,const DeepCollectionEquality().hash(registerarRole),const DeepCollectionEquality().hash(registerarFullname),const DeepCollectionEquality().hash(registerarMobile),killHouseRegister,stewardRegister,guildsRoomRegister,posCompanyRegister,provinceAcceptState,const DeepCollectionEquality().hash(provinceMessage),const DeepCollectionEquality().hash(condition),const DeepCollectionEquality().hash(descriptionCondition),stewardActive,const DeepCollectionEquality().hash(stewardAllocationLimit),stewardLimitationAllocation,license,const DeepCollectionEquality().hash(licenseForm),const DeepCollectionEquality().hash(licenseFile),const DeepCollectionEquality().hash(reviewerRole),const DeepCollectionEquality().hash(reviewerFullname),const DeepCollectionEquality().hash(reviewerMobile),const DeepCollectionEquality().hash(checkerMessage),finalAccept,temporaryRegistration,const DeepCollectionEquality().hash(createdBy),const DeepCollectionEquality().hash(modifiedBy),const DeepCollectionEquality().hash(userBankInfo),wallet,const DeepCollectionEquality().hash(cars),const DeepCollectionEquality().hash(userLevel)]); + +@override +String toString() { + return 'ToSteward(id: $id, user: $user, address: $address, guildAreaActivity: $guildAreaActivity, guildTypeActivity: $guildTypeActivity, killHouse: $killHouse, stewardKillHouse: $stewardKillHouse, stewards: $stewards, getPosStatus: $getPosStatus, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, userIdForeignKey: $userIdForeignKey, addressIdForeignKey: $addressIdForeignKey, userBankIdForeignKey: $userBankIdForeignKey, walletIdForeignKey: $walletIdForeignKey, provincialGovernmentIdKey: $provincialGovernmentIdKey, identityDocuments: $identityDocuments, active: $active, cityNumber: $cityNumber, cityName: $cityName, guildsId: $guildsId, licenseNumber: $licenseNumber, guildsName: $guildsName, phone: $phone, typeActivity: $typeActivity, areaActivity: $areaActivity, provinceNumber: $provinceNumber, provinceName: $provinceName, steward: $steward, hasPos: $hasPos, centersAllocation: $centersAllocation, killHouseCentersAllocation: $killHouseCentersAllocation, allocationLimit: $allocationLimit, limitationAllocation: $limitationAllocation, registerarRole: $registerarRole, registerarFullname: $registerarFullname, registerarMobile: $registerarMobile, killHouseRegister: $killHouseRegister, stewardRegister: $stewardRegister, guildsRoomRegister: $guildsRoomRegister, posCompanyRegister: $posCompanyRegister, provinceAcceptState: $provinceAcceptState, provinceMessage: $provinceMessage, condition: $condition, descriptionCondition: $descriptionCondition, stewardActive: $stewardActive, stewardAllocationLimit: $stewardAllocationLimit, stewardLimitationAllocation: $stewardLimitationAllocation, license: $license, licenseForm: $licenseForm, licenseFile: $licenseFile, reviewerRole: $reviewerRole, reviewerFullname: $reviewerFullname, reviewerMobile: $reviewerMobile, checkerMessage: $checkerMessage, finalAccept: $finalAccept, temporaryRegistration: $temporaryRegistration, createdBy: $createdBy, modifiedBy: $modifiedBy, userBankInfo: $userBankInfo, wallet: $wallet, cars: $cars, userLevel: $userLevel)'; +} + + +} + +/// @nodoc +abstract mixin class $ToStewardCopyWith<$Res> { + factory $ToStewardCopyWith(ToSteward value, $Res Function(ToSteward) _then) = _$ToStewardCopyWithImpl; +@useResult +$Res call({ + int? id, ToStewardUser? user, Address? address, Activity? guildAreaActivity, Activity? guildTypeActivity, List? killHouse, List? stewardKillHouse, List? stewards, PosStatus? getPosStatus, String? key, String? createDate, String? modifyDate, bool? trash, dynamic userIdForeignKey, dynamic addressIdForeignKey, dynamic userBankIdForeignKey, dynamic walletIdForeignKey, dynamic provincialGovernmentIdKey, dynamic identityDocuments, bool? active, int? cityNumber, String? cityName, String? guildsId, String? licenseNumber, String? guildsName, dynamic phone, String? typeActivity, String? areaActivity, int? provinceNumber, String? provinceName, bool? steward, bool? hasPos, dynamic centersAllocation, dynamic killHouseCentersAllocation, dynamic allocationLimit, bool? limitationAllocation, dynamic registerarRole, dynamic registerarFullname, dynamic registerarMobile, bool? killHouseRegister, bool? stewardRegister, bool? guildsRoomRegister, bool? posCompanyRegister, String? provinceAcceptState, dynamic provinceMessage, dynamic condition, dynamic descriptionCondition, bool? stewardActive, dynamic stewardAllocationLimit, bool? stewardLimitationAllocation, bool? license, dynamic licenseForm, dynamic licenseFile, dynamic reviewerRole, dynamic reviewerFullname, dynamic reviewerMobile, dynamic checkerMessage, bool? finalAccept, bool? temporaryRegistration, dynamic createdBy, dynamic modifiedBy, dynamic userBankInfo, int? wallet, List? cars, List? userLevel +}); + + +$ToStewardUserCopyWith<$Res>? get user;$AddressCopyWith<$Res>? get address;$ActivityCopyWith<$Res>? get guildAreaActivity;$ActivityCopyWith<$Res>? get guildTypeActivity;$PosStatusCopyWith<$Res>? get getPosStatus; + +} +/// @nodoc +class _$ToStewardCopyWithImpl<$Res> + implements $ToStewardCopyWith<$Res> { + _$ToStewardCopyWithImpl(this._self, this._then); + + final ToSteward _self; + final $Res Function(ToSteward) _then; + +/// Create a copy of ToSteward +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? user = freezed,Object? address = freezed,Object? guildAreaActivity = freezed,Object? guildTypeActivity = freezed,Object? killHouse = freezed,Object? stewardKillHouse = freezed,Object? stewards = freezed,Object? getPosStatus = freezed,Object? key = freezed,Object? createDate = freezed,Object? modifyDate = freezed,Object? trash = freezed,Object? userIdForeignKey = freezed,Object? addressIdForeignKey = freezed,Object? userBankIdForeignKey = freezed,Object? walletIdForeignKey = freezed,Object? provincialGovernmentIdKey = freezed,Object? identityDocuments = freezed,Object? active = freezed,Object? cityNumber = freezed,Object? cityName = freezed,Object? guildsId = freezed,Object? licenseNumber = freezed,Object? guildsName = freezed,Object? phone = freezed,Object? typeActivity = freezed,Object? areaActivity = freezed,Object? provinceNumber = freezed,Object? provinceName = freezed,Object? steward = freezed,Object? hasPos = freezed,Object? centersAllocation = freezed,Object? killHouseCentersAllocation = freezed,Object? allocationLimit = freezed,Object? limitationAllocation = freezed,Object? registerarRole = freezed,Object? registerarFullname = freezed,Object? registerarMobile = freezed,Object? killHouseRegister = freezed,Object? stewardRegister = freezed,Object? guildsRoomRegister = freezed,Object? posCompanyRegister = freezed,Object? provinceAcceptState = freezed,Object? provinceMessage = freezed,Object? condition = freezed,Object? descriptionCondition = freezed,Object? stewardActive = freezed,Object? stewardAllocationLimit = freezed,Object? stewardLimitationAllocation = freezed,Object? license = freezed,Object? licenseForm = freezed,Object? licenseFile = freezed,Object? reviewerRole = freezed,Object? reviewerFullname = freezed,Object? reviewerMobile = freezed,Object? checkerMessage = freezed,Object? finalAccept = freezed,Object? temporaryRegistration = freezed,Object? createdBy = freezed,Object? modifiedBy = freezed,Object? userBankInfo = freezed,Object? wallet = freezed,Object? cars = freezed,Object? userLevel = freezed,}) { + return _then(_self.copyWith( +id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable +as int?,user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable +as ToStewardUser?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable +as Address?,guildAreaActivity: freezed == guildAreaActivity ? _self.guildAreaActivity : guildAreaActivity // ignore: cast_nullable_to_non_nullable +as Activity?,guildTypeActivity: freezed == guildTypeActivity ? _self.guildTypeActivity : guildTypeActivity // ignore: cast_nullable_to_non_nullable +as Activity?,killHouse: freezed == killHouse ? _self.killHouse : killHouse // ignore: cast_nullable_to_non_nullable +as List?,stewardKillHouse: freezed == stewardKillHouse ? _self.stewardKillHouse : stewardKillHouse // ignore: cast_nullable_to_non_nullable +as List?,stewards: freezed == stewards ? _self.stewards : stewards // ignore: cast_nullable_to_non_nullable +as List?,getPosStatus: freezed == getPosStatus ? _self.getPosStatus : getPosStatus // ignore: cast_nullable_to_non_nullable +as PosStatus?,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?,userIdForeignKey: freezed == userIdForeignKey ? _self.userIdForeignKey : userIdForeignKey // ignore: cast_nullable_to_non_nullable +as dynamic,addressIdForeignKey: freezed == addressIdForeignKey ? _self.addressIdForeignKey : addressIdForeignKey // ignore: cast_nullable_to_non_nullable +as dynamic,userBankIdForeignKey: freezed == userBankIdForeignKey ? _self.userBankIdForeignKey : userBankIdForeignKey // ignore: cast_nullable_to_non_nullable +as dynamic,walletIdForeignKey: freezed == walletIdForeignKey ? _self.walletIdForeignKey : walletIdForeignKey // ignore: cast_nullable_to_non_nullable +as dynamic,provincialGovernmentIdKey: freezed == provincialGovernmentIdKey ? _self.provincialGovernmentIdKey : provincialGovernmentIdKey // ignore: cast_nullable_to_non_nullable +as dynamic,identityDocuments: freezed == identityDocuments ? _self.identityDocuments : identityDocuments // ignore: cast_nullable_to_non_nullable +as dynamic,active: freezed == active ? _self.active : active // 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?,guildsId: freezed == guildsId ? _self.guildsId : guildsId // ignore: cast_nullable_to_non_nullable +as String?,licenseNumber: freezed == licenseNumber ? _self.licenseNumber : licenseNumber // ignore: cast_nullable_to_non_nullable +as String?,guildsName: freezed == guildsName ? _self.guildsName : guildsName // ignore: cast_nullable_to_non_nullable +as String?,phone: freezed == phone ? _self.phone : phone // ignore: cast_nullable_to_non_nullable +as dynamic,typeActivity: freezed == typeActivity ? _self.typeActivity : typeActivity // ignore: cast_nullable_to_non_nullable +as String?,areaActivity: freezed == areaActivity ? _self.areaActivity : areaActivity // 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?,steward: freezed == steward ? _self.steward : steward // ignore: cast_nullable_to_non_nullable +as bool?,hasPos: freezed == hasPos ? _self.hasPos : hasPos // ignore: cast_nullable_to_non_nullable +as bool?,centersAllocation: freezed == centersAllocation ? _self.centersAllocation : centersAllocation // ignore: cast_nullable_to_non_nullable +as dynamic,killHouseCentersAllocation: freezed == killHouseCentersAllocation ? _self.killHouseCentersAllocation : killHouseCentersAllocation // ignore: cast_nullable_to_non_nullable +as dynamic,allocationLimit: freezed == allocationLimit ? _self.allocationLimit : allocationLimit // ignore: cast_nullable_to_non_nullable +as dynamic,limitationAllocation: freezed == limitationAllocation ? _self.limitationAllocation : limitationAllocation // ignore: cast_nullable_to_non_nullable +as bool?,registerarRole: freezed == registerarRole ? _self.registerarRole : registerarRole // ignore: cast_nullable_to_non_nullable +as dynamic,registerarFullname: freezed == registerarFullname ? _self.registerarFullname : registerarFullname // ignore: cast_nullable_to_non_nullable +as dynamic,registerarMobile: freezed == registerarMobile ? _self.registerarMobile : registerarMobile // ignore: cast_nullable_to_non_nullable +as dynamic,killHouseRegister: freezed == killHouseRegister ? _self.killHouseRegister : killHouseRegister // ignore: cast_nullable_to_non_nullable +as bool?,stewardRegister: freezed == stewardRegister ? _self.stewardRegister : stewardRegister // ignore: cast_nullable_to_non_nullable +as bool?,guildsRoomRegister: freezed == guildsRoomRegister ? _self.guildsRoomRegister : guildsRoomRegister // ignore: cast_nullable_to_non_nullable +as bool?,posCompanyRegister: freezed == posCompanyRegister ? _self.posCompanyRegister : posCompanyRegister // ignore: cast_nullable_to_non_nullable +as bool?,provinceAcceptState: freezed == provinceAcceptState ? _self.provinceAcceptState : provinceAcceptState // ignore: cast_nullable_to_non_nullable +as String?,provinceMessage: freezed == provinceMessage ? _self.provinceMessage : provinceMessage // ignore: cast_nullable_to_non_nullable +as dynamic,condition: freezed == condition ? _self.condition : condition // ignore: cast_nullable_to_non_nullable +as dynamic,descriptionCondition: freezed == descriptionCondition ? _self.descriptionCondition : descriptionCondition // ignore: cast_nullable_to_non_nullable +as dynamic,stewardActive: freezed == stewardActive ? _self.stewardActive : stewardActive // ignore: cast_nullable_to_non_nullable +as bool?,stewardAllocationLimit: freezed == stewardAllocationLimit ? _self.stewardAllocationLimit : stewardAllocationLimit // ignore: cast_nullable_to_non_nullable +as dynamic,stewardLimitationAllocation: freezed == stewardLimitationAllocation ? _self.stewardLimitationAllocation : stewardLimitationAllocation // ignore: cast_nullable_to_non_nullable +as bool?,license: freezed == license ? _self.license : license // ignore: cast_nullable_to_non_nullable +as bool?,licenseForm: freezed == licenseForm ? _self.licenseForm : licenseForm // ignore: cast_nullable_to_non_nullable +as dynamic,licenseFile: freezed == licenseFile ? _self.licenseFile : licenseFile // ignore: cast_nullable_to_non_nullable +as dynamic,reviewerRole: freezed == reviewerRole ? _self.reviewerRole : reviewerRole // ignore: cast_nullable_to_non_nullable +as dynamic,reviewerFullname: freezed == reviewerFullname ? _self.reviewerFullname : reviewerFullname // ignore: cast_nullable_to_non_nullable +as dynamic,reviewerMobile: freezed == reviewerMobile ? _self.reviewerMobile : reviewerMobile // ignore: cast_nullable_to_non_nullable +as dynamic,checkerMessage: freezed == checkerMessage ? _self.checkerMessage : checkerMessage // ignore: cast_nullable_to_non_nullable +as dynamic,finalAccept: freezed == finalAccept ? _self.finalAccept : finalAccept // ignore: cast_nullable_to_non_nullable +as bool?,temporaryRegistration: freezed == temporaryRegistration ? _self.temporaryRegistration : temporaryRegistration // ignore: cast_nullable_to_non_nullable +as bool?,createdBy: freezed == createdBy ? _self.createdBy : createdBy // ignore: cast_nullable_to_non_nullable +as dynamic,modifiedBy: freezed == modifiedBy ? _self.modifiedBy : modifiedBy // ignore: cast_nullable_to_non_nullable +as dynamic,userBankInfo: freezed == userBankInfo ? _self.userBankInfo : userBankInfo // ignore: cast_nullable_to_non_nullable +as dynamic,wallet: freezed == wallet ? _self.wallet : wallet // ignore: cast_nullable_to_non_nullable +as int?,cars: freezed == cars ? _self.cars : cars // ignore: cast_nullable_to_non_nullable +as List?,userLevel: freezed == userLevel ? _self.userLevel : userLevel // ignore: cast_nullable_to_non_nullable +as List?, + )); +} +/// Create a copy of ToSteward +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ToStewardUserCopyWith<$Res>? get user { + if (_self.user == null) { + return null; + } + + return $ToStewardUserCopyWith<$Res>(_self.user!, (value) { + return _then(_self.copyWith(user: value)); + }); +}/// Create a copy of ToSteward +/// 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 ToSteward +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ActivityCopyWith<$Res>? get guildAreaActivity { + if (_self.guildAreaActivity == null) { + return null; + } + + return $ActivityCopyWith<$Res>(_self.guildAreaActivity!, (value) { + return _then(_self.copyWith(guildAreaActivity: value)); + }); +}/// Create a copy of ToSteward +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ActivityCopyWith<$Res>? get guildTypeActivity { + if (_self.guildTypeActivity == null) { + return null; + } + + return $ActivityCopyWith<$Res>(_self.guildTypeActivity!, (value) { + return _then(_self.copyWith(guildTypeActivity: value)); + }); +}/// Create a copy of ToSteward +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$PosStatusCopyWith<$Res>? get getPosStatus { + if (_self.getPosStatus == null) { + return null; + } + + return $PosStatusCopyWith<$Res>(_self.getPosStatus!, (value) { + return _then(_self.copyWith(getPosStatus: value)); + }); +} +} + + +/// @nodoc +@JsonSerializable() + +class _ToSteward implements ToSteward { + const _ToSteward({this.id, this.user, this.address, this.guildAreaActivity, this.guildTypeActivity, final List? killHouse, final List? stewardKillHouse, final List? stewards, this.getPosStatus, this.key, this.createDate, this.modifyDate, this.trash, this.userIdForeignKey, this.addressIdForeignKey, this.userBankIdForeignKey, this.walletIdForeignKey, this.provincialGovernmentIdKey, this.identityDocuments, this.active, this.cityNumber, this.cityName, this.guildsId, this.licenseNumber, this.guildsName, this.phone, this.typeActivity, this.areaActivity, this.provinceNumber, this.provinceName, this.steward, this.hasPos, this.centersAllocation, this.killHouseCentersAllocation, this.allocationLimit, this.limitationAllocation, this.registerarRole, this.registerarFullname, this.registerarMobile, this.killHouseRegister, this.stewardRegister, this.guildsRoomRegister, this.posCompanyRegister, this.provinceAcceptState, this.provinceMessage, this.condition, this.descriptionCondition, this.stewardActive, this.stewardAllocationLimit, this.stewardLimitationAllocation, this.license, this.licenseForm, this.licenseFile, this.reviewerRole, this.reviewerFullname, this.reviewerMobile, this.checkerMessage, this.finalAccept, this.temporaryRegistration, this.createdBy, this.modifiedBy, this.userBankInfo, this.wallet, final List? cars, final List? userLevel}): _killHouse = killHouse,_stewardKillHouse = stewardKillHouse,_stewards = stewards,_cars = cars,_userLevel = userLevel; + factory _ToSteward.fromJson(Map json) => _$ToStewardFromJson(json); + +@override final int? id; +@override final ToStewardUser? user; +@override final Address? address; +@override final Activity? guildAreaActivity; +@override final Activity? guildTypeActivity; + final List? _killHouse; +@override List? get killHouse { + final value = _killHouse; + if (value == null) return null; + if (_killHouse is EqualUnmodifiableListView) return _killHouse; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + + final List? _stewardKillHouse; +@override List? get stewardKillHouse { + final value = _stewardKillHouse; + if (value == null) return null; + if (_stewardKillHouse is EqualUnmodifiableListView) return _stewardKillHouse; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + + final List? _stewards; +@override List? get stewards { + final value = _stewards; + if (value == null) return null; + if (_stewards is EqualUnmodifiableListView) return _stewards; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + +@override final PosStatus? getPosStatus; +@override final String? key; +@override final String? createDate; +@override final String? modifyDate; +@override final bool? trash; +@override final dynamic userIdForeignKey; +@override final dynamic addressIdForeignKey; +@override final dynamic userBankIdForeignKey; +@override final dynamic walletIdForeignKey; +@override final dynamic provincialGovernmentIdKey; +@override final dynamic identityDocuments; +@override final bool? active; +@override final int? cityNumber; +@override final String? cityName; +@override final String? guildsId; +@override final String? licenseNumber; +@override final String? guildsName; +@override final dynamic phone; +@override final String? typeActivity; +@override final String? areaActivity; +@override final int? provinceNumber; +@override final String? provinceName; +@override final bool? steward; +@override final bool? hasPos; +@override final dynamic centersAllocation; +@override final dynamic killHouseCentersAllocation; +@override final dynamic allocationLimit; +@override final bool? limitationAllocation; +@override final dynamic registerarRole; +@override final dynamic registerarFullname; +@override final dynamic registerarMobile; +@override final bool? killHouseRegister; +@override final bool? stewardRegister; +@override final bool? guildsRoomRegister; +@override final bool? posCompanyRegister; +@override final String? provinceAcceptState; +@override final dynamic provinceMessage; +@override final dynamic condition; +@override final dynamic descriptionCondition; +@override final bool? stewardActive; +@override final dynamic stewardAllocationLimit; +@override final bool? stewardLimitationAllocation; +@override final bool? license; +@override final dynamic licenseForm; +@override final dynamic licenseFile; +@override final dynamic reviewerRole; +@override final dynamic reviewerFullname; +@override final dynamic reviewerMobile; +@override final dynamic checkerMessage; +@override final bool? finalAccept; +@override final bool? temporaryRegistration; +@override final dynamic createdBy; +@override final dynamic modifiedBy; +@override final dynamic userBankInfo; +@override final int? wallet; + final List? _cars; +@override List? get cars { + final value = _cars; + if (value == null) return null; + if (_cars is EqualUnmodifiableListView) return _cars; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + + final List? _userLevel; +@override List? get userLevel { + final value = _userLevel; + if (value == null) return null; + if (_userLevel is EqualUnmodifiableListView) return _userLevel; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + + +/// Create a copy of ToSteward +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ToStewardCopyWith<_ToSteward> get copyWith => __$ToStewardCopyWithImpl<_ToSteward>(this, _$identity); + +@override +Map toJson() { + return _$ToStewardToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _ToSteward&&(identical(other.id, id) || other.id == id)&&(identical(other.user, user) || other.user == user)&&(identical(other.address, address) || other.address == address)&&(identical(other.guildAreaActivity, guildAreaActivity) || other.guildAreaActivity == guildAreaActivity)&&(identical(other.guildTypeActivity, guildTypeActivity) || other.guildTypeActivity == guildTypeActivity)&&const DeepCollectionEquality().equals(other._killHouse, _killHouse)&&const DeepCollectionEquality().equals(other._stewardKillHouse, _stewardKillHouse)&&const DeepCollectionEquality().equals(other._stewards, _stewards)&&(identical(other.getPosStatus, getPosStatus) || other.getPosStatus == getPosStatus)&&(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)&&const DeepCollectionEquality().equals(other.userIdForeignKey, userIdForeignKey)&&const DeepCollectionEquality().equals(other.addressIdForeignKey, addressIdForeignKey)&&const DeepCollectionEquality().equals(other.userBankIdForeignKey, userBankIdForeignKey)&&const DeepCollectionEquality().equals(other.walletIdForeignKey, walletIdForeignKey)&&const DeepCollectionEquality().equals(other.provincialGovernmentIdKey, provincialGovernmentIdKey)&&const DeepCollectionEquality().equals(other.identityDocuments, identityDocuments)&&(identical(other.active, active) || other.active == active)&&(identical(other.cityNumber, cityNumber) || other.cityNumber == cityNumber)&&(identical(other.cityName, cityName) || other.cityName == cityName)&&(identical(other.guildsId, guildsId) || other.guildsId == guildsId)&&(identical(other.licenseNumber, licenseNumber) || other.licenseNumber == licenseNumber)&&(identical(other.guildsName, guildsName) || other.guildsName == guildsName)&&const DeepCollectionEquality().equals(other.phone, phone)&&(identical(other.typeActivity, typeActivity) || other.typeActivity == typeActivity)&&(identical(other.areaActivity, areaActivity) || other.areaActivity == areaActivity)&&(identical(other.provinceNumber, provinceNumber) || other.provinceNumber == provinceNumber)&&(identical(other.provinceName, provinceName) || other.provinceName == provinceName)&&(identical(other.steward, steward) || other.steward == steward)&&(identical(other.hasPos, hasPos) || other.hasPos == hasPos)&&const DeepCollectionEquality().equals(other.centersAllocation, centersAllocation)&&const DeepCollectionEquality().equals(other.killHouseCentersAllocation, killHouseCentersAllocation)&&const DeepCollectionEquality().equals(other.allocationLimit, allocationLimit)&&(identical(other.limitationAllocation, limitationAllocation) || other.limitationAllocation == limitationAllocation)&&const DeepCollectionEquality().equals(other.registerarRole, registerarRole)&&const DeepCollectionEquality().equals(other.registerarFullname, registerarFullname)&&const DeepCollectionEquality().equals(other.registerarMobile, registerarMobile)&&(identical(other.killHouseRegister, killHouseRegister) || other.killHouseRegister == killHouseRegister)&&(identical(other.stewardRegister, stewardRegister) || other.stewardRegister == stewardRegister)&&(identical(other.guildsRoomRegister, guildsRoomRegister) || other.guildsRoomRegister == guildsRoomRegister)&&(identical(other.posCompanyRegister, posCompanyRegister) || other.posCompanyRegister == posCompanyRegister)&&(identical(other.provinceAcceptState, provinceAcceptState) || other.provinceAcceptState == provinceAcceptState)&&const DeepCollectionEquality().equals(other.provinceMessage, provinceMessage)&&const DeepCollectionEquality().equals(other.condition, condition)&&const DeepCollectionEquality().equals(other.descriptionCondition, descriptionCondition)&&(identical(other.stewardActive, stewardActive) || other.stewardActive == stewardActive)&&const DeepCollectionEquality().equals(other.stewardAllocationLimit, stewardAllocationLimit)&&(identical(other.stewardLimitationAllocation, stewardLimitationAllocation) || other.stewardLimitationAllocation == stewardLimitationAllocation)&&(identical(other.license, license) || other.license == license)&&const DeepCollectionEquality().equals(other.licenseForm, licenseForm)&&const DeepCollectionEquality().equals(other.licenseFile, licenseFile)&&const DeepCollectionEquality().equals(other.reviewerRole, reviewerRole)&&const DeepCollectionEquality().equals(other.reviewerFullname, reviewerFullname)&&const DeepCollectionEquality().equals(other.reviewerMobile, reviewerMobile)&&const DeepCollectionEquality().equals(other.checkerMessage, checkerMessage)&&(identical(other.finalAccept, finalAccept) || other.finalAccept == finalAccept)&&(identical(other.temporaryRegistration, temporaryRegistration) || other.temporaryRegistration == temporaryRegistration)&&const DeepCollectionEquality().equals(other.createdBy, createdBy)&&const DeepCollectionEquality().equals(other.modifiedBy, modifiedBy)&&const DeepCollectionEquality().equals(other.userBankInfo, userBankInfo)&&(identical(other.wallet, wallet) || other.wallet == wallet)&&const DeepCollectionEquality().equals(other._cars, _cars)&&const DeepCollectionEquality().equals(other._userLevel, _userLevel)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,id,user,address,guildAreaActivity,guildTypeActivity,const DeepCollectionEquality().hash(_killHouse),const DeepCollectionEquality().hash(_stewardKillHouse),const DeepCollectionEquality().hash(_stewards),getPosStatus,key,createDate,modifyDate,trash,const DeepCollectionEquality().hash(userIdForeignKey),const DeepCollectionEquality().hash(addressIdForeignKey),const DeepCollectionEquality().hash(userBankIdForeignKey),const DeepCollectionEquality().hash(walletIdForeignKey),const DeepCollectionEquality().hash(provincialGovernmentIdKey),const DeepCollectionEquality().hash(identityDocuments),active,cityNumber,cityName,guildsId,licenseNumber,guildsName,const DeepCollectionEquality().hash(phone),typeActivity,areaActivity,provinceNumber,provinceName,steward,hasPos,const DeepCollectionEquality().hash(centersAllocation),const DeepCollectionEquality().hash(killHouseCentersAllocation),const DeepCollectionEquality().hash(allocationLimit),limitationAllocation,const DeepCollectionEquality().hash(registerarRole),const DeepCollectionEquality().hash(registerarFullname),const DeepCollectionEquality().hash(registerarMobile),killHouseRegister,stewardRegister,guildsRoomRegister,posCompanyRegister,provinceAcceptState,const DeepCollectionEquality().hash(provinceMessage),const DeepCollectionEquality().hash(condition),const DeepCollectionEquality().hash(descriptionCondition),stewardActive,const DeepCollectionEquality().hash(stewardAllocationLimit),stewardLimitationAllocation,license,const DeepCollectionEquality().hash(licenseForm),const DeepCollectionEquality().hash(licenseFile),const DeepCollectionEquality().hash(reviewerRole),const DeepCollectionEquality().hash(reviewerFullname),const DeepCollectionEquality().hash(reviewerMobile),const DeepCollectionEquality().hash(checkerMessage),finalAccept,temporaryRegistration,const DeepCollectionEquality().hash(createdBy),const DeepCollectionEquality().hash(modifiedBy),const DeepCollectionEquality().hash(userBankInfo),wallet,const DeepCollectionEquality().hash(_cars),const DeepCollectionEquality().hash(_userLevel)]); + +@override +String toString() { + return 'ToSteward(id: $id, user: $user, address: $address, guildAreaActivity: $guildAreaActivity, guildTypeActivity: $guildTypeActivity, killHouse: $killHouse, stewardKillHouse: $stewardKillHouse, stewards: $stewards, getPosStatus: $getPosStatus, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, userIdForeignKey: $userIdForeignKey, addressIdForeignKey: $addressIdForeignKey, userBankIdForeignKey: $userBankIdForeignKey, walletIdForeignKey: $walletIdForeignKey, provincialGovernmentIdKey: $provincialGovernmentIdKey, identityDocuments: $identityDocuments, active: $active, cityNumber: $cityNumber, cityName: $cityName, guildsId: $guildsId, licenseNumber: $licenseNumber, guildsName: $guildsName, phone: $phone, typeActivity: $typeActivity, areaActivity: $areaActivity, provinceNumber: $provinceNumber, provinceName: $provinceName, steward: $steward, hasPos: $hasPos, centersAllocation: $centersAllocation, killHouseCentersAllocation: $killHouseCentersAllocation, allocationLimit: $allocationLimit, limitationAllocation: $limitationAllocation, registerarRole: $registerarRole, registerarFullname: $registerarFullname, registerarMobile: $registerarMobile, killHouseRegister: $killHouseRegister, stewardRegister: $stewardRegister, guildsRoomRegister: $guildsRoomRegister, posCompanyRegister: $posCompanyRegister, provinceAcceptState: $provinceAcceptState, provinceMessage: $provinceMessage, condition: $condition, descriptionCondition: $descriptionCondition, stewardActive: $stewardActive, stewardAllocationLimit: $stewardAllocationLimit, stewardLimitationAllocation: $stewardLimitationAllocation, license: $license, licenseForm: $licenseForm, licenseFile: $licenseFile, reviewerRole: $reviewerRole, reviewerFullname: $reviewerFullname, reviewerMobile: $reviewerMobile, checkerMessage: $checkerMessage, finalAccept: $finalAccept, temporaryRegistration: $temporaryRegistration, createdBy: $createdBy, modifiedBy: $modifiedBy, userBankInfo: $userBankInfo, wallet: $wallet, cars: $cars, userLevel: $userLevel)'; +} + + +} + +/// @nodoc +abstract mixin class _$ToStewardCopyWith<$Res> implements $ToStewardCopyWith<$Res> { + factory _$ToStewardCopyWith(_ToSteward value, $Res Function(_ToSteward) _then) = __$ToStewardCopyWithImpl; +@override @useResult +$Res call({ + int? id, ToStewardUser? user, Address? address, Activity? guildAreaActivity, Activity? guildTypeActivity, List? killHouse, List? stewardKillHouse, List? stewards, PosStatus? getPosStatus, String? key, String? createDate, String? modifyDate, bool? trash, dynamic userIdForeignKey, dynamic addressIdForeignKey, dynamic userBankIdForeignKey, dynamic walletIdForeignKey, dynamic provincialGovernmentIdKey, dynamic identityDocuments, bool? active, int? cityNumber, String? cityName, String? guildsId, String? licenseNumber, String? guildsName, dynamic phone, String? typeActivity, String? areaActivity, int? provinceNumber, String? provinceName, bool? steward, bool? hasPos, dynamic centersAllocation, dynamic killHouseCentersAllocation, dynamic allocationLimit, bool? limitationAllocation, dynamic registerarRole, dynamic registerarFullname, dynamic registerarMobile, bool? killHouseRegister, bool? stewardRegister, bool? guildsRoomRegister, bool? posCompanyRegister, String? provinceAcceptState, dynamic provinceMessage, dynamic condition, dynamic descriptionCondition, bool? stewardActive, dynamic stewardAllocationLimit, bool? stewardLimitationAllocation, bool? license, dynamic licenseForm, dynamic licenseFile, dynamic reviewerRole, dynamic reviewerFullname, dynamic reviewerMobile, dynamic checkerMessage, bool? finalAccept, bool? temporaryRegistration, dynamic createdBy, dynamic modifiedBy, dynamic userBankInfo, int? wallet, List? cars, List? userLevel +}); + + +@override $ToStewardUserCopyWith<$Res>? get user;@override $AddressCopyWith<$Res>? get address;@override $ActivityCopyWith<$Res>? get guildAreaActivity;@override $ActivityCopyWith<$Res>? get guildTypeActivity;@override $PosStatusCopyWith<$Res>? get getPosStatus; + +} +/// @nodoc +class __$ToStewardCopyWithImpl<$Res> + implements _$ToStewardCopyWith<$Res> { + __$ToStewardCopyWithImpl(this._self, this._then); + + final _ToSteward _self; + final $Res Function(_ToSteward) _then; + +/// Create a copy of ToSteward +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? user = freezed,Object? address = freezed,Object? guildAreaActivity = freezed,Object? guildTypeActivity = freezed,Object? killHouse = freezed,Object? stewardKillHouse = freezed,Object? stewards = freezed,Object? getPosStatus = freezed,Object? key = freezed,Object? createDate = freezed,Object? modifyDate = freezed,Object? trash = freezed,Object? userIdForeignKey = freezed,Object? addressIdForeignKey = freezed,Object? userBankIdForeignKey = freezed,Object? walletIdForeignKey = freezed,Object? provincialGovernmentIdKey = freezed,Object? identityDocuments = freezed,Object? active = freezed,Object? cityNumber = freezed,Object? cityName = freezed,Object? guildsId = freezed,Object? licenseNumber = freezed,Object? guildsName = freezed,Object? phone = freezed,Object? typeActivity = freezed,Object? areaActivity = freezed,Object? provinceNumber = freezed,Object? provinceName = freezed,Object? steward = freezed,Object? hasPos = freezed,Object? centersAllocation = freezed,Object? killHouseCentersAllocation = freezed,Object? allocationLimit = freezed,Object? limitationAllocation = freezed,Object? registerarRole = freezed,Object? registerarFullname = freezed,Object? registerarMobile = freezed,Object? killHouseRegister = freezed,Object? stewardRegister = freezed,Object? guildsRoomRegister = freezed,Object? posCompanyRegister = freezed,Object? provinceAcceptState = freezed,Object? provinceMessage = freezed,Object? condition = freezed,Object? descriptionCondition = freezed,Object? stewardActive = freezed,Object? stewardAllocationLimit = freezed,Object? stewardLimitationAllocation = freezed,Object? license = freezed,Object? licenseForm = freezed,Object? licenseFile = freezed,Object? reviewerRole = freezed,Object? reviewerFullname = freezed,Object? reviewerMobile = freezed,Object? checkerMessage = freezed,Object? finalAccept = freezed,Object? temporaryRegistration = freezed,Object? createdBy = freezed,Object? modifiedBy = freezed,Object? userBankInfo = freezed,Object? wallet = freezed,Object? cars = freezed,Object? userLevel = freezed,}) { + return _then(_ToSteward( +id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable +as int?,user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable +as ToStewardUser?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable +as Address?,guildAreaActivity: freezed == guildAreaActivity ? _self.guildAreaActivity : guildAreaActivity // ignore: cast_nullable_to_non_nullable +as Activity?,guildTypeActivity: freezed == guildTypeActivity ? _self.guildTypeActivity : guildTypeActivity // ignore: cast_nullable_to_non_nullable +as Activity?,killHouse: freezed == killHouse ? _self._killHouse : killHouse // ignore: cast_nullable_to_non_nullable +as List?,stewardKillHouse: freezed == stewardKillHouse ? _self._stewardKillHouse : stewardKillHouse // ignore: cast_nullable_to_non_nullable +as List?,stewards: freezed == stewards ? _self._stewards : stewards // ignore: cast_nullable_to_non_nullable +as List?,getPosStatus: freezed == getPosStatus ? _self.getPosStatus : getPosStatus // ignore: cast_nullable_to_non_nullable +as PosStatus?,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?,userIdForeignKey: freezed == userIdForeignKey ? _self.userIdForeignKey : userIdForeignKey // ignore: cast_nullable_to_non_nullable +as dynamic,addressIdForeignKey: freezed == addressIdForeignKey ? _self.addressIdForeignKey : addressIdForeignKey // ignore: cast_nullable_to_non_nullable +as dynamic,userBankIdForeignKey: freezed == userBankIdForeignKey ? _self.userBankIdForeignKey : userBankIdForeignKey // ignore: cast_nullable_to_non_nullable +as dynamic,walletIdForeignKey: freezed == walletIdForeignKey ? _self.walletIdForeignKey : walletIdForeignKey // ignore: cast_nullable_to_non_nullable +as dynamic,provincialGovernmentIdKey: freezed == provincialGovernmentIdKey ? _self.provincialGovernmentIdKey : provincialGovernmentIdKey // ignore: cast_nullable_to_non_nullable +as dynamic,identityDocuments: freezed == identityDocuments ? _self.identityDocuments : identityDocuments // ignore: cast_nullable_to_non_nullable +as dynamic,active: freezed == active ? _self.active : active // 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?,guildsId: freezed == guildsId ? _self.guildsId : guildsId // ignore: cast_nullable_to_non_nullable +as String?,licenseNumber: freezed == licenseNumber ? _self.licenseNumber : licenseNumber // ignore: cast_nullable_to_non_nullable +as String?,guildsName: freezed == guildsName ? _self.guildsName : guildsName // ignore: cast_nullable_to_non_nullable +as String?,phone: freezed == phone ? _self.phone : phone // ignore: cast_nullable_to_non_nullable +as dynamic,typeActivity: freezed == typeActivity ? _self.typeActivity : typeActivity // ignore: cast_nullable_to_non_nullable +as String?,areaActivity: freezed == areaActivity ? _self.areaActivity : areaActivity // 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?,steward: freezed == steward ? _self.steward : steward // ignore: cast_nullable_to_non_nullable +as bool?,hasPos: freezed == hasPos ? _self.hasPos : hasPos // ignore: cast_nullable_to_non_nullable +as bool?,centersAllocation: freezed == centersAllocation ? _self.centersAllocation : centersAllocation // ignore: cast_nullable_to_non_nullable +as dynamic,killHouseCentersAllocation: freezed == killHouseCentersAllocation ? _self.killHouseCentersAllocation : killHouseCentersAllocation // ignore: cast_nullable_to_non_nullable +as dynamic,allocationLimit: freezed == allocationLimit ? _self.allocationLimit : allocationLimit // ignore: cast_nullable_to_non_nullable +as dynamic,limitationAllocation: freezed == limitationAllocation ? _self.limitationAllocation : limitationAllocation // ignore: cast_nullable_to_non_nullable +as bool?,registerarRole: freezed == registerarRole ? _self.registerarRole : registerarRole // ignore: cast_nullable_to_non_nullable +as dynamic,registerarFullname: freezed == registerarFullname ? _self.registerarFullname : registerarFullname // ignore: cast_nullable_to_non_nullable +as dynamic,registerarMobile: freezed == registerarMobile ? _self.registerarMobile : registerarMobile // ignore: cast_nullable_to_non_nullable +as dynamic,killHouseRegister: freezed == killHouseRegister ? _self.killHouseRegister : killHouseRegister // ignore: cast_nullable_to_non_nullable +as bool?,stewardRegister: freezed == stewardRegister ? _self.stewardRegister : stewardRegister // ignore: cast_nullable_to_non_nullable +as bool?,guildsRoomRegister: freezed == guildsRoomRegister ? _self.guildsRoomRegister : guildsRoomRegister // ignore: cast_nullable_to_non_nullable +as bool?,posCompanyRegister: freezed == posCompanyRegister ? _self.posCompanyRegister : posCompanyRegister // ignore: cast_nullable_to_non_nullable +as bool?,provinceAcceptState: freezed == provinceAcceptState ? _self.provinceAcceptState : provinceAcceptState // ignore: cast_nullable_to_non_nullable +as String?,provinceMessage: freezed == provinceMessage ? _self.provinceMessage : provinceMessage // ignore: cast_nullable_to_non_nullable +as dynamic,condition: freezed == condition ? _self.condition : condition // ignore: cast_nullable_to_non_nullable +as dynamic,descriptionCondition: freezed == descriptionCondition ? _self.descriptionCondition : descriptionCondition // ignore: cast_nullable_to_non_nullable +as dynamic,stewardActive: freezed == stewardActive ? _self.stewardActive : stewardActive // ignore: cast_nullable_to_non_nullable +as bool?,stewardAllocationLimit: freezed == stewardAllocationLimit ? _self.stewardAllocationLimit : stewardAllocationLimit // ignore: cast_nullable_to_non_nullable +as dynamic,stewardLimitationAllocation: freezed == stewardLimitationAllocation ? _self.stewardLimitationAllocation : stewardLimitationAllocation // ignore: cast_nullable_to_non_nullable +as bool?,license: freezed == license ? _self.license : license // ignore: cast_nullable_to_non_nullable +as bool?,licenseForm: freezed == licenseForm ? _self.licenseForm : licenseForm // ignore: cast_nullable_to_non_nullable +as dynamic,licenseFile: freezed == licenseFile ? _self.licenseFile : licenseFile // ignore: cast_nullable_to_non_nullable +as dynamic,reviewerRole: freezed == reviewerRole ? _self.reviewerRole : reviewerRole // ignore: cast_nullable_to_non_nullable +as dynamic,reviewerFullname: freezed == reviewerFullname ? _self.reviewerFullname : reviewerFullname // ignore: cast_nullable_to_non_nullable +as dynamic,reviewerMobile: freezed == reviewerMobile ? _self.reviewerMobile : reviewerMobile // ignore: cast_nullable_to_non_nullable +as dynamic,checkerMessage: freezed == checkerMessage ? _self.checkerMessage : checkerMessage // ignore: cast_nullable_to_non_nullable +as dynamic,finalAccept: freezed == finalAccept ? _self.finalAccept : finalAccept // ignore: cast_nullable_to_non_nullable +as bool?,temporaryRegistration: freezed == temporaryRegistration ? _self.temporaryRegistration : temporaryRegistration // ignore: cast_nullable_to_non_nullable +as bool?,createdBy: freezed == createdBy ? _self.createdBy : createdBy // ignore: cast_nullable_to_non_nullable +as dynamic,modifiedBy: freezed == modifiedBy ? _self.modifiedBy : modifiedBy // ignore: cast_nullable_to_non_nullable +as dynamic,userBankInfo: freezed == userBankInfo ? _self.userBankInfo : userBankInfo // ignore: cast_nullable_to_non_nullable +as dynamic,wallet: freezed == wallet ? _self.wallet : wallet // ignore: cast_nullable_to_non_nullable +as int?,cars: freezed == cars ? _self._cars : cars // ignore: cast_nullable_to_non_nullable +as List?,userLevel: freezed == userLevel ? _self._userLevel : userLevel // ignore: cast_nullable_to_non_nullable +as List?, + )); +} + +/// Create a copy of ToSteward +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ToStewardUserCopyWith<$Res>? get user { + if (_self.user == null) { + return null; + } + + return $ToStewardUserCopyWith<$Res>(_self.user!, (value) { + return _then(_self.copyWith(user: value)); + }); +}/// Create a copy of ToSteward +/// 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 ToSteward +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ActivityCopyWith<$Res>? get guildAreaActivity { + if (_self.guildAreaActivity == null) { + return null; + } + + return $ActivityCopyWith<$Res>(_self.guildAreaActivity!, (value) { + return _then(_self.copyWith(guildAreaActivity: value)); + }); +}/// Create a copy of ToSteward +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ActivityCopyWith<$Res>? get guildTypeActivity { + if (_self.guildTypeActivity == null) { + return null; + } + + return $ActivityCopyWith<$Res>(_self.guildTypeActivity!, (value) { + return _then(_self.copyWith(guildTypeActivity: value)); + }); +}/// Create a copy of ToSteward +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$PosStatusCopyWith<$Res>? get getPosStatus { + if (_self.getPosStatus == null) { + return null; + } + + return $PosStatusCopyWith<$Res>(_self.getPosStatus!, (value) { + return _then(_self.copyWith(getPosStatus: value)); + }); +} +} + + +/// @nodoc +mixin _$ToStewardUser { + + String? get fullname; String? get firstName; String? get lastName; String? get mobile; String? get nationalId; String? get city; +/// Create a copy of ToStewardUser +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ToStewardUserCopyWith get copyWith => _$ToStewardUserCopyWithImpl(this as ToStewardUser, _$identity); + + /// Serializes this ToStewardUser to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is ToStewardUser&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.nationalId, nationalId) || other.nationalId == nationalId)&&(identical(other.city, city) || other.city == city)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,fullname,firstName,lastName,mobile,nationalId,city); + +@override +String toString() { + return 'ToStewardUser(fullname: $fullname, firstName: $firstName, lastName: $lastName, mobile: $mobile, nationalId: $nationalId, city: $city)'; +} + + +} + +/// @nodoc +abstract mixin class $ToStewardUserCopyWith<$Res> { + factory $ToStewardUserCopyWith(ToStewardUser value, $Res Function(ToStewardUser) _then) = _$ToStewardUserCopyWithImpl; +@useResult +$Res call({ + String? fullname, String? firstName, String? lastName, String? mobile, String? nationalId, String? city +}); + + + + +} +/// @nodoc +class _$ToStewardUserCopyWithImpl<$Res> + implements $ToStewardUserCopyWith<$Res> { + _$ToStewardUserCopyWithImpl(this._self, this._then); + + final ToStewardUser _self; + final $Res Function(ToStewardUser) _then; + +/// Create a copy of ToStewardUser +/// 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? mobile = freezed,Object? nationalId = freezed,Object? city = 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?,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?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _ToStewardUser implements ToStewardUser { + const _ToStewardUser({this.fullname, this.firstName, this.lastName, this.mobile, this.nationalId, this.city}); + factory _ToStewardUser.fromJson(Map json) => _$ToStewardUserFromJson(json); + +@override final String? fullname; +@override final String? firstName; +@override final String? lastName; +@override final String? mobile; +@override final String? nationalId; +@override final String? city; + +/// Create a copy of ToStewardUser +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ToStewardUserCopyWith<_ToStewardUser> get copyWith => __$ToStewardUserCopyWithImpl<_ToStewardUser>(this, _$identity); + +@override +Map toJson() { + return _$ToStewardUserToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _ToStewardUser&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.nationalId, nationalId) || other.nationalId == nationalId)&&(identical(other.city, city) || other.city == city)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,fullname,firstName,lastName,mobile,nationalId,city); + +@override +String toString() { + return 'ToStewardUser(fullname: $fullname, firstName: $firstName, lastName: $lastName, mobile: $mobile, nationalId: $nationalId, city: $city)'; +} + + +} + +/// @nodoc +abstract mixin class _$ToStewardUserCopyWith<$Res> implements $ToStewardUserCopyWith<$Res> { + factory _$ToStewardUserCopyWith(_ToStewardUser value, $Res Function(_ToStewardUser) _then) = __$ToStewardUserCopyWithImpl; +@override @useResult +$Res call({ + String? fullname, String? firstName, String? lastName, String? mobile, String? nationalId, String? city +}); + + + + +} +/// @nodoc +class __$ToStewardUserCopyWithImpl<$Res> + implements _$ToStewardUserCopyWith<$Res> { + __$ToStewardUserCopyWithImpl(this._self, this._then); + + final _ToStewardUser _self; + final $Res Function(_ToStewardUser) _then; + +/// Create a copy of ToStewardUser +/// 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? mobile = freezed,Object? nationalId = freezed,Object? city = freezed,}) { + return _then(_ToStewardUser( +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?,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?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$Address { + + Province? get province; CitySimple? 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, CitySimple? city, String? address, String? postalCode +}); + + +$ProvinceCopyWith<$Res>? get province;$CitySimpleCopyWith<$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 CitySimple?,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') +$CitySimpleCopyWith<$Res>? get city { + if (_self.city == null) { + return null; + } + + return $CitySimpleCopyWith<$Res>(_self.city!, (value) { + return _then(_self.copyWith(city: value)); + }); +} +} + + +/// @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 CitySimple? 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, CitySimple? city, String? address, String? postalCode +}); + + +@override $ProvinceCopyWith<$Res>? get province;@override $CitySimpleCopyWith<$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 CitySimple?,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') +$CitySimpleCopyWith<$Res>? get city { + if (_self.city == null) { + return null; + } + + return $CitySimpleCopyWith<$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?, + )); +} + +} + + +/// @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 _$CitySimple { + + String? get key; String? get name; +/// Create a copy of CitySimple +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$CitySimpleCopyWith get copyWith => _$CitySimpleCopyWithImpl(this as CitySimple, _$identity); + + /// Serializes this CitySimple to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is CitySimple&&(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 'CitySimple(key: $key, name: $name)'; +} + + +} + +/// @nodoc +abstract mixin class $CitySimpleCopyWith<$Res> { + factory $CitySimpleCopyWith(CitySimple value, $Res Function(CitySimple) _then) = _$CitySimpleCopyWithImpl; +@useResult +$Res call({ + String? key, String? name +}); + + + + +} +/// @nodoc +class _$CitySimpleCopyWithImpl<$Res> + implements $CitySimpleCopyWith<$Res> { + _$CitySimpleCopyWithImpl(this._self, this._then); + + final CitySimple _self; + final $Res Function(CitySimple) _then; + +/// Create a copy of CitySimple +/// 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?, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _CitySimple implements CitySimple { + const _CitySimple({this.key, this.name}); + factory _CitySimple.fromJson(Map json) => _$CitySimpleFromJson(json); + +@override final String? key; +@override final String? name; + +/// Create a copy of CitySimple +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$CitySimpleCopyWith<_CitySimple> get copyWith => __$CitySimpleCopyWithImpl<_CitySimple>(this, _$identity); + +@override +Map toJson() { + return _$CitySimpleToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _CitySimple&&(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 'CitySimple(key: $key, name: $name)'; +} + + +} + +/// @nodoc +abstract mixin class _$CitySimpleCopyWith<$Res> implements $CitySimpleCopyWith<$Res> { + factory _$CitySimpleCopyWith(_CitySimple value, $Res Function(_CitySimple) _then) = __$CitySimpleCopyWithImpl; +@override @useResult +$Res call({ + String? key, String? name +}); + + + + +} +/// @nodoc +class __$CitySimpleCopyWithImpl<$Res> + implements _$CitySimpleCopyWith<$Res> { + __$CitySimpleCopyWithImpl(this._self, this._then); + + final _CitySimple _self; + final $Res Function(_CitySimple) _then; + +/// Create a copy of CitySimple +/// 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(_CitySimple( +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 _$Activity { + + String? get key; String? get title; +/// Create a copy of Activity +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ActivityCopyWith get copyWith => _$ActivityCopyWithImpl(this as Activity, _$identity); + + /// Serializes this Activity to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is Activity&&(identical(other.key, key) || other.key == key)&&(identical(other.title, title) || other.title == title)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,title); + +@override +String toString() { + return 'Activity(key: $key, title: $title)'; +} + + +} + +/// @nodoc +abstract mixin class $ActivityCopyWith<$Res> { + factory $ActivityCopyWith(Activity value, $Res Function(Activity) _then) = _$ActivityCopyWithImpl; +@useResult +$Res call({ + String? key, String? title +}); + + + + +} +/// @nodoc +class _$ActivityCopyWithImpl<$Res> + implements $ActivityCopyWith<$Res> { + _$ActivityCopyWithImpl(this._self, this._then); + + final Activity _self; + final $Res Function(Activity) _then; + +/// Create a copy of Activity +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? key = freezed,Object? title = freezed,}) { + return _then(_self.copyWith( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,title: freezed == title ? _self.title : title // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _Activity implements Activity { + const _Activity({this.key, this.title}); + factory _Activity.fromJson(Map json) => _$ActivityFromJson(json); + +@override final String? key; +@override final String? title; + +/// Create a copy of Activity +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ActivityCopyWith<_Activity> get copyWith => __$ActivityCopyWithImpl<_Activity>(this, _$identity); + +@override +Map toJson() { + return _$ActivityToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Activity&&(identical(other.key, key) || other.key == key)&&(identical(other.title, title) || other.title == title)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,title); + +@override +String toString() { + return 'Activity(key: $key, title: $title)'; +} + + +} + +/// @nodoc +abstract mixin class _$ActivityCopyWith<$Res> implements $ActivityCopyWith<$Res> { + factory _$ActivityCopyWith(_Activity value, $Res Function(_Activity) _then) = __$ActivityCopyWithImpl; +@override @useResult +$Res call({ + String? key, String? title +}); + + + + +} +/// @nodoc +class __$ActivityCopyWithImpl<$Res> + implements _$ActivityCopyWith<$Res> { + __$ActivityCopyWithImpl(this._self, this._then); + + final _Activity _self; + final $Res Function(_Activity) _then; + +/// Create a copy of Activity +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? key = freezed,Object? title = freezed,}) { + return _then(_Activity( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,title: freezed == title ? _self.title : title // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$PosStatus { + + int? get lenActiveSessions; bool? get hasPons; bool? get hasActivePons; +/// Create a copy of PosStatus +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$PosStatusCopyWith get copyWith => _$PosStatusCopyWithImpl(this as PosStatus, _$identity); + + /// Serializes this PosStatus to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is PosStatus&&(identical(other.lenActiveSessions, lenActiveSessions) || other.lenActiveSessions == lenActiveSessions)&&(identical(other.hasPons, hasPons) || other.hasPons == hasPons)&&(identical(other.hasActivePons, hasActivePons) || other.hasActivePons == hasActivePons)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,lenActiveSessions,hasPons,hasActivePons); + +@override +String toString() { + return 'PosStatus(lenActiveSessions: $lenActiveSessions, hasPons: $hasPons, hasActivePons: $hasActivePons)'; +} + + +} + +/// @nodoc +abstract mixin class $PosStatusCopyWith<$Res> { + factory $PosStatusCopyWith(PosStatus value, $Res Function(PosStatus) _then) = _$PosStatusCopyWithImpl; +@useResult +$Res call({ + int? lenActiveSessions, bool? hasPons, bool? hasActivePons +}); + + + + +} +/// @nodoc +class _$PosStatusCopyWithImpl<$Res> + implements $PosStatusCopyWith<$Res> { + _$PosStatusCopyWithImpl(this._self, this._then); + + final PosStatus _self; + final $Res Function(PosStatus) _then; + +/// Create a copy of PosStatus +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? lenActiveSessions = freezed,Object? hasPons = freezed,Object? hasActivePons = freezed,}) { + return _then(_self.copyWith( +lenActiveSessions: freezed == lenActiveSessions ? _self.lenActiveSessions : lenActiveSessions // ignore: cast_nullable_to_non_nullable +as int?,hasPons: freezed == hasPons ? _self.hasPons : hasPons // ignore: cast_nullable_to_non_nullable +as bool?,hasActivePons: freezed == hasActivePons ? _self.hasActivePons : hasActivePons // ignore: cast_nullable_to_non_nullable +as bool?, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _PosStatus implements PosStatus { + const _PosStatus({this.lenActiveSessions, this.hasPons, this.hasActivePons}); + factory _PosStatus.fromJson(Map json) => _$PosStatusFromJson(json); + +@override final int? lenActiveSessions; +@override final bool? hasPons; +@override final bool? hasActivePons; + +/// Create a copy of PosStatus +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$PosStatusCopyWith<_PosStatus> get copyWith => __$PosStatusCopyWithImpl<_PosStatus>(this, _$identity); + +@override +Map toJson() { + return _$PosStatusToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _PosStatus&&(identical(other.lenActiveSessions, lenActiveSessions) || other.lenActiveSessions == lenActiveSessions)&&(identical(other.hasPons, hasPons) || other.hasPons == hasPons)&&(identical(other.hasActivePons, hasActivePons) || other.hasActivePons == hasActivePons)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,lenActiveSessions,hasPons,hasActivePons); + +@override +String toString() { + return 'PosStatus(lenActiveSessions: $lenActiveSessions, hasPons: $hasPons, hasActivePons: $hasActivePons)'; +} + + +} + +/// @nodoc +abstract mixin class _$PosStatusCopyWith<$Res> implements $PosStatusCopyWith<$Res> { + factory _$PosStatusCopyWith(_PosStatus value, $Res Function(_PosStatus) _then) = __$PosStatusCopyWithImpl; +@override @useResult +$Res call({ + int? lenActiveSessions, bool? hasPons, bool? hasActivePons +}); + + + + +} +/// @nodoc +class __$PosStatusCopyWithImpl<$Res> + implements _$PosStatusCopyWith<$Res> { + __$PosStatusCopyWithImpl(this._self, this._then); + + final _PosStatus _self; + final $Res Function(_PosStatus) _then; + +/// Create a copy of PosStatus +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? lenActiveSessions = freezed,Object? hasPons = freezed,Object? hasActivePons = freezed,}) { + return _then(_PosStatus( +lenActiveSessions: freezed == lenActiveSessions ? _self.lenActiveSessions : lenActiveSessions // ignore: cast_nullable_to_non_nullable +as int?,hasPons: freezed == hasPons ? _self.hasPons : hasPons // ignore: cast_nullable_to_non_nullable +as bool?,hasActivePons: freezed == hasActivePons ? _self.hasActivePons : hasActivePons // ignore: cast_nullable_to_non_nullable +as bool?, + )); +} + + +} + +// dart format on diff --git a/packages/chicken/lib/data/models/response/imported_loads_model/imported_loads_model.g.dart b/packages/chicken/lib/data/models/response/imported_loads_model/imported_loads_model.g.dart new file mode 100644 index 0000000..99edf28 --- /dev/null +++ b/packages/chicken/lib/data/models/response/imported_loads_model/imported_loads_model.g.dart @@ -0,0 +1,491 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'imported_loads_model.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +_ImportedLoadsModel _$ImportedLoadsModelFromJson(Map json) => + _ImportedLoadsModel( + count: (json['count'] as num?)?.toInt(), + next: json['next'] as String?, + previous: json['previous'] as String?, + results: (json['results'] as List?) + ?.map((e) => ImportedLoad.fromJson(e as Map)) + .toList(), + ); + +Map _$ImportedLoadsModelToJson(_ImportedLoadsModel instance) => + { + 'count': instance.count, + 'next': instance.next, + 'previous': instance.previous, + 'results': instance.results, + }; + +_ImportedLoad _$ImportedLoadFromJson( + Map json, +) => _ImportedLoad( + id: (json['id'] as num?)?.toInt(), + product: json['product'] == null + ? null + : Product.fromJson(json['product'] as Map), + killHouse: json['kill_house'] == null + ? null + : KillHouse.fromJson(json['kill_house'] as Map), + toKillHouse: json['to_kill_house'], + steward: json['steward'], + toSteward: json['to_steward'] == null + ? null + : ToSteward.fromJson(json['to_steward'] as Map), + guilds: json['guilds'], + toGuilds: json['to_guilds'], + toColdHouse: json['to_cold_house'], + indexWeight: (json['index_weight'] as num?)?.toInt(), + dateTimestamp: (json['date_timestamp'] as num?)?.toInt(), + newState: (json['new_state'] as num?)?.toInt(), + newReceiverState: (json['new_receiver_state'] as num?)?.toInt(), + newAllocationState: (json['new_allocation_state'] 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?, + numberOfCarcasses: (json['number_of_carcasses'] as num?)?.toInt(), + realNumberOfCarcasses: (json['real_number_of_carcasses'] as num?)?.toInt(), + receiverRealNumberOfCarcasses: + (json['receiver_real_number_of_carcasses'] as num?)?.toInt(), + weightOfCarcasses: (json['weight_of_carcasses'] as num?)?.toDouble(), + realWeightOfCarcasses: (json['real_weight_of_carcasses'] as num?)?.toDouble(), + receiverRealWeightOfCarcasses: + (json['receiver_real_weight_of_carcasses'] as num?)?.toDouble(), + weightLossOfCarcasses: (json['weight_loss_of_carcasses'] as num?)?.toDouble(), + finalRegistration: json['final_registration'] as bool?, + sellType: json['sell_type'] as String?, + productName: json['product_name'] as String?, + sellerType: json['seller_type'] as String?, + type: json['type'] as String?, + saleType: json['sale_type'] as String?, + allocationType: json['allocation_type'] as String?, + systemRegistrationCode: json['system_registration_code'] as bool?, + registrationCode: (json['registration_code'] as num?)?.toInt(), + amount: (json['amount'] as num?)?.toInt(), + totalAmount: (json['total_amount'] as num?)?.toInt(), + totalAmountPaid: (json['total_amount_paid'] as num?)?.toInt(), + totalAmountRemain: (json['total_amount_remain'] as num?)?.toInt(), + loggedRegistrationCode: json['logged_registration_code'], + state: json['state'] as String?, + receiverState: json['receiver_state'] as String?, + allocationState: json['allocation_state'] as String?, + date: json['date'] as String?, + role: json['role'], + stewardTempKey: json['steward_temp_key'], + approvedPriceStatus: json['approved_price_status'] as bool?, + calculateStatus: json['calculate_status'] as bool?, + temporaryTrash: json['temporary_trash'] as bool?, + temporaryDeleted: json['temporary_deleted'] as bool?, + createdBy: json['created_by'], + modifiedBy: json['modified_by'], + wareHouse: json['ware_house'], + stewardWareHouse: json['steward_ware_house'], + car: json['car'], + dispenser: json['dispenser'], +); + +Map _$ImportedLoadToJson( + _ImportedLoad instance, +) => { + 'id': instance.id, + 'product': instance.product, + 'kill_house': instance.killHouse, + 'to_kill_house': instance.toKillHouse, + 'steward': instance.steward, + 'to_steward': instance.toSteward, + 'guilds': instance.guilds, + 'to_guilds': instance.toGuilds, + 'to_cold_house': instance.toColdHouse, + 'index_weight': instance.indexWeight, + 'date_timestamp': instance.dateTimestamp, + 'new_state': instance.newState, + 'new_receiver_state': instance.newReceiverState, + 'new_allocation_state': instance.newAllocationState, + 'key': instance.key, + 'create_date': instance.createDate, + 'modify_date': instance.modifyDate, + 'trash': instance.trash, + 'number_of_carcasses': instance.numberOfCarcasses, + 'real_number_of_carcasses': instance.realNumberOfCarcasses, + 'receiver_real_number_of_carcasses': instance.receiverRealNumberOfCarcasses, + 'weight_of_carcasses': instance.weightOfCarcasses, + 'real_weight_of_carcasses': instance.realWeightOfCarcasses, + 'receiver_real_weight_of_carcasses': instance.receiverRealWeightOfCarcasses, + 'weight_loss_of_carcasses': instance.weightLossOfCarcasses, + 'final_registration': instance.finalRegistration, + 'sell_type': instance.sellType, + 'product_name': instance.productName, + 'seller_type': instance.sellerType, + 'type': instance.type, + 'sale_type': instance.saleType, + 'allocation_type': instance.allocationType, + 'system_registration_code': instance.systemRegistrationCode, + 'registration_code': instance.registrationCode, + 'amount': instance.amount, + 'total_amount': instance.totalAmount, + 'total_amount_paid': instance.totalAmountPaid, + 'total_amount_remain': instance.totalAmountRemain, + 'logged_registration_code': instance.loggedRegistrationCode, + 'state': instance.state, + 'receiver_state': instance.receiverState, + 'allocation_state': instance.allocationState, + 'date': instance.date, + 'role': instance.role, + 'steward_temp_key': instance.stewardTempKey, + 'approved_price_status': instance.approvedPriceStatus, + 'calculate_status': instance.calculateStatus, + 'temporary_trash': instance.temporaryTrash, + 'temporary_deleted': instance.temporaryDeleted, + 'created_by': instance.createdBy, + 'modified_by': instance.modifiedBy, + 'ware_house': instance.wareHouse, + 'steward_ware_house': instance.stewardWareHouse, + 'car': instance.car, + 'dispenser': instance.dispenser, +}; + +_Product _$ProductFromJson(Map json) => + _Product(weightAverage: (json['weight_average'] as num?)?.toDouble()); + +Map _$ProductToJson(_Product instance) => { + 'weight_average': instance.weightAverage, +}; + +_KillHouse _$KillHouseFromJson(Map json) => _KillHouse( + key: json['key'] as String?, + killHouseOperator: json['kill_house_operator'] == null + ? null + : KillHouseOperator.fromJson( + json['kill_house_operator'] as Map, + ), + name: json['name'] as String?, + killer: json['killer'] as bool?, +); + +Map _$KillHouseToJson(_KillHouse instance) => + { + 'key': instance.key, + 'kill_house_operator': instance.killHouseOperator, + 'name': instance.name, + 'killer': instance.killer, + }; + +_KillHouseOperator _$KillHouseOperatorFromJson(Map json) => + _KillHouseOperator( + user: json['user'] == null + ? null + : User.fromJson(json['user'] as Map), + ); + +Map _$KillHouseOperatorToJson(_KillHouseOperator instance) => + {'user': instance.user}; + +_User _$UserFromJson(Map json) => _User( + fullname: json['fullname'] 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) => { + 'fullname': 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, +}; + +_ToSteward _$ToStewardFromJson(Map json) => _ToSteward( + id: (json['id'] as num?)?.toInt(), + user: json['user'] == null + ? null + : ToStewardUser.fromJson(json['user'] as Map), + address: json['address'] == null + ? null + : Address.fromJson(json['address'] as Map), + guildAreaActivity: json['guild_area_activity'] == null + ? null + : Activity.fromJson(json['guild_area_activity'] as Map), + guildTypeActivity: json['guild_type_activity'] == null + ? null + : Activity.fromJson(json['guild_type_activity'] as Map), + killHouse: json['kill_house'] as List?, + stewardKillHouse: json['steward_kill_house'] as List?, + stewards: json['stewards'] as List?, + getPosStatus: json['get_pos_status'] == null + ? null + : PosStatus.fromJson(json['get_pos_status'] as Map), + key: json['key'] as String?, + createDate: json['create_date'] as String?, + modifyDate: json['modify_date'] as String?, + trash: json['trash'] as bool?, + userIdForeignKey: json['user_id_foreign_key'], + addressIdForeignKey: json['address_id_foreign_key'], + userBankIdForeignKey: json['user_bank_id_foreign_key'], + walletIdForeignKey: json['wallet_id_foreign_key'], + provincialGovernmentIdKey: json['provincial_government_id_key'], + identityDocuments: json['identity_documents'], + active: json['active'] as bool?, + cityNumber: (json['city_number'] as num?)?.toInt(), + cityName: json['city_name'] as String?, + guildsId: json['guilds_id'] as String?, + licenseNumber: json['license_number'] as String?, + guildsName: json['guilds_name'] as String?, + phone: json['phone'], + typeActivity: json['type_activity'] as String?, + areaActivity: json['area_activity'] as String?, + provinceNumber: (json['province_number'] as num?)?.toInt(), + provinceName: json['province_name'] as String?, + steward: json['steward'] as bool?, + hasPos: json['has_pos'] as bool?, + centersAllocation: json['centers_allocation'], + killHouseCentersAllocation: json['kill_house_centers_allocation'], + allocationLimit: json['allocation_limit'], + limitationAllocation: json['limitation_allocation'] as bool?, + registerarRole: json['registerar_role'], + registerarFullname: json['registerar_fullname'], + registerarMobile: json['registerar_mobile'], + killHouseRegister: json['kill_house_register'] as bool?, + stewardRegister: json['steward_register'] as bool?, + guildsRoomRegister: json['guilds_room_register'] as bool?, + posCompanyRegister: json['pos_company_register'] as bool?, + provinceAcceptState: json['province_accept_state'] as String?, + provinceMessage: json['province_message'], + condition: json['condition'], + descriptionCondition: json['description_condition'], + stewardActive: json['steward_active'] as bool?, + stewardAllocationLimit: json['steward_allocation_limit'], + stewardLimitationAllocation: json['steward_limitation_allocation'] as bool?, + license: json['license'] as bool?, + licenseForm: json['license_form'], + licenseFile: json['license_file'], + reviewerRole: json['reviewer_role'], + reviewerFullname: json['reviewer_fullname'], + reviewerMobile: json['reviewer_mobile'], + checkerMessage: json['checker_message'], + finalAccept: json['final_accept'] as bool?, + temporaryRegistration: json['temporary_registration'] as bool?, + createdBy: json['created_by'], + modifiedBy: json['modified_by'], + userBankInfo: json['user_bank_info'], + wallet: (json['wallet'] as num?)?.toInt(), + cars: json['cars'] as List?, + userLevel: json['user_level'] as List?, +); + +Map _$ToStewardToJson(_ToSteward instance) => + { + 'id': instance.id, + 'user': instance.user, + 'address': instance.address, + 'guild_area_activity': instance.guildAreaActivity, + 'guild_type_activity': instance.guildTypeActivity, + 'kill_house': instance.killHouse, + 'steward_kill_house': instance.stewardKillHouse, + 'stewards': instance.stewards, + 'get_pos_status': instance.getPosStatus, + 'key': instance.key, + 'create_date': instance.createDate, + 'modify_date': instance.modifyDate, + 'trash': instance.trash, + 'user_id_foreign_key': instance.userIdForeignKey, + 'address_id_foreign_key': instance.addressIdForeignKey, + 'user_bank_id_foreign_key': instance.userBankIdForeignKey, + 'wallet_id_foreign_key': instance.walletIdForeignKey, + 'provincial_government_id_key': instance.provincialGovernmentIdKey, + 'identity_documents': instance.identityDocuments, + 'active': instance.active, + 'city_number': instance.cityNumber, + 'city_name': instance.cityName, + 'guilds_id': instance.guildsId, + 'license_number': instance.licenseNumber, + 'guilds_name': instance.guildsName, + 'phone': instance.phone, + 'type_activity': instance.typeActivity, + 'area_activity': instance.areaActivity, + 'province_number': instance.provinceNumber, + 'province_name': instance.provinceName, + 'steward': instance.steward, + 'has_pos': instance.hasPos, + 'centers_allocation': instance.centersAllocation, + 'kill_house_centers_allocation': instance.killHouseCentersAllocation, + 'allocation_limit': instance.allocationLimit, + 'limitation_allocation': instance.limitationAllocation, + 'registerar_role': instance.registerarRole, + 'registerar_fullname': instance.registerarFullname, + 'registerar_mobile': instance.registerarMobile, + 'kill_house_register': instance.killHouseRegister, + 'steward_register': instance.stewardRegister, + 'guilds_room_register': instance.guildsRoomRegister, + 'pos_company_register': instance.posCompanyRegister, + 'province_accept_state': instance.provinceAcceptState, + 'province_message': instance.provinceMessage, + 'condition': instance.condition, + 'description_condition': instance.descriptionCondition, + 'steward_active': instance.stewardActive, + 'steward_allocation_limit': instance.stewardAllocationLimit, + 'steward_limitation_allocation': instance.stewardLimitationAllocation, + 'license': instance.license, + 'license_form': instance.licenseForm, + 'license_file': instance.licenseFile, + 'reviewer_role': instance.reviewerRole, + 'reviewer_fullname': instance.reviewerFullname, + 'reviewer_mobile': instance.reviewerMobile, + 'checker_message': instance.checkerMessage, + 'final_accept': instance.finalAccept, + 'temporary_registration': instance.temporaryRegistration, + 'created_by': instance.createdBy, + 'modified_by': instance.modifiedBy, + 'user_bank_info': instance.userBankInfo, + 'wallet': instance.wallet, + 'cars': instance.cars, + 'user_level': instance.userLevel, + }; + +_ToStewardUser _$ToStewardUserFromJson(Map json) => + _ToStewardUser( + fullname: json['fullname'] as String?, + firstName: json['first_name'] as String?, + lastName: json['last_name'] as String?, + mobile: json['mobile'] as String?, + nationalId: json['national_id'] as String?, + city: json['city'] as String?, + ); + +Map _$ToStewardUserToJson(_ToStewardUser instance) => + { + 'fullname': instance.fullname, + 'first_name': instance.firstName, + 'last_name': instance.lastName, + 'mobile': instance.mobile, + 'national_id': instance.nationalId, + 'city': instance.city, + }; + +_Address _$AddressFromJson(Map json) => _Address( + province: json['province'] == null + ? null + : Province.fromJson(json['province'] as Map), + city: json['city'] == null + ? null + : CitySimple.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, +}; + +_CitySimple _$CitySimpleFromJson(Map json) => + _CitySimple(key: json['key'] as String?, name: json['name'] as String?); + +Map _$CitySimpleToJson(_CitySimple instance) => + {'key': instance.key, 'name': instance.name}; + +_Activity _$ActivityFromJson(Map json) => + _Activity(key: json['key'] as String?, title: json['title'] as String?); + +Map _$ActivityToJson(_Activity instance) => { + 'key': instance.key, + 'title': instance.title, +}; + +_PosStatus _$PosStatusFromJson(Map json) => _PosStatus( + lenActiveSessions: (json['len_active_sessions'] as num?)?.toInt(), + hasPons: json['has_pons'] as bool?, + hasActivePons: json['has_active_pons'] as bool?, +); + +Map _$PosStatusToJson(_PosStatus instance) => + { + 'len_active_sessions': instance.lenActiveSessions, + 'has_pons': instance.hasPons, + 'has_active_pons': instance.hasActivePons, + }; diff --git a/packages/chicken/lib/data/models/response/inventory/inventory_model.dart b/packages/chicken/lib/data/models/response/inventory/inventory_model.dart new file mode 100644 index 0000000..b6ed7c6 --- /dev/null +++ b/packages/chicken/lib/data/models/response/inventory/inventory_model.dart @@ -0,0 +1,56 @@ +import 'package:freezed_annotation/freezed_annotation.dart'; + +part 'inventory_model.freezed.dart'; +part 'inventory_model.g.dart'; + +@freezed +abstract class InventoryModel with _$InventoryModel { + const factory InventoryModel({ + int? id, + String? key, + String? createDate, + String? modifyDate, + bool? trash, + String? name, + int? provinceGovernmentalCarcassesQuantity, + int? provinceGovernmentalCarcassesWeight, + int? provinceFreeCarcassesQuantity, + int? provinceFreeCarcassesWeight, + int? receiveGovernmentalCarcassesQuantity, + int? receiveGovernmentalCarcassesWeight, + int? receiveFreeCarcassesQuantity, + int? receiveFreeCarcassesWeight, + int? freeBuyingCarcassesQuantity, + int? freeBuyingCarcassesWeight, + int? totalGovernmentalCarcassesQuantity, + int? totalGovernmentalCarcassesWeight, + int? totalFreeBarsCarcassesQuantity, + int? totalFreeBarsCarcassesWeight, + double? weightAverage, + int? totalCarcassesQuantity, + int? totalCarcassesWeight, + int? freezingQuantity, + int? freezingWeight, + int? lossWeight, + int? outProvinceAllocatedQuantity, + int? outProvinceAllocatedWeight, + int? provinceAllocatedQuantity, + int? provinceAllocatedWeight, + int? realAllocatedQuantity, + int? realAllocatedWeight, + int? coldHouseAllocatedWeight, + int? posAllocatedWeight, + int? segmentationWeight, + int? totalRemainQuantity, + int? totalRemainWeight, + int? freePrice, + int? approvedPrice, + bool? approvedPriceStatus, + int? parentProduct, + int? killHouse, + int? guild, + }) = _InventoryModel; // Changed to _InventoryModel + + factory InventoryModel.fromJson(Map json) => + _$InventoryModelFromJson(json); +} \ No newline at end of file diff --git a/packages/chicken/lib/data/models/response/inventory/inventory_model.freezed.dart b/packages/chicken/lib/data/models/response/inventory/inventory_model.freezed.dart new file mode 100644 index 0000000..bc87570 --- /dev/null +++ b/packages/chicken/lib/data/models/response/inventory/inventory_model.freezed.dart @@ -0,0 +1,274 @@ +// dart format width=80 +// coverage:ignore-file +// GENERATED CODE - DO NOT MODIFY BY HAND +// 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 'inventory_model.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; + +/// @nodoc +mixin _$InventoryModel { + + int? get id; String? get key; String? get createDate; String? get modifyDate; bool? get trash; String? get name; int? get provinceGovernmentalCarcassesQuantity; int? get provinceGovernmentalCarcassesWeight; int? get provinceFreeCarcassesQuantity; int? get provinceFreeCarcassesWeight; int? get receiveGovernmentalCarcassesQuantity; int? get receiveGovernmentalCarcassesWeight; int? get receiveFreeCarcassesQuantity; int? get receiveFreeCarcassesWeight; int? get freeBuyingCarcassesQuantity; int? get freeBuyingCarcassesWeight; int? get totalGovernmentalCarcassesQuantity; int? get totalGovernmentalCarcassesWeight; int? get totalFreeBarsCarcassesQuantity; int? get totalFreeBarsCarcassesWeight; double? get weightAverage; int? get totalCarcassesQuantity; int? get totalCarcassesWeight; int? get freezingQuantity; int? get freezingWeight; int? get lossWeight; int? get outProvinceAllocatedQuantity; int? get outProvinceAllocatedWeight; int? get provinceAllocatedQuantity; int? get provinceAllocatedWeight; int? get realAllocatedQuantity; int? get realAllocatedWeight; int? get coldHouseAllocatedWeight; int? get posAllocatedWeight; int? get segmentationWeight; int? get totalRemainQuantity; int? get totalRemainWeight; int? get freePrice; int? get approvedPrice; bool? get approvedPriceStatus; int? get parentProduct; int? get killHouse; int? get guild; +/// Create a copy of InventoryModel +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$InventoryModelCopyWith get copyWith => _$InventoryModelCopyWithImpl(this as InventoryModel, _$identity); + + /// Serializes this InventoryModel to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is InventoryModel&&(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.name, name) || other.name == name)&&(identical(other.provinceGovernmentalCarcassesQuantity, provinceGovernmentalCarcassesQuantity) || other.provinceGovernmentalCarcassesQuantity == provinceGovernmentalCarcassesQuantity)&&(identical(other.provinceGovernmentalCarcassesWeight, provinceGovernmentalCarcassesWeight) || other.provinceGovernmentalCarcassesWeight == provinceGovernmentalCarcassesWeight)&&(identical(other.provinceFreeCarcassesQuantity, provinceFreeCarcassesQuantity) || other.provinceFreeCarcassesQuantity == provinceFreeCarcassesQuantity)&&(identical(other.provinceFreeCarcassesWeight, provinceFreeCarcassesWeight) || other.provinceFreeCarcassesWeight == provinceFreeCarcassesWeight)&&(identical(other.receiveGovernmentalCarcassesQuantity, receiveGovernmentalCarcassesQuantity) || other.receiveGovernmentalCarcassesQuantity == receiveGovernmentalCarcassesQuantity)&&(identical(other.receiveGovernmentalCarcassesWeight, receiveGovernmentalCarcassesWeight) || other.receiveGovernmentalCarcassesWeight == receiveGovernmentalCarcassesWeight)&&(identical(other.receiveFreeCarcassesQuantity, receiveFreeCarcassesQuantity) || other.receiveFreeCarcassesQuantity == receiveFreeCarcassesQuantity)&&(identical(other.receiveFreeCarcassesWeight, receiveFreeCarcassesWeight) || other.receiveFreeCarcassesWeight == receiveFreeCarcassesWeight)&&(identical(other.freeBuyingCarcassesQuantity, freeBuyingCarcassesQuantity) || other.freeBuyingCarcassesQuantity == freeBuyingCarcassesQuantity)&&(identical(other.freeBuyingCarcassesWeight, freeBuyingCarcassesWeight) || other.freeBuyingCarcassesWeight == freeBuyingCarcassesWeight)&&(identical(other.totalGovernmentalCarcassesQuantity, totalGovernmentalCarcassesQuantity) || other.totalGovernmentalCarcassesQuantity == totalGovernmentalCarcassesQuantity)&&(identical(other.totalGovernmentalCarcassesWeight, totalGovernmentalCarcassesWeight) || other.totalGovernmentalCarcassesWeight == totalGovernmentalCarcassesWeight)&&(identical(other.totalFreeBarsCarcassesQuantity, totalFreeBarsCarcassesQuantity) || other.totalFreeBarsCarcassesQuantity == totalFreeBarsCarcassesQuantity)&&(identical(other.totalFreeBarsCarcassesWeight, totalFreeBarsCarcassesWeight) || other.totalFreeBarsCarcassesWeight == totalFreeBarsCarcassesWeight)&&(identical(other.weightAverage, weightAverage) || other.weightAverage == weightAverage)&&(identical(other.totalCarcassesQuantity, totalCarcassesQuantity) || other.totalCarcassesQuantity == totalCarcassesQuantity)&&(identical(other.totalCarcassesWeight, totalCarcassesWeight) || other.totalCarcassesWeight == totalCarcassesWeight)&&(identical(other.freezingQuantity, freezingQuantity) || other.freezingQuantity == freezingQuantity)&&(identical(other.freezingWeight, freezingWeight) || other.freezingWeight == freezingWeight)&&(identical(other.lossWeight, lossWeight) || other.lossWeight == lossWeight)&&(identical(other.outProvinceAllocatedQuantity, outProvinceAllocatedQuantity) || other.outProvinceAllocatedQuantity == outProvinceAllocatedQuantity)&&(identical(other.outProvinceAllocatedWeight, outProvinceAllocatedWeight) || other.outProvinceAllocatedWeight == outProvinceAllocatedWeight)&&(identical(other.provinceAllocatedQuantity, provinceAllocatedQuantity) || other.provinceAllocatedQuantity == provinceAllocatedQuantity)&&(identical(other.provinceAllocatedWeight, provinceAllocatedWeight) || other.provinceAllocatedWeight == provinceAllocatedWeight)&&(identical(other.realAllocatedQuantity, realAllocatedQuantity) || other.realAllocatedQuantity == realAllocatedQuantity)&&(identical(other.realAllocatedWeight, realAllocatedWeight) || other.realAllocatedWeight == realAllocatedWeight)&&(identical(other.coldHouseAllocatedWeight, coldHouseAllocatedWeight) || other.coldHouseAllocatedWeight == coldHouseAllocatedWeight)&&(identical(other.posAllocatedWeight, posAllocatedWeight) || other.posAllocatedWeight == posAllocatedWeight)&&(identical(other.segmentationWeight, segmentationWeight) || other.segmentationWeight == segmentationWeight)&&(identical(other.totalRemainQuantity, totalRemainQuantity) || other.totalRemainQuantity == totalRemainQuantity)&&(identical(other.totalRemainWeight, totalRemainWeight) || other.totalRemainWeight == totalRemainWeight)&&(identical(other.freePrice, freePrice) || other.freePrice == freePrice)&&(identical(other.approvedPrice, approvedPrice) || other.approvedPrice == approvedPrice)&&(identical(other.approvedPriceStatus, approvedPriceStatus) || other.approvedPriceStatus == approvedPriceStatus)&&(identical(other.parentProduct, parentProduct) || other.parentProduct == parentProduct)&&(identical(other.killHouse, killHouse) || other.killHouse == killHouse)&&(identical(other.guild, guild) || other.guild == guild)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,id,key,createDate,modifyDate,trash,name,provinceGovernmentalCarcassesQuantity,provinceGovernmentalCarcassesWeight,provinceFreeCarcassesQuantity,provinceFreeCarcassesWeight,receiveGovernmentalCarcassesQuantity,receiveGovernmentalCarcassesWeight,receiveFreeCarcassesQuantity,receiveFreeCarcassesWeight,freeBuyingCarcassesQuantity,freeBuyingCarcassesWeight,totalGovernmentalCarcassesQuantity,totalGovernmentalCarcassesWeight,totalFreeBarsCarcassesQuantity,totalFreeBarsCarcassesWeight,weightAverage,totalCarcassesQuantity,totalCarcassesWeight,freezingQuantity,freezingWeight,lossWeight,outProvinceAllocatedQuantity,outProvinceAllocatedWeight,provinceAllocatedQuantity,provinceAllocatedWeight,realAllocatedQuantity,realAllocatedWeight,coldHouseAllocatedWeight,posAllocatedWeight,segmentationWeight,totalRemainQuantity,totalRemainWeight,freePrice,approvedPrice,approvedPriceStatus,parentProduct,killHouse,guild]); + +@override +String toString() { + return 'InventoryModel(id: $id, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, name: $name, provinceGovernmentalCarcassesQuantity: $provinceGovernmentalCarcassesQuantity, provinceGovernmentalCarcassesWeight: $provinceGovernmentalCarcassesWeight, provinceFreeCarcassesQuantity: $provinceFreeCarcassesQuantity, provinceFreeCarcassesWeight: $provinceFreeCarcassesWeight, receiveGovernmentalCarcassesQuantity: $receiveGovernmentalCarcassesQuantity, receiveGovernmentalCarcassesWeight: $receiveGovernmentalCarcassesWeight, receiveFreeCarcassesQuantity: $receiveFreeCarcassesQuantity, receiveFreeCarcassesWeight: $receiveFreeCarcassesWeight, freeBuyingCarcassesQuantity: $freeBuyingCarcassesQuantity, freeBuyingCarcassesWeight: $freeBuyingCarcassesWeight, totalGovernmentalCarcassesQuantity: $totalGovernmentalCarcassesQuantity, totalGovernmentalCarcassesWeight: $totalGovernmentalCarcassesWeight, totalFreeBarsCarcassesQuantity: $totalFreeBarsCarcassesQuantity, totalFreeBarsCarcassesWeight: $totalFreeBarsCarcassesWeight, weightAverage: $weightAverage, totalCarcassesQuantity: $totalCarcassesQuantity, totalCarcassesWeight: $totalCarcassesWeight, freezingQuantity: $freezingQuantity, freezingWeight: $freezingWeight, lossWeight: $lossWeight, outProvinceAllocatedQuantity: $outProvinceAllocatedQuantity, outProvinceAllocatedWeight: $outProvinceAllocatedWeight, provinceAllocatedQuantity: $provinceAllocatedQuantity, provinceAllocatedWeight: $provinceAllocatedWeight, realAllocatedQuantity: $realAllocatedQuantity, realAllocatedWeight: $realAllocatedWeight, coldHouseAllocatedWeight: $coldHouseAllocatedWeight, posAllocatedWeight: $posAllocatedWeight, segmentationWeight: $segmentationWeight, totalRemainQuantity: $totalRemainQuantity, totalRemainWeight: $totalRemainWeight, freePrice: $freePrice, approvedPrice: $approvedPrice, approvedPriceStatus: $approvedPriceStatus, parentProduct: $parentProduct, killHouse: $killHouse, guild: $guild)'; +} + + +} + +/// @nodoc +abstract mixin class $InventoryModelCopyWith<$Res> { + factory $InventoryModelCopyWith(InventoryModel value, $Res Function(InventoryModel) _then) = _$InventoryModelCopyWithImpl; +@useResult +$Res call({ + int? id, String? key, String? createDate, String? modifyDate, bool? trash, String? name, int? provinceGovernmentalCarcassesQuantity, int? provinceGovernmentalCarcassesWeight, int? provinceFreeCarcassesQuantity, int? provinceFreeCarcassesWeight, int? receiveGovernmentalCarcassesQuantity, int? receiveGovernmentalCarcassesWeight, int? receiveFreeCarcassesQuantity, int? receiveFreeCarcassesWeight, int? freeBuyingCarcassesQuantity, int? freeBuyingCarcassesWeight, int? totalGovernmentalCarcassesQuantity, int? totalGovernmentalCarcassesWeight, int? totalFreeBarsCarcassesQuantity, int? totalFreeBarsCarcassesWeight, double? weightAverage, int? totalCarcassesQuantity, int? totalCarcassesWeight, int? freezingQuantity, int? freezingWeight, int? lossWeight, int? outProvinceAllocatedQuantity, int? outProvinceAllocatedWeight, int? provinceAllocatedQuantity, int? provinceAllocatedWeight, int? realAllocatedQuantity, int? realAllocatedWeight, int? coldHouseAllocatedWeight, int? posAllocatedWeight, int? segmentationWeight, int? totalRemainQuantity, int? totalRemainWeight, int? freePrice, int? approvedPrice, bool? approvedPriceStatus, int? parentProduct, int? killHouse, int? guild +}); + + + + +} +/// @nodoc +class _$InventoryModelCopyWithImpl<$Res> + implements $InventoryModelCopyWith<$Res> { + _$InventoryModelCopyWithImpl(this._self, this._then); + + final InventoryModel _self; + final $Res Function(InventoryModel) _then; + +/// Create a copy of InventoryModel +/// 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? name = freezed,Object? provinceGovernmentalCarcassesQuantity = freezed,Object? provinceGovernmentalCarcassesWeight = freezed,Object? provinceFreeCarcassesQuantity = freezed,Object? provinceFreeCarcassesWeight = freezed,Object? receiveGovernmentalCarcassesQuantity = freezed,Object? receiveGovernmentalCarcassesWeight = freezed,Object? receiveFreeCarcassesQuantity = freezed,Object? receiveFreeCarcassesWeight = freezed,Object? freeBuyingCarcassesQuantity = freezed,Object? freeBuyingCarcassesWeight = freezed,Object? totalGovernmentalCarcassesQuantity = freezed,Object? totalGovernmentalCarcassesWeight = freezed,Object? totalFreeBarsCarcassesQuantity = freezed,Object? totalFreeBarsCarcassesWeight = freezed,Object? weightAverage = freezed,Object? totalCarcassesQuantity = freezed,Object? totalCarcassesWeight = freezed,Object? freezingQuantity = freezed,Object? freezingWeight = freezed,Object? lossWeight = freezed,Object? outProvinceAllocatedQuantity = freezed,Object? outProvinceAllocatedWeight = freezed,Object? provinceAllocatedQuantity = freezed,Object? provinceAllocatedWeight = freezed,Object? realAllocatedQuantity = freezed,Object? realAllocatedWeight = freezed,Object? coldHouseAllocatedWeight = freezed,Object? posAllocatedWeight = freezed,Object? segmentationWeight = freezed,Object? totalRemainQuantity = freezed,Object? totalRemainWeight = freezed,Object? freePrice = freezed,Object? approvedPrice = freezed,Object? approvedPriceStatus = freezed,Object? parentProduct = freezed,Object? killHouse = freezed,Object? guild = 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?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?,provinceGovernmentalCarcassesQuantity: freezed == provinceGovernmentalCarcassesQuantity ? _self.provinceGovernmentalCarcassesQuantity : provinceGovernmentalCarcassesQuantity // ignore: cast_nullable_to_non_nullable +as int?,provinceGovernmentalCarcassesWeight: freezed == provinceGovernmentalCarcassesWeight ? _self.provinceGovernmentalCarcassesWeight : provinceGovernmentalCarcassesWeight // ignore: cast_nullable_to_non_nullable +as int?,provinceFreeCarcassesQuantity: freezed == provinceFreeCarcassesQuantity ? _self.provinceFreeCarcassesQuantity : provinceFreeCarcassesQuantity // ignore: cast_nullable_to_non_nullable +as int?,provinceFreeCarcassesWeight: freezed == provinceFreeCarcassesWeight ? _self.provinceFreeCarcassesWeight : provinceFreeCarcassesWeight // ignore: cast_nullable_to_non_nullable +as int?,receiveGovernmentalCarcassesQuantity: freezed == receiveGovernmentalCarcassesQuantity ? _self.receiveGovernmentalCarcassesQuantity : receiveGovernmentalCarcassesQuantity // ignore: cast_nullable_to_non_nullable +as int?,receiveGovernmentalCarcassesWeight: freezed == receiveGovernmentalCarcassesWeight ? _self.receiveGovernmentalCarcassesWeight : receiveGovernmentalCarcassesWeight // ignore: cast_nullable_to_non_nullable +as int?,receiveFreeCarcassesQuantity: freezed == receiveFreeCarcassesQuantity ? _self.receiveFreeCarcassesQuantity : receiveFreeCarcassesQuantity // ignore: cast_nullable_to_non_nullable +as int?,receiveFreeCarcassesWeight: freezed == receiveFreeCarcassesWeight ? _self.receiveFreeCarcassesWeight : receiveFreeCarcassesWeight // ignore: cast_nullable_to_non_nullable +as int?,freeBuyingCarcassesQuantity: freezed == freeBuyingCarcassesQuantity ? _self.freeBuyingCarcassesQuantity : freeBuyingCarcassesQuantity // ignore: cast_nullable_to_non_nullable +as int?,freeBuyingCarcassesWeight: freezed == freeBuyingCarcassesWeight ? _self.freeBuyingCarcassesWeight : freeBuyingCarcassesWeight // ignore: cast_nullable_to_non_nullable +as int?,totalGovernmentalCarcassesQuantity: freezed == totalGovernmentalCarcassesQuantity ? _self.totalGovernmentalCarcassesQuantity : totalGovernmentalCarcassesQuantity // ignore: cast_nullable_to_non_nullable +as int?,totalGovernmentalCarcassesWeight: freezed == totalGovernmentalCarcassesWeight ? _self.totalGovernmentalCarcassesWeight : totalGovernmentalCarcassesWeight // ignore: cast_nullable_to_non_nullable +as int?,totalFreeBarsCarcassesQuantity: freezed == totalFreeBarsCarcassesQuantity ? _self.totalFreeBarsCarcassesQuantity : totalFreeBarsCarcassesQuantity // ignore: cast_nullable_to_non_nullable +as int?,totalFreeBarsCarcassesWeight: freezed == totalFreeBarsCarcassesWeight ? _self.totalFreeBarsCarcassesWeight : totalFreeBarsCarcassesWeight // ignore: cast_nullable_to_non_nullable +as int?,weightAverage: freezed == weightAverage ? _self.weightAverage : weightAverage // ignore: cast_nullable_to_non_nullable +as double?,totalCarcassesQuantity: freezed == totalCarcassesQuantity ? _self.totalCarcassesQuantity : totalCarcassesQuantity // ignore: cast_nullable_to_non_nullable +as int?,totalCarcassesWeight: freezed == totalCarcassesWeight ? _self.totalCarcassesWeight : totalCarcassesWeight // ignore: cast_nullable_to_non_nullable +as int?,freezingQuantity: freezed == freezingQuantity ? _self.freezingQuantity : freezingQuantity // ignore: cast_nullable_to_non_nullable +as int?,freezingWeight: freezed == freezingWeight ? _self.freezingWeight : freezingWeight // ignore: cast_nullable_to_non_nullable +as int?,lossWeight: freezed == lossWeight ? _self.lossWeight : lossWeight // ignore: cast_nullable_to_non_nullable +as int?,outProvinceAllocatedQuantity: freezed == outProvinceAllocatedQuantity ? _self.outProvinceAllocatedQuantity : outProvinceAllocatedQuantity // ignore: cast_nullable_to_non_nullable +as int?,outProvinceAllocatedWeight: freezed == outProvinceAllocatedWeight ? _self.outProvinceAllocatedWeight : outProvinceAllocatedWeight // ignore: cast_nullable_to_non_nullable +as int?,provinceAllocatedQuantity: freezed == provinceAllocatedQuantity ? _self.provinceAllocatedQuantity : provinceAllocatedQuantity // ignore: cast_nullable_to_non_nullable +as int?,provinceAllocatedWeight: freezed == provinceAllocatedWeight ? _self.provinceAllocatedWeight : provinceAllocatedWeight // ignore: cast_nullable_to_non_nullable +as int?,realAllocatedQuantity: freezed == realAllocatedQuantity ? _self.realAllocatedQuantity : realAllocatedQuantity // ignore: cast_nullable_to_non_nullable +as int?,realAllocatedWeight: freezed == realAllocatedWeight ? _self.realAllocatedWeight : realAllocatedWeight // ignore: cast_nullable_to_non_nullable +as int?,coldHouseAllocatedWeight: freezed == coldHouseAllocatedWeight ? _self.coldHouseAllocatedWeight : coldHouseAllocatedWeight // ignore: cast_nullable_to_non_nullable +as int?,posAllocatedWeight: freezed == posAllocatedWeight ? _self.posAllocatedWeight : posAllocatedWeight // ignore: cast_nullable_to_non_nullable +as int?,segmentationWeight: freezed == segmentationWeight ? _self.segmentationWeight : segmentationWeight // ignore: cast_nullable_to_non_nullable +as int?,totalRemainQuantity: freezed == totalRemainQuantity ? _self.totalRemainQuantity : totalRemainQuantity // ignore: cast_nullable_to_non_nullable +as int?,totalRemainWeight: freezed == totalRemainWeight ? _self.totalRemainWeight : totalRemainWeight // ignore: cast_nullable_to_non_nullable +as int?,freePrice: freezed == freePrice ? _self.freePrice : freePrice // ignore: cast_nullable_to_non_nullable +as int?,approvedPrice: freezed == approvedPrice ? _self.approvedPrice : approvedPrice // ignore: cast_nullable_to_non_nullable +as int?,approvedPriceStatus: freezed == approvedPriceStatus ? _self.approvedPriceStatus : approvedPriceStatus // ignore: cast_nullable_to_non_nullable +as bool?,parentProduct: freezed == parentProduct ? _self.parentProduct : parentProduct // ignore: cast_nullable_to_non_nullable +as int?,killHouse: freezed == killHouse ? _self.killHouse : killHouse // ignore: cast_nullable_to_non_nullable +as int?,guild: freezed == guild ? _self.guild : guild // ignore: cast_nullable_to_non_nullable +as int?, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _InventoryModel implements InventoryModel { + const _InventoryModel({this.id, this.key, this.createDate, this.modifyDate, this.trash, this.name, this.provinceGovernmentalCarcassesQuantity, this.provinceGovernmentalCarcassesWeight, this.provinceFreeCarcassesQuantity, this.provinceFreeCarcassesWeight, this.receiveGovernmentalCarcassesQuantity, this.receiveGovernmentalCarcassesWeight, this.receiveFreeCarcassesQuantity, this.receiveFreeCarcassesWeight, this.freeBuyingCarcassesQuantity, this.freeBuyingCarcassesWeight, this.totalGovernmentalCarcassesQuantity, this.totalGovernmentalCarcassesWeight, this.totalFreeBarsCarcassesQuantity, this.totalFreeBarsCarcassesWeight, this.weightAverage, this.totalCarcassesQuantity, this.totalCarcassesWeight, this.freezingQuantity, this.freezingWeight, this.lossWeight, this.outProvinceAllocatedQuantity, this.outProvinceAllocatedWeight, this.provinceAllocatedQuantity, this.provinceAllocatedWeight, this.realAllocatedQuantity, this.realAllocatedWeight, this.coldHouseAllocatedWeight, this.posAllocatedWeight, this.segmentationWeight, this.totalRemainQuantity, this.totalRemainWeight, this.freePrice, this.approvedPrice, this.approvedPriceStatus, this.parentProduct, this.killHouse, this.guild}); + factory _InventoryModel.fromJson(Map json) => _$InventoryModelFromJson(json); + +@override final int? id; +@override final String? key; +@override final String? createDate; +@override final String? modifyDate; +@override final bool? trash; +@override final String? name; +@override final int? provinceGovernmentalCarcassesQuantity; +@override final int? provinceGovernmentalCarcassesWeight; +@override final int? provinceFreeCarcassesQuantity; +@override final int? provinceFreeCarcassesWeight; +@override final int? receiveGovernmentalCarcassesQuantity; +@override final int? receiveGovernmentalCarcassesWeight; +@override final int? receiveFreeCarcassesQuantity; +@override final int? receiveFreeCarcassesWeight; +@override final int? freeBuyingCarcassesQuantity; +@override final int? freeBuyingCarcassesWeight; +@override final int? totalGovernmentalCarcassesQuantity; +@override final int? totalGovernmentalCarcassesWeight; +@override final int? totalFreeBarsCarcassesQuantity; +@override final int? totalFreeBarsCarcassesWeight; +@override final double? weightAverage; +@override final int? totalCarcassesQuantity; +@override final int? totalCarcassesWeight; +@override final int? freezingQuantity; +@override final int? freezingWeight; +@override final int? lossWeight; +@override final int? outProvinceAllocatedQuantity; +@override final int? outProvinceAllocatedWeight; +@override final int? provinceAllocatedQuantity; +@override final int? provinceAllocatedWeight; +@override final int? realAllocatedQuantity; +@override final int? realAllocatedWeight; +@override final int? coldHouseAllocatedWeight; +@override final int? posAllocatedWeight; +@override final int? segmentationWeight; +@override final int? totalRemainQuantity; +@override final int? totalRemainWeight; +@override final int? freePrice; +@override final int? approvedPrice; +@override final bool? approvedPriceStatus; +@override final int? parentProduct; +@override final int? killHouse; +@override final int? guild; + +/// Create a copy of InventoryModel +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$InventoryModelCopyWith<_InventoryModel> get copyWith => __$InventoryModelCopyWithImpl<_InventoryModel>(this, _$identity); + +@override +Map toJson() { + return _$InventoryModelToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _InventoryModel&&(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.name, name) || other.name == name)&&(identical(other.provinceGovernmentalCarcassesQuantity, provinceGovernmentalCarcassesQuantity) || other.provinceGovernmentalCarcassesQuantity == provinceGovernmentalCarcassesQuantity)&&(identical(other.provinceGovernmentalCarcassesWeight, provinceGovernmentalCarcassesWeight) || other.provinceGovernmentalCarcassesWeight == provinceGovernmentalCarcassesWeight)&&(identical(other.provinceFreeCarcassesQuantity, provinceFreeCarcassesQuantity) || other.provinceFreeCarcassesQuantity == provinceFreeCarcassesQuantity)&&(identical(other.provinceFreeCarcassesWeight, provinceFreeCarcassesWeight) || other.provinceFreeCarcassesWeight == provinceFreeCarcassesWeight)&&(identical(other.receiveGovernmentalCarcassesQuantity, receiveGovernmentalCarcassesQuantity) || other.receiveGovernmentalCarcassesQuantity == receiveGovernmentalCarcassesQuantity)&&(identical(other.receiveGovernmentalCarcassesWeight, receiveGovernmentalCarcassesWeight) || other.receiveGovernmentalCarcassesWeight == receiveGovernmentalCarcassesWeight)&&(identical(other.receiveFreeCarcassesQuantity, receiveFreeCarcassesQuantity) || other.receiveFreeCarcassesQuantity == receiveFreeCarcassesQuantity)&&(identical(other.receiveFreeCarcassesWeight, receiveFreeCarcassesWeight) || other.receiveFreeCarcassesWeight == receiveFreeCarcassesWeight)&&(identical(other.freeBuyingCarcassesQuantity, freeBuyingCarcassesQuantity) || other.freeBuyingCarcassesQuantity == freeBuyingCarcassesQuantity)&&(identical(other.freeBuyingCarcassesWeight, freeBuyingCarcassesWeight) || other.freeBuyingCarcassesWeight == freeBuyingCarcassesWeight)&&(identical(other.totalGovernmentalCarcassesQuantity, totalGovernmentalCarcassesQuantity) || other.totalGovernmentalCarcassesQuantity == totalGovernmentalCarcassesQuantity)&&(identical(other.totalGovernmentalCarcassesWeight, totalGovernmentalCarcassesWeight) || other.totalGovernmentalCarcassesWeight == totalGovernmentalCarcassesWeight)&&(identical(other.totalFreeBarsCarcassesQuantity, totalFreeBarsCarcassesQuantity) || other.totalFreeBarsCarcassesQuantity == totalFreeBarsCarcassesQuantity)&&(identical(other.totalFreeBarsCarcassesWeight, totalFreeBarsCarcassesWeight) || other.totalFreeBarsCarcassesWeight == totalFreeBarsCarcassesWeight)&&(identical(other.weightAverage, weightAverage) || other.weightAverage == weightAverage)&&(identical(other.totalCarcassesQuantity, totalCarcassesQuantity) || other.totalCarcassesQuantity == totalCarcassesQuantity)&&(identical(other.totalCarcassesWeight, totalCarcassesWeight) || other.totalCarcassesWeight == totalCarcassesWeight)&&(identical(other.freezingQuantity, freezingQuantity) || other.freezingQuantity == freezingQuantity)&&(identical(other.freezingWeight, freezingWeight) || other.freezingWeight == freezingWeight)&&(identical(other.lossWeight, lossWeight) || other.lossWeight == lossWeight)&&(identical(other.outProvinceAllocatedQuantity, outProvinceAllocatedQuantity) || other.outProvinceAllocatedQuantity == outProvinceAllocatedQuantity)&&(identical(other.outProvinceAllocatedWeight, outProvinceAllocatedWeight) || other.outProvinceAllocatedWeight == outProvinceAllocatedWeight)&&(identical(other.provinceAllocatedQuantity, provinceAllocatedQuantity) || other.provinceAllocatedQuantity == provinceAllocatedQuantity)&&(identical(other.provinceAllocatedWeight, provinceAllocatedWeight) || other.provinceAllocatedWeight == provinceAllocatedWeight)&&(identical(other.realAllocatedQuantity, realAllocatedQuantity) || other.realAllocatedQuantity == realAllocatedQuantity)&&(identical(other.realAllocatedWeight, realAllocatedWeight) || other.realAllocatedWeight == realAllocatedWeight)&&(identical(other.coldHouseAllocatedWeight, coldHouseAllocatedWeight) || other.coldHouseAllocatedWeight == coldHouseAllocatedWeight)&&(identical(other.posAllocatedWeight, posAllocatedWeight) || other.posAllocatedWeight == posAllocatedWeight)&&(identical(other.segmentationWeight, segmentationWeight) || other.segmentationWeight == segmentationWeight)&&(identical(other.totalRemainQuantity, totalRemainQuantity) || other.totalRemainQuantity == totalRemainQuantity)&&(identical(other.totalRemainWeight, totalRemainWeight) || other.totalRemainWeight == totalRemainWeight)&&(identical(other.freePrice, freePrice) || other.freePrice == freePrice)&&(identical(other.approvedPrice, approvedPrice) || other.approvedPrice == approvedPrice)&&(identical(other.approvedPriceStatus, approvedPriceStatus) || other.approvedPriceStatus == approvedPriceStatus)&&(identical(other.parentProduct, parentProduct) || other.parentProduct == parentProduct)&&(identical(other.killHouse, killHouse) || other.killHouse == killHouse)&&(identical(other.guild, guild) || other.guild == guild)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,id,key,createDate,modifyDate,trash,name,provinceGovernmentalCarcassesQuantity,provinceGovernmentalCarcassesWeight,provinceFreeCarcassesQuantity,provinceFreeCarcassesWeight,receiveGovernmentalCarcassesQuantity,receiveGovernmentalCarcassesWeight,receiveFreeCarcassesQuantity,receiveFreeCarcassesWeight,freeBuyingCarcassesQuantity,freeBuyingCarcassesWeight,totalGovernmentalCarcassesQuantity,totalGovernmentalCarcassesWeight,totalFreeBarsCarcassesQuantity,totalFreeBarsCarcassesWeight,weightAverage,totalCarcassesQuantity,totalCarcassesWeight,freezingQuantity,freezingWeight,lossWeight,outProvinceAllocatedQuantity,outProvinceAllocatedWeight,provinceAllocatedQuantity,provinceAllocatedWeight,realAllocatedQuantity,realAllocatedWeight,coldHouseAllocatedWeight,posAllocatedWeight,segmentationWeight,totalRemainQuantity,totalRemainWeight,freePrice,approvedPrice,approvedPriceStatus,parentProduct,killHouse,guild]); + +@override +String toString() { + return 'InventoryModel(id: $id, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, name: $name, provinceGovernmentalCarcassesQuantity: $provinceGovernmentalCarcassesQuantity, provinceGovernmentalCarcassesWeight: $provinceGovernmentalCarcassesWeight, provinceFreeCarcassesQuantity: $provinceFreeCarcassesQuantity, provinceFreeCarcassesWeight: $provinceFreeCarcassesWeight, receiveGovernmentalCarcassesQuantity: $receiveGovernmentalCarcassesQuantity, receiveGovernmentalCarcassesWeight: $receiveGovernmentalCarcassesWeight, receiveFreeCarcassesQuantity: $receiveFreeCarcassesQuantity, receiveFreeCarcassesWeight: $receiveFreeCarcassesWeight, freeBuyingCarcassesQuantity: $freeBuyingCarcassesQuantity, freeBuyingCarcassesWeight: $freeBuyingCarcassesWeight, totalGovernmentalCarcassesQuantity: $totalGovernmentalCarcassesQuantity, totalGovernmentalCarcassesWeight: $totalGovernmentalCarcassesWeight, totalFreeBarsCarcassesQuantity: $totalFreeBarsCarcassesQuantity, totalFreeBarsCarcassesWeight: $totalFreeBarsCarcassesWeight, weightAverage: $weightAverage, totalCarcassesQuantity: $totalCarcassesQuantity, totalCarcassesWeight: $totalCarcassesWeight, freezingQuantity: $freezingQuantity, freezingWeight: $freezingWeight, lossWeight: $lossWeight, outProvinceAllocatedQuantity: $outProvinceAllocatedQuantity, outProvinceAllocatedWeight: $outProvinceAllocatedWeight, provinceAllocatedQuantity: $provinceAllocatedQuantity, provinceAllocatedWeight: $provinceAllocatedWeight, realAllocatedQuantity: $realAllocatedQuantity, realAllocatedWeight: $realAllocatedWeight, coldHouseAllocatedWeight: $coldHouseAllocatedWeight, posAllocatedWeight: $posAllocatedWeight, segmentationWeight: $segmentationWeight, totalRemainQuantity: $totalRemainQuantity, totalRemainWeight: $totalRemainWeight, freePrice: $freePrice, approvedPrice: $approvedPrice, approvedPriceStatus: $approvedPriceStatus, parentProduct: $parentProduct, killHouse: $killHouse, guild: $guild)'; +} + + +} + +/// @nodoc +abstract mixin class _$InventoryModelCopyWith<$Res> implements $InventoryModelCopyWith<$Res> { + factory _$InventoryModelCopyWith(_InventoryModel value, $Res Function(_InventoryModel) _then) = __$InventoryModelCopyWithImpl; +@override @useResult +$Res call({ + int? id, String? key, String? createDate, String? modifyDate, bool? trash, String? name, int? provinceGovernmentalCarcassesQuantity, int? provinceGovernmentalCarcassesWeight, int? provinceFreeCarcassesQuantity, int? provinceFreeCarcassesWeight, int? receiveGovernmentalCarcassesQuantity, int? receiveGovernmentalCarcassesWeight, int? receiveFreeCarcassesQuantity, int? receiveFreeCarcassesWeight, int? freeBuyingCarcassesQuantity, int? freeBuyingCarcassesWeight, int? totalGovernmentalCarcassesQuantity, int? totalGovernmentalCarcassesWeight, int? totalFreeBarsCarcassesQuantity, int? totalFreeBarsCarcassesWeight, double? weightAverage, int? totalCarcassesQuantity, int? totalCarcassesWeight, int? freezingQuantity, int? freezingWeight, int? lossWeight, int? outProvinceAllocatedQuantity, int? outProvinceAllocatedWeight, int? provinceAllocatedQuantity, int? provinceAllocatedWeight, int? realAllocatedQuantity, int? realAllocatedWeight, int? coldHouseAllocatedWeight, int? posAllocatedWeight, int? segmentationWeight, int? totalRemainQuantity, int? totalRemainWeight, int? freePrice, int? approvedPrice, bool? approvedPriceStatus, int? parentProduct, int? killHouse, int? guild +}); + + + + +} +/// @nodoc +class __$InventoryModelCopyWithImpl<$Res> + implements _$InventoryModelCopyWith<$Res> { + __$InventoryModelCopyWithImpl(this._self, this._then); + + final _InventoryModel _self; + final $Res Function(_InventoryModel) _then; + +/// Create a copy of InventoryModel +/// 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? name = freezed,Object? provinceGovernmentalCarcassesQuantity = freezed,Object? provinceGovernmentalCarcassesWeight = freezed,Object? provinceFreeCarcassesQuantity = freezed,Object? provinceFreeCarcassesWeight = freezed,Object? receiveGovernmentalCarcassesQuantity = freezed,Object? receiveGovernmentalCarcassesWeight = freezed,Object? receiveFreeCarcassesQuantity = freezed,Object? receiveFreeCarcassesWeight = freezed,Object? freeBuyingCarcassesQuantity = freezed,Object? freeBuyingCarcassesWeight = freezed,Object? totalGovernmentalCarcassesQuantity = freezed,Object? totalGovernmentalCarcassesWeight = freezed,Object? totalFreeBarsCarcassesQuantity = freezed,Object? totalFreeBarsCarcassesWeight = freezed,Object? weightAverage = freezed,Object? totalCarcassesQuantity = freezed,Object? totalCarcassesWeight = freezed,Object? freezingQuantity = freezed,Object? freezingWeight = freezed,Object? lossWeight = freezed,Object? outProvinceAllocatedQuantity = freezed,Object? outProvinceAllocatedWeight = freezed,Object? provinceAllocatedQuantity = freezed,Object? provinceAllocatedWeight = freezed,Object? realAllocatedQuantity = freezed,Object? realAllocatedWeight = freezed,Object? coldHouseAllocatedWeight = freezed,Object? posAllocatedWeight = freezed,Object? segmentationWeight = freezed,Object? totalRemainQuantity = freezed,Object? totalRemainWeight = freezed,Object? freePrice = freezed,Object? approvedPrice = freezed,Object? approvedPriceStatus = freezed,Object? parentProduct = freezed,Object? killHouse = freezed,Object? guild = freezed,}) { + return _then(_InventoryModel( +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?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?,provinceGovernmentalCarcassesQuantity: freezed == provinceGovernmentalCarcassesQuantity ? _self.provinceGovernmentalCarcassesQuantity : provinceGovernmentalCarcassesQuantity // ignore: cast_nullable_to_non_nullable +as int?,provinceGovernmentalCarcassesWeight: freezed == provinceGovernmentalCarcassesWeight ? _self.provinceGovernmentalCarcassesWeight : provinceGovernmentalCarcassesWeight // ignore: cast_nullable_to_non_nullable +as int?,provinceFreeCarcassesQuantity: freezed == provinceFreeCarcassesQuantity ? _self.provinceFreeCarcassesQuantity : provinceFreeCarcassesQuantity // ignore: cast_nullable_to_non_nullable +as int?,provinceFreeCarcassesWeight: freezed == provinceFreeCarcassesWeight ? _self.provinceFreeCarcassesWeight : provinceFreeCarcassesWeight // ignore: cast_nullable_to_non_nullable +as int?,receiveGovernmentalCarcassesQuantity: freezed == receiveGovernmentalCarcassesQuantity ? _self.receiveGovernmentalCarcassesQuantity : receiveGovernmentalCarcassesQuantity // ignore: cast_nullable_to_non_nullable +as int?,receiveGovernmentalCarcassesWeight: freezed == receiveGovernmentalCarcassesWeight ? _self.receiveGovernmentalCarcassesWeight : receiveGovernmentalCarcassesWeight // ignore: cast_nullable_to_non_nullable +as int?,receiveFreeCarcassesQuantity: freezed == receiveFreeCarcassesQuantity ? _self.receiveFreeCarcassesQuantity : receiveFreeCarcassesQuantity // ignore: cast_nullable_to_non_nullable +as int?,receiveFreeCarcassesWeight: freezed == receiveFreeCarcassesWeight ? _self.receiveFreeCarcassesWeight : receiveFreeCarcassesWeight // ignore: cast_nullable_to_non_nullable +as int?,freeBuyingCarcassesQuantity: freezed == freeBuyingCarcassesQuantity ? _self.freeBuyingCarcassesQuantity : freeBuyingCarcassesQuantity // ignore: cast_nullable_to_non_nullable +as int?,freeBuyingCarcassesWeight: freezed == freeBuyingCarcassesWeight ? _self.freeBuyingCarcassesWeight : freeBuyingCarcassesWeight // ignore: cast_nullable_to_non_nullable +as int?,totalGovernmentalCarcassesQuantity: freezed == totalGovernmentalCarcassesQuantity ? _self.totalGovernmentalCarcassesQuantity : totalGovernmentalCarcassesQuantity // ignore: cast_nullable_to_non_nullable +as int?,totalGovernmentalCarcassesWeight: freezed == totalGovernmentalCarcassesWeight ? _self.totalGovernmentalCarcassesWeight : totalGovernmentalCarcassesWeight // ignore: cast_nullable_to_non_nullable +as int?,totalFreeBarsCarcassesQuantity: freezed == totalFreeBarsCarcassesQuantity ? _self.totalFreeBarsCarcassesQuantity : totalFreeBarsCarcassesQuantity // ignore: cast_nullable_to_non_nullable +as int?,totalFreeBarsCarcassesWeight: freezed == totalFreeBarsCarcassesWeight ? _self.totalFreeBarsCarcassesWeight : totalFreeBarsCarcassesWeight // ignore: cast_nullable_to_non_nullable +as int?,weightAverage: freezed == weightAverage ? _self.weightAverage : weightAverage // ignore: cast_nullable_to_non_nullable +as double?,totalCarcassesQuantity: freezed == totalCarcassesQuantity ? _self.totalCarcassesQuantity : totalCarcassesQuantity // ignore: cast_nullable_to_non_nullable +as int?,totalCarcassesWeight: freezed == totalCarcassesWeight ? _self.totalCarcassesWeight : totalCarcassesWeight // ignore: cast_nullable_to_non_nullable +as int?,freezingQuantity: freezed == freezingQuantity ? _self.freezingQuantity : freezingQuantity // ignore: cast_nullable_to_non_nullable +as int?,freezingWeight: freezed == freezingWeight ? _self.freezingWeight : freezingWeight // ignore: cast_nullable_to_non_nullable +as int?,lossWeight: freezed == lossWeight ? _self.lossWeight : lossWeight // ignore: cast_nullable_to_non_nullable +as int?,outProvinceAllocatedQuantity: freezed == outProvinceAllocatedQuantity ? _self.outProvinceAllocatedQuantity : outProvinceAllocatedQuantity // ignore: cast_nullable_to_non_nullable +as int?,outProvinceAllocatedWeight: freezed == outProvinceAllocatedWeight ? _self.outProvinceAllocatedWeight : outProvinceAllocatedWeight // ignore: cast_nullable_to_non_nullable +as int?,provinceAllocatedQuantity: freezed == provinceAllocatedQuantity ? _self.provinceAllocatedQuantity : provinceAllocatedQuantity // ignore: cast_nullable_to_non_nullable +as int?,provinceAllocatedWeight: freezed == provinceAllocatedWeight ? _self.provinceAllocatedWeight : provinceAllocatedWeight // ignore: cast_nullable_to_non_nullable +as int?,realAllocatedQuantity: freezed == realAllocatedQuantity ? _self.realAllocatedQuantity : realAllocatedQuantity // ignore: cast_nullable_to_non_nullable +as int?,realAllocatedWeight: freezed == realAllocatedWeight ? _self.realAllocatedWeight : realAllocatedWeight // ignore: cast_nullable_to_non_nullable +as int?,coldHouseAllocatedWeight: freezed == coldHouseAllocatedWeight ? _self.coldHouseAllocatedWeight : coldHouseAllocatedWeight // ignore: cast_nullable_to_non_nullable +as int?,posAllocatedWeight: freezed == posAllocatedWeight ? _self.posAllocatedWeight : posAllocatedWeight // ignore: cast_nullable_to_non_nullable +as int?,segmentationWeight: freezed == segmentationWeight ? _self.segmentationWeight : segmentationWeight // ignore: cast_nullable_to_non_nullable +as int?,totalRemainQuantity: freezed == totalRemainQuantity ? _self.totalRemainQuantity : totalRemainQuantity // ignore: cast_nullable_to_non_nullable +as int?,totalRemainWeight: freezed == totalRemainWeight ? _self.totalRemainWeight : totalRemainWeight // ignore: cast_nullable_to_non_nullable +as int?,freePrice: freezed == freePrice ? _self.freePrice : freePrice // ignore: cast_nullable_to_non_nullable +as int?,approvedPrice: freezed == approvedPrice ? _self.approvedPrice : approvedPrice // ignore: cast_nullable_to_non_nullable +as int?,approvedPriceStatus: freezed == approvedPriceStatus ? _self.approvedPriceStatus : approvedPriceStatus // ignore: cast_nullable_to_non_nullable +as bool?,parentProduct: freezed == parentProduct ? _self.parentProduct : parentProduct // ignore: cast_nullable_to_non_nullable +as int?,killHouse: freezed == killHouse ? _self.killHouse : killHouse // ignore: cast_nullable_to_non_nullable +as int?,guild: freezed == guild ? _self.guild : guild // ignore: cast_nullable_to_non_nullable +as int?, + )); +} + + +} + +// dart format on diff --git a/packages/chicken/lib/data/models/response/inventory/inventory_model.g.dart b/packages/chicken/lib/data/models/response/inventory/inventory_model.g.dart new file mode 100644 index 0000000..6bf5ba2 --- /dev/null +++ b/packages/chicken/lib/data/models/response/inventory/inventory_model.g.dart @@ -0,0 +1,127 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'inventory_model.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +_InventoryModel _$InventoryModelFromJson( + Map json, +) => _InventoryModel( + 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?, + name: json['name'] as String?, + provinceGovernmentalCarcassesQuantity: + (json['province_governmental_carcasses_quantity'] as num?)?.toInt(), + provinceGovernmentalCarcassesWeight: + (json['province_governmental_carcasses_weight'] as num?)?.toInt(), + provinceFreeCarcassesQuantity: + (json['province_free_carcasses_quantity'] as num?)?.toInt(), + provinceFreeCarcassesWeight: (json['province_free_carcasses_weight'] as num?) + ?.toInt(), + receiveGovernmentalCarcassesQuantity: + (json['receive_governmental_carcasses_quantity'] as num?)?.toInt(), + receiveGovernmentalCarcassesWeight: + (json['receive_governmental_carcasses_weight'] as num?)?.toInt(), + receiveFreeCarcassesQuantity: + (json['receive_free_carcasses_quantity'] as num?)?.toInt(), + receiveFreeCarcassesWeight: (json['receive_free_carcasses_weight'] as num?) + ?.toInt(), + freeBuyingCarcassesQuantity: (json['free_buying_carcasses_quantity'] as num?) + ?.toInt(), + freeBuyingCarcassesWeight: (json['free_buying_carcasses_weight'] as num?) + ?.toInt(), + totalGovernmentalCarcassesQuantity: + (json['total_governmental_carcasses_quantity'] as num?)?.toInt(), + totalGovernmentalCarcassesWeight: + (json['total_governmental_carcasses_weight'] as num?)?.toInt(), + totalFreeBarsCarcassesQuantity: + (json['total_free_bars_carcasses_quantity'] as num?)?.toInt(), + totalFreeBarsCarcassesWeight: + (json['total_free_bars_carcasses_weight'] as num?)?.toInt(), + weightAverage: (json['weight_average'] as num?)?.toDouble(), + totalCarcassesQuantity: (json['total_carcasses_quantity'] as num?)?.toInt(), + totalCarcassesWeight: (json['total_carcasses_weight'] as num?)?.toInt(), + freezingQuantity: (json['freezing_quantity'] as num?)?.toInt(), + freezingWeight: (json['freezing_weight'] as num?)?.toInt(), + lossWeight: (json['loss_weight'] as num?)?.toInt(), + outProvinceAllocatedQuantity: + (json['out_province_allocated_quantity'] as num?)?.toInt(), + outProvinceAllocatedWeight: (json['out_province_allocated_weight'] as num?) + ?.toInt(), + provinceAllocatedQuantity: (json['province_allocated_quantity'] as num?) + ?.toInt(), + provinceAllocatedWeight: (json['province_allocated_weight'] as num?)?.toInt(), + realAllocatedQuantity: (json['real_allocated_quantity'] as num?)?.toInt(), + realAllocatedWeight: (json['real_allocated_weight'] as num?)?.toInt(), + coldHouseAllocatedWeight: (json['cold_house_allocated_weight'] as num?) + ?.toInt(), + posAllocatedWeight: (json['pos_allocated_weight'] as num?)?.toInt(), + segmentationWeight: (json['segmentation_weight'] as num?)?.toInt(), + totalRemainQuantity: (json['total_remain_quantity'] as num?)?.toInt(), + totalRemainWeight: (json['total_remain_weight'] as num?)?.toInt(), + freePrice: (json['free_price'] as num?)?.toInt(), + approvedPrice: (json['approved_price'] as num?)?.toInt(), + approvedPriceStatus: json['approved_price_status'] as bool?, + parentProduct: (json['parent_product'] as num?)?.toInt(), + killHouse: (json['kill_house'] as num?)?.toInt(), + guild: (json['guild'] as num?)?.toInt(), +); + +Map _$InventoryModelToJson( + _InventoryModel instance, +) => { + 'id': instance.id, + 'key': instance.key, + 'create_date': instance.createDate, + 'modify_date': instance.modifyDate, + 'trash': instance.trash, + 'name': instance.name, + 'province_governmental_carcasses_quantity': + instance.provinceGovernmentalCarcassesQuantity, + 'province_governmental_carcasses_weight': + instance.provinceGovernmentalCarcassesWeight, + 'province_free_carcasses_quantity': instance.provinceFreeCarcassesQuantity, + 'province_free_carcasses_weight': instance.provinceFreeCarcassesWeight, + 'receive_governmental_carcasses_quantity': + instance.receiveGovernmentalCarcassesQuantity, + 'receive_governmental_carcasses_weight': + instance.receiveGovernmentalCarcassesWeight, + 'receive_free_carcasses_quantity': instance.receiveFreeCarcassesQuantity, + 'receive_free_carcasses_weight': instance.receiveFreeCarcassesWeight, + 'free_buying_carcasses_quantity': instance.freeBuyingCarcassesQuantity, + 'free_buying_carcasses_weight': instance.freeBuyingCarcassesWeight, + 'total_governmental_carcasses_quantity': + instance.totalGovernmentalCarcassesQuantity, + 'total_governmental_carcasses_weight': + instance.totalGovernmentalCarcassesWeight, + 'total_free_bars_carcasses_quantity': instance.totalFreeBarsCarcassesQuantity, + 'total_free_bars_carcasses_weight': instance.totalFreeBarsCarcassesWeight, + 'weight_average': instance.weightAverage, + 'total_carcasses_quantity': instance.totalCarcassesQuantity, + 'total_carcasses_weight': instance.totalCarcassesWeight, + 'freezing_quantity': instance.freezingQuantity, + 'freezing_weight': instance.freezingWeight, + 'loss_weight': instance.lossWeight, + 'out_province_allocated_quantity': instance.outProvinceAllocatedQuantity, + 'out_province_allocated_weight': instance.outProvinceAllocatedWeight, + 'province_allocated_quantity': instance.provinceAllocatedQuantity, + 'province_allocated_weight': instance.provinceAllocatedWeight, + 'real_allocated_quantity': instance.realAllocatedQuantity, + 'real_allocated_weight': instance.realAllocatedWeight, + 'cold_house_allocated_weight': instance.coldHouseAllocatedWeight, + 'pos_allocated_weight': instance.posAllocatedWeight, + 'segmentation_weight': instance.segmentationWeight, + 'total_remain_quantity': instance.totalRemainQuantity, + 'total_remain_weight': instance.totalRemainWeight, + 'free_price': instance.freePrice, + 'approved_price': instance.approvedPrice, + 'approved_price_status': instance.approvedPriceStatus, + 'parent_product': instance.parentProduct, + 'kill_house': instance.killHouse, + 'guild': instance.guild, +}; diff --git a/packages/chicken/lib/data/models/response/kill_house_distribution_info/kill_house_distribution_info.dart b/packages/chicken/lib/data/models/response/kill_house_distribution_info/kill_house_distribution_info.dart new file mode 100644 index 0000000..4a0c85c --- /dev/null +++ b/packages/chicken/lib/data/models/response/kill_house_distribution_info/kill_house_distribution_info.dart @@ -0,0 +1,15 @@ +import 'package:freezed_annotation/freezed_annotation.dart'; + +part 'kill_house_distribution_info.freezed.dart'; +part 'kill_house_distribution_info.g.dart'; + +@freezed +abstract class KillHouseDistributionInfo with _$KillHouseDistributionInfo { + const factory KillHouseDistributionInfo({ + double? stewardAllocationsWeight, + double? freeSalesWeight, + }) = _KillHouseDistributionInfo; + + factory KillHouseDistributionInfo.fromJson(Map json) => + _$KillHouseDistributionInfoFromJson(json); +} diff --git a/packages/chicken/lib/data/models/response/kill_house_distribution_info/kill_house_distribution_info.freezed.dart b/packages/chicken/lib/data/models/response/kill_house_distribution_info/kill_house_distribution_info.freezed.dart new file mode 100644 index 0000000..cc493ee --- /dev/null +++ b/packages/chicken/lib/data/models/response/kill_house_distribution_info/kill_house_distribution_info.freezed.dart @@ -0,0 +1,151 @@ +// dart format width=80 +// coverage:ignore-file +// GENERATED CODE - DO NOT MODIFY BY HAND +// 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_distribution_info.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; + +/// @nodoc +mixin _$KillHouseDistributionInfo { + + double? get stewardAllocationsWeight; double? get freeSalesWeight; +/// Create a copy of KillHouseDistributionInfo +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$KillHouseDistributionInfoCopyWith get copyWith => _$KillHouseDistributionInfoCopyWithImpl(this as KillHouseDistributionInfo, _$identity); + + /// Serializes this KillHouseDistributionInfo to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is KillHouseDistributionInfo&&(identical(other.stewardAllocationsWeight, stewardAllocationsWeight) || other.stewardAllocationsWeight == stewardAllocationsWeight)&&(identical(other.freeSalesWeight, freeSalesWeight) || other.freeSalesWeight == freeSalesWeight)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,stewardAllocationsWeight,freeSalesWeight); + +@override +String toString() { + return 'KillHouseDistributionInfo(stewardAllocationsWeight: $stewardAllocationsWeight, freeSalesWeight: $freeSalesWeight)'; +} + + +} + +/// @nodoc +abstract mixin class $KillHouseDistributionInfoCopyWith<$Res> { + factory $KillHouseDistributionInfoCopyWith(KillHouseDistributionInfo value, $Res Function(KillHouseDistributionInfo) _then) = _$KillHouseDistributionInfoCopyWithImpl; +@useResult +$Res call({ + double? stewardAllocationsWeight, double? freeSalesWeight +}); + + + + +} +/// @nodoc +class _$KillHouseDistributionInfoCopyWithImpl<$Res> + implements $KillHouseDistributionInfoCopyWith<$Res> { + _$KillHouseDistributionInfoCopyWithImpl(this._self, this._then); + + final KillHouseDistributionInfo _self; + final $Res Function(KillHouseDistributionInfo) _then; + +/// Create a copy of KillHouseDistributionInfo +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? stewardAllocationsWeight = freezed,Object? freeSalesWeight = freezed,}) { + return _then(_self.copyWith( +stewardAllocationsWeight: freezed == stewardAllocationsWeight ? _self.stewardAllocationsWeight : stewardAllocationsWeight // ignore: cast_nullable_to_non_nullable +as double?,freeSalesWeight: freezed == freeSalesWeight ? _self.freeSalesWeight : freeSalesWeight // ignore: cast_nullable_to_non_nullable +as double?, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _KillHouseDistributionInfo implements KillHouseDistributionInfo { + const _KillHouseDistributionInfo({this.stewardAllocationsWeight, this.freeSalesWeight}); + factory _KillHouseDistributionInfo.fromJson(Map json) => _$KillHouseDistributionInfoFromJson(json); + +@override final double? stewardAllocationsWeight; +@override final double? freeSalesWeight; + +/// Create a copy of KillHouseDistributionInfo +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$KillHouseDistributionInfoCopyWith<_KillHouseDistributionInfo> get copyWith => __$KillHouseDistributionInfoCopyWithImpl<_KillHouseDistributionInfo>(this, _$identity); + +@override +Map toJson() { + return _$KillHouseDistributionInfoToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _KillHouseDistributionInfo&&(identical(other.stewardAllocationsWeight, stewardAllocationsWeight) || other.stewardAllocationsWeight == stewardAllocationsWeight)&&(identical(other.freeSalesWeight, freeSalesWeight) || other.freeSalesWeight == freeSalesWeight)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,stewardAllocationsWeight,freeSalesWeight); + +@override +String toString() { + return 'KillHouseDistributionInfo(stewardAllocationsWeight: $stewardAllocationsWeight, freeSalesWeight: $freeSalesWeight)'; +} + + +} + +/// @nodoc +abstract mixin class _$KillHouseDistributionInfoCopyWith<$Res> implements $KillHouseDistributionInfoCopyWith<$Res> { + factory _$KillHouseDistributionInfoCopyWith(_KillHouseDistributionInfo value, $Res Function(_KillHouseDistributionInfo) _then) = __$KillHouseDistributionInfoCopyWithImpl; +@override @useResult +$Res call({ + double? stewardAllocationsWeight, double? freeSalesWeight +}); + + + + +} +/// @nodoc +class __$KillHouseDistributionInfoCopyWithImpl<$Res> + implements _$KillHouseDistributionInfoCopyWith<$Res> { + __$KillHouseDistributionInfoCopyWithImpl(this._self, this._then); + + final _KillHouseDistributionInfo _self; + final $Res Function(_KillHouseDistributionInfo) _then; + +/// Create a copy of KillHouseDistributionInfo +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? stewardAllocationsWeight = freezed,Object? freeSalesWeight = freezed,}) { + return _then(_KillHouseDistributionInfo( +stewardAllocationsWeight: freezed == stewardAllocationsWeight ? _self.stewardAllocationsWeight : stewardAllocationsWeight // ignore: cast_nullable_to_non_nullable +as double?,freeSalesWeight: freezed == freeSalesWeight ? _self.freeSalesWeight : freeSalesWeight // ignore: cast_nullable_to_non_nullable +as double?, + )); +} + + +} + +// dart format on diff --git a/packages/chicken/lib/data/models/response/kill_house_distribution_info/kill_house_distribution_info.g.dart b/packages/chicken/lib/data/models/response/kill_house_distribution_info/kill_house_distribution_info.g.dart new file mode 100644 index 0000000..f9c0d1a --- /dev/null +++ b/packages/chicken/lib/data/models/response/kill_house_distribution_info/kill_house_distribution_info.g.dart @@ -0,0 +1,22 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'kill_house_distribution_info.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +_KillHouseDistributionInfo _$KillHouseDistributionInfoFromJson( + Map json, +) => _KillHouseDistributionInfo( + stewardAllocationsWeight: (json['steward_allocations_weight'] as num?) + ?.toDouble(), + freeSalesWeight: (json['free_sales_weight'] as num?)?.toDouble(), +); + +Map _$KillHouseDistributionInfoToJson( + _KillHouseDistributionInfo instance, +) => { + 'steward_allocations_weight': instance.stewardAllocationsWeight, + 'free_sales_weight': instance.freeSalesWeight, +}; diff --git a/packages/chicken/lib/data/models/response/roles_products/roles_products.dart b/packages/chicken/lib/data/models/response/roles_products/roles_products.dart new file mode 100644 index 0000000..4be9533 --- /dev/null +++ b/packages/chicken/lib/data/models/response/roles_products/roles_products.dart @@ -0,0 +1,67 @@ + +import 'package:freezed_annotation/freezed_annotation.dart'; + +part 'roles_products.freezed.dart'; +part 'roles_products.g.dart'; + +@freezed +abstract class RolesProductsModel with _$RolesProductsModel { +factory RolesProductsModel({ +required List products, +}) = _RolesProductsModel; + +factory RolesProductsModel.fromJson(Map json) => _$RolesProductsModelFromJson(json); +} + +@freezed +abstract class ProductModel with _$ProductModel { +factory ProductModel({ +int? id, +String? key, +String? create_date, // Changed from createDate, removed @JsonKey +String? modify_date, // Changed from modifyDate, removed @JsonKey +bool? trash, +String? name, + int? provinceGovernmentalCarcassesQuantity, + int? provinceGovernmentalCarcassesWeight, +int? provinceFreeCarcassesQuantity, +int? provinceFreeCarcassesWeight, +int? receiveGovernmentalCarcassesQuantity, +int? receiveGovernmentalCarcassesWeight, + int? receiveFreeCarcassesQuantity, +int? receiveFreeCarcassesWeight, + int? freeBuyingCarcassesQuantity, +int? freeBuyingCarcassesWeight, + int? totalGovernmentalCarcassesQuantity, +int? totalGovernmentalCarcassesWeight, +int? totalFreeBarsCarcassesQuantity, + int? totalFreeBarsCarcassesWeight, + double? weightAverage, +int? totalCarcassesQuantity, +int? totalCarcassesWeight, + int? freezingQuantity, +int? freezingWeight, +int? lossWeight, + int? outProvinceAllocatedQuantity, + int? outProvinceAllocatedWeight, +int? provinceAllocatedQuantity, +int? provinceAllocatedWeight, + int? realAllocatedQuantity, +int? realAllocatedWeight, +int? coldHouseAllocatedWeight, + int? posAllocatedWeight, +int? segmentationWeight, +int? totalRemainQuantity, + int? totalRemainWeight, + int? freePrice, +int? approvedPrice, + bool? approvedPriceStatus, + dynamic createdBy, + dynamic modifiedBy, +int? parentProduct, + dynamic killHouse, +int? guild, +}) = _ProductModel; + +factory ProductModel.fromJson(Map json) => _$ProductModelFromJson(json); +} \ No newline at end of file diff --git a/packages/chicken/lib/data/models/response/roles_products/roles_products.freezed.dart b/packages/chicken/lib/data/models/response/roles_products/roles_products.freezed.dart new file mode 100644 index 0000000..308ce7d --- /dev/null +++ b/packages/chicken/lib/data/models/response/roles_products/roles_products.freezed.dart @@ -0,0 +1,423 @@ +// dart format width=80 +// coverage:ignore-file +// GENERATED CODE - DO NOT MODIFY BY HAND +// 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 'roles_products.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; + +/// @nodoc +mixin _$RolesProductsModel { + + List get products; +/// Create a copy of RolesProductsModel +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$RolesProductsModelCopyWith get copyWith => _$RolesProductsModelCopyWithImpl(this as RolesProductsModel, _$identity); + + /// Serializes this RolesProductsModel to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is RolesProductsModel&&const DeepCollectionEquality().equals(other.products, products)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,const DeepCollectionEquality().hash(products)); + +@override +String toString() { + return 'RolesProductsModel(products: $products)'; +} + + +} + +/// @nodoc +abstract mixin class $RolesProductsModelCopyWith<$Res> { + factory $RolesProductsModelCopyWith(RolesProductsModel value, $Res Function(RolesProductsModel) _then) = _$RolesProductsModelCopyWithImpl; +@useResult +$Res call({ + List products +}); + + + + +} +/// @nodoc +class _$RolesProductsModelCopyWithImpl<$Res> + implements $RolesProductsModelCopyWith<$Res> { + _$RolesProductsModelCopyWithImpl(this._self, this._then); + + final RolesProductsModel _self; + final $Res Function(RolesProductsModel) _then; + +/// Create a copy of RolesProductsModel +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? products = null,}) { + return _then(_self.copyWith( +products: null == products ? _self.products : products // ignore: cast_nullable_to_non_nullable +as List, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _RolesProductsModel implements RolesProductsModel { + _RolesProductsModel({required final List products}): _products = products; + factory _RolesProductsModel.fromJson(Map json) => _$RolesProductsModelFromJson(json); + + final List _products; +@override List get products { + if (_products is EqualUnmodifiableListView) return _products; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(_products); +} + + +/// Create a copy of RolesProductsModel +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$RolesProductsModelCopyWith<_RolesProductsModel> get copyWith => __$RolesProductsModelCopyWithImpl<_RolesProductsModel>(this, _$identity); + +@override +Map toJson() { + return _$RolesProductsModelToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _RolesProductsModel&&const DeepCollectionEquality().equals(other._products, _products)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,const DeepCollectionEquality().hash(_products)); + +@override +String toString() { + return 'RolesProductsModel(products: $products)'; +} + + +} + +/// @nodoc +abstract mixin class _$RolesProductsModelCopyWith<$Res> implements $RolesProductsModelCopyWith<$Res> { + factory _$RolesProductsModelCopyWith(_RolesProductsModel value, $Res Function(_RolesProductsModel) _then) = __$RolesProductsModelCopyWithImpl; +@override @useResult +$Res call({ + List products +}); + + + + +} +/// @nodoc +class __$RolesProductsModelCopyWithImpl<$Res> + implements _$RolesProductsModelCopyWith<$Res> { + __$RolesProductsModelCopyWithImpl(this._self, this._then); + + final _RolesProductsModel _self; + final $Res Function(_RolesProductsModel) _then; + +/// Create a copy of RolesProductsModel +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? products = null,}) { + return _then(_RolesProductsModel( +products: null == products ? _self._products : products // ignore: cast_nullable_to_non_nullable +as List, + )); +} + + +} + + +/// @nodoc +mixin _$ProductModel { + + int? get id; String? get key; String? get create_date;// Changed from createDate, removed @JsonKey + String? get modify_date;// Changed from modifyDate, removed @JsonKey + bool? get trash; String? get name; int? get provinceGovernmentalCarcassesQuantity; int? get provinceGovernmentalCarcassesWeight; int? get provinceFreeCarcassesQuantity; int? get provinceFreeCarcassesWeight; int? get receiveGovernmentalCarcassesQuantity; int? get receiveGovernmentalCarcassesWeight; int? get receiveFreeCarcassesQuantity; int? get receiveFreeCarcassesWeight; int? get freeBuyingCarcassesQuantity; int? get freeBuyingCarcassesWeight; int? get totalGovernmentalCarcassesQuantity; int? get totalGovernmentalCarcassesWeight; int? get totalFreeBarsCarcassesQuantity; int? get totalFreeBarsCarcassesWeight; double? get weightAverage; int? get totalCarcassesQuantity; int? get totalCarcassesWeight; int? get freezingQuantity; int? get freezingWeight; int? get lossWeight; int? get outProvinceAllocatedQuantity; int? get outProvinceAllocatedWeight; int? get provinceAllocatedQuantity; int? get provinceAllocatedWeight; int? get realAllocatedQuantity; int? get realAllocatedWeight; int? get coldHouseAllocatedWeight; int? get posAllocatedWeight; int? get segmentationWeight; int? get totalRemainQuantity; int? get totalRemainWeight; int? get freePrice; int? get approvedPrice; bool? get approvedPriceStatus; dynamic get createdBy; dynamic get modifiedBy; int? get parentProduct; dynamic get killHouse; int? get guild; +/// Create a copy of ProductModel +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ProductModelCopyWith get copyWith => _$ProductModelCopyWithImpl(this as ProductModel, _$identity); + + /// Serializes this ProductModel to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is ProductModel&&(identical(other.id, id) || other.id == id)&&(identical(other.key, key) || other.key == key)&&(identical(other.create_date, create_date) || other.create_date == create_date)&&(identical(other.modify_date, modify_date) || other.modify_date == modify_date)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.name, name) || other.name == name)&&(identical(other.provinceGovernmentalCarcassesQuantity, provinceGovernmentalCarcassesQuantity) || other.provinceGovernmentalCarcassesQuantity == provinceGovernmentalCarcassesQuantity)&&(identical(other.provinceGovernmentalCarcassesWeight, provinceGovernmentalCarcassesWeight) || other.provinceGovernmentalCarcassesWeight == provinceGovernmentalCarcassesWeight)&&(identical(other.provinceFreeCarcassesQuantity, provinceFreeCarcassesQuantity) || other.provinceFreeCarcassesQuantity == provinceFreeCarcassesQuantity)&&(identical(other.provinceFreeCarcassesWeight, provinceFreeCarcassesWeight) || other.provinceFreeCarcassesWeight == provinceFreeCarcassesWeight)&&(identical(other.receiveGovernmentalCarcassesQuantity, receiveGovernmentalCarcassesQuantity) || other.receiveGovernmentalCarcassesQuantity == receiveGovernmentalCarcassesQuantity)&&(identical(other.receiveGovernmentalCarcassesWeight, receiveGovernmentalCarcassesWeight) || other.receiveGovernmentalCarcassesWeight == receiveGovernmentalCarcassesWeight)&&(identical(other.receiveFreeCarcassesQuantity, receiveFreeCarcassesQuantity) || other.receiveFreeCarcassesQuantity == receiveFreeCarcassesQuantity)&&(identical(other.receiveFreeCarcassesWeight, receiveFreeCarcassesWeight) || other.receiveFreeCarcassesWeight == receiveFreeCarcassesWeight)&&(identical(other.freeBuyingCarcassesQuantity, freeBuyingCarcassesQuantity) || other.freeBuyingCarcassesQuantity == freeBuyingCarcassesQuantity)&&(identical(other.freeBuyingCarcassesWeight, freeBuyingCarcassesWeight) || other.freeBuyingCarcassesWeight == freeBuyingCarcassesWeight)&&(identical(other.totalGovernmentalCarcassesQuantity, totalGovernmentalCarcassesQuantity) || other.totalGovernmentalCarcassesQuantity == totalGovernmentalCarcassesQuantity)&&(identical(other.totalGovernmentalCarcassesWeight, totalGovernmentalCarcassesWeight) || other.totalGovernmentalCarcassesWeight == totalGovernmentalCarcassesWeight)&&(identical(other.totalFreeBarsCarcassesQuantity, totalFreeBarsCarcassesQuantity) || other.totalFreeBarsCarcassesQuantity == totalFreeBarsCarcassesQuantity)&&(identical(other.totalFreeBarsCarcassesWeight, totalFreeBarsCarcassesWeight) || other.totalFreeBarsCarcassesWeight == totalFreeBarsCarcassesWeight)&&(identical(other.weightAverage, weightAverage) || other.weightAverage == weightAverage)&&(identical(other.totalCarcassesQuantity, totalCarcassesQuantity) || other.totalCarcassesQuantity == totalCarcassesQuantity)&&(identical(other.totalCarcassesWeight, totalCarcassesWeight) || other.totalCarcassesWeight == totalCarcassesWeight)&&(identical(other.freezingQuantity, freezingQuantity) || other.freezingQuantity == freezingQuantity)&&(identical(other.freezingWeight, freezingWeight) || other.freezingWeight == freezingWeight)&&(identical(other.lossWeight, lossWeight) || other.lossWeight == lossWeight)&&(identical(other.outProvinceAllocatedQuantity, outProvinceAllocatedQuantity) || other.outProvinceAllocatedQuantity == outProvinceAllocatedQuantity)&&(identical(other.outProvinceAllocatedWeight, outProvinceAllocatedWeight) || other.outProvinceAllocatedWeight == outProvinceAllocatedWeight)&&(identical(other.provinceAllocatedQuantity, provinceAllocatedQuantity) || other.provinceAllocatedQuantity == provinceAllocatedQuantity)&&(identical(other.provinceAllocatedWeight, provinceAllocatedWeight) || other.provinceAllocatedWeight == provinceAllocatedWeight)&&(identical(other.realAllocatedQuantity, realAllocatedQuantity) || other.realAllocatedQuantity == realAllocatedQuantity)&&(identical(other.realAllocatedWeight, realAllocatedWeight) || other.realAllocatedWeight == realAllocatedWeight)&&(identical(other.coldHouseAllocatedWeight, coldHouseAllocatedWeight) || other.coldHouseAllocatedWeight == coldHouseAllocatedWeight)&&(identical(other.posAllocatedWeight, posAllocatedWeight) || other.posAllocatedWeight == posAllocatedWeight)&&(identical(other.segmentationWeight, segmentationWeight) || other.segmentationWeight == segmentationWeight)&&(identical(other.totalRemainQuantity, totalRemainQuantity) || other.totalRemainQuantity == totalRemainQuantity)&&(identical(other.totalRemainWeight, totalRemainWeight) || other.totalRemainWeight == totalRemainWeight)&&(identical(other.freePrice, freePrice) || other.freePrice == freePrice)&&(identical(other.approvedPrice, approvedPrice) || other.approvedPrice == approvedPrice)&&(identical(other.approvedPriceStatus, approvedPriceStatus) || other.approvedPriceStatus == approvedPriceStatus)&&const DeepCollectionEquality().equals(other.createdBy, createdBy)&&const DeepCollectionEquality().equals(other.modifiedBy, modifiedBy)&&(identical(other.parentProduct, parentProduct) || other.parentProduct == parentProduct)&&const DeepCollectionEquality().equals(other.killHouse, killHouse)&&(identical(other.guild, guild) || other.guild == guild)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,id,key,create_date,modify_date,trash,name,provinceGovernmentalCarcassesQuantity,provinceGovernmentalCarcassesWeight,provinceFreeCarcassesQuantity,provinceFreeCarcassesWeight,receiveGovernmentalCarcassesQuantity,receiveGovernmentalCarcassesWeight,receiveFreeCarcassesQuantity,receiveFreeCarcassesWeight,freeBuyingCarcassesQuantity,freeBuyingCarcassesWeight,totalGovernmentalCarcassesQuantity,totalGovernmentalCarcassesWeight,totalFreeBarsCarcassesQuantity,totalFreeBarsCarcassesWeight,weightAverage,totalCarcassesQuantity,totalCarcassesWeight,freezingQuantity,freezingWeight,lossWeight,outProvinceAllocatedQuantity,outProvinceAllocatedWeight,provinceAllocatedQuantity,provinceAllocatedWeight,realAllocatedQuantity,realAllocatedWeight,coldHouseAllocatedWeight,posAllocatedWeight,segmentationWeight,totalRemainQuantity,totalRemainWeight,freePrice,approvedPrice,approvedPriceStatus,const DeepCollectionEquality().hash(createdBy),const DeepCollectionEquality().hash(modifiedBy),parentProduct,const DeepCollectionEquality().hash(killHouse),guild]); + +@override +String toString() { + return 'ProductModel(id: $id, key: $key, create_date: $create_date, modify_date: $modify_date, trash: $trash, name: $name, provinceGovernmentalCarcassesQuantity: $provinceGovernmentalCarcassesQuantity, provinceGovernmentalCarcassesWeight: $provinceGovernmentalCarcassesWeight, provinceFreeCarcassesQuantity: $provinceFreeCarcassesQuantity, provinceFreeCarcassesWeight: $provinceFreeCarcassesWeight, receiveGovernmentalCarcassesQuantity: $receiveGovernmentalCarcassesQuantity, receiveGovernmentalCarcassesWeight: $receiveGovernmentalCarcassesWeight, receiveFreeCarcassesQuantity: $receiveFreeCarcassesQuantity, receiveFreeCarcassesWeight: $receiveFreeCarcassesWeight, freeBuyingCarcassesQuantity: $freeBuyingCarcassesQuantity, freeBuyingCarcassesWeight: $freeBuyingCarcassesWeight, totalGovernmentalCarcassesQuantity: $totalGovernmentalCarcassesQuantity, totalGovernmentalCarcassesWeight: $totalGovernmentalCarcassesWeight, totalFreeBarsCarcassesQuantity: $totalFreeBarsCarcassesQuantity, totalFreeBarsCarcassesWeight: $totalFreeBarsCarcassesWeight, weightAverage: $weightAverage, totalCarcassesQuantity: $totalCarcassesQuantity, totalCarcassesWeight: $totalCarcassesWeight, freezingQuantity: $freezingQuantity, freezingWeight: $freezingWeight, lossWeight: $lossWeight, outProvinceAllocatedQuantity: $outProvinceAllocatedQuantity, outProvinceAllocatedWeight: $outProvinceAllocatedWeight, provinceAllocatedQuantity: $provinceAllocatedQuantity, provinceAllocatedWeight: $provinceAllocatedWeight, realAllocatedQuantity: $realAllocatedQuantity, realAllocatedWeight: $realAllocatedWeight, coldHouseAllocatedWeight: $coldHouseAllocatedWeight, posAllocatedWeight: $posAllocatedWeight, segmentationWeight: $segmentationWeight, totalRemainQuantity: $totalRemainQuantity, totalRemainWeight: $totalRemainWeight, freePrice: $freePrice, approvedPrice: $approvedPrice, approvedPriceStatus: $approvedPriceStatus, createdBy: $createdBy, modifiedBy: $modifiedBy, parentProduct: $parentProduct, killHouse: $killHouse, guild: $guild)'; +} + + +} + +/// @nodoc +abstract mixin class $ProductModelCopyWith<$Res> { + factory $ProductModelCopyWith(ProductModel value, $Res Function(ProductModel) _then) = _$ProductModelCopyWithImpl; +@useResult +$Res call({ + int? id, String? key, String? create_date, String? modify_date, bool? trash, String? name, int? provinceGovernmentalCarcassesQuantity, int? provinceGovernmentalCarcassesWeight, int? provinceFreeCarcassesQuantity, int? provinceFreeCarcassesWeight, int? receiveGovernmentalCarcassesQuantity, int? receiveGovernmentalCarcassesWeight, int? receiveFreeCarcassesQuantity, int? receiveFreeCarcassesWeight, int? freeBuyingCarcassesQuantity, int? freeBuyingCarcassesWeight, int? totalGovernmentalCarcassesQuantity, int? totalGovernmentalCarcassesWeight, int? totalFreeBarsCarcassesQuantity, int? totalFreeBarsCarcassesWeight, double? weightAverage, int? totalCarcassesQuantity, int? totalCarcassesWeight, int? freezingQuantity, int? freezingWeight, int? lossWeight, int? outProvinceAllocatedQuantity, int? outProvinceAllocatedWeight, int? provinceAllocatedQuantity, int? provinceAllocatedWeight, int? realAllocatedQuantity, int? realAllocatedWeight, int? coldHouseAllocatedWeight, int? posAllocatedWeight, int? segmentationWeight, int? totalRemainQuantity, int? totalRemainWeight, int? freePrice, int? approvedPrice, bool? approvedPriceStatus, dynamic createdBy, dynamic modifiedBy, int? parentProduct, dynamic killHouse, int? guild +}); + + + + +} +/// @nodoc +class _$ProductModelCopyWithImpl<$Res> + implements $ProductModelCopyWith<$Res> { + _$ProductModelCopyWithImpl(this._self, this._then); + + final ProductModel _self; + final $Res Function(ProductModel) _then; + +/// Create a copy of ProductModel +/// 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? create_date = freezed,Object? modify_date = freezed,Object? trash = freezed,Object? name = freezed,Object? provinceGovernmentalCarcassesQuantity = freezed,Object? provinceGovernmentalCarcassesWeight = freezed,Object? provinceFreeCarcassesQuantity = freezed,Object? provinceFreeCarcassesWeight = freezed,Object? receiveGovernmentalCarcassesQuantity = freezed,Object? receiveGovernmentalCarcassesWeight = freezed,Object? receiveFreeCarcassesQuantity = freezed,Object? receiveFreeCarcassesWeight = freezed,Object? freeBuyingCarcassesQuantity = freezed,Object? freeBuyingCarcassesWeight = freezed,Object? totalGovernmentalCarcassesQuantity = freezed,Object? totalGovernmentalCarcassesWeight = freezed,Object? totalFreeBarsCarcassesQuantity = freezed,Object? totalFreeBarsCarcassesWeight = freezed,Object? weightAverage = freezed,Object? totalCarcassesQuantity = freezed,Object? totalCarcassesWeight = freezed,Object? freezingQuantity = freezed,Object? freezingWeight = freezed,Object? lossWeight = freezed,Object? outProvinceAllocatedQuantity = freezed,Object? outProvinceAllocatedWeight = freezed,Object? provinceAllocatedQuantity = freezed,Object? provinceAllocatedWeight = freezed,Object? realAllocatedQuantity = freezed,Object? realAllocatedWeight = freezed,Object? coldHouseAllocatedWeight = freezed,Object? posAllocatedWeight = freezed,Object? segmentationWeight = freezed,Object? totalRemainQuantity = freezed,Object? totalRemainWeight = freezed,Object? freePrice = freezed,Object? approvedPrice = freezed,Object? approvedPriceStatus = freezed,Object? createdBy = freezed,Object? modifiedBy = freezed,Object? parentProduct = freezed,Object? killHouse = freezed,Object? guild = 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?,create_date: freezed == create_date ? _self.create_date : create_date // ignore: cast_nullable_to_non_nullable +as String?,modify_date: freezed == modify_date ? _self.modify_date : modify_date // 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?,provinceGovernmentalCarcassesQuantity: freezed == provinceGovernmentalCarcassesQuantity ? _self.provinceGovernmentalCarcassesQuantity : provinceGovernmentalCarcassesQuantity // ignore: cast_nullable_to_non_nullable +as int?,provinceGovernmentalCarcassesWeight: freezed == provinceGovernmentalCarcassesWeight ? _self.provinceGovernmentalCarcassesWeight : provinceGovernmentalCarcassesWeight // ignore: cast_nullable_to_non_nullable +as int?,provinceFreeCarcassesQuantity: freezed == provinceFreeCarcassesQuantity ? _self.provinceFreeCarcassesQuantity : provinceFreeCarcassesQuantity // ignore: cast_nullable_to_non_nullable +as int?,provinceFreeCarcassesWeight: freezed == provinceFreeCarcassesWeight ? _self.provinceFreeCarcassesWeight : provinceFreeCarcassesWeight // ignore: cast_nullable_to_non_nullable +as int?,receiveGovernmentalCarcassesQuantity: freezed == receiveGovernmentalCarcassesQuantity ? _self.receiveGovernmentalCarcassesQuantity : receiveGovernmentalCarcassesQuantity // ignore: cast_nullable_to_non_nullable +as int?,receiveGovernmentalCarcassesWeight: freezed == receiveGovernmentalCarcassesWeight ? _self.receiveGovernmentalCarcassesWeight : receiveGovernmentalCarcassesWeight // ignore: cast_nullable_to_non_nullable +as int?,receiveFreeCarcassesQuantity: freezed == receiveFreeCarcassesQuantity ? _self.receiveFreeCarcassesQuantity : receiveFreeCarcassesQuantity // ignore: cast_nullable_to_non_nullable +as int?,receiveFreeCarcassesWeight: freezed == receiveFreeCarcassesWeight ? _self.receiveFreeCarcassesWeight : receiveFreeCarcassesWeight // ignore: cast_nullable_to_non_nullable +as int?,freeBuyingCarcassesQuantity: freezed == freeBuyingCarcassesQuantity ? _self.freeBuyingCarcassesQuantity : freeBuyingCarcassesQuantity // ignore: cast_nullable_to_non_nullable +as int?,freeBuyingCarcassesWeight: freezed == freeBuyingCarcassesWeight ? _self.freeBuyingCarcassesWeight : freeBuyingCarcassesWeight // ignore: cast_nullable_to_non_nullable +as int?,totalGovernmentalCarcassesQuantity: freezed == totalGovernmentalCarcassesQuantity ? _self.totalGovernmentalCarcassesQuantity : totalGovernmentalCarcassesQuantity // ignore: cast_nullable_to_non_nullable +as int?,totalGovernmentalCarcassesWeight: freezed == totalGovernmentalCarcassesWeight ? _self.totalGovernmentalCarcassesWeight : totalGovernmentalCarcassesWeight // ignore: cast_nullable_to_non_nullable +as int?,totalFreeBarsCarcassesQuantity: freezed == totalFreeBarsCarcassesQuantity ? _self.totalFreeBarsCarcassesQuantity : totalFreeBarsCarcassesQuantity // ignore: cast_nullable_to_non_nullable +as int?,totalFreeBarsCarcassesWeight: freezed == totalFreeBarsCarcassesWeight ? _self.totalFreeBarsCarcassesWeight : totalFreeBarsCarcassesWeight // ignore: cast_nullable_to_non_nullable +as int?,weightAverage: freezed == weightAverage ? _self.weightAverage : weightAverage // ignore: cast_nullable_to_non_nullable +as double?,totalCarcassesQuantity: freezed == totalCarcassesQuantity ? _self.totalCarcassesQuantity : totalCarcassesQuantity // ignore: cast_nullable_to_non_nullable +as int?,totalCarcassesWeight: freezed == totalCarcassesWeight ? _self.totalCarcassesWeight : totalCarcassesWeight // ignore: cast_nullable_to_non_nullable +as int?,freezingQuantity: freezed == freezingQuantity ? _self.freezingQuantity : freezingQuantity // ignore: cast_nullable_to_non_nullable +as int?,freezingWeight: freezed == freezingWeight ? _self.freezingWeight : freezingWeight // ignore: cast_nullable_to_non_nullable +as int?,lossWeight: freezed == lossWeight ? _self.lossWeight : lossWeight // ignore: cast_nullable_to_non_nullable +as int?,outProvinceAllocatedQuantity: freezed == outProvinceAllocatedQuantity ? _self.outProvinceAllocatedQuantity : outProvinceAllocatedQuantity // ignore: cast_nullable_to_non_nullable +as int?,outProvinceAllocatedWeight: freezed == outProvinceAllocatedWeight ? _self.outProvinceAllocatedWeight : outProvinceAllocatedWeight // ignore: cast_nullable_to_non_nullable +as int?,provinceAllocatedQuantity: freezed == provinceAllocatedQuantity ? _self.provinceAllocatedQuantity : provinceAllocatedQuantity // ignore: cast_nullable_to_non_nullable +as int?,provinceAllocatedWeight: freezed == provinceAllocatedWeight ? _self.provinceAllocatedWeight : provinceAllocatedWeight // ignore: cast_nullable_to_non_nullable +as int?,realAllocatedQuantity: freezed == realAllocatedQuantity ? _self.realAllocatedQuantity : realAllocatedQuantity // ignore: cast_nullable_to_non_nullable +as int?,realAllocatedWeight: freezed == realAllocatedWeight ? _self.realAllocatedWeight : realAllocatedWeight // ignore: cast_nullable_to_non_nullable +as int?,coldHouseAllocatedWeight: freezed == coldHouseAllocatedWeight ? _self.coldHouseAllocatedWeight : coldHouseAllocatedWeight // ignore: cast_nullable_to_non_nullable +as int?,posAllocatedWeight: freezed == posAllocatedWeight ? _self.posAllocatedWeight : posAllocatedWeight // ignore: cast_nullable_to_non_nullable +as int?,segmentationWeight: freezed == segmentationWeight ? _self.segmentationWeight : segmentationWeight // ignore: cast_nullable_to_non_nullable +as int?,totalRemainQuantity: freezed == totalRemainQuantity ? _self.totalRemainQuantity : totalRemainQuantity // ignore: cast_nullable_to_non_nullable +as int?,totalRemainWeight: freezed == totalRemainWeight ? _self.totalRemainWeight : totalRemainWeight // ignore: cast_nullable_to_non_nullable +as int?,freePrice: freezed == freePrice ? _self.freePrice : freePrice // ignore: cast_nullable_to_non_nullable +as int?,approvedPrice: freezed == approvedPrice ? _self.approvedPrice : approvedPrice // ignore: cast_nullable_to_non_nullable +as int?,approvedPriceStatus: freezed == approvedPriceStatus ? _self.approvedPriceStatus : approvedPriceStatus // ignore: cast_nullable_to_non_nullable +as bool?,createdBy: freezed == createdBy ? _self.createdBy : createdBy // ignore: cast_nullable_to_non_nullable +as dynamic,modifiedBy: freezed == modifiedBy ? _self.modifiedBy : modifiedBy // ignore: cast_nullable_to_non_nullable +as dynamic,parentProduct: freezed == parentProduct ? _self.parentProduct : parentProduct // ignore: cast_nullable_to_non_nullable +as int?,killHouse: freezed == killHouse ? _self.killHouse : killHouse // ignore: cast_nullable_to_non_nullable +as dynamic,guild: freezed == guild ? _self.guild : guild // ignore: cast_nullable_to_non_nullable +as int?, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _ProductModel implements ProductModel { + _ProductModel({this.id, this.key, this.create_date, this.modify_date, this.trash, this.name, this.provinceGovernmentalCarcassesQuantity, this.provinceGovernmentalCarcassesWeight, this.provinceFreeCarcassesQuantity, this.provinceFreeCarcassesWeight, this.receiveGovernmentalCarcassesQuantity, this.receiveGovernmentalCarcassesWeight, this.receiveFreeCarcassesQuantity, this.receiveFreeCarcassesWeight, this.freeBuyingCarcassesQuantity, this.freeBuyingCarcassesWeight, this.totalGovernmentalCarcassesQuantity, this.totalGovernmentalCarcassesWeight, this.totalFreeBarsCarcassesQuantity, this.totalFreeBarsCarcassesWeight, this.weightAverage, this.totalCarcassesQuantity, this.totalCarcassesWeight, this.freezingQuantity, this.freezingWeight, this.lossWeight, this.outProvinceAllocatedQuantity, this.outProvinceAllocatedWeight, this.provinceAllocatedQuantity, this.provinceAllocatedWeight, this.realAllocatedQuantity, this.realAllocatedWeight, this.coldHouseAllocatedWeight, this.posAllocatedWeight, this.segmentationWeight, this.totalRemainQuantity, this.totalRemainWeight, this.freePrice, this.approvedPrice, this.approvedPriceStatus, this.createdBy, this.modifiedBy, this.parentProduct, this.killHouse, this.guild}); + factory _ProductModel.fromJson(Map json) => _$ProductModelFromJson(json); + +@override final int? id; +@override final String? key; +@override final String? create_date; +// Changed from createDate, removed @JsonKey +@override final String? modify_date; +// Changed from modifyDate, removed @JsonKey +@override final bool? trash; +@override final String? name; +@override final int? provinceGovernmentalCarcassesQuantity; +@override final int? provinceGovernmentalCarcassesWeight; +@override final int? provinceFreeCarcassesQuantity; +@override final int? provinceFreeCarcassesWeight; +@override final int? receiveGovernmentalCarcassesQuantity; +@override final int? receiveGovernmentalCarcassesWeight; +@override final int? receiveFreeCarcassesQuantity; +@override final int? receiveFreeCarcassesWeight; +@override final int? freeBuyingCarcassesQuantity; +@override final int? freeBuyingCarcassesWeight; +@override final int? totalGovernmentalCarcassesQuantity; +@override final int? totalGovernmentalCarcassesWeight; +@override final int? totalFreeBarsCarcassesQuantity; +@override final int? totalFreeBarsCarcassesWeight; +@override final double? weightAverage; +@override final int? totalCarcassesQuantity; +@override final int? totalCarcassesWeight; +@override final int? freezingQuantity; +@override final int? freezingWeight; +@override final int? lossWeight; +@override final int? outProvinceAllocatedQuantity; +@override final int? outProvinceAllocatedWeight; +@override final int? provinceAllocatedQuantity; +@override final int? provinceAllocatedWeight; +@override final int? realAllocatedQuantity; +@override final int? realAllocatedWeight; +@override final int? coldHouseAllocatedWeight; +@override final int? posAllocatedWeight; +@override final int? segmentationWeight; +@override final int? totalRemainQuantity; +@override final int? totalRemainWeight; +@override final int? freePrice; +@override final int? approvedPrice; +@override final bool? approvedPriceStatus; +@override final dynamic createdBy; +@override final dynamic modifiedBy; +@override final int? parentProduct; +@override final dynamic killHouse; +@override final int? guild; + +/// Create a copy of ProductModel +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ProductModelCopyWith<_ProductModel> get copyWith => __$ProductModelCopyWithImpl<_ProductModel>(this, _$identity); + +@override +Map toJson() { + return _$ProductModelToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _ProductModel&&(identical(other.id, id) || other.id == id)&&(identical(other.key, key) || other.key == key)&&(identical(other.create_date, create_date) || other.create_date == create_date)&&(identical(other.modify_date, modify_date) || other.modify_date == modify_date)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.name, name) || other.name == name)&&(identical(other.provinceGovernmentalCarcassesQuantity, provinceGovernmentalCarcassesQuantity) || other.provinceGovernmentalCarcassesQuantity == provinceGovernmentalCarcassesQuantity)&&(identical(other.provinceGovernmentalCarcassesWeight, provinceGovernmentalCarcassesWeight) || other.provinceGovernmentalCarcassesWeight == provinceGovernmentalCarcassesWeight)&&(identical(other.provinceFreeCarcassesQuantity, provinceFreeCarcassesQuantity) || other.provinceFreeCarcassesQuantity == provinceFreeCarcassesQuantity)&&(identical(other.provinceFreeCarcassesWeight, provinceFreeCarcassesWeight) || other.provinceFreeCarcassesWeight == provinceFreeCarcassesWeight)&&(identical(other.receiveGovernmentalCarcassesQuantity, receiveGovernmentalCarcassesQuantity) || other.receiveGovernmentalCarcassesQuantity == receiveGovernmentalCarcassesQuantity)&&(identical(other.receiveGovernmentalCarcassesWeight, receiveGovernmentalCarcassesWeight) || other.receiveGovernmentalCarcassesWeight == receiveGovernmentalCarcassesWeight)&&(identical(other.receiveFreeCarcassesQuantity, receiveFreeCarcassesQuantity) || other.receiveFreeCarcassesQuantity == receiveFreeCarcassesQuantity)&&(identical(other.receiveFreeCarcassesWeight, receiveFreeCarcassesWeight) || other.receiveFreeCarcassesWeight == receiveFreeCarcassesWeight)&&(identical(other.freeBuyingCarcassesQuantity, freeBuyingCarcassesQuantity) || other.freeBuyingCarcassesQuantity == freeBuyingCarcassesQuantity)&&(identical(other.freeBuyingCarcassesWeight, freeBuyingCarcassesWeight) || other.freeBuyingCarcassesWeight == freeBuyingCarcassesWeight)&&(identical(other.totalGovernmentalCarcassesQuantity, totalGovernmentalCarcassesQuantity) || other.totalGovernmentalCarcassesQuantity == totalGovernmentalCarcassesQuantity)&&(identical(other.totalGovernmentalCarcassesWeight, totalGovernmentalCarcassesWeight) || other.totalGovernmentalCarcassesWeight == totalGovernmentalCarcassesWeight)&&(identical(other.totalFreeBarsCarcassesQuantity, totalFreeBarsCarcassesQuantity) || other.totalFreeBarsCarcassesQuantity == totalFreeBarsCarcassesQuantity)&&(identical(other.totalFreeBarsCarcassesWeight, totalFreeBarsCarcassesWeight) || other.totalFreeBarsCarcassesWeight == totalFreeBarsCarcassesWeight)&&(identical(other.weightAverage, weightAverage) || other.weightAverage == weightAverage)&&(identical(other.totalCarcassesQuantity, totalCarcassesQuantity) || other.totalCarcassesQuantity == totalCarcassesQuantity)&&(identical(other.totalCarcassesWeight, totalCarcassesWeight) || other.totalCarcassesWeight == totalCarcassesWeight)&&(identical(other.freezingQuantity, freezingQuantity) || other.freezingQuantity == freezingQuantity)&&(identical(other.freezingWeight, freezingWeight) || other.freezingWeight == freezingWeight)&&(identical(other.lossWeight, lossWeight) || other.lossWeight == lossWeight)&&(identical(other.outProvinceAllocatedQuantity, outProvinceAllocatedQuantity) || other.outProvinceAllocatedQuantity == outProvinceAllocatedQuantity)&&(identical(other.outProvinceAllocatedWeight, outProvinceAllocatedWeight) || other.outProvinceAllocatedWeight == outProvinceAllocatedWeight)&&(identical(other.provinceAllocatedQuantity, provinceAllocatedQuantity) || other.provinceAllocatedQuantity == provinceAllocatedQuantity)&&(identical(other.provinceAllocatedWeight, provinceAllocatedWeight) || other.provinceAllocatedWeight == provinceAllocatedWeight)&&(identical(other.realAllocatedQuantity, realAllocatedQuantity) || other.realAllocatedQuantity == realAllocatedQuantity)&&(identical(other.realAllocatedWeight, realAllocatedWeight) || other.realAllocatedWeight == realAllocatedWeight)&&(identical(other.coldHouseAllocatedWeight, coldHouseAllocatedWeight) || other.coldHouseAllocatedWeight == coldHouseAllocatedWeight)&&(identical(other.posAllocatedWeight, posAllocatedWeight) || other.posAllocatedWeight == posAllocatedWeight)&&(identical(other.segmentationWeight, segmentationWeight) || other.segmentationWeight == segmentationWeight)&&(identical(other.totalRemainQuantity, totalRemainQuantity) || other.totalRemainQuantity == totalRemainQuantity)&&(identical(other.totalRemainWeight, totalRemainWeight) || other.totalRemainWeight == totalRemainWeight)&&(identical(other.freePrice, freePrice) || other.freePrice == freePrice)&&(identical(other.approvedPrice, approvedPrice) || other.approvedPrice == approvedPrice)&&(identical(other.approvedPriceStatus, approvedPriceStatus) || other.approvedPriceStatus == approvedPriceStatus)&&const DeepCollectionEquality().equals(other.createdBy, createdBy)&&const DeepCollectionEquality().equals(other.modifiedBy, modifiedBy)&&(identical(other.parentProduct, parentProduct) || other.parentProduct == parentProduct)&&const DeepCollectionEquality().equals(other.killHouse, killHouse)&&(identical(other.guild, guild) || other.guild == guild)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,id,key,create_date,modify_date,trash,name,provinceGovernmentalCarcassesQuantity,provinceGovernmentalCarcassesWeight,provinceFreeCarcassesQuantity,provinceFreeCarcassesWeight,receiveGovernmentalCarcassesQuantity,receiveGovernmentalCarcassesWeight,receiveFreeCarcassesQuantity,receiveFreeCarcassesWeight,freeBuyingCarcassesQuantity,freeBuyingCarcassesWeight,totalGovernmentalCarcassesQuantity,totalGovernmentalCarcassesWeight,totalFreeBarsCarcassesQuantity,totalFreeBarsCarcassesWeight,weightAverage,totalCarcassesQuantity,totalCarcassesWeight,freezingQuantity,freezingWeight,lossWeight,outProvinceAllocatedQuantity,outProvinceAllocatedWeight,provinceAllocatedQuantity,provinceAllocatedWeight,realAllocatedQuantity,realAllocatedWeight,coldHouseAllocatedWeight,posAllocatedWeight,segmentationWeight,totalRemainQuantity,totalRemainWeight,freePrice,approvedPrice,approvedPriceStatus,const DeepCollectionEquality().hash(createdBy),const DeepCollectionEquality().hash(modifiedBy),parentProduct,const DeepCollectionEquality().hash(killHouse),guild]); + +@override +String toString() { + return 'ProductModel(id: $id, key: $key, create_date: $create_date, modify_date: $modify_date, trash: $trash, name: $name, provinceGovernmentalCarcassesQuantity: $provinceGovernmentalCarcassesQuantity, provinceGovernmentalCarcassesWeight: $provinceGovernmentalCarcassesWeight, provinceFreeCarcassesQuantity: $provinceFreeCarcassesQuantity, provinceFreeCarcassesWeight: $provinceFreeCarcassesWeight, receiveGovernmentalCarcassesQuantity: $receiveGovernmentalCarcassesQuantity, receiveGovernmentalCarcassesWeight: $receiveGovernmentalCarcassesWeight, receiveFreeCarcassesQuantity: $receiveFreeCarcassesQuantity, receiveFreeCarcassesWeight: $receiveFreeCarcassesWeight, freeBuyingCarcassesQuantity: $freeBuyingCarcassesQuantity, freeBuyingCarcassesWeight: $freeBuyingCarcassesWeight, totalGovernmentalCarcassesQuantity: $totalGovernmentalCarcassesQuantity, totalGovernmentalCarcassesWeight: $totalGovernmentalCarcassesWeight, totalFreeBarsCarcassesQuantity: $totalFreeBarsCarcassesQuantity, totalFreeBarsCarcassesWeight: $totalFreeBarsCarcassesWeight, weightAverage: $weightAverage, totalCarcassesQuantity: $totalCarcassesQuantity, totalCarcassesWeight: $totalCarcassesWeight, freezingQuantity: $freezingQuantity, freezingWeight: $freezingWeight, lossWeight: $lossWeight, outProvinceAllocatedQuantity: $outProvinceAllocatedQuantity, outProvinceAllocatedWeight: $outProvinceAllocatedWeight, provinceAllocatedQuantity: $provinceAllocatedQuantity, provinceAllocatedWeight: $provinceAllocatedWeight, realAllocatedQuantity: $realAllocatedQuantity, realAllocatedWeight: $realAllocatedWeight, coldHouseAllocatedWeight: $coldHouseAllocatedWeight, posAllocatedWeight: $posAllocatedWeight, segmentationWeight: $segmentationWeight, totalRemainQuantity: $totalRemainQuantity, totalRemainWeight: $totalRemainWeight, freePrice: $freePrice, approvedPrice: $approvedPrice, approvedPriceStatus: $approvedPriceStatus, createdBy: $createdBy, modifiedBy: $modifiedBy, parentProduct: $parentProduct, killHouse: $killHouse, guild: $guild)'; +} + + +} + +/// @nodoc +abstract mixin class _$ProductModelCopyWith<$Res> implements $ProductModelCopyWith<$Res> { + factory _$ProductModelCopyWith(_ProductModel value, $Res Function(_ProductModel) _then) = __$ProductModelCopyWithImpl; +@override @useResult +$Res call({ + int? id, String? key, String? create_date, String? modify_date, bool? trash, String? name, int? provinceGovernmentalCarcassesQuantity, int? provinceGovernmentalCarcassesWeight, int? provinceFreeCarcassesQuantity, int? provinceFreeCarcassesWeight, int? receiveGovernmentalCarcassesQuantity, int? receiveGovernmentalCarcassesWeight, int? receiveFreeCarcassesQuantity, int? receiveFreeCarcassesWeight, int? freeBuyingCarcassesQuantity, int? freeBuyingCarcassesWeight, int? totalGovernmentalCarcassesQuantity, int? totalGovernmentalCarcassesWeight, int? totalFreeBarsCarcassesQuantity, int? totalFreeBarsCarcassesWeight, double? weightAverage, int? totalCarcassesQuantity, int? totalCarcassesWeight, int? freezingQuantity, int? freezingWeight, int? lossWeight, int? outProvinceAllocatedQuantity, int? outProvinceAllocatedWeight, int? provinceAllocatedQuantity, int? provinceAllocatedWeight, int? realAllocatedQuantity, int? realAllocatedWeight, int? coldHouseAllocatedWeight, int? posAllocatedWeight, int? segmentationWeight, int? totalRemainQuantity, int? totalRemainWeight, int? freePrice, int? approvedPrice, bool? approvedPriceStatus, dynamic createdBy, dynamic modifiedBy, int? parentProduct, dynamic killHouse, int? guild +}); + + + + +} +/// @nodoc +class __$ProductModelCopyWithImpl<$Res> + implements _$ProductModelCopyWith<$Res> { + __$ProductModelCopyWithImpl(this._self, this._then); + + final _ProductModel _self; + final $Res Function(_ProductModel) _then; + +/// Create a copy of ProductModel +/// 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? create_date = freezed,Object? modify_date = freezed,Object? trash = freezed,Object? name = freezed,Object? provinceGovernmentalCarcassesQuantity = freezed,Object? provinceGovernmentalCarcassesWeight = freezed,Object? provinceFreeCarcassesQuantity = freezed,Object? provinceFreeCarcassesWeight = freezed,Object? receiveGovernmentalCarcassesQuantity = freezed,Object? receiveGovernmentalCarcassesWeight = freezed,Object? receiveFreeCarcassesQuantity = freezed,Object? receiveFreeCarcassesWeight = freezed,Object? freeBuyingCarcassesQuantity = freezed,Object? freeBuyingCarcassesWeight = freezed,Object? totalGovernmentalCarcassesQuantity = freezed,Object? totalGovernmentalCarcassesWeight = freezed,Object? totalFreeBarsCarcassesQuantity = freezed,Object? totalFreeBarsCarcassesWeight = freezed,Object? weightAverage = freezed,Object? totalCarcassesQuantity = freezed,Object? totalCarcassesWeight = freezed,Object? freezingQuantity = freezed,Object? freezingWeight = freezed,Object? lossWeight = freezed,Object? outProvinceAllocatedQuantity = freezed,Object? outProvinceAllocatedWeight = freezed,Object? provinceAllocatedQuantity = freezed,Object? provinceAllocatedWeight = freezed,Object? realAllocatedQuantity = freezed,Object? realAllocatedWeight = freezed,Object? coldHouseAllocatedWeight = freezed,Object? posAllocatedWeight = freezed,Object? segmentationWeight = freezed,Object? totalRemainQuantity = freezed,Object? totalRemainWeight = freezed,Object? freePrice = freezed,Object? approvedPrice = freezed,Object? approvedPriceStatus = freezed,Object? createdBy = freezed,Object? modifiedBy = freezed,Object? parentProduct = freezed,Object? killHouse = freezed,Object? guild = freezed,}) { + return _then(_ProductModel( +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?,create_date: freezed == create_date ? _self.create_date : create_date // ignore: cast_nullable_to_non_nullable +as String?,modify_date: freezed == modify_date ? _self.modify_date : modify_date // 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?,provinceGovernmentalCarcassesQuantity: freezed == provinceGovernmentalCarcassesQuantity ? _self.provinceGovernmentalCarcassesQuantity : provinceGovernmentalCarcassesQuantity // ignore: cast_nullable_to_non_nullable +as int?,provinceGovernmentalCarcassesWeight: freezed == provinceGovernmentalCarcassesWeight ? _self.provinceGovernmentalCarcassesWeight : provinceGovernmentalCarcassesWeight // ignore: cast_nullable_to_non_nullable +as int?,provinceFreeCarcassesQuantity: freezed == provinceFreeCarcassesQuantity ? _self.provinceFreeCarcassesQuantity : provinceFreeCarcassesQuantity // ignore: cast_nullable_to_non_nullable +as int?,provinceFreeCarcassesWeight: freezed == provinceFreeCarcassesWeight ? _self.provinceFreeCarcassesWeight : provinceFreeCarcassesWeight // ignore: cast_nullable_to_non_nullable +as int?,receiveGovernmentalCarcassesQuantity: freezed == receiveGovernmentalCarcassesQuantity ? _self.receiveGovernmentalCarcassesQuantity : receiveGovernmentalCarcassesQuantity // ignore: cast_nullable_to_non_nullable +as int?,receiveGovernmentalCarcassesWeight: freezed == receiveGovernmentalCarcassesWeight ? _self.receiveGovernmentalCarcassesWeight : receiveGovernmentalCarcassesWeight // ignore: cast_nullable_to_non_nullable +as int?,receiveFreeCarcassesQuantity: freezed == receiveFreeCarcassesQuantity ? _self.receiveFreeCarcassesQuantity : receiveFreeCarcassesQuantity // ignore: cast_nullable_to_non_nullable +as int?,receiveFreeCarcassesWeight: freezed == receiveFreeCarcassesWeight ? _self.receiveFreeCarcassesWeight : receiveFreeCarcassesWeight // ignore: cast_nullable_to_non_nullable +as int?,freeBuyingCarcassesQuantity: freezed == freeBuyingCarcassesQuantity ? _self.freeBuyingCarcassesQuantity : freeBuyingCarcassesQuantity // ignore: cast_nullable_to_non_nullable +as int?,freeBuyingCarcassesWeight: freezed == freeBuyingCarcassesWeight ? _self.freeBuyingCarcassesWeight : freeBuyingCarcassesWeight // ignore: cast_nullable_to_non_nullable +as int?,totalGovernmentalCarcassesQuantity: freezed == totalGovernmentalCarcassesQuantity ? _self.totalGovernmentalCarcassesQuantity : totalGovernmentalCarcassesQuantity // ignore: cast_nullable_to_non_nullable +as int?,totalGovernmentalCarcassesWeight: freezed == totalGovernmentalCarcassesWeight ? _self.totalGovernmentalCarcassesWeight : totalGovernmentalCarcassesWeight // ignore: cast_nullable_to_non_nullable +as int?,totalFreeBarsCarcassesQuantity: freezed == totalFreeBarsCarcassesQuantity ? _self.totalFreeBarsCarcassesQuantity : totalFreeBarsCarcassesQuantity // ignore: cast_nullable_to_non_nullable +as int?,totalFreeBarsCarcassesWeight: freezed == totalFreeBarsCarcassesWeight ? _self.totalFreeBarsCarcassesWeight : totalFreeBarsCarcassesWeight // ignore: cast_nullable_to_non_nullable +as int?,weightAverage: freezed == weightAverage ? _self.weightAverage : weightAverage // ignore: cast_nullable_to_non_nullable +as double?,totalCarcassesQuantity: freezed == totalCarcassesQuantity ? _self.totalCarcassesQuantity : totalCarcassesQuantity // ignore: cast_nullable_to_non_nullable +as int?,totalCarcassesWeight: freezed == totalCarcassesWeight ? _self.totalCarcassesWeight : totalCarcassesWeight // ignore: cast_nullable_to_non_nullable +as int?,freezingQuantity: freezed == freezingQuantity ? _self.freezingQuantity : freezingQuantity // ignore: cast_nullable_to_non_nullable +as int?,freezingWeight: freezed == freezingWeight ? _self.freezingWeight : freezingWeight // ignore: cast_nullable_to_non_nullable +as int?,lossWeight: freezed == lossWeight ? _self.lossWeight : lossWeight // ignore: cast_nullable_to_non_nullable +as int?,outProvinceAllocatedQuantity: freezed == outProvinceAllocatedQuantity ? _self.outProvinceAllocatedQuantity : outProvinceAllocatedQuantity // ignore: cast_nullable_to_non_nullable +as int?,outProvinceAllocatedWeight: freezed == outProvinceAllocatedWeight ? _self.outProvinceAllocatedWeight : outProvinceAllocatedWeight // ignore: cast_nullable_to_non_nullable +as int?,provinceAllocatedQuantity: freezed == provinceAllocatedQuantity ? _self.provinceAllocatedQuantity : provinceAllocatedQuantity // ignore: cast_nullable_to_non_nullable +as int?,provinceAllocatedWeight: freezed == provinceAllocatedWeight ? _self.provinceAllocatedWeight : provinceAllocatedWeight // ignore: cast_nullable_to_non_nullable +as int?,realAllocatedQuantity: freezed == realAllocatedQuantity ? _self.realAllocatedQuantity : realAllocatedQuantity // ignore: cast_nullable_to_non_nullable +as int?,realAllocatedWeight: freezed == realAllocatedWeight ? _self.realAllocatedWeight : realAllocatedWeight // ignore: cast_nullable_to_non_nullable +as int?,coldHouseAllocatedWeight: freezed == coldHouseAllocatedWeight ? _self.coldHouseAllocatedWeight : coldHouseAllocatedWeight // ignore: cast_nullable_to_non_nullable +as int?,posAllocatedWeight: freezed == posAllocatedWeight ? _self.posAllocatedWeight : posAllocatedWeight // ignore: cast_nullable_to_non_nullable +as int?,segmentationWeight: freezed == segmentationWeight ? _self.segmentationWeight : segmentationWeight // ignore: cast_nullable_to_non_nullable +as int?,totalRemainQuantity: freezed == totalRemainQuantity ? _self.totalRemainQuantity : totalRemainQuantity // ignore: cast_nullable_to_non_nullable +as int?,totalRemainWeight: freezed == totalRemainWeight ? _self.totalRemainWeight : totalRemainWeight // ignore: cast_nullable_to_non_nullable +as int?,freePrice: freezed == freePrice ? _self.freePrice : freePrice // ignore: cast_nullable_to_non_nullable +as int?,approvedPrice: freezed == approvedPrice ? _self.approvedPrice : approvedPrice // ignore: cast_nullable_to_non_nullable +as int?,approvedPriceStatus: freezed == approvedPriceStatus ? _self.approvedPriceStatus : approvedPriceStatus // ignore: cast_nullable_to_non_nullable +as bool?,createdBy: freezed == createdBy ? _self.createdBy : createdBy // ignore: cast_nullable_to_non_nullable +as dynamic,modifiedBy: freezed == modifiedBy ? _self.modifiedBy : modifiedBy // ignore: cast_nullable_to_non_nullable +as dynamic,parentProduct: freezed == parentProduct ? _self.parentProduct : parentProduct // ignore: cast_nullable_to_non_nullable +as int?,killHouse: freezed == killHouse ? _self.killHouse : killHouse // ignore: cast_nullable_to_non_nullable +as dynamic,guild: freezed == guild ? _self.guild : guild // ignore: cast_nullable_to_non_nullable +as int?, + )); +} + + +} + +// dart format on diff --git a/packages/chicken/lib/data/models/response/roles_products/roles_products.g.dart b/packages/chicken/lib/data/models/response/roles_products/roles_products.g.dart new file mode 100644 index 0000000..a81b24d --- /dev/null +++ b/packages/chicken/lib/data/models/response/roles_products/roles_products.g.dart @@ -0,0 +1,141 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'roles_products.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +_RolesProductsModel _$RolesProductsModelFromJson(Map json) => + _RolesProductsModel( + products: (json['products'] as List) + .map((e) => ProductModel.fromJson(e as Map)) + .toList(), + ); + +Map _$RolesProductsModelToJson(_RolesProductsModel instance) => + {'products': instance.products}; + +_ProductModel _$ProductModelFromJson( + Map json, +) => _ProductModel( + id: (json['id'] as num?)?.toInt(), + key: json['key'] as String?, + create_date: json['create_date'] as String?, + modify_date: json['modify_date'] as String?, + trash: json['trash'] as bool?, + name: json['name'] as String?, + provinceGovernmentalCarcassesQuantity: + (json['province_governmental_carcasses_quantity'] as num?)?.toInt(), + provinceGovernmentalCarcassesWeight: + (json['province_governmental_carcasses_weight'] as num?)?.toInt(), + provinceFreeCarcassesQuantity: + (json['province_free_carcasses_quantity'] as num?)?.toInt(), + provinceFreeCarcassesWeight: (json['province_free_carcasses_weight'] as num?) + ?.toInt(), + receiveGovernmentalCarcassesQuantity: + (json['receive_governmental_carcasses_quantity'] as num?)?.toInt(), + receiveGovernmentalCarcassesWeight: + (json['receive_governmental_carcasses_weight'] as num?)?.toInt(), + receiveFreeCarcassesQuantity: + (json['receive_free_carcasses_quantity'] as num?)?.toInt(), + receiveFreeCarcassesWeight: (json['receive_free_carcasses_weight'] as num?) + ?.toInt(), + freeBuyingCarcassesQuantity: (json['free_buying_carcasses_quantity'] as num?) + ?.toInt(), + freeBuyingCarcassesWeight: (json['free_buying_carcasses_weight'] as num?) + ?.toInt(), + totalGovernmentalCarcassesQuantity: + (json['total_governmental_carcasses_quantity'] as num?)?.toInt(), + totalGovernmentalCarcassesWeight: + (json['total_governmental_carcasses_weight'] as num?)?.toInt(), + totalFreeBarsCarcassesQuantity: + (json['total_free_bars_carcasses_quantity'] as num?)?.toInt(), + totalFreeBarsCarcassesWeight: + (json['total_free_bars_carcasses_weight'] as num?)?.toInt(), + weightAverage: (json['weight_average'] as num?)?.toDouble(), + totalCarcassesQuantity: (json['total_carcasses_quantity'] as num?)?.toInt(), + totalCarcassesWeight: (json['total_carcasses_weight'] as num?)?.toInt(), + freezingQuantity: (json['freezing_quantity'] as num?)?.toInt(), + freezingWeight: (json['freezing_weight'] as num?)?.toInt(), + lossWeight: (json['loss_weight'] as num?)?.toInt(), + outProvinceAllocatedQuantity: + (json['out_province_allocated_quantity'] as num?)?.toInt(), + outProvinceAllocatedWeight: (json['out_province_allocated_weight'] as num?) + ?.toInt(), + provinceAllocatedQuantity: (json['province_allocated_quantity'] as num?) + ?.toInt(), + provinceAllocatedWeight: (json['province_allocated_weight'] as num?)?.toInt(), + realAllocatedQuantity: (json['real_allocated_quantity'] as num?)?.toInt(), + realAllocatedWeight: (json['real_allocated_weight'] as num?)?.toInt(), + coldHouseAllocatedWeight: (json['cold_house_allocated_weight'] as num?) + ?.toInt(), + posAllocatedWeight: (json['pos_allocated_weight'] as num?)?.toInt(), + segmentationWeight: (json['segmentation_weight'] as num?)?.toInt(), + totalRemainQuantity: (json['total_remain_quantity'] as num?)?.toInt(), + totalRemainWeight: (json['total_remain_weight'] as num?)?.toInt(), + freePrice: (json['free_price'] as num?)?.toInt(), + approvedPrice: (json['approved_price'] as num?)?.toInt(), + approvedPriceStatus: json['approved_price_status'] as bool?, + createdBy: json['created_by'], + modifiedBy: json['modified_by'], + parentProduct: (json['parent_product'] as num?)?.toInt(), + killHouse: json['kill_house'], + guild: (json['guild'] as num?)?.toInt(), +); + +Map _$ProductModelToJson( + _ProductModel instance, +) => { + 'id': instance.id, + 'key': instance.key, + 'create_date': instance.create_date, + 'modify_date': instance.modify_date, + 'trash': instance.trash, + 'name': instance.name, + 'province_governmental_carcasses_quantity': + instance.provinceGovernmentalCarcassesQuantity, + 'province_governmental_carcasses_weight': + instance.provinceGovernmentalCarcassesWeight, + 'province_free_carcasses_quantity': instance.provinceFreeCarcassesQuantity, + 'province_free_carcasses_weight': instance.provinceFreeCarcassesWeight, + 'receive_governmental_carcasses_quantity': + instance.receiveGovernmentalCarcassesQuantity, + 'receive_governmental_carcasses_weight': + instance.receiveGovernmentalCarcassesWeight, + 'receive_free_carcasses_quantity': instance.receiveFreeCarcassesQuantity, + 'receive_free_carcasses_weight': instance.receiveFreeCarcassesWeight, + 'free_buying_carcasses_quantity': instance.freeBuyingCarcassesQuantity, + 'free_buying_carcasses_weight': instance.freeBuyingCarcassesWeight, + 'total_governmental_carcasses_quantity': + instance.totalGovernmentalCarcassesQuantity, + 'total_governmental_carcasses_weight': + instance.totalGovernmentalCarcassesWeight, + 'total_free_bars_carcasses_quantity': instance.totalFreeBarsCarcassesQuantity, + 'total_free_bars_carcasses_weight': instance.totalFreeBarsCarcassesWeight, + 'weight_average': instance.weightAverage, + 'total_carcasses_quantity': instance.totalCarcassesQuantity, + 'total_carcasses_weight': instance.totalCarcassesWeight, + 'freezing_quantity': instance.freezingQuantity, + 'freezing_weight': instance.freezingWeight, + 'loss_weight': instance.lossWeight, + 'out_province_allocated_quantity': instance.outProvinceAllocatedQuantity, + 'out_province_allocated_weight': instance.outProvinceAllocatedWeight, + 'province_allocated_quantity': instance.provinceAllocatedQuantity, + 'province_allocated_weight': instance.provinceAllocatedWeight, + 'real_allocated_quantity': instance.realAllocatedQuantity, + 'real_allocated_weight': instance.realAllocatedWeight, + 'cold_house_allocated_weight': instance.coldHouseAllocatedWeight, + 'pos_allocated_weight': instance.posAllocatedWeight, + 'segmentation_weight': instance.segmentationWeight, + 'total_remain_quantity': instance.totalRemainQuantity, + 'total_remain_weight': instance.totalRemainWeight, + 'free_price': instance.freePrice, + 'approved_price': instance.approvedPrice, + 'approved_price_status': instance.approvedPriceStatus, + 'created_by': instance.createdBy, + 'modified_by': instance.modifiedBy, + 'parent_product': instance.parentProduct, + 'kill_house': instance.killHouse, + 'guild': instance.guild, +}; diff --git a/packages/chicken/lib/data/models/response/waiting_arrival/waiting_arrival.dart b/packages/chicken/lib/data/models/response/waiting_arrival/waiting_arrival.dart new file mode 100644 index 0000000..e93b258 --- /dev/null +++ b/packages/chicken/lib/data/models/response/waiting_arrival/waiting_arrival.dart @@ -0,0 +1,266 @@ +import 'package:freezed_annotation/freezed_annotation.dart'; + +part 'waiting_arrival.freezed.dart'; +part 'waiting_arrival.g.dart'; + +@freezed +abstract class WaitingArrivalModel with _$WaitingArrivalModel { + factory WaitingArrivalModel({ + required int count, + String? next, + String? previous, + required List results, + }) = _WaitingArrivalModel; + + factory WaitingArrivalModel.fromJson(Map json) => _$WaitingArrivalModelFromJson(json); +} + +@freezed +abstract class ResultModel with _$ResultModel { + factory ResultModel({ + int? id, + ProductModel? product, + KillHouseModel? killHouse, + dynamic toKillHouse, + dynamic steward, + @JsonKey(name: 'to_steward') ToStewardModel? toSteward, + dynamic guilds, + dynamic toGuilds, + dynamic toColdHouse, + int? indexWeight, + int? dateTimestamp, + int? newState, + int? newReceiverState, + int? newAllocationState, + String? key, + String? createDate, + String? modifyDate, + bool? trash, + int? numberOfCarcasses, + int? realNumberOfCarcasses, + int? receiverRealNumberOfCarcasses, + double? weightOfCarcasses, + double? realWeightOfCarcasses, + double? receiverRealWeightOfCarcasses, + double? weightLossOfCarcasses, + bool? finalRegistration, + String? sellType, + String? productName, + String? sellerType, + String? type, + String? saleType, + String? allocationType, + bool? systemRegistrationCode, + int? registrationCode, + int? amount, + int? totalAmount, + int? totalAmountPaid, + int? totalAmountRemain, + dynamic loggedRegistrationCode, + String? state, + String? receiverState, + String? allocationState, + String? date, + dynamic role, + dynamic stewardTempKey, + bool? approvedPriceStatus, + bool? calculateStatus, + bool? temporaryTrash, + bool? temporaryDeleted, + dynamic createdBy, + dynamic modifiedBy, + dynamic wareHouse, + dynamic stewardWareHouse, + dynamic car, + dynamic dispenser, + }) = _ResultModel; + + factory ResultModel.fromJson(Map json) => _$ResultModelFromJson(json); +} + +@freezed +abstract class ProductModel with _$ProductModel { + factory ProductModel({ + double? weightAverage, + }) = _ProductModel; + + factory ProductModel.fromJson(Map json) => _$ProductModelFromJson(json); +} + +@freezed +abstract class ToStewardModel with _$ToStewardModel { + factory ToStewardModel({ + int? id, + ToStewardUserModel? user, + AddressModel? address, + GuildAreaActivityModel? guildAreaActivity, + GuildTypeActivityModel? guildTypeActivity, + List? killHouse, + List? stewardKillHouse, + List? stewards, + GetPosStatusModel? getPosStatus, + String? key, + @JsonKey(name: 'create_date') String? createDate, + @JsonKey(name: 'modify_date') String? modifyDate, + bool? trash, + bool? active, + String? guildsId, + String? licenseNumber, + String? guildsName, + String? typeActivity, + String? areaActivity, + bool? steward, + bool? hasPos, + String? provinceAcceptState, + }) = _ToStewardModel; + + factory ToStewardModel.fromJson(Map json) => _$ToStewardModelFromJson(json); +} + +@freezed +abstract class ToStewardUserModel with _$ToStewardUserModel { + factory ToStewardUserModel({ + String? fullname, + @JsonKey(name: 'first_name') String? firstName, + @JsonKey(name: 'last_name') String? lastName, + String? mobile, + @JsonKey(name: 'national_id') String? nationalId, + String? city, + }) = _ToStewardUserModel; + + factory ToStewardUserModel.fromJson(Map json) => _$ToStewardUserModelFromJson(json); +} + +@freezed +abstract class ToStewardCityModel with _$ToStewardCityModel { + factory ToStewardCityModel({ + String? key, + @JsonKey(name: 'name') String? title, + }) = _ToStewardCityModel; + + factory ToStewardCityModel.fromJson(Map json) => _$ToStewardCityModelFromJson(json); +} + +@freezed +abstract class ToStewardProvinceModel with _$ToStewardProvinceModel { + factory ToStewardProvinceModel({ + String? key, + @JsonKey(name: 'name') String? title, + }) = _ToStewardProvinceModel; + + factory ToStewardProvinceModel.fromJson(Map json) => _$ToStewardProvinceModelFromJson(json); +} + +@freezed +abstract class AddressModel with _$AddressModel { + factory AddressModel({ + ToStewardProvinceModel? province, + ToStewardCityModel? city, + String? address, + String? postalCode, + }) = _AddressModel; + + factory AddressModel.fromJson(Map json) => _$AddressModelFromJson(json); +} + +@freezed +abstract class GuildAreaActivityModel with _$GuildAreaActivityModel { + factory GuildAreaActivityModel({ + String? key, + String? title, + }) = _GuildAreaActivityModel; + + factory GuildAreaActivityModel.fromJson(Map json) => _$GuildAreaActivityModelFromJson(json); +} + +@freezed +abstract class GuildTypeActivityModel with _$GuildTypeActivityModel { + factory GuildTypeActivityModel({ + String? key, + String? title, + }) = _GuildTypeActivityModel; + + factory GuildTypeActivityModel.fromJson(Map json) => _$GuildTypeActivityModelFromJson(json); +} + +@freezed +abstract class GetPosStatusModel with _$GetPosStatusModel { + factory GetPosStatusModel({ + int? lenActiveSessions, + bool? hasPons, + bool? hasActivePons, + }) = _GetPosStatusModel; + + factory GetPosStatusModel.fromJson(Map json) => _$GetPosStatusModelFromJson(json); +} + +@freezed +abstract class KillHouseModel with _$KillHouseModel { + factory KillHouseModel({ + String? key, + @JsonKey(name: 'kill_house_operator') KillHouseOperatorModel? operator, + String? name, + bool? killer, + }) = _KillHouseModel; + + factory KillHouseModel.fromJson(Map json) => _$KillHouseModelFromJson(json); +} + +@freezed +abstract class KillHouseOperatorModel with _$KillHouseOperatorModel { + factory KillHouseOperatorModel({ + UserModel? user, + }) = _KillHouseOperatorModel; + + factory KillHouseOperatorModel.fromJson(Map json) => _$KillHouseOperatorModelFromJson(json); +} + +@freezed +abstract class UserModel with _$UserModel { + factory UserModel({ + String? fullname, + String? firstName, + String? lastName, + int? baseOrder, + String? mobile, + String? nationalId, + String? nationalCode, + String? key, + CityModel? city, + String? unitName, + String? unitNationalId, + String? unitRegistrationNumber, + String? unitEconomicalNumber, + String? unitProvince, + String? unitCity, + String? unitPostalCode, + String? unitAddress, + }) = _UserModel; + + factory UserModel.fromJson(Map json) => _$UserModelFromJson(json); +} + +@freezed +abstract class CityModel with _$CityModel { + factory CityModel({ + 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, + }) = _CityModel; + + factory CityModel.fromJson(Map json) => _$CityModelFromJson(json); +} \ No newline at end of file diff --git a/packages/chicken/lib/data/models/response/waiting_arrival/waiting_arrival.freezed.dart b/packages/chicken/lib/data/models/response/waiting_arrival/waiting_arrival.freezed.dart new file mode 100644 index 0000000..c13a17d --- /dev/null +++ b/packages/chicken/lib/data/models/response/waiting_arrival/waiting_arrival.freezed.dart @@ -0,0 +1,2733 @@ +// dart format width=80 +// coverage:ignore-file +// GENERATED CODE - DO NOT MODIFY BY HAND +// 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 'waiting_arrival.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; + +/// @nodoc +mixin _$WaitingArrivalModel { + + int get count; String? get next; String? get previous; List get results; +/// Create a copy of WaitingArrivalModel +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$WaitingArrivalModelCopyWith get copyWith => _$WaitingArrivalModelCopyWithImpl(this as WaitingArrivalModel, _$identity); + + /// Serializes this WaitingArrivalModel to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is WaitingArrivalModel&&(identical(other.count, count) || other.count == count)&&(identical(other.next, next) || other.next == next)&&(identical(other.previous, previous) || other.previous == previous)&&const DeepCollectionEquality().equals(other.results, results)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,count,next,previous,const DeepCollectionEquality().hash(results)); + +@override +String toString() { + return 'WaitingArrivalModel(count: $count, next: $next, previous: $previous, results: $results)'; +} + + +} + +/// @nodoc +abstract mixin class $WaitingArrivalModelCopyWith<$Res> { + factory $WaitingArrivalModelCopyWith(WaitingArrivalModel value, $Res Function(WaitingArrivalModel) _then) = _$WaitingArrivalModelCopyWithImpl; +@useResult +$Res call({ + int count, String? next, String? previous, List results +}); + + + + +} +/// @nodoc +class _$WaitingArrivalModelCopyWithImpl<$Res> + implements $WaitingArrivalModelCopyWith<$Res> { + _$WaitingArrivalModelCopyWithImpl(this._self, this._then); + + final WaitingArrivalModel _self; + final $Res Function(WaitingArrivalModel) _then; + +/// Create a copy of WaitingArrivalModel +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? count = null,Object? next = freezed,Object? previous = freezed,Object? results = null,}) { + return _then(_self.copyWith( +count: null == count ? _self.count : count // ignore: cast_nullable_to_non_nullable +as int,next: freezed == next ? _self.next : next // ignore: cast_nullable_to_non_nullable +as String?,previous: freezed == previous ? _self.previous : previous // ignore: cast_nullable_to_non_nullable +as String?,results: null == results ? _self.results : results // ignore: cast_nullable_to_non_nullable +as List, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _WaitingArrivalModel implements WaitingArrivalModel { + _WaitingArrivalModel({required this.count, this.next, this.previous, required final List results}): _results = results; + factory _WaitingArrivalModel.fromJson(Map json) => _$WaitingArrivalModelFromJson(json); + +@override final int count; +@override final String? next; +@override final String? previous; + final List _results; +@override List get results { + if (_results is EqualUnmodifiableListView) return _results; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(_results); +} + + +/// Create a copy of WaitingArrivalModel +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$WaitingArrivalModelCopyWith<_WaitingArrivalModel> get copyWith => __$WaitingArrivalModelCopyWithImpl<_WaitingArrivalModel>(this, _$identity); + +@override +Map toJson() { + return _$WaitingArrivalModelToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _WaitingArrivalModel&&(identical(other.count, count) || other.count == count)&&(identical(other.next, next) || other.next == next)&&(identical(other.previous, previous) || other.previous == previous)&&const DeepCollectionEquality().equals(other._results, _results)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,count,next,previous,const DeepCollectionEquality().hash(_results)); + +@override +String toString() { + return 'WaitingArrivalModel(count: $count, next: $next, previous: $previous, results: $results)'; +} + + +} + +/// @nodoc +abstract mixin class _$WaitingArrivalModelCopyWith<$Res> implements $WaitingArrivalModelCopyWith<$Res> { + factory _$WaitingArrivalModelCopyWith(_WaitingArrivalModel value, $Res Function(_WaitingArrivalModel) _then) = __$WaitingArrivalModelCopyWithImpl; +@override @useResult +$Res call({ + int count, String? next, String? previous, List results +}); + + + + +} +/// @nodoc +class __$WaitingArrivalModelCopyWithImpl<$Res> + implements _$WaitingArrivalModelCopyWith<$Res> { + __$WaitingArrivalModelCopyWithImpl(this._self, this._then); + + final _WaitingArrivalModel _self; + final $Res Function(_WaitingArrivalModel) _then; + +/// Create a copy of WaitingArrivalModel +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? count = null,Object? next = freezed,Object? previous = freezed,Object? results = null,}) { + return _then(_WaitingArrivalModel( +count: null == count ? _self.count : count // ignore: cast_nullable_to_non_nullable +as int,next: freezed == next ? _self.next : next // ignore: cast_nullable_to_non_nullable +as String?,previous: freezed == previous ? _self.previous : previous // ignore: cast_nullable_to_non_nullable +as String?,results: null == results ? _self._results : results // ignore: cast_nullable_to_non_nullable +as List, + )); +} + + +} + + +/// @nodoc +mixin _$ResultModel { + + int? get id; ProductModel? get product; KillHouseModel? get killHouse; dynamic get toKillHouse; dynamic get steward;@JsonKey(name: 'to_steward') ToStewardModel? get toSteward; dynamic get guilds; dynamic get toGuilds; dynamic get toColdHouse; int? get indexWeight; int? get dateTimestamp; int? get newState; int? get newReceiverState; int? get newAllocationState; String? get key; String? get createDate; String? get modifyDate; bool? get trash; int? get numberOfCarcasses; int? get realNumberOfCarcasses; int? get receiverRealNumberOfCarcasses; double? get weightOfCarcasses; double? get realWeightOfCarcasses; double? get receiverRealWeightOfCarcasses; double? get weightLossOfCarcasses; bool? get finalRegistration; String? get sellType; String? get productName; String? get sellerType; String? get type; String? get saleType; String? get allocationType; bool? get systemRegistrationCode; int? get registrationCode; int? get amount; int? get totalAmount; int? get totalAmountPaid; int? get totalAmountRemain; dynamic get loggedRegistrationCode; String? get state; String? get receiverState; String? get allocationState; String? get date; dynamic get role; dynamic get stewardTempKey; bool? get approvedPriceStatus; bool? get calculateStatus; bool? get temporaryTrash; bool? get temporaryDeleted; dynamic get createdBy; dynamic get modifiedBy; dynamic get wareHouse; dynamic get stewardWareHouse; dynamic get car; dynamic get dispenser; +/// Create a copy of ResultModel +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ResultModelCopyWith get copyWith => _$ResultModelCopyWithImpl(this as ResultModel, _$identity); + + /// Serializes this ResultModel to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is ResultModel&&(identical(other.id, id) || other.id == id)&&(identical(other.product, product) || other.product == product)&&(identical(other.killHouse, killHouse) || other.killHouse == killHouse)&&const DeepCollectionEquality().equals(other.toKillHouse, toKillHouse)&&const DeepCollectionEquality().equals(other.steward, steward)&&(identical(other.toSteward, toSteward) || other.toSteward == toSteward)&&const DeepCollectionEquality().equals(other.guilds, guilds)&&const DeepCollectionEquality().equals(other.toGuilds, toGuilds)&&const DeepCollectionEquality().equals(other.toColdHouse, toColdHouse)&&(identical(other.indexWeight, indexWeight) || other.indexWeight == indexWeight)&&(identical(other.dateTimestamp, dateTimestamp) || other.dateTimestamp == dateTimestamp)&&(identical(other.newState, newState) || other.newState == newState)&&(identical(other.newReceiverState, newReceiverState) || other.newReceiverState == newReceiverState)&&(identical(other.newAllocationState, newAllocationState) || other.newAllocationState == newAllocationState)&&(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.numberOfCarcasses, numberOfCarcasses) || other.numberOfCarcasses == numberOfCarcasses)&&(identical(other.realNumberOfCarcasses, realNumberOfCarcasses) || other.realNumberOfCarcasses == realNumberOfCarcasses)&&(identical(other.receiverRealNumberOfCarcasses, receiverRealNumberOfCarcasses) || other.receiverRealNumberOfCarcasses == receiverRealNumberOfCarcasses)&&(identical(other.weightOfCarcasses, weightOfCarcasses) || other.weightOfCarcasses == weightOfCarcasses)&&(identical(other.realWeightOfCarcasses, realWeightOfCarcasses) || other.realWeightOfCarcasses == realWeightOfCarcasses)&&(identical(other.receiverRealWeightOfCarcasses, receiverRealWeightOfCarcasses) || other.receiverRealWeightOfCarcasses == receiverRealWeightOfCarcasses)&&(identical(other.weightLossOfCarcasses, weightLossOfCarcasses) || other.weightLossOfCarcasses == weightLossOfCarcasses)&&(identical(other.finalRegistration, finalRegistration) || other.finalRegistration == finalRegistration)&&(identical(other.sellType, sellType) || other.sellType == sellType)&&(identical(other.productName, productName) || other.productName == productName)&&(identical(other.sellerType, sellerType) || other.sellerType == sellerType)&&(identical(other.type, type) || other.type == type)&&(identical(other.saleType, saleType) || other.saleType == saleType)&&(identical(other.allocationType, allocationType) || other.allocationType == allocationType)&&(identical(other.systemRegistrationCode, systemRegistrationCode) || other.systemRegistrationCode == systemRegistrationCode)&&(identical(other.registrationCode, registrationCode) || other.registrationCode == registrationCode)&&(identical(other.amount, amount) || other.amount == amount)&&(identical(other.totalAmount, totalAmount) || other.totalAmount == totalAmount)&&(identical(other.totalAmountPaid, totalAmountPaid) || other.totalAmountPaid == totalAmountPaid)&&(identical(other.totalAmountRemain, totalAmountRemain) || other.totalAmountRemain == totalAmountRemain)&&const DeepCollectionEquality().equals(other.loggedRegistrationCode, loggedRegistrationCode)&&(identical(other.state, state) || other.state == state)&&(identical(other.receiverState, receiverState) || other.receiverState == receiverState)&&(identical(other.allocationState, allocationState) || other.allocationState == allocationState)&&(identical(other.date, date) || other.date == date)&&const DeepCollectionEquality().equals(other.role, role)&&const DeepCollectionEquality().equals(other.stewardTempKey, stewardTempKey)&&(identical(other.approvedPriceStatus, approvedPriceStatus) || other.approvedPriceStatus == approvedPriceStatus)&&(identical(other.calculateStatus, calculateStatus) || other.calculateStatus == calculateStatus)&&(identical(other.temporaryTrash, temporaryTrash) || other.temporaryTrash == temporaryTrash)&&(identical(other.temporaryDeleted, temporaryDeleted) || other.temporaryDeleted == temporaryDeleted)&&const DeepCollectionEquality().equals(other.createdBy, createdBy)&&const DeepCollectionEquality().equals(other.modifiedBy, modifiedBy)&&const DeepCollectionEquality().equals(other.wareHouse, wareHouse)&&const DeepCollectionEquality().equals(other.stewardWareHouse, stewardWareHouse)&&const DeepCollectionEquality().equals(other.car, car)&&const DeepCollectionEquality().equals(other.dispenser, dispenser)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,id,product,killHouse,const DeepCollectionEquality().hash(toKillHouse),const DeepCollectionEquality().hash(steward),toSteward,const DeepCollectionEquality().hash(guilds),const DeepCollectionEquality().hash(toGuilds),const DeepCollectionEquality().hash(toColdHouse),indexWeight,dateTimestamp,newState,newReceiverState,newAllocationState,key,createDate,modifyDate,trash,numberOfCarcasses,realNumberOfCarcasses,receiverRealNumberOfCarcasses,weightOfCarcasses,realWeightOfCarcasses,receiverRealWeightOfCarcasses,weightLossOfCarcasses,finalRegistration,sellType,productName,sellerType,type,saleType,allocationType,systemRegistrationCode,registrationCode,amount,totalAmount,totalAmountPaid,totalAmountRemain,const DeepCollectionEquality().hash(loggedRegistrationCode),state,receiverState,allocationState,date,const DeepCollectionEquality().hash(role),const DeepCollectionEquality().hash(stewardTempKey),approvedPriceStatus,calculateStatus,temporaryTrash,temporaryDeleted,const DeepCollectionEquality().hash(createdBy),const DeepCollectionEquality().hash(modifiedBy),const DeepCollectionEquality().hash(wareHouse),const DeepCollectionEquality().hash(stewardWareHouse),const DeepCollectionEquality().hash(car),const DeepCollectionEquality().hash(dispenser)]); + +@override +String toString() { + return 'ResultModel(id: $id, product: $product, killHouse: $killHouse, toKillHouse: $toKillHouse, steward: $steward, toSteward: $toSteward, guilds: $guilds, toGuilds: $toGuilds, toColdHouse: $toColdHouse, indexWeight: $indexWeight, dateTimestamp: $dateTimestamp, newState: $newState, newReceiverState: $newReceiverState, newAllocationState: $newAllocationState, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, numberOfCarcasses: $numberOfCarcasses, realNumberOfCarcasses: $realNumberOfCarcasses, receiverRealNumberOfCarcasses: $receiverRealNumberOfCarcasses, weightOfCarcasses: $weightOfCarcasses, realWeightOfCarcasses: $realWeightOfCarcasses, receiverRealWeightOfCarcasses: $receiverRealWeightOfCarcasses, weightLossOfCarcasses: $weightLossOfCarcasses, finalRegistration: $finalRegistration, sellType: $sellType, productName: $productName, sellerType: $sellerType, type: $type, saleType: $saleType, allocationType: $allocationType, systemRegistrationCode: $systemRegistrationCode, registrationCode: $registrationCode, amount: $amount, totalAmount: $totalAmount, totalAmountPaid: $totalAmountPaid, totalAmountRemain: $totalAmountRemain, loggedRegistrationCode: $loggedRegistrationCode, state: $state, receiverState: $receiverState, allocationState: $allocationState, date: $date, role: $role, stewardTempKey: $stewardTempKey, approvedPriceStatus: $approvedPriceStatus, calculateStatus: $calculateStatus, temporaryTrash: $temporaryTrash, temporaryDeleted: $temporaryDeleted, createdBy: $createdBy, modifiedBy: $modifiedBy, wareHouse: $wareHouse, stewardWareHouse: $stewardWareHouse, car: $car, dispenser: $dispenser)'; +} + + +} + +/// @nodoc +abstract mixin class $ResultModelCopyWith<$Res> { + factory $ResultModelCopyWith(ResultModel value, $Res Function(ResultModel) _then) = _$ResultModelCopyWithImpl; +@useResult +$Res call({ + int? id, ProductModel? product, KillHouseModel? killHouse, dynamic toKillHouse, dynamic steward,@JsonKey(name: 'to_steward') ToStewardModel? toSteward, dynamic guilds, dynamic toGuilds, dynamic toColdHouse, int? indexWeight, int? dateTimestamp, int? newState, int? newReceiverState, int? newAllocationState, String? key, String? createDate, String? modifyDate, bool? trash, int? numberOfCarcasses, int? realNumberOfCarcasses, int? receiverRealNumberOfCarcasses, double? weightOfCarcasses, double? realWeightOfCarcasses, double? receiverRealWeightOfCarcasses, double? weightLossOfCarcasses, bool? finalRegistration, String? sellType, String? productName, String? sellerType, String? type, String? saleType, String? allocationType, bool? systemRegistrationCode, int? registrationCode, int? amount, int? totalAmount, int? totalAmountPaid, int? totalAmountRemain, dynamic loggedRegistrationCode, String? state, String? receiverState, String? allocationState, String? date, dynamic role, dynamic stewardTempKey, bool? approvedPriceStatus, bool? calculateStatus, bool? temporaryTrash, bool? temporaryDeleted, dynamic createdBy, dynamic modifiedBy, dynamic wareHouse, dynamic stewardWareHouse, dynamic car, dynamic dispenser +}); + + +$ProductModelCopyWith<$Res>? get product;$KillHouseModelCopyWith<$Res>? get killHouse;$ToStewardModelCopyWith<$Res>? get toSteward; + +} +/// @nodoc +class _$ResultModelCopyWithImpl<$Res> + implements $ResultModelCopyWith<$Res> { + _$ResultModelCopyWithImpl(this._self, this._then); + + final ResultModel _self; + final $Res Function(ResultModel) _then; + +/// Create a copy of ResultModel +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? product = freezed,Object? killHouse = freezed,Object? toKillHouse = freezed,Object? steward = freezed,Object? toSteward = freezed,Object? guilds = freezed,Object? toGuilds = freezed,Object? toColdHouse = freezed,Object? indexWeight = freezed,Object? dateTimestamp = freezed,Object? newState = freezed,Object? newReceiverState = freezed,Object? newAllocationState = freezed,Object? key = freezed,Object? createDate = freezed,Object? modifyDate = freezed,Object? trash = freezed,Object? numberOfCarcasses = freezed,Object? realNumberOfCarcasses = freezed,Object? receiverRealNumberOfCarcasses = freezed,Object? weightOfCarcasses = freezed,Object? realWeightOfCarcasses = freezed,Object? receiverRealWeightOfCarcasses = freezed,Object? weightLossOfCarcasses = freezed,Object? finalRegistration = freezed,Object? sellType = freezed,Object? productName = freezed,Object? sellerType = freezed,Object? type = freezed,Object? saleType = freezed,Object? allocationType = freezed,Object? systemRegistrationCode = freezed,Object? registrationCode = freezed,Object? amount = freezed,Object? totalAmount = freezed,Object? totalAmountPaid = freezed,Object? totalAmountRemain = freezed,Object? loggedRegistrationCode = freezed,Object? state = freezed,Object? receiverState = freezed,Object? allocationState = freezed,Object? date = freezed,Object? role = freezed,Object? stewardTempKey = freezed,Object? approvedPriceStatus = freezed,Object? calculateStatus = freezed,Object? temporaryTrash = freezed,Object? temporaryDeleted = freezed,Object? createdBy = freezed,Object? modifiedBy = freezed,Object? wareHouse = freezed,Object? stewardWareHouse = freezed,Object? car = freezed,Object? dispenser = freezed,}) { + return _then(_self.copyWith( +id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable +as int?,product: freezed == product ? _self.product : product // ignore: cast_nullable_to_non_nullable +as ProductModel?,killHouse: freezed == killHouse ? _self.killHouse : killHouse // ignore: cast_nullable_to_non_nullable +as KillHouseModel?,toKillHouse: freezed == toKillHouse ? _self.toKillHouse : toKillHouse // ignore: cast_nullable_to_non_nullable +as dynamic,steward: freezed == steward ? _self.steward : steward // ignore: cast_nullable_to_non_nullable +as dynamic,toSteward: freezed == toSteward ? _self.toSteward : toSteward // ignore: cast_nullable_to_non_nullable +as ToStewardModel?,guilds: freezed == guilds ? _self.guilds : guilds // ignore: cast_nullable_to_non_nullable +as dynamic,toGuilds: freezed == toGuilds ? _self.toGuilds : toGuilds // ignore: cast_nullable_to_non_nullable +as dynamic,toColdHouse: freezed == toColdHouse ? _self.toColdHouse : toColdHouse // ignore: cast_nullable_to_non_nullable +as dynamic,indexWeight: freezed == indexWeight ? _self.indexWeight : indexWeight // ignore: cast_nullable_to_non_nullable +as int?,dateTimestamp: freezed == dateTimestamp ? _self.dateTimestamp : dateTimestamp // ignore: cast_nullable_to_non_nullable +as int?,newState: freezed == newState ? _self.newState : newState // ignore: cast_nullable_to_non_nullable +as int?,newReceiverState: freezed == newReceiverState ? _self.newReceiverState : newReceiverState // ignore: cast_nullable_to_non_nullable +as int?,newAllocationState: freezed == newAllocationState ? _self.newAllocationState : newAllocationState // 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?,numberOfCarcasses: freezed == numberOfCarcasses ? _self.numberOfCarcasses : numberOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?,realNumberOfCarcasses: freezed == realNumberOfCarcasses ? _self.realNumberOfCarcasses : realNumberOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?,receiverRealNumberOfCarcasses: freezed == receiverRealNumberOfCarcasses ? _self.receiverRealNumberOfCarcasses : receiverRealNumberOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?,weightOfCarcasses: freezed == weightOfCarcasses ? _self.weightOfCarcasses : weightOfCarcasses // ignore: cast_nullable_to_non_nullable +as double?,realWeightOfCarcasses: freezed == realWeightOfCarcasses ? _self.realWeightOfCarcasses : realWeightOfCarcasses // ignore: cast_nullable_to_non_nullable +as double?,receiverRealWeightOfCarcasses: freezed == receiverRealWeightOfCarcasses ? _self.receiverRealWeightOfCarcasses : receiverRealWeightOfCarcasses // ignore: cast_nullable_to_non_nullable +as double?,weightLossOfCarcasses: freezed == weightLossOfCarcasses ? _self.weightLossOfCarcasses : weightLossOfCarcasses // ignore: cast_nullable_to_non_nullable +as double?,finalRegistration: freezed == finalRegistration ? _self.finalRegistration : finalRegistration // ignore: cast_nullable_to_non_nullable +as bool?,sellType: freezed == sellType ? _self.sellType : sellType // ignore: cast_nullable_to_non_nullable +as String?,productName: freezed == productName ? _self.productName : productName // ignore: cast_nullable_to_non_nullable +as String?,sellerType: freezed == sellerType ? _self.sellerType : sellerType // ignore: cast_nullable_to_non_nullable +as String?,type: freezed == type ? _self.type : type // ignore: cast_nullable_to_non_nullable +as String?,saleType: freezed == saleType ? _self.saleType : saleType // ignore: cast_nullable_to_non_nullable +as String?,allocationType: freezed == allocationType ? _self.allocationType : allocationType // ignore: cast_nullable_to_non_nullable +as String?,systemRegistrationCode: freezed == systemRegistrationCode ? _self.systemRegistrationCode : systemRegistrationCode // ignore: cast_nullable_to_non_nullable +as bool?,registrationCode: freezed == registrationCode ? _self.registrationCode : registrationCode // ignore: cast_nullable_to_non_nullable +as int?,amount: freezed == amount ? _self.amount : amount // ignore: cast_nullable_to_non_nullable +as int?,totalAmount: freezed == totalAmount ? _self.totalAmount : totalAmount // ignore: cast_nullable_to_non_nullable +as int?,totalAmountPaid: freezed == totalAmountPaid ? _self.totalAmountPaid : totalAmountPaid // ignore: cast_nullable_to_non_nullable +as int?,totalAmountRemain: freezed == totalAmountRemain ? _self.totalAmountRemain : totalAmountRemain // ignore: cast_nullable_to_non_nullable +as int?,loggedRegistrationCode: freezed == loggedRegistrationCode ? _self.loggedRegistrationCode : loggedRegistrationCode // ignore: cast_nullable_to_non_nullable +as dynamic,state: freezed == state ? _self.state : state // ignore: cast_nullable_to_non_nullable +as String?,receiverState: freezed == receiverState ? _self.receiverState : receiverState // ignore: cast_nullable_to_non_nullable +as String?,allocationState: freezed == allocationState ? _self.allocationState : allocationState // ignore: cast_nullable_to_non_nullable +as String?,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 dynamic,stewardTempKey: freezed == stewardTempKey ? _self.stewardTempKey : stewardTempKey // ignore: cast_nullable_to_non_nullable +as dynamic,approvedPriceStatus: freezed == approvedPriceStatus ? _self.approvedPriceStatus : approvedPriceStatus // ignore: cast_nullable_to_non_nullable +as bool?,calculateStatus: freezed == calculateStatus ? _self.calculateStatus : calculateStatus // ignore: cast_nullable_to_non_nullable +as bool?,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?,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,wareHouse: freezed == wareHouse ? _self.wareHouse : wareHouse // ignore: cast_nullable_to_non_nullable +as dynamic,stewardWareHouse: freezed == stewardWareHouse ? _self.stewardWareHouse : stewardWareHouse // ignore: cast_nullable_to_non_nullable +as dynamic,car: freezed == car ? _self.car : car // ignore: cast_nullable_to_non_nullable +as dynamic,dispenser: freezed == dispenser ? _self.dispenser : dispenser // ignore: cast_nullable_to_non_nullable +as dynamic, + )); +} +/// Create a copy of ResultModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ProductModelCopyWith<$Res>? get product { + if (_self.product == null) { + return null; + } + + return $ProductModelCopyWith<$Res>(_self.product!, (value) { + return _then(_self.copyWith(product: value)); + }); +}/// Create a copy of ResultModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$KillHouseModelCopyWith<$Res>? get killHouse { + if (_self.killHouse == null) { + return null; + } + + return $KillHouseModelCopyWith<$Res>(_self.killHouse!, (value) { + return _then(_self.copyWith(killHouse: value)); + }); +}/// Create a copy of ResultModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ToStewardModelCopyWith<$Res>? get toSteward { + if (_self.toSteward == null) { + return null; + } + + return $ToStewardModelCopyWith<$Res>(_self.toSteward!, (value) { + return _then(_self.copyWith(toSteward: value)); + }); +} +} + + +/// @nodoc +@JsonSerializable() + +class _ResultModel implements ResultModel { + _ResultModel({this.id, this.product, this.killHouse, this.toKillHouse, this.steward, @JsonKey(name: 'to_steward') this.toSteward, this.guilds, this.toGuilds, this.toColdHouse, this.indexWeight, this.dateTimestamp, this.newState, this.newReceiverState, this.newAllocationState, this.key, this.createDate, this.modifyDate, this.trash, this.numberOfCarcasses, this.realNumberOfCarcasses, this.receiverRealNumberOfCarcasses, this.weightOfCarcasses, this.realWeightOfCarcasses, this.receiverRealWeightOfCarcasses, this.weightLossOfCarcasses, this.finalRegistration, this.sellType, this.productName, this.sellerType, this.type, this.saleType, this.allocationType, this.systemRegistrationCode, this.registrationCode, this.amount, this.totalAmount, this.totalAmountPaid, this.totalAmountRemain, this.loggedRegistrationCode, this.state, this.receiverState, this.allocationState, this.date, this.role, this.stewardTempKey, this.approvedPriceStatus, this.calculateStatus, this.temporaryTrash, this.temporaryDeleted, this.createdBy, this.modifiedBy, this.wareHouse, this.stewardWareHouse, this.car, this.dispenser}); + factory _ResultModel.fromJson(Map json) => _$ResultModelFromJson(json); + +@override final int? id; +@override final ProductModel? product; +@override final KillHouseModel? killHouse; +@override final dynamic toKillHouse; +@override final dynamic steward; +@override@JsonKey(name: 'to_steward') final ToStewardModel? toSteward; +@override final dynamic guilds; +@override final dynamic toGuilds; +@override final dynamic toColdHouse; +@override final int? indexWeight; +@override final int? dateTimestamp; +@override final int? newState; +@override final int? newReceiverState; +@override final int? newAllocationState; +@override final String? key; +@override final String? createDate; +@override final String? modifyDate; +@override final bool? trash; +@override final int? numberOfCarcasses; +@override final int? realNumberOfCarcasses; +@override final int? receiverRealNumberOfCarcasses; +@override final double? weightOfCarcasses; +@override final double? realWeightOfCarcasses; +@override final double? receiverRealWeightOfCarcasses; +@override final double? weightLossOfCarcasses; +@override final bool? finalRegistration; +@override final String? sellType; +@override final String? productName; +@override final String? sellerType; +@override final String? type; +@override final String? saleType; +@override final String? allocationType; +@override final bool? systemRegistrationCode; +@override final int? registrationCode; +@override final int? amount; +@override final int? totalAmount; +@override final int? totalAmountPaid; +@override final int? totalAmountRemain; +@override final dynamic loggedRegistrationCode; +@override final String? state; +@override final String? receiverState; +@override final String? allocationState; +@override final String? date; +@override final dynamic role; +@override final dynamic stewardTempKey; +@override final bool? approvedPriceStatus; +@override final bool? calculateStatus; +@override final bool? temporaryTrash; +@override final bool? temporaryDeleted; +@override final dynamic createdBy; +@override final dynamic modifiedBy; +@override final dynamic wareHouse; +@override final dynamic stewardWareHouse; +@override final dynamic car; +@override final dynamic dispenser; + +/// Create a copy of ResultModel +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ResultModelCopyWith<_ResultModel> get copyWith => __$ResultModelCopyWithImpl<_ResultModel>(this, _$identity); + +@override +Map toJson() { + return _$ResultModelToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _ResultModel&&(identical(other.id, id) || other.id == id)&&(identical(other.product, product) || other.product == product)&&(identical(other.killHouse, killHouse) || other.killHouse == killHouse)&&const DeepCollectionEquality().equals(other.toKillHouse, toKillHouse)&&const DeepCollectionEquality().equals(other.steward, steward)&&(identical(other.toSteward, toSteward) || other.toSteward == toSteward)&&const DeepCollectionEquality().equals(other.guilds, guilds)&&const DeepCollectionEquality().equals(other.toGuilds, toGuilds)&&const DeepCollectionEquality().equals(other.toColdHouse, toColdHouse)&&(identical(other.indexWeight, indexWeight) || other.indexWeight == indexWeight)&&(identical(other.dateTimestamp, dateTimestamp) || other.dateTimestamp == dateTimestamp)&&(identical(other.newState, newState) || other.newState == newState)&&(identical(other.newReceiverState, newReceiverState) || other.newReceiverState == newReceiverState)&&(identical(other.newAllocationState, newAllocationState) || other.newAllocationState == newAllocationState)&&(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.numberOfCarcasses, numberOfCarcasses) || other.numberOfCarcasses == numberOfCarcasses)&&(identical(other.realNumberOfCarcasses, realNumberOfCarcasses) || other.realNumberOfCarcasses == realNumberOfCarcasses)&&(identical(other.receiverRealNumberOfCarcasses, receiverRealNumberOfCarcasses) || other.receiverRealNumberOfCarcasses == receiverRealNumberOfCarcasses)&&(identical(other.weightOfCarcasses, weightOfCarcasses) || other.weightOfCarcasses == weightOfCarcasses)&&(identical(other.realWeightOfCarcasses, realWeightOfCarcasses) || other.realWeightOfCarcasses == realWeightOfCarcasses)&&(identical(other.receiverRealWeightOfCarcasses, receiverRealWeightOfCarcasses) || other.receiverRealWeightOfCarcasses == receiverRealWeightOfCarcasses)&&(identical(other.weightLossOfCarcasses, weightLossOfCarcasses) || other.weightLossOfCarcasses == weightLossOfCarcasses)&&(identical(other.finalRegistration, finalRegistration) || other.finalRegistration == finalRegistration)&&(identical(other.sellType, sellType) || other.sellType == sellType)&&(identical(other.productName, productName) || other.productName == productName)&&(identical(other.sellerType, sellerType) || other.sellerType == sellerType)&&(identical(other.type, type) || other.type == type)&&(identical(other.saleType, saleType) || other.saleType == saleType)&&(identical(other.allocationType, allocationType) || other.allocationType == allocationType)&&(identical(other.systemRegistrationCode, systemRegistrationCode) || other.systemRegistrationCode == systemRegistrationCode)&&(identical(other.registrationCode, registrationCode) || other.registrationCode == registrationCode)&&(identical(other.amount, amount) || other.amount == amount)&&(identical(other.totalAmount, totalAmount) || other.totalAmount == totalAmount)&&(identical(other.totalAmountPaid, totalAmountPaid) || other.totalAmountPaid == totalAmountPaid)&&(identical(other.totalAmountRemain, totalAmountRemain) || other.totalAmountRemain == totalAmountRemain)&&const DeepCollectionEquality().equals(other.loggedRegistrationCode, loggedRegistrationCode)&&(identical(other.state, state) || other.state == state)&&(identical(other.receiverState, receiverState) || other.receiverState == receiverState)&&(identical(other.allocationState, allocationState) || other.allocationState == allocationState)&&(identical(other.date, date) || other.date == date)&&const DeepCollectionEquality().equals(other.role, role)&&const DeepCollectionEquality().equals(other.stewardTempKey, stewardTempKey)&&(identical(other.approvedPriceStatus, approvedPriceStatus) || other.approvedPriceStatus == approvedPriceStatus)&&(identical(other.calculateStatus, calculateStatus) || other.calculateStatus == calculateStatus)&&(identical(other.temporaryTrash, temporaryTrash) || other.temporaryTrash == temporaryTrash)&&(identical(other.temporaryDeleted, temporaryDeleted) || other.temporaryDeleted == temporaryDeleted)&&const DeepCollectionEquality().equals(other.createdBy, createdBy)&&const DeepCollectionEquality().equals(other.modifiedBy, modifiedBy)&&const DeepCollectionEquality().equals(other.wareHouse, wareHouse)&&const DeepCollectionEquality().equals(other.stewardWareHouse, stewardWareHouse)&&const DeepCollectionEquality().equals(other.car, car)&&const DeepCollectionEquality().equals(other.dispenser, dispenser)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,id,product,killHouse,const DeepCollectionEquality().hash(toKillHouse),const DeepCollectionEquality().hash(steward),toSteward,const DeepCollectionEquality().hash(guilds),const DeepCollectionEquality().hash(toGuilds),const DeepCollectionEquality().hash(toColdHouse),indexWeight,dateTimestamp,newState,newReceiverState,newAllocationState,key,createDate,modifyDate,trash,numberOfCarcasses,realNumberOfCarcasses,receiverRealNumberOfCarcasses,weightOfCarcasses,realWeightOfCarcasses,receiverRealWeightOfCarcasses,weightLossOfCarcasses,finalRegistration,sellType,productName,sellerType,type,saleType,allocationType,systemRegistrationCode,registrationCode,amount,totalAmount,totalAmountPaid,totalAmountRemain,const DeepCollectionEquality().hash(loggedRegistrationCode),state,receiverState,allocationState,date,const DeepCollectionEquality().hash(role),const DeepCollectionEquality().hash(stewardTempKey),approvedPriceStatus,calculateStatus,temporaryTrash,temporaryDeleted,const DeepCollectionEquality().hash(createdBy),const DeepCollectionEquality().hash(modifiedBy),const DeepCollectionEquality().hash(wareHouse),const DeepCollectionEquality().hash(stewardWareHouse),const DeepCollectionEquality().hash(car),const DeepCollectionEquality().hash(dispenser)]); + +@override +String toString() { + return 'ResultModel(id: $id, product: $product, killHouse: $killHouse, toKillHouse: $toKillHouse, steward: $steward, toSteward: $toSteward, guilds: $guilds, toGuilds: $toGuilds, toColdHouse: $toColdHouse, indexWeight: $indexWeight, dateTimestamp: $dateTimestamp, newState: $newState, newReceiverState: $newReceiverState, newAllocationState: $newAllocationState, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, numberOfCarcasses: $numberOfCarcasses, realNumberOfCarcasses: $realNumberOfCarcasses, receiverRealNumberOfCarcasses: $receiverRealNumberOfCarcasses, weightOfCarcasses: $weightOfCarcasses, realWeightOfCarcasses: $realWeightOfCarcasses, receiverRealWeightOfCarcasses: $receiverRealWeightOfCarcasses, weightLossOfCarcasses: $weightLossOfCarcasses, finalRegistration: $finalRegistration, sellType: $sellType, productName: $productName, sellerType: $sellerType, type: $type, saleType: $saleType, allocationType: $allocationType, systemRegistrationCode: $systemRegistrationCode, registrationCode: $registrationCode, amount: $amount, totalAmount: $totalAmount, totalAmountPaid: $totalAmountPaid, totalAmountRemain: $totalAmountRemain, loggedRegistrationCode: $loggedRegistrationCode, state: $state, receiverState: $receiverState, allocationState: $allocationState, date: $date, role: $role, stewardTempKey: $stewardTempKey, approvedPriceStatus: $approvedPriceStatus, calculateStatus: $calculateStatus, temporaryTrash: $temporaryTrash, temporaryDeleted: $temporaryDeleted, createdBy: $createdBy, modifiedBy: $modifiedBy, wareHouse: $wareHouse, stewardWareHouse: $stewardWareHouse, car: $car, dispenser: $dispenser)'; +} + + +} + +/// @nodoc +abstract mixin class _$ResultModelCopyWith<$Res> implements $ResultModelCopyWith<$Res> { + factory _$ResultModelCopyWith(_ResultModel value, $Res Function(_ResultModel) _then) = __$ResultModelCopyWithImpl; +@override @useResult +$Res call({ + int? id, ProductModel? product, KillHouseModel? killHouse, dynamic toKillHouse, dynamic steward,@JsonKey(name: 'to_steward') ToStewardModel? toSteward, dynamic guilds, dynamic toGuilds, dynamic toColdHouse, int? indexWeight, int? dateTimestamp, int? newState, int? newReceiverState, int? newAllocationState, String? key, String? createDate, String? modifyDate, bool? trash, int? numberOfCarcasses, int? realNumberOfCarcasses, int? receiverRealNumberOfCarcasses, double? weightOfCarcasses, double? realWeightOfCarcasses, double? receiverRealWeightOfCarcasses, double? weightLossOfCarcasses, bool? finalRegistration, String? sellType, String? productName, String? sellerType, String? type, String? saleType, String? allocationType, bool? systemRegistrationCode, int? registrationCode, int? amount, int? totalAmount, int? totalAmountPaid, int? totalAmountRemain, dynamic loggedRegistrationCode, String? state, String? receiverState, String? allocationState, String? date, dynamic role, dynamic stewardTempKey, bool? approvedPriceStatus, bool? calculateStatus, bool? temporaryTrash, bool? temporaryDeleted, dynamic createdBy, dynamic modifiedBy, dynamic wareHouse, dynamic stewardWareHouse, dynamic car, dynamic dispenser +}); + + +@override $ProductModelCopyWith<$Res>? get product;@override $KillHouseModelCopyWith<$Res>? get killHouse;@override $ToStewardModelCopyWith<$Res>? get toSteward; + +} +/// @nodoc +class __$ResultModelCopyWithImpl<$Res> + implements _$ResultModelCopyWith<$Res> { + __$ResultModelCopyWithImpl(this._self, this._then); + + final _ResultModel _self; + final $Res Function(_ResultModel) _then; + +/// Create a copy of ResultModel +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? product = freezed,Object? killHouse = freezed,Object? toKillHouse = freezed,Object? steward = freezed,Object? toSteward = freezed,Object? guilds = freezed,Object? toGuilds = freezed,Object? toColdHouse = freezed,Object? indexWeight = freezed,Object? dateTimestamp = freezed,Object? newState = freezed,Object? newReceiverState = freezed,Object? newAllocationState = freezed,Object? key = freezed,Object? createDate = freezed,Object? modifyDate = freezed,Object? trash = freezed,Object? numberOfCarcasses = freezed,Object? realNumberOfCarcasses = freezed,Object? receiverRealNumberOfCarcasses = freezed,Object? weightOfCarcasses = freezed,Object? realWeightOfCarcasses = freezed,Object? receiverRealWeightOfCarcasses = freezed,Object? weightLossOfCarcasses = freezed,Object? finalRegistration = freezed,Object? sellType = freezed,Object? productName = freezed,Object? sellerType = freezed,Object? type = freezed,Object? saleType = freezed,Object? allocationType = freezed,Object? systemRegistrationCode = freezed,Object? registrationCode = freezed,Object? amount = freezed,Object? totalAmount = freezed,Object? totalAmountPaid = freezed,Object? totalAmountRemain = freezed,Object? loggedRegistrationCode = freezed,Object? state = freezed,Object? receiverState = freezed,Object? allocationState = freezed,Object? date = freezed,Object? role = freezed,Object? stewardTempKey = freezed,Object? approvedPriceStatus = freezed,Object? calculateStatus = freezed,Object? temporaryTrash = freezed,Object? temporaryDeleted = freezed,Object? createdBy = freezed,Object? modifiedBy = freezed,Object? wareHouse = freezed,Object? stewardWareHouse = freezed,Object? car = freezed,Object? dispenser = freezed,}) { + return _then(_ResultModel( +id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable +as int?,product: freezed == product ? _self.product : product // ignore: cast_nullable_to_non_nullable +as ProductModel?,killHouse: freezed == killHouse ? _self.killHouse : killHouse // ignore: cast_nullable_to_non_nullable +as KillHouseModel?,toKillHouse: freezed == toKillHouse ? _self.toKillHouse : toKillHouse // ignore: cast_nullable_to_non_nullable +as dynamic,steward: freezed == steward ? _self.steward : steward // ignore: cast_nullable_to_non_nullable +as dynamic,toSteward: freezed == toSteward ? _self.toSteward : toSteward // ignore: cast_nullable_to_non_nullable +as ToStewardModel?,guilds: freezed == guilds ? _self.guilds : guilds // ignore: cast_nullable_to_non_nullable +as dynamic,toGuilds: freezed == toGuilds ? _self.toGuilds : toGuilds // ignore: cast_nullable_to_non_nullable +as dynamic,toColdHouse: freezed == toColdHouse ? _self.toColdHouse : toColdHouse // ignore: cast_nullable_to_non_nullable +as dynamic,indexWeight: freezed == indexWeight ? _self.indexWeight : indexWeight // ignore: cast_nullable_to_non_nullable +as int?,dateTimestamp: freezed == dateTimestamp ? _self.dateTimestamp : dateTimestamp // ignore: cast_nullable_to_non_nullable +as int?,newState: freezed == newState ? _self.newState : newState // ignore: cast_nullable_to_non_nullable +as int?,newReceiverState: freezed == newReceiverState ? _self.newReceiverState : newReceiverState // ignore: cast_nullable_to_non_nullable +as int?,newAllocationState: freezed == newAllocationState ? _self.newAllocationState : newAllocationState // 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?,numberOfCarcasses: freezed == numberOfCarcasses ? _self.numberOfCarcasses : numberOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?,realNumberOfCarcasses: freezed == realNumberOfCarcasses ? _self.realNumberOfCarcasses : realNumberOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?,receiverRealNumberOfCarcasses: freezed == receiverRealNumberOfCarcasses ? _self.receiverRealNumberOfCarcasses : receiverRealNumberOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?,weightOfCarcasses: freezed == weightOfCarcasses ? _self.weightOfCarcasses : weightOfCarcasses // ignore: cast_nullable_to_non_nullable +as double?,realWeightOfCarcasses: freezed == realWeightOfCarcasses ? _self.realWeightOfCarcasses : realWeightOfCarcasses // ignore: cast_nullable_to_non_nullable +as double?,receiverRealWeightOfCarcasses: freezed == receiverRealWeightOfCarcasses ? _self.receiverRealWeightOfCarcasses : receiverRealWeightOfCarcasses // ignore: cast_nullable_to_non_nullable +as double?,weightLossOfCarcasses: freezed == weightLossOfCarcasses ? _self.weightLossOfCarcasses : weightLossOfCarcasses // ignore: cast_nullable_to_non_nullable +as double?,finalRegistration: freezed == finalRegistration ? _self.finalRegistration : finalRegistration // ignore: cast_nullable_to_non_nullable +as bool?,sellType: freezed == sellType ? _self.sellType : sellType // ignore: cast_nullable_to_non_nullable +as String?,productName: freezed == productName ? _self.productName : productName // ignore: cast_nullable_to_non_nullable +as String?,sellerType: freezed == sellerType ? _self.sellerType : sellerType // ignore: cast_nullable_to_non_nullable +as String?,type: freezed == type ? _self.type : type // ignore: cast_nullable_to_non_nullable +as String?,saleType: freezed == saleType ? _self.saleType : saleType // ignore: cast_nullable_to_non_nullable +as String?,allocationType: freezed == allocationType ? _self.allocationType : allocationType // ignore: cast_nullable_to_non_nullable +as String?,systemRegistrationCode: freezed == systemRegistrationCode ? _self.systemRegistrationCode : systemRegistrationCode // ignore: cast_nullable_to_non_nullable +as bool?,registrationCode: freezed == registrationCode ? _self.registrationCode : registrationCode // ignore: cast_nullable_to_non_nullable +as int?,amount: freezed == amount ? _self.amount : amount // ignore: cast_nullable_to_non_nullable +as int?,totalAmount: freezed == totalAmount ? _self.totalAmount : totalAmount // ignore: cast_nullable_to_non_nullable +as int?,totalAmountPaid: freezed == totalAmountPaid ? _self.totalAmountPaid : totalAmountPaid // ignore: cast_nullable_to_non_nullable +as int?,totalAmountRemain: freezed == totalAmountRemain ? _self.totalAmountRemain : totalAmountRemain // ignore: cast_nullable_to_non_nullable +as int?,loggedRegistrationCode: freezed == loggedRegistrationCode ? _self.loggedRegistrationCode : loggedRegistrationCode // ignore: cast_nullable_to_non_nullable +as dynamic,state: freezed == state ? _self.state : state // ignore: cast_nullable_to_non_nullable +as String?,receiverState: freezed == receiverState ? _self.receiverState : receiverState // ignore: cast_nullable_to_non_nullable +as String?,allocationState: freezed == allocationState ? _self.allocationState : allocationState // ignore: cast_nullable_to_non_nullable +as String?,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 dynamic,stewardTempKey: freezed == stewardTempKey ? _self.stewardTempKey : stewardTempKey // ignore: cast_nullable_to_non_nullable +as dynamic,approvedPriceStatus: freezed == approvedPriceStatus ? _self.approvedPriceStatus : approvedPriceStatus // ignore: cast_nullable_to_non_nullable +as bool?,calculateStatus: freezed == calculateStatus ? _self.calculateStatus : calculateStatus // ignore: cast_nullable_to_non_nullable +as bool?,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?,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,wareHouse: freezed == wareHouse ? _self.wareHouse : wareHouse // ignore: cast_nullable_to_non_nullable +as dynamic,stewardWareHouse: freezed == stewardWareHouse ? _self.stewardWareHouse : stewardWareHouse // ignore: cast_nullable_to_non_nullable +as dynamic,car: freezed == car ? _self.car : car // ignore: cast_nullable_to_non_nullable +as dynamic,dispenser: freezed == dispenser ? _self.dispenser : dispenser // ignore: cast_nullable_to_non_nullable +as dynamic, + )); +} + +/// Create a copy of ResultModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ProductModelCopyWith<$Res>? get product { + if (_self.product == null) { + return null; + } + + return $ProductModelCopyWith<$Res>(_self.product!, (value) { + return _then(_self.copyWith(product: value)); + }); +}/// Create a copy of ResultModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$KillHouseModelCopyWith<$Res>? get killHouse { + if (_self.killHouse == null) { + return null; + } + + return $KillHouseModelCopyWith<$Res>(_self.killHouse!, (value) { + return _then(_self.copyWith(killHouse: value)); + }); +}/// Create a copy of ResultModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ToStewardModelCopyWith<$Res>? get toSteward { + if (_self.toSteward == null) { + return null; + } + + return $ToStewardModelCopyWith<$Res>(_self.toSteward!, (value) { + return _then(_self.copyWith(toSteward: value)); + }); +} +} + + +/// @nodoc +mixin _$ProductModel { + + double? get weightAverage; +/// Create a copy of ProductModel +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ProductModelCopyWith get copyWith => _$ProductModelCopyWithImpl(this as ProductModel, _$identity); + + /// Serializes this ProductModel to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is ProductModel&&(identical(other.weightAverage, weightAverage) || other.weightAverage == weightAverage)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,weightAverage); + +@override +String toString() { + return 'ProductModel(weightAverage: $weightAverage)'; +} + + +} + +/// @nodoc +abstract mixin class $ProductModelCopyWith<$Res> { + factory $ProductModelCopyWith(ProductModel value, $Res Function(ProductModel) _then) = _$ProductModelCopyWithImpl; +@useResult +$Res call({ + double? weightAverage +}); + + + + +} +/// @nodoc +class _$ProductModelCopyWithImpl<$Res> + implements $ProductModelCopyWith<$Res> { + _$ProductModelCopyWithImpl(this._self, this._then); + + final ProductModel _self; + final $Res Function(ProductModel) _then; + +/// Create a copy of ProductModel +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? weightAverage = freezed,}) { + return _then(_self.copyWith( +weightAverage: freezed == weightAverage ? _self.weightAverage : weightAverage // ignore: cast_nullable_to_non_nullable +as double?, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _ProductModel implements ProductModel { + _ProductModel({this.weightAverage}); + factory _ProductModel.fromJson(Map json) => _$ProductModelFromJson(json); + +@override final double? weightAverage; + +/// Create a copy of ProductModel +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ProductModelCopyWith<_ProductModel> get copyWith => __$ProductModelCopyWithImpl<_ProductModel>(this, _$identity); + +@override +Map toJson() { + return _$ProductModelToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _ProductModel&&(identical(other.weightAverage, weightAverage) || other.weightAverage == weightAverage)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,weightAverage); + +@override +String toString() { + return 'ProductModel(weightAverage: $weightAverage)'; +} + + +} + +/// @nodoc +abstract mixin class _$ProductModelCopyWith<$Res> implements $ProductModelCopyWith<$Res> { + factory _$ProductModelCopyWith(_ProductModel value, $Res Function(_ProductModel) _then) = __$ProductModelCopyWithImpl; +@override @useResult +$Res call({ + double? weightAverage +}); + + + + +} +/// @nodoc +class __$ProductModelCopyWithImpl<$Res> + implements _$ProductModelCopyWith<$Res> { + __$ProductModelCopyWithImpl(this._self, this._then); + + final _ProductModel _self; + final $Res Function(_ProductModel) _then; + +/// Create a copy of ProductModel +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? weightAverage = freezed,}) { + return _then(_ProductModel( +weightAverage: freezed == weightAverage ? _self.weightAverage : weightAverage // ignore: cast_nullable_to_non_nullable +as double?, + )); +} + + +} + + +/// @nodoc +mixin _$ToStewardModel { + + int? get id; ToStewardUserModel? get user; AddressModel? get address; GuildAreaActivityModel? get guildAreaActivity; GuildTypeActivityModel? get guildTypeActivity; List? get killHouse; List? get stewardKillHouse; List? get stewards; GetPosStatusModel? get getPosStatus; String? get key;@JsonKey(name: 'create_date') String? get createDate;@JsonKey(name: 'modify_date') String? get modifyDate; bool? get trash; bool? get active; String? get guildsId; String? get licenseNumber; String? get guildsName; String? get typeActivity; String? get areaActivity; bool? get steward; bool? get hasPos; String? get provinceAcceptState; +/// Create a copy of ToStewardModel +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ToStewardModelCopyWith get copyWith => _$ToStewardModelCopyWithImpl(this as ToStewardModel, _$identity); + + /// Serializes this ToStewardModel to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is ToStewardModel&&(identical(other.id, id) || other.id == id)&&(identical(other.user, user) || other.user == user)&&(identical(other.address, address) || other.address == address)&&(identical(other.guildAreaActivity, guildAreaActivity) || other.guildAreaActivity == guildAreaActivity)&&(identical(other.guildTypeActivity, guildTypeActivity) || other.guildTypeActivity == guildTypeActivity)&&const DeepCollectionEquality().equals(other.killHouse, killHouse)&&const DeepCollectionEquality().equals(other.stewardKillHouse, stewardKillHouse)&&const DeepCollectionEquality().equals(other.stewards, stewards)&&(identical(other.getPosStatus, getPosStatus) || other.getPosStatus == getPosStatus)&&(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.active, active) || other.active == active)&&(identical(other.guildsId, guildsId) || other.guildsId == guildsId)&&(identical(other.licenseNumber, licenseNumber) || other.licenseNumber == licenseNumber)&&(identical(other.guildsName, guildsName) || other.guildsName == guildsName)&&(identical(other.typeActivity, typeActivity) || other.typeActivity == typeActivity)&&(identical(other.areaActivity, areaActivity) || other.areaActivity == areaActivity)&&(identical(other.steward, steward) || other.steward == steward)&&(identical(other.hasPos, hasPos) || other.hasPos == hasPos)&&(identical(other.provinceAcceptState, provinceAcceptState) || other.provinceAcceptState == provinceAcceptState)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,id,user,address,guildAreaActivity,guildTypeActivity,const DeepCollectionEquality().hash(killHouse),const DeepCollectionEquality().hash(stewardKillHouse),const DeepCollectionEquality().hash(stewards),getPosStatus,key,createDate,modifyDate,trash,active,guildsId,licenseNumber,guildsName,typeActivity,areaActivity,steward,hasPos,provinceAcceptState]); + +@override +String toString() { + return 'ToStewardModel(id: $id, user: $user, address: $address, guildAreaActivity: $guildAreaActivity, guildTypeActivity: $guildTypeActivity, killHouse: $killHouse, stewardKillHouse: $stewardKillHouse, stewards: $stewards, getPosStatus: $getPosStatus, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, active: $active, guildsId: $guildsId, licenseNumber: $licenseNumber, guildsName: $guildsName, typeActivity: $typeActivity, areaActivity: $areaActivity, steward: $steward, hasPos: $hasPos, provinceAcceptState: $provinceAcceptState)'; +} + + +} + +/// @nodoc +abstract mixin class $ToStewardModelCopyWith<$Res> { + factory $ToStewardModelCopyWith(ToStewardModel value, $Res Function(ToStewardModel) _then) = _$ToStewardModelCopyWithImpl; +@useResult +$Res call({ + int? id, ToStewardUserModel? user, AddressModel? address, GuildAreaActivityModel? guildAreaActivity, GuildTypeActivityModel? guildTypeActivity, List? killHouse, List? stewardKillHouse, List? stewards, GetPosStatusModel? getPosStatus, String? key,@JsonKey(name: 'create_date') String? createDate,@JsonKey(name: 'modify_date') String? modifyDate, bool? trash, bool? active, String? guildsId, String? licenseNumber, String? guildsName, String? typeActivity, String? areaActivity, bool? steward, bool? hasPos, String? provinceAcceptState +}); + + +$ToStewardUserModelCopyWith<$Res>? get user;$AddressModelCopyWith<$Res>? get address;$GuildAreaActivityModelCopyWith<$Res>? get guildAreaActivity;$GuildTypeActivityModelCopyWith<$Res>? get guildTypeActivity;$GetPosStatusModelCopyWith<$Res>? get getPosStatus; + +} +/// @nodoc +class _$ToStewardModelCopyWithImpl<$Res> + implements $ToStewardModelCopyWith<$Res> { + _$ToStewardModelCopyWithImpl(this._self, this._then); + + final ToStewardModel _self; + final $Res Function(ToStewardModel) _then; + +/// Create a copy of ToStewardModel +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? user = freezed,Object? address = freezed,Object? guildAreaActivity = freezed,Object? guildTypeActivity = freezed,Object? killHouse = freezed,Object? stewardKillHouse = freezed,Object? stewards = freezed,Object? getPosStatus = freezed,Object? key = freezed,Object? createDate = freezed,Object? modifyDate = freezed,Object? trash = freezed,Object? active = freezed,Object? guildsId = freezed,Object? licenseNumber = freezed,Object? guildsName = freezed,Object? typeActivity = freezed,Object? areaActivity = freezed,Object? steward = freezed,Object? hasPos = freezed,Object? provinceAcceptState = freezed,}) { + return _then(_self.copyWith( +id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable +as int?,user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable +as ToStewardUserModel?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable +as AddressModel?,guildAreaActivity: freezed == guildAreaActivity ? _self.guildAreaActivity : guildAreaActivity // ignore: cast_nullable_to_non_nullable +as GuildAreaActivityModel?,guildTypeActivity: freezed == guildTypeActivity ? _self.guildTypeActivity : guildTypeActivity // ignore: cast_nullable_to_non_nullable +as GuildTypeActivityModel?,killHouse: freezed == killHouse ? _self.killHouse : killHouse // ignore: cast_nullable_to_non_nullable +as List?,stewardKillHouse: freezed == stewardKillHouse ? _self.stewardKillHouse : stewardKillHouse // ignore: cast_nullable_to_non_nullable +as List?,stewards: freezed == stewards ? _self.stewards : stewards // ignore: cast_nullable_to_non_nullable +as List?,getPosStatus: freezed == getPosStatus ? _self.getPosStatus : getPosStatus // ignore: cast_nullable_to_non_nullable +as GetPosStatusModel?,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?,active: freezed == active ? _self.active : active // ignore: cast_nullable_to_non_nullable +as bool?,guildsId: freezed == guildsId ? _self.guildsId : guildsId // ignore: cast_nullable_to_non_nullable +as String?,licenseNumber: freezed == licenseNumber ? _self.licenseNumber : licenseNumber // ignore: cast_nullable_to_non_nullable +as String?,guildsName: freezed == guildsName ? _self.guildsName : guildsName // ignore: cast_nullable_to_non_nullable +as String?,typeActivity: freezed == typeActivity ? _self.typeActivity : typeActivity // ignore: cast_nullable_to_non_nullable +as String?,areaActivity: freezed == areaActivity ? _self.areaActivity : areaActivity // ignore: cast_nullable_to_non_nullable +as String?,steward: freezed == steward ? _self.steward : steward // ignore: cast_nullable_to_non_nullable +as bool?,hasPos: freezed == hasPos ? _self.hasPos : hasPos // ignore: cast_nullable_to_non_nullable +as bool?,provinceAcceptState: freezed == provinceAcceptState ? _self.provinceAcceptState : provinceAcceptState // ignore: cast_nullable_to_non_nullable +as String?, + )); +} +/// Create a copy of ToStewardModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ToStewardUserModelCopyWith<$Res>? get user { + if (_self.user == null) { + return null; + } + + return $ToStewardUserModelCopyWith<$Res>(_self.user!, (value) { + return _then(_self.copyWith(user: value)); + }); +}/// Create a copy of ToStewardModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$AddressModelCopyWith<$Res>? get address { + if (_self.address == null) { + return null; + } + + return $AddressModelCopyWith<$Res>(_self.address!, (value) { + return _then(_self.copyWith(address: value)); + }); +}/// Create a copy of ToStewardModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$GuildAreaActivityModelCopyWith<$Res>? get guildAreaActivity { + if (_self.guildAreaActivity == null) { + return null; + } + + return $GuildAreaActivityModelCopyWith<$Res>(_self.guildAreaActivity!, (value) { + return _then(_self.copyWith(guildAreaActivity: value)); + }); +}/// Create a copy of ToStewardModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$GuildTypeActivityModelCopyWith<$Res>? get guildTypeActivity { + if (_self.guildTypeActivity == null) { + return null; + } + + return $GuildTypeActivityModelCopyWith<$Res>(_self.guildTypeActivity!, (value) { + return _then(_self.copyWith(guildTypeActivity: value)); + }); +}/// Create a copy of ToStewardModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$GetPosStatusModelCopyWith<$Res>? get getPosStatus { + if (_self.getPosStatus == null) { + return null; + } + + return $GetPosStatusModelCopyWith<$Res>(_self.getPosStatus!, (value) { + return _then(_self.copyWith(getPosStatus: value)); + }); +} +} + + +/// @nodoc +@JsonSerializable() + +class _ToStewardModel implements ToStewardModel { + _ToStewardModel({this.id, this.user, this.address, this.guildAreaActivity, this.guildTypeActivity, final List? killHouse, final List? stewardKillHouse, final List? stewards, this.getPosStatus, this.key, @JsonKey(name: 'create_date') this.createDate, @JsonKey(name: 'modify_date') this.modifyDate, this.trash, this.active, this.guildsId, this.licenseNumber, this.guildsName, this.typeActivity, this.areaActivity, this.steward, this.hasPos, this.provinceAcceptState}): _killHouse = killHouse,_stewardKillHouse = stewardKillHouse,_stewards = stewards; + factory _ToStewardModel.fromJson(Map json) => _$ToStewardModelFromJson(json); + +@override final int? id; +@override final ToStewardUserModel? user; +@override final AddressModel? address; +@override final GuildAreaActivityModel? guildAreaActivity; +@override final GuildTypeActivityModel? guildTypeActivity; + final List? _killHouse; +@override List? get killHouse { + final value = _killHouse; + if (value == null) return null; + if (_killHouse is EqualUnmodifiableListView) return _killHouse; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + + final List? _stewardKillHouse; +@override List? get stewardKillHouse { + final value = _stewardKillHouse; + if (value == null) return null; + if (_stewardKillHouse is EqualUnmodifiableListView) return _stewardKillHouse; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + + final List? _stewards; +@override List? get stewards { + final value = _stewards; + if (value == null) return null; + if (_stewards is EqualUnmodifiableListView) return _stewards; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + +@override final GetPosStatusModel? getPosStatus; +@override final String? key; +@override@JsonKey(name: 'create_date') final String? createDate; +@override@JsonKey(name: 'modify_date') final String? modifyDate; +@override final bool? trash; +@override final bool? active; +@override final String? guildsId; +@override final String? licenseNumber; +@override final String? guildsName; +@override final String? typeActivity; +@override final String? areaActivity; +@override final bool? steward; +@override final bool? hasPos; +@override final String? provinceAcceptState; + +/// Create a copy of ToStewardModel +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ToStewardModelCopyWith<_ToStewardModel> get copyWith => __$ToStewardModelCopyWithImpl<_ToStewardModel>(this, _$identity); + +@override +Map toJson() { + return _$ToStewardModelToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _ToStewardModel&&(identical(other.id, id) || other.id == id)&&(identical(other.user, user) || other.user == user)&&(identical(other.address, address) || other.address == address)&&(identical(other.guildAreaActivity, guildAreaActivity) || other.guildAreaActivity == guildAreaActivity)&&(identical(other.guildTypeActivity, guildTypeActivity) || other.guildTypeActivity == guildTypeActivity)&&const DeepCollectionEquality().equals(other._killHouse, _killHouse)&&const DeepCollectionEquality().equals(other._stewardKillHouse, _stewardKillHouse)&&const DeepCollectionEquality().equals(other._stewards, _stewards)&&(identical(other.getPosStatus, getPosStatus) || other.getPosStatus == getPosStatus)&&(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.active, active) || other.active == active)&&(identical(other.guildsId, guildsId) || other.guildsId == guildsId)&&(identical(other.licenseNumber, licenseNumber) || other.licenseNumber == licenseNumber)&&(identical(other.guildsName, guildsName) || other.guildsName == guildsName)&&(identical(other.typeActivity, typeActivity) || other.typeActivity == typeActivity)&&(identical(other.areaActivity, areaActivity) || other.areaActivity == areaActivity)&&(identical(other.steward, steward) || other.steward == steward)&&(identical(other.hasPos, hasPos) || other.hasPos == hasPos)&&(identical(other.provinceAcceptState, provinceAcceptState) || other.provinceAcceptState == provinceAcceptState)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,id,user,address,guildAreaActivity,guildTypeActivity,const DeepCollectionEquality().hash(_killHouse),const DeepCollectionEquality().hash(_stewardKillHouse),const DeepCollectionEquality().hash(_stewards),getPosStatus,key,createDate,modifyDate,trash,active,guildsId,licenseNumber,guildsName,typeActivity,areaActivity,steward,hasPos,provinceAcceptState]); + +@override +String toString() { + return 'ToStewardModel(id: $id, user: $user, address: $address, guildAreaActivity: $guildAreaActivity, guildTypeActivity: $guildTypeActivity, killHouse: $killHouse, stewardKillHouse: $stewardKillHouse, stewards: $stewards, getPosStatus: $getPosStatus, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, active: $active, guildsId: $guildsId, licenseNumber: $licenseNumber, guildsName: $guildsName, typeActivity: $typeActivity, areaActivity: $areaActivity, steward: $steward, hasPos: $hasPos, provinceAcceptState: $provinceAcceptState)'; +} + + +} + +/// @nodoc +abstract mixin class _$ToStewardModelCopyWith<$Res> implements $ToStewardModelCopyWith<$Res> { + factory _$ToStewardModelCopyWith(_ToStewardModel value, $Res Function(_ToStewardModel) _then) = __$ToStewardModelCopyWithImpl; +@override @useResult +$Res call({ + int? id, ToStewardUserModel? user, AddressModel? address, GuildAreaActivityModel? guildAreaActivity, GuildTypeActivityModel? guildTypeActivity, List? killHouse, List? stewardKillHouse, List? stewards, GetPosStatusModel? getPosStatus, String? key,@JsonKey(name: 'create_date') String? createDate,@JsonKey(name: 'modify_date') String? modifyDate, bool? trash, bool? active, String? guildsId, String? licenseNumber, String? guildsName, String? typeActivity, String? areaActivity, bool? steward, bool? hasPos, String? provinceAcceptState +}); + + +@override $ToStewardUserModelCopyWith<$Res>? get user;@override $AddressModelCopyWith<$Res>? get address;@override $GuildAreaActivityModelCopyWith<$Res>? get guildAreaActivity;@override $GuildTypeActivityModelCopyWith<$Res>? get guildTypeActivity;@override $GetPosStatusModelCopyWith<$Res>? get getPosStatus; + +} +/// @nodoc +class __$ToStewardModelCopyWithImpl<$Res> + implements _$ToStewardModelCopyWith<$Res> { + __$ToStewardModelCopyWithImpl(this._self, this._then); + + final _ToStewardModel _self; + final $Res Function(_ToStewardModel) _then; + +/// Create a copy of ToStewardModel +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? user = freezed,Object? address = freezed,Object? guildAreaActivity = freezed,Object? guildTypeActivity = freezed,Object? killHouse = freezed,Object? stewardKillHouse = freezed,Object? stewards = freezed,Object? getPosStatus = freezed,Object? key = freezed,Object? createDate = freezed,Object? modifyDate = freezed,Object? trash = freezed,Object? active = freezed,Object? guildsId = freezed,Object? licenseNumber = freezed,Object? guildsName = freezed,Object? typeActivity = freezed,Object? areaActivity = freezed,Object? steward = freezed,Object? hasPos = freezed,Object? provinceAcceptState = freezed,}) { + return _then(_ToStewardModel( +id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable +as int?,user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable +as ToStewardUserModel?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable +as AddressModel?,guildAreaActivity: freezed == guildAreaActivity ? _self.guildAreaActivity : guildAreaActivity // ignore: cast_nullable_to_non_nullable +as GuildAreaActivityModel?,guildTypeActivity: freezed == guildTypeActivity ? _self.guildTypeActivity : guildTypeActivity // ignore: cast_nullable_to_non_nullable +as GuildTypeActivityModel?,killHouse: freezed == killHouse ? _self._killHouse : killHouse // ignore: cast_nullable_to_non_nullable +as List?,stewardKillHouse: freezed == stewardKillHouse ? _self._stewardKillHouse : stewardKillHouse // ignore: cast_nullable_to_non_nullable +as List?,stewards: freezed == stewards ? _self._stewards : stewards // ignore: cast_nullable_to_non_nullable +as List?,getPosStatus: freezed == getPosStatus ? _self.getPosStatus : getPosStatus // ignore: cast_nullable_to_non_nullable +as GetPosStatusModel?,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?,active: freezed == active ? _self.active : active // ignore: cast_nullable_to_non_nullable +as bool?,guildsId: freezed == guildsId ? _self.guildsId : guildsId // ignore: cast_nullable_to_non_nullable +as String?,licenseNumber: freezed == licenseNumber ? _self.licenseNumber : licenseNumber // ignore: cast_nullable_to_non_nullable +as String?,guildsName: freezed == guildsName ? _self.guildsName : guildsName // ignore: cast_nullable_to_non_nullable +as String?,typeActivity: freezed == typeActivity ? _self.typeActivity : typeActivity // ignore: cast_nullable_to_non_nullable +as String?,areaActivity: freezed == areaActivity ? _self.areaActivity : areaActivity // ignore: cast_nullable_to_non_nullable +as String?,steward: freezed == steward ? _self.steward : steward // ignore: cast_nullable_to_non_nullable +as bool?,hasPos: freezed == hasPos ? _self.hasPos : hasPos // ignore: cast_nullable_to_non_nullable +as bool?,provinceAcceptState: freezed == provinceAcceptState ? _self.provinceAcceptState : provinceAcceptState // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +/// Create a copy of ToStewardModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ToStewardUserModelCopyWith<$Res>? get user { + if (_self.user == null) { + return null; + } + + return $ToStewardUserModelCopyWith<$Res>(_self.user!, (value) { + return _then(_self.copyWith(user: value)); + }); +}/// Create a copy of ToStewardModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$AddressModelCopyWith<$Res>? get address { + if (_self.address == null) { + return null; + } + + return $AddressModelCopyWith<$Res>(_self.address!, (value) { + return _then(_self.copyWith(address: value)); + }); +}/// Create a copy of ToStewardModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$GuildAreaActivityModelCopyWith<$Res>? get guildAreaActivity { + if (_self.guildAreaActivity == null) { + return null; + } + + return $GuildAreaActivityModelCopyWith<$Res>(_self.guildAreaActivity!, (value) { + return _then(_self.copyWith(guildAreaActivity: value)); + }); +}/// Create a copy of ToStewardModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$GuildTypeActivityModelCopyWith<$Res>? get guildTypeActivity { + if (_self.guildTypeActivity == null) { + return null; + } + + return $GuildTypeActivityModelCopyWith<$Res>(_self.guildTypeActivity!, (value) { + return _then(_self.copyWith(guildTypeActivity: value)); + }); +}/// Create a copy of ToStewardModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$GetPosStatusModelCopyWith<$Res>? get getPosStatus { + if (_self.getPosStatus == null) { + return null; + } + + return $GetPosStatusModelCopyWith<$Res>(_self.getPosStatus!, (value) { + return _then(_self.copyWith(getPosStatus: value)); + }); +} +} + + +/// @nodoc +mixin _$ToStewardUserModel { + + String? get fullname;@JsonKey(name: 'first_name') String? get firstName;@JsonKey(name: 'last_name') String? get lastName; String? get mobile;@JsonKey(name: 'national_id') String? get nationalId; String? get city; +/// Create a copy of ToStewardUserModel +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ToStewardUserModelCopyWith get copyWith => _$ToStewardUserModelCopyWithImpl(this as ToStewardUserModel, _$identity); + + /// Serializes this ToStewardUserModel to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is ToStewardUserModel&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.nationalId, nationalId) || other.nationalId == nationalId)&&(identical(other.city, city) || other.city == city)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,fullname,firstName,lastName,mobile,nationalId,city); + +@override +String toString() { + return 'ToStewardUserModel(fullname: $fullname, firstName: $firstName, lastName: $lastName, mobile: $mobile, nationalId: $nationalId, city: $city)'; +} + + +} + +/// @nodoc +abstract mixin class $ToStewardUserModelCopyWith<$Res> { + factory $ToStewardUserModelCopyWith(ToStewardUserModel value, $Res Function(ToStewardUserModel) _then) = _$ToStewardUserModelCopyWithImpl; +@useResult +$Res call({ + String? fullname,@JsonKey(name: 'first_name') String? firstName,@JsonKey(name: 'last_name') String? lastName, String? mobile,@JsonKey(name: 'national_id') String? nationalId, String? city +}); + + + + +} +/// @nodoc +class _$ToStewardUserModelCopyWithImpl<$Res> + implements $ToStewardUserModelCopyWith<$Res> { + _$ToStewardUserModelCopyWithImpl(this._self, this._then); + + final ToStewardUserModel _self; + final $Res Function(ToStewardUserModel) _then; + +/// Create a copy of ToStewardUserModel +/// 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? mobile = freezed,Object? nationalId = freezed,Object? city = 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?,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?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _ToStewardUserModel implements ToStewardUserModel { + _ToStewardUserModel({this.fullname, @JsonKey(name: 'first_name') this.firstName, @JsonKey(name: 'last_name') this.lastName, this.mobile, @JsonKey(name: 'national_id') this.nationalId, this.city}); + factory _ToStewardUserModel.fromJson(Map json) => _$ToStewardUserModelFromJson(json); + +@override final String? fullname; +@override@JsonKey(name: 'first_name') final String? firstName; +@override@JsonKey(name: 'last_name') final String? lastName; +@override final String? mobile; +@override@JsonKey(name: 'national_id') final String? nationalId; +@override final String? city; + +/// Create a copy of ToStewardUserModel +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ToStewardUserModelCopyWith<_ToStewardUserModel> get copyWith => __$ToStewardUserModelCopyWithImpl<_ToStewardUserModel>(this, _$identity); + +@override +Map toJson() { + return _$ToStewardUserModelToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _ToStewardUserModel&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.nationalId, nationalId) || other.nationalId == nationalId)&&(identical(other.city, city) || other.city == city)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,fullname,firstName,lastName,mobile,nationalId,city); + +@override +String toString() { + return 'ToStewardUserModel(fullname: $fullname, firstName: $firstName, lastName: $lastName, mobile: $mobile, nationalId: $nationalId, city: $city)'; +} + + +} + +/// @nodoc +abstract mixin class _$ToStewardUserModelCopyWith<$Res> implements $ToStewardUserModelCopyWith<$Res> { + factory _$ToStewardUserModelCopyWith(_ToStewardUserModel value, $Res Function(_ToStewardUserModel) _then) = __$ToStewardUserModelCopyWithImpl; +@override @useResult +$Res call({ + String? fullname,@JsonKey(name: 'first_name') String? firstName,@JsonKey(name: 'last_name') String? lastName, String? mobile,@JsonKey(name: 'national_id') String? nationalId, String? city +}); + + + + +} +/// @nodoc +class __$ToStewardUserModelCopyWithImpl<$Res> + implements _$ToStewardUserModelCopyWith<$Res> { + __$ToStewardUserModelCopyWithImpl(this._self, this._then); + + final _ToStewardUserModel _self; + final $Res Function(_ToStewardUserModel) _then; + +/// Create a copy of ToStewardUserModel +/// 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? mobile = freezed,Object? nationalId = freezed,Object? city = freezed,}) { + return _then(_ToStewardUserModel( +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?,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?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$ToStewardCityModel { + + String? get key;@JsonKey(name: 'name') String? get title; +/// Create a copy of ToStewardCityModel +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ToStewardCityModelCopyWith get copyWith => _$ToStewardCityModelCopyWithImpl(this as ToStewardCityModel, _$identity); + + /// Serializes this ToStewardCityModel to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is ToStewardCityModel&&(identical(other.key, key) || other.key == key)&&(identical(other.title, title) || other.title == title)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,title); + +@override +String toString() { + return 'ToStewardCityModel(key: $key, title: $title)'; +} + + +} + +/// @nodoc +abstract mixin class $ToStewardCityModelCopyWith<$Res> { + factory $ToStewardCityModelCopyWith(ToStewardCityModel value, $Res Function(ToStewardCityModel) _then) = _$ToStewardCityModelCopyWithImpl; +@useResult +$Res call({ + String? key,@JsonKey(name: 'name') String? title +}); + + + + +} +/// @nodoc +class _$ToStewardCityModelCopyWithImpl<$Res> + implements $ToStewardCityModelCopyWith<$Res> { + _$ToStewardCityModelCopyWithImpl(this._self, this._then); + + final ToStewardCityModel _self; + final $Res Function(ToStewardCityModel) _then; + +/// Create a copy of ToStewardCityModel +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? key = freezed,Object? title = freezed,}) { + return _then(_self.copyWith( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,title: freezed == title ? _self.title : title // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _ToStewardCityModel implements ToStewardCityModel { + _ToStewardCityModel({this.key, @JsonKey(name: 'name') this.title}); + factory _ToStewardCityModel.fromJson(Map json) => _$ToStewardCityModelFromJson(json); + +@override final String? key; +@override@JsonKey(name: 'name') final String? title; + +/// Create a copy of ToStewardCityModel +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ToStewardCityModelCopyWith<_ToStewardCityModel> get copyWith => __$ToStewardCityModelCopyWithImpl<_ToStewardCityModel>(this, _$identity); + +@override +Map toJson() { + return _$ToStewardCityModelToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _ToStewardCityModel&&(identical(other.key, key) || other.key == key)&&(identical(other.title, title) || other.title == title)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,title); + +@override +String toString() { + return 'ToStewardCityModel(key: $key, title: $title)'; +} + + +} + +/// @nodoc +abstract mixin class _$ToStewardCityModelCopyWith<$Res> implements $ToStewardCityModelCopyWith<$Res> { + factory _$ToStewardCityModelCopyWith(_ToStewardCityModel value, $Res Function(_ToStewardCityModel) _then) = __$ToStewardCityModelCopyWithImpl; +@override @useResult +$Res call({ + String? key,@JsonKey(name: 'name') String? title +}); + + + + +} +/// @nodoc +class __$ToStewardCityModelCopyWithImpl<$Res> + implements _$ToStewardCityModelCopyWith<$Res> { + __$ToStewardCityModelCopyWithImpl(this._self, this._then); + + final _ToStewardCityModel _self; + final $Res Function(_ToStewardCityModel) _then; + +/// Create a copy of ToStewardCityModel +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? key = freezed,Object? title = freezed,}) { + return _then(_ToStewardCityModel( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,title: freezed == title ? _self.title : title // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$ToStewardProvinceModel { + + String? get key;@JsonKey(name: 'name') String? get title; +/// Create a copy of ToStewardProvinceModel +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ToStewardProvinceModelCopyWith get copyWith => _$ToStewardProvinceModelCopyWithImpl(this as ToStewardProvinceModel, _$identity); + + /// Serializes this ToStewardProvinceModel to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is ToStewardProvinceModel&&(identical(other.key, key) || other.key == key)&&(identical(other.title, title) || other.title == title)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,title); + +@override +String toString() { + return 'ToStewardProvinceModel(key: $key, title: $title)'; +} + + +} + +/// @nodoc +abstract mixin class $ToStewardProvinceModelCopyWith<$Res> { + factory $ToStewardProvinceModelCopyWith(ToStewardProvinceModel value, $Res Function(ToStewardProvinceModel) _then) = _$ToStewardProvinceModelCopyWithImpl; +@useResult +$Res call({ + String? key,@JsonKey(name: 'name') String? title +}); + + + + +} +/// @nodoc +class _$ToStewardProvinceModelCopyWithImpl<$Res> + implements $ToStewardProvinceModelCopyWith<$Res> { + _$ToStewardProvinceModelCopyWithImpl(this._self, this._then); + + final ToStewardProvinceModel _self; + final $Res Function(ToStewardProvinceModel) _then; + +/// Create a copy of ToStewardProvinceModel +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? key = freezed,Object? title = freezed,}) { + return _then(_self.copyWith( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,title: freezed == title ? _self.title : title // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _ToStewardProvinceModel implements ToStewardProvinceModel { + _ToStewardProvinceModel({this.key, @JsonKey(name: 'name') this.title}); + factory _ToStewardProvinceModel.fromJson(Map json) => _$ToStewardProvinceModelFromJson(json); + +@override final String? key; +@override@JsonKey(name: 'name') final String? title; + +/// Create a copy of ToStewardProvinceModel +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ToStewardProvinceModelCopyWith<_ToStewardProvinceModel> get copyWith => __$ToStewardProvinceModelCopyWithImpl<_ToStewardProvinceModel>(this, _$identity); + +@override +Map toJson() { + return _$ToStewardProvinceModelToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _ToStewardProvinceModel&&(identical(other.key, key) || other.key == key)&&(identical(other.title, title) || other.title == title)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,title); + +@override +String toString() { + return 'ToStewardProvinceModel(key: $key, title: $title)'; +} + + +} + +/// @nodoc +abstract mixin class _$ToStewardProvinceModelCopyWith<$Res> implements $ToStewardProvinceModelCopyWith<$Res> { + factory _$ToStewardProvinceModelCopyWith(_ToStewardProvinceModel value, $Res Function(_ToStewardProvinceModel) _then) = __$ToStewardProvinceModelCopyWithImpl; +@override @useResult +$Res call({ + String? key,@JsonKey(name: 'name') String? title +}); + + + + +} +/// @nodoc +class __$ToStewardProvinceModelCopyWithImpl<$Res> + implements _$ToStewardProvinceModelCopyWith<$Res> { + __$ToStewardProvinceModelCopyWithImpl(this._self, this._then); + + final _ToStewardProvinceModel _self; + final $Res Function(_ToStewardProvinceModel) _then; + +/// Create a copy of ToStewardProvinceModel +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? key = freezed,Object? title = freezed,}) { + return _then(_ToStewardProvinceModel( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,title: freezed == title ? _self.title : title // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$AddressModel { + + ToStewardProvinceModel? get province; ToStewardCityModel? get city; String? get address; String? get postalCode; +/// Create a copy of AddressModel +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$AddressModelCopyWith get copyWith => _$AddressModelCopyWithImpl(this as AddressModel, _$identity); + + /// Serializes this AddressModel to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is AddressModel&&(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 'AddressModel(province: $province, city: $city, address: $address, postalCode: $postalCode)'; +} + + +} + +/// @nodoc +abstract mixin class $AddressModelCopyWith<$Res> { + factory $AddressModelCopyWith(AddressModel value, $Res Function(AddressModel) _then) = _$AddressModelCopyWithImpl; +@useResult +$Res call({ + ToStewardProvinceModel? province, ToStewardCityModel? city, String? address, String? postalCode +}); + + +$ToStewardProvinceModelCopyWith<$Res>? get province;$ToStewardCityModelCopyWith<$Res>? get city; + +} +/// @nodoc +class _$AddressModelCopyWithImpl<$Res> + implements $AddressModelCopyWith<$Res> { + _$AddressModelCopyWithImpl(this._self, this._then); + + final AddressModel _self; + final $Res Function(AddressModel) _then; + +/// Create a copy of AddressModel +/// 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 ToStewardProvinceModel?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as ToStewardCityModel?,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 AddressModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ToStewardProvinceModelCopyWith<$Res>? get province { + if (_self.province == null) { + return null; + } + + return $ToStewardProvinceModelCopyWith<$Res>(_self.province!, (value) { + return _then(_self.copyWith(province: value)); + }); +}/// Create a copy of AddressModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ToStewardCityModelCopyWith<$Res>? get city { + if (_self.city == null) { + return null; + } + + return $ToStewardCityModelCopyWith<$Res>(_self.city!, (value) { + return _then(_self.copyWith(city: value)); + }); +} +} + + +/// @nodoc +@JsonSerializable() + +class _AddressModel implements AddressModel { + _AddressModel({this.province, this.city, this.address, this.postalCode}); + factory _AddressModel.fromJson(Map json) => _$AddressModelFromJson(json); + +@override final ToStewardProvinceModel? province; +@override final ToStewardCityModel? city; +@override final String? address; +@override final String? postalCode; + +/// Create a copy of AddressModel +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$AddressModelCopyWith<_AddressModel> get copyWith => __$AddressModelCopyWithImpl<_AddressModel>(this, _$identity); + +@override +Map toJson() { + return _$AddressModelToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _AddressModel&&(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 'AddressModel(province: $province, city: $city, address: $address, postalCode: $postalCode)'; +} + + +} + +/// @nodoc +abstract mixin class _$AddressModelCopyWith<$Res> implements $AddressModelCopyWith<$Res> { + factory _$AddressModelCopyWith(_AddressModel value, $Res Function(_AddressModel) _then) = __$AddressModelCopyWithImpl; +@override @useResult +$Res call({ + ToStewardProvinceModel? province, ToStewardCityModel? city, String? address, String? postalCode +}); + + +@override $ToStewardProvinceModelCopyWith<$Res>? get province;@override $ToStewardCityModelCopyWith<$Res>? get city; + +} +/// @nodoc +class __$AddressModelCopyWithImpl<$Res> + implements _$AddressModelCopyWith<$Res> { + __$AddressModelCopyWithImpl(this._self, this._then); + + final _AddressModel _self; + final $Res Function(_AddressModel) _then; + +/// Create a copy of AddressModel +/// 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(_AddressModel( +province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as ToStewardProvinceModel?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as ToStewardCityModel?,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 AddressModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ToStewardProvinceModelCopyWith<$Res>? get province { + if (_self.province == null) { + return null; + } + + return $ToStewardProvinceModelCopyWith<$Res>(_self.province!, (value) { + return _then(_self.copyWith(province: value)); + }); +}/// Create a copy of AddressModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ToStewardCityModelCopyWith<$Res>? get city { + if (_self.city == null) { + return null; + } + + return $ToStewardCityModelCopyWith<$Res>(_self.city!, (value) { + return _then(_self.copyWith(city: value)); + }); +} +} + + +/// @nodoc +mixin _$GuildAreaActivityModel { + + String? get key; String? get title; +/// Create a copy of GuildAreaActivityModel +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$GuildAreaActivityModelCopyWith get copyWith => _$GuildAreaActivityModelCopyWithImpl(this as GuildAreaActivityModel, _$identity); + + /// Serializes this GuildAreaActivityModel to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is GuildAreaActivityModel&&(identical(other.key, key) || other.key == key)&&(identical(other.title, title) || other.title == title)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,title); + +@override +String toString() { + return 'GuildAreaActivityModel(key: $key, title: $title)'; +} + + +} + +/// @nodoc +abstract mixin class $GuildAreaActivityModelCopyWith<$Res> { + factory $GuildAreaActivityModelCopyWith(GuildAreaActivityModel value, $Res Function(GuildAreaActivityModel) _then) = _$GuildAreaActivityModelCopyWithImpl; +@useResult +$Res call({ + String? key, String? title +}); + + + + +} +/// @nodoc +class _$GuildAreaActivityModelCopyWithImpl<$Res> + implements $GuildAreaActivityModelCopyWith<$Res> { + _$GuildAreaActivityModelCopyWithImpl(this._self, this._then); + + final GuildAreaActivityModel _self; + final $Res Function(GuildAreaActivityModel) _then; + +/// Create a copy of GuildAreaActivityModel +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? key = freezed,Object? title = freezed,}) { + return _then(_self.copyWith( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,title: freezed == title ? _self.title : title // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _GuildAreaActivityModel implements GuildAreaActivityModel { + _GuildAreaActivityModel({this.key, this.title}); + factory _GuildAreaActivityModel.fromJson(Map json) => _$GuildAreaActivityModelFromJson(json); + +@override final String? key; +@override final String? title; + +/// Create a copy of GuildAreaActivityModel +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$GuildAreaActivityModelCopyWith<_GuildAreaActivityModel> get copyWith => __$GuildAreaActivityModelCopyWithImpl<_GuildAreaActivityModel>(this, _$identity); + +@override +Map toJson() { + return _$GuildAreaActivityModelToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _GuildAreaActivityModel&&(identical(other.key, key) || other.key == key)&&(identical(other.title, title) || other.title == title)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,title); + +@override +String toString() { + return 'GuildAreaActivityModel(key: $key, title: $title)'; +} + + +} + +/// @nodoc +abstract mixin class _$GuildAreaActivityModelCopyWith<$Res> implements $GuildAreaActivityModelCopyWith<$Res> { + factory _$GuildAreaActivityModelCopyWith(_GuildAreaActivityModel value, $Res Function(_GuildAreaActivityModel) _then) = __$GuildAreaActivityModelCopyWithImpl; +@override @useResult +$Res call({ + String? key, String? title +}); + + + + +} +/// @nodoc +class __$GuildAreaActivityModelCopyWithImpl<$Res> + implements _$GuildAreaActivityModelCopyWith<$Res> { + __$GuildAreaActivityModelCopyWithImpl(this._self, this._then); + + final _GuildAreaActivityModel _self; + final $Res Function(_GuildAreaActivityModel) _then; + +/// Create a copy of GuildAreaActivityModel +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? key = freezed,Object? title = freezed,}) { + return _then(_GuildAreaActivityModel( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,title: freezed == title ? _self.title : title // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$GuildTypeActivityModel { + + String? get key; String? get title; +/// Create a copy of GuildTypeActivityModel +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$GuildTypeActivityModelCopyWith get copyWith => _$GuildTypeActivityModelCopyWithImpl(this as GuildTypeActivityModel, _$identity); + + /// Serializes this GuildTypeActivityModel to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is GuildTypeActivityModel&&(identical(other.key, key) || other.key == key)&&(identical(other.title, title) || other.title == title)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,title); + +@override +String toString() { + return 'GuildTypeActivityModel(key: $key, title: $title)'; +} + + +} + +/// @nodoc +abstract mixin class $GuildTypeActivityModelCopyWith<$Res> { + factory $GuildTypeActivityModelCopyWith(GuildTypeActivityModel value, $Res Function(GuildTypeActivityModel) _then) = _$GuildTypeActivityModelCopyWithImpl; +@useResult +$Res call({ + String? key, String? title +}); + + + + +} +/// @nodoc +class _$GuildTypeActivityModelCopyWithImpl<$Res> + implements $GuildTypeActivityModelCopyWith<$Res> { + _$GuildTypeActivityModelCopyWithImpl(this._self, this._then); + + final GuildTypeActivityModel _self; + final $Res Function(GuildTypeActivityModel) _then; + +/// Create a copy of GuildTypeActivityModel +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? key = freezed,Object? title = freezed,}) { + return _then(_self.copyWith( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,title: freezed == title ? _self.title : title // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _GuildTypeActivityModel implements GuildTypeActivityModel { + _GuildTypeActivityModel({this.key, this.title}); + factory _GuildTypeActivityModel.fromJson(Map json) => _$GuildTypeActivityModelFromJson(json); + +@override final String? key; +@override final String? title; + +/// Create a copy of GuildTypeActivityModel +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$GuildTypeActivityModelCopyWith<_GuildTypeActivityModel> get copyWith => __$GuildTypeActivityModelCopyWithImpl<_GuildTypeActivityModel>(this, _$identity); + +@override +Map toJson() { + return _$GuildTypeActivityModelToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _GuildTypeActivityModel&&(identical(other.key, key) || other.key == key)&&(identical(other.title, title) || other.title == title)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,title); + +@override +String toString() { + return 'GuildTypeActivityModel(key: $key, title: $title)'; +} + + +} + +/// @nodoc +abstract mixin class _$GuildTypeActivityModelCopyWith<$Res> implements $GuildTypeActivityModelCopyWith<$Res> { + factory _$GuildTypeActivityModelCopyWith(_GuildTypeActivityModel value, $Res Function(_GuildTypeActivityModel) _then) = __$GuildTypeActivityModelCopyWithImpl; +@override @useResult +$Res call({ + String? key, String? title +}); + + + + +} +/// @nodoc +class __$GuildTypeActivityModelCopyWithImpl<$Res> + implements _$GuildTypeActivityModelCopyWith<$Res> { + __$GuildTypeActivityModelCopyWithImpl(this._self, this._then); + + final _GuildTypeActivityModel _self; + final $Res Function(_GuildTypeActivityModel) _then; + +/// Create a copy of GuildTypeActivityModel +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? key = freezed,Object? title = freezed,}) { + return _then(_GuildTypeActivityModel( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,title: freezed == title ? _self.title : title // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$GetPosStatusModel { + + int? get lenActiveSessions; bool? get hasPons; bool? get hasActivePons; +/// Create a copy of GetPosStatusModel +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$GetPosStatusModelCopyWith get copyWith => _$GetPosStatusModelCopyWithImpl(this as GetPosStatusModel, _$identity); + + /// Serializes this GetPosStatusModel to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is GetPosStatusModel&&(identical(other.lenActiveSessions, lenActiveSessions) || other.lenActiveSessions == lenActiveSessions)&&(identical(other.hasPons, hasPons) || other.hasPons == hasPons)&&(identical(other.hasActivePons, hasActivePons) || other.hasActivePons == hasActivePons)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,lenActiveSessions,hasPons,hasActivePons); + +@override +String toString() { + return 'GetPosStatusModel(lenActiveSessions: $lenActiveSessions, hasPons: $hasPons, hasActivePons: $hasActivePons)'; +} + + +} + +/// @nodoc +abstract mixin class $GetPosStatusModelCopyWith<$Res> { + factory $GetPosStatusModelCopyWith(GetPosStatusModel value, $Res Function(GetPosStatusModel) _then) = _$GetPosStatusModelCopyWithImpl; +@useResult +$Res call({ + int? lenActiveSessions, bool? hasPons, bool? hasActivePons +}); + + + + +} +/// @nodoc +class _$GetPosStatusModelCopyWithImpl<$Res> + implements $GetPosStatusModelCopyWith<$Res> { + _$GetPosStatusModelCopyWithImpl(this._self, this._then); + + final GetPosStatusModel _self; + final $Res Function(GetPosStatusModel) _then; + +/// Create a copy of GetPosStatusModel +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? lenActiveSessions = freezed,Object? hasPons = freezed,Object? hasActivePons = freezed,}) { + return _then(_self.copyWith( +lenActiveSessions: freezed == lenActiveSessions ? _self.lenActiveSessions : lenActiveSessions // ignore: cast_nullable_to_non_nullable +as int?,hasPons: freezed == hasPons ? _self.hasPons : hasPons // ignore: cast_nullable_to_non_nullable +as bool?,hasActivePons: freezed == hasActivePons ? _self.hasActivePons : hasActivePons // ignore: cast_nullable_to_non_nullable +as bool?, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _GetPosStatusModel implements GetPosStatusModel { + _GetPosStatusModel({this.lenActiveSessions, this.hasPons, this.hasActivePons}); + factory _GetPosStatusModel.fromJson(Map json) => _$GetPosStatusModelFromJson(json); + +@override final int? lenActiveSessions; +@override final bool? hasPons; +@override final bool? hasActivePons; + +/// Create a copy of GetPosStatusModel +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$GetPosStatusModelCopyWith<_GetPosStatusModel> get copyWith => __$GetPosStatusModelCopyWithImpl<_GetPosStatusModel>(this, _$identity); + +@override +Map toJson() { + return _$GetPosStatusModelToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _GetPosStatusModel&&(identical(other.lenActiveSessions, lenActiveSessions) || other.lenActiveSessions == lenActiveSessions)&&(identical(other.hasPons, hasPons) || other.hasPons == hasPons)&&(identical(other.hasActivePons, hasActivePons) || other.hasActivePons == hasActivePons)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,lenActiveSessions,hasPons,hasActivePons); + +@override +String toString() { + return 'GetPosStatusModel(lenActiveSessions: $lenActiveSessions, hasPons: $hasPons, hasActivePons: $hasActivePons)'; +} + + +} + +/// @nodoc +abstract mixin class _$GetPosStatusModelCopyWith<$Res> implements $GetPosStatusModelCopyWith<$Res> { + factory _$GetPosStatusModelCopyWith(_GetPosStatusModel value, $Res Function(_GetPosStatusModel) _then) = __$GetPosStatusModelCopyWithImpl; +@override @useResult +$Res call({ + int? lenActiveSessions, bool? hasPons, bool? hasActivePons +}); + + + + +} +/// @nodoc +class __$GetPosStatusModelCopyWithImpl<$Res> + implements _$GetPosStatusModelCopyWith<$Res> { + __$GetPosStatusModelCopyWithImpl(this._self, this._then); + + final _GetPosStatusModel _self; + final $Res Function(_GetPosStatusModel) _then; + +/// Create a copy of GetPosStatusModel +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? lenActiveSessions = freezed,Object? hasPons = freezed,Object? hasActivePons = freezed,}) { + return _then(_GetPosStatusModel( +lenActiveSessions: freezed == lenActiveSessions ? _self.lenActiveSessions : lenActiveSessions // ignore: cast_nullable_to_non_nullable +as int?,hasPons: freezed == hasPons ? _self.hasPons : hasPons // ignore: cast_nullable_to_non_nullable +as bool?,hasActivePons: freezed == hasActivePons ? _self.hasActivePons : hasActivePons // ignore: cast_nullable_to_non_nullable +as bool?, + )); +} + + +} + + +/// @nodoc +mixin _$KillHouseModel { + + String? get key;@JsonKey(name: 'kill_house_operator') KillHouseOperatorModel? get operator; String? get name; bool? get killer; +/// Create a copy of KillHouseModel +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$KillHouseModelCopyWith get copyWith => _$KillHouseModelCopyWithImpl(this as KillHouseModel, _$identity); + + /// Serializes this KillHouseModel to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is KillHouseModel&&(identical(other.key, key) || other.key == key)&&(identical(other.operator, operator) || other.operator == operator)&&(identical(other.name, name) || other.name == name)&&(identical(other.killer, killer) || other.killer == killer)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,operator,name,killer); + +@override +String toString() { + return 'KillHouseModel(key: $key, operator: $operator, name: $name, killer: $killer)'; +} + + +} + +/// @nodoc +abstract mixin class $KillHouseModelCopyWith<$Res> { + factory $KillHouseModelCopyWith(KillHouseModel value, $Res Function(KillHouseModel) _then) = _$KillHouseModelCopyWithImpl; +@useResult +$Res call({ + String? key,@JsonKey(name: 'kill_house_operator') KillHouseOperatorModel? operator, String? name, bool? killer +}); + + +$KillHouseOperatorModelCopyWith<$Res>? get operator; + +} +/// @nodoc +class _$KillHouseModelCopyWithImpl<$Res> + implements $KillHouseModelCopyWith<$Res> { + _$KillHouseModelCopyWithImpl(this._self, this._then); + + final KillHouseModel _self; + final $Res Function(KillHouseModel) _then; + +/// Create a copy of KillHouseModel +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? key = freezed,Object? operator = freezed,Object? name = freezed,Object? killer = freezed,}) { + return _then(_self.copyWith( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,operator: freezed == operator ? _self.operator : operator // ignore: cast_nullable_to_non_nullable +as KillHouseOperatorModel?,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?, + )); +} +/// Create a copy of KillHouseModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$KillHouseOperatorModelCopyWith<$Res>? get operator { + if (_self.operator == null) { + return null; + } + + return $KillHouseOperatorModelCopyWith<$Res>(_self.operator!, (value) { + return _then(_self.copyWith(operator: value)); + }); +} +} + + +/// @nodoc +@JsonSerializable() + +class _KillHouseModel implements KillHouseModel { + _KillHouseModel({this.key, @JsonKey(name: 'kill_house_operator') this.operator, this.name, this.killer}); + factory _KillHouseModel.fromJson(Map json) => _$KillHouseModelFromJson(json); + +@override final String? key; +@override@JsonKey(name: 'kill_house_operator') final KillHouseOperatorModel? operator; +@override final String? name; +@override final bool? killer; + +/// Create a copy of KillHouseModel +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$KillHouseModelCopyWith<_KillHouseModel> get copyWith => __$KillHouseModelCopyWithImpl<_KillHouseModel>(this, _$identity); + +@override +Map toJson() { + return _$KillHouseModelToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _KillHouseModel&&(identical(other.key, key) || other.key == key)&&(identical(other.operator, operator) || other.operator == operator)&&(identical(other.name, name) || other.name == name)&&(identical(other.killer, killer) || other.killer == killer)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,operator,name,killer); + +@override +String toString() { + return 'KillHouseModel(key: $key, operator: $operator, name: $name, killer: $killer)'; +} + + +} + +/// @nodoc +abstract mixin class _$KillHouseModelCopyWith<$Res> implements $KillHouseModelCopyWith<$Res> { + factory _$KillHouseModelCopyWith(_KillHouseModel value, $Res Function(_KillHouseModel) _then) = __$KillHouseModelCopyWithImpl; +@override @useResult +$Res call({ + String? key,@JsonKey(name: 'kill_house_operator') KillHouseOperatorModel? operator, String? name, bool? killer +}); + + +@override $KillHouseOperatorModelCopyWith<$Res>? get operator; + +} +/// @nodoc +class __$KillHouseModelCopyWithImpl<$Res> + implements _$KillHouseModelCopyWith<$Res> { + __$KillHouseModelCopyWithImpl(this._self, this._then); + + final _KillHouseModel _self; + final $Res Function(_KillHouseModel) _then; + +/// Create a copy of KillHouseModel +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? key = freezed,Object? operator = freezed,Object? name = freezed,Object? killer = freezed,}) { + return _then(_KillHouseModel( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,operator: freezed == operator ? _self.operator : operator // ignore: cast_nullable_to_non_nullable +as KillHouseOperatorModel?,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?, + )); +} + +/// Create a copy of KillHouseModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$KillHouseOperatorModelCopyWith<$Res>? get operator { + if (_self.operator == null) { + return null; + } + + return $KillHouseOperatorModelCopyWith<$Res>(_self.operator!, (value) { + return _then(_self.copyWith(operator: value)); + }); +} +} + + +/// @nodoc +mixin _$KillHouseOperatorModel { + + UserModel? get user; +/// Create a copy of KillHouseOperatorModel +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$KillHouseOperatorModelCopyWith get copyWith => _$KillHouseOperatorModelCopyWithImpl(this as KillHouseOperatorModel, _$identity); + + /// Serializes this KillHouseOperatorModel to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is KillHouseOperatorModel&&(identical(other.user, user) || other.user == user)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,user); + +@override +String toString() { + return 'KillHouseOperatorModel(user: $user)'; +} + + +} + +/// @nodoc +abstract mixin class $KillHouseOperatorModelCopyWith<$Res> { + factory $KillHouseOperatorModelCopyWith(KillHouseOperatorModel value, $Res Function(KillHouseOperatorModel) _then) = _$KillHouseOperatorModelCopyWithImpl; +@useResult +$Res call({ + UserModel? user +}); + + +$UserModelCopyWith<$Res>? get user; + +} +/// @nodoc +class _$KillHouseOperatorModelCopyWithImpl<$Res> + implements $KillHouseOperatorModelCopyWith<$Res> { + _$KillHouseOperatorModelCopyWithImpl(this._self, this._then); + + final KillHouseOperatorModel _self; + final $Res Function(KillHouseOperatorModel) _then; + +/// Create a copy of KillHouseOperatorModel +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? user = freezed,}) { + return _then(_self.copyWith( +user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable +as UserModel?, + )); +} +/// Create a copy of KillHouseOperatorModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$UserModelCopyWith<$Res>? get user { + if (_self.user == null) { + return null; + } + + return $UserModelCopyWith<$Res>(_self.user!, (value) { + return _then(_self.copyWith(user: value)); + }); +} +} + + +/// @nodoc +@JsonSerializable() + +class _KillHouseOperatorModel implements KillHouseOperatorModel { + _KillHouseOperatorModel({this.user}); + factory _KillHouseOperatorModel.fromJson(Map json) => _$KillHouseOperatorModelFromJson(json); + +@override final UserModel? user; + +/// Create a copy of KillHouseOperatorModel +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$KillHouseOperatorModelCopyWith<_KillHouseOperatorModel> get copyWith => __$KillHouseOperatorModelCopyWithImpl<_KillHouseOperatorModel>(this, _$identity); + +@override +Map toJson() { + return _$KillHouseOperatorModelToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _KillHouseOperatorModel&&(identical(other.user, user) || other.user == user)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,user); + +@override +String toString() { + return 'KillHouseOperatorModel(user: $user)'; +} + + +} + +/// @nodoc +abstract mixin class _$KillHouseOperatorModelCopyWith<$Res> implements $KillHouseOperatorModelCopyWith<$Res> { + factory _$KillHouseOperatorModelCopyWith(_KillHouseOperatorModel value, $Res Function(_KillHouseOperatorModel) _then) = __$KillHouseOperatorModelCopyWithImpl; +@override @useResult +$Res call({ + UserModel? user +}); + + +@override $UserModelCopyWith<$Res>? get user; + +} +/// @nodoc +class __$KillHouseOperatorModelCopyWithImpl<$Res> + implements _$KillHouseOperatorModelCopyWith<$Res> { + __$KillHouseOperatorModelCopyWithImpl(this._self, this._then); + + final _KillHouseOperatorModel _self; + final $Res Function(_KillHouseOperatorModel) _then; + +/// Create a copy of KillHouseOperatorModel +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? user = freezed,}) { + return _then(_KillHouseOperatorModel( +user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable +as UserModel?, + )); +} + +/// Create a copy of KillHouseOperatorModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$UserModelCopyWith<$Res>? get user { + if (_self.user == null) { + return null; + } + + return $UserModelCopyWith<$Res>(_self.user!, (value) { + return _then(_self.copyWith(user: value)); + }); +} +} + + +/// @nodoc +mixin _$UserModel { + + String? get fullname; String? get firstName; String? get lastName; int? get baseOrder; String? get mobile; String? get nationalId; String? get nationalCode; String? get key; CityModel? 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 UserModel +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$UserModelCopyWith get copyWith => _$UserModelCopyWithImpl(this as UserModel, _$identity); + + /// Serializes this UserModel to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is UserModel&&(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 'UserModel(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 $UserModelCopyWith<$Res> { + factory $UserModelCopyWith(UserModel value, $Res Function(UserModel) _then) = _$UserModelCopyWithImpl; +@useResult +$Res call({ + String? fullname, String? firstName, String? lastName, int? baseOrder, String? mobile, String? nationalId, String? nationalCode, String? key, CityModel? city, String? unitName, String? unitNationalId, String? unitRegistrationNumber, String? unitEconomicalNumber, String? unitProvince, String? unitCity, String? unitPostalCode, String? unitAddress +}); + + +$CityModelCopyWith<$Res>? get city; + +} +/// @nodoc +class _$UserModelCopyWithImpl<$Res> + implements $UserModelCopyWith<$Res> { + _$UserModelCopyWithImpl(this._self, this._then); + + final UserModel _self; + final $Res Function(UserModel) _then; + +/// Create a copy of UserModel +/// 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 CityModel?,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 UserModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$CityModelCopyWith<$Res>? get city { + if (_self.city == null) { + return null; + } + + return $CityModelCopyWith<$Res>(_self.city!, (value) { + return _then(_self.copyWith(city: value)); + }); +} +} + + +/// @nodoc +@JsonSerializable() + +class _UserModel implements UserModel { + _UserModel({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 _UserModel.fromJson(Map json) => _$UserModelFromJson(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 CityModel? 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 UserModel +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$UserModelCopyWith<_UserModel> get copyWith => __$UserModelCopyWithImpl<_UserModel>(this, _$identity); + +@override +Map toJson() { + return _$UserModelToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _UserModel&&(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 'UserModel(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 _$UserModelCopyWith<$Res> implements $UserModelCopyWith<$Res> { + factory _$UserModelCopyWith(_UserModel value, $Res Function(_UserModel) _then) = __$UserModelCopyWithImpl; +@override @useResult +$Res call({ + String? fullname, String? firstName, String? lastName, int? baseOrder, String? mobile, String? nationalId, String? nationalCode, String? key, CityModel? city, String? unitName, String? unitNationalId, String? unitRegistrationNumber, String? unitEconomicalNumber, String? unitProvince, String? unitCity, String? unitPostalCode, String? unitAddress +}); + + +@override $CityModelCopyWith<$Res>? get city; + +} +/// @nodoc +class __$UserModelCopyWithImpl<$Res> + implements _$UserModelCopyWith<$Res> { + __$UserModelCopyWithImpl(this._self, this._then); + + final _UserModel _self; + final $Res Function(_UserModel) _then; + +/// Create a copy of UserModel +/// 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(_UserModel( +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 CityModel?,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 UserModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$CityModelCopyWith<$Res>? get city { + if (_self.city == null) { + return null; + } + + return $CityModelCopyWith<$Res>(_self.city!, (value) { + return _then(_self.copyWith(city: value)); + }); +} +} + + +/// @nodoc +mixin _$CityModel { + + 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 CityModel +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$CityModelCopyWith get copyWith => _$CityModelCopyWithImpl(this as CityModel, _$identity); + + /// Serializes this CityModel to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is CityModel&&(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 'CityModel(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 $CityModelCopyWith<$Res> { + factory $CityModelCopyWith(CityModel value, $Res Function(CityModel) _then) = _$CityModelCopyWithImpl; +@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 _$CityModelCopyWithImpl<$Res> + implements $CityModelCopyWith<$Res> { + _$CityModelCopyWithImpl(this._self, this._then); + + final CityModel _self; + final $Res Function(CityModel) _then; + +/// Create a copy of CityModel +/// 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?, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _CityModel implements CityModel { + _CityModel({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 _CityModel.fromJson(Map json) => _$CityModelFromJson(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 CityModel +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$CityModelCopyWith<_CityModel> get copyWith => __$CityModelCopyWithImpl<_CityModel>(this, _$identity); + +@override +Map toJson() { + return _$CityModelToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _CityModel&&(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 'CityModel(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 _$CityModelCopyWith<$Res> implements $CityModelCopyWith<$Res> { + factory _$CityModelCopyWith(_CityModel value, $Res Function(_CityModel) _then) = __$CityModelCopyWithImpl; +@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 __$CityModelCopyWithImpl<$Res> + implements _$CityModelCopyWith<$Res> { + __$CityModelCopyWithImpl(this._self, this._then); + + final _CityModel _self; + final $Res Function(_CityModel) _then; + +/// Create a copy of CityModel +/// 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(_CityModel( +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?, + )); +} + + +} + +// dart format on diff --git a/packages/chicken/lib/data/models/response/waiting_arrival/waiting_arrival.g.dart b/packages/chicken/lib/data/models/response/waiting_arrival/waiting_arrival.g.dart new file mode 100644 index 0000000..92eaf82 --- /dev/null +++ b/packages/chicken/lib/data/models/response/waiting_arrival/waiting_arrival.g.dart @@ -0,0 +1,440 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'waiting_arrival.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +_WaitingArrivalModel _$WaitingArrivalModelFromJson(Map json) => + _WaitingArrivalModel( + count: (json['count'] as num).toInt(), + next: json['next'] as String?, + previous: json['previous'] as String?, + results: (json['results'] as List) + .map((e) => ResultModel.fromJson(e as Map)) + .toList(), + ); + +Map _$WaitingArrivalModelToJson( + _WaitingArrivalModel instance, +) => { + 'count': instance.count, + 'next': instance.next, + 'previous': instance.previous, + 'results': instance.results, +}; + +_ResultModel _$ResultModelFromJson(Map json) => _ResultModel( + id: (json['id'] as num?)?.toInt(), + product: json['product'] == null + ? null + : ProductModel.fromJson(json['product'] as Map), + killHouse: json['kill_house'] == null + ? null + : KillHouseModel.fromJson(json['kill_house'] as Map), + toKillHouse: json['to_kill_house'], + steward: json['steward'], + toSteward: json['to_steward'] == null + ? null + : ToStewardModel.fromJson(json['to_steward'] as Map), + guilds: json['guilds'], + toGuilds: json['to_guilds'], + toColdHouse: json['to_cold_house'], + indexWeight: (json['index_weight'] as num?)?.toInt(), + dateTimestamp: (json['date_timestamp'] as num?)?.toInt(), + newState: (json['new_state'] as num?)?.toInt(), + newReceiverState: (json['new_receiver_state'] as num?)?.toInt(), + newAllocationState: (json['new_allocation_state'] 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?, + numberOfCarcasses: (json['number_of_carcasses'] as num?)?.toInt(), + realNumberOfCarcasses: (json['real_number_of_carcasses'] as num?)?.toInt(), + receiverRealNumberOfCarcasses: + (json['receiver_real_number_of_carcasses'] as num?)?.toInt(), + weightOfCarcasses: (json['weight_of_carcasses'] as num?)?.toDouble(), + realWeightOfCarcasses: (json['real_weight_of_carcasses'] as num?)?.toDouble(), + receiverRealWeightOfCarcasses: + (json['receiver_real_weight_of_carcasses'] as num?)?.toDouble(), + weightLossOfCarcasses: (json['weight_loss_of_carcasses'] as num?)?.toDouble(), + finalRegistration: json['final_registration'] as bool?, + sellType: json['sell_type'] as String?, + productName: json['product_name'] as String?, + sellerType: json['seller_type'] as String?, + type: json['type'] as String?, + saleType: json['sale_type'] as String?, + allocationType: json['allocation_type'] as String?, + systemRegistrationCode: json['system_registration_code'] as bool?, + registrationCode: (json['registration_code'] as num?)?.toInt(), + amount: (json['amount'] as num?)?.toInt(), + totalAmount: (json['total_amount'] as num?)?.toInt(), + totalAmountPaid: (json['total_amount_paid'] as num?)?.toInt(), + totalAmountRemain: (json['total_amount_remain'] as num?)?.toInt(), + loggedRegistrationCode: json['logged_registration_code'], + state: json['state'] as String?, + receiverState: json['receiver_state'] as String?, + allocationState: json['allocation_state'] as String?, + date: json['date'] as String?, + role: json['role'], + stewardTempKey: json['steward_temp_key'], + approvedPriceStatus: json['approved_price_status'] as bool?, + calculateStatus: json['calculate_status'] as bool?, + temporaryTrash: json['temporary_trash'] as bool?, + temporaryDeleted: json['temporary_deleted'] as bool?, + createdBy: json['created_by'], + modifiedBy: json['modified_by'], + wareHouse: json['ware_house'], + stewardWareHouse: json['steward_ware_house'], + car: json['car'], + dispenser: json['dispenser'], +); + +Map _$ResultModelToJson( + _ResultModel instance, +) => { + 'id': instance.id, + 'product': instance.product, + 'kill_house': instance.killHouse, + 'to_kill_house': instance.toKillHouse, + 'steward': instance.steward, + 'to_steward': instance.toSteward, + 'guilds': instance.guilds, + 'to_guilds': instance.toGuilds, + 'to_cold_house': instance.toColdHouse, + 'index_weight': instance.indexWeight, + 'date_timestamp': instance.dateTimestamp, + 'new_state': instance.newState, + 'new_receiver_state': instance.newReceiverState, + 'new_allocation_state': instance.newAllocationState, + 'key': instance.key, + 'create_date': instance.createDate, + 'modify_date': instance.modifyDate, + 'trash': instance.trash, + 'number_of_carcasses': instance.numberOfCarcasses, + 'real_number_of_carcasses': instance.realNumberOfCarcasses, + 'receiver_real_number_of_carcasses': instance.receiverRealNumberOfCarcasses, + 'weight_of_carcasses': instance.weightOfCarcasses, + 'real_weight_of_carcasses': instance.realWeightOfCarcasses, + 'receiver_real_weight_of_carcasses': instance.receiverRealWeightOfCarcasses, + 'weight_loss_of_carcasses': instance.weightLossOfCarcasses, + 'final_registration': instance.finalRegistration, + 'sell_type': instance.sellType, + 'product_name': instance.productName, + 'seller_type': instance.sellerType, + 'type': instance.type, + 'sale_type': instance.saleType, + 'allocation_type': instance.allocationType, + 'system_registration_code': instance.systemRegistrationCode, + 'registration_code': instance.registrationCode, + 'amount': instance.amount, + 'total_amount': instance.totalAmount, + 'total_amount_paid': instance.totalAmountPaid, + 'total_amount_remain': instance.totalAmountRemain, + 'logged_registration_code': instance.loggedRegistrationCode, + 'state': instance.state, + 'receiver_state': instance.receiverState, + 'allocation_state': instance.allocationState, + 'date': instance.date, + 'role': instance.role, + 'steward_temp_key': instance.stewardTempKey, + 'approved_price_status': instance.approvedPriceStatus, + 'calculate_status': instance.calculateStatus, + 'temporary_trash': instance.temporaryTrash, + 'temporary_deleted': instance.temporaryDeleted, + 'created_by': instance.createdBy, + 'modified_by': instance.modifiedBy, + 'ware_house': instance.wareHouse, + 'steward_ware_house': instance.stewardWareHouse, + 'car': instance.car, + 'dispenser': instance.dispenser, +}; + +_ProductModel _$ProductModelFromJson(Map json) => + _ProductModel(weightAverage: (json['weight_average'] as num?)?.toDouble()); + +Map _$ProductModelToJson(_ProductModel instance) => + {'weight_average': instance.weightAverage}; + +_ToStewardModel _$ToStewardModelFromJson(Map json) => + _ToStewardModel( + id: (json['id'] as num?)?.toInt(), + user: json['user'] == null + ? null + : ToStewardUserModel.fromJson(json['user'] as Map), + address: json['address'] == null + ? null + : AddressModel.fromJson(json['address'] as Map), + guildAreaActivity: json['guild_area_activity'] == null + ? null + : GuildAreaActivityModel.fromJson( + json['guild_area_activity'] as Map, + ), + guildTypeActivity: json['guild_type_activity'] == null + ? null + : GuildTypeActivityModel.fromJson( + json['guild_type_activity'] as Map, + ), + killHouse: json['kill_house'] as List?, + stewardKillHouse: json['steward_kill_house'] as List?, + stewards: json['stewards'] as List?, + getPosStatus: json['get_pos_status'] == null + ? null + : GetPosStatusModel.fromJson( + json['get_pos_status'] as Map, + ), + key: json['key'] as String?, + createDate: json['create_date'] as String?, + modifyDate: json['modify_date'] as String?, + trash: json['trash'] as bool?, + active: json['active'] as bool?, + guildsId: json['guilds_id'] as String?, + licenseNumber: json['license_number'] as String?, + guildsName: json['guilds_name'] as String?, + typeActivity: json['type_activity'] as String?, + areaActivity: json['area_activity'] as String?, + steward: json['steward'] as bool?, + hasPos: json['has_pos'] as bool?, + provinceAcceptState: json['province_accept_state'] as String?, + ); + +Map _$ToStewardModelToJson(_ToStewardModel instance) => + { + 'id': instance.id, + 'user': instance.user, + 'address': instance.address, + 'guild_area_activity': instance.guildAreaActivity, + 'guild_type_activity': instance.guildTypeActivity, + 'kill_house': instance.killHouse, + 'steward_kill_house': instance.stewardKillHouse, + 'stewards': instance.stewards, + 'get_pos_status': instance.getPosStatus, + 'key': instance.key, + 'create_date': instance.createDate, + 'modify_date': instance.modifyDate, + 'trash': instance.trash, + 'active': instance.active, + 'guilds_id': instance.guildsId, + 'license_number': instance.licenseNumber, + 'guilds_name': instance.guildsName, + 'type_activity': instance.typeActivity, + 'area_activity': instance.areaActivity, + 'steward': instance.steward, + 'has_pos': instance.hasPos, + 'province_accept_state': instance.provinceAcceptState, + }; + +_ToStewardUserModel _$ToStewardUserModelFromJson(Map json) => + _ToStewardUserModel( + fullname: json['fullname'] as String?, + firstName: json['first_name'] as String?, + lastName: json['last_name'] as String?, + mobile: json['mobile'] as String?, + nationalId: json['national_id'] as String?, + city: json['city'] as String?, + ); + +Map _$ToStewardUserModelToJson(_ToStewardUserModel instance) => + { + 'fullname': instance.fullname, + 'first_name': instance.firstName, + 'last_name': instance.lastName, + 'mobile': instance.mobile, + 'national_id': instance.nationalId, + 'city': instance.city, + }; + +_ToStewardCityModel _$ToStewardCityModelFromJson(Map json) => + _ToStewardCityModel( + key: json['key'] as String?, + title: json['name'] as String?, + ); + +Map _$ToStewardCityModelToJson(_ToStewardCityModel instance) => + {'key': instance.key, 'name': instance.title}; + +_ToStewardProvinceModel _$ToStewardProvinceModelFromJson( + Map json, +) => _ToStewardProvinceModel( + key: json['key'] as String?, + title: json['name'] as String?, +); + +Map _$ToStewardProvinceModelToJson( + _ToStewardProvinceModel instance, +) => {'key': instance.key, 'name': instance.title}; + +_AddressModel _$AddressModelFromJson(Map json) => + _AddressModel( + province: json['province'] == null + ? null + : ToStewardProvinceModel.fromJson( + json['province'] as Map, + ), + city: json['city'] == null + ? null + : ToStewardCityModel.fromJson(json['city'] as Map), + address: json['address'] as String?, + postalCode: json['postal_code'] as String?, + ); + +Map _$AddressModelToJson(_AddressModel instance) => + { + 'province': instance.province, + 'city': instance.city, + 'address': instance.address, + 'postal_code': instance.postalCode, + }; + +_GuildAreaActivityModel _$GuildAreaActivityModelFromJson( + Map json, +) => _GuildAreaActivityModel( + key: json['key'] as String?, + title: json['title'] as String?, +); + +Map _$GuildAreaActivityModelToJson( + _GuildAreaActivityModel instance, +) => {'key': instance.key, 'title': instance.title}; + +_GuildTypeActivityModel _$GuildTypeActivityModelFromJson( + Map json, +) => _GuildTypeActivityModel( + key: json['key'] as String?, + title: json['title'] as String?, +); + +Map _$GuildTypeActivityModelToJson( + _GuildTypeActivityModel instance, +) => {'key': instance.key, 'title': instance.title}; + +_GetPosStatusModel _$GetPosStatusModelFromJson(Map json) => + _GetPosStatusModel( + lenActiveSessions: (json['len_active_sessions'] as num?)?.toInt(), + hasPons: json['has_pons'] as bool?, + hasActivePons: json['has_active_pons'] as bool?, + ); + +Map _$GetPosStatusModelToJson(_GetPosStatusModel instance) => + { + 'len_active_sessions': instance.lenActiveSessions, + 'has_pons': instance.hasPons, + 'has_active_pons': instance.hasActivePons, + }; + +_KillHouseModel _$KillHouseModelFromJson(Map json) => + _KillHouseModel( + key: json['key'] as String?, + operator: json['kill_house_operator'] == null + ? null + : KillHouseOperatorModel.fromJson( + json['kill_house_operator'] as Map, + ), + name: json['name'] as String?, + killer: json['killer'] as bool?, + ); + +Map _$KillHouseModelToJson(_KillHouseModel instance) => + { + 'key': instance.key, + 'kill_house_operator': instance.operator, + 'name': instance.name, + 'killer': instance.killer, + }; + +_KillHouseOperatorModel _$KillHouseOperatorModelFromJson( + Map json, +) => _KillHouseOperatorModel( + user: json['user'] == null + ? null + : UserModel.fromJson(json['user'] as Map), +); + +Map _$KillHouseOperatorModelToJson( + _KillHouseOperatorModel instance, +) => {'user': instance.user}; + +_UserModel _$UserModelFromJson(Map json) => _UserModel( + fullname: json['fullname'] 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 + : CityModel.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 _$UserModelToJson(_UserModel instance) => + { + 'fullname': 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, + }; + +_CityModel _$CityModelFromJson(Map json) => _CityModel( + 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 _$CityModelToJson(_CityModel 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, + }; diff --git a/packages/chicken/lib/data/repositories/chicken_repository.dart b/packages/chicken/lib/data/repositories/chicken_repository.dart new file mode 100644 index 0000000..4bbb4b4 --- /dev/null +++ b/packages/chicken/lib/data/repositories/chicken_repository.dart @@ -0,0 +1,60 @@ +import 'package:rasadyar_chicken/data/models/request/submit_steward_allocation/submit_steward_allocation.dart'; +import 'package:rasadyar_chicken/data/models/response/allocated_made/allocated_made.dart'; +import 'package:rasadyar_chicken/data/models/response/bar_information/bar_information.dart'; +import 'package:rasadyar_chicken/data/models/response/guild/guild_model.dart'; +import 'package:rasadyar_chicken/data/models/response/guild_profile/guild_profile.dart'; +import 'package:rasadyar_chicken/data/models/response/imported_loads_model/imported_loads_model.dart'; +import 'package:rasadyar_chicken/data/models/response/inventory/inventory_model.dart'; +import 'package:rasadyar_chicken/data/models/response/kill_house_distribution_info/kill_house_distribution_info.dart'; +import 'package:rasadyar_chicken/data/models/response/roles_products/roles_products.dart'; +import 'package:rasadyar_chicken/data/models/response/waiting_arrival/waiting_arrival.dart' hide ProductModel; + +abstract class ChickenRepository { + Future?> getInventory({required String token}); + + Future getIKillHouseDistributionInfo({ + required String token, + }); + + Future getGeneralBarInformation({required String token}); + + Future getWaitingArrivals({ + required String token, + int? page, + }); + + Future setSateForArrivals({ + required String token, + required Map request, + }); + + Future getImportedLoadsModel({ + required String token, + required int page, + }); + + Future getAllocatedMade({ + required String token, + required int page, + }); + + Future confirmAllocation({ + required String token, + required Map allocation, + }); + + Future denyAllocation({ + required String token, + required String allocationToken, + }); + + Future confirmAllAllocation({ + required String token, + required List allocationTokens, + }); + + Future?> getRolesProducts({required String token}); + Future?> getGuilds({required String token,required bool isFree}); + Future getProfile({required String token}); + Future postSubmitStewardAllocation({required String token,required SubmitStewardAllocation request}); +} diff --git a/packages/chicken/lib/data/repositories/chicken_repository_imp.dart b/packages/chicken/lib/data/repositories/chicken_repository_imp.dart new file mode 100644 index 0000000..a356919 --- /dev/null +++ b/packages/chicken/lib/data/repositories/chicken_repository_imp.dart @@ -0,0 +1,194 @@ +import 'package:rasadyar_chicken/data/models/request/submit_steward_allocation/submit_steward_allocation.dart'; +import 'package:rasadyar_chicken/data/models/response/allocated_made/allocated_made.dart'; +import 'package:rasadyar_chicken/data/models/response/bar_information/bar_information.dart'; +import 'package:rasadyar_chicken/data/models/response/guild/guild_model.dart'; +import 'package:rasadyar_chicken/data/models/response/guild_profile/guild_profile.dart'; +import 'package:rasadyar_chicken/data/models/response/imported_loads_model/imported_loads_model.dart'; +import 'package:rasadyar_chicken/data/models/response/inventory/inventory_model.dart'; +import 'package:rasadyar_chicken/data/models/response/kill_house_distribution_info/kill_house_distribution_info.dart'; +import 'package:rasadyar_chicken/data/models/response/roles_products/roles_products.dart'; +import 'package:rasadyar_chicken/data/models/response/waiting_arrival/waiting_arrival.dart' + hide ProductModel; +import 'package:rasadyar_core/core.dart'; + +import 'chicken_repository.dart'; + +class ChickenRepositoryImpl implements ChickenRepository { + final DioRemote _httpClient; + + ChickenRepositoryImpl(this._httpClient); + + @override + Future?> getInventory({required String token}) async { + var res = await _httpClient.get( + '/roles-products/?role=Steward', + headers: {'Authorization': 'Bearer $token'}, + fromJsonList: (json) => (json) + .map((item) => InventoryModel.fromJson(item as Map)) + .toList(), + ); + + return res.data; + } + + @override + Future getIKillHouseDistributionInfo({ + required String token, + }) async { + var res = await _httpClient.get( + '/kill-house-distribution-info/?role=Steward', + headers: {'Authorization': 'Bearer $token'}, + fromJson: KillHouseDistributionInfo.fromJson, + ); + + return res.data; + } + + @override + Future getGeneralBarInformation({ + required String token, + }) async { + var res = await _httpClient.get( + '/bars_for_kill_house_dashboard/?role=Steward', + headers: {'Authorization': 'Bearer $token'}, + fromJson: BarInformation.fromJson, + ); + return res.data; + } + + @override + Future getWaitingArrivals({ + required String token, + int? page, + }) async { + var res = await _httpClient.get( + '/steward-allocation/?search=filter&value=&role=Steward&page=${page ?? 1}&page_size=10&type=not_entered', + headers: {'Authorization': 'Bearer $token'}, + fromJson: WaitingArrivalModel.fromJson, + ); + return res.data; + } + + @override + Future setSateForArrivals({ + required String token, + required Map request, + }) async { + await _httpClient.put( + '/steward-allocation/0/', + headers: {'Authorization': 'Bearer $token'}, + data: request, + ); + } + + @override + Future getImportedLoadsModel({ + required String token, + required int page, + }) async { + var res = await _httpClient.get( + '/steward-allocation/?role=Steward&search=filter&page=${page}&page_size=10&value=&type=entered', + headers: {'Authorization': 'Bearer $token'}, + fromJson: ImportedLoadsModel.fromJson, + ); + return res.data; + } + + @override + Future getAllocatedMade({ + required String token, + required int page, + }) async { + var res = await _httpClient.get( + '/steward-allocation/?search=filter&value=&role=Steward&page=$page&page_size=100', + headers: {'Authorization': 'Bearer $token'}, + fromJson: AllocatedMadeModel.fromJson, + ); + return res.data; + } + + @override + Future confirmAllocation({ + required String token, + required Map allocation, + }) async { + var res = await _httpClient.put( + '/steward-allocation/0/', + headers: {'Authorization': 'Bearer $token'}, + data: allocation, + ); + } + + @override + Future denyAllocation({ + required String token, + required String allocationToken, + }) async { + await _httpClient.delete( + '/steward-allocation/0/?steward_allocation_key=$allocationToken', + headers: {'Authorization': 'Bearer $token'}, + ); + } + + @override + Future confirmAllAllocation({ + required String token, + required List allocationTokens, + }) async { + await _httpClient.put( + '/steward-allocation/0/', + headers: {'Authorization': 'Bearer $token'}, + data: {'steward_allocation_list': allocationTokens}, + ); + } + + @override + Future?> getRolesProducts({required String token}) async { + var res = await _httpClient.get( + '/roles-products/?role=Steward', + headers: {'Authorization': 'Bearer $token'}, + fromJsonList: (json) => json + .map((item) => ProductModel.fromJson(item as Map)) + .toList(), + ); + return res.data; + } + + @override + Future?> getGuilds({ + required String token, + required bool isFree, + }) async { + var res = await _httpClient.get( + '/guilds/?role=Steward&free=$isFree', + headers: {'Authorization': 'Bearer $token'}, + + fromJsonList: (json) => json + .map((item) => GuildModel.fromJson(item as Map)) + .toList(), + ); + return res.data; + } + + @override + Future getProfile({required String token}) async { + var res = await _httpClient.get( + '/guilds/0/?profile', + headers: {'Authorization': 'Bearer $token'}, + fromJson: GuildProfile.fromJson, + ); + return res.data; + } + + @override + Future postSubmitStewardAllocation({ + required String token, + required SubmitStewardAllocation request, + }) async { + await _httpClient.post( + '/steward-allocation/', + headers: {'Authorization': 'Bearer $token'}, + data: request.toJson(), + ); + } +} diff --git a/packages/chicken/lib/presentation/pages/entering_the_warehouse/logic.dart b/packages/chicken/lib/presentation/pages/entering_the_warehouse/logic.dart new file mode 100644 index 0000000..366f449 --- /dev/null +++ b/packages/chicken/lib/presentation/pages/entering_the_warehouse/logic.dart @@ -0,0 +1,151 @@ +import 'package:flutter/material.dart'; +import 'package:rasadyar_auth/data/utils/safe_call.dart'; +import 'package:rasadyar_chicken/chicken.dart'; +import 'package:rasadyar_chicken/data/models/request/steward_allocation/steward_allocation_request.dart'; +import 'package:rasadyar_chicken/data/models/response/bar_information/bar_information.dart'; +import 'package:rasadyar_chicken/data/models/response/imported_loads_model/imported_loads_model.dart'; +import 'package:rasadyar_chicken/data/models/response/waiting_arrival/waiting_arrival.dart'; +import 'package:rasadyar_core/core.dart'; + +class EnteringTheWarehouseLogic extends GetxController { + RootLogic rootLogic = Get.find(); + Rxn barInformation = Rxn(); + Rxn waitingForArrival = Rxn(); + Rxn importedLoads = Rxn(); + RxInt acceptType = 1.obs; + TextEditingController weightController = TextEditingController(); + TextEditingController volumeController = TextEditingController(); + TextEditingController weightLossController = TextEditingController(); + TextEditingController authenticationCodeController = TextEditingController(); + + @override + void onReady() { + super.onReady(); + rootLogic.getInventory(); + getBarGeneralInformation(); + getWaitingArrivals(); + getImportedEntried(); + } + + Future getBarGeneralInformation() async { + safeCall( + call: () async => + await rootLogic.chickenRepository.getGeneralBarInformation( + token: rootLogic.tokenService.accessToken.value!, + ), + onError: (error, stackTrace) { + eLog(error); + }, + onSuccess: (result) { + if (result != null) { + barInformation.value = result; + } + }, + ); + } + + Future getWaitingArrivals() async { + safeCall( + call: () async => await rootLogic.chickenRepository.getWaitingArrivals( + token: rootLogic.tokenService.accessToken.value!, + page: 1, + ), + onError: (error, stackTrace) { + eLog(error); + }, + onSuccess: (result) { + if (result != null) { + waitingForArrival.value = result; + } + }, + ); + } + + Future acceptEntried(String key) async { + var request = StewardAllocationRequest( + allocationKey: key, + checkAllocation: true, + state: 'accepted', + receiverRealNumberOfCarcasses: int.parse( + volumeController.text.isNotEmpty ? volumeController.text : '0', + ), + receiverRealWeightOfCarcasses: int.parse( + weightController.text.isNotEmpty ? weightController.text : '0', + ), + registrationCode: acceptType.value == 1 + ? int.parse( + authenticationCodeController.text.isNotEmpty + ? authenticationCodeController.text + : '0', + ) + : null, + weightLossOfCarcasses: int.parse( + weightLossController.text.isNotEmpty ? weightLossController.text : '0', + ), + ).toJson(); + request.removeWhere((key, value) => value == null); + + safeCall( + call: () async => await rootLogic.chickenRepository.setSateForArrivals( + token: rootLogic.tokenService.accessToken.value!, + request: request, + ), + onError: (error, stackTrace) { + eLog(error); + }, + onSuccess: (result) { + clearControllers(); + getWaitingArrivals(); + getBarGeneralInformation(); + }, + ); + } + + Future denyEntried(String key) async { + var request = StewardAllocationRequest( + allocationKey: key, + checkAllocation: true, + state: 'rejected', + ).toJson(); + request.removeWhere((key, value) => value == null); + + safeCall( + call: () async => await rootLogic.chickenRepository.setSateForArrivals( + token: rootLogic.tokenService.accessToken.value!, + request: request, + ), + onError: (error, stackTrace) { + eLog(error); + }, + onSuccess: (result) { + getWaitingArrivals(); + getBarGeneralInformation(); + }, + ); + } + + Future getImportedEntried() async { + safeCall( + call: () async => await rootLogic.chickenRepository.getImportedLoadsModel( + token: rootLogic.tokenService.accessToken.value!, + page: 1, + ), + onError: (error, stackTrace) { + eLog(error); + }, + onSuccess: (result) { + if(result!=null){ + importedLoads.value = result; + } + + }, + ); + } + + clearControllers() { + weightController.clear(); + volumeController.clear(); + weightLossController.clear(); + authenticationCodeController.clear(); + } +} diff --git a/packages/chicken/lib/presentation/pages/entering_the_warehouse/string_utils.dart b/packages/chicken/lib/presentation/pages/entering_the_warehouse/string_utils.dart new file mode 100644 index 0000000..1fe6819 --- /dev/null +++ b/packages/chicken/lib/presentation/pages/entering_the_warehouse/string_utils.dart @@ -0,0 +1,25 @@ +extension xStringUtils on String { + get faAllocationType { + final tmp = split('_'); + tmp.insert(1, '_'); + if (tmp.length > 1) { + return tmp.map((e) => utilsMap[e] ?? e).join(' '); + } else { + return utilsMap[this] ?? this; + } + } + + get faItem => utilsMap[this] ?? this; + +} + +Map utilsMap = { + 'killhouse': 'کشتارگاه', + '_': 'به', + 'steward': 'مباشر', + 'exclusive': 'اختصاصی', + 'free': 'آزاد', + 'pending': 'در انتظار', + 'accepted': 'تایید شده', + 'guild':'صنف' +}; diff --git a/packages/chicken/lib/presentation/pages/entering_the_warehouse/view.dart b/packages/chicken/lib/presentation/pages/entering_the_warehouse/view.dart new file mode 100644 index 0000000..0bff7d7 --- /dev/null +++ b/packages/chicken/lib/presentation/pages/entering_the_warehouse/view.dart @@ -0,0 +1,600 @@ +import 'package:flutter/material.dart'; +import 'package:rasadyar_chicken/data/models/response/bar_information/bar_information.dart'; +import 'package:rasadyar_chicken/data/models/response/inventory/inventory_model.dart'; +import 'package:rasadyar_chicken/data/models/response/waiting_arrival/waiting_arrival.dart'; +import 'package:rasadyar_chicken/presentation/pages/entering_the_warehouse/string_utils.dart'; +import 'package:rasadyar_core/core.dart'; + +import 'logic.dart'; + +class EnteringTheWarehousePage extends GetView { + EnteringTheWarehousePage({super.key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: RAppBar(title: 'ورود به انبار'), + body: SingleChildScrollView( + child: Column( + children: [ + inventoryWidget(), + ObxValue((data) { + return generalBarInformation(data.value); + }, controller.barInformation), + waitingForArrival(), + importedLoads(), + ], + ), + ), + ); + } + + Widget inventoryWidget() { + return Padding( + padding: const EdgeInsets.symmetric(horizontal: 8.0), + child: Column( + children: [ + const SizedBox(height: 20), + Align( + alignment: Alignment.centerRight, + child: Text( + 'موجودی انبار', + style: AppFonts.yekan16Bold.copyWith(color: AppColor.blueNormal), + ), + ), + SizedBox(height: 4), + ObxValue( + (data) => data.isEmpty + ? Container( + margin: const EdgeInsets.symmetric(vertical: 2), + height: 80, + padding: EdgeInsets.all(6), + decoration: BoxDecoration( + color: Colors.white, + borderRadius: BorderRadius.circular(8), + border: Border.all(color: AppColor.blueNormal, width: 1), + ), + child: Center(child: CircularProgressIndicator()), + ) + : ListView.separated( + shrinkWrap: true, + physics: const NeverScrollableScrollPhysics(), + itemCount: controller.rootLogic.inventoryList.length, + separatorBuilder: (context, index) => + const SizedBox(height: 8), + itemBuilder: (context, index) { + return ObxValue((expand) { + return GestureDetector( + onTap: () { + controller.rootLogic.toggleExpanded(index); + }, + behavior: HitTestBehavior.opaque, + child: AnimatedContainer( + onEnd: () { + controller + .rootLogic + .inventoryExpandedList[index] = !controller + .rootLogic + .inventoryExpandedList[index]!; + }, + margin: const EdgeInsets.symmetric(vertical: 2), + padding: EdgeInsets.all(6), + curve: Curves.easeInOut, + decoration: BoxDecoration( + color: Colors.white, + borderRadius: BorderRadius.circular(8), + border: Border.all( + color: AppColor.blueNormal, + width: 1, + ), + ), + duration: const Duration(seconds: 1), + height: expand.keys.contains(index) ? 250 : 80, + child: inventoryItem( + isExpanded: + expand.keys.contains(index) && expand[index]!, + index: index, + model: controller.rootLogic.inventoryList[index], + ), + ), + ); + }, controller.rootLogic.inventoryExpandedList); + }, + ), + controller.rootLogic.inventoryList, + ), + ], + ), + ); + } + + Widget inventoryItem({ + required bool isExpanded, + required int index, + required InventoryModel model, + }) { + return Column( + mainAxisAlignment: MainAxisAlignment.center, + spacing: 8, + children: [ + buildRow('نام محصول', model.name ?? ''), + Visibility( + visible: isExpanded, + child: Column( + spacing: 8, + children: [ + buildRow('وزن خریدهای دولتی داخل استان (کیلوگرم)', '0'), + buildRow( + 'وزن خریدهای آزاد داخل استان (کیلوگرم)', + model.receiveFreeCarcassesWeight.toString(), + ), + buildRow( + 'وزن خریدهای خارج استان (کیلوگرم)', + model.freeBuyingCarcassesWeight.toString(), + ), + buildRow( + 'کل ورودی به انبار (کیلوگرم)', + model.totalFreeBarsCarcassesWeight.toString(), + ), + buildRow( + 'کل فروش (کیلوگرم)', + model.realAllocatedWeight.toString(), + ), + buildRow( + 'مانده انبار (کیلوگرم)', + model.totalRemainWeight.toString(), + ), + ], + ), + ), + ], + ); + } + + Widget buildRow(String title, String value) { + 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: AppFonts.yekan14.copyWith( + color: AppColor.darkGreyDarkHover, + ), + ), + ), + Flexible( + flex: 1, + child: Text( + value, + textAlign: TextAlign.left, + + style: AppFonts.yekan14.copyWith( + color: AppColor.darkGreyDarkHover, + ), + ), + ), + ], + ), + ); + } + + Widget generalBarInformation(BarInformation? model) { + return Column( + children: [ + Padding( + padding: const EdgeInsets.symmetric(horizontal: 8.0), + child: Align( + alignment: Alignment.centerRight, + child: Text( + 'اطلاعات کلی بارها', + style: AppFonts.yekan16Bold.copyWith(color: AppColor.blueNormal), + ), + ), + ), + Container( + height: 290, + margin: const EdgeInsets.all(8), + padding: const EdgeInsets.all(12), + decoration: BoxDecoration( + color: Colors.white, + borderRadius: BorderRadius.circular(8), + border: Border.all(color: AppColor.blueNormal, width: 1), + ), + child: model != null + ? Column( + crossAxisAlignment: CrossAxisAlignment.start, + spacing: 8, + children: [ + buildRow( + 'تعداد کل بارها', + model.totalBars!.toInt().toString(), + ), + buildRow( + 'وزن کل بارها (کیلوگرم)', + model.totalBarsWeight!.toInt().toString(), + ), + buildRow( + 'تعداد کل بارهای وارد شده', + model.totalEnteredBars!.toInt().toString(), + ), + buildRow( + 'وزن کل بار وارد شده (کیلوگرم)', + model.totalEnteredBarsWeight!.toInt().toString(), + ), + buildRow( + 'تعداد کل بارهای وارد نشده', + model.totalNotEnteredBars!.toInt().toString(), + ), + buildRow( + 'وزن کل بار وارد نشده (کیلوگرم)', + model.totalNotEnteredKillHouseRequestsWeight! + .toInt() + .toString(), + ), + buildRow( + 'تعداد کل بارهای رد شده', + model.totalRejectedBars!.toInt().toString(), + ), + buildRow( + ' وزن کل بارهای رد شده', + model.totalRejectedBarsWeight!.toInt().toString(), + ), + ], + ) + : const Center(child: CircularProgressIndicator()), + ), + ], + ); + } + + Widget waitingForArrival() { + return Column( + children: [ + const SizedBox(height: 8), + Padding( + padding: const EdgeInsets.symmetric(horizontal: 8.0), + child: Align( + alignment: Alignment.centerRight, + child: Text( + 'موجودی انبار', + style: AppFonts.yekan16Bold.copyWith(color: AppColor.blueNormal), + ), + ), + ), + ObxValue((data) { + if (data.value == null) { + return Container( + height: 80, + margin: const EdgeInsets.all(8), + padding: const EdgeInsets.all(12), + decoration: BoxDecoration( + color: Colors.white, + borderRadius: BorderRadius.circular(8), + border: Border.all(color: AppColor.blueNormal, width: 1), + ), + child: Center(child: CircularProgressIndicator()), + ); + } else if (data.value?.results.isEmpty ?? true) { + return Container( + height: 80, + margin: const EdgeInsets.all(8), + padding: const EdgeInsets.all(12), + decoration: BoxDecoration( + color: Colors.white, + borderRadius: BorderRadius.circular(8), + border: Border.all(color: AppColor.blueNormal, width: 1), + ), + child: Center(child: Text('هیچ ورودی در انتظار نیست')), + ); + } else { + return Container( + margin: const EdgeInsets.symmetric(vertical: 2), + height: 700, + padding: const EdgeInsets.all(6), + child: + ListView.separated( + padding: const EdgeInsets.all(8.0), + itemCount: data.value?.results.length ?? 0, + itemBuilder: (BuildContext context, int index) { + final result = data.value!.results[index]; + return Card( + margin: const EdgeInsets.symmetric(vertical: 4.0), + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(8), + side: const BorderSide( + color: AppColor.blueNormal, + width: 1, + ), + ), + child: Padding( + padding: const EdgeInsets.all(8.0), + child: Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + buildRow('ردیف', '${index + 1}'), + buildRow( + 'تاریخ ثبت', + result.date!.formattedJalaliDate ?? 'N/A', + ), + buildRow( + 'نوع تخصیص', + result.allocationType?.faAllocationType ?? 'N/A', + ), + buildRow( + 'مشخصات خریدار', + result.toSteward?.user?.fullname ?? 'N/A', + ), + buildRow( + 'مشخصات فروشنده', + result.killHouse?.name ?? 'N/A', + ), + buildRow( + 'نوع فروش', + result.sellType?.faItem ?? 'N/A', + ), + buildRow( + 'قیمت هر کیلو', + '${result.amount ?? 0} تومان', + ), + buildRow( + 'قیمت کل', + '${result.totalAmount ?? 0} تومان', + ), + buildRow( + 'وزن تخصیصی', + '${result.weightOfCarcasses?.toInt() ?? 0} کیلوگرم', + ), + buildRow('وضعیت', result.state?.faItem ?? 'N/A'), + Row( + children: [ + Expanded( + child: RElevated( + text: 'تایید', + onPressed: () { + Get.bottomSheet(acceptBottomSheet(result)); + }, + height: 40, + ), + ), + SizedBox(width: 20), + Expanded( + child: RElevated( + text: 'رد', + onPressed: () { + controller.denyEntried(result.key!); + Get.back(); + }, + backgroundColor: AppColor.error, + height: 40, + ), + ), + ], + ), + ], + ), + ), + ); + }, + separatorBuilder: (BuildContext context, int index) => + SizedBox(height: 8), + ), + + ); + } + }, controller.waitingForArrival) + ] + ); + } + + Widget importedLoads() { + return Column( + children: [ + const SizedBox(height: 8), + Padding( + padding: const EdgeInsets.symmetric(horizontal: 8.0), + child: Align( + alignment: Alignment.centerRight, + child: Text( + 'بارهای وارد شده', + style: AppFonts.yekan16Bold.copyWith(color: AppColor.blueNormal), + ), + ), + ), + ObxValue((data) { + if (data.value == null) { + return Container( + height: 80, + margin: const EdgeInsets.all(8), + padding: const EdgeInsets.all(12), + decoration: BoxDecoration( + color: Colors.white, + borderRadius: BorderRadius.circular(8), + border: Border.all(color: AppColor.blueNormal, width: 1), + ), + child: Center(child: CircularProgressIndicator()), + ); + } + else if (data.value?.results?.isEmpty ?? true) { + return Container( + height: 80, + margin: const EdgeInsets.all(8), + padding: const EdgeInsets.all(12), + decoration: BoxDecoration( + color: Colors.white, + borderRadius: BorderRadius.circular(8), + border: Border.all(color: AppColor.blueNormal, width: 1), + ), + child: Center(child: Text( 'هیچ بار وارد شده‌ای وجود ندارد')), + ); + } else { + return Container( + margin: const EdgeInsets.symmetric(vertical: 2), + height: 700, + padding: const EdgeInsets.all(6), + child: + ListView.separated( + padding: const EdgeInsets.all(8.0), + itemCount: data.value?.results?.length ?? 0, + itemBuilder: (BuildContext context, int index) { + final result = data.value!.results![index]; + return Card( + margin: const EdgeInsets.symmetric(vertical: 4.0), + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(8), + side: const BorderSide( + color: AppColor.blueNormal, + width: 1, + ), + ), + child: Padding( + padding: const EdgeInsets.all(8.0), + child: Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + buildRow('ردیف', '${index + 1}'), + buildRow( + 'تاریخ ثبت', + result.date!.formattedJalaliDate ?? 'N/A', + ), + buildRow( + 'نوع تخصیص', + result.allocationType?.faAllocationType ?? 'N/A', + ), + buildRow( + 'مشخصات خریدار', + '${result.toSteward?.user?.fullname} - ${result.toSteward?.guildsName}' ?? 'N/A', + ), + buildRow( + 'مشخصات فروشنده', + result.killHouse?.name ?? 'N/A', + ), + buildRow( + 'نوع فروش', + result.sellType?.faItem ?? 'N/A', + ), + buildRow( + 'قیمت هر کیلو', + '${result.amount ?? 0} ریال ', + ), + buildRow( + 'قیمت کل', + '${result.totalAmount ?? 0} ریال', + ), + buildRow( + 'وزن تخصیصی', + '${result.weightOfCarcasses?.toInt() ?? 0} کیلوگرم', + ), + buildRow('کداحراز', result.registrationCode?.toString() ?? 'N/A'), + buildRow('وضعیت کد احراز', result.systemRegistrationCode == true ?"ارسال شده":"ارسال نشده" ?? 'N/A'), + buildRow('افت وزن(کیلوگرم)', result.weightLossOfCarcasses?.toInt().toString() ?? 'N/A'), + buildRow('وضعیت', result.receiverState?.faItem ?? 'N/A'), + + ], + ), + ), + ); + }, + separatorBuilder: (BuildContext context, int index) => + SizedBox(height: 8), + ), + + ); + } + }, controller.importedLoads) + ] + ); + } + + + + + + + Widget acceptBottomSheet(ResultModel resultModel) { + return BaseBottomSheet( + height: 500, + child: Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.start, + spacing: 8, + children: [ + RTextField( + controller: controller.weightController, + initText: resultModel.realWeightOfCarcasses?.toInt().toString(), + label: 'ورزن', + keyboardType: TextInputType.number, + ), + const SizedBox(height: 8), + RTextField( + controller: controller.volumeController, + label: 'حجم', + keyboardType: TextInputType.number, + ), + const SizedBox(height: 8), + RTextField( + controller: controller.weightLossController, + label: 'افت وزن(کیلوگرم)', + keyboardType: TextInputType.number, + ), + const SizedBox(height: 8), + + SizedBox( + height: 40, + child: ObxValue((data) { + return Row( + children: [ + Radio( + value: 1, + groupValue: controller.acceptType.value, + onChanged: (value) { + controller.acceptType.value = value!; + }, + ), + Text('با کد احراز', style: AppFonts.yekan14), + + SizedBox(width: 12), + Radio( + value: 2, + groupValue: controller.acceptType.value, + onChanged: (value) { + controller.acceptType.value = value!; + }, + ), + Text('با کد احراز', style: AppFonts.yekan14), + ], + ); + }, controller.acceptType), + ), + + const SizedBox(height: 8), + ObxValue( + (data) => Visibility( + visible: data.value == 1, + child: RTextField( + controller: controller.authenticationCodeController, + label: 'کد احراز', + keyboardType: TextInputType.number, + ), + ), + controller.acceptType, + ), + + RElevated( + text: 'تایید', + onPressed: () { + controller.acceptEntried(resultModel.key!); + Get.back(); + }, + ), + ], + ), + ); + } +} diff --git a/packages/chicken/lib/presentation/pages/root/logic.dart b/packages/chicken/lib/presentation/pages/root/logic.dart index 638a409..3f61aa6 100644 --- a/packages/chicken/lib/presentation/pages/root/logic.dart +++ b/packages/chicken/lib/presentation/pages/root/logic.dart @@ -1,33 +1,115 @@ -import 'package:flutter/material.dart'; +import 'package:flutter/material.dart' show Text, EdgeInsets, Colors; +import 'package:rasadyar_auth/data/models/local/user_local/user_local_model.dart'; +import 'package:rasadyar_auth/data/services/token_storage_service.dart'; +import 'package:rasadyar_auth/data/utils/safe_call.dart'; +import 'package:rasadyar_auth/presentation/routes/pages.dart'; +import 'package:rasadyar_chicken/data/models/response/inventory/inventory_model.dart'; +import 'package:rasadyar_chicken/data/models/response/kill_house_distribution_info/kill_house_distribution_info.dart'; +import 'package:rasadyar_chicken/data/repositories/chicken_repository.dart'; +import 'package:rasadyar_chicken/data/repositories/chicken_repository_imp.dart'; import 'package:rasadyar_core/core.dart'; - enum ErrorLocationType { serviceDisabled, permissionDenied, none } class RootLogic extends GetxController { - RxInt currentIndex = 0.obs; - List pages = [ - Container(color: Colors.deepOrange,), - Container(color: Colors.amberAccent,), - Container(color: Colors.black,), - ]; RxList errorLocationType = RxList(); + RxMap inventoryExpandedList = RxMap(); + var tokenService = Get.find(); + late ChickenRepository chickenRepository; + late DioRemote dioRemote; + RxInt count = 5.obs; - + RxList inventoryList = RxList(); + Rxn killHouseDistributionInfo = + Rxn(); @override - void onReady() { - super.onReady(); - + void onInit() { + super.onInit(); + dioRemote = DioRemote(baseUrl: tokenService.baseurl.value); + dioRemote.init(); + chickenRepository = ChickenRepositoryImpl(dioRemote); + getInventory(); + getKillHouseDistributionInfo(); } - void changePage(int index) { - currentIndex.value = index; + + void toggleExpanded(int index) { + if (inventoryExpandedList.keys.contains(index)) { + inventoryExpandedList.remove(index); + } else { + inventoryExpandedList[index] = false; + } } - @override - void onClose() { - // TODO: implement onClose - super.onClose(); + Future getInventory() async { + await safeCall?>( + call: () async => await chickenRepository.getInventory( + token: tokenService.accessToken.value!, + ), + onSuccess: (result) { + if (result != null) { + iLog(result); + inventoryList.clear(); + inventoryList.addAll(result); + iLog(inventoryList); + } + }, + onError: (error, stackTrace) { + switch (error.response?.statusCode) { + case 401: + _handleGeneric(error); + break; + case 403: + _handleGeneric(error); + break; + default: + _handleGeneric(error); + } + }, + ); + } + + Future getKillHouseDistributionInfo() async { + await safeCall( + call: () async => await chickenRepository.getIKillHouseDistributionInfo( + token: tokenService.accessToken.value!, + ), + onSuccess: (result) { + if (result != null) { + iLog(result); + killHouseDistributionInfo.value = result; + iLog(killHouseDistributionInfo.value); + } + }, + onError: (error, stackTrace) {}, + ); + } + + + void _handleGeneric(DioException error) { + Get.showSnackbar( + _errorSnackBar('اعتبار توکن شما منقضی شده است لطفا دوباره وارد شوید' + ), + ); + tokenService.deleteTokens(); + Get.offAllNamed(AuthPaths.auth, arguments: Module.chicken ); + } + GetSnackBar _errorSnackBar(String message) { + return GetSnackBar( + titleText: Text( + 'خطا', + style: AppFonts.yekan14.copyWith(color: Colors.white), + ), + messageText: Text( + message, + style: AppFonts.yekan12.copyWith(color: Colors.white), + ), + backgroundColor: AppColor.error, + margin: EdgeInsets.symmetric(horizontal: 12, vertical: 8), + borderRadius: 12, + duration: Duration(milliseconds: 3500), + snackPosition: SnackPosition.TOP, + ); } } diff --git a/packages/chicken/lib/presentation/pages/root/view.dart b/packages/chicken/lib/presentation/pages/root/view.dart index 071cdfa..2fb3977 100644 --- a/packages/chicken/lib/presentation/pages/root/view.dart +++ b/packages/chicken/lib/presentation/pages/root/view.dart @@ -1,82 +1,455 @@ import 'package:flutter/material.dart'; +import 'package:rasadyar_chicken/chicken.dart'; +import 'package:rasadyar_chicken/data/models/response/inventory/inventory_model.dart'; +import 'package:rasadyar_chicken/data/models/response/kill_house_distribution_info/kill_house_distribution_info.dart'; import 'package:rasadyar_core/core.dart'; -import 'logic.dart'; - class RootPage extends GetView { const RootPage({super.key}); @override Widget build(BuildContext context) { return Scaffold( - body: Stack( - children: [ - ObxValue( - (currentIndex) => IndexedStack( - index: currentIndex.value, - children: controller.pages, + appBar: RAppBar(title: 'مدیریت انبار', centerTitle: true, hasBack: false), + body: SingleChildScrollView( + child: Column( + children: [ + inventoryWidget(), + ObxValue( + (data) => broadcastInformationWidget(data.value), + controller.killHouseDistributionInfo, ), - controller.currentIndex, - ), - - ], - ), - bottomNavigationBar: WaveBottomNavigation( - items: [ - WaveBottomNavigationItem(title: 'خانه', icon: Assets.vec.mapSvg.svg( - width: 32, - height: 32, - colorFilter: ColorFilter.mode(Colors.white, BlendMode.srcIn), - )), - WaveBottomNavigationItem( - title: 'عملیات', - icon: Assets.vec.userSvg.svg( - width: 32, - height: 32, - colorFilter: ColorFilter.mode(Colors.white, BlendMode.srcIn), + SizedBox(height: 20), + Padding( + padding: const EdgeInsets.symmetric(horizontal: 8.0), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + cardWidget( + title: 'ورود به انبار', + iconPath: Assets.icons.whareHouse.path, + onTap: () { + Get.toNamed(ChickenRoutes.enteringTheWarehouse); + }, + ), + cardWidget( + title: 'فروش داخل استان', + iconPath: Assets.icons.inside.path, + onTap: () { + Get.toNamed(ChickenRoutes.salesWithinProvince); + }, + ), + cardWidget( + title: 'فروش خارج استان', + iconPath: Assets.icons.outside.path, + onTap: () {}, + ), + ], + ), ), - ), - WaveBottomNavigationItem( - title: 'افزودن', - icon: Assets.vec.addSvg.svg( - width: 32, - height: 32, - colorFilter: ColorFilter.mode(Colors.white, BlendMode.srcIn), - ), - ), - WaveBottomNavigationItem( - title: 'آمار', - icon: Assets.vec.diagramSvg.svg(width: 32,height: 32,colorFilter: ColorFilter.mode(Colors.white, BlendMode.srcIn),), - ), - WaveBottomNavigationItem( - title: 'تماس', - icon: Assets.vec.callSvg.svg( - width: 32, - height: 32, - colorFilter: ColorFilter.mode(Colors.white, BlendMode.srcIn), - ), - ), - WaveBottomNavigationItem( - title: 'مکان ', - icon: Assets.vec.gpsSvg.svg( - width: 32, - height: 32, - colorFilter: ColorFilter.mode(Colors.white, BlendMode.srcIn), - ), - ), - WaveBottomNavigationItem( - title: 'تاریخ', - icon: Assets.vec.calendarSvg.svg( - width: 32, - height: 32, - colorFilter: ColorFilter.mode(Colors.white, BlendMode.srcIn), - ), - ), - ], - onPageChanged: (index) { - controller.changePage(index); - }, + ], + ), ), ); } + + Widget inventoryWidget() { + return Padding( + padding: const EdgeInsets.symmetric(horizontal: 8.0), + child: Column( + children: [ + const SizedBox(height: 20), + Align( + alignment: Alignment.centerRight, + child: Text( + 'موجودی انبار', + style: AppFonts.yekan16Bold.copyWith(color: AppColor.blueNormal), + ), + ), + SizedBox(height: 4), + ObxValue( + (data) => data.isEmpty + ? Container( + margin: const EdgeInsets.symmetric(vertical: 2), + height: 80, + padding: EdgeInsets.all(6), + decoration: BoxDecoration( + color: Colors.white, + borderRadius: BorderRadius.circular(8), + border: Border.all(color: AppColor.blueNormal, width: 1), + ), + child: Center(child: CircularProgressIndicator()), + ) + : ListView.separated( + shrinkWrap: true, + physics: const NeverScrollableScrollPhysics(), + itemCount: controller.inventoryList.length, + separatorBuilder: (context, index) => + const SizedBox(height: 8), + itemBuilder: (context, index) { + return ObxValue((expand) { + return GestureDetector( + onTap: () { + controller.toggleExpanded(index); + }, + behavior: HitTestBehavior.opaque, + child: AnimatedContainer( + onEnd: () { + controller.inventoryExpandedList[index] = + !controller.inventoryExpandedList[index]!; + }, + margin: const EdgeInsets.symmetric(vertical: 2), + padding: EdgeInsets.all(6), + curve: Curves.easeInOut, + decoration: BoxDecoration( + color: Colors.white, + borderRadius: BorderRadius.circular(8), + border: Border.all( + color: AppColor.blueNormal, + width: 1, + ), + ), + duration: const Duration(seconds: 1), + height: expand.keys.contains(index) ? 250 : 80, + child: inventoryItem( + isExpanded: + expand.keys.contains(index) && expand[index]!, + index: index, + model: controller.inventoryList[index], + ), + ), + ); + }, controller.inventoryExpandedList); + }, + ), + controller.inventoryList, + ), + ], + ), + ); + } + + Widget inventoryItem({ + required bool isExpanded, + required int index, + required InventoryModel model, + }) { + return Column( + mainAxisAlignment: MainAxisAlignment.center, + spacing: 8, + children: [ + buildRow('نام محصول', model.name ?? ''), + Visibility( + visible: isExpanded, + child: Column( + spacing: 8, + children: [ + buildRow('وزن خریدهای دولتی داخل استان (کیلوگرم)', '0326598653'), + buildRow( + 'وزن خریدهای آزاد داخل استان (کیلوگرم)', + model.receiveFreeCarcassesWeight.toString(), + ), + buildRow( + 'وزن خریدهای خارج استان (کیلوگرم)', + model.freeBuyingCarcassesWeight.toString(), + ), + buildRow( + 'کل ورودی به انبار (کیلوگرم)', + model.totalFreeBarsCarcassesWeight.toString(), + ), + buildRow( + 'کل فروش (کیلوگرم)', + model.realAllocatedWeight.toString(), + ), + buildRow( + 'مانده انبار (کیلوگرم)', + model.totalRemainWeight.toString(), + ), + ], + ), + ), + ], + ); + } + + Widget buildRow(String title, String value) { + 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: AppFonts.yekan14.copyWith( + color: AppColor.darkGreyDarkHover, + ), + ), + ), + Flexible( + flex: 1, + child: Text( + value, + textAlign: TextAlign.center, + style: AppFonts.yekan14.copyWith( + color: AppColor.darkGreyDarkHover, + ), + ), + ), + ], + ), + ); + } + + Widget broadcastInformationWidget(KillHouseDistributionInfo? model) { + return Container( + height: 140, + margin: const EdgeInsets.all(8), + padding: const EdgeInsets.all(12), + decoration: BoxDecoration( + color: Colors.white, + borderRadius: BorderRadius.circular(8), + border: Border.all(color: AppColor.blueNormal, width: 1), + ), + child: model != null + ? Column( + crossAxisAlignment: CrossAxisAlignment.start, + spacing: 10, + children: [ + Text( + 'اطلاعات ارسالی', + textAlign: TextAlign.right, + style: AppFonts.yekan16Bold.copyWith( + color: AppColor.blueNormal, + ), + ), + const SizedBox(height: 12), + buildRow( + 'فروش و توزیع داخل استان (کیلوگرم)', + model.stewardAllocationsWeight!.toInt().toString(), + ), + buildRow( + 'فروش و توزیع خارج استان (کیلوگرم)', + model.freeSalesWeight!.toInt().toString(), + ), + ], + ) + : const Center(child: CircularProgressIndicator()), + ); + } +} + +Widget expandedContainer(bool isExpanded, VoidCallback onTap) { + return AnimatedContainer( + margin: EdgeInsets.symmetric(horizontal: 30, vertical: 10), + curve: Curves.easeInOut, + duration: Duration(seconds: 1), + height: isExpanded ? 364 : 80, + child: markerDetailsWidget(ontap: onTap), + ); +} + +Widget markerDetailsWidget({required VoidCallback ontap}) { + return GestureDetector( + onTap: ontap, + behavior: HitTestBehavior.opaque, + child: Container( + clipBehavior: Clip.antiAlias, + + padding: EdgeInsets.symmetric(horizontal: 0, vertical: 10), + decoration: ShapeDecoration( + color: Colors.white, + shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(8)), + ), + child: Column( + spacing: 15, + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + spacing: 12, + children: [ + vecWidgetWithOnTap( + child: Assets.vec.editSvg.svg(), + onTap: () {}, + width: 24, + height: 24, + color: AppColor.blueNormal, + ), + Text( + 'سوابق بازرسی من', + textAlign: TextAlign.center, + style: AppFonts.yekan14.copyWith( + color: AppColor.darkGreyDarkHover, + ), + ), + vecWidgetWithOnTap( + child: Assets.vec.trashSvg.svg(), + width: 24, + height: 24, + color: AppColor.redNormal, + onTap: () {}, + ), + ], + ), + Container( + height: 32, + clipBehavior: Clip.antiAlias, + padding: EdgeInsets.symmetric(horizontal: 10, vertical: 4), + decoration: ShapeDecoration( + color: AppColor.blueLight, + shape: RoundedRectangleBorder( + side: BorderSide(width: 1, color: AppColor.blueLightHover), + ), + ), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Text( + 'تاریخ بازرسی', + textAlign: TextAlign.center, + style: AppFonts.yekan14.copyWith( + color: AppColor.darkGreyDarkHover, + ), + ), + Text( + '1403/12/12', + textAlign: TextAlign.center, + style: AppFonts.yekan14.copyWith( + color: AppColor.darkGreyDarkHover, + ), + ), + ], + ), + ), + + Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + Text( + 'شماره همراه', + textAlign: TextAlign.center, + style: AppFonts.yekan14.copyWith( + color: AppColor.darkGreyDarkHover, + ), + ), + Text( + '0326598653', + textAlign: TextAlign.center, + style: AppFonts.yekan14.copyWith( + color: AppColor.darkGreyDarkHover, + ), + ), + ], + ), + Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + crossAxisAlignment: CrossAxisAlignment.center, + + children: [ + Text( + 'آخرین فعالیت', + textAlign: TextAlign.center, + style: AppFonts.yekan14.copyWith( + color: AppColor.darkGreyDarkHover, + ), + ), + + Text( + '1409/12/12', + textAlign: TextAlign.center, + style: AppFonts.yekan14.copyWith( + color: AppColor.darkGreyDarkHover, + ), + ), + ], + ), + Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + crossAxisAlignment: CrossAxisAlignment.center, + + children: [ + Text( + 'موجودی', + textAlign: TextAlign.center, + style: AppFonts.yekan14.copyWith( + color: AppColor.darkGreyDarkHover, + ), + ), + Text( + '5کیلوگرم', + textAlign: TextAlign.center, + style: AppFonts.yekan14.copyWith( + color: AppColor.darkGreyDarkHover, + ), + ), + ], + ), + + ...List.generate( + 5, + (index) => Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + crossAxisAlignment: CrossAxisAlignment.center, + + children: [ + Text( + 'فروش رفته', + textAlign: TextAlign.center, + style: AppFonts.yekan14.copyWith( + color: AppColor.darkGreyDarkHover, + ), + ), + Text( + '0 کیلوگرم', + textAlign: TextAlign.center, + style: AppFonts.yekan14.copyWith( + color: AppColor.darkGreyDarkHover, + ), + ), + ], + ), + ), + ], + ), + ), + ); +} + +Widget cardWidget({ + required String title, + required String iconPath, + required VoidCallback onTap, +}) { + return Container( + width: Get.width / 4, + height: 130, + child: GestureDetector( + onTap: onTap, + child: Card( + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(8), + side: BorderSide(width: 1, color: AppColor.blueNormal), + ), + child: Padding( + padding: EdgeInsets.all(16), + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + SvgGenImage(iconPath).svg(width: 50, height: 50), + SizedBox(height: 4), + Text( + title, + textAlign: TextAlign.center, + style: AppFonts.yekan12.copyWith(color: AppColor.blueNormal), + ), + ], + ), + ), + ), + ), + ); } diff --git a/packages/chicken/lib/presentation/pages/sales_within_province/logic.dart b/packages/chicken/lib/presentation/pages/sales_within_province/logic.dart new file mode 100644 index 0000000..856267f --- /dev/null +++ b/packages/chicken/lib/presentation/pages/sales_within_province/logic.dart @@ -0,0 +1,213 @@ +import 'package:flutter/material.dart'; +import 'package:rasadyar_auth/data/utils/safe_call.dart'; +import 'package:rasadyar_chicken/data/models/request/conform_allocation/conform_allocation.dart'; +import 'package:rasadyar_chicken/data/models/request/submit_steward_allocation/submit_steward_allocation.dart'; +import 'package:rasadyar_chicken/data/models/response/allocated_made/allocated_made.dart'; +import 'package:rasadyar_chicken/data/models/response/guild/guild_model.dart'; +import 'package:rasadyar_chicken/data/models/response/guild_profile/guild_profile.dart'; +import 'package:rasadyar_chicken/data/models/response/roles_products/roles_products.dart'; +import 'package:rasadyar_chicken/presentation/pages/root/logic.dart'; +import 'package:rasadyar_core/core.dart'; + +class SalesWithinProvinceLogic extends GetxController { + var rootLogic = Get.find(); + Rxn allocatedMadeModel = Rxn(); + RxList rolesProductsModel = RxList(); + + RxList guildsModel = [].obs; + + Rxn selectedProductModel = Rxn(); + Rxn selectedGuildModel = Rxn(); + Rxn guildProfile = Rxn(); + RxInt saleType = 1.obs; + RxInt weight = 0.obs; + RxInt pricePerKilo = 0.obs; + RxInt totalCost = 0.obs; + RxBool isValid = false.obs; + final weightController = TextEditingController(); + final pricePerKiloController = TextEditingController(); + final totalCostController = TextEditingController(); + + @override + void onInit() { + super.onInit(); + rootLogic.getInventory(); + getAllocatedMade(); + getRolesProducts(); + getGuilds(); + getGuildProfile(); + ever(saleType, (callback) { + getGuilds(); + }); + + weight.listen((num) { + totalCost.value = num * pricePerKilo.value; + }); + + pricePerKilo.listen((num) { + totalCost.value = num * weight.value; + }); + + totalCost.listen((data) { + totalCostController.text = data.toString(); + + isValid.value = + weight.value > 0 && + pricePerKilo.value > 0 && + totalCost.value > 0 && + selectedProductModel.value != null && + selectedGuildModel.value != null; + }); + } + + Future getAllocatedMade() async { + safeCall( + call: () async => await rootLogic.chickenRepository.getAllocatedMade( + token: rootLogic.tokenService.accessToken.value!, + page: 1, + ), + onSuccess: (result) { + if (result != null) { + allocatedMadeModel.value = result; + } + }, + onError: (error, stacktrace) {}, + ); + } + + void checkVerfication() { + isValid.value = + weight.value > 0 && + pricePerKilo.value > 0 && + totalCost.value > 0 && + selectedProductModel.value != null && + selectedGuildModel.value != null; + } + + void confirmAllocation(ConformAllocation allocation) { + safeCall( + call: () async => await rootLogic.chickenRepository.confirmAllocation( + token: rootLogic.tokenService.accessToken.value!, + allocation: allocation.toJson(), + ), + onSuccess: (result) { + getAllocatedMade(); + }, + onError: (error, stacktrace) {}, + ); + } + + void denyAllocation(String token) { + safeCall( + call: () async => await rootLogic.chickenRepository.denyAllocation( + token: rootLogic.tokenService.accessToken.value!, + allocationToken: token, + ), + onSuccess: (result) { + getAllocatedMade(); + }, + onError: (error, stacktrace) {}, + ); + } + + Future confirmAllAllocations() async { + safeCall( + call: () async => await rootLogic.chickenRepository.confirmAllAllocation( + token: rootLogic.tokenService.accessToken.value!, + allocationTokens: + allocatedMadeModel.value?.results?.map((e) => e.key!).toList() ?? + [], + ), + onSuccess: (result) { + getAllocatedMade(); + }, + onError: (error, stacktrace) {}, + ); + } + + Future getRolesProducts() async { + safeCall( + call: () async => await rootLogic.chickenRepository.getRolesProducts( + token: rootLogic.tokenService.accessToken.value!, + ), + onSuccess: (result) { + if (result != null) { + rolesProductsModel.value = result; + } + }, + onError: (error, stacktrace) {}, + ); + } + + Future getGuilds() async { + safeCall( + call: () async => await rootLogic.chickenRepository.getGuilds( + token: rootLogic.tokenService.accessToken.value!, + isFree: saleType.value == 2 ? true : false, + ), + onSuccess: (result) { + if (result != null) { + guildsModel.clear(); + guildsModel.addAll(result); + } + }, + onError: (error, stacktrace) {}, + ); + } + + Future addSale() async {} + + void setSelectedGuild(GuildModel value) { + selectedGuildModel.value = value; + update(); + } + + void setSelectedProduct(ProductModel value) { + selectedProductModel.value = value; + update(); + } + + Future getGuildProfile() async { + await safeCall( + call: () async => await rootLogic.chickenRepository.getProfile( + token: rootLogic.tokenService.accessToken.value!, + ), + onError: (error, stackTrace) {}, + onSuccess: (result) { + guildProfile.value = result; + }, + ); + } + + Future submitAllocation() async { + SubmitStewardAllocation stewardAllocation = SubmitStewardAllocation( + approvedPriceStatus: false, + allocationType: + '${guildProfile.value?.steward == true ? "steward" : "guild"}-${selectedGuildModel.value?.steward == true ? "steward" : "guild"}', + sellerType: guildProfile.value?.steward == true ? "Steward" : "Guild", + buyerType: selectedGuildModel.value?.steward == true + ? "Steward" + : "Guild", + amount: pricePerKilo.value, + totalAmount: totalCost.value, + weightOfCarcasses: weight.value, + guildKey: selectedGuildModel.value?.key, + productKey: selectedProductModel.value?.key, + date: DateTime.now().formattedGregorianDate, + type: "manual", + ); + + safeCall( + call: () async => + await rootLogic.chickenRepository.postSubmitStewardAllocation( + token: rootLogic.tokenService.accessToken.value!, + request: stewardAllocation, + ), + + onSuccess: (result) { + getAllocatedMade(); + }, + onError: (error, stackTrace) {}, + ); + } +} diff --git a/packages/chicken/lib/presentation/pages/sales_within_province/view.dart b/packages/chicken/lib/presentation/pages/sales_within_province/view.dart new file mode 100644 index 0000000..7594cb2 --- /dev/null +++ b/packages/chicken/lib/presentation/pages/sales_within_province/view.dart @@ -0,0 +1,574 @@ +import 'package:flutter/material.dart'; +import 'package:rasadyar_chicken/data/models/request/conform_allocation/conform_allocation.dart'; +import 'package:rasadyar_chicken/data/models/response/guild/guild_model.dart'; +import 'package:rasadyar_chicken/data/models/response/inventory/inventory_model.dart'; +import 'package:rasadyar_chicken/data/models/response/roles_products/roles_products.dart'; +import 'package:rasadyar_chicken/presentation/pages/entering_the_warehouse/string_utils.dart'; +import 'package:rasadyar_core/core.dart'; + +import 'logic.dart'; + +class SalesWithinProvincePage extends GetView { + SalesWithinProvincePage({super.key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: RAppBar(title: 'فروش در استان'), + body: SingleChildScrollView( + child: Column( + children: [ + inventoryWidget(), + allocationsMade(), + SizedBox(height: 20), + RElevated( + text: 'ثبت توزیع/ فروش', + onPressed: () { + showAddBottomSheet(); + }, + ), + SizedBox(height: 40), + ], + ), + ), + ); + } + + Widget inventoryWidget() { + return Padding( + padding: const EdgeInsets.symmetric(horizontal: 8.0), + child: Column( + children: [ + const SizedBox(height: 20), + Align( + alignment: Alignment.centerRight, + child: Text( + 'موجودی انبار', + style: AppFonts.yekan16Bold.copyWith(color: AppColor.blueNormal), + ), + ), + SizedBox(height: 4), + ObxValue( + (data) => data.isEmpty + ? Container( + margin: const EdgeInsets.symmetric(vertical: 2), + height: 80, + padding: EdgeInsets.all(6), + decoration: BoxDecoration( + color: Colors.white, + borderRadius: BorderRadius.circular(8), + border: Border.all(color: AppColor.blueNormal, width: 1), + ), + child: Center(child: CircularProgressIndicator()), + ) + : ListView.separated( + shrinkWrap: true, + physics: const NeverScrollableScrollPhysics(), + itemCount: controller.rootLogic.inventoryList.length, + separatorBuilder: (context, index) => + const SizedBox(height: 8), + itemBuilder: (context, index) { + return ObxValue((expand) { + return GestureDetector( + onTap: () { + controller.rootLogic.toggleExpanded(index); + }, + behavior: HitTestBehavior.opaque, + child: AnimatedContainer( + onEnd: () { + controller + .rootLogic + .inventoryExpandedList[index] = !controller + .rootLogic + .inventoryExpandedList[index]!; + }, + margin: const EdgeInsets.symmetric(vertical: 2), + padding: EdgeInsets.all(6), + curve: Curves.easeInOut, + decoration: BoxDecoration( + color: Colors.white, + borderRadius: BorderRadius.circular(8), + border: Border.all( + color: AppColor.blueNormal, + width: 1, + ), + ), + duration: const Duration(seconds: 1), + height: expand.keys.contains(index) ? 250 : 80, + child: inventoryItem( + isExpanded: + expand.keys.contains(index) && expand[index]!, + index: index, + model: controller.rootLogic.inventoryList[index], + ), + ), + ); + }, controller.rootLogic.inventoryExpandedList); + }, + ), + controller.rootLogic.inventoryList, + ), + ], + ), + ); + } + + Widget inventoryItem({ + required bool isExpanded, + required int index, + required InventoryModel model, + }) { + return Column( + mainAxisAlignment: MainAxisAlignment.center, + spacing: 8, + children: [ + buildRow('نام محصول', model.name ?? ''), + Visibility( + visible: isExpanded, + child: Column( + spacing: 8, + children: [ + buildRow('وزن خریدهای دولتی داخل استان (کیلوگرم)', '0326598653'), + buildRow( + 'وزن خریدهای آزاد داخل استان (کیلوگرم)', + model.receiveFreeCarcassesWeight.toString(), + ), + buildRow( + 'وزن خریدهای خارج استان (کیلوگرم)', + model.freeBuyingCarcassesWeight.toString(), + ), + buildRow( + 'کل ورودی به انبار (کیلوگرم)', + model.totalFreeBarsCarcassesWeight.toString(), + ), + buildRow( + 'کل فروش (کیلوگرم)', + model.realAllocatedWeight.toString(), + ), + buildRow( + 'مانده انبار (کیلوگرم)', + model.totalRemainWeight.toString(), + ), + ], + ), + ), + ], + ); + } + + Widget buildRow(String title, String value) { + 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: AppFonts.yekan14.copyWith( + color: AppColor.darkGreyDarkHover, + ), + ), + ), + Flexible( + flex: 2, + child: Text( + value, + textAlign: TextAlign.left, + style: AppFonts.yekan14.copyWith( + color: AppColor.darkGreyDarkHover, + ), + ), + ), + ], + ), + ); + } + + Widget allocationsMade() { + return Padding( + padding: const EdgeInsets.symmetric(horizontal: 8.0), + child: Column( + children: [ + const SizedBox(height: 20), + Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Text( + 'تخصیصات صورت گرفته', + style: AppFonts.yekan16Bold.copyWith( + color: AppColor.blueNormal, + ), + ), + RElevated( + text: 'تایید یکجا', + height: 30, + onPressed: () { + controller.confirmAllAllocations(); + }, + ), + ], + ), + SizedBox(height: 4), + ObxValue((data) { + if (data.value == null) { + return Container( + height: 80, + margin: const EdgeInsets.all(8), + padding: const EdgeInsets.all(12), + decoration: BoxDecoration( + color: Colors.white, + borderRadius: BorderRadius.circular(8), + border: Border.all(color: AppColor.blueNormal, width: 1), + ), + child: Center(child: CircularProgressIndicator()), + ); + } else if (data.value?.results?.isEmpty ?? true) { + return Container( + height: 80, + margin: const EdgeInsets.all(8), + padding: const EdgeInsets.all(12), + decoration: BoxDecoration( + color: Colors.white, + borderRadius: BorderRadius.circular(8), + border: Border.all(color: AppColor.blueNormal, width: 1), + ), + child: Center(child: Text('هیچ تخصیصات صورت نگرفته است ')), + ); + } else { + return Container( + margin: const EdgeInsets.symmetric(vertical: 2), + height: 700, + padding: const EdgeInsets.all(6), + child: ListView.separated( + padding: const EdgeInsets.all(8.0), + itemCount: data.value?.results?.length ?? 0, + itemBuilder: (BuildContext context, int index) { + final result = data.value!.results![index]; + return Card( + margin: const EdgeInsets.symmetric(vertical: 4.0), + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(8), + side: const BorderSide( + color: AppColor.blueNormal, + width: 1, + ), + ), + child: Padding( + padding: const EdgeInsets.all(8.0), + child: Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + buildRow('ردیف', '${index + 1}'), + buildRow( + 'تاریخ ثبت', + result.date!.formattedJalaliDate ?? 'N/A', + ), + buildRow( + 'نوع تخصیص', + result.allocation_type?.faAllocationType ?? 'N/A', + ), + buildRow( + 'مشخصات خریدار', + '${result.to_guilds?.user?.fullname} - ${result.to_guilds?.guilds_name}' ?? + 'N/A', + ), + buildRow( + 'مشخصات فروشنده', + result.steward?.user?.fullname ?? 'N/A', + ), + buildRow( + 'نوع فروش', + result.sell_type?.faItem ?? 'N/A', + ), + buildRow( + 'قیمت هر کیلو', + '${result.amount ?? 0} ریال ', + ), + buildRow( + 'قیمت کل', + '${result.total_amount ?? 0} ریال', + ), + buildRow( + 'وزن تخصیصی', + '${result.weight_of_carcasses?.toInt() ?? 0} کیلوگرم', + ), + buildRow( + 'کداحراز', + result.registration_code?.toString() ?? 'N/A', + ), + buildRow( + 'وضعیت کد احراز', + result.system_registration_code == true + ? "ارسال شده" + : "ارسال نشده" ?? 'N/A', + ), + buildRow( + 'افت وزن(کیلوگرم)', + result.weight_loss_of_carcasses + ?.toInt() + .toString() ?? + 'N/A', + ), + buildRow( + 'وضعیت', + result.receiver_state?.faItem ?? 'N/A', + ), + + Row( + spacing: 10, + children: [ + Expanded( + child: RElevated( + height: 40, + text: 'تایید', + onPressed: () { + ConformAllocation confromation = + ConformAllocation( + allocation_key: result.key, + number_of_carcasses: + result.number_of_carcasses, + weight_of_carcasses: result + .weight_of_carcasses + ?.toInt(), + amount: result.amount, + total_amount: result.total_amount, + ); + + controller.confirmAllocation( + confromation, + ); + }, + ), + ), + Expanded( + child: RElevated( + height: 40, + backgroundColor: AppColor.error, + text: 'رد', + onPressed: () { + controller.denyAllocation( + result.key ?? '', + ); + }, + ), + ), + ], + ), + ], + ), + ), + ); + }, + separatorBuilder: (BuildContext context, int index) => + SizedBox(height: 8), + ), + ); + } + }, controller.allocatedMadeModel), + ], + ), + ); + } + + void showAddBottomSheet() { + Get.bottomSheet( + SafeArea( + child: BaseBottomSheet( + height: 700, + child: Padding( + padding: EdgeInsets.only( + left: 16, + right: 16, + top: 16, + bottom: MediaQuery.of(Get.context!).viewInsets.bottom + 16, + ), + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + Text( + 'ثبت توزیع/ فروش', + style: AppFonts.yekan16Bold.copyWith( + color: AppColor.blueNormal, + ), + ), + const SizedBox(height: 12), + RTextField( + controller: TextEditingController(), + label: 'تاریخ', + enabled: false, + initText: Jalali.now().formatCompactDate(), + ), + const SizedBox(height: 12), + Material( + type: MaterialType.transparency, + child: productDropDown(), + ), + const SizedBox(height: 12), + SizedBox( + height: 40, + child: ObxValue((data) { + return Row( + children: [ + Radio( + value: 1, + groupValue: controller.saleType.value, + onChanged: (value) { + controller.saleType.value = value!; + }, + ), + Text('فروش اختصاصی', style: AppFonts.yekan14), + SizedBox(width: 12), + Radio( + value: 2, + groupValue: controller.saleType.value, + onChanged: (value) { + controller.saleType.value = value!; + }, + ), + Text('فروش آزاد', style: AppFonts.yekan14), + ], + ); + }, controller.saleType), + ), + const SizedBox(height: 12), + + Material( + type: MaterialType.transparency, + child: guildsDropDown(), + ), + + const SizedBox(height: 12), + RTextField( + controller: controller.weightController, + keyboardType: TextInputType.number, + onChanged: (p0) { + controller.weight.value = int.tryParse(p0) ?? 0; + }, + label: 'وزن لاشه', + ), + const SizedBox(height: 12), + RTextField( + controller: controller.pricePerKiloController, + onChanged: (p0) { + controller.pricePerKilo.value = int.tryParse(p0) ?? 0; + }, + keyboardType: TextInputType.number, + label: 'قیمت هر کیلو', + ), + const SizedBox(height: 12), + ObxValue( + (p0) => RTextField( + enabled: false, + keyboardType: TextInputType.number, + initText: controller.totalCost.value.toString(), + controller: controller.totalCostController, + label: 'هزینه کل', + ), + controller.totalCost, + ), + const SizedBox(height: 20), + ObxValue((data) { + return RElevated( + text: 'ثبت', + onPressed: data.value + ? () { + controller.submitAllocation(); + } + : null, + ); + }, controller.isValid), + const SizedBox(height: 20), + ], + ), + ), + ), + ), + isScrollControlled: true, + backgroundColor: Colors.transparent, + ); + } + + Widget guildsDropDown() { + return ObxValue((p0) { + return DropdownButtonFormField( + value: controller.selectedGuildModel.value, + decoration: const InputDecoration( + labelText: 'انتخاب مباشر/صنف', + border: OutlineInputBorder(), + ), + isExpanded: true, + items: controller.guildsModel.map((guild) { + return DropdownMenuItem( + value: guild, + child: Text( + '${guild.steward == true ? 'مباشر' : 'صنف'} ${guild.user?.fullname} (${guild.user?.mobile})', + ), + ); + }).toList(), + onChanged: (value) { + if (value != null) { + controller.setSelectedGuild(value); + controller.checkVerfication(); + } + }, + ); + }, controller.guildsModel); + /* return GetBuilder( + builder: (controller) { + return DropdownButtonFormField( + value: controller.selectedGuildModel.value, + decoration: const InputDecoration( + labelText: 'انتخاب مباشر/صنف', + border: OutlineInputBorder(), + ), + isExpanded: true, + items: controller.guildsModel.map((guild) { + return DropdownMenuItem( + value: guild, + child: Text( + '${guild.steward == true ? 'مباشر' : 'صنف'} ${guild.user + ?.fullname} (${guild.user?.mobile})', + ), + ); + }).toList(), + onChanged: (value) { + if (value != null) { + controller.setSelectedGuild(value); + } + }, + ); + }, + );*/ + } + + Widget productDropDown() { + return GetBuilder( + builder: (controller) { + return DropdownButtonFormField( + value: controller.selectedProductModel.value, + decoration: const InputDecoration( + labelText: 'انتخاب محصول', + border: OutlineInputBorder(), + ), + isExpanded: true, + items: controller.rolesProductsModel.map((guild) { + return DropdownMenuItem( + value: guild, + child: Text('${guild.name}'), + ); + }).toList(), + onChanged: (value) { + if (value != null) { + controller.setSelectedProduct(value); + controller.checkVerfication(); + } + }, + ); + }, + ); + } +} diff --git a/packages/chicken/lib/presentation/routes/pages.dart b/packages/chicken/lib/presentation/routes/pages.dart index bcc7a8e..ec0978b 100644 --- a/packages/chicken/lib/presentation/routes/pages.dart +++ b/packages/chicken/lib/presentation/routes/pages.dart @@ -1,5 +1,10 @@ import 'package:rasadyar_auth/auth.dart'; +import 'package:rasadyar_chicken/presentation/pages/entering_the_warehouse/logic.dart'; +import 'package:rasadyar_chicken/presentation/pages/entering_the_warehouse/view.dart'; +import 'package:rasadyar_chicken/presentation/pages/root/logic.dart'; import 'package:rasadyar_chicken/presentation/pages/root/view.dart'; +import 'package:rasadyar_chicken/presentation/pages/sales_within_province/logic.dart'; +import 'package:rasadyar_chicken/presentation/pages/sales_within_province/view.dart'; import 'package:rasadyar_chicken/presentation/routes/routes.dart'; import 'package:rasadyar_core/core.dart'; @@ -11,7 +16,27 @@ sealed class ChickenPages { name: ChickenRoutes.init, page: () => RootPage(), middlewares: [AuthMiddleware()], - binding: BindingsBuilder(() {}), + binding: BindingsBuilder(() { + Get.put(RootLogic()); + }), + ), + + GetPage( + name: ChickenRoutes.enteringTheWarehouse, + page: () => EnteringTheWarehousePage(), + middlewares: [AuthMiddleware()], + binding: BindingsBuilder(() { + Get.put(EnteringTheWarehouseLogic()); + Get.put(RootLogic()); + }), + ), GetPage( + name: ChickenRoutes.salesWithinProvince, + page: () => SalesWithinProvincePage(), + middlewares: [AuthMiddleware()], + binding: BindingsBuilder(() { + Get.put(SalesWithinProvinceLogic()); + Get.put(RootLogic()); + }), ), ]; } diff --git a/packages/chicken/lib/presentation/routes/routes.dart b/packages/chicken/lib/presentation/routes/routes.dart index 9fe67b5..ef1d2d2 100644 --- a/packages/chicken/lib/presentation/routes/routes.dart +++ b/packages/chicken/lib/presentation/routes/routes.dart @@ -1,6 +1,9 @@ sealed class ChickenRoutes { ChickenRoutes._(); + static const _base = '/init'; + static const init = '$_base/init'; - static const init = '/chicken/init'; + static const enteringTheWarehouse = '$_base/enteringTheWarehouse'; + static const salesWithinProvince = '$_base/SalesWithinProvincePage'; } diff --git a/packages/chicken/test/chicken_test.dart b/packages/chicken/test/chicken_test.dart deleted file mode 100644 index a8c331b..0000000 --- a/packages/chicken/test/chicken_test.dart +++ /dev/null @@ -1,16 +0,0 @@ -import 'package:chicken/chicken.dart'; -import 'package:test/test.dart'; - -void main() { - group('A group of tests', () { - final awesome = Awesome(); - - setUp(() { - // Additional setup goes here. - }); - - test('First Test', () { - expect(awesome.isAwesome, isTrue); - }); - }); -} diff --git a/packages/core/lib/core.dart b/packages/core/lib/core.dart index bdaabab..c98a137 100644 --- a/packages/core/lib/core.dart +++ b/packages/core/lib/core.dart @@ -44,3 +44,4 @@ export 'package:dio/dio.dart' show DioException; //utils export 'utils/logger_utils.dart'; export 'utils/safe_call_utils.dart'; +export 'utils/date_time_utils.dart'; diff --git a/packages/core/lib/infrastructure/remote/dio_remote.dart b/packages/core/lib/infrastructure/remote/dio_remote.dart index dc92ede..bec2bf5 100644 --- a/packages/core/lib/infrastructure/remote/dio_remote.dart +++ b/packages/core/lib/infrastructure/remote/dio_remote.dart @@ -1,6 +1,4 @@ -import 'package:dio/dio.dart'; import 'package:flutter/foundation.dart'; -import 'package:pretty_dio_logger/pretty_dio_logger.dart'; import 'package:rasadyar_core/core.dart'; import 'package:rasadyar_core/infrastructure/remote/interfaces/i_form_data.dart'; @@ -14,30 +12,42 @@ class DioRemote implements IHttpClient { @override Future init() async { - final dio = Dio(BaseOptions(baseUrl: baseUrl??'')); + final dio = Dio(BaseOptions(baseUrl: baseUrl ?? '')); if (kDebugMode) { - dio.interceptors.add(PrettyDioLogger( - requestHeader: true, - responseHeader: true, - requestBody: true - )); + dio.interceptors.add( + PrettyDioLogger( + requestHeader: true, + responseHeader: true, + requestBody: true, + ), + ); } _dio = dio; } @override Future> get( - String path, { - Map? queryParameters, - Map? headers, - ProgressCallback? onReceiveProgress, - }) async { + String path, { + Map? queryParameters, + Map? headers, + ProgressCallback? onReceiveProgress, + T Function(Map json)? fromJson, + T Function(List json)? fromJsonList, + }) async { final response = await _dio.get( path, queryParameters: queryParameters, options: Options(headers: headers), onReceiveProgress: onReceiveProgress, ); + if (fromJsonList != null && response.data is List) { + response.data = fromJsonList(response.data); + return DioResponse(response); + } + if (fromJson != null && response.data is Map) { + response.data = fromJson(response.data); + return DioResponse(response); + } return DioResponse(response); } @@ -62,13 +72,14 @@ class DioRemote implements IHttpClient { if (fromJson != null) { final rawData = response.data; - final parsedData = - rawData is Map ? fromJson(rawData) : null; + final parsedData = rawData is Map + ? fromJson(rawData) + : null; response.data = parsedData; return DioResponse(response); } - return DioResponse(response ); + return DioResponse(response); } @override diff --git a/packages/core/lib/presentation/common/assets.gen.dart b/packages/core/lib/presentation/common/assets.gen.dart index c289778..9be3066 100644 --- a/packages/core/lib/presentation/common/assets.gen.dart +++ b/packages/core/lib/presentation/common/assets.gen.dart @@ -57,6 +57,9 @@ class $AssetsIconsGen { /// File path: assets/icons/information.svg SvgGenImage get information => const SvgGenImage('assets/icons/information.svg'); + /// File path: assets/icons/inside.svg + SvgGenImage get inside => const SvgGenImage('assets/icons/inside.svg'); + /// File path: assets/icons/inspection.svg SvgGenImage get inspection => const SvgGenImage('assets/icons/inspection.svg'); @@ -78,6 +81,9 @@ class $AssetsIconsGen { /// File path: assets/icons/message_add.svg SvgGenImage get messageAdd => const SvgGenImage('assets/icons/message_add.svg'); + /// File path: assets/icons/outside.svg + SvgGenImage get outside => const SvgGenImage('assets/icons/outside.svg'); + /// File path: assets/icons/pdf_download.svg SvgGenImage get pdfDownload => const SvgGenImage('assets/icons/pdf_download.svg'); @@ -129,6 +135,9 @@ class $AssetsIconsGen { /// File path: assets/icons/virtual.svg SvgGenImage get virtual => const SvgGenImage('assets/icons/virtual.svg'); + /// File path: assets/icons/whare_house.svg + SvgGenImage get whareHouse => const SvgGenImage('assets/icons/whare_house.svg'); + /// List of all assets List get values => [ add, @@ -145,6 +154,7 @@ class $AssetsIconsGen { filter, gps, information, + inside, inspection, key, liveStock, @@ -152,6 +162,7 @@ class $AssetsIconsGen { map, mapMarker, messageAdd, + outside, pdfDownload, pictureFrame, placeHolder, @@ -169,6 +180,7 @@ class $AssetsIconsGen { user, userSquare, virtual, + whareHouse, ]; } diff --git a/packages/core/lib/presentation/common/fonts.gen.dart b/packages/core/lib/presentation/common/fonts.gen.dart index 66ad118..9e7368f 100644 --- a/packages/core/lib/presentation/common/fonts.gen.dart +++ b/packages/core/lib/presentation/common/fonts.gen.dart @@ -10,6 +10,6 @@ class FontFamily { FontFamily._(); - /// Font family: yekan - static const String yekan = 'yekan'; + /// Font family: iranyekanregularfanum + static const String iranyekanregularfanum = 'iranyekanregularfanum'; } diff --git a/packages/core/lib/presentation/utils/data_time_utils.dart b/packages/core/lib/presentation/utils/data_time_utils.dart new file mode 100644 index 0000000..65bb382 --- /dev/null +++ b/packages/core/lib/presentation/utils/data_time_utils.dart @@ -0,0 +1,8 @@ +extension XDataTime on DateTime { + String get formattedGregorianDate { + + return "$year/${month.toString().padLeft(2, '0')}/${day.toString().padLeft(2, '0')}"; + } + + +} \ No newline at end of file diff --git a/packages/core/lib/presentation/utils/list_extensions.dart b/packages/core/lib/presentation/utils/list_extensions.dart index 746a00c..b97cced 100644 --- a/packages/core/lib/presentation/utils/list_extensions.dart +++ b/packages/core/lib/presentation/utils/list_extensions.dart @@ -1,9 +1,9 @@ extension ListExtensions on List { void toggle(T item) { if (contains(item)) { - if (length > 1) { + remove(item); - } + } else { add(item); } diff --git a/packages/core/lib/presentation/utils/utils.dart b/packages/core/lib/presentation/utils/utils.dart index edfacc8..507c240 100644 --- a/packages/core/lib/presentation/utils/utils.dart +++ b/packages/core/lib/presentation/utils/utils.dart @@ -1,2 +1,3 @@ export 'color_utils.dart'; -export 'list_extensions.dart'; \ No newline at end of file +export 'list_extensions.dart'; +export 'data_time_utils.dart'; \ No newline at end of file diff --git a/packages/core/lib/utils/date_time_utils.dart b/packages/core/lib/utils/date_time_utils.dart new file mode 100644 index 0000000..3244f49 --- /dev/null +++ b/packages/core/lib/utils/date_time_utils.dart @@ -0,0 +1,10 @@ +import 'package:persian_datetime_picker/persian_datetime_picker.dart'; + +extension xDateTime on String{ + get toDateTime => DateTime.parse(this); + get formattedJalaliDate{ + final dateTime = DateTime.parse(this); + final jalaliDate = Jalali.fromDateTime(dateTime); + return "${jalaliDate.year}/${jalaliDate.month.toString().padLeft(2, '0')}/${jalaliDate.day.toString().padLeft(2, '0')}"; + } +} \ No newline at end of file diff --git a/pubspec.yaml b/pubspec.yaml index 69a73b6..361ece4 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -60,6 +60,9 @@ flutter: assets: - assets/icons/ + - assets/icons/inside.svg + - assets/icons/outside.svg + - assets/icons/whare_house.svg - assets/images/ - assets/logos/ - assets/vec/