From d6f7cb4930d7547d0eba9babacc78028891d33e2 Mon Sep 17 00:00:00 2001 From: "mr.mojtaba" Date: Wed, 2 Jul 2025 16:29:29 +0330 Subject: [PATCH] feat : 1 - AllocatedMadeModel 2 - RSegment widget 3 - buy in province --- .../waiting_arrival/waiting_arrival.dart | 206 +- .../waiting_arrival.freezed.dart | 1782 +++-------------- .../waiting_arrival/waiting_arrival.g.dart | 270 +-- .../data/repositories/chicken_repository.dart | 4 +- .../repositories/chicken_repository_imp.dart | 70 +- .../pages/buy_in_province/logic.dart | 32 +- .../pages/buy_in_province/view.dart | 41 +- .../pages/buy_in_province_all/logic.dart | 15 + .../pages/buy_in_province_all/view.dart | 13 + .../pages/buy_in_province_waiting/logic.dart | 58 + .../pages/buy_in_province_waiting/view.dart | 264 +++ .../pages/buy_out_of_province/logic.dart | 1 - .../pages/entering_the_warehouse/logic.dart | 41 +- .../pages/entering_the_warehouse/view.dart | 10 +- .../lib/presentation/routes/pages.dart | 5 + .../presentation/widget/base_page/view.dart | 14 +- .../lib/presentation/widget/tabs/new_tab.dart | 219 +- .../presentation/widget/tabs/r_segment.dart | 104 + .../core/lib/presentation/widget/widget.dart | 1 + 19 files changed, 1129 insertions(+), 2021 deletions(-) create mode 100644 packages/chicken/lib/presentation/pages/buy_in_province_all/logic.dart create mode 100644 packages/chicken/lib/presentation/pages/buy_in_province_all/view.dart create mode 100644 packages/chicken/lib/presentation/pages/buy_in_province_waiting/logic.dart create mode 100644 packages/chicken/lib/presentation/pages/buy_in_province_waiting/view.dart create mode 100644 packages/core/lib/presentation/widget/tabs/r_segment.dart 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 index e93b258..a775928 100644 --- a/packages/chicken/lib/data/models/response/waiting_arrival/waiting_arrival.dart +++ b/packages/chicken/lib/data/models/response/waiting_arrival/waiting_arrival.dart @@ -4,26 +4,14 @@ part 'waiting_arrival.freezed.dart'; part 'waiting_arrival.g.dart'; @freezed -abstract class WaitingArrivalModel with _$WaitingArrivalModel { +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 killHouse, dynamic toKillHouse, - dynamic steward, - @JsonKey(name: 'to_steward') ToStewardModel? toSteward, + StewardModel? steward, + StewardModel? toSteward, dynamic guilds, dynamic toGuilds, dynamic toColdHouse, @@ -67,95 +55,88 @@ abstract class ResultModel with _$ResultModel { bool? calculateStatus, bool? temporaryTrash, bool? temporaryDeleted, + bool? overhead, dynamic createdBy, dynamic modifiedBy, dynamic wareHouse, dynamic stewardWareHouse, dynamic car, dynamic dispenser, - }) = _ResultModel; + }) = _WaitingArrivalModel; - factory ResultModel.fromJson(Map json) => _$ResultModelFromJson(json); + factory WaitingArrivalModel.fromJson(Map json) => + _$WaitingArrivalModelFromJson(json); } @freezed abstract class ProductModel with _$ProductModel { - factory ProductModel({ - double? weightAverage, - }) = _ProductModel; + factory ProductModel({String? name, double? weightAverage}) = _ProductModel; factory ProductModel.fromJson(Map json) => _$ProductModelFromJson(json); } @freezed -abstract class ToStewardModel with _$ToStewardModel { - factory ToStewardModel({ +abstract class StewardModel with _$StewardModel { + factory StewardModel({ int? id, - ToStewardUserModel? user, + StewardUserModel? user, AddressModel? address, - GuildAreaActivityModel? guildAreaActivity, - GuildTypeActivityModel? guildTypeActivity, + dynamic guildAreaActivity, + dynamic guildTypeActivity, List? killHouse, List? stewardKillHouse, List? stewards, GetPosStatusModel? getPosStatus, String? key, - @JsonKey(name: 'create_date') String? createDate, - @JsonKey(name: 'modify_date') String? modifyDate, + String? createDate, + String? modifyDate, bool? trash, bool? active, + int? cityNumber, + String? cityName, String? guildsId, String? licenseNumber, String? guildsName, + String? phone, String? typeActivity, String? areaActivity, + int? provinceNumber, + String? provinceName, bool? steward, bool? hasPos, + int? allocationLimit, + bool? limitationAllocation, String? provinceAcceptState, - }) = _ToStewardModel; + bool? stewardActive, + bool? stewardLimitationAllocation, + bool? license, + int? wallet, + List? cars, + List? userLevel, + }) = _StewardModel; - factory ToStewardModel.fromJson(Map json) => _$ToStewardModelFromJson(json); + factory StewardModel.fromJson(Map json) => _$StewardModelFromJson(json); } @freezed -abstract class ToStewardUserModel with _$ToStewardUserModel { - factory ToStewardUserModel({ +abstract class StewardUserModel with _$StewardUserModel { + factory StewardUserModel({ String? fullname, - @JsonKey(name: 'first_name') String? firstName, - @JsonKey(name: 'last_name') String? lastName, + String? firstName, + String? lastName, String? mobile, - @JsonKey(name: 'national_id') String? nationalId, + String? nationalId, String? city, - }) = _ToStewardUserModel; + }) = _StewardUserModel; - 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); + factory StewardUserModel.fromJson(Map json) => _$StewardUserModelFromJson(json); } @freezed abstract class AddressModel with _$AddressModel { factory AddressModel({ - ToStewardProvinceModel? province, - ToStewardCityModel? city, + ProvinceModel? province, + CityModel? city, String? address, String? postalCode, }) = _AddressModel; @@ -164,103 +145,24 @@ abstract class AddressModel with _$AddressModel { } @freezed -abstract class GuildAreaActivityModel with _$GuildAreaActivityModel { - factory GuildAreaActivityModel({ - String? key, - String? title, - }) = _GuildAreaActivityModel; +abstract class ProvinceModel with _$ProvinceModel { + factory ProvinceModel({String? key, String? name}) = _ProvinceModel; - 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); + factory ProvinceModel.fromJson(Map json) => _$ProvinceModelFromJson(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({String? key, String? name}) = _CityModel; factory CityModel.fromJson(Map json) => _$CityModelFromJson(json); -} \ No newline at end of file +} + +@freezed +abstract class GetPosStatusModel with _$GetPosStatusModel { + factory GetPosStatusModel({int? lenActiveSessions, bool? hasPons, bool? hasActivePons}) = + _GetPosStatusModel; + + factory GetPosStatusModel.fromJson(Map json) => + _$GetPosStatusModelFromJson(json); +} 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 index c13a17d..da00458 100644 --- 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 @@ -16,7 +16,7 @@ T _$identity(T value) => value; /// @nodoc mixin _$WaitingArrivalModel { - int get count; String? get next; String? get previous; List get results; + int? get id; ProductModel? get product; dynamic get killHouse; dynamic get toKillHouse; StewardModel? get steward; StewardModel? 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; bool? get overhead; dynamic get createdBy; dynamic get modifiedBy; dynamic get wareHouse; dynamic get stewardWareHouse; dynamic get car; dynamic get dispenser; /// Create a copy of WaitingArrivalModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @@ -29,16 +29,16 @@ $WaitingArrivalModelCopyWith get copyWith => _$WaitingArriv @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)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is WaitingArrivalModel&&(identical(other.id, id) || other.id == id)&&(identical(other.product, product) || other.product == product)&&const DeepCollectionEquality().equals(other.killHouse, killHouse)&&const DeepCollectionEquality().equals(other.toKillHouse, toKillHouse)&&(identical(other.steward, steward) || 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)&&(identical(other.overhead, overhead) || other.overhead == overhead)&&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.hash(runtimeType,count,next,previous,const DeepCollectionEquality().hash(results)); +int get hashCode => Object.hashAll([runtimeType,id,product,const DeepCollectionEquality().hash(killHouse),const DeepCollectionEquality().hash(toKillHouse),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,overhead,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 'WaitingArrivalModel(count: $count, next: $next, previous: $previous, results: $results)'; + return 'WaitingArrivalModel(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, overhead: $overhead, createdBy: $createdBy, modifiedBy: $modifiedBy, wareHouse: $wareHouse, stewardWareHouse: $stewardWareHouse, car: $car, dispenser: $dispenser)'; } @@ -49,11 +49,11 @@ 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 + int? id, ProductModel? product, dynamic killHouse, dynamic toKillHouse, StewardModel? steward, StewardModel? 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, bool? overhead, dynamic createdBy, dynamic modifiedBy, dynamic wareHouse, dynamic stewardWareHouse, dynamic car, dynamic dispenser }); - +$ProductModelCopyWith<$Res>? get product;$StewardModelCopyWith<$Res>? get steward;$StewardModelCopyWith<$Res>? get toSteward; } /// @nodoc @@ -66,163 +66,15 @@ class _$WaitingArrivalModelCopyWithImpl<$Res> /// 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,}) { +@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? overhead = 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,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 StewardModel?,toSteward: freezed == toSteward ? _self.toSteward : toSteward // ignore: cast_nullable_to_non_nullable +as StewardModel?,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 @@ -265,6 +117,7 @@ as dynamic,approvedPriceStatus: freezed == approvedPriceStatus ? _self.approvedP 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?,overhead: freezed == overhead ? _self.overhead : overhead // 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 @@ -274,7 +127,7 @@ as dynamic,dispenser: freezed == dispenser ? _self.dispenser : dispenser // igno as dynamic, )); } -/// Create a copy of ResultModel +/// Create a copy of WaitingArrivalModel /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') @@ -286,28 +139,28 @@ $ProductModelCopyWith<$Res>? get product { return $ProductModelCopyWith<$Res>(_self.product!, (value) { return _then(_self.copyWith(product: value)); }); -}/// Create a copy of ResultModel +}/// Create a copy of WaitingArrivalModel /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') -$KillHouseModelCopyWith<$Res>? get killHouse { - if (_self.killHouse == null) { +$StewardModelCopyWith<$Res>? get steward { + if (_self.steward == null) { return null; } - return $KillHouseModelCopyWith<$Res>(_self.killHouse!, (value) { - return _then(_self.copyWith(killHouse: value)); + return $StewardModelCopyWith<$Res>(_self.steward!, (value) { + return _then(_self.copyWith(steward: value)); }); -}/// Create a copy of ResultModel +}/// Create a copy of WaitingArrivalModel /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') -$ToStewardModelCopyWith<$Res>? get toSteward { +$StewardModelCopyWith<$Res>? get toSteward { if (_self.toSteward == null) { return null; } - return $ToStewardModelCopyWith<$Res>(_self.toSteward!, (value) { + return $StewardModelCopyWith<$Res>(_self.toSteward!, (value) { return _then(_self.copyWith(toSteward: value)); }); } @@ -317,16 +170,16 @@ $ToStewardModelCopyWith<$Res>? get toSteward { /// @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); +class _WaitingArrivalModel implements WaitingArrivalModel { + _WaitingArrivalModel({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.overhead, this.createdBy, this.modifiedBy, this.wareHouse, this.stewardWareHouse, this.car, this.dispenser}); + factory _WaitingArrivalModel.fromJson(Map json) => _$WaitingArrivalModelFromJson(json); @override final int? id; @override final ProductModel? product; -@override final KillHouseModel? killHouse; +@override final dynamic killHouse; @override final dynamic toKillHouse; -@override final dynamic steward; -@override@JsonKey(name: 'to_steward') final ToStewardModel? toSteward; +@override final StewardModel? steward; +@override final StewardModel? toSteward; @override final dynamic guilds; @override final dynamic toGuilds; @override final dynamic toColdHouse; @@ -370,6 +223,7 @@ class _ResultModel implements ResultModel { @override final bool? calculateStatus; @override final bool? temporaryTrash; @override final bool? temporaryDeleted; +@override final bool? overhead; @override final dynamic createdBy; @override final dynamic modifiedBy; @override final dynamic wareHouse; @@ -377,65 +231,65 @@ class _ResultModel implements ResultModel { @override final dynamic car; @override final dynamic dispenser; -/// Create a copy of ResultModel +/// 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') -_$ResultModelCopyWith<_ResultModel> get copyWith => __$ResultModelCopyWithImpl<_ResultModel>(this, _$identity); +_$WaitingArrivalModelCopyWith<_WaitingArrivalModel> get copyWith => __$WaitingArrivalModelCopyWithImpl<_WaitingArrivalModel>(this, _$identity); @override Map toJson() { - return _$ResultModelToJson(this, ); + return _$WaitingArrivalModelToJson(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)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _WaitingArrivalModel&&(identical(other.id, id) || other.id == id)&&(identical(other.product, product) || other.product == product)&&const DeepCollectionEquality().equals(other.killHouse, killHouse)&&const DeepCollectionEquality().equals(other.toKillHouse, toKillHouse)&&(identical(other.steward, steward) || 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)&&(identical(other.overhead, overhead) || other.overhead == overhead)&&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)]); +int get hashCode => Object.hashAll([runtimeType,id,product,const DeepCollectionEquality().hash(killHouse),const DeepCollectionEquality().hash(toKillHouse),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,overhead,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)'; + return 'WaitingArrivalModel(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, overhead: $overhead, 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; +abstract mixin class _$WaitingArrivalModelCopyWith<$Res> implements $WaitingArrivalModelCopyWith<$Res> { + factory _$WaitingArrivalModelCopyWith(_WaitingArrivalModel value, $Res Function(_WaitingArrivalModel) _then) = __$WaitingArrivalModelCopyWithImpl; @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 + int? id, ProductModel? product, dynamic killHouse, dynamic toKillHouse, StewardModel? steward, StewardModel? 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, bool? overhead, 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; +@override $ProductModelCopyWith<$Res>? get product;@override $StewardModelCopyWith<$Res>? get steward;@override $StewardModelCopyWith<$Res>? get toSteward; } /// @nodoc -class __$ResultModelCopyWithImpl<$Res> - implements _$ResultModelCopyWith<$Res> { - __$ResultModelCopyWithImpl(this._self, this._then); +class __$WaitingArrivalModelCopyWithImpl<$Res> + implements _$WaitingArrivalModelCopyWith<$Res> { + __$WaitingArrivalModelCopyWithImpl(this._self, this._then); - final _ResultModel _self; - final $Res Function(_ResultModel) _then; + final _WaitingArrivalModel _self; + final $Res Function(_WaitingArrivalModel) _then; -/// Create a copy of ResultModel +/// Create a copy of WaitingArrivalModel /// 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( +@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? overhead = freezed,Object? createdBy = freezed,Object? modifiedBy = freezed,Object? wareHouse = freezed,Object? stewardWareHouse = freezed,Object? car = freezed,Object? dispenser = freezed,}) { + return _then(_WaitingArrivalModel( 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,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 StewardModel?,toSteward: freezed == toSteward ? _self.toSteward : toSteward // ignore: cast_nullable_to_non_nullable +as StewardModel?,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 @@ -478,6 +332,7 @@ as dynamic,approvedPriceStatus: freezed == approvedPriceStatus ? _self.approvedP 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?,overhead: freezed == overhead ? _self.overhead : overhead // 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 @@ -488,7 +343,7 @@ as dynamic, )); } -/// Create a copy of ResultModel +/// Create a copy of WaitingArrivalModel /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') @@ -500,28 +355,28 @@ $ProductModelCopyWith<$Res>? get product { return $ProductModelCopyWith<$Res>(_self.product!, (value) { return _then(_self.copyWith(product: value)); }); -}/// Create a copy of ResultModel +}/// Create a copy of WaitingArrivalModel /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') -$KillHouseModelCopyWith<$Res>? get killHouse { - if (_self.killHouse == null) { +$StewardModelCopyWith<$Res>? get steward { + if (_self.steward == null) { return null; } - return $KillHouseModelCopyWith<$Res>(_self.killHouse!, (value) { - return _then(_self.copyWith(killHouse: value)); + return $StewardModelCopyWith<$Res>(_self.steward!, (value) { + return _then(_self.copyWith(steward: value)); }); -}/// Create a copy of ResultModel +}/// Create a copy of WaitingArrivalModel /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') -$ToStewardModelCopyWith<$Res>? get toSteward { +$StewardModelCopyWith<$Res>? get toSteward { if (_self.toSteward == null) { return null; } - return $ToStewardModelCopyWith<$Res>(_self.toSteward!, (value) { + return $StewardModelCopyWith<$Res>(_self.toSteward!, (value) { return _then(_self.copyWith(toSteward: value)); }); } @@ -531,7 +386,7 @@ $ToStewardModelCopyWith<$Res>? get toSteward { /// @nodoc mixin _$ProductModel { - double? get weightAverage; + String? get name; double? get weightAverage; /// Create a copy of ProductModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @@ -544,16 +399,16 @@ $ProductModelCopyWith get copyWith => _$ProductModelCopyWithImpl

Object.hash(runtimeType,weightAverage); +int get hashCode => Object.hash(runtimeType,name,weightAverage); @override String toString() { - return 'ProductModel(weightAverage: $weightAverage)'; + return 'ProductModel(name: $name, weightAverage: $weightAverage)'; } @@ -564,7 +419,7 @@ abstract mixin class $ProductModelCopyWith<$Res> { factory $ProductModelCopyWith(ProductModel value, $Res Function(ProductModel) _then) = _$ProductModelCopyWithImpl; @useResult $Res call({ - double? weightAverage + String? name, double? weightAverage }); @@ -581,9 +436,10 @@ class _$ProductModelCopyWithImpl<$Res> /// 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,}) { +@pragma('vm:prefer-inline') @override $Res call({Object? name = freezed,Object? weightAverage = freezed,}) { return _then(_self.copyWith( -weightAverage: freezed == weightAverage ? _self.weightAverage : weightAverage // ignore: cast_nullable_to_non_nullable +name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?,weightAverage: freezed == weightAverage ? _self.weightAverage : weightAverage // ignore: cast_nullable_to_non_nullable as double?, )); } @@ -595,9 +451,10 @@ as double?, @JsonSerializable() class _ProductModel implements ProductModel { - _ProductModel({this.weightAverage}); + _ProductModel({this.name, this.weightAverage}); factory _ProductModel.fromJson(Map json) => _$ProductModelFromJson(json); +@override final String? name; @override final double? weightAverage; /// Create a copy of ProductModel @@ -613,16 +470,16 @@ Map toJson() { @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is _ProductModel&&(identical(other.weightAverage, weightAverage) || other.weightAverage == weightAverage)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _ProductModel&&(identical(other.name, name) || other.name == name)&&(identical(other.weightAverage, weightAverage) || other.weightAverage == weightAverage)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,weightAverage); +int get hashCode => Object.hash(runtimeType,name,weightAverage); @override String toString() { - return 'ProductModel(weightAverage: $weightAverage)'; + return 'ProductModel(name: $name, weightAverage: $weightAverage)'; } @@ -633,7 +490,7 @@ abstract mixin class _$ProductModelCopyWith<$Res> implements $ProductModelCopyWi factory _$ProductModelCopyWith(_ProductModel value, $Res Function(_ProductModel) _then) = __$ProductModelCopyWithImpl; @override @useResult $Res call({ - double? weightAverage + String? name, double? weightAverage }); @@ -650,9 +507,10 @@ class __$ProductModelCopyWithImpl<$Res> /// 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,}) { +@override @pragma('vm:prefer-inline') $Res call({Object? name = freezed,Object? weightAverage = freezed,}) { return _then(_ProductModel( -weightAverage: freezed == weightAverage ? _self.weightAverage : weightAverage // ignore: cast_nullable_to_non_nullable +name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?,weightAverage: freezed == weightAverage ? _self.weightAverage : weightAverage // ignore: cast_nullable_to_non_nullable as double?, )); } @@ -662,66 +520,66 @@ as double?, /// @nodoc -mixin _$ToStewardModel { +mixin _$StewardModel { - 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 + int? get id; StewardUserModel? get user; AddressModel? get address; dynamic get guildAreaActivity; dynamic get guildTypeActivity; List? get killHouse; List? get stewardKillHouse; List? get stewards; GetPosStatusModel? get getPosStatus; String? get key; String? get createDate; String? get modifyDate; bool? get trash; bool? get active; int? get cityNumber; String? get cityName; String? get guildsId; String? get licenseNumber; String? get guildsName; String? get phone; String? get typeActivity; String? get areaActivity; int? get provinceNumber; String? get provinceName; bool? get steward; bool? get hasPos; int? get allocationLimit; bool? get limitationAllocation; String? get provinceAcceptState; bool? get stewardActive; bool? get stewardLimitationAllocation; bool? get license; int? get wallet; List? get cars; List? get userLevel; +/// Create a copy of StewardModel /// 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); +$StewardModelCopyWith get copyWith => _$StewardModelCopyWithImpl(this as StewardModel, _$identity); - /// Serializes this ToStewardModel to a JSON map. + /// Serializes this StewardModel 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)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is StewardModel&&(identical(other.id, id) || other.id == id)&&(identical(other.user, user) || other.user == user)&&(identical(other.address, address) || other.address == address)&&const DeepCollectionEquality().equals(other.guildAreaActivity, guildAreaActivity)&&const DeepCollectionEquality().equals(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.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)&&(identical(other.phone, phone) || 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)&&(identical(other.allocationLimit, allocationLimit) || other.allocationLimit == allocationLimit)&&(identical(other.limitationAllocation, limitationAllocation) || other.limitationAllocation == limitationAllocation)&&(identical(other.provinceAcceptState, provinceAcceptState) || other.provinceAcceptState == provinceAcceptState)&&(identical(other.stewardActive, stewardActive) || other.stewardActive == stewardActive)&&(identical(other.stewardLimitationAllocation, stewardLimitationAllocation) || other.stewardLimitationAllocation == stewardLimitationAllocation)&&(identical(other.license, license) || other.license == license)&&(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,active,guildsId,licenseNumber,guildsName,typeActivity,areaActivity,steward,hasPos,provinceAcceptState]); +int get hashCode => Object.hashAll([runtimeType,id,user,address,const DeepCollectionEquality().hash(guildAreaActivity),const DeepCollectionEquality().hash(guildTypeActivity),const DeepCollectionEquality().hash(killHouse),const DeepCollectionEquality().hash(stewardKillHouse),const DeepCollectionEquality().hash(stewards),getPosStatus,key,createDate,modifyDate,trash,active,cityNumber,cityName,guildsId,licenseNumber,guildsName,phone,typeActivity,areaActivity,provinceNumber,provinceName,steward,hasPos,allocationLimit,limitationAllocation,provinceAcceptState,stewardActive,stewardLimitationAllocation,license,wallet,const DeepCollectionEquality().hash(cars),const DeepCollectionEquality().hash(userLevel)]); @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)'; + return 'StewardModel(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, cityNumber: $cityNumber, cityName: $cityName, guildsId: $guildsId, licenseNumber: $licenseNumber, guildsName: $guildsName, phone: $phone, typeActivity: $typeActivity, areaActivity: $areaActivity, provinceNumber: $provinceNumber, provinceName: $provinceName, steward: $steward, hasPos: $hasPos, allocationLimit: $allocationLimit, limitationAllocation: $limitationAllocation, provinceAcceptState: $provinceAcceptState, stewardActive: $stewardActive, stewardLimitationAllocation: $stewardLimitationAllocation, license: $license, wallet: $wallet, cars: $cars, userLevel: $userLevel)'; } } /// @nodoc -abstract mixin class $ToStewardModelCopyWith<$Res> { - factory $ToStewardModelCopyWith(ToStewardModel value, $Res Function(ToStewardModel) _then) = _$ToStewardModelCopyWithImpl; +abstract mixin class $StewardModelCopyWith<$Res> { + factory $StewardModelCopyWith(StewardModel value, $Res Function(StewardModel) _then) = _$StewardModelCopyWithImpl; @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 + int? id, StewardUserModel? user, AddressModel? address, dynamic guildAreaActivity, dynamic guildTypeActivity, List? killHouse, List? stewardKillHouse, List? stewards, GetPosStatusModel? getPosStatus, String? key, String? createDate, String? modifyDate, bool? trash, bool? active, int? cityNumber, String? cityName, String? guildsId, String? licenseNumber, String? guildsName, String? phone, String? typeActivity, String? areaActivity, int? provinceNumber, String? provinceName, bool? steward, bool? hasPos, int? allocationLimit, bool? limitationAllocation, String? provinceAcceptState, bool? stewardActive, bool? stewardLimitationAllocation, bool? license, int? wallet, List? cars, List? userLevel }); -$ToStewardUserModelCopyWith<$Res>? get user;$AddressModelCopyWith<$Res>? get address;$GuildAreaActivityModelCopyWith<$Res>? get guildAreaActivity;$GuildTypeActivityModelCopyWith<$Res>? get guildTypeActivity;$GetPosStatusModelCopyWith<$Res>? get getPosStatus; +$StewardUserModelCopyWith<$Res>? get user;$AddressModelCopyWith<$Res>? get address;$GetPosStatusModelCopyWith<$Res>? get getPosStatus; } /// @nodoc -class _$ToStewardModelCopyWithImpl<$Res> - implements $ToStewardModelCopyWith<$Res> { - _$ToStewardModelCopyWithImpl(this._self, this._then); +class _$StewardModelCopyWithImpl<$Res> + implements $StewardModelCopyWith<$Res> { + _$StewardModelCopyWithImpl(this._self, this._then); - final ToStewardModel _self; - final $Res Function(ToStewardModel) _then; + final StewardModel _self; + final $Res Function(StewardModel) _then; -/// Create a copy of ToStewardModel +/// Create a copy of StewardModel /// 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,}) { +@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? 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? allocationLimit = freezed,Object? limitationAllocation = freezed,Object? provinceAcceptState = freezed,Object? stewardActive = freezed,Object? stewardLimitationAllocation = freezed,Object? license = 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 ToStewardUserModel?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable +as StewardUserModel?,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 dynamic,guildTypeActivity: freezed == guildTypeActivity ? _self.guildTypeActivity : guildTypeActivity // ignore: cast_nullable_to_non_nullable +as dynamic,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 @@ -730,30 +588,43 @@ as String?,createDate: freezed == createDate ? _self.createDate : createDate // 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 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 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?,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?,allocationLimit: freezed == allocationLimit ? _self.allocationLimit : allocationLimit // ignore: cast_nullable_to_non_nullable +as int?,limitationAllocation: freezed == limitationAllocation ? _self.limitationAllocation : limitationAllocation // ignore: cast_nullable_to_non_nullable as bool?,provinceAcceptState: freezed == provinceAcceptState ? _self.provinceAcceptState : provinceAcceptState // ignore: cast_nullable_to_non_nullable -as String?, +as String?,stewardActive: freezed == stewardActive ? _self.stewardActive : stewardActive // ignore: cast_nullable_to_non_nullable +as bool?,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?,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 ToStewardModel +/// Create a copy of StewardModel /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') -$ToStewardUserModelCopyWith<$Res>? get user { +$StewardUserModelCopyWith<$Res>? get user { if (_self.user == null) { return null; } - return $ToStewardUserModelCopyWith<$Res>(_self.user!, (value) { + return $StewardUserModelCopyWith<$Res>(_self.user!, (value) { return _then(_self.copyWith(user: value)); }); -}/// Create a copy of ToStewardModel +}/// Create a copy of StewardModel /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') @@ -765,31 +636,7 @@ $AddressModelCopyWith<$Res>? get address { 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 +}/// Create a copy of StewardModel /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') @@ -808,15 +655,15 @@ $GetPosStatusModelCopyWith<$Res>? get getPosStatus { /// @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); +class _StewardModel implements StewardModel { + _StewardModel({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.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.allocationLimit, this.limitationAllocation, this.provinceAcceptState, this.stewardActive, this.stewardLimitationAllocation, this.license, this.wallet, final List? cars, final List? userLevel}): _killHouse = killHouse,_stewardKillHouse = stewardKillHouse,_stewards = stewards,_cars = cars,_userLevel = userLevel; + factory _StewardModel.fromJson(Map json) => _$StewardModelFromJson(json); @override final int? id; -@override final ToStewardUserModel? user; +@override final StewardUserModel? user; @override final AddressModel? address; -@override final GuildAreaActivityModel? guildAreaActivity; -@override final GuildTypeActivityModel? guildTypeActivity; +@override final dynamic guildAreaActivity; +@override final dynamic guildTypeActivity; final List? _killHouse; @override List? get killHouse { final value = _killHouse; @@ -846,77 +693,106 @@ class _ToStewardModel implements ToStewardModel { @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 String? createDate; +@override final String? modifyDate; @override final bool? trash; @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 String? 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 int? allocationLimit; +@override final bool? limitationAllocation; @override final String? provinceAcceptState; +@override final bool? stewardActive; +@override final bool? stewardLimitationAllocation; +@override final bool? license; +@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); +} -/// Create a copy of ToStewardModel + 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 StewardModel /// 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); +_$StewardModelCopyWith<_StewardModel> get copyWith => __$StewardModelCopyWithImpl<_StewardModel>(this, _$identity); @override Map toJson() { - return _$ToStewardModelToJson(this, ); + return _$StewardModelToJson(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)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _StewardModel&&(identical(other.id, id) || other.id == id)&&(identical(other.user, user) || other.user == user)&&(identical(other.address, address) || other.address == address)&&const DeepCollectionEquality().equals(other.guildAreaActivity, guildAreaActivity)&&const DeepCollectionEquality().equals(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.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)&&(identical(other.phone, phone) || 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)&&(identical(other.allocationLimit, allocationLimit) || other.allocationLimit == allocationLimit)&&(identical(other.limitationAllocation, limitationAllocation) || other.limitationAllocation == limitationAllocation)&&(identical(other.provinceAcceptState, provinceAcceptState) || other.provinceAcceptState == provinceAcceptState)&&(identical(other.stewardActive, stewardActive) || other.stewardActive == stewardActive)&&(identical(other.stewardLimitationAllocation, stewardLimitationAllocation) || other.stewardLimitationAllocation == stewardLimitationAllocation)&&(identical(other.license, license) || other.license == license)&&(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,active,guildsId,licenseNumber,guildsName,typeActivity,areaActivity,steward,hasPos,provinceAcceptState]); +int get hashCode => Object.hashAll([runtimeType,id,user,address,const DeepCollectionEquality().hash(guildAreaActivity),const DeepCollectionEquality().hash(guildTypeActivity),const DeepCollectionEquality().hash(_killHouse),const DeepCollectionEquality().hash(_stewardKillHouse),const DeepCollectionEquality().hash(_stewards),getPosStatus,key,createDate,modifyDate,trash,active,cityNumber,cityName,guildsId,licenseNumber,guildsName,phone,typeActivity,areaActivity,provinceNumber,provinceName,steward,hasPos,allocationLimit,limitationAllocation,provinceAcceptState,stewardActive,stewardLimitationAllocation,license,wallet,const DeepCollectionEquality().hash(_cars),const DeepCollectionEquality().hash(_userLevel)]); @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)'; + return 'StewardModel(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, cityNumber: $cityNumber, cityName: $cityName, guildsId: $guildsId, licenseNumber: $licenseNumber, guildsName: $guildsName, phone: $phone, typeActivity: $typeActivity, areaActivity: $areaActivity, provinceNumber: $provinceNumber, provinceName: $provinceName, steward: $steward, hasPos: $hasPos, allocationLimit: $allocationLimit, limitationAllocation: $limitationAllocation, provinceAcceptState: $provinceAcceptState, stewardActive: $stewardActive, stewardLimitationAllocation: $stewardLimitationAllocation, license: $license, wallet: $wallet, cars: $cars, userLevel: $userLevel)'; } } /// @nodoc -abstract mixin class _$ToStewardModelCopyWith<$Res> implements $ToStewardModelCopyWith<$Res> { - factory _$ToStewardModelCopyWith(_ToStewardModel value, $Res Function(_ToStewardModel) _then) = __$ToStewardModelCopyWithImpl; +abstract mixin class _$StewardModelCopyWith<$Res> implements $StewardModelCopyWith<$Res> { + factory _$StewardModelCopyWith(_StewardModel value, $Res Function(_StewardModel) _then) = __$StewardModelCopyWithImpl; @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 + int? id, StewardUserModel? user, AddressModel? address, dynamic guildAreaActivity, dynamic guildTypeActivity, List? killHouse, List? stewardKillHouse, List? stewards, GetPosStatusModel? getPosStatus, String? key, String? createDate, String? modifyDate, bool? trash, bool? active, int? cityNumber, String? cityName, String? guildsId, String? licenseNumber, String? guildsName, String? phone, String? typeActivity, String? areaActivity, int? provinceNumber, String? provinceName, bool? steward, bool? hasPos, int? allocationLimit, bool? limitationAllocation, String? provinceAcceptState, bool? stewardActive, bool? stewardLimitationAllocation, bool? license, int? wallet, List? cars, List? userLevel }); -@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; +@override $StewardUserModelCopyWith<$Res>? get user;@override $AddressModelCopyWith<$Res>? get address;@override $GetPosStatusModelCopyWith<$Res>? get getPosStatus; } /// @nodoc -class __$ToStewardModelCopyWithImpl<$Res> - implements _$ToStewardModelCopyWith<$Res> { - __$ToStewardModelCopyWithImpl(this._self, this._then); +class __$StewardModelCopyWithImpl<$Res> + implements _$StewardModelCopyWith<$Res> { + __$StewardModelCopyWithImpl(this._self, this._then); - final _ToStewardModel _self; - final $Res Function(_ToStewardModel) _then; + final _StewardModel _self; + final $Res Function(_StewardModel) _then; -/// Create a copy of ToStewardModel +/// Create a copy of StewardModel /// 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( +@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? 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? allocationLimit = freezed,Object? limitationAllocation = freezed,Object? provinceAcceptState = freezed,Object? stewardActive = freezed,Object? stewardLimitationAllocation = freezed,Object? license = freezed,Object? wallet = freezed,Object? cars = freezed,Object? userLevel = freezed,}) { + return _then(_StewardModel( 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 StewardUserModel?,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 dynamic,guildTypeActivity: freezed == guildTypeActivity ? _self.guildTypeActivity : guildTypeActivity // ignore: cast_nullable_to_non_nullable +as dynamic,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 @@ -925,31 +801,44 @@ as String?,createDate: freezed == createDate ? _self.createDate : createDate // 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 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 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?,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?,allocationLimit: freezed == allocationLimit ? _self.allocationLimit : allocationLimit // ignore: cast_nullable_to_non_nullable +as int?,limitationAllocation: freezed == limitationAllocation ? _self.limitationAllocation : limitationAllocation // ignore: cast_nullable_to_non_nullable as bool?,provinceAcceptState: freezed == provinceAcceptState ? _self.provinceAcceptState : provinceAcceptState // ignore: cast_nullable_to_non_nullable -as String?, +as String?,stewardActive: freezed == stewardActive ? _self.stewardActive : stewardActive // ignore: cast_nullable_to_non_nullable +as bool?,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?,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 ToStewardModel +/// Create a copy of StewardModel /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') -$ToStewardUserModelCopyWith<$Res>? get user { +$StewardUserModelCopyWith<$Res>? get user { if (_self.user == null) { return null; } - return $ToStewardUserModelCopyWith<$Res>(_self.user!, (value) { + return $StewardUserModelCopyWith<$Res>(_self.user!, (value) { return _then(_self.copyWith(user: value)); }); -}/// Create a copy of ToStewardModel +}/// Create a copy of StewardModel /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') @@ -961,31 +850,7 @@ $AddressModelCopyWith<$Res>? get address { 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 +}/// Create a copy of StewardModel /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') @@ -1002,22 +867,22 @@ $GetPosStatusModelCopyWith<$Res>? get getPosStatus { /// @nodoc -mixin _$ToStewardUserModel { +mixin _$StewardUserModel { - 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 + String? get fullname; String? get firstName; String? get lastName; String? get mobile; String? get nationalId; String? get city; +/// Create a copy of StewardUserModel /// 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); +$StewardUserModelCopyWith get copyWith => _$StewardUserModelCopyWithImpl(this as StewardUserModel, _$identity); - /// Serializes this ToStewardUserModel to a JSON map. + /// Serializes this StewardUserModel 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)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is StewardUserModel&&(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) @@ -1026,18 +891,18 @@ int get hashCode => Object.hash(runtimeType,fullname,firstName,lastName,mobile,n @override String toString() { - return 'ToStewardUserModel(fullname: $fullname, firstName: $firstName, lastName: $lastName, mobile: $mobile, nationalId: $nationalId, city: $city)'; + return 'StewardUserModel(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; +abstract mixin class $StewardUserModelCopyWith<$Res> { + factory $StewardUserModelCopyWith(StewardUserModel value, $Res Function(StewardUserModel) _then) = _$StewardUserModelCopyWithImpl; @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 + String? fullname, String? firstName, String? lastName, String? mobile, String? nationalId, String? city }); @@ -1045,14 +910,14 @@ $Res call({ } /// @nodoc -class _$ToStewardUserModelCopyWithImpl<$Res> - implements $ToStewardUserModelCopyWith<$Res> { - _$ToStewardUserModelCopyWithImpl(this._self, this._then); +class _$StewardUserModelCopyWithImpl<$Res> + implements $StewardUserModelCopyWith<$Res> { + _$StewardUserModelCopyWithImpl(this._self, this._then); - final ToStewardUserModel _self; - final $Res Function(ToStewardUserModel) _then; + final StewardUserModel _self; + final $Res Function(StewardUserModel) _then; -/// Create a copy of ToStewardUserModel +/// Create a copy of StewardUserModel /// 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( @@ -1072,31 +937,31 @@ 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); +class _StewardUserModel implements StewardUserModel { + _StewardUserModel({this.fullname, this.firstName, this.lastName, this.mobile, this.nationalId, this.city}); + factory _StewardUserModel.fromJson(Map json) => _$StewardUserModelFromJson(json); @override final String? fullname; -@override@JsonKey(name: 'first_name') final String? firstName; -@override@JsonKey(name: 'last_name') final String? lastName; +@override final String? firstName; +@override final String? lastName; @override final String? mobile; -@override@JsonKey(name: 'national_id') final String? nationalId; +@override final String? nationalId; @override final String? city; -/// Create a copy of ToStewardUserModel +/// Create a copy of StewardUserModel /// 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); +_$StewardUserModelCopyWith<_StewardUserModel> get copyWith => __$StewardUserModelCopyWithImpl<_StewardUserModel>(this, _$identity); @override Map toJson() { - return _$ToStewardUserModelToJson(this, ); + return _$StewardUserModelToJson(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)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _StewardUserModel&&(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) @@ -1105,18 +970,18 @@ int get hashCode => Object.hash(runtimeType,fullname,firstName,lastName,mobile,n @override String toString() { - return 'ToStewardUserModel(fullname: $fullname, firstName: $firstName, lastName: $lastName, mobile: $mobile, nationalId: $nationalId, city: $city)'; + return 'StewardUserModel(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; +abstract mixin class _$StewardUserModelCopyWith<$Res> implements $StewardUserModelCopyWith<$Res> { + factory _$StewardUserModelCopyWith(_StewardUserModel value, $Res Function(_StewardUserModel) _then) = __$StewardUserModelCopyWithImpl; @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 + String? fullname, String? firstName, String? lastName, String? mobile, String? nationalId, String? city }); @@ -1124,17 +989,17 @@ $Res call({ } /// @nodoc -class __$ToStewardUserModelCopyWithImpl<$Res> - implements _$ToStewardUserModelCopyWith<$Res> { - __$ToStewardUserModelCopyWithImpl(this._self, this._then); +class __$StewardUserModelCopyWithImpl<$Res> + implements _$StewardUserModelCopyWith<$Res> { + __$StewardUserModelCopyWithImpl(this._self, this._then); - final _ToStewardUserModel _self; - final $Res Function(_ToStewardUserModel) _then; + final _StewardUserModel _self; + final $Res Function(_StewardUserModel) _then; -/// Create a copy of ToStewardUserModel +/// Create a copy of StewardUserModel /// 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( + return _then(_StewardUserModel( 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 @@ -1149,282 +1014,10 @@ 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; + ProvinceModel? get province; CityModel? 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) @@ -1457,11 +1050,11 @@ 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 + ProvinceModel? province, CityModel? city, String? address, String? postalCode }); -$ToStewardProvinceModelCopyWith<$Res>? get province;$ToStewardCityModelCopyWith<$Res>? get city; +$ProvinceModelCopyWith<$Res>? get province;$CityModelCopyWith<$Res>? get city; } /// @nodoc @@ -1477,8 +1070,8 @@ class _$AddressModelCopyWithImpl<$Res> @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 ProvinceModel?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as CityModel?,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?, )); @@ -1487,24 +1080,24 @@ as String?, /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') -$ToStewardProvinceModelCopyWith<$Res>? get province { +$ProvinceModelCopyWith<$Res>? get province { if (_self.province == null) { return null; } - return $ToStewardProvinceModelCopyWith<$Res>(_self.province!, (value) { + return $ProvinceModelCopyWith<$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 { +$CityModelCopyWith<$Res>? get city { if (_self.city == null) { return null; } - return $ToStewardCityModelCopyWith<$Res>(_self.city!, (value) { + return $CityModelCopyWith<$Res>(_self.city!, (value) { return _then(_self.copyWith(city: value)); }); } @@ -1518,8 +1111,8 @@ 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 ProvinceModel? province; +@override final CityModel? city; @override final String? address; @override final String? postalCode; @@ -1556,11 +1149,11 @@ abstract mixin class _$AddressModelCopyWith<$Res> implements $AddressModelCopyWi factory _$AddressModelCopyWith(_AddressModel value, $Res Function(_AddressModel) _then) = __$AddressModelCopyWithImpl; @override @useResult $Res call({ - ToStewardProvinceModel? province, ToStewardCityModel? city, String? address, String? postalCode + ProvinceModel? province, CityModel? city, String? address, String? postalCode }); -@override $ToStewardProvinceModelCopyWith<$Res>? get province;@override $ToStewardCityModelCopyWith<$Res>? get city; +@override $ProvinceModelCopyWith<$Res>? get province;@override $CityModelCopyWith<$Res>? get city; } /// @nodoc @@ -1576,8 +1169,8 @@ class __$AddressModelCopyWithImpl<$Res> @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 ProvinceModel?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as CityModel?,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?, )); @@ -1587,24 +1180,24 @@ as String?, /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') -$ToStewardProvinceModelCopyWith<$Res>? get province { +$ProvinceModelCopyWith<$Res>? get province { if (_self.province == null) { return null; } - return $ToStewardProvinceModelCopyWith<$Res>(_self.province!, (value) { + return $ProvinceModelCopyWith<$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 { +$CityModelCopyWith<$Res>? get city { if (_self.city == null) { return null; } - return $ToStewardCityModelCopyWith<$Res>(_self.city!, (value) { + return $CityModelCopyWith<$Res>(_self.city!, (value) { return _then(_self.copyWith(city: value)); }); } @@ -1612,42 +1205,42 @@ $ToStewardCityModelCopyWith<$Res>? get city { /// @nodoc -mixin _$GuildAreaActivityModel { +mixin _$ProvinceModel { - String? get key; String? get title; -/// Create a copy of GuildAreaActivityModel + String? get key; String? get name; +/// Create a copy of ProvinceModel /// 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); +$ProvinceModelCopyWith get copyWith => _$ProvinceModelCopyWithImpl(this as ProvinceModel, _$identity); - /// Serializes this GuildAreaActivityModel to a JSON map. + /// Serializes this ProvinceModel 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)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is ProvinceModel&&(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,title); +int get hashCode => Object.hash(runtimeType,key,name); @override String toString() { - return 'GuildAreaActivityModel(key: $key, title: $title)'; + return 'ProvinceModel(key: $key, name: $name)'; } } /// @nodoc -abstract mixin class $GuildAreaActivityModelCopyWith<$Res> { - factory $GuildAreaActivityModelCopyWith(GuildAreaActivityModel value, $Res Function(GuildAreaActivityModel) _then) = _$GuildAreaActivityModelCopyWithImpl; +abstract mixin class $ProvinceModelCopyWith<$Res> { + factory $ProvinceModelCopyWith(ProvinceModel value, $Res Function(ProvinceModel) _then) = _$ProvinceModelCopyWithImpl; @useResult $Res call({ - String? key, String? title + String? key, String? name }); @@ -1655,19 +1248,19 @@ $Res call({ } /// @nodoc -class _$GuildAreaActivityModelCopyWithImpl<$Res> - implements $GuildAreaActivityModelCopyWith<$Res> { - _$GuildAreaActivityModelCopyWithImpl(this._self, this._then); +class _$ProvinceModelCopyWithImpl<$Res> + implements $ProvinceModelCopyWith<$Res> { + _$ProvinceModelCopyWithImpl(this._self, this._then); - final GuildAreaActivityModel _self; - final $Res Function(GuildAreaActivityModel) _then; + final ProvinceModel _self; + final $Res Function(ProvinceModel) _then; -/// Create a copy of GuildAreaActivityModel +/// Create a copy of ProvinceModel /// with the given fields replaced by the non-null parameter values. -@pragma('vm:prefer-inline') @override $Res call({Object? key = freezed,Object? title = freezed,}) { +@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?,title: freezed == title ? _self.title : title // ignore: cast_nullable_to_non_nullable +as String?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable as String?, )); } @@ -1678,47 +1271,47 @@ as String?, /// @nodoc @JsonSerializable() -class _GuildAreaActivityModel implements GuildAreaActivityModel { - _GuildAreaActivityModel({this.key, this.title}); - factory _GuildAreaActivityModel.fromJson(Map json) => _$GuildAreaActivityModelFromJson(json); +class _ProvinceModel implements ProvinceModel { + _ProvinceModel({this.key, this.name}); + factory _ProvinceModel.fromJson(Map json) => _$ProvinceModelFromJson(json); @override final String? key; -@override final String? title; +@override final String? name; -/// Create a copy of GuildAreaActivityModel +/// Create a copy of ProvinceModel /// 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); +_$ProvinceModelCopyWith<_ProvinceModel> get copyWith => __$ProvinceModelCopyWithImpl<_ProvinceModel>(this, _$identity); @override Map toJson() { - return _$GuildAreaActivityModelToJson(this, ); + return _$ProvinceModelToJson(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)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _ProvinceModel&&(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,title); +int get hashCode => Object.hash(runtimeType,key,name); @override String toString() { - return 'GuildAreaActivityModel(key: $key, title: $title)'; + return 'ProvinceModel(key: $key, name: $name)'; } } /// @nodoc -abstract mixin class _$GuildAreaActivityModelCopyWith<$Res> implements $GuildAreaActivityModelCopyWith<$Res> { - factory _$GuildAreaActivityModelCopyWith(_GuildAreaActivityModel value, $Res Function(_GuildAreaActivityModel) _then) = __$GuildAreaActivityModelCopyWithImpl; +abstract mixin class _$ProvinceModelCopyWith<$Res> implements $ProvinceModelCopyWith<$Res> { + factory _$ProvinceModelCopyWith(_ProvinceModel value, $Res Function(_ProvinceModel) _then) = __$ProvinceModelCopyWithImpl; @override @useResult $Res call({ - String? key, String? title + String? key, String? name }); @@ -1726,19 +1319,19 @@ $Res call({ } /// @nodoc -class __$GuildAreaActivityModelCopyWithImpl<$Res> - implements _$GuildAreaActivityModelCopyWith<$Res> { - __$GuildAreaActivityModelCopyWithImpl(this._self, this._then); +class __$ProvinceModelCopyWithImpl<$Res> + implements _$ProvinceModelCopyWith<$Res> { + __$ProvinceModelCopyWithImpl(this._self, this._then); - final _GuildAreaActivityModel _self; - final $Res Function(_GuildAreaActivityModel) _then; + final _ProvinceModel _self; + final $Res Function(_ProvinceModel) _then; -/// Create a copy of GuildAreaActivityModel +/// Create a copy of ProvinceModel /// 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( +@override @pragma('vm:prefer-inline') $Res call({Object? key = freezed,Object? name = freezed,}) { + return _then(_ProvinceModel( 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?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable as String?, )); } @@ -1748,42 +1341,42 @@ as String?, /// @nodoc -mixin _$GuildTypeActivityModel { +mixin _$CityModel { - String? get key; String? get title; -/// Create a copy of GuildTypeActivityModel + String? get key; String? get name; +/// 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') -$GuildTypeActivityModelCopyWith get copyWith => _$GuildTypeActivityModelCopyWithImpl(this as GuildTypeActivityModel, _$identity); +$CityModelCopyWith get copyWith => _$CityModelCopyWithImpl(this as CityModel, _$identity); - /// Serializes this GuildTypeActivityModel to a JSON map. + /// Serializes this CityModel 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)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is CityModel&&(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,title); +int get hashCode => Object.hash(runtimeType,key,name); @override String toString() { - return 'GuildTypeActivityModel(key: $key, title: $title)'; + return 'CityModel(key: $key, name: $name)'; } } /// @nodoc -abstract mixin class $GuildTypeActivityModelCopyWith<$Res> { - factory $GuildTypeActivityModelCopyWith(GuildTypeActivityModel value, $Res Function(GuildTypeActivityModel) _then) = _$GuildTypeActivityModelCopyWithImpl; +abstract mixin class $CityModelCopyWith<$Res> { + factory $CityModelCopyWith(CityModel value, $Res Function(CityModel) _then) = _$CityModelCopyWithImpl; @useResult $Res call({ - String? key, String? title + String? key, String? name }); @@ -1791,19 +1384,19 @@ $Res call({ } /// @nodoc -class _$GuildTypeActivityModelCopyWithImpl<$Res> - implements $GuildTypeActivityModelCopyWith<$Res> { - _$GuildTypeActivityModelCopyWithImpl(this._self, this._then); +class _$CityModelCopyWithImpl<$Res> + implements $CityModelCopyWith<$Res> { + _$CityModelCopyWithImpl(this._self, this._then); - final GuildTypeActivityModel _self; - final $Res Function(GuildTypeActivityModel) _then; + final CityModel _self; + final $Res Function(CityModel) _then; -/// Create a copy of GuildTypeActivityModel +/// Create a copy of CityModel /// with the given fields replaced by the non-null parameter values. -@pragma('vm:prefer-inline') @override $Res call({Object? key = freezed,Object? title = freezed,}) { +@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?,title: freezed == title ? _self.title : title // ignore: cast_nullable_to_non_nullable +as String?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable as String?, )); } @@ -1814,47 +1407,47 @@ as String?, /// @nodoc @JsonSerializable() -class _GuildTypeActivityModel implements GuildTypeActivityModel { - _GuildTypeActivityModel({this.key, this.title}); - factory _GuildTypeActivityModel.fromJson(Map json) => _$GuildTypeActivityModelFromJson(json); +class _CityModel implements CityModel { + _CityModel({this.key, this.name}); + factory _CityModel.fromJson(Map json) => _$CityModelFromJson(json); @override final String? key; -@override final String? title; +@override final String? name; -/// Create a copy of GuildTypeActivityModel +/// 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') -_$GuildTypeActivityModelCopyWith<_GuildTypeActivityModel> get copyWith => __$GuildTypeActivityModelCopyWithImpl<_GuildTypeActivityModel>(this, _$identity); +_$CityModelCopyWith<_CityModel> get copyWith => __$CityModelCopyWithImpl<_CityModel>(this, _$identity); @override Map toJson() { - return _$GuildTypeActivityModelToJson(this, ); + return _$CityModelToJson(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)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _CityModel&&(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,title); +int get hashCode => Object.hash(runtimeType,key,name); @override String toString() { - return 'GuildTypeActivityModel(key: $key, title: $title)'; + return 'CityModel(key: $key, name: $name)'; } } /// @nodoc -abstract mixin class _$GuildTypeActivityModelCopyWith<$Res> implements $GuildTypeActivityModelCopyWith<$Res> { - factory _$GuildTypeActivityModelCopyWith(_GuildTypeActivityModel value, $Res Function(_GuildTypeActivityModel) _then) = __$GuildTypeActivityModelCopyWithImpl; +abstract mixin class _$CityModelCopyWith<$Res> implements $CityModelCopyWith<$Res> { + factory _$CityModelCopyWith(_CityModel value, $Res Function(_CityModel) _then) = __$CityModelCopyWithImpl; @override @useResult $Res call({ - String? key, String? title + String? key, String? name }); @@ -1862,19 +1455,19 @@ $Res call({ } /// @nodoc -class __$GuildTypeActivityModelCopyWithImpl<$Res> - implements _$GuildTypeActivityModelCopyWith<$Res> { - __$GuildTypeActivityModelCopyWithImpl(this._self, this._then); +class __$CityModelCopyWithImpl<$Res> + implements _$CityModelCopyWith<$Res> { + __$CityModelCopyWithImpl(this._self, this._then); - final _GuildTypeActivityModel _self; - final $Res Function(_GuildTypeActivityModel) _then; + final _CityModel _self; + final $Res Function(_CityModel) _then; -/// Create a copy of GuildTypeActivityModel +/// Create a copy of CityModel /// 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( +@override @pragma('vm:prefer-inline') $Res call({Object? key = freezed,Object? name = freezed,}) { + return _then(_CityModel( 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?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable as String?, )); } @@ -2019,715 +1612,6 @@ 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 index 92eaf82..a8dc384 100644 --- 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 @@ -6,38 +6,21 @@ 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( +_WaitingArrivalModel _$WaitingArrivalModelFromJson( + Map json, +) => _WaitingArrivalModel( 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), + killHouse: json['kill_house'], toKillHouse: json['to_kill_house'], - steward: json['steward'], + steward: json['steward'] == null + ? null + : StewardModel.fromJson(json['steward'] as Map), toSteward: json['to_steward'] == null ? null - : ToStewardModel.fromJson(json['to_steward'] as Map), + : StewardModel.fromJson(json['to_steward'] as Map), guilds: json['guilds'], toGuilds: json['to_guilds'], toColdHouse: json['to_cold_house'], @@ -83,6 +66,7 @@ _ResultModel _$ResultModelFromJson(Map json) => _ResultModel( calculateStatus: json['calculate_status'] as bool?, temporaryTrash: json['temporary_trash'] as bool?, temporaryDeleted: json['temporary_deleted'] as bool?, + overhead: json['overhead'] as bool?, createdBy: json['created_by'], modifiedBy: json['modified_by'], wareHouse: json['ware_house'], @@ -91,8 +75,8 @@ _ResultModel _$ResultModelFromJson(Map json) => _ResultModel( dispenser: json['dispenser'], ); -Map _$ResultModelToJson( - _ResultModel instance, +Map _$WaitingArrivalModelToJson( + _WaitingArrivalModel instance, ) => { 'id': instance.id, 'product': instance.product, @@ -143,6 +127,7 @@ Map _$ResultModelToJson( 'calculate_status': instance.calculateStatus, 'temporary_trash': instance.temporaryTrash, 'temporary_deleted': instance.temporaryDeleted, + 'overhead': instance.overhead, 'created_by': instance.createdBy, 'modified_by': instance.modifiedBy, 'ware_house': instance.wareHouse, @@ -152,30 +137,28 @@ Map _$ResultModelToJson( }; _ProductModel _$ProductModelFromJson(Map json) => - _ProductModel(weightAverage: (json['weight_average'] as num?)?.toDouble()); + _ProductModel( + name: json['name'] as String?, + weightAverage: (json['weight_average'] as num?)?.toDouble(), + ); Map _$ProductModelToJson(_ProductModel instance) => - {'weight_average': instance.weightAverage}; + { + 'name': instance.name, + 'weight_average': instance.weightAverage, + }; -_ToStewardModel _$ToStewardModelFromJson(Map json) => - _ToStewardModel( +_StewardModel _$StewardModelFromJson(Map json) => + _StewardModel( id: (json['id'] as num?)?.toInt(), user: json['user'] == null ? null - : ToStewardUserModel.fromJson(json['user'] as Map), + : StewardUserModel.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, - ), + guildAreaActivity: json['guild_area_activity'], + guildTypeActivity: json['guild_type_activity'], killHouse: json['kill_house'] as List?, stewardKillHouse: json['steward_kill_house'] as List?, stewards: json['stewards'] as List?, @@ -189,17 +172,31 @@ _ToStewardModel _$ToStewardModelFromJson(Map json) => modifyDate: json['modify_date'] as String?, trash: json['trash'] as bool?, 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'] as String?, 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?, + allocationLimit: (json['allocation_limit'] as num?)?.toInt(), + limitationAllocation: json['limitation_allocation'] as bool?, provinceAcceptState: json['province_accept_state'] as String?, + stewardActive: json['steward_active'] as bool?, + stewardLimitationAllocation: + json['steward_limitation_allocation'] as bool?, + license: json['license'] as bool?, + wallet: (json['wallet'] as num?)?.toInt(), + cars: json['cars'] as List?, + userLevel: json['user_level'] as List?, ); -Map _$ToStewardModelToJson(_ToStewardModel instance) => +Map _$StewardModelToJson(_StewardModel instance) => { 'id': instance.id, 'user': instance.user, @@ -215,18 +212,31 @@ Map _$ToStewardModelToJson(_ToStewardModel instance) => 'modify_date': instance.modifyDate, 'trash': instance.trash, '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, + 'allocation_limit': instance.allocationLimit, + 'limitation_allocation': instance.limitationAllocation, 'province_accept_state': instance.provinceAcceptState, + 'steward_active': instance.stewardActive, + 'steward_limitation_allocation': instance.stewardLimitationAllocation, + 'license': instance.license, + 'wallet': instance.wallet, + 'cars': instance.cars, + 'user_level': instance.userLevel, }; -_ToStewardUserModel _$ToStewardUserModelFromJson(Map json) => - _ToStewardUserModel( +_StewardUserModel _$StewardUserModelFromJson(Map json) => + _StewardUserModel( fullname: json['fullname'] as String?, firstName: json['first_name'] as String?, lastName: json['last_name'] as String?, @@ -235,7 +245,7 @@ _ToStewardUserModel _$ToStewardUserModelFromJson(Map json) => city: json['city'] as String?, ); -Map _$ToStewardUserModelToJson(_ToStewardUserModel instance) => +Map _$StewardUserModelToJson(_StewardUserModel instance) => { 'fullname': instance.fullname, 'first_name': instance.firstName, @@ -245,36 +255,14 @@ Map _$ToStewardUserModelToJson(_ToStewardUserModel instance) => '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, - ), + : ProvinceModel.fromJson(json['province'] as Map), city: json['city'] == null ? null - : ToStewardCityModel.fromJson(json['city'] as Map), + : CityModel.fromJson(json['city'] as Map), address: json['address'] as String?, postalCode: json['postal_code'] as String?, ); @@ -287,27 +275,17 @@ Map _$AddressModelToJson(_AddressModel instance) => 'postal_code': instance.postalCode, }; -_GuildAreaActivityModel _$GuildAreaActivityModelFromJson( - Map json, -) => _GuildAreaActivityModel( - key: json['key'] as String?, - title: json['title'] as String?, -); +_ProvinceModel _$ProvinceModelFromJson(Map json) => + _ProvinceModel(key: json['key'] as String?, name: json['name'] as String?); -Map _$GuildAreaActivityModelToJson( - _GuildAreaActivityModel instance, -) => {'key': instance.key, 'title': instance.title}; +Map _$ProvinceModelToJson(_ProvinceModel instance) => + {'key': instance.key, 'name': instance.name}; -_GuildTypeActivityModel _$GuildTypeActivityModelFromJson( - Map json, -) => _GuildTypeActivityModel( - key: json['key'] as String?, - title: json['title'] as String?, -); +_CityModel _$CityModelFromJson(Map json) => + _CityModel(key: json['key'] as String?, name: json['name'] as String?); -Map _$GuildTypeActivityModelToJson( - _GuildTypeActivityModel instance, -) => {'key': instance.key, 'title': instance.title}; +Map _$CityModelToJson(_CityModel instance) => + {'key': instance.key, 'name': instance.name}; _GetPosStatusModel _$GetPosStatusModelFromJson(Map json) => _GetPosStatusModel( @@ -322,119 +300,3 @@ Map _$GetPosStatusModelToJson(_GetPosStatusModel instance) => '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 index 5f5092c..654dbca 100644 --- a/packages/chicken/lib/data/repositories/chicken_repository.dart +++ b/packages/chicken/lib/data/repositories/chicken_repository.dart @@ -33,9 +33,9 @@ abstract class ChickenRepository { Map? queryParameters, }); - Future getWaitingArrivals({ + Future?> getWaitingArrivals({ required String token, - int? page, + Map? queryParameters, }); Future setSateForArrivals({ diff --git a/packages/chicken/lib/data/repositories/chicken_repository_imp.dart b/packages/chicken/lib/data/repositories/chicken_repository_imp.dart index d5d33d8..3e948d4 100644 --- a/packages/chicken/lib/data/repositories/chicken_repository_imp.dart +++ b/packages/chicken/lib/data/repositories/chicken_repository_imp.dart @@ -33,18 +33,15 @@ class ChickenRepositoryImpl implements ChickenRepository { var res = await _httpClient.get( '/roles-products/?role=Steward', headers: {'Authorization': 'Bearer $token'}, - fromJsonList: (json) => (json) - .map((item) => InventoryModel.fromJson(item as Map)) - .toList(), + fromJsonList: (json) => + (json).map((item) => InventoryModel.fromJson(item as Map)).toList(), ); return res.data; } @override - Future getKillHouseDistributionInfo({ - required String token, - }) async { + Future getKillHouseDistributionInfo({required String token}) async { var res = await _httpClient.get( '/kill-house-distribution-info/?role=Steward', headers: {'Authorization': 'Bearer $token'}, @@ -69,14 +66,18 @@ class ChickenRepositoryImpl implements ChickenRepository { } @override - Future getWaitingArrivals({ + Future?> getWaitingArrivals({ required String token, - int? page, + Map? queryParameters, }) async { var res = await _httpClient.get( - '/steward-allocation/?search=filter&value=&role=Steward&page=${page ?? 1}&page_size=10&type=not_entered', + '/steward-allocation/', headers: {'Authorization': 'Bearer $token'}, - fromJson: WaitingArrivalModel.fromJson, + queryParameters: queryParameters, + fromJson: (json) => PaginationModel.fromJson( + json, + (json) => WaitingArrivalModel.fromJson(json as Map), + ), ); return res.data; } @@ -136,10 +137,7 @@ class ChickenRepositoryImpl implements ChickenRepository { } @override - Future denyAllocation({ - required String token, - required String allocationToken, - }) async { + Future denyAllocation({required String token, required String allocationToken}) async { await _httpClient.delete( '/steward-allocation/0/?steward_allocation_key=$allocationToken', headers: {'Authorization': 'Bearer $token'}, @@ -163,9 +161,8 @@ class ChickenRepositoryImpl implements ChickenRepository { var res = await _httpClient.get( '/roles-products/?role=Steward', headers: {'Authorization': 'Bearer $token'}, - fromJsonList: (json) => json - .map((item) => ProductModel.fromJson(item as Map)) - .toList(), + fromJsonList: (json) => + json.map((item) => ProductModel.fromJson(item as Map)).toList(), ); return res.data; } @@ -179,9 +176,8 @@ class ChickenRepositoryImpl implements ChickenRepository { '/guilds/?', queryParameters: queryParameters, headers: {'Authorization': 'Bearer $token'}, - fromJsonList: (json) => json - .map((item) => GuildModel.fromJson(item as Map)) - .toList(), + fromJsonList: (json) => + json.map((item) => GuildModel.fromJson(item as Map)).toList(), ); return res.data; } @@ -261,8 +257,7 @@ class ChickenRepositoryImpl implements ChickenRepository { } @override - Future?> - getStewardPurchasesOutSideOfTheProvince({ + Future?> getStewardPurchasesOutSideOfTheProvince({ required String token, Map? queryParameters, }) async { @@ -279,18 +274,12 @@ class ChickenRepositoryImpl implements ChickenRepository { } @override - Future?> getCity({ - required String provinceName, - }) async { + Future?> getCity({required String provinceName}) async { var res = await _httpClient.get( '/iran_city/?', queryParameters: {'name': provinceName}, - fromJsonList: (json) => json - .map( - (item) => - IranProvinceCityModel.fromJson(item as Map), - ) - .toList(), + fromJsonList: (json) => + json.map((item) => IranProvinceCityModel.fromJson(item as Map)).toList(), ); return res.data; } @@ -299,12 +288,8 @@ class ChickenRepositoryImpl implements ChickenRepository { Future?> getProvince() async { var res = await _httpClient.get( '/iran_province/', - fromJsonList: (json) => json - .map( - (item) => - IranProvinceCityModel.fromJson(item as Map), - ) - .toList(), + fromJsonList: (json) => + json.map((item) => IranProvinceCityModel.fromJson(item as Map)).toList(), ); return res.data; } @@ -334,8 +319,7 @@ class ChickenRepositoryImpl implements ChickenRepository { } @override - Future?> - getOutProvinceCarcassesBuyer({ + Future?> getOutProvinceCarcassesBuyer({ required String token, Map? queryParameters, }) async { @@ -345,8 +329,7 @@ class ChickenRepositoryImpl implements ChickenRepository { headers: {'Authorization': 'Bearer $token'}, fromJson: (json) => PaginationModel.fromJson( json, - (json) => - OutProvinceCarcassesBuyer.fromJson(json as Map), + (json) => OutProvinceCarcassesBuyer.fromJson(json as Map), ), ); return res.data; @@ -402,10 +385,7 @@ class ChickenRepositoryImpl implements ChickenRepository { '/steward_free_sale_bar/0/', data: body.toJson() ..removeWhere((key, value) => value == null) - ..addAll({ - 'carcassWeight': body.weightOfCarcasses, - 'carcassCount': body.numberOfCarcasses, - }), + ..addAll({'carcassWeight': body.weightOfCarcasses, 'carcassCount': body.numberOfCarcasses}), headers: {'Authorization': 'Bearer $token'}, ); } diff --git a/packages/chicken/lib/presentation/pages/buy_in_province/logic.dart b/packages/chicken/lib/presentation/pages/buy_in_province/logic.dart index 3df5e79..65a11bc 100644 --- a/packages/chicken/lib/presentation/pages/buy_in_province/logic.dart +++ b/packages/chicken/lib/presentation/pages/buy_in_province/logic.dart @@ -1,6 +1,31 @@ -import 'package:get/get.dart'; + + +import 'package:flutter/material.dart'; +import 'package:rasadyar_chicken/presentation/pages/buy/logic.dart'; +import 'package:rasadyar_chicken/presentation/pages/root/logic.dart'; +import 'package:rasadyar_core/core.dart'; class BuyInProvinceLogic extends GetxController { + RxList routesName = RxList(); + RxList isExpandedList = [].obs; + RxnString searchedValue = RxnString(); + Rx fromDateFilter = Jalali.now().obs; + Rx toDateFilter = Jalali.now().obs; + RootLogic get rootLogic => Get.find(); + BuyLogic get buyLogic => Get.find(); + RxInt selectedSegmentIndex = 0.obs; + + @override + void onInit() { + super.onInit(); + routesName.value = [...buyLogic.routesName, 'داخل استان'].toList(); + routesName.add(selectedSegmentIndex.value ==0 ? 'در انتظار':'همه'); + ever(selectedSegmentIndex, (callback) { + routesName.removeLast(); + routesName.add(callback ==0 ? 'در انتظار':'همه'); + },); + + } @override void onReady() { // TODO: implement onReady @@ -12,4 +37,9 @@ class BuyInProvinceLogic extends GetxController { // TODO: implement onClose super.onClose(); } + + void setSearchValue(String? data) { + searchedValue.value = data?.trim(); + //TODO + } } diff --git a/packages/chicken/lib/presentation/pages/buy_in_province/view.dart b/packages/chicken/lib/presentation/pages/buy_in_province/view.dart index ae222d6..2ca51d6 100644 --- a/packages/chicken/lib/presentation/pages/buy_in_province/view.dart +++ b/packages/chicken/lib/presentation/pages/buy_in_province/view.dart @@ -1,5 +1,9 @@ import 'package:flutter/material.dart'; -import 'package:get/get.dart'; +import 'package:rasadyar_chicken/presentation/pages/buy_in_province_all/view.dart'; +import 'package:rasadyar_chicken/presentation/pages/buy_in_province_waiting/view.dart'; +import 'package:rasadyar_chicken/presentation/widget/base_page/view.dart'; +import 'package:rasadyar_chicken/presentation/widget/page_route.dart'; +import 'package:rasadyar_core/core.dart'; import 'logic.dart'; @@ -8,9 +12,40 @@ class BuyInProvincePage extends GetView { @override Widget build(BuildContext context) { + return BasePage( + routesWidget: ObxValue((route) => buildPageRoute(route), controller.routesName), + onBackPressed: () => Get.back(id: 0), + onSearchChanged: (data) => controller.setSearchValue(data), + filteringWidget: Container(color: Colors.redAccent), + widgets: [ + segmentWidget(), + ObxValue((index) { + return Expanded( + child: index.value == 0 ? BuyInProvinceWaitingPage() : BuyInProvinceAllPage(), + ); + }, controller.selectedSegmentIndex), + ], + ); + } - return Container( - color: Colors.amberAccent, + Padding segmentWidget() { + return Padding( + padding: const EdgeInsets.fromLTRB(8, 0, 8, 8), + child: Row( + children: [ + Expanded( + child: RSegment( + children: ['در انتظار', 'همه'], + selectedIndex: 0, + borderColor: const Color(0xFFB4B4B4), + selectedBorderColor: AppColor.blueNormal, + selectedBackgroundColor: AppColor.blueLight, + onSegmentSelected: (index) => controller.selectedSegmentIndex.value = index, + backgroundColor: AppColor.whiteGreyNormal, + ), + ), + ], + ), ); } } diff --git a/packages/chicken/lib/presentation/pages/buy_in_province_all/logic.dart b/packages/chicken/lib/presentation/pages/buy_in_province_all/logic.dart new file mode 100644 index 0000000..dea5e83 --- /dev/null +++ b/packages/chicken/lib/presentation/pages/buy_in_province_all/logic.dart @@ -0,0 +1,15 @@ +import 'package:rasadyar_core/core.dart'; + +class BuyInProvinceAllLogic extends GetxController { + @override + void onReady() { + // TODO: implement onReady + super.onReady(); + } + + @override + void onClose() { + // TODO: implement onClose + super.onClose(); + } +} diff --git a/packages/chicken/lib/presentation/pages/buy_in_province_all/view.dart b/packages/chicken/lib/presentation/pages/buy_in_province_all/view.dart new file mode 100644 index 0000000..fab0ebc --- /dev/null +++ b/packages/chicken/lib/presentation/pages/buy_in_province_all/view.dart @@ -0,0 +1,13 @@ +import 'package:flutter/material.dart'; +import 'package:rasadyar_core/core.dart'; + +import 'logic.dart'; + +class BuyInProvinceAllPage extends GetView { + const BuyInProvinceAllPage({super.key}); + + @override + Widget build(BuildContext context) { + return Container(color: Colors.blue); + } +} diff --git a/packages/chicken/lib/presentation/pages/buy_in_province_waiting/logic.dart b/packages/chicken/lib/presentation/pages/buy_in_province_waiting/logic.dart new file mode 100644 index 0000000..0d5e1f4 --- /dev/null +++ b/packages/chicken/lib/presentation/pages/buy_in_province_waiting/logic.dart @@ -0,0 +1,58 @@ +import 'package:rasadyar_auth/data/utils/safe_call.dart'; +import 'package:rasadyar_chicken/data/models/response/waiting_arrival/waiting_arrival.dart'; +import 'package:rasadyar_chicken/presentation/pages/root/logic.dart'; +import 'package:rasadyar_core/core.dart'; + +class BuyInProvinceWaitingLogic extends GetxController { + RxList isExpandedList = [].obs; + Rx fromDateFilter = Jalali.now().obs; + Rx toDateFilter = Jalali.now().obs; + RxnString searchedValue = RxnString(); + + RootLogic rootLogic = Get.find(); + Rx>> waitingProduct = + Resource>.loading().obs; + + @override + void onReady() { + super.onReady(); + getWaitingArrivals(); + } + + @override + void onClose() { + super.onClose(); + } + + Future getWaitingArrivals() async { + safeCall( + call: () async => await rootLogic.chickenRepository.getWaitingArrivals( + token: rootLogic.tokenService.accessToken.value!, + queryParameters: buildQueryParams( + queryParams: { + 'type':'not_entered' + }, + pageSize: 10, + page: 1, + search: 'filter', + role: 'Steward', + value: searchedValue.value, + fromDate: fromDateFilter.value.toDateTime(), + toDate: toDateFilter.value.toDateTime(), + ), + ), + onSuccess: (res) async { + await Future.delayed(Duration(milliseconds: 500)); + if ((res?.count ?? 0) == 0) { + waitingProduct.value = Resource>.empty(); + } else { + waitingProduct.value = Resource>.success(res!.results!); + } + }, + ); + } + + void setSearchValue(String? data) { + searchedValue.value = data?.trim(); + } +} diff --git a/packages/chicken/lib/presentation/pages/buy_in_province_waiting/view.dart b/packages/chicken/lib/presentation/pages/buy_in_province_waiting/view.dart new file mode 100644 index 0000000..4d49bf3 --- /dev/null +++ b/packages/chicken/lib/presentation/pages/buy_in_province_waiting/view.dart @@ -0,0 +1,264 @@ + +import 'package:flutter/material.dart'; +import 'package:rasadyar_chicken/data/models/response/waiting_arrival/waiting_arrival.dart'; +import 'package:rasadyar_chicken/presentation/widget/list_item/list_item.dart'; +import 'package:rasadyar_chicken/presentation/widget/list_row_item.dart'; +import 'package:rasadyar_core/core.dart'; + +import 'logic.dart'; + +class BuyInProvinceWaitingPage extends GetView { + const BuyInProvinceWaitingPage({super.key}); + + @override + Widget build(BuildContext context) { + return Padding( + padding: const EdgeInsets.symmetric(horizontal: 8), + child: ObxValue((data) { + return RPaginatedListView( + listType: ListType.separated, + resource: data.value, + padding: EdgeInsets.fromLTRB(8, 8, 8, 80), + itemBuilder: (context, index) { + var item = data.value.data![index]; + return ObxValue((val) { + return ListItem2( + selected: val.contains(index), + onTap: () => controller.isExpandedList.toggle(index), + index: index, + child: itemListWidget(item), + secondChild: itemListExpandedWidget(item), + labelColor: AppColor.blueLight, + labelIcon: Assets.vec.truckFastOutlinedSvg.path, + ); + }, controller.isExpandedList); + }, + itemCount: data.value.data?.length ?? 0, + separatorBuilder: (context, index) => SizedBox(height: 8.h), + onLoadMore: () async {}, + ); + }, controller.waitingProduct), + ); + } + + + Row itemListWidget(WaitingArrivalModel item) { + return Row( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + children: [ + SizedBox(width: 20), + Expanded( + flex: 2, + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + crossAxisAlignment: CrossAxisAlignment.start, + spacing: 3, + children: [ + Text( + item.toSteward?.user?.fullname ?? 'N/A', + textAlign: TextAlign.start, + style: AppFonts.yekan12.copyWith(color: AppColor.blueNormal), + ), + Text( + item.date?.formattedJalaliDate ?? 'N/A', + textAlign: TextAlign.center, + style: AppFonts.yekan14.copyWith(color: AppColor.bgDark), + ), + ], + ), + ), + Expanded( + flex: 3, + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.center, + crossAxisAlignment: CrossAxisAlignment.center, + spacing: 3, + children: [ + Visibility( + visible: item.product?.name?.contains('مرغ گرم') ?? false, + child: Assets.vec.hotChickenSvg.svg( + width: 24, + height: 24, + colorFilter: ColorFilter.mode(AppColor.blueNormal, BlendMode.srcIn), + ), + ), + Text( + '${item.weightOfCarcasses?.separatedByComma}kg', + textAlign: TextAlign.left, + style: AppFonts.yekan12.copyWith(color: AppColor.blueNormal), + ), + ], + ), + + SizedBox(height: 2), + + + ], + ), + ), + Expanded( + flex: 1, + child: Assets.vec.scanSvg.svg( + width: 32.w, + height: 32.h, + colorFilter: ColorFilter.mode(AppColor.blueNormal, BlendMode.srcIn), + ), + ), + ], + ); + } + + Container itemListExpandedWidget(WaitingArrivalModel item) { + return Container( + padding: EdgeInsets.all(8), + decoration: BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(8)), + child: Column( + spacing: 8, + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Text( + item.steward?.user?.fullname ?? 'N/A', + textAlign: TextAlign.center, + style: AppFonts.yekan16.copyWith(color: AppColor.greenDark), + ), + ], + ), + Container( + height: 32, + padding: EdgeInsets.symmetric(horizontal: 4), + decoration: ShapeDecoration( + color: AppColor.blueLight, + shape: RoundedRectangleBorder( + side: BorderSide(width: 1, color: AppColor.blueLightHover), + borderRadius: BorderRadius.circular(8), + ), + ), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Row( + spacing: 3, + children: [ + Text( + item.date?.toJalali.formatter.wN ?? 'N/A', + style: AppFonts.yekan14.copyWith(color: AppColor.textColor), + ), + + Text( + '${item.date?.toJalali.formatter.d} ${item.date?.toJalali.formatter.mN ?? 'N/A'}', + style: AppFonts.yekan14.copyWith(color: AppColor.blueNormal), + ), + ], + ), + + Text( + '${item.date?.toJalali.formatter.y}', + style: AppFonts.yekan20.copyWith(color: AppColor.textColor), + ), + + Text( + '${item.date?.toJalali.formatter.tHH}:${item.date?.toJalali.formatter.tMM ?? 'N/A'}', + style: AppFonts.yekan14.copyWith(color: AppColor.textColor), + ), + ], + ), + ), + + // buildRow(title: 'مشخصات فروشنده', value: item.killHouseName ?? 'N/A'), + + buildRow( + title: 'تلفن فروشنده', + value: item.steward?.user?.mobile ?? 'N/A', + valueStyle: AppFonts.yekan14.copyWith(color: AppColor.blueNormal), + ), + buildRow(title: 'محصول', value: item.product?.name ?? 'N/A'), + buildRow( + title: 'وزن خریداری شده', + value: '${item.weightOfCarcasses?.separatedByComma} کیلوگرم', + ), + buildRowOnTapped( + title: 'مشاهده بارنامه', + titleStyle: AppFonts.yekan14.copyWith(color: AppColor.blueNormal), + valueWidget: Assets.vec.clipboardEyeSvg.svg( + width: 20, + height: 24, + colorFilter: ColorFilter.mode(AppColor.blueNormal, BlendMode.srcIn), + ), + onTap: () { + Get.bottomSheet( + BaseBottomSheet( + height: 400, + child: Column( + spacing: 16, + children: [ + Text( + 'بارنامه', + style: AppFonts.yekan16Bold.copyWith(color: AppColor.darkGreyDarkHover), + ), + + /* Image.network( + item.barImage ?? '', + fit: BoxFit.cover, + height: 300, + errorBuilder: (context, error, stackTrace) { + eLog(error.toString()); + return Center(child: Text('خطایی پیش آمده!')); + }, + loadingBuilder: (context, child, loadingProgress) { + if (loadingProgress == null) return child; + return CupertinoActivityIndicator(); + }, + ),*/ + ], + ), + ), + ); + }, + ), + /* Row( + mainAxisAlignment: MainAxisAlignment.center, + spacing: 16.w, + children: [ + RElevated( + text: 'ویرایش', + width: 150.w, + height: 40.h, + onPressed: () { + controller.setEditData(item); + Get.bottomSheet( + addPurchasedInformationBottomSheet(true), + isScrollControlled: true, + ).whenComplete(() { + controller.resetSubmitForm(); + }); + }, + textStyle: AppFonts.yekan20.copyWith(color: Colors.white), + backgroundColor: AppColor.greenNormal, + ), + ROutlinedElevated( + text: 'حذف', + textStyle: AppFonts.yekan20.copyWith(color: AppColor.redNormal), + width: 150.w, + height: 40.h, + onPressed: () { + buildDeleteDialog( + onConfirm: () => controller.deleteStewardPurchaseOutOfProvince(item.key!), + onRefresh: () => controller.getStewardPurchaseOutOfProvince(), + ); + }, + borderColor: AppColor.redNormal, + ), + ], + ),*/ + ], + ), + ); + } + +} diff --git a/packages/chicken/lib/presentation/pages/buy_out_of_province/logic.dart b/packages/chicken/lib/presentation/pages/buy_out_of_province/logic.dart index 76bf003..fee137e 100644 --- a/packages/chicken/lib/presentation/pages/buy_out_of_province/logic.dart +++ b/packages/chicken/lib/presentation/pages/buy_out_of_province/logic.dart @@ -31,7 +31,6 @@ class BuyOutOfProvinceLogic extends GetxController { RxnString editImageUrl = RxnString(); RootLogic get rootLogic => Get.find(); - BuyLogic get buyLogic => Get.find(); SaleLogic get outOfTheProvinceLogic => Get.find(); diff --git a/packages/chicken/lib/presentation/pages/entering_the_warehouse/logic.dart b/packages/chicken/lib/presentation/pages/entering_the_warehouse/logic.dart index 70de9f7..9fb4a42 100644 --- a/packages/chicken/lib/presentation/pages/entering_the_warehouse/logic.dart +++ b/packages/chicken/lib/presentation/pages/entering_the_warehouse/logic.dart @@ -33,9 +33,9 @@ class EnteringTheWarehouseLogic extends GetxController { @override void onReady() { super.onReady(); - //rootLogic.getInventory(); + getBarGeneralInformation(); - getWaitingArrivals(); + getImportedEntried(); scrollControllerImportedLoad.addListener(() { @@ -50,7 +50,7 @@ class EnteringTheWarehouseLogic extends GetxController { if (scrollControllerWaitingForArrival.position.pixels >= scrollControllerWaitingForArrival.position.maxScrollExtent - 100) { addPageWaitingForArrival.value = true; - getWaitingArrivals(); + } }); } @@ -72,38 +72,7 @@ class EnteringTheWarehouseLogic extends GetxController { ); } - Future getWaitingArrivals() async { - if (isLoadingMoreWaitingForArrival.value || - !hasMoreDataWaitingForArrival.value) { - return; - } - if (addPageWaitingForArrival.value) { - currentPageWaitingForArrival.value++; - } - - safeCall( - call: () async => await rootLogic.chickenRepository.getWaitingArrivals( - token: rootLogic.tokenService.accessToken.value!, - page: currentPageWaitingForArrival.value, - ), - onError: (error, stackTrace) { - isLoadingMoreImportedLoad.value = false; - }, - onSuccess: (result) { - if (result != null) { - waitingForArrival.value = result; - if (isLoadingMoreWaitingForArrival.value) { - waitingForArrival.value?.results.addAll(result.results); - } else { - waitingForArrival.value = result; - } - } - - isLoadingMoreImportedLoad.value = false; - }, - ); - } Future acceptEntried(String key) async { var request = StewardAllocationRequest( @@ -139,7 +108,7 @@ class EnteringTheWarehouseLogic extends GetxController { }, onSuccess: (result) { clearControllers(); - getWaitingArrivals(); + getBarGeneralInformation(); }, ); @@ -162,7 +131,7 @@ class EnteringTheWarehouseLogic extends GetxController { eLog(error); }, onSuccess: (result) { - getWaitingArrivals(); + getBarGeneralInformation(); }, ); diff --git a/packages/chicken/lib/presentation/pages/entering_the_warehouse/view.dart b/packages/chicken/lib/presentation/pages/entering_the_warehouse/view.dart index 83ede6a..6cd140f 100644 --- a/packages/chicken/lib/presentation/pages/entering_the_warehouse/view.dart +++ b/packages/chicken/lib/presentation/pages/entering_the_warehouse/view.dart @@ -21,7 +21,7 @@ class EnteringTheWarehousePage extends GetView { ObxValue((data) { return generalBarInformation(data.value); }, controller.barInformation), - waitingForArrival(), + importedLoads(), ], ), @@ -251,7 +251,7 @@ class EnteringTheWarehousePage extends GetView { ); } - Widget waitingForArrival() { +/* Widget waitingForArrival() { return Column( children: [ const SizedBox(height: 8), @@ -398,7 +398,7 @@ class EnteringTheWarehousePage extends GetView { }, controller.waitingForArrival), ], ); - } + }*/ Widget importedLoads() { return Column( @@ -546,7 +546,7 @@ class EnteringTheWarehousePage extends GetView { ); } - Widget acceptBottomSheet(ResultModel resultModel) { +/* Widget acceptBottomSheet(ResultModel resultModel) { return BaseBottomSheet( height: 500, child: Column( @@ -625,5 +625,5 @@ class EnteringTheWarehousePage extends GetView { ], ), ); - } + }*/ } diff --git a/packages/chicken/lib/presentation/routes/pages.dart b/packages/chicken/lib/presentation/routes/pages.dart index f9b5cfa..d988b67 100644 --- a/packages/chicken/lib/presentation/routes/pages.dart +++ b/packages/chicken/lib/presentation/routes/pages.dart @@ -3,6 +3,8 @@ import 'package:rasadyar_chicken/presentation/pages/buy/logic.dart'; import 'package:rasadyar_chicken/presentation/pages/buy/view.dart'; import 'package:rasadyar_chicken/presentation/pages/buy_in_province/logic.dart'; import 'package:rasadyar_chicken/presentation/pages/buy_in_province/view.dart'; +import 'package:rasadyar_chicken/presentation/pages/buy_in_province_all/logic.dart'; +import 'package:rasadyar_chicken/presentation/pages/buy_in_province_waiting/logic.dart'; import 'package:rasadyar_chicken/presentation/pages/buy_out_of_province/logic.dart'; import 'package:rasadyar_chicken/presentation/pages/buy_out_of_province/view.dart'; import 'package:rasadyar_chicken/presentation/pages/home/logic.dart'; @@ -124,7 +126,10 @@ sealed class ChickenPages { middlewares: [AuthMiddleware()], binding: BindingsBuilder(() { Get.lazyPut(() => BaseLogic()); + Get.lazyPut(() => SearchLogic()); Get.lazyPut(() => BuyInProvinceLogic()); + Get.lazyPut(() => BuyInProvinceWaitingLogic()); + Get.lazyPut(() => BuyInProvinceAllLogic()); Get.lazyPut(() => RootLogic()); }), ), diff --git a/packages/chicken/lib/presentation/widget/base_page/view.dart b/packages/chicken/lib/presentation/widget/base_page/view.dart index fd2fb40..f0423df 100644 --- a/packages/chicken/lib/presentation/widget/base_page/view.dart +++ b/packages/chicken/lib/presentation/widget/base_page/view.dart @@ -9,8 +9,9 @@ import 'package:rasadyar_core/core.dart'; class BasePage extends StatefulWidget { const BasePage({ super.key, - required this.routes, + this.routes, required this.widgets, + this.routesWidget, this.floatingActionButtonLocation, this.floatingActionButton, this.onSearchChanged, @@ -22,9 +23,14 @@ class BasePage extends StatefulWidget { this.onFilterTap, this.onSearchTap, this.filteringWidget, - }); + }):assert( + (routes != null ) || routesWidget != null, + 'Either routes or routesWidget must be provided.', + ); - final List routes; + + final List? routes; + final Widget? routesWidget; final List widgets; final FloatingActionButtonLocation? floatingActionButtonLocation; final Widget? floatingActionButton; @@ -85,7 +91,7 @@ class _BasePageState extends State { body: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - buildPageRoute(widget.routes), + widget.routesWidget != null ? widget.routesWidget! : buildPageRoute(widget.routes!), const SizedBox(height: 8), if (!widget.isBase && widget.hasSearch) ...{ SearchWidget(onSearchChanged: widget.onSearchChanged), diff --git a/packages/core/lib/presentation/widget/tabs/new_tab.dart b/packages/core/lib/presentation/widget/tabs/new_tab.dart index c6e73c4..308ebb2 100644 --- a/packages/core/lib/presentation/widget/tabs/new_tab.dart +++ b/packages/core/lib/presentation/widget/tabs/new_tab.dart @@ -14,9 +14,7 @@ import 'package:flutter/rendering.dart'; // Minimum padding from edges of the segmented control to edges of // encompassing widget. -const EdgeInsetsGeometry _kHorizontalItemPadding = EdgeInsets.symmetric( - horizontal: 16.0, -); +const EdgeInsetsGeometry _kHorizontalItemPadding = EdgeInsets.symmetric(horizontal: 16.0); // Minimum height of the segmented control. const double _kMinSegmentedControlHeight = 28.0; @@ -52,15 +50,17 @@ class NewCupertinoSegmentedControl extends StatefulWidget { this.unselectedColor, this.selectedColor, this.borderColor, + this.selectedBorderColor, this.pressedColor, this.disabledColor, this.disabledTextColor, this.padding, + this.unselectedItemStyle, + this.selectedItemStyle, this.disabledChildren = const {}, }) : assert(children.length >= 2), assert( - groupValue == null || - children.keys.any((T child) => child == groupValue), + groupValue == null || children.keys.any((T child) => child == groupValue), 'The groupValue must be either null or one of the keys in the children map.', ); @@ -101,6 +101,11 @@ class NewCupertinoSegmentedControl extends StatefulWidget { /// Defaults to [CupertinoTheme]'s `primaryColor` if null. final Color? borderColor; + /// The color used as the border around selected widget. + /// + /// Defaults to [CupertinoTheme]'s `primaryColor` if null. + final Color? selectedBorderColor; + /// The color used to fill the background of the widget the user is /// temporarily interacting with through a long press or drag. /// @@ -127,18 +132,25 @@ class NewCupertinoSegmentedControl extends StatefulWidget { /// All segments are enabled by default. final Set disabledChildren; + /// The text style for unselected items. + /// + /// Defaults to null, which means it will use the default text style. + final TextStyle? unselectedItemStyle; + + /// The text style for selected items. + /// + /// Defaults to null, which means it will use the default text style. + final TextStyle? selectedItemStyle; + @override - State> createState() => - _SegmentedControlState(); + State> createState() => _SegmentedControlState(); } -class _SegmentedControlState - extends State> +class _SegmentedControlState extends State> with TickerProviderStateMixin> { T? _pressedKey; - final List _selectionControllers = - []; + final List _selectionControllers = []; final List _childTweens = []; late ColorTween _forwardBackgroundColorTween; @@ -148,74 +160,66 @@ class _SegmentedControlState Color? _selectedColor; Color? _unselectedColor; Color? _borderColor; + Color? _selectedBorderColor; Color? _pressedColor; Color? _selectedDisabledColor; Color? _unselectedDisabledColor; Color? _disabledTextColor; AnimationController createAnimationController() { - return AnimationController(duration: _kFadeDuration, vsync: this) - ..addListener(() { - setState(() { - // State of background/text colors has changed - }); + return AnimationController(duration: _kFadeDuration, vsync: this)..addListener(() { + setState(() { + // State of background/text colors has changed }); + }); } bool _updateColors() { assert(mounted, 'This should only be called after didUpdateDependencies'); bool changed = false; - final Color disabledTextColor = - widget.disabledTextColor ?? _kDisableTextColor; + final Color disabledTextColor = widget.disabledTextColor ?? _kDisableTextColor; if (_disabledTextColor != disabledTextColor) { changed = true; _disabledTextColor = disabledTextColor; } - final Color selectedColor = - widget.selectedColor ?? CupertinoTheme.of(context).primaryColor; + final Color selectedColor = widget.selectedColor ?? CupertinoTheme.of(context).primaryColor; if (_selectedColor != selectedColor) { changed = true; _selectedColor = selectedColor; } final Color unselectedColor = - widget.unselectedColor ?? - CupertinoTheme.of(context).primaryContrastingColor; + widget.unselectedColor ?? CupertinoTheme.of(context).primaryContrastingColor; if (_unselectedColor != unselectedColor) { changed = true; _unselectedColor = unselectedColor; } - final Color selectedDisabledColor = - widget.disabledColor ?? selectedColor.withOpacity(0.5); - final Color unselectedDisabledColor = - widget.disabledColor ?? unselectedColor; + final Color selectedDisabledColor = widget.disabledColor ?? selectedColor.withOpacity(0.5); + final Color unselectedDisabledColor = widget.disabledColor ?? unselectedColor; if (_selectedDisabledColor != selectedDisabledColor || _unselectedDisabledColor != unselectedDisabledColor) { changed = true; _selectedDisabledColor = selectedDisabledColor; _unselectedDisabledColor = unselectedDisabledColor; } - final Color borderColor = - widget.borderColor ?? CupertinoTheme.of(context).primaryColor; + final Color borderColor = widget.borderColor ?? CupertinoTheme.of(context).primaryColor; + final Color selectedBorderColor = widget.selectedBorderColor ?? CupertinoTheme.of(context).primaryColor; if (_borderColor != borderColor) { changed = true; _borderColor = borderColor; } + if (_selectedBorderColor != selectedBorderColor) { + changed = true; + _selectedBorderColor = selectedBorderColor; + } final Color pressedColor = - widget.pressedColor ?? - CupertinoTheme.of(context).primaryColor.withOpacity(0.2); + widget.pressedColor ?? CupertinoTheme.of(context).primaryColor.withOpacity(0.2); if (_pressedColor != pressedColor) { changed = true; _pressedColor = pressedColor; } - _forwardBackgroundColorTween = ColorTween( - begin: _pressedColor, - end: _selectedColor, - ); - _reverseBackgroundColorTween = ColorTween( - begin: _unselectedColor, - end: _selectedColor, - ); + _forwardBackgroundColorTween = ColorTween(begin: _pressedColor, end: _selectedColor); + _reverseBackgroundColorTween = ColorTween(begin: _unselectedColor, end: _selectedColor); _textColorTween = ColorTween(begin: _selectedColor, end: _unselectedColor); return changed; } @@ -229,8 +233,7 @@ class _SegmentedControlState _childTweens.clear(); for (final T key in widget.children.keys) { - final AnimationController animationController = - createAnimationController(); + final AnimationController animationController = createAnimationController(); if (widget.groupValue == key) { _childTweens.add(_reverseBackgroundColorTween); animationController.value = 1.0; @@ -254,8 +257,7 @@ class _SegmentedControlState void didUpdateWidget(NewCupertinoSegmentedControl oldWidget) { super.didUpdateWidget(oldWidget); - if (_updateColors() || - oldWidget.children.length != widget.children.length) { + if (_updateColors() || oldWidget.children.length != widget.children.length) { _updateAnimationControllers(); } @@ -276,8 +278,7 @@ class _SegmentedControlState @override void dispose() { - for (final AnimationController animationController - in _selectionControllers) { + for (final AnimationController animationController in _selectionControllers) { animationController.dispose(); } super.dispose(); @@ -324,9 +325,7 @@ class _SegmentedControlState Color? getBackgroundColor(int index, T currentKey) { if (widget.disabledChildren.contains(currentKey)) { - return widget.groupValue == currentKey - ? _selectedDisabledColor - : _unselectedDisabledColor; + return widget.groupValue == currentKey ? _selectedDisabledColor : _unselectedDisabledColor; } if (_selectionControllers[index].isAnimating) { return _childTweens[index].evaluate(_selectionControllers[index]); @@ -350,13 +349,12 @@ class _SegmentedControlState for (final T currentKey in widget.children.keys) { selectedIndex = (widget.groupValue == currentKey) ? index : selectedIndex; pressedIndex = (_pressedKey == currentKey) ? index : pressedIndex; + final isSelected = widget.groupValue == currentKey; - final TextStyle textStyle = DefaultTextStyle.of( - context, - ).style.copyWith(color: getTextColor(index, currentKey)); - final IconThemeData iconTheme = IconThemeData( - color: getTextColor(index, currentKey), - ); + final textStyle = + (isSelected ? widget.selectedItemStyle : widget.unselectedItemStyle) ?? + DefaultTextStyle.of(context).style.copyWith(color: getTextColor(index, currentKey)); + final IconThemeData iconTheme = IconThemeData(color: getTextColor(index, currentKey)); Widget child = Center(child: widget.children[currentKey]); @@ -364,16 +362,12 @@ class _SegmentedControlState cursor: kIsWeb ? SystemMouseCursors.click : MouseCursor.defer, child: GestureDetector( behavior: HitTestBehavior.opaque, - onTapDown: - widget.disabledChildren.contains(currentKey) - ? null - : (TapDownDetails event) { - _onTapDown(currentKey); - }, - onTapCancel: - widget.disabledChildren.contains(currentKey) - ? null - : _onTapCancel, + onTapDown: widget.disabledChildren.contains(currentKey) + ? null + : (TapDownDetails event) { + _onTapDown(currentKey); + }, + onTapCancel: widget.disabledChildren.contains(currentKey) ? null : _onTapCancel, onTap: () { _onTap(currentKey); }, @@ -402,6 +396,7 @@ class _SegmentedControlState pressedIndex: pressedIndex, backgroundColors: backgroundColors, borderColor: _borderColor!, + selectBorderColor: _selectedBorderColor ?? _borderColor!, children: gestureChildren, ); @@ -420,12 +415,14 @@ class _SegmentedControlRenderWidget extends MultiChildRenderObjectWidget { required this.pressedIndex, required this.backgroundColors, required this.borderColor, + required this.selectBorderColor, }); final int? selectedIndex; final int? pressedIndex; final List backgroundColors; final Color borderColor; + final Color selectBorderColor; @override RenderObject createRenderObject(BuildContext context) { @@ -435,25 +432,23 @@ class _SegmentedControlRenderWidget extends MultiChildRenderObjectWidget { pressedIndex: pressedIndex, backgroundColors: backgroundColors, borderColor: borderColor, + selectBorderColor: selectBorderColor, ); } @override - void updateRenderObject( - BuildContext context, - _RenderSegmentedControl renderObject, - ) { + void updateRenderObject(BuildContext context, _RenderSegmentedControl renderObject) { renderObject ..textDirection = Directionality.of(context) ..selectedIndex = selectedIndex ..pressedIndex = pressedIndex ..backgroundColors = backgroundColors - ..borderColor = borderColor; + ..borderColor = borderColor + ..selectedItemBorderColor = selectBorderColor; } } -class _SegmentedControlContainerBoxParentData - extends ContainerBoxParentData { +class _SegmentedControlContainerBoxParentData extends ContainerBoxParentData { RRect? surroundingRect; } @@ -461,24 +456,20 @@ typedef _NextChild = RenderBox? Function(RenderBox child); class _RenderSegmentedControl extends RenderBox with - ContainerRenderObjectMixin< - RenderBox, - ContainerBoxParentData - >, - RenderBoxContainerDefaultsMixin< - RenderBox, - ContainerBoxParentData - > { + ContainerRenderObjectMixin>, + RenderBoxContainerDefaultsMixin> { _RenderSegmentedControl({ required int? selectedIndex, required int? pressedIndex, required TextDirection textDirection, required List backgroundColors, required Color borderColor, + required Color selectBorderColor, }) : _textDirection = textDirection, _selectedIndex = selectedIndex, _pressedIndex = pressedIndex, _backgroundColors = backgroundColors, + _selectedBorderColor = selectBorderColor, _borderColor = borderColor; int? get selectedIndex => _selectedIndex; @@ -536,6 +527,16 @@ class _RenderSegmentedControl extends RenderBox markNeedsPaint(); } + Color? _selectedBorderColor; + + Color? get selectedItemBorderColor => _selectedBorderColor; + + set selectedItemBorderColor(Color? value) { + if (_selectedBorderColor == value) return; + _selectedBorderColor = value; + markNeedsPaint(); + } + @override double computeMinIntrinsicWidth(double height) { RenderBox? child = firstChild; @@ -604,11 +605,7 @@ class _RenderSegmentedControl extends RenderBox } } - void _layoutRects( - _NextChild nextChild, - RenderBox? leftChild, - RenderBox? rightChild, - ) { + void _layoutRects(_NextChild nextChild, RenderBox? leftChild, RenderBox? rightChild) { RenderBox? child = leftChild; double start = 0.0; while (child != null) { @@ -616,12 +613,7 @@ class _RenderSegmentedControl extends RenderBox child.parentData! as _SegmentedControlContainerBoxParentData; final Offset childOffset = Offset(start, 0.0); childParentData.offset = childOffset; - final Rect childRect = Rect.fromLTWH( - start, - 0.0, - child.size.width, - child.size.height, - ); + final Rect childRect = Rect.fromLTWH(start, 0.0, child.size.width, child.size.height); final RRect rChildRect; if (child == leftChild) { rChildRect = RRect.fromRectAndCorners( @@ -649,10 +641,7 @@ class _RenderSegmentedControl extends RenderBox double childWidth = constraints.minWidth / childCount; RenderBox? child = firstChild; while (child != null) { - childWidth = math.max( - childWidth, - child.getMaxIntrinsicWidth(double.infinity), - ); + childWidth = math.max(childWidth, child.getMaxIntrinsicWidth(double.infinity)); child = childAfter(child); } childWidth = math.min(childWidth, constraints.maxWidth / childCount); @@ -666,25 +655,16 @@ class _RenderSegmentedControl extends RenderBox } Size _computeOverallSizeFromChildSize(Size childSize) { - return constraints.constrain( - Size(childSize.width * childCount, childSize.height), - ); + return constraints.constrain(Size(childSize.width * childCount, childSize.height)); } @override - double? computeDryBaseline( - covariant BoxConstraints constraints, - TextBaseline baseline, - ) { + double? computeDryBaseline(covariant BoxConstraints constraints, TextBaseline baseline) { final Size childSize = _calculateChildSize(constraints); final BoxConstraints childConstraints = BoxConstraints.tight(childSize); BaselineOffset baselineOffset = BaselineOffset.noBaseline; - for ( - RenderBox? child = firstChild; - child != null; - child = childAfter(child) - ) { + for (RenderBox? child = firstChild; child != null; child = childAfter(child)) { baselineOffset = baselineOffset.minOf( BaselineOffset(child.getDryBaseline(childConstraints, baseline)), ); @@ -735,28 +715,29 @@ class _RenderSegmentedControl extends RenderBox } } - void _paintChild( - PaintingContext context, - Offset offset, - RenderBox child, - int childIndex, - ) { + void _paintChild(PaintingContext context, Offset offset, RenderBox child, int childIndex) { final _SegmentedControlContainerBoxParentData childParentData = child.parentData! as _SegmentedControlContainerBoxParentData; + final RRect rect = childParentData.surroundingRect!.shift(offset); context.canvas.drawRRect( - childParentData.surroundingRect!.shift(offset), + rect, Paint() ..color = backgroundColors[childIndex] ..style = PaintingStyle.fill, ); - context.canvas.drawRRect( - childParentData.surroundingRect!.shift(offset), - Paint() - ..color = borderColor - ..strokeWidth = 1.0 - ..style = PaintingStyle.stroke, - ); + + + final isSelected = selectedIndex == childIndex; + final borderPaint = Paint() + ..color = isSelected && selectedItemBorderColor != null + ? selectedItemBorderColor! + : borderColor + ..strokeWidth = 1.0 + ..style = PaintingStyle.stroke; + + context.canvas.drawRRect(rect, borderPaint); + context.paintChild(child, childParentData.offset + offset); } diff --git a/packages/core/lib/presentation/widget/tabs/r_segment.dart b/packages/core/lib/presentation/widget/tabs/r_segment.dart new file mode 100644 index 0000000..bdca712 --- /dev/null +++ b/packages/core/lib/presentation/widget/tabs/r_segment.dart @@ -0,0 +1,104 @@ +import 'package:flutter/material.dart'; +import 'package:rasadyar_core/core.dart'; + +const Duration _kFadeDuration = Duration(milliseconds: 165); + +class RSegment extends StatefulWidget { + const RSegment({ + super.key, + required this.children, + required this.selectedIndex, + required this.onSegmentSelected, + required this.backgroundColor, + required this.selectedBackgroundColor, + required this.borderColor, + required this.selectedBorderColor, + this.padding, + }); + + final List children; + final int selectedIndex; + final Function(int index)? onSegmentSelected; + final EdgeInsetsGeometry? padding; + final Color backgroundColor; + final Color borderColor; + final Color selectedBackgroundColor; + final Color selectedBorderColor; + + @override + State createState() => _RSegmentState(); +} + +class _RSegmentState extends State { + late int selectedIndex; + + @override + void initState() { + super.initState(); + selectedIndex = widget.selectedIndex; + } + + @override + void didUpdateWidget(covariant RSegment oldWidget) { + super.didUpdateWidget(oldWidget); + if (oldWidget.selectedIndex != widget.selectedIndex) { + widget.onSegmentSelected?.call(widget.selectedIndex); + } + } + + @override + Widget build(BuildContext context) { + return Row( + children: List.generate( + widget.children.length, + (index) => Expanded( + child: _generateChild( + index: index, + hasNext: widget.children.length > index + 1, + hasPrevious: index > 0, + ), + ), + ), + ); + } + + Widget _generateChild({required int index, required bool hasNext, required bool hasPrevious}) { + final bool isSelected = selectedIndex == index; + + return GestureDetector( + onTap: () { + setState(() { + selectedIndex = index; + }); + widget.onSegmentSelected?.call(index); + }, + child: AnimatedContainer( + duration: _kFadeDuration, + padding: widget.padding??EdgeInsets.symmetric(vertical: 8), + margin: EdgeInsets.zero, + decoration: BoxDecoration( + color: isSelected ? widget.selectedBackgroundColor : widget.backgroundColor, + borderRadius: BorderRadius.only( + topRight: !hasPrevious && hasNext ? Radius.circular(8) : Radius.zero, + bottomRight: !hasPrevious && hasNext ? Radius.circular(8) : Radius.zero, + bottomLeft: hasPrevious && !hasNext ? Radius.circular(8) : Radius.zero, + topLeft: hasPrevious && !hasNext ? Radius.circular(8) : Radius.zero, + ), + border: Border.all( + width: 1, + color: isSelected ? widget.selectedBorderColor : widget.borderColor, + ), + ), + child: Center( + child: Text( + widget.children[index], + textAlign: TextAlign.center, + style: isSelected + ? AppFonts.yekan16Bold.copyWith(color: widget.selectedBorderColor) + : AppFonts.yekan16.copyWith(color: AppColor.mediumGreyDarkHover), + ), + ), + ), + ); + } +} diff --git a/packages/core/lib/presentation/widget/widget.dart b/packages/core/lib/presentation/widget/widget.dart index 1ea7bfa..89df63c 100644 --- a/packages/core/lib/presentation/widget/widget.dart +++ b/packages/core/lib/presentation/widget/widget.dart @@ -24,5 +24,6 @@ export 'overlay_dropdown_widget/view.dart'; export 'pagination/pagination_from_until.dart'; export 'pagination/show_more.dart'; export 'tabs/new_tab.dart'; +export 'tabs/r_segment.dart'; export 'tabs/tab.dart'; export 'vec_widget.dart';