diff --git a/packages/chicken/lib/data/models/response/allocated_made/allocated_made.dart b/packages/chicken/lib/data/models/response/allocated_made/allocated_made.dart index 78f4f6c..a01d1ed 100644 --- a/packages/chicken/lib/data/models/response/allocated_made/allocated_made.dart +++ b/packages/chicken/lib/data/models/response/allocated_made/allocated_made.dart @@ -6,84 +6,71 @@ part 'allocated_made.g.dart'; @freezed abstract class AllocatedMadeModel with _$AllocatedMadeModel { factory AllocatedMadeModel({ - int? count, - String? next, - String? previous, - List? results, + int? id, + Product? product, + dynamic killHouse, + dynamic toKillHouse, + Steward? steward, + dynamic toSteward, + dynamic guilds, + Steward? 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, + int? weightOfCarcasses, + int? realWeightOfCarcasses, + int? receiverRealWeightOfCarcasses, + int? 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, + String? loggedRegistrationCode, + String? state, + String? receiverState, + String? allocationState, + String? date, + String? role, + String? stewardTempKey, + bool? approvedPriceStatus, + bool? calculateStatus, + bool? temporaryTrash, + bool? temporaryDeleted, + String? createdBy, + String? modifiedBy, + dynamic wareHouse, + dynamic stewardWareHouse, + dynamic car, + dynamic dispenser, }) = _AllocatedMadeModel; factory AllocatedMadeModel.fromJson(Map json) => _$AllocatedMadeModelFromJson(json); } -@freezed -abstract class AllocatedMadeResult with _$AllocatedMadeResult { - factory AllocatedMadeResult({ - int? id, - Product? product, - dynamic kill_house, - dynamic to_kill_house, - Steward? steward, - dynamic to_steward, - dynamic guilds, - Steward? to_guilds, - dynamic to_cold_house, - int? index_weight, - int? date_timestamp, - int? new_state, - int? new_receiver_state, - int? new_allocation_state, - String? key, - String? create_date, - String? modify_date, - bool? trash, - int? number_of_carcasses, - int? real_number_of_carcasses, - int? receiver_real_number_of_carcasses, - int? weight_of_carcasses, - int? real_weight_of_carcasses, - int? receiver_real_weight_of_carcasses, - int? weight_loss_of_carcasses, - bool? final_registration, - String? sell_type, - String? product_name, - String? seller_type, - String? type, - String? sale_type, - String? allocation_type, - bool? system_registration_code, - int? registration_code, - int? amount, - int? total_amount, - int? total_amount_paid, - int? total_amount_remain, - String? logged_registration_code, - String? state, - String? receiver_state, - String? allocation_state, - String? date, - String? role, - String? steward_temp_key, - bool? approved_price_status, - bool? calculate_status, - bool? temporary_trash, - bool? temporary_deleted, - String? created_by, - String? modified_by, - dynamic ware_house, - dynamic steward_ware_house, - dynamic car, - dynamic dispenser, - }) = _AllocatedMadeResult; - - factory AllocatedMadeResult.fromJson(Map json) => - _$AllocatedMadeResultFromJson(json); -} - @freezed abstract class Product with _$Product { factory Product({ - int? weight_average, + int? weightAverage, }) = _Product; factory Product.fromJson(Map json) => @@ -96,68 +83,68 @@ abstract class Steward with _$Steward { int? id, User? user, Address? address, - Activity? guild_area_activity, - Activity? guild_type_activity, - List? kill_house, - List? steward_kill_house, + Activity? guildAreaActivity, + Activity? guildTypeActivity, + List? killHouse, + List? stewardKillHouse, List? stewards, - PosStatus? get_pos_status, + PosStatus? getPosStatus, String? key, - String? create_date, - String? modify_date, + String? createDate, + String? modifyDate, bool? trash, - dynamic user_id_foreign_key, - dynamic address_id_foreign_key, - dynamic user_bank_id_foreign_key, - dynamic wallet_id_foreign_key, - dynamic provincial_government_id_key, - dynamic identity_documents, + dynamic userIdForeignKey, + dynamic addressIdForeignKey, + dynamic userBankIdForeignKey, + dynamic walletIdForeignKey, + dynamic provincialGovernmentIdKey, + dynamic identityDocuments, bool? active, - int? city_number, - String? city_name, - String? guilds_id, - String? license_number, - String? guilds_name, + int? cityNumber, + String? cityName, + String? guildsId, + String? licenseNumber, + String? guildsName, String? phone, - String? type_activity, - String? area_activity, - int? province_number, - String? province_name, + String? typeActivity, + String? areaActivity, + int? provinceNumber, + String? provinceName, bool? steward, - bool? has_pos, - dynamic centers_allocation, - dynamic kill_house_centers_allocation, - dynamic allocation_limit, - bool? limitation_allocation, - String? registerar_role, - String? registerar_fullname, - String? registerar_mobile, - bool? kill_house_register, - bool? steward_register, - bool? guilds_room_register, - bool? pos_company_register, - String? province_accept_state, - String? province_message, + bool? hasPos, + dynamic centersAllocation, + dynamic killHouseCentersAllocation, + dynamic allocationLimit, + bool? limitationAllocation, + String? registerarRole, + String? registerarFullname, + String? registerarMobile, + bool? killHouseRegister, + bool? stewardRegister, + bool? guildsRoomRegister, + bool? posCompanyRegister, + String? provinceAcceptState, + String? provinceMessage, String? condition, - String? description_condition, - bool? steward_active, - dynamic steward_allocation_limit, - bool? steward_limitation_allocation, + String? descriptionCondition, + bool? stewardActive, + dynamic stewardAllocationLimit, + bool? stewardLimitationAllocation, bool? license, - dynamic license_form, - dynamic license_file, - String? reviewer_role, - String? reviewer_fullname, - String? reviewer_mobile, - String? checker_message, - bool? final_accept, - bool? temporary_registration, - String? created_by, - String? modified_by, - dynamic user_bank_info, + dynamic licenseForm, + dynamic licenseFile, + String? reviewerRole, + String? reviewerFullname, + String? reviewerMobile, + String? checkerMessage, + bool? finalAccept, + bool? temporaryRegistration, + String? createdBy, + String? modifiedBy, + dynamic userBankInfo, int? wallet, List? cars, - List? user_level, + List? userLevel, }) = _Steward; factory Steward.fromJson(Map json) => @@ -168,10 +155,10 @@ abstract class Steward with _$Steward { abstract class User with _$User { factory User({ String? fullname, - String? first_name, - String? last_name, + String? firstName, + String? lastName, String? mobile, - String? national_id, + String? nationalId, String? city, }) = _User; @@ -185,7 +172,7 @@ abstract class Address with _$Address { Province? province, Province? city, String? address, - String? postal_code, + String? postalCode, }) = _Address; factory Address.fromJson(Map json) => @@ -217,11 +204,11 @@ abstract class Activity with _$Activity { @freezed abstract class PosStatus with _$PosStatus { factory PosStatus({ - int? len_active_sessions, - bool? has_pons, - bool? has_active_pons, + int? lenActiveSessions, + bool? hasPons, + bool? hasActivePons, }) = _PosStatus; factory PosStatus.fromJson(Map json) => _$PosStatusFromJson(json); -} +} \ No newline at end of file diff --git a/packages/chicken/lib/data/models/response/allocated_made/allocated_made.freezed.dart b/packages/chicken/lib/data/models/response/allocated_made/allocated_made.freezed.dart index 72b6981..2a19a6d 100644 --- a/packages/chicken/lib/data/models/response/allocated_made/allocated_made.freezed.dart +++ b/packages/chicken/lib/data/models/response/allocated_made/allocated_made.freezed.dart @@ -16,7 +16,7 @@ T _$identity(T value) => value; /// @nodoc mixin _$AllocatedMadeModel { - int? get count; String? get next; String? get previous; List? get results; + int? get id; Product? get product; dynamic get killHouse; dynamic get toKillHouse; Steward? get steward; dynamic get toSteward; dynamic get guilds; Steward? 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; int? get weightOfCarcasses; int? get realWeightOfCarcasses; int? get receiverRealWeightOfCarcasses; int? 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; String? get loggedRegistrationCode; String? get state; String? get receiverState; String? get allocationState; String? get date; String? get role; String? get stewardTempKey; bool? get approvedPriceStatus; bool? get calculateStatus; bool? get temporaryTrash; bool? get temporaryDeleted; String? get createdBy; String? get modifiedBy; dynamic get wareHouse; dynamic get stewardWareHouse; dynamic get car; dynamic get dispenser; /// Create a copy of AllocatedMadeModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @@ -29,16 +29,16 @@ $AllocatedMadeModelCopyWith get copyWith => _$AllocatedMadeM @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is AllocatedMadeModel&&(identical(other.count, count) || other.count == count)&&(identical(other.next, next) || other.next == next)&&(identical(other.previous, previous) || other.previous == previous)&&const DeepCollectionEquality().equals(other.results, results)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is AllocatedMadeModel&&(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)&&const DeepCollectionEquality().equals(other.toSteward, toSteward)&&const DeepCollectionEquality().equals(other.guilds, guilds)&&(identical(other.toGuilds, toGuilds) || 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)&&(identical(other.loggedRegistrationCode, loggedRegistrationCode) || 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)&&(identical(other.role, role) || other.role == role)&&(identical(other.stewardTempKey, stewardTempKey) || 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.createdBy, createdBy) || other.createdBy == createdBy)&&(identical(other.modifiedBy, modifiedBy) || 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,const DeepCollectionEquality().hash(toSteward),const DeepCollectionEquality().hash(guilds),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,loggedRegistrationCode,state,receiverState,allocationState,date,role,stewardTempKey,approvedPriceStatus,calculateStatus,temporaryTrash,temporaryDeleted,createdBy,modifiedBy,const DeepCollectionEquality().hash(wareHouse),const DeepCollectionEquality().hash(stewardWareHouse),const DeepCollectionEquality().hash(car),const DeepCollectionEquality().hash(dispenser)]); @override String toString() { - return 'AllocatedMadeModel(count: $count, next: $next, previous: $previous, results: $results)'; + return 'AllocatedMadeModel(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)'; } @@ -49,11 +49,11 @@ abstract mixin class $AllocatedMadeModelCopyWith<$Res> { factory $AllocatedMadeModelCopyWith(AllocatedMadeModel value, $Res Function(AllocatedMadeModel) _then) = _$AllocatedMadeModelCopyWithImpl; @useResult $Res call({ - int? count, String? next, String? previous, List? results + int? id, Product? product, dynamic killHouse, dynamic toKillHouse, Steward? steward, dynamic toSteward, dynamic guilds, Steward? 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, int? weightOfCarcasses, int? realWeightOfCarcasses, int? receiverRealWeightOfCarcasses, int? 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, String? loggedRegistrationCode, String? state, String? receiverState, String? allocationState, String? date, String? role, String? stewardTempKey, bool? approvedPriceStatus, bool? calculateStatus, bool? temporaryTrash, bool? temporaryDeleted, String? createdBy, String? modifiedBy, dynamic wareHouse, dynamic stewardWareHouse, dynamic car, dynamic dispenser }); - +$ProductCopyWith<$Res>? get product;$StewardCopyWith<$Res>? get steward;$StewardCopyWith<$Res>? get toGuilds; } /// @nodoc @@ -66,16 +66,103 @@ class _$AllocatedMadeModelCopyWithImpl<$Res> /// Create a copy of AllocatedMadeModel /// with the given fields replaced by the non-null parameter values. -@pragma('vm:prefer-inline') @override $Res call({Object? count = freezed,Object? next = freezed,Object? previous = freezed,Object? results = freezed,}) { +@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? product = freezed,Object? killHouse = freezed,Object? toKillHouse = freezed,Object? steward = freezed,Object? toSteward = freezed,Object? guilds = freezed,Object? toGuilds = freezed,Object? toColdHouse = freezed,Object? indexWeight = freezed,Object? dateTimestamp = freezed,Object? newState = freezed,Object? newReceiverState = freezed,Object? newAllocationState = freezed,Object? key = freezed,Object? createDate = freezed,Object? modifyDate = freezed,Object? trash = freezed,Object? numberOfCarcasses = freezed,Object? realNumberOfCarcasses = freezed,Object? receiverRealNumberOfCarcasses = freezed,Object? weightOfCarcasses = freezed,Object? realWeightOfCarcasses = freezed,Object? receiverRealWeightOfCarcasses = freezed,Object? weightLossOfCarcasses = freezed,Object? finalRegistration = freezed,Object? sellType = freezed,Object? productName = freezed,Object? sellerType = freezed,Object? type = freezed,Object? saleType = freezed,Object? allocationType = freezed,Object? systemRegistrationCode = freezed,Object? registrationCode = freezed,Object? amount = freezed,Object? totalAmount = freezed,Object? totalAmountPaid = freezed,Object? totalAmountRemain = freezed,Object? loggedRegistrationCode = freezed,Object? state = freezed,Object? receiverState = freezed,Object? allocationState = freezed,Object? date = freezed,Object? role = freezed,Object? stewardTempKey = freezed,Object? approvedPriceStatus = freezed,Object? calculateStatus = freezed,Object? temporaryTrash = freezed,Object? temporaryDeleted = freezed,Object? createdBy = freezed,Object? modifiedBy = freezed,Object? wareHouse = freezed,Object? stewardWareHouse = freezed,Object? car = freezed,Object? dispenser = freezed,}) { return _then(_self.copyWith( -count: freezed == count ? _self.count : count // ignore: cast_nullable_to_non_nullable -as int?,next: freezed == next ? _self.next : next // ignore: cast_nullable_to_non_nullable -as String?,previous: freezed == previous ? _self.previous : previous // ignore: cast_nullable_to_non_nullable -as String?,results: freezed == results ? _self.results : results // ignore: cast_nullable_to_non_nullable -as List?, +id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable +as int?,product: freezed == product ? _self.product : product // ignore: cast_nullable_to_non_nullable +as Product?,killHouse: freezed == killHouse ? _self.killHouse : killHouse // ignore: cast_nullable_to_non_nullable +as 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 Steward?,toSteward: freezed == toSteward ? _self.toSteward : toSteward // ignore: cast_nullable_to_non_nullable +as dynamic,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 Steward?,toColdHouse: freezed == toColdHouse ? _self.toColdHouse : toColdHouse // ignore: cast_nullable_to_non_nullable +as dynamic,indexWeight: freezed == indexWeight ? _self.indexWeight : indexWeight // ignore: cast_nullable_to_non_nullable +as int?,dateTimestamp: freezed == dateTimestamp ? _self.dateTimestamp : dateTimestamp // ignore: cast_nullable_to_non_nullable +as int?,newState: freezed == newState ? _self.newState : newState // ignore: cast_nullable_to_non_nullable +as int?,newReceiverState: freezed == newReceiverState ? _self.newReceiverState : newReceiverState // ignore: cast_nullable_to_non_nullable +as int?,newAllocationState: freezed == newAllocationState ? _self.newAllocationState : newAllocationState // ignore: cast_nullable_to_non_nullable +as int?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,createDate: freezed == createDate ? _self.createDate : createDate // ignore: cast_nullable_to_non_nullable +as String?,modifyDate: freezed == modifyDate ? _self.modifyDate : modifyDate // ignore: cast_nullable_to_non_nullable +as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable +as bool?,numberOfCarcasses: freezed == numberOfCarcasses ? _self.numberOfCarcasses : numberOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?,realNumberOfCarcasses: freezed == realNumberOfCarcasses ? _self.realNumberOfCarcasses : realNumberOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?,receiverRealNumberOfCarcasses: freezed == receiverRealNumberOfCarcasses ? _self.receiverRealNumberOfCarcasses : receiverRealNumberOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?,weightOfCarcasses: freezed == weightOfCarcasses ? _self.weightOfCarcasses : weightOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?,realWeightOfCarcasses: freezed == realWeightOfCarcasses ? _self.realWeightOfCarcasses : realWeightOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?,receiverRealWeightOfCarcasses: freezed == receiverRealWeightOfCarcasses ? _self.receiverRealWeightOfCarcasses : receiverRealWeightOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?,weightLossOfCarcasses: freezed == weightLossOfCarcasses ? _self.weightLossOfCarcasses : weightLossOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?,finalRegistration: freezed == finalRegistration ? _self.finalRegistration : finalRegistration // ignore: cast_nullable_to_non_nullable +as bool?,sellType: freezed == sellType ? _self.sellType : sellType // ignore: cast_nullable_to_non_nullable +as String?,productName: freezed == productName ? _self.productName : productName // ignore: cast_nullable_to_non_nullable +as String?,sellerType: freezed == sellerType ? _self.sellerType : sellerType // ignore: cast_nullable_to_non_nullable +as String?,type: freezed == type ? _self.type : type // ignore: cast_nullable_to_non_nullable +as String?,saleType: freezed == saleType ? _self.saleType : saleType // ignore: cast_nullable_to_non_nullable +as String?,allocationType: freezed == allocationType ? _self.allocationType : allocationType // ignore: cast_nullable_to_non_nullable +as String?,systemRegistrationCode: freezed == systemRegistrationCode ? _self.systemRegistrationCode : systemRegistrationCode // ignore: cast_nullable_to_non_nullable +as bool?,registrationCode: freezed == registrationCode ? _self.registrationCode : registrationCode // ignore: cast_nullable_to_non_nullable +as int?,amount: freezed == amount ? _self.amount : amount // ignore: cast_nullable_to_non_nullable +as int?,totalAmount: freezed == totalAmount ? _self.totalAmount : totalAmount // ignore: cast_nullable_to_non_nullable +as int?,totalAmountPaid: freezed == totalAmountPaid ? _self.totalAmountPaid : totalAmountPaid // ignore: cast_nullable_to_non_nullable +as int?,totalAmountRemain: freezed == totalAmountRemain ? _self.totalAmountRemain : totalAmountRemain // ignore: cast_nullable_to_non_nullable +as int?,loggedRegistrationCode: freezed == loggedRegistrationCode ? _self.loggedRegistrationCode : loggedRegistrationCode // ignore: cast_nullable_to_non_nullable +as String?,state: freezed == state ? _self.state : state // ignore: cast_nullable_to_non_nullable +as String?,receiverState: freezed == receiverState ? _self.receiverState : receiverState // ignore: cast_nullable_to_non_nullable +as String?,allocationState: freezed == allocationState ? _self.allocationState : allocationState // ignore: cast_nullable_to_non_nullable +as String?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?,role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable +as String?,stewardTempKey: freezed == stewardTempKey ? _self.stewardTempKey : stewardTempKey // ignore: cast_nullable_to_non_nullable +as String?,approvedPriceStatus: freezed == approvedPriceStatus ? _self.approvedPriceStatus : approvedPriceStatus // ignore: cast_nullable_to_non_nullable +as bool?,calculateStatus: freezed == calculateStatus ? _self.calculateStatus : calculateStatus // ignore: cast_nullable_to_non_nullable +as bool?,temporaryTrash: freezed == temporaryTrash ? _self.temporaryTrash : temporaryTrash // ignore: cast_nullable_to_non_nullable +as bool?,temporaryDeleted: freezed == temporaryDeleted ? _self.temporaryDeleted : temporaryDeleted // ignore: cast_nullable_to_non_nullable +as bool?,createdBy: freezed == createdBy ? _self.createdBy : createdBy // ignore: cast_nullable_to_non_nullable +as String?,modifiedBy: freezed == modifiedBy ? _self.modifiedBy : modifiedBy // ignore: cast_nullable_to_non_nullable +as String?,wareHouse: freezed == wareHouse ? _self.wareHouse : wareHouse // ignore: cast_nullable_to_non_nullable +as dynamic,stewardWareHouse: freezed == stewardWareHouse ? _self.stewardWareHouse : stewardWareHouse // ignore: cast_nullable_to_non_nullable +as dynamic,car: freezed == car ? _self.car : car // ignore: cast_nullable_to_non_nullable +as dynamic,dispenser: freezed == dispenser ? _self.dispenser : dispenser // ignore: cast_nullable_to_non_nullable +as dynamic, )); } +/// Create a copy of AllocatedMadeModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ProductCopyWith<$Res>? get product { + if (_self.product == null) { + return null; + } + return $ProductCopyWith<$Res>(_self.product!, (value) { + return _then(_self.copyWith(product: value)); + }); +}/// Create a copy of AllocatedMadeModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$StewardCopyWith<$Res>? get steward { + if (_self.steward == null) { + return null; + } + + return $StewardCopyWith<$Res>(_self.steward!, (value) { + return _then(_self.copyWith(steward: value)); + }); +}/// Create a copy of AllocatedMadeModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$StewardCopyWith<$Res>? get toGuilds { + if (_self.toGuilds == null) { + return null; + } + + return $StewardCopyWith<$Res>(_self.toGuilds!, (value) { + return _then(_self.copyWith(toGuilds: value)); + }); +} } @@ -83,21 +170,64 @@ as List?, @JsonSerializable() class _AllocatedMadeModel implements AllocatedMadeModel { - _AllocatedMadeModel({this.count, this.next, this.previous, final List? results}): _results = results; + _AllocatedMadeModel({this.id, this.product, this.killHouse, this.toKillHouse, this.steward, this.toSteward, this.guilds, this.toGuilds, this.toColdHouse, this.indexWeight, this.dateTimestamp, this.newState, this.newReceiverState, this.newAllocationState, this.key, this.createDate, this.modifyDate, this.trash, this.numberOfCarcasses, this.realNumberOfCarcasses, this.receiverRealNumberOfCarcasses, this.weightOfCarcasses, this.realWeightOfCarcasses, this.receiverRealWeightOfCarcasses, this.weightLossOfCarcasses, this.finalRegistration, this.sellType, this.productName, this.sellerType, this.type, this.saleType, this.allocationType, this.systemRegistrationCode, this.registrationCode, this.amount, this.totalAmount, this.totalAmountPaid, this.totalAmountRemain, this.loggedRegistrationCode, this.state, this.receiverState, this.allocationState, this.date, this.role, this.stewardTempKey, this.approvedPriceStatus, this.calculateStatus, this.temporaryTrash, this.temporaryDeleted, this.createdBy, this.modifiedBy, this.wareHouse, this.stewardWareHouse, this.car, this.dispenser}); factory _AllocatedMadeModel.fromJson(Map json) => _$AllocatedMadeModelFromJson(json); -@override final int? count; -@override final String? next; -@override final String? previous; - final List? _results; -@override List? get results { - final value = _results; - if (value == null) return null; - if (_results is EqualUnmodifiableListView) return _results; - // ignore: implicit_dynamic_type - return EqualUnmodifiableListView(value); -} - +@override final int? id; +@override final Product? product; +@override final dynamic killHouse; +@override final dynamic toKillHouse; +@override final Steward? steward; +@override final dynamic toSteward; +@override final dynamic guilds; +@override final Steward? toGuilds; +@override final dynamic toColdHouse; +@override final int? indexWeight; +@override final int? dateTimestamp; +@override final int? newState; +@override final int? newReceiverState; +@override final int? newAllocationState; +@override final String? key; +@override final String? createDate; +@override final String? modifyDate; +@override final bool? trash; +@override final int? numberOfCarcasses; +@override final int? realNumberOfCarcasses; +@override final int? receiverRealNumberOfCarcasses; +@override final int? weightOfCarcasses; +@override final int? realWeightOfCarcasses; +@override final int? receiverRealWeightOfCarcasses; +@override final int? weightLossOfCarcasses; +@override final bool? finalRegistration; +@override final String? sellType; +@override final String? productName; +@override final String? sellerType; +@override final String? type; +@override final String? saleType; +@override final String? allocationType; +@override final bool? systemRegistrationCode; +@override final int? registrationCode; +@override final int? amount; +@override final int? totalAmount; +@override final int? totalAmountPaid; +@override final int? totalAmountRemain; +@override final String? loggedRegistrationCode; +@override final String? state; +@override final String? receiverState; +@override final String? allocationState; +@override final String? date; +@override final String? role; +@override final String? stewardTempKey; +@override final bool? approvedPriceStatus; +@override final bool? calculateStatus; +@override final bool? temporaryTrash; +@override final bool? temporaryDeleted; +@override final String? createdBy; +@override final String? modifiedBy; +@override final dynamic wareHouse; +@override final dynamic stewardWareHouse; +@override final dynamic car; +@override final dynamic dispenser; /// Create a copy of AllocatedMadeModel /// with the given fields replaced by the non-null parameter values. @@ -112,16 +242,16 @@ Map toJson() { @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is _AllocatedMadeModel&&(identical(other.count, count) || other.count == count)&&(identical(other.next, next) || other.next == next)&&(identical(other.previous, previous) || other.previous == previous)&&const DeepCollectionEquality().equals(other._results, _results)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _AllocatedMadeModel&&(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)&&const DeepCollectionEquality().equals(other.toSteward, toSteward)&&const DeepCollectionEquality().equals(other.guilds, guilds)&&(identical(other.toGuilds, toGuilds) || 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)&&(identical(other.loggedRegistrationCode, loggedRegistrationCode) || 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)&&(identical(other.role, role) || other.role == role)&&(identical(other.stewardTempKey, stewardTempKey) || 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.createdBy, createdBy) || other.createdBy == createdBy)&&(identical(other.modifiedBy, modifiedBy) || 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,const DeepCollectionEquality().hash(toSteward),const DeepCollectionEquality().hash(guilds),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,loggedRegistrationCode,state,receiverState,allocationState,date,role,stewardTempKey,approvedPriceStatus,calculateStatus,temporaryTrash,temporaryDeleted,createdBy,modifiedBy,const DeepCollectionEquality().hash(wareHouse),const DeepCollectionEquality().hash(stewardWareHouse),const DeepCollectionEquality().hash(car),const DeepCollectionEquality().hash(dispenser)]); @override String toString() { - return 'AllocatedMadeModel(count: $count, next: $next, previous: $previous, results: $results)'; + return 'AllocatedMadeModel(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)'; } @@ -132,11 +262,11 @@ abstract mixin class _$AllocatedMadeModelCopyWith<$Res> implements $AllocatedMad factory _$AllocatedMadeModelCopyWith(_AllocatedMadeModel value, $Res Function(_AllocatedMadeModel) _then) = __$AllocatedMadeModelCopyWithImpl; @override @useResult $Res call({ - int? count, String? next, String? previous, List? results + int? id, Product? product, dynamic killHouse, dynamic toKillHouse, Steward? steward, dynamic toSteward, dynamic guilds, Steward? 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, int? weightOfCarcasses, int? realWeightOfCarcasses, int? receiverRealWeightOfCarcasses, int? 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, String? loggedRegistrationCode, String? state, String? receiverState, String? allocationState, String? date, String? role, String? stewardTempKey, bool? approvedPriceStatus, bool? calculateStatus, bool? temporaryTrash, bool? temporaryDeleted, String? createdBy, String? modifiedBy, dynamic wareHouse, dynamic stewardWareHouse, dynamic car, dynamic dispenser }); - +@override $ProductCopyWith<$Res>? get product;@override $StewardCopyWith<$Res>? get steward;@override $StewardCopyWith<$Res>? get toGuilds; } /// @nodoc @@ -149,134 +279,68 @@ class __$AllocatedMadeModelCopyWithImpl<$Res> /// Create a copy of AllocatedMadeModel /// with the given fields replaced by the non-null parameter values. -@override @pragma('vm:prefer-inline') $Res call({Object? count = freezed,Object? next = freezed,Object? previous = freezed,Object? results = freezed,}) { +@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(_AllocatedMadeModel( -count: freezed == count ? _self.count : count // ignore: cast_nullable_to_non_nullable -as int?,next: freezed == next ? _self.next : next // ignore: cast_nullable_to_non_nullable -as String?,previous: freezed == previous ? _self.previous : previous // ignore: cast_nullable_to_non_nullable -as String?,results: freezed == results ? _self._results : results // ignore: cast_nullable_to_non_nullable -as List?, - )); -} - - -} - - -/// @nodoc -mixin _$AllocatedMadeResult { - - int? get id; Product? get product; dynamic get kill_house; dynamic get to_kill_house; Steward? get steward; dynamic get to_steward; dynamic get guilds; Steward? get to_guilds; dynamic get to_cold_house; int? get index_weight; int? get date_timestamp; int? get new_state; int? get new_receiver_state; int? get new_allocation_state; String? get key; String? get create_date; String? get modify_date; bool? get trash; int? get number_of_carcasses; int? get real_number_of_carcasses; int? get receiver_real_number_of_carcasses; int? get weight_of_carcasses; int? get real_weight_of_carcasses; int? get receiver_real_weight_of_carcasses; int? get weight_loss_of_carcasses; bool? get final_registration; String? get sell_type; String? get product_name; String? get seller_type; String? get type; String? get sale_type; String? get allocation_type; bool? get system_registration_code; int? get registration_code; int? get amount; int? get total_amount; int? get total_amount_paid; int? get total_amount_remain; String? get logged_registration_code; String? get state; String? get receiver_state; String? get allocation_state; String? get date; String? get role; String? get steward_temp_key; bool? get approved_price_status; bool? get calculate_status; bool? get temporary_trash; bool? get temporary_deleted; String? get created_by; String? get modified_by; dynamic get ware_house; dynamic get steward_ware_house; dynamic get car; dynamic get dispenser; -/// Create a copy of AllocatedMadeResult -/// with the given fields replaced by the non-null parameter values. -@JsonKey(includeFromJson: false, includeToJson: false) -@pragma('vm:prefer-inline') -$AllocatedMadeResultCopyWith get copyWith => _$AllocatedMadeResultCopyWithImpl(this as AllocatedMadeResult, _$identity); - - /// Serializes this AllocatedMadeResult to a JSON map. - Map toJson(); - - -@override -bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is AllocatedMadeResult&&(identical(other.id, id) || other.id == id)&&(identical(other.product, product) || other.product == product)&&const DeepCollectionEquality().equals(other.kill_house, kill_house)&&const DeepCollectionEquality().equals(other.to_kill_house, to_kill_house)&&(identical(other.steward, steward) || other.steward == steward)&&const DeepCollectionEquality().equals(other.to_steward, to_steward)&&const DeepCollectionEquality().equals(other.guilds, guilds)&&(identical(other.to_guilds, to_guilds) || other.to_guilds == to_guilds)&&const DeepCollectionEquality().equals(other.to_cold_house, to_cold_house)&&(identical(other.index_weight, index_weight) || other.index_weight == index_weight)&&(identical(other.date_timestamp, date_timestamp) || other.date_timestamp == date_timestamp)&&(identical(other.new_state, new_state) || other.new_state == new_state)&&(identical(other.new_receiver_state, new_receiver_state) || other.new_receiver_state == new_receiver_state)&&(identical(other.new_allocation_state, new_allocation_state) || other.new_allocation_state == new_allocation_state)&&(identical(other.key, key) || other.key == key)&&(identical(other.create_date, create_date) || other.create_date == create_date)&&(identical(other.modify_date, modify_date) || other.modify_date == modify_date)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.number_of_carcasses, number_of_carcasses) || other.number_of_carcasses == number_of_carcasses)&&(identical(other.real_number_of_carcasses, real_number_of_carcasses) || other.real_number_of_carcasses == real_number_of_carcasses)&&(identical(other.receiver_real_number_of_carcasses, receiver_real_number_of_carcasses) || other.receiver_real_number_of_carcasses == receiver_real_number_of_carcasses)&&(identical(other.weight_of_carcasses, weight_of_carcasses) || other.weight_of_carcasses == weight_of_carcasses)&&(identical(other.real_weight_of_carcasses, real_weight_of_carcasses) || other.real_weight_of_carcasses == real_weight_of_carcasses)&&(identical(other.receiver_real_weight_of_carcasses, receiver_real_weight_of_carcasses) || other.receiver_real_weight_of_carcasses == receiver_real_weight_of_carcasses)&&(identical(other.weight_loss_of_carcasses, weight_loss_of_carcasses) || other.weight_loss_of_carcasses == weight_loss_of_carcasses)&&(identical(other.final_registration, final_registration) || other.final_registration == final_registration)&&(identical(other.sell_type, sell_type) || other.sell_type == sell_type)&&(identical(other.product_name, product_name) || other.product_name == product_name)&&(identical(other.seller_type, seller_type) || other.seller_type == seller_type)&&(identical(other.type, type) || other.type == type)&&(identical(other.sale_type, sale_type) || other.sale_type == sale_type)&&(identical(other.allocation_type, allocation_type) || other.allocation_type == allocation_type)&&(identical(other.system_registration_code, system_registration_code) || other.system_registration_code == system_registration_code)&&(identical(other.registration_code, registration_code) || other.registration_code == registration_code)&&(identical(other.amount, amount) || other.amount == amount)&&(identical(other.total_amount, total_amount) || other.total_amount == total_amount)&&(identical(other.total_amount_paid, total_amount_paid) || other.total_amount_paid == total_amount_paid)&&(identical(other.total_amount_remain, total_amount_remain) || other.total_amount_remain == total_amount_remain)&&(identical(other.logged_registration_code, logged_registration_code) || other.logged_registration_code == logged_registration_code)&&(identical(other.state, state) || other.state == state)&&(identical(other.receiver_state, receiver_state) || other.receiver_state == receiver_state)&&(identical(other.allocation_state, allocation_state) || other.allocation_state == allocation_state)&&(identical(other.date, date) || other.date == date)&&(identical(other.role, role) || other.role == role)&&(identical(other.steward_temp_key, steward_temp_key) || other.steward_temp_key == steward_temp_key)&&(identical(other.approved_price_status, approved_price_status) || other.approved_price_status == approved_price_status)&&(identical(other.calculate_status, calculate_status) || other.calculate_status == calculate_status)&&(identical(other.temporary_trash, temporary_trash) || other.temporary_trash == temporary_trash)&&(identical(other.temporary_deleted, temporary_deleted) || other.temporary_deleted == temporary_deleted)&&(identical(other.created_by, created_by) || other.created_by == created_by)&&(identical(other.modified_by, modified_by) || other.modified_by == modified_by)&&const DeepCollectionEquality().equals(other.ware_house, ware_house)&&const DeepCollectionEquality().equals(other.steward_ware_house, steward_ware_house)&&const DeepCollectionEquality().equals(other.car, car)&&const DeepCollectionEquality().equals(other.dispenser, dispenser)); -} - -@JsonKey(includeFromJson: false, includeToJson: false) -@override -int get hashCode => Object.hashAll([runtimeType,id,product,const DeepCollectionEquality().hash(kill_house),const DeepCollectionEquality().hash(to_kill_house),steward,const DeepCollectionEquality().hash(to_steward),const DeepCollectionEquality().hash(guilds),to_guilds,const DeepCollectionEquality().hash(to_cold_house),index_weight,date_timestamp,new_state,new_receiver_state,new_allocation_state,key,create_date,modify_date,trash,number_of_carcasses,real_number_of_carcasses,receiver_real_number_of_carcasses,weight_of_carcasses,real_weight_of_carcasses,receiver_real_weight_of_carcasses,weight_loss_of_carcasses,final_registration,sell_type,product_name,seller_type,type,sale_type,allocation_type,system_registration_code,registration_code,amount,total_amount,total_amount_paid,total_amount_remain,logged_registration_code,state,receiver_state,allocation_state,date,role,steward_temp_key,approved_price_status,calculate_status,temporary_trash,temporary_deleted,created_by,modified_by,const DeepCollectionEquality().hash(ware_house),const DeepCollectionEquality().hash(steward_ware_house),const DeepCollectionEquality().hash(car),const DeepCollectionEquality().hash(dispenser)]); - -@override -String toString() { - return 'AllocatedMadeResult(id: $id, product: $product, kill_house: $kill_house, to_kill_house: $to_kill_house, steward: $steward, to_steward: $to_steward, guilds: $guilds, to_guilds: $to_guilds, to_cold_house: $to_cold_house, index_weight: $index_weight, date_timestamp: $date_timestamp, new_state: $new_state, new_receiver_state: $new_receiver_state, new_allocation_state: $new_allocation_state, key: $key, create_date: $create_date, modify_date: $modify_date, trash: $trash, number_of_carcasses: $number_of_carcasses, real_number_of_carcasses: $real_number_of_carcasses, receiver_real_number_of_carcasses: $receiver_real_number_of_carcasses, weight_of_carcasses: $weight_of_carcasses, real_weight_of_carcasses: $real_weight_of_carcasses, receiver_real_weight_of_carcasses: $receiver_real_weight_of_carcasses, weight_loss_of_carcasses: $weight_loss_of_carcasses, final_registration: $final_registration, sell_type: $sell_type, product_name: $product_name, seller_type: $seller_type, type: $type, sale_type: $sale_type, allocation_type: $allocation_type, system_registration_code: $system_registration_code, registration_code: $registration_code, amount: $amount, total_amount: $total_amount, total_amount_paid: $total_amount_paid, total_amount_remain: $total_amount_remain, logged_registration_code: $logged_registration_code, state: $state, receiver_state: $receiver_state, allocation_state: $allocation_state, date: $date, role: $role, steward_temp_key: $steward_temp_key, approved_price_status: $approved_price_status, calculate_status: $calculate_status, temporary_trash: $temporary_trash, temporary_deleted: $temporary_deleted, created_by: $created_by, modified_by: $modified_by, ware_house: $ware_house, steward_ware_house: $steward_ware_house, car: $car, dispenser: $dispenser)'; -} - - -} - -/// @nodoc -abstract mixin class $AllocatedMadeResultCopyWith<$Res> { - factory $AllocatedMadeResultCopyWith(AllocatedMadeResult value, $Res Function(AllocatedMadeResult) _then) = _$AllocatedMadeResultCopyWithImpl; -@useResult -$Res call({ - int? id, Product? product, dynamic kill_house, dynamic to_kill_house, Steward? steward, dynamic to_steward, dynamic guilds, Steward? to_guilds, dynamic to_cold_house, int? index_weight, int? date_timestamp, int? new_state, int? new_receiver_state, int? new_allocation_state, String? key, String? create_date, String? modify_date, bool? trash, int? number_of_carcasses, int? real_number_of_carcasses, int? receiver_real_number_of_carcasses, int? weight_of_carcasses, int? real_weight_of_carcasses, int? receiver_real_weight_of_carcasses, int? weight_loss_of_carcasses, bool? final_registration, String? sell_type, String? product_name, String? seller_type, String? type, String? sale_type, String? allocation_type, bool? system_registration_code, int? registration_code, int? amount, int? total_amount, int? total_amount_paid, int? total_amount_remain, String? logged_registration_code, String? state, String? receiver_state, String? allocation_state, String? date, String? role, String? steward_temp_key, bool? approved_price_status, bool? calculate_status, bool? temporary_trash, bool? temporary_deleted, String? created_by, String? modified_by, dynamic ware_house, dynamic steward_ware_house, dynamic car, dynamic dispenser -}); - - -$ProductCopyWith<$Res>? get product;$StewardCopyWith<$Res>? get steward;$StewardCopyWith<$Res>? get to_guilds; - -} -/// @nodoc -class _$AllocatedMadeResultCopyWithImpl<$Res> - implements $AllocatedMadeResultCopyWith<$Res> { - _$AllocatedMadeResultCopyWithImpl(this._self, this._then); - - final AllocatedMadeResult _self; - final $Res Function(AllocatedMadeResult) _then; - -/// Create a copy of AllocatedMadeResult -/// with the given fields replaced by the non-null parameter values. -@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? product = freezed,Object? kill_house = freezed,Object? to_kill_house = freezed,Object? steward = freezed,Object? to_steward = freezed,Object? guilds = freezed,Object? to_guilds = freezed,Object? to_cold_house = freezed,Object? index_weight = freezed,Object? date_timestamp = freezed,Object? new_state = freezed,Object? new_receiver_state = freezed,Object? new_allocation_state = freezed,Object? key = freezed,Object? create_date = freezed,Object? modify_date = freezed,Object? trash = freezed,Object? number_of_carcasses = freezed,Object? real_number_of_carcasses = freezed,Object? receiver_real_number_of_carcasses = freezed,Object? weight_of_carcasses = freezed,Object? real_weight_of_carcasses = freezed,Object? receiver_real_weight_of_carcasses = freezed,Object? weight_loss_of_carcasses = freezed,Object? final_registration = freezed,Object? sell_type = freezed,Object? product_name = freezed,Object? seller_type = freezed,Object? type = freezed,Object? sale_type = freezed,Object? allocation_type = freezed,Object? system_registration_code = freezed,Object? registration_code = freezed,Object? amount = freezed,Object? total_amount = freezed,Object? total_amount_paid = freezed,Object? total_amount_remain = freezed,Object? logged_registration_code = freezed,Object? state = freezed,Object? receiver_state = freezed,Object? allocation_state = freezed,Object? date = freezed,Object? role = freezed,Object? steward_temp_key = freezed,Object? approved_price_status = freezed,Object? calculate_status = freezed,Object? temporary_trash = freezed,Object? temporary_deleted = freezed,Object? created_by = freezed,Object? modified_by = freezed,Object? ware_house = freezed,Object? steward_ware_house = freezed,Object? car = freezed,Object? dispenser = freezed,}) { - return _then(_self.copyWith( id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as int?,product: freezed == product ? _self.product : product // ignore: cast_nullable_to_non_nullable -as Product?,kill_house: freezed == kill_house ? _self.kill_house : kill_house // ignore: cast_nullable_to_non_nullable -as dynamic,to_kill_house: freezed == to_kill_house ? _self.to_kill_house : to_kill_house // ignore: cast_nullable_to_non_nullable +as Product?,killHouse: freezed == killHouse ? _self.killHouse : killHouse // 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 Steward?,to_steward: freezed == to_steward ? _self.to_steward : to_steward // ignore: cast_nullable_to_non_nullable +as Steward?,toSteward: freezed == toSteward ? _self.toSteward : toSteward // ignore: cast_nullable_to_non_nullable as dynamic,guilds: freezed == guilds ? _self.guilds : guilds // ignore: cast_nullable_to_non_nullable -as dynamic,to_guilds: freezed == to_guilds ? _self.to_guilds : to_guilds // ignore: cast_nullable_to_non_nullable -as Steward?,to_cold_house: freezed == to_cold_house ? _self.to_cold_house : to_cold_house // ignore: cast_nullable_to_non_nullable -as dynamic,index_weight: freezed == index_weight ? _self.index_weight : index_weight // ignore: cast_nullable_to_non_nullable -as int?,date_timestamp: freezed == date_timestamp ? _self.date_timestamp : date_timestamp // ignore: cast_nullable_to_non_nullable -as int?,new_state: freezed == new_state ? _self.new_state : new_state // ignore: cast_nullable_to_non_nullable -as int?,new_receiver_state: freezed == new_receiver_state ? _self.new_receiver_state : new_receiver_state // ignore: cast_nullable_to_non_nullable -as int?,new_allocation_state: freezed == new_allocation_state ? _self.new_allocation_state : new_allocation_state // ignore: cast_nullable_to_non_nullable +as dynamic,toGuilds: freezed == toGuilds ? _self.toGuilds : toGuilds // ignore: cast_nullable_to_non_nullable +as Steward?,toColdHouse: freezed == toColdHouse ? _self.toColdHouse : toColdHouse // ignore: cast_nullable_to_non_nullable +as dynamic,indexWeight: freezed == indexWeight ? _self.indexWeight : indexWeight // ignore: cast_nullable_to_non_nullable +as int?,dateTimestamp: freezed == dateTimestamp ? _self.dateTimestamp : dateTimestamp // ignore: cast_nullable_to_non_nullable +as int?,newState: freezed == newState ? _self.newState : newState // ignore: cast_nullable_to_non_nullable +as int?,newReceiverState: freezed == newReceiverState ? _self.newReceiverState : newReceiverState // ignore: cast_nullable_to_non_nullable +as int?,newAllocationState: freezed == newAllocationState ? _self.newAllocationState : newAllocationState // ignore: cast_nullable_to_non_nullable as int?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable -as String?,create_date: freezed == create_date ? _self.create_date : create_date // ignore: cast_nullable_to_non_nullable -as String?,modify_date: freezed == modify_date ? _self.modify_date : modify_date // ignore: cast_nullable_to_non_nullable +as String?,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?,number_of_carcasses: freezed == number_of_carcasses ? _self.number_of_carcasses : number_of_carcasses // ignore: cast_nullable_to_non_nullable -as int?,real_number_of_carcasses: freezed == real_number_of_carcasses ? _self.real_number_of_carcasses : real_number_of_carcasses // ignore: cast_nullable_to_non_nullable -as int?,receiver_real_number_of_carcasses: freezed == receiver_real_number_of_carcasses ? _self.receiver_real_number_of_carcasses : receiver_real_number_of_carcasses // ignore: cast_nullable_to_non_nullable -as int?,weight_of_carcasses: freezed == weight_of_carcasses ? _self.weight_of_carcasses : weight_of_carcasses // ignore: cast_nullable_to_non_nullable -as int?,real_weight_of_carcasses: freezed == real_weight_of_carcasses ? _self.real_weight_of_carcasses : real_weight_of_carcasses // ignore: cast_nullable_to_non_nullable -as int?,receiver_real_weight_of_carcasses: freezed == receiver_real_weight_of_carcasses ? _self.receiver_real_weight_of_carcasses : receiver_real_weight_of_carcasses // ignore: cast_nullable_to_non_nullable -as int?,weight_loss_of_carcasses: freezed == weight_loss_of_carcasses ? _self.weight_loss_of_carcasses : weight_loss_of_carcasses // ignore: cast_nullable_to_non_nullable -as int?,final_registration: freezed == final_registration ? _self.final_registration : final_registration // ignore: cast_nullable_to_non_nullable -as bool?,sell_type: freezed == sell_type ? _self.sell_type : sell_type // ignore: cast_nullable_to_non_nullable -as String?,product_name: freezed == product_name ? _self.product_name : product_name // ignore: cast_nullable_to_non_nullable -as String?,seller_type: freezed == seller_type ? _self.seller_type : seller_type // ignore: cast_nullable_to_non_nullable +as bool?,numberOfCarcasses: freezed == numberOfCarcasses ? _self.numberOfCarcasses : numberOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?,realNumberOfCarcasses: freezed == realNumberOfCarcasses ? _self.realNumberOfCarcasses : realNumberOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?,receiverRealNumberOfCarcasses: freezed == receiverRealNumberOfCarcasses ? _self.receiverRealNumberOfCarcasses : receiverRealNumberOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?,weightOfCarcasses: freezed == weightOfCarcasses ? _self.weightOfCarcasses : weightOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?,realWeightOfCarcasses: freezed == realWeightOfCarcasses ? _self.realWeightOfCarcasses : realWeightOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?,receiverRealWeightOfCarcasses: freezed == receiverRealWeightOfCarcasses ? _self.receiverRealWeightOfCarcasses : receiverRealWeightOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?,weightLossOfCarcasses: freezed == weightLossOfCarcasses ? _self.weightLossOfCarcasses : weightLossOfCarcasses // ignore: cast_nullable_to_non_nullable +as int?,finalRegistration: freezed == finalRegistration ? _self.finalRegistration : finalRegistration // ignore: cast_nullable_to_non_nullable +as bool?,sellType: freezed == sellType ? _self.sellType : sellType // ignore: cast_nullable_to_non_nullable +as String?,productName: freezed == productName ? _self.productName : productName // ignore: cast_nullable_to_non_nullable +as String?,sellerType: freezed == sellerType ? _self.sellerType : sellerType // ignore: cast_nullable_to_non_nullable as String?,type: freezed == type ? _self.type : type // ignore: cast_nullable_to_non_nullable -as String?,sale_type: freezed == sale_type ? _self.sale_type : sale_type // ignore: cast_nullable_to_non_nullable -as String?,allocation_type: freezed == allocation_type ? _self.allocation_type : allocation_type // ignore: cast_nullable_to_non_nullable -as String?,system_registration_code: freezed == system_registration_code ? _self.system_registration_code : system_registration_code // ignore: cast_nullable_to_non_nullable -as bool?,registration_code: freezed == registration_code ? _self.registration_code : registration_code // ignore: cast_nullable_to_non_nullable +as String?,saleType: freezed == saleType ? _self.saleType : saleType // ignore: cast_nullable_to_non_nullable +as String?,allocationType: freezed == allocationType ? _self.allocationType : allocationType // ignore: cast_nullable_to_non_nullable +as String?,systemRegistrationCode: freezed == systemRegistrationCode ? _self.systemRegistrationCode : systemRegistrationCode // ignore: cast_nullable_to_non_nullable +as bool?,registrationCode: freezed == registrationCode ? _self.registrationCode : registrationCode // ignore: cast_nullable_to_non_nullable as int?,amount: freezed == amount ? _self.amount : amount // ignore: cast_nullable_to_non_nullable -as int?,total_amount: freezed == total_amount ? _self.total_amount : total_amount // ignore: cast_nullable_to_non_nullable -as int?,total_amount_paid: freezed == total_amount_paid ? _self.total_amount_paid : total_amount_paid // ignore: cast_nullable_to_non_nullable -as int?,total_amount_remain: freezed == total_amount_remain ? _self.total_amount_remain : total_amount_remain // ignore: cast_nullable_to_non_nullable -as int?,logged_registration_code: freezed == logged_registration_code ? _self.logged_registration_code : logged_registration_code // ignore: cast_nullable_to_non_nullable +as int?,totalAmount: freezed == totalAmount ? _self.totalAmount : totalAmount // ignore: cast_nullable_to_non_nullable +as int?,totalAmountPaid: freezed == totalAmountPaid ? _self.totalAmountPaid : totalAmountPaid // ignore: cast_nullable_to_non_nullable +as int?,totalAmountRemain: freezed == totalAmountRemain ? _self.totalAmountRemain : totalAmountRemain // ignore: cast_nullable_to_non_nullable +as int?,loggedRegistrationCode: freezed == loggedRegistrationCode ? _self.loggedRegistrationCode : loggedRegistrationCode // ignore: cast_nullable_to_non_nullable as String?,state: freezed == state ? _self.state : state // ignore: cast_nullable_to_non_nullable -as String?,receiver_state: freezed == receiver_state ? _self.receiver_state : receiver_state // ignore: cast_nullable_to_non_nullable -as String?,allocation_state: freezed == allocation_state ? _self.allocation_state : allocation_state // ignore: cast_nullable_to_non_nullable +as String?,receiverState: freezed == receiverState ? _self.receiverState : receiverState // ignore: cast_nullable_to_non_nullable +as String?,allocationState: freezed == allocationState ? _self.allocationState : allocationState // ignore: cast_nullable_to_non_nullable as String?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable as String?,role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable -as String?,steward_temp_key: freezed == steward_temp_key ? _self.steward_temp_key : steward_temp_key // ignore: cast_nullable_to_non_nullable -as String?,approved_price_status: freezed == approved_price_status ? _self.approved_price_status : approved_price_status // ignore: cast_nullable_to_non_nullable -as bool?,calculate_status: freezed == calculate_status ? _self.calculate_status : calculate_status // ignore: cast_nullable_to_non_nullable -as bool?,temporary_trash: freezed == temporary_trash ? _self.temporary_trash : temporary_trash // ignore: cast_nullable_to_non_nullable -as bool?,temporary_deleted: freezed == temporary_deleted ? _self.temporary_deleted : temporary_deleted // ignore: cast_nullable_to_non_nullable -as bool?,created_by: freezed == created_by ? _self.created_by : created_by // ignore: cast_nullable_to_non_nullable -as String?,modified_by: freezed == modified_by ? _self.modified_by : modified_by // ignore: cast_nullable_to_non_nullable -as String?,ware_house: freezed == ware_house ? _self.ware_house : ware_house // ignore: cast_nullable_to_non_nullable -as dynamic,steward_ware_house: freezed == steward_ware_house ? _self.steward_ware_house : steward_ware_house // ignore: cast_nullable_to_non_nullable +as String?,stewardTempKey: freezed == stewardTempKey ? _self.stewardTempKey : stewardTempKey // ignore: cast_nullable_to_non_nullable +as String?,approvedPriceStatus: freezed == approvedPriceStatus ? _self.approvedPriceStatus : approvedPriceStatus // ignore: cast_nullable_to_non_nullable +as bool?,calculateStatus: freezed == calculateStatus ? _self.calculateStatus : calculateStatus // ignore: cast_nullable_to_non_nullable +as bool?,temporaryTrash: freezed == temporaryTrash ? _self.temporaryTrash : temporaryTrash // ignore: cast_nullable_to_non_nullable +as bool?,temporaryDeleted: freezed == temporaryDeleted ? _self.temporaryDeleted : temporaryDeleted // ignore: cast_nullable_to_non_nullable +as bool?,createdBy: freezed == createdBy ? _self.createdBy : createdBy // ignore: cast_nullable_to_non_nullable +as String?,modifiedBy: freezed == modifiedBy ? _self.modifiedBy : modifiedBy // ignore: cast_nullable_to_non_nullable +as String?,wareHouse: freezed == wareHouse ? _self.wareHouse : wareHouse // ignore: cast_nullable_to_non_nullable +as dynamic,stewardWareHouse: freezed == stewardWareHouse ? _self.stewardWareHouse : stewardWareHouse // ignore: cast_nullable_to_non_nullable as dynamic,car: freezed == car ? _self.car : car // ignore: cast_nullable_to_non_nullable as dynamic,dispenser: freezed == dispenser ? _self.dispenser : dispenser // ignore: cast_nullable_to_non_nullable as dynamic, )); } -/// Create a copy of AllocatedMadeResult + +/// Create a copy of AllocatedMadeModel /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') @@ -288,7 +352,7 @@ $ProductCopyWith<$Res>? get product { return $ProductCopyWith<$Res>(_self.product!, (value) { return _then(_self.copyWith(product: value)); }); -}/// Create a copy of AllocatedMadeResult +}/// Create a copy of AllocatedMadeModel /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') @@ -300,231 +364,17 @@ $StewardCopyWith<$Res>? get steward { return $StewardCopyWith<$Res>(_self.steward!, (value) { return _then(_self.copyWith(steward: value)); }); -}/// Create a copy of AllocatedMadeResult +}/// Create a copy of AllocatedMadeModel /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') -$StewardCopyWith<$Res>? get to_guilds { - if (_self.to_guilds == null) { +$StewardCopyWith<$Res>? get toGuilds { + if (_self.toGuilds == null) { return null; } - return $StewardCopyWith<$Res>(_self.to_guilds!, (value) { - return _then(_self.copyWith(to_guilds: value)); - }); -} -} - - -/// @nodoc -@JsonSerializable() - -class _AllocatedMadeResult implements AllocatedMadeResult { - _AllocatedMadeResult({this.id, this.product, this.kill_house, this.to_kill_house, this.steward, this.to_steward, this.guilds, this.to_guilds, this.to_cold_house, this.index_weight, this.date_timestamp, this.new_state, this.new_receiver_state, this.new_allocation_state, this.key, this.create_date, this.modify_date, this.trash, this.number_of_carcasses, this.real_number_of_carcasses, this.receiver_real_number_of_carcasses, this.weight_of_carcasses, this.real_weight_of_carcasses, this.receiver_real_weight_of_carcasses, this.weight_loss_of_carcasses, this.final_registration, this.sell_type, this.product_name, this.seller_type, this.type, this.sale_type, this.allocation_type, this.system_registration_code, this.registration_code, this.amount, this.total_amount, this.total_amount_paid, this.total_amount_remain, this.logged_registration_code, this.state, this.receiver_state, this.allocation_state, this.date, this.role, this.steward_temp_key, this.approved_price_status, this.calculate_status, this.temporary_trash, this.temporary_deleted, this.created_by, this.modified_by, this.ware_house, this.steward_ware_house, this.car, this.dispenser}); - factory _AllocatedMadeResult.fromJson(Map json) => _$AllocatedMadeResultFromJson(json); - -@override final int? id; -@override final Product? product; -@override final dynamic kill_house; -@override final dynamic to_kill_house; -@override final Steward? steward; -@override final dynamic to_steward; -@override final dynamic guilds; -@override final Steward? to_guilds; -@override final dynamic to_cold_house; -@override final int? index_weight; -@override final int? date_timestamp; -@override final int? new_state; -@override final int? new_receiver_state; -@override final int? new_allocation_state; -@override final String? key; -@override final String? create_date; -@override final String? modify_date; -@override final bool? trash; -@override final int? number_of_carcasses; -@override final int? real_number_of_carcasses; -@override final int? receiver_real_number_of_carcasses; -@override final int? weight_of_carcasses; -@override final int? real_weight_of_carcasses; -@override final int? receiver_real_weight_of_carcasses; -@override final int? weight_loss_of_carcasses; -@override final bool? final_registration; -@override final String? sell_type; -@override final String? product_name; -@override final String? seller_type; -@override final String? type; -@override final String? sale_type; -@override final String? allocation_type; -@override final bool? system_registration_code; -@override final int? registration_code; -@override final int? amount; -@override final int? total_amount; -@override final int? total_amount_paid; -@override final int? total_amount_remain; -@override final String? logged_registration_code; -@override final String? state; -@override final String? receiver_state; -@override final String? allocation_state; -@override final String? date; -@override final String? role; -@override final String? steward_temp_key; -@override final bool? approved_price_status; -@override final bool? calculate_status; -@override final bool? temporary_trash; -@override final bool? temporary_deleted; -@override final String? created_by; -@override final String? modified_by; -@override final dynamic ware_house; -@override final dynamic steward_ware_house; -@override final dynamic car; -@override final dynamic dispenser; - -/// Create a copy of AllocatedMadeResult -/// with the given fields replaced by the non-null parameter values. -@override @JsonKey(includeFromJson: false, includeToJson: false) -@pragma('vm:prefer-inline') -_$AllocatedMadeResultCopyWith<_AllocatedMadeResult> get copyWith => __$AllocatedMadeResultCopyWithImpl<_AllocatedMadeResult>(this, _$identity); - -@override -Map toJson() { - return _$AllocatedMadeResultToJson(this, ); -} - -@override -bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is _AllocatedMadeResult&&(identical(other.id, id) || other.id == id)&&(identical(other.product, product) || other.product == product)&&const DeepCollectionEquality().equals(other.kill_house, kill_house)&&const DeepCollectionEquality().equals(other.to_kill_house, to_kill_house)&&(identical(other.steward, steward) || other.steward == steward)&&const DeepCollectionEquality().equals(other.to_steward, to_steward)&&const DeepCollectionEquality().equals(other.guilds, guilds)&&(identical(other.to_guilds, to_guilds) || other.to_guilds == to_guilds)&&const DeepCollectionEquality().equals(other.to_cold_house, to_cold_house)&&(identical(other.index_weight, index_weight) || other.index_weight == index_weight)&&(identical(other.date_timestamp, date_timestamp) || other.date_timestamp == date_timestamp)&&(identical(other.new_state, new_state) || other.new_state == new_state)&&(identical(other.new_receiver_state, new_receiver_state) || other.new_receiver_state == new_receiver_state)&&(identical(other.new_allocation_state, new_allocation_state) || other.new_allocation_state == new_allocation_state)&&(identical(other.key, key) || other.key == key)&&(identical(other.create_date, create_date) || other.create_date == create_date)&&(identical(other.modify_date, modify_date) || other.modify_date == modify_date)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.number_of_carcasses, number_of_carcasses) || other.number_of_carcasses == number_of_carcasses)&&(identical(other.real_number_of_carcasses, real_number_of_carcasses) || other.real_number_of_carcasses == real_number_of_carcasses)&&(identical(other.receiver_real_number_of_carcasses, receiver_real_number_of_carcasses) || other.receiver_real_number_of_carcasses == receiver_real_number_of_carcasses)&&(identical(other.weight_of_carcasses, weight_of_carcasses) || other.weight_of_carcasses == weight_of_carcasses)&&(identical(other.real_weight_of_carcasses, real_weight_of_carcasses) || other.real_weight_of_carcasses == real_weight_of_carcasses)&&(identical(other.receiver_real_weight_of_carcasses, receiver_real_weight_of_carcasses) || other.receiver_real_weight_of_carcasses == receiver_real_weight_of_carcasses)&&(identical(other.weight_loss_of_carcasses, weight_loss_of_carcasses) || other.weight_loss_of_carcasses == weight_loss_of_carcasses)&&(identical(other.final_registration, final_registration) || other.final_registration == final_registration)&&(identical(other.sell_type, sell_type) || other.sell_type == sell_type)&&(identical(other.product_name, product_name) || other.product_name == product_name)&&(identical(other.seller_type, seller_type) || other.seller_type == seller_type)&&(identical(other.type, type) || other.type == type)&&(identical(other.sale_type, sale_type) || other.sale_type == sale_type)&&(identical(other.allocation_type, allocation_type) || other.allocation_type == allocation_type)&&(identical(other.system_registration_code, system_registration_code) || other.system_registration_code == system_registration_code)&&(identical(other.registration_code, registration_code) || other.registration_code == registration_code)&&(identical(other.amount, amount) || other.amount == amount)&&(identical(other.total_amount, total_amount) || other.total_amount == total_amount)&&(identical(other.total_amount_paid, total_amount_paid) || other.total_amount_paid == total_amount_paid)&&(identical(other.total_amount_remain, total_amount_remain) || other.total_amount_remain == total_amount_remain)&&(identical(other.logged_registration_code, logged_registration_code) || other.logged_registration_code == logged_registration_code)&&(identical(other.state, state) || other.state == state)&&(identical(other.receiver_state, receiver_state) || other.receiver_state == receiver_state)&&(identical(other.allocation_state, allocation_state) || other.allocation_state == allocation_state)&&(identical(other.date, date) || other.date == date)&&(identical(other.role, role) || other.role == role)&&(identical(other.steward_temp_key, steward_temp_key) || other.steward_temp_key == steward_temp_key)&&(identical(other.approved_price_status, approved_price_status) || other.approved_price_status == approved_price_status)&&(identical(other.calculate_status, calculate_status) || other.calculate_status == calculate_status)&&(identical(other.temporary_trash, temporary_trash) || other.temporary_trash == temporary_trash)&&(identical(other.temporary_deleted, temporary_deleted) || other.temporary_deleted == temporary_deleted)&&(identical(other.created_by, created_by) || other.created_by == created_by)&&(identical(other.modified_by, modified_by) || other.modified_by == modified_by)&&const DeepCollectionEquality().equals(other.ware_house, ware_house)&&const DeepCollectionEquality().equals(other.steward_ware_house, steward_ware_house)&&const DeepCollectionEquality().equals(other.car, car)&&const DeepCollectionEquality().equals(other.dispenser, dispenser)); -} - -@JsonKey(includeFromJson: false, includeToJson: false) -@override -int get hashCode => Object.hashAll([runtimeType,id,product,const DeepCollectionEquality().hash(kill_house),const DeepCollectionEquality().hash(to_kill_house),steward,const DeepCollectionEquality().hash(to_steward),const DeepCollectionEquality().hash(guilds),to_guilds,const DeepCollectionEquality().hash(to_cold_house),index_weight,date_timestamp,new_state,new_receiver_state,new_allocation_state,key,create_date,modify_date,trash,number_of_carcasses,real_number_of_carcasses,receiver_real_number_of_carcasses,weight_of_carcasses,real_weight_of_carcasses,receiver_real_weight_of_carcasses,weight_loss_of_carcasses,final_registration,sell_type,product_name,seller_type,type,sale_type,allocation_type,system_registration_code,registration_code,amount,total_amount,total_amount_paid,total_amount_remain,logged_registration_code,state,receiver_state,allocation_state,date,role,steward_temp_key,approved_price_status,calculate_status,temporary_trash,temporary_deleted,created_by,modified_by,const DeepCollectionEquality().hash(ware_house),const DeepCollectionEquality().hash(steward_ware_house),const DeepCollectionEquality().hash(car),const DeepCollectionEquality().hash(dispenser)]); - -@override -String toString() { - return 'AllocatedMadeResult(id: $id, product: $product, kill_house: $kill_house, to_kill_house: $to_kill_house, steward: $steward, to_steward: $to_steward, guilds: $guilds, to_guilds: $to_guilds, to_cold_house: $to_cold_house, index_weight: $index_weight, date_timestamp: $date_timestamp, new_state: $new_state, new_receiver_state: $new_receiver_state, new_allocation_state: $new_allocation_state, key: $key, create_date: $create_date, modify_date: $modify_date, trash: $trash, number_of_carcasses: $number_of_carcasses, real_number_of_carcasses: $real_number_of_carcasses, receiver_real_number_of_carcasses: $receiver_real_number_of_carcasses, weight_of_carcasses: $weight_of_carcasses, real_weight_of_carcasses: $real_weight_of_carcasses, receiver_real_weight_of_carcasses: $receiver_real_weight_of_carcasses, weight_loss_of_carcasses: $weight_loss_of_carcasses, final_registration: $final_registration, sell_type: $sell_type, product_name: $product_name, seller_type: $seller_type, type: $type, sale_type: $sale_type, allocation_type: $allocation_type, system_registration_code: $system_registration_code, registration_code: $registration_code, amount: $amount, total_amount: $total_amount, total_amount_paid: $total_amount_paid, total_amount_remain: $total_amount_remain, logged_registration_code: $logged_registration_code, state: $state, receiver_state: $receiver_state, allocation_state: $allocation_state, date: $date, role: $role, steward_temp_key: $steward_temp_key, approved_price_status: $approved_price_status, calculate_status: $calculate_status, temporary_trash: $temporary_trash, temporary_deleted: $temporary_deleted, created_by: $created_by, modified_by: $modified_by, ware_house: $ware_house, steward_ware_house: $steward_ware_house, car: $car, dispenser: $dispenser)'; -} - - -} - -/// @nodoc -abstract mixin class _$AllocatedMadeResultCopyWith<$Res> implements $AllocatedMadeResultCopyWith<$Res> { - factory _$AllocatedMadeResultCopyWith(_AllocatedMadeResult value, $Res Function(_AllocatedMadeResult) _then) = __$AllocatedMadeResultCopyWithImpl; -@override @useResult -$Res call({ - int? id, Product? product, dynamic kill_house, dynamic to_kill_house, Steward? steward, dynamic to_steward, dynamic guilds, Steward? to_guilds, dynamic to_cold_house, int? index_weight, int? date_timestamp, int? new_state, int? new_receiver_state, int? new_allocation_state, String? key, String? create_date, String? modify_date, bool? trash, int? number_of_carcasses, int? real_number_of_carcasses, int? receiver_real_number_of_carcasses, int? weight_of_carcasses, int? real_weight_of_carcasses, int? receiver_real_weight_of_carcasses, int? weight_loss_of_carcasses, bool? final_registration, String? sell_type, String? product_name, String? seller_type, String? type, String? sale_type, String? allocation_type, bool? system_registration_code, int? registration_code, int? amount, int? total_amount, int? total_amount_paid, int? total_amount_remain, String? logged_registration_code, String? state, String? receiver_state, String? allocation_state, String? date, String? role, String? steward_temp_key, bool? approved_price_status, bool? calculate_status, bool? temporary_trash, bool? temporary_deleted, String? created_by, String? modified_by, dynamic ware_house, dynamic steward_ware_house, dynamic car, dynamic dispenser -}); - - -@override $ProductCopyWith<$Res>? get product;@override $StewardCopyWith<$Res>? get steward;@override $StewardCopyWith<$Res>? get to_guilds; - -} -/// @nodoc -class __$AllocatedMadeResultCopyWithImpl<$Res> - implements _$AllocatedMadeResultCopyWith<$Res> { - __$AllocatedMadeResultCopyWithImpl(this._self, this._then); - - final _AllocatedMadeResult _self; - final $Res Function(_AllocatedMadeResult) _then; - -/// Create a copy of AllocatedMadeResult -/// with the given fields replaced by the non-null parameter values. -@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? product = freezed,Object? kill_house = freezed,Object? to_kill_house = freezed,Object? steward = freezed,Object? to_steward = freezed,Object? guilds = freezed,Object? to_guilds = freezed,Object? to_cold_house = freezed,Object? index_weight = freezed,Object? date_timestamp = freezed,Object? new_state = freezed,Object? new_receiver_state = freezed,Object? new_allocation_state = freezed,Object? key = freezed,Object? create_date = freezed,Object? modify_date = freezed,Object? trash = freezed,Object? number_of_carcasses = freezed,Object? real_number_of_carcasses = freezed,Object? receiver_real_number_of_carcasses = freezed,Object? weight_of_carcasses = freezed,Object? real_weight_of_carcasses = freezed,Object? receiver_real_weight_of_carcasses = freezed,Object? weight_loss_of_carcasses = freezed,Object? final_registration = freezed,Object? sell_type = freezed,Object? product_name = freezed,Object? seller_type = freezed,Object? type = freezed,Object? sale_type = freezed,Object? allocation_type = freezed,Object? system_registration_code = freezed,Object? registration_code = freezed,Object? amount = freezed,Object? total_amount = freezed,Object? total_amount_paid = freezed,Object? total_amount_remain = freezed,Object? logged_registration_code = freezed,Object? state = freezed,Object? receiver_state = freezed,Object? allocation_state = freezed,Object? date = freezed,Object? role = freezed,Object? steward_temp_key = freezed,Object? approved_price_status = freezed,Object? calculate_status = freezed,Object? temporary_trash = freezed,Object? temporary_deleted = freezed,Object? created_by = freezed,Object? modified_by = freezed,Object? ware_house = freezed,Object? steward_ware_house = freezed,Object? car = freezed,Object? dispenser = freezed,}) { - return _then(_AllocatedMadeResult( -id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable -as int?,product: freezed == product ? _self.product : product // ignore: cast_nullable_to_non_nullable -as Product?,kill_house: freezed == kill_house ? _self.kill_house : kill_house // ignore: cast_nullable_to_non_nullable -as dynamic,to_kill_house: freezed == to_kill_house ? _self.to_kill_house : to_kill_house // ignore: cast_nullable_to_non_nullable -as dynamic,steward: freezed == steward ? _self.steward : steward // ignore: cast_nullable_to_non_nullable -as Steward?,to_steward: freezed == to_steward ? _self.to_steward : to_steward // ignore: cast_nullable_to_non_nullable -as dynamic,guilds: freezed == guilds ? _self.guilds : guilds // ignore: cast_nullable_to_non_nullable -as dynamic,to_guilds: freezed == to_guilds ? _self.to_guilds : to_guilds // ignore: cast_nullable_to_non_nullable -as Steward?,to_cold_house: freezed == to_cold_house ? _self.to_cold_house : to_cold_house // ignore: cast_nullable_to_non_nullable -as dynamic,index_weight: freezed == index_weight ? _self.index_weight : index_weight // ignore: cast_nullable_to_non_nullable -as int?,date_timestamp: freezed == date_timestamp ? _self.date_timestamp : date_timestamp // ignore: cast_nullable_to_non_nullable -as int?,new_state: freezed == new_state ? _self.new_state : new_state // ignore: cast_nullable_to_non_nullable -as int?,new_receiver_state: freezed == new_receiver_state ? _self.new_receiver_state : new_receiver_state // ignore: cast_nullable_to_non_nullable -as int?,new_allocation_state: freezed == new_allocation_state ? _self.new_allocation_state : new_allocation_state // ignore: cast_nullable_to_non_nullable -as int?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable -as String?,create_date: freezed == create_date ? _self.create_date : create_date // ignore: cast_nullable_to_non_nullable -as String?,modify_date: freezed == modify_date ? _self.modify_date : modify_date // ignore: cast_nullable_to_non_nullable -as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable -as bool?,number_of_carcasses: freezed == number_of_carcasses ? _self.number_of_carcasses : number_of_carcasses // ignore: cast_nullable_to_non_nullable -as int?,real_number_of_carcasses: freezed == real_number_of_carcasses ? _self.real_number_of_carcasses : real_number_of_carcasses // ignore: cast_nullable_to_non_nullable -as int?,receiver_real_number_of_carcasses: freezed == receiver_real_number_of_carcasses ? _self.receiver_real_number_of_carcasses : receiver_real_number_of_carcasses // ignore: cast_nullable_to_non_nullable -as int?,weight_of_carcasses: freezed == weight_of_carcasses ? _self.weight_of_carcasses : weight_of_carcasses // ignore: cast_nullable_to_non_nullable -as int?,real_weight_of_carcasses: freezed == real_weight_of_carcasses ? _self.real_weight_of_carcasses : real_weight_of_carcasses // ignore: cast_nullable_to_non_nullable -as int?,receiver_real_weight_of_carcasses: freezed == receiver_real_weight_of_carcasses ? _self.receiver_real_weight_of_carcasses : receiver_real_weight_of_carcasses // ignore: cast_nullable_to_non_nullable -as int?,weight_loss_of_carcasses: freezed == weight_loss_of_carcasses ? _self.weight_loss_of_carcasses : weight_loss_of_carcasses // ignore: cast_nullable_to_non_nullable -as int?,final_registration: freezed == final_registration ? _self.final_registration : final_registration // ignore: cast_nullable_to_non_nullable -as bool?,sell_type: freezed == sell_type ? _self.sell_type : sell_type // ignore: cast_nullable_to_non_nullable -as String?,product_name: freezed == product_name ? _self.product_name : product_name // ignore: cast_nullable_to_non_nullable -as String?,seller_type: freezed == seller_type ? _self.seller_type : seller_type // ignore: cast_nullable_to_non_nullable -as String?,type: freezed == type ? _self.type : type // ignore: cast_nullable_to_non_nullable -as String?,sale_type: freezed == sale_type ? _self.sale_type : sale_type // ignore: cast_nullable_to_non_nullable -as String?,allocation_type: freezed == allocation_type ? _self.allocation_type : allocation_type // ignore: cast_nullable_to_non_nullable -as String?,system_registration_code: freezed == system_registration_code ? _self.system_registration_code : system_registration_code // ignore: cast_nullable_to_non_nullable -as bool?,registration_code: freezed == registration_code ? _self.registration_code : registration_code // ignore: cast_nullable_to_non_nullable -as int?,amount: freezed == amount ? _self.amount : amount // ignore: cast_nullable_to_non_nullable -as int?,total_amount: freezed == total_amount ? _self.total_amount : total_amount // ignore: cast_nullable_to_non_nullable -as int?,total_amount_paid: freezed == total_amount_paid ? _self.total_amount_paid : total_amount_paid // ignore: cast_nullable_to_non_nullable -as int?,total_amount_remain: freezed == total_amount_remain ? _self.total_amount_remain : total_amount_remain // ignore: cast_nullable_to_non_nullable -as int?,logged_registration_code: freezed == logged_registration_code ? _self.logged_registration_code : logged_registration_code // ignore: cast_nullable_to_non_nullable -as String?,state: freezed == state ? _self.state : state // ignore: cast_nullable_to_non_nullable -as String?,receiver_state: freezed == receiver_state ? _self.receiver_state : receiver_state // ignore: cast_nullable_to_non_nullable -as String?,allocation_state: freezed == allocation_state ? _self.allocation_state : allocation_state // ignore: cast_nullable_to_non_nullable -as String?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable -as String?,role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable -as String?,steward_temp_key: freezed == steward_temp_key ? _self.steward_temp_key : steward_temp_key // ignore: cast_nullable_to_non_nullable -as String?,approved_price_status: freezed == approved_price_status ? _self.approved_price_status : approved_price_status // ignore: cast_nullable_to_non_nullable -as bool?,calculate_status: freezed == calculate_status ? _self.calculate_status : calculate_status // ignore: cast_nullable_to_non_nullable -as bool?,temporary_trash: freezed == temporary_trash ? _self.temporary_trash : temporary_trash // ignore: cast_nullable_to_non_nullable -as bool?,temporary_deleted: freezed == temporary_deleted ? _self.temporary_deleted : temporary_deleted // ignore: cast_nullable_to_non_nullable -as bool?,created_by: freezed == created_by ? _self.created_by : created_by // ignore: cast_nullable_to_non_nullable -as String?,modified_by: freezed == modified_by ? _self.modified_by : modified_by // ignore: cast_nullable_to_non_nullable -as String?,ware_house: freezed == ware_house ? _self.ware_house : ware_house // ignore: cast_nullable_to_non_nullable -as dynamic,steward_ware_house: freezed == steward_ware_house ? _self.steward_ware_house : steward_ware_house // ignore: cast_nullable_to_non_nullable -as dynamic,car: freezed == car ? _self.car : car // ignore: cast_nullable_to_non_nullable -as dynamic,dispenser: freezed == dispenser ? _self.dispenser : dispenser // ignore: cast_nullable_to_non_nullable -as dynamic, - )); -} - -/// Create a copy of AllocatedMadeResult -/// with the given fields replaced by the non-null parameter values. -@override -@pragma('vm:prefer-inline') -$ProductCopyWith<$Res>? get product { - if (_self.product == null) { - return null; - } - - return $ProductCopyWith<$Res>(_self.product!, (value) { - return _then(_self.copyWith(product: value)); - }); -}/// Create a copy of AllocatedMadeResult -/// with the given fields replaced by the non-null parameter values. -@override -@pragma('vm:prefer-inline') -$StewardCopyWith<$Res>? get steward { - if (_self.steward == null) { - return null; - } - - return $StewardCopyWith<$Res>(_self.steward!, (value) { - return _then(_self.copyWith(steward: value)); - }); -}/// Create a copy of AllocatedMadeResult -/// with the given fields replaced by the non-null parameter values. -@override -@pragma('vm:prefer-inline') -$StewardCopyWith<$Res>? get to_guilds { - if (_self.to_guilds == null) { - return null; - } - - return $StewardCopyWith<$Res>(_self.to_guilds!, (value) { - return _then(_self.copyWith(to_guilds: value)); + return $StewardCopyWith<$Res>(_self.toGuilds!, (value) { + return _then(_self.copyWith(toGuilds: value)); }); } } @@ -533,7 +383,7 @@ $StewardCopyWith<$Res>? get to_guilds { /// @nodoc mixin _$Product { - int? get weight_average; + int? get weightAverage; /// Create a copy of Product /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @@ -546,16 +396,16 @@ $ProductCopyWith get copyWith => _$ProductCopyWithImpl(this as @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is Product&&(identical(other.weight_average, weight_average) || other.weight_average == weight_average)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is Product&&(identical(other.weightAverage, weightAverage) || other.weightAverage == weightAverage)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,weight_average); +int get hashCode => Object.hash(runtimeType,weightAverage); @override String toString() { - return 'Product(weight_average: $weight_average)'; + return 'Product(weightAverage: $weightAverage)'; } @@ -566,7 +416,7 @@ abstract mixin class $ProductCopyWith<$Res> { factory $ProductCopyWith(Product value, $Res Function(Product) _then) = _$ProductCopyWithImpl; @useResult $Res call({ - int? weight_average + int? weightAverage }); @@ -583,9 +433,9 @@ class _$ProductCopyWithImpl<$Res> /// Create a copy of Product /// with the given fields replaced by the non-null parameter values. -@pragma('vm:prefer-inline') @override $Res call({Object? weight_average = freezed,}) { +@pragma('vm:prefer-inline') @override $Res call({Object? weightAverage = freezed,}) { return _then(_self.copyWith( -weight_average: freezed == weight_average ? _self.weight_average : weight_average // ignore: cast_nullable_to_non_nullable +weightAverage: freezed == weightAverage ? _self.weightAverage : weightAverage // ignore: cast_nullable_to_non_nullable as int?, )); } @@ -597,10 +447,10 @@ as int?, @JsonSerializable() class _Product implements Product { - _Product({this.weight_average}); + _Product({this.weightAverage}); factory _Product.fromJson(Map json) => _$ProductFromJson(json); -@override final int? weight_average; +@override final int? weightAverage; /// Create a copy of Product /// with the given fields replaced by the non-null parameter values. @@ -615,16 +465,16 @@ Map toJson() { @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is _Product&&(identical(other.weight_average, weight_average) || other.weight_average == weight_average)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Product&&(identical(other.weightAverage, weightAverage) || other.weightAverage == weightAverage)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,weight_average); +int get hashCode => Object.hash(runtimeType,weightAverage); @override String toString() { - return 'Product(weight_average: $weight_average)'; + return 'Product(weightAverage: $weightAverage)'; } @@ -635,7 +485,7 @@ abstract mixin class _$ProductCopyWith<$Res> implements $ProductCopyWith<$Res> { factory _$ProductCopyWith(_Product value, $Res Function(_Product) _then) = __$ProductCopyWithImpl; @override @useResult $Res call({ - int? weight_average + int? weightAverage }); @@ -652,9 +502,9 @@ class __$ProductCopyWithImpl<$Res> /// Create a copy of Product /// with the given fields replaced by the non-null parameter values. -@override @pragma('vm:prefer-inline') $Res call({Object? weight_average = freezed,}) { +@override @pragma('vm:prefer-inline') $Res call({Object? weightAverage = freezed,}) { return _then(_Product( -weight_average: freezed == weight_average ? _self.weight_average : weight_average // ignore: cast_nullable_to_non_nullable +weightAverage: freezed == weightAverage ? _self.weightAverage : weightAverage // ignore: cast_nullable_to_non_nullable as int?, )); } @@ -666,7 +516,7 @@ as int?, /// @nodoc mixin _$Steward { - int? get id; User? get user; Address? get address; Activity? get guild_area_activity; Activity? get guild_type_activity; List? get kill_house; List? get steward_kill_house; List? get stewards; PosStatus? get get_pos_status; String? get key; String? get create_date; String? get modify_date; bool? get trash; dynamic get user_id_foreign_key; dynamic get address_id_foreign_key; dynamic get user_bank_id_foreign_key; dynamic get wallet_id_foreign_key; dynamic get provincial_government_id_key; dynamic get identity_documents; bool? get active; int? get city_number; String? get city_name; String? get guilds_id; String? get license_number; String? get guilds_name; String? get phone; String? get type_activity; String? get area_activity; int? get province_number; String? get province_name; bool? get steward; bool? get has_pos; dynamic get centers_allocation; dynamic get kill_house_centers_allocation; dynamic get allocation_limit; bool? get limitation_allocation; String? get registerar_role; String? get registerar_fullname; String? get registerar_mobile; bool? get kill_house_register; bool? get steward_register; bool? get guilds_room_register; bool? get pos_company_register; String? get province_accept_state; String? get province_message; String? get condition; String? get description_condition; bool? get steward_active; dynamic get steward_allocation_limit; bool? get steward_limitation_allocation; bool? get license; dynamic get license_form; dynamic get license_file; String? get reviewer_role; String? get reviewer_fullname; String? get reviewer_mobile; String? get checker_message; bool? get final_accept; bool? get temporary_registration; String? get created_by; String? get modified_by; dynamic get user_bank_info; int? get wallet; List? get cars; List? get user_level; + int? get id; User? get user; Address? get address; Activity? get guildAreaActivity; Activity? get guildTypeActivity; List? get killHouse; List? get stewardKillHouse; List? get stewards; PosStatus? get getPosStatus; String? get key; String? get createDate; String? get modifyDate; bool? get trash; dynamic get userIdForeignKey; dynamic get addressIdForeignKey; dynamic get userBankIdForeignKey; dynamic get walletIdForeignKey; dynamic get provincialGovernmentIdKey; dynamic get identityDocuments; bool? get active; int? get cityNumber; String? get cityName; String? get guildsId; String? get licenseNumber; String? get guildsName; String? get phone; String? get typeActivity; String? get areaActivity; int? get provinceNumber; String? get provinceName; bool? get steward; bool? get hasPos; dynamic get centersAllocation; dynamic get killHouseCentersAllocation; dynamic get allocationLimit; bool? get limitationAllocation; String? get registerarRole; String? get registerarFullname; String? get registerarMobile; bool? get killHouseRegister; bool? get stewardRegister; bool? get guildsRoomRegister; bool? get posCompanyRegister; String? get provinceAcceptState; String? get provinceMessage; String? get condition; String? get descriptionCondition; bool? get stewardActive; dynamic get stewardAllocationLimit; bool? get stewardLimitationAllocation; bool? get license; dynamic get licenseForm; dynamic get licenseFile; String? get reviewerRole; String? get reviewerFullname; String? get reviewerMobile; String? get checkerMessage; bool? get finalAccept; bool? get temporaryRegistration; String? get createdBy; String? get modifiedBy; dynamic get userBankInfo; int? get wallet; List? get cars; List? get userLevel; /// Create a copy of Steward /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @@ -679,16 +529,16 @@ $StewardCopyWith get copyWith => _$StewardCopyWithImpl(this as @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is Steward&&(identical(other.id, id) || other.id == id)&&(identical(other.user, user) || other.user == user)&&(identical(other.address, address) || other.address == address)&&(identical(other.guild_area_activity, guild_area_activity) || other.guild_area_activity == guild_area_activity)&&(identical(other.guild_type_activity, guild_type_activity) || other.guild_type_activity == guild_type_activity)&&const DeepCollectionEquality().equals(other.kill_house, kill_house)&&const DeepCollectionEquality().equals(other.steward_kill_house, steward_kill_house)&&const DeepCollectionEquality().equals(other.stewards, stewards)&&(identical(other.get_pos_status, get_pos_status) || other.get_pos_status == get_pos_status)&&(identical(other.key, key) || other.key == key)&&(identical(other.create_date, create_date) || other.create_date == create_date)&&(identical(other.modify_date, modify_date) || other.modify_date == modify_date)&&(identical(other.trash, trash) || other.trash == trash)&&const DeepCollectionEquality().equals(other.user_id_foreign_key, user_id_foreign_key)&&const DeepCollectionEquality().equals(other.address_id_foreign_key, address_id_foreign_key)&&const DeepCollectionEquality().equals(other.user_bank_id_foreign_key, user_bank_id_foreign_key)&&const DeepCollectionEquality().equals(other.wallet_id_foreign_key, wallet_id_foreign_key)&&const DeepCollectionEquality().equals(other.provincial_government_id_key, provincial_government_id_key)&&const DeepCollectionEquality().equals(other.identity_documents, identity_documents)&&(identical(other.active, active) || other.active == active)&&(identical(other.city_number, city_number) || other.city_number == city_number)&&(identical(other.city_name, city_name) || other.city_name == city_name)&&(identical(other.guilds_id, guilds_id) || other.guilds_id == guilds_id)&&(identical(other.license_number, license_number) || other.license_number == license_number)&&(identical(other.guilds_name, guilds_name) || other.guilds_name == guilds_name)&&(identical(other.phone, phone) || other.phone == phone)&&(identical(other.type_activity, type_activity) || other.type_activity == type_activity)&&(identical(other.area_activity, area_activity) || other.area_activity == area_activity)&&(identical(other.province_number, province_number) || other.province_number == province_number)&&(identical(other.province_name, province_name) || other.province_name == province_name)&&(identical(other.steward, steward) || other.steward == steward)&&(identical(other.has_pos, has_pos) || other.has_pos == has_pos)&&const DeepCollectionEquality().equals(other.centers_allocation, centers_allocation)&&const DeepCollectionEquality().equals(other.kill_house_centers_allocation, kill_house_centers_allocation)&&const DeepCollectionEquality().equals(other.allocation_limit, allocation_limit)&&(identical(other.limitation_allocation, limitation_allocation) || other.limitation_allocation == limitation_allocation)&&(identical(other.registerar_role, registerar_role) || other.registerar_role == registerar_role)&&(identical(other.registerar_fullname, registerar_fullname) || other.registerar_fullname == registerar_fullname)&&(identical(other.registerar_mobile, registerar_mobile) || other.registerar_mobile == registerar_mobile)&&(identical(other.kill_house_register, kill_house_register) || other.kill_house_register == kill_house_register)&&(identical(other.steward_register, steward_register) || other.steward_register == steward_register)&&(identical(other.guilds_room_register, guilds_room_register) || other.guilds_room_register == guilds_room_register)&&(identical(other.pos_company_register, pos_company_register) || other.pos_company_register == pos_company_register)&&(identical(other.province_accept_state, province_accept_state) || other.province_accept_state == province_accept_state)&&(identical(other.province_message, province_message) || other.province_message == province_message)&&(identical(other.condition, condition) || other.condition == condition)&&(identical(other.description_condition, description_condition) || other.description_condition == description_condition)&&(identical(other.steward_active, steward_active) || other.steward_active == steward_active)&&const DeepCollectionEquality().equals(other.steward_allocation_limit, steward_allocation_limit)&&(identical(other.steward_limitation_allocation, steward_limitation_allocation) || other.steward_limitation_allocation == steward_limitation_allocation)&&(identical(other.license, license) || other.license == license)&&const DeepCollectionEquality().equals(other.license_form, license_form)&&const DeepCollectionEquality().equals(other.license_file, license_file)&&(identical(other.reviewer_role, reviewer_role) || other.reviewer_role == reviewer_role)&&(identical(other.reviewer_fullname, reviewer_fullname) || other.reviewer_fullname == reviewer_fullname)&&(identical(other.reviewer_mobile, reviewer_mobile) || other.reviewer_mobile == reviewer_mobile)&&(identical(other.checker_message, checker_message) || other.checker_message == checker_message)&&(identical(other.final_accept, final_accept) || other.final_accept == final_accept)&&(identical(other.temporary_registration, temporary_registration) || other.temporary_registration == temporary_registration)&&(identical(other.created_by, created_by) || other.created_by == created_by)&&(identical(other.modified_by, modified_by) || other.modified_by == modified_by)&&const DeepCollectionEquality().equals(other.user_bank_info, user_bank_info)&&(identical(other.wallet, wallet) || other.wallet == wallet)&&const DeepCollectionEquality().equals(other.cars, cars)&&const DeepCollectionEquality().equals(other.user_level, user_level)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is Steward&&(identical(other.id, id) || other.id == id)&&(identical(other.user, user) || other.user == user)&&(identical(other.address, address) || other.address == address)&&(identical(other.guildAreaActivity, guildAreaActivity) || other.guildAreaActivity == guildAreaActivity)&&(identical(other.guildTypeActivity, guildTypeActivity) || other.guildTypeActivity == guildTypeActivity)&&const DeepCollectionEquality().equals(other.killHouse, killHouse)&&const DeepCollectionEquality().equals(other.stewardKillHouse, stewardKillHouse)&&const DeepCollectionEquality().equals(other.stewards, stewards)&&(identical(other.getPosStatus, getPosStatus) || other.getPosStatus == getPosStatus)&&(identical(other.key, key) || other.key == key)&&(identical(other.createDate, createDate) || other.createDate == createDate)&&(identical(other.modifyDate, modifyDate) || other.modifyDate == modifyDate)&&(identical(other.trash, trash) || other.trash == trash)&&const DeepCollectionEquality().equals(other.userIdForeignKey, userIdForeignKey)&&const DeepCollectionEquality().equals(other.addressIdForeignKey, addressIdForeignKey)&&const DeepCollectionEquality().equals(other.userBankIdForeignKey, userBankIdForeignKey)&&const DeepCollectionEquality().equals(other.walletIdForeignKey, walletIdForeignKey)&&const DeepCollectionEquality().equals(other.provincialGovernmentIdKey, provincialGovernmentIdKey)&&const DeepCollectionEquality().equals(other.identityDocuments, identityDocuments)&&(identical(other.active, active) || other.active == active)&&(identical(other.cityNumber, cityNumber) || other.cityNumber == cityNumber)&&(identical(other.cityName, cityName) || other.cityName == cityName)&&(identical(other.guildsId, guildsId) || other.guildsId == guildsId)&&(identical(other.licenseNumber, licenseNumber) || other.licenseNumber == licenseNumber)&&(identical(other.guildsName, guildsName) || other.guildsName == guildsName)&&(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)&&const DeepCollectionEquality().equals(other.centersAllocation, centersAllocation)&&const DeepCollectionEquality().equals(other.killHouseCentersAllocation, killHouseCentersAllocation)&&const DeepCollectionEquality().equals(other.allocationLimit, allocationLimit)&&(identical(other.limitationAllocation, limitationAllocation) || other.limitationAllocation == limitationAllocation)&&(identical(other.registerarRole, registerarRole) || other.registerarRole == registerarRole)&&(identical(other.registerarFullname, registerarFullname) || other.registerarFullname == registerarFullname)&&(identical(other.registerarMobile, registerarMobile) || other.registerarMobile == registerarMobile)&&(identical(other.killHouseRegister, killHouseRegister) || other.killHouseRegister == killHouseRegister)&&(identical(other.stewardRegister, stewardRegister) || other.stewardRegister == stewardRegister)&&(identical(other.guildsRoomRegister, guildsRoomRegister) || other.guildsRoomRegister == guildsRoomRegister)&&(identical(other.posCompanyRegister, posCompanyRegister) || other.posCompanyRegister == posCompanyRegister)&&(identical(other.provinceAcceptState, provinceAcceptState) || other.provinceAcceptState == provinceAcceptState)&&(identical(other.provinceMessage, provinceMessage) || other.provinceMessage == provinceMessage)&&(identical(other.condition, condition) || other.condition == condition)&&(identical(other.descriptionCondition, descriptionCondition) || other.descriptionCondition == descriptionCondition)&&(identical(other.stewardActive, stewardActive) || other.stewardActive == stewardActive)&&const DeepCollectionEquality().equals(other.stewardAllocationLimit, stewardAllocationLimit)&&(identical(other.stewardLimitationAllocation, stewardLimitationAllocation) || other.stewardLimitationAllocation == stewardLimitationAllocation)&&(identical(other.license, license) || other.license == license)&&const DeepCollectionEquality().equals(other.licenseForm, licenseForm)&&const DeepCollectionEquality().equals(other.licenseFile, licenseFile)&&(identical(other.reviewerRole, reviewerRole) || other.reviewerRole == reviewerRole)&&(identical(other.reviewerFullname, reviewerFullname) || other.reviewerFullname == reviewerFullname)&&(identical(other.reviewerMobile, reviewerMobile) || other.reviewerMobile == reviewerMobile)&&(identical(other.checkerMessage, checkerMessage) || other.checkerMessage == checkerMessage)&&(identical(other.finalAccept, finalAccept) || other.finalAccept == finalAccept)&&(identical(other.temporaryRegistration, temporaryRegistration) || other.temporaryRegistration == temporaryRegistration)&&(identical(other.createdBy, createdBy) || other.createdBy == createdBy)&&(identical(other.modifiedBy, modifiedBy) || other.modifiedBy == modifiedBy)&&const DeepCollectionEquality().equals(other.userBankInfo, userBankInfo)&&(identical(other.wallet, wallet) || other.wallet == wallet)&&const DeepCollectionEquality().equals(other.cars, cars)&&const DeepCollectionEquality().equals(other.userLevel, userLevel)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hashAll([runtimeType,id,user,address,guild_area_activity,guild_type_activity,const DeepCollectionEquality().hash(kill_house),const DeepCollectionEquality().hash(steward_kill_house),const DeepCollectionEquality().hash(stewards),get_pos_status,key,create_date,modify_date,trash,const DeepCollectionEquality().hash(user_id_foreign_key),const DeepCollectionEquality().hash(address_id_foreign_key),const DeepCollectionEquality().hash(user_bank_id_foreign_key),const DeepCollectionEquality().hash(wallet_id_foreign_key),const DeepCollectionEquality().hash(provincial_government_id_key),const DeepCollectionEquality().hash(identity_documents),active,city_number,city_name,guilds_id,license_number,guilds_name,phone,type_activity,area_activity,province_number,province_name,steward,has_pos,const DeepCollectionEquality().hash(centers_allocation),const DeepCollectionEquality().hash(kill_house_centers_allocation),const DeepCollectionEquality().hash(allocation_limit),limitation_allocation,registerar_role,registerar_fullname,registerar_mobile,kill_house_register,steward_register,guilds_room_register,pos_company_register,province_accept_state,province_message,condition,description_condition,steward_active,const DeepCollectionEquality().hash(steward_allocation_limit),steward_limitation_allocation,license,const DeepCollectionEquality().hash(license_form),const DeepCollectionEquality().hash(license_file),reviewer_role,reviewer_fullname,reviewer_mobile,checker_message,final_accept,temporary_registration,created_by,modified_by,const DeepCollectionEquality().hash(user_bank_info),wallet,const DeepCollectionEquality().hash(cars),const DeepCollectionEquality().hash(user_level)]); +int get hashCode => Object.hashAll([runtimeType,id,user,address,guildAreaActivity,guildTypeActivity,const DeepCollectionEquality().hash(killHouse),const DeepCollectionEquality().hash(stewardKillHouse),const DeepCollectionEquality().hash(stewards),getPosStatus,key,createDate,modifyDate,trash,const DeepCollectionEquality().hash(userIdForeignKey),const DeepCollectionEquality().hash(addressIdForeignKey),const DeepCollectionEquality().hash(userBankIdForeignKey),const DeepCollectionEquality().hash(walletIdForeignKey),const DeepCollectionEquality().hash(provincialGovernmentIdKey),const DeepCollectionEquality().hash(identityDocuments),active,cityNumber,cityName,guildsId,licenseNumber,guildsName,phone,typeActivity,areaActivity,provinceNumber,provinceName,steward,hasPos,const DeepCollectionEquality().hash(centersAllocation),const DeepCollectionEquality().hash(killHouseCentersAllocation),const DeepCollectionEquality().hash(allocationLimit),limitationAllocation,registerarRole,registerarFullname,registerarMobile,killHouseRegister,stewardRegister,guildsRoomRegister,posCompanyRegister,provinceAcceptState,provinceMessage,condition,descriptionCondition,stewardActive,const DeepCollectionEquality().hash(stewardAllocationLimit),stewardLimitationAllocation,license,const DeepCollectionEquality().hash(licenseForm),const DeepCollectionEquality().hash(licenseFile),reviewerRole,reviewerFullname,reviewerMobile,checkerMessage,finalAccept,temporaryRegistration,createdBy,modifiedBy,const DeepCollectionEquality().hash(userBankInfo),wallet,const DeepCollectionEquality().hash(cars),const DeepCollectionEquality().hash(userLevel)]); @override String toString() { - return 'Steward(id: $id, user: $user, address: $address, guild_area_activity: $guild_area_activity, guild_type_activity: $guild_type_activity, kill_house: $kill_house, steward_kill_house: $steward_kill_house, stewards: $stewards, get_pos_status: $get_pos_status, key: $key, create_date: $create_date, modify_date: $modify_date, trash: $trash, user_id_foreign_key: $user_id_foreign_key, address_id_foreign_key: $address_id_foreign_key, user_bank_id_foreign_key: $user_bank_id_foreign_key, wallet_id_foreign_key: $wallet_id_foreign_key, provincial_government_id_key: $provincial_government_id_key, identity_documents: $identity_documents, active: $active, city_number: $city_number, city_name: $city_name, guilds_id: $guilds_id, license_number: $license_number, guilds_name: $guilds_name, phone: $phone, type_activity: $type_activity, area_activity: $area_activity, province_number: $province_number, province_name: $province_name, steward: $steward, has_pos: $has_pos, centers_allocation: $centers_allocation, kill_house_centers_allocation: $kill_house_centers_allocation, allocation_limit: $allocation_limit, limitation_allocation: $limitation_allocation, registerar_role: $registerar_role, registerar_fullname: $registerar_fullname, registerar_mobile: $registerar_mobile, kill_house_register: $kill_house_register, steward_register: $steward_register, guilds_room_register: $guilds_room_register, pos_company_register: $pos_company_register, province_accept_state: $province_accept_state, province_message: $province_message, condition: $condition, description_condition: $description_condition, steward_active: $steward_active, steward_allocation_limit: $steward_allocation_limit, steward_limitation_allocation: $steward_limitation_allocation, license: $license, license_form: $license_form, license_file: $license_file, reviewer_role: $reviewer_role, reviewer_fullname: $reviewer_fullname, reviewer_mobile: $reviewer_mobile, checker_message: $checker_message, final_accept: $final_accept, temporary_registration: $temporary_registration, created_by: $created_by, modified_by: $modified_by, user_bank_info: $user_bank_info, wallet: $wallet, cars: $cars, user_level: $user_level)'; + return 'Steward(id: $id, user: $user, address: $address, guildAreaActivity: $guildAreaActivity, guildTypeActivity: $guildTypeActivity, killHouse: $killHouse, stewardKillHouse: $stewardKillHouse, stewards: $stewards, getPosStatus: $getPosStatus, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, userIdForeignKey: $userIdForeignKey, addressIdForeignKey: $addressIdForeignKey, userBankIdForeignKey: $userBankIdForeignKey, walletIdForeignKey: $walletIdForeignKey, provincialGovernmentIdKey: $provincialGovernmentIdKey, identityDocuments: $identityDocuments, active: $active, cityNumber: $cityNumber, cityName: $cityName, guildsId: $guildsId, licenseNumber: $licenseNumber, guildsName: $guildsName, phone: $phone, typeActivity: $typeActivity, areaActivity: $areaActivity, provinceNumber: $provinceNumber, provinceName: $provinceName, steward: $steward, hasPos: $hasPos, centersAllocation: $centersAllocation, killHouseCentersAllocation: $killHouseCentersAllocation, allocationLimit: $allocationLimit, limitationAllocation: $limitationAllocation, registerarRole: $registerarRole, registerarFullname: $registerarFullname, registerarMobile: $registerarMobile, killHouseRegister: $killHouseRegister, stewardRegister: $stewardRegister, guildsRoomRegister: $guildsRoomRegister, posCompanyRegister: $posCompanyRegister, provinceAcceptState: $provinceAcceptState, provinceMessage: $provinceMessage, condition: $condition, descriptionCondition: $descriptionCondition, stewardActive: $stewardActive, stewardAllocationLimit: $stewardAllocationLimit, stewardLimitationAllocation: $stewardLimitationAllocation, license: $license, licenseForm: $licenseForm, licenseFile: $licenseFile, reviewerRole: $reviewerRole, reviewerFullname: $reviewerFullname, reviewerMobile: $reviewerMobile, checkerMessage: $checkerMessage, finalAccept: $finalAccept, temporaryRegistration: $temporaryRegistration, createdBy: $createdBy, modifiedBy: $modifiedBy, userBankInfo: $userBankInfo, wallet: $wallet, cars: $cars, userLevel: $userLevel)'; } @@ -699,11 +549,11 @@ abstract mixin class $StewardCopyWith<$Res> { factory $StewardCopyWith(Steward value, $Res Function(Steward) _then) = _$StewardCopyWithImpl; @useResult $Res call({ - int? id, User? user, Address? address, Activity? guild_area_activity, Activity? guild_type_activity, List? kill_house, List? steward_kill_house, List? stewards, PosStatus? get_pos_status, String? key, String? create_date, String? modify_date, bool? trash, dynamic user_id_foreign_key, dynamic address_id_foreign_key, dynamic user_bank_id_foreign_key, dynamic wallet_id_foreign_key, dynamic provincial_government_id_key, dynamic identity_documents, bool? active, int? city_number, String? city_name, String? guilds_id, String? license_number, String? guilds_name, String? phone, String? type_activity, String? area_activity, int? province_number, String? province_name, bool? steward, bool? has_pos, dynamic centers_allocation, dynamic kill_house_centers_allocation, dynamic allocation_limit, bool? limitation_allocation, String? registerar_role, String? registerar_fullname, String? registerar_mobile, bool? kill_house_register, bool? steward_register, bool? guilds_room_register, bool? pos_company_register, String? province_accept_state, String? province_message, String? condition, String? description_condition, bool? steward_active, dynamic steward_allocation_limit, bool? steward_limitation_allocation, bool? license, dynamic license_form, dynamic license_file, String? reviewer_role, String? reviewer_fullname, String? reviewer_mobile, String? checker_message, bool? final_accept, bool? temporary_registration, String? created_by, String? modified_by, dynamic user_bank_info, int? wallet, List? cars, List? user_level + int? id, User? user, Address? address, Activity? guildAreaActivity, Activity? guildTypeActivity, List? killHouse, List? stewardKillHouse, List? stewards, PosStatus? getPosStatus, String? key, String? createDate, String? modifyDate, bool? trash, dynamic userIdForeignKey, dynamic addressIdForeignKey, dynamic userBankIdForeignKey, dynamic walletIdForeignKey, dynamic provincialGovernmentIdKey, dynamic identityDocuments, bool? active, int? cityNumber, String? cityName, String? guildsId, String? licenseNumber, String? guildsName, String? phone, String? typeActivity, String? areaActivity, int? provinceNumber, String? provinceName, bool? steward, bool? hasPos, dynamic centersAllocation, dynamic killHouseCentersAllocation, dynamic allocationLimit, bool? limitationAllocation, String? registerarRole, String? registerarFullname, String? registerarMobile, bool? killHouseRegister, bool? stewardRegister, bool? guildsRoomRegister, bool? posCompanyRegister, String? provinceAcceptState, String? provinceMessage, String? condition, String? descriptionCondition, bool? stewardActive, dynamic stewardAllocationLimit, bool? stewardLimitationAllocation, bool? license, dynamic licenseForm, dynamic licenseFile, String? reviewerRole, String? reviewerFullname, String? reviewerMobile, String? checkerMessage, bool? finalAccept, bool? temporaryRegistration, String? createdBy, String? modifiedBy, dynamic userBankInfo, int? wallet, List? cars, List? userLevel }); -$UserCopyWith<$Res>? get user;$AddressCopyWith<$Res>? get address;$ActivityCopyWith<$Res>? get guild_area_activity;$ActivityCopyWith<$Res>? get guild_type_activity;$PosStatusCopyWith<$Res>? get get_pos_status; +$UserCopyWith<$Res>? get user;$AddressCopyWith<$Res>? get address;$ActivityCopyWith<$Res>? get guildAreaActivity;$ActivityCopyWith<$Res>? get guildTypeActivity;$PosStatusCopyWith<$Res>? get getPosStatus; } /// @nodoc @@ -716,73 +566,73 @@ class _$StewardCopyWithImpl<$Res> /// Create a copy of Steward /// with the given fields replaced by the non-null parameter values. -@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? user = freezed,Object? address = freezed,Object? guild_area_activity = freezed,Object? guild_type_activity = freezed,Object? kill_house = freezed,Object? steward_kill_house = freezed,Object? stewards = freezed,Object? get_pos_status = freezed,Object? key = freezed,Object? create_date = freezed,Object? modify_date = freezed,Object? trash = freezed,Object? user_id_foreign_key = freezed,Object? address_id_foreign_key = freezed,Object? user_bank_id_foreign_key = freezed,Object? wallet_id_foreign_key = freezed,Object? provincial_government_id_key = freezed,Object? identity_documents = freezed,Object? active = freezed,Object? city_number = freezed,Object? city_name = freezed,Object? guilds_id = freezed,Object? license_number = freezed,Object? guilds_name = freezed,Object? phone = freezed,Object? type_activity = freezed,Object? area_activity = freezed,Object? province_number = freezed,Object? province_name = freezed,Object? steward = freezed,Object? has_pos = freezed,Object? centers_allocation = freezed,Object? kill_house_centers_allocation = freezed,Object? allocation_limit = freezed,Object? limitation_allocation = freezed,Object? registerar_role = freezed,Object? registerar_fullname = freezed,Object? registerar_mobile = freezed,Object? kill_house_register = freezed,Object? steward_register = freezed,Object? guilds_room_register = freezed,Object? pos_company_register = freezed,Object? province_accept_state = freezed,Object? province_message = freezed,Object? condition = freezed,Object? description_condition = freezed,Object? steward_active = freezed,Object? steward_allocation_limit = freezed,Object? steward_limitation_allocation = freezed,Object? license = freezed,Object? license_form = freezed,Object? license_file = freezed,Object? reviewer_role = freezed,Object? reviewer_fullname = freezed,Object? reviewer_mobile = freezed,Object? checker_message = freezed,Object? final_accept = freezed,Object? temporary_registration = freezed,Object? created_by = freezed,Object? modified_by = freezed,Object? user_bank_info = freezed,Object? wallet = freezed,Object? cars = freezed,Object? user_level = freezed,}) { +@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? user = freezed,Object? address = freezed,Object? guildAreaActivity = freezed,Object? guildTypeActivity = freezed,Object? killHouse = freezed,Object? stewardKillHouse = freezed,Object? stewards = freezed,Object? getPosStatus = freezed,Object? key = freezed,Object? createDate = freezed,Object? modifyDate = freezed,Object? trash = freezed,Object? userIdForeignKey = freezed,Object? addressIdForeignKey = freezed,Object? userBankIdForeignKey = freezed,Object? walletIdForeignKey = freezed,Object? provincialGovernmentIdKey = freezed,Object? identityDocuments = freezed,Object? active = freezed,Object? cityNumber = freezed,Object? cityName = freezed,Object? guildsId = freezed,Object? licenseNumber = freezed,Object? guildsName = freezed,Object? phone = freezed,Object? typeActivity = freezed,Object? areaActivity = freezed,Object? provinceNumber = freezed,Object? provinceName = freezed,Object? steward = freezed,Object? hasPos = freezed,Object? centersAllocation = freezed,Object? killHouseCentersAllocation = freezed,Object? allocationLimit = freezed,Object? limitationAllocation = freezed,Object? registerarRole = freezed,Object? registerarFullname = freezed,Object? registerarMobile = freezed,Object? killHouseRegister = freezed,Object? stewardRegister = freezed,Object? guildsRoomRegister = freezed,Object? posCompanyRegister = freezed,Object? provinceAcceptState = freezed,Object? provinceMessage = freezed,Object? condition = freezed,Object? descriptionCondition = freezed,Object? stewardActive = freezed,Object? stewardAllocationLimit = freezed,Object? stewardLimitationAllocation = freezed,Object? license = freezed,Object? licenseForm = freezed,Object? licenseFile = freezed,Object? reviewerRole = freezed,Object? reviewerFullname = freezed,Object? reviewerMobile = freezed,Object? checkerMessage = freezed,Object? finalAccept = freezed,Object? temporaryRegistration = freezed,Object? createdBy = freezed,Object? modifiedBy = freezed,Object? userBankInfo = freezed,Object? wallet = freezed,Object? cars = freezed,Object? userLevel = freezed,}) { return _then(_self.copyWith( id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as int?,user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable as User?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable -as Address?,guild_area_activity: freezed == guild_area_activity ? _self.guild_area_activity : guild_area_activity // ignore: cast_nullable_to_non_nullable -as Activity?,guild_type_activity: freezed == guild_type_activity ? _self.guild_type_activity : guild_type_activity // ignore: cast_nullable_to_non_nullable -as Activity?,kill_house: freezed == kill_house ? _self.kill_house : kill_house // ignore: cast_nullable_to_non_nullable -as List?,steward_kill_house: freezed == steward_kill_house ? _self.steward_kill_house : steward_kill_house // ignore: cast_nullable_to_non_nullable +as Address?,guildAreaActivity: freezed == guildAreaActivity ? _self.guildAreaActivity : guildAreaActivity // ignore: cast_nullable_to_non_nullable +as Activity?,guildTypeActivity: freezed == guildTypeActivity ? _self.guildTypeActivity : guildTypeActivity // ignore: cast_nullable_to_non_nullable +as Activity?,killHouse: freezed == killHouse ? _self.killHouse : killHouse // ignore: cast_nullable_to_non_nullable +as List?,stewardKillHouse: freezed == stewardKillHouse ? _self.stewardKillHouse : stewardKillHouse // ignore: cast_nullable_to_non_nullable as List?,stewards: freezed == stewards ? _self.stewards : stewards // ignore: cast_nullable_to_non_nullable -as List?,get_pos_status: freezed == get_pos_status ? _self.get_pos_status : get_pos_status // ignore: cast_nullable_to_non_nullable +as List?,getPosStatus: freezed == getPosStatus ? _self.getPosStatus : getPosStatus // ignore: cast_nullable_to_non_nullable as PosStatus?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable -as String?,create_date: freezed == create_date ? _self.create_date : create_date // ignore: cast_nullable_to_non_nullable -as String?,modify_date: freezed == modify_date ? _self.modify_date : modify_date // ignore: cast_nullable_to_non_nullable +as String?,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?,user_id_foreign_key: freezed == user_id_foreign_key ? _self.user_id_foreign_key : user_id_foreign_key // ignore: cast_nullable_to_non_nullable -as dynamic,address_id_foreign_key: freezed == address_id_foreign_key ? _self.address_id_foreign_key : address_id_foreign_key // ignore: cast_nullable_to_non_nullable -as dynamic,user_bank_id_foreign_key: freezed == user_bank_id_foreign_key ? _self.user_bank_id_foreign_key : user_bank_id_foreign_key // ignore: cast_nullable_to_non_nullable -as dynamic,wallet_id_foreign_key: freezed == wallet_id_foreign_key ? _self.wallet_id_foreign_key : wallet_id_foreign_key // ignore: cast_nullable_to_non_nullable -as dynamic,provincial_government_id_key: freezed == provincial_government_id_key ? _self.provincial_government_id_key : provincial_government_id_key // ignore: cast_nullable_to_non_nullable -as dynamic,identity_documents: freezed == identity_documents ? _self.identity_documents : identity_documents // ignore: cast_nullable_to_non_nullable +as bool?,userIdForeignKey: freezed == userIdForeignKey ? _self.userIdForeignKey : userIdForeignKey // ignore: cast_nullable_to_non_nullable +as dynamic,addressIdForeignKey: freezed == addressIdForeignKey ? _self.addressIdForeignKey : addressIdForeignKey // ignore: cast_nullable_to_non_nullable +as dynamic,userBankIdForeignKey: freezed == userBankIdForeignKey ? _self.userBankIdForeignKey : userBankIdForeignKey // ignore: cast_nullable_to_non_nullable +as dynamic,walletIdForeignKey: freezed == walletIdForeignKey ? _self.walletIdForeignKey : walletIdForeignKey // ignore: cast_nullable_to_non_nullable +as dynamic,provincialGovernmentIdKey: freezed == provincialGovernmentIdKey ? _self.provincialGovernmentIdKey : provincialGovernmentIdKey // ignore: cast_nullable_to_non_nullable +as dynamic,identityDocuments: freezed == identityDocuments ? _self.identityDocuments : identityDocuments // ignore: cast_nullable_to_non_nullable as dynamic,active: freezed == active ? _self.active : active // ignore: cast_nullable_to_non_nullable -as bool?,city_number: freezed == city_number ? _self.city_number : city_number // ignore: cast_nullable_to_non_nullable -as int?,city_name: freezed == city_name ? _self.city_name : city_name // ignore: cast_nullable_to_non_nullable -as String?,guilds_id: freezed == guilds_id ? _self.guilds_id : guilds_id // ignore: cast_nullable_to_non_nullable -as String?,license_number: freezed == license_number ? _self.license_number : license_number // ignore: cast_nullable_to_non_nullable -as String?,guilds_name: freezed == guilds_name ? _self.guilds_name : guilds_name // ignore: cast_nullable_to_non_nullable +as 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?,type_activity: freezed == type_activity ? _self.type_activity : type_activity // ignore: cast_nullable_to_non_nullable -as String?,area_activity: freezed == area_activity ? _self.area_activity : area_activity // ignore: cast_nullable_to_non_nullable -as String?,province_number: freezed == province_number ? _self.province_number : province_number // ignore: cast_nullable_to_non_nullable -as int?,province_name: freezed == province_name ? _self.province_name : province_name // ignore: cast_nullable_to_non_nullable +as String?,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?,has_pos: freezed == has_pos ? _self.has_pos : has_pos // ignore: cast_nullable_to_non_nullable -as bool?,centers_allocation: freezed == centers_allocation ? _self.centers_allocation : centers_allocation // ignore: cast_nullable_to_non_nullable -as dynamic,kill_house_centers_allocation: freezed == kill_house_centers_allocation ? _self.kill_house_centers_allocation : kill_house_centers_allocation // ignore: cast_nullable_to_non_nullable -as dynamic,allocation_limit: freezed == allocation_limit ? _self.allocation_limit : allocation_limit // ignore: cast_nullable_to_non_nullable -as dynamic,limitation_allocation: freezed == limitation_allocation ? _self.limitation_allocation : limitation_allocation // ignore: cast_nullable_to_non_nullable -as bool?,registerar_role: freezed == registerar_role ? _self.registerar_role : registerar_role // ignore: cast_nullable_to_non_nullable -as String?,registerar_fullname: freezed == registerar_fullname ? _self.registerar_fullname : registerar_fullname // ignore: cast_nullable_to_non_nullable -as String?,registerar_mobile: freezed == registerar_mobile ? _self.registerar_mobile : registerar_mobile // ignore: cast_nullable_to_non_nullable -as String?,kill_house_register: freezed == kill_house_register ? _self.kill_house_register : kill_house_register // ignore: cast_nullable_to_non_nullable -as bool?,steward_register: freezed == steward_register ? _self.steward_register : steward_register // ignore: cast_nullable_to_non_nullable -as bool?,guilds_room_register: freezed == guilds_room_register ? _self.guilds_room_register : guilds_room_register // ignore: cast_nullable_to_non_nullable -as bool?,pos_company_register: freezed == pos_company_register ? _self.pos_company_register : pos_company_register // ignore: cast_nullable_to_non_nullable -as bool?,province_accept_state: freezed == province_accept_state ? _self.province_accept_state : province_accept_state // ignore: cast_nullable_to_non_nullable -as String?,province_message: freezed == province_message ? _self.province_message : province_message // ignore: cast_nullable_to_non_nullable +as bool?,hasPos: freezed == hasPos ? _self.hasPos : hasPos // ignore: cast_nullable_to_non_nullable +as bool?,centersAllocation: freezed == centersAllocation ? _self.centersAllocation : centersAllocation // ignore: cast_nullable_to_non_nullable +as dynamic,killHouseCentersAllocation: freezed == killHouseCentersAllocation ? _self.killHouseCentersAllocation : killHouseCentersAllocation // ignore: cast_nullable_to_non_nullable +as dynamic,allocationLimit: freezed == allocationLimit ? _self.allocationLimit : allocationLimit // ignore: cast_nullable_to_non_nullable +as dynamic,limitationAllocation: freezed == limitationAllocation ? _self.limitationAllocation : limitationAllocation // ignore: cast_nullable_to_non_nullable +as bool?,registerarRole: freezed == registerarRole ? _self.registerarRole : registerarRole // ignore: cast_nullable_to_non_nullable +as String?,registerarFullname: freezed == registerarFullname ? _self.registerarFullname : registerarFullname // ignore: cast_nullable_to_non_nullable +as String?,registerarMobile: freezed == registerarMobile ? _self.registerarMobile : registerarMobile // ignore: cast_nullable_to_non_nullable +as String?,killHouseRegister: freezed == killHouseRegister ? _self.killHouseRegister : killHouseRegister // ignore: cast_nullable_to_non_nullable +as bool?,stewardRegister: freezed == stewardRegister ? _self.stewardRegister : stewardRegister // ignore: cast_nullable_to_non_nullable +as bool?,guildsRoomRegister: freezed == guildsRoomRegister ? _self.guildsRoomRegister : guildsRoomRegister // ignore: cast_nullable_to_non_nullable +as bool?,posCompanyRegister: freezed == posCompanyRegister ? _self.posCompanyRegister : posCompanyRegister // ignore: cast_nullable_to_non_nullable +as bool?,provinceAcceptState: freezed == provinceAcceptState ? _self.provinceAcceptState : provinceAcceptState // ignore: cast_nullable_to_non_nullable +as String?,provinceMessage: freezed == provinceMessage ? _self.provinceMessage : provinceMessage // ignore: cast_nullable_to_non_nullable as String?,condition: freezed == condition ? _self.condition : condition // ignore: cast_nullable_to_non_nullable -as String?,description_condition: freezed == description_condition ? _self.description_condition : description_condition // ignore: cast_nullable_to_non_nullable -as String?,steward_active: freezed == steward_active ? _self.steward_active : steward_active // ignore: cast_nullable_to_non_nullable -as bool?,steward_allocation_limit: freezed == steward_allocation_limit ? _self.steward_allocation_limit : steward_allocation_limit // ignore: cast_nullable_to_non_nullable -as dynamic,steward_limitation_allocation: freezed == steward_limitation_allocation ? _self.steward_limitation_allocation : steward_limitation_allocation // ignore: cast_nullable_to_non_nullable +as String?,descriptionCondition: freezed == descriptionCondition ? _self.descriptionCondition : descriptionCondition // ignore: cast_nullable_to_non_nullable +as String?,stewardActive: freezed == stewardActive ? _self.stewardActive : stewardActive // ignore: cast_nullable_to_non_nullable +as bool?,stewardAllocationLimit: freezed == stewardAllocationLimit ? _self.stewardAllocationLimit : stewardAllocationLimit // ignore: cast_nullable_to_non_nullable +as dynamic,stewardLimitationAllocation: freezed == stewardLimitationAllocation ? _self.stewardLimitationAllocation : stewardLimitationAllocation // ignore: cast_nullable_to_non_nullable as bool?,license: freezed == license ? _self.license : license // ignore: cast_nullable_to_non_nullable -as bool?,license_form: freezed == license_form ? _self.license_form : license_form // ignore: cast_nullable_to_non_nullable -as dynamic,license_file: freezed == license_file ? _self.license_file : license_file // ignore: cast_nullable_to_non_nullable -as dynamic,reviewer_role: freezed == reviewer_role ? _self.reviewer_role : reviewer_role // ignore: cast_nullable_to_non_nullable -as String?,reviewer_fullname: freezed == reviewer_fullname ? _self.reviewer_fullname : reviewer_fullname // ignore: cast_nullable_to_non_nullable -as String?,reviewer_mobile: freezed == reviewer_mobile ? _self.reviewer_mobile : reviewer_mobile // ignore: cast_nullable_to_non_nullable -as String?,checker_message: freezed == checker_message ? _self.checker_message : checker_message // ignore: cast_nullable_to_non_nullable -as String?,final_accept: freezed == final_accept ? _self.final_accept : final_accept // ignore: cast_nullable_to_non_nullable -as bool?,temporary_registration: freezed == temporary_registration ? _self.temporary_registration : temporary_registration // ignore: cast_nullable_to_non_nullable -as bool?,created_by: freezed == created_by ? _self.created_by : created_by // ignore: cast_nullable_to_non_nullable -as String?,modified_by: freezed == modified_by ? _self.modified_by : modified_by // ignore: cast_nullable_to_non_nullable -as String?,user_bank_info: freezed == user_bank_info ? _self.user_bank_info : user_bank_info // ignore: cast_nullable_to_non_nullable +as bool?,licenseForm: freezed == licenseForm ? _self.licenseForm : licenseForm // ignore: cast_nullable_to_non_nullable +as dynamic,licenseFile: freezed == licenseFile ? _self.licenseFile : licenseFile // ignore: cast_nullable_to_non_nullable +as dynamic,reviewerRole: freezed == reviewerRole ? _self.reviewerRole : reviewerRole // ignore: cast_nullable_to_non_nullable +as String?,reviewerFullname: freezed == reviewerFullname ? _self.reviewerFullname : reviewerFullname // ignore: cast_nullable_to_non_nullable +as String?,reviewerMobile: freezed == reviewerMobile ? _self.reviewerMobile : reviewerMobile // ignore: cast_nullable_to_non_nullable +as String?,checkerMessage: freezed == checkerMessage ? _self.checkerMessage : checkerMessage // ignore: cast_nullable_to_non_nullable +as String?,finalAccept: freezed == finalAccept ? _self.finalAccept : finalAccept // ignore: cast_nullable_to_non_nullable +as bool?,temporaryRegistration: freezed == temporaryRegistration ? _self.temporaryRegistration : temporaryRegistration // ignore: cast_nullable_to_non_nullable +as bool?,createdBy: freezed == createdBy ? _self.createdBy : createdBy // ignore: cast_nullable_to_non_nullable +as String?,modifiedBy: freezed == modifiedBy ? _self.modifiedBy : modifiedBy // ignore: cast_nullable_to_non_nullable +as String?,userBankInfo: freezed == userBankInfo ? _self.userBankInfo : userBankInfo // ignore: cast_nullable_to_non_nullable as dynamic,wallet: freezed == wallet ? _self.wallet : wallet // ignore: cast_nullable_to_non_nullable as int?,cars: freezed == cars ? _self.cars : cars // ignore: cast_nullable_to_non_nullable -as List?,user_level: freezed == user_level ? _self.user_level : user_level // ignore: cast_nullable_to_non_nullable +as List?,userLevel: freezed == userLevel ? _self.userLevel : userLevel // ignore: cast_nullable_to_non_nullable as List?, )); } @@ -814,37 +664,37 @@ $AddressCopyWith<$Res>? get address { /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') -$ActivityCopyWith<$Res>? get guild_area_activity { - if (_self.guild_area_activity == null) { +$ActivityCopyWith<$Res>? get guildAreaActivity { + if (_self.guildAreaActivity == null) { return null; } - return $ActivityCopyWith<$Res>(_self.guild_area_activity!, (value) { - return _then(_self.copyWith(guild_area_activity: value)); + return $ActivityCopyWith<$Res>(_self.guildAreaActivity!, (value) { + return _then(_self.copyWith(guildAreaActivity: value)); }); }/// Create a copy of Steward /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') -$ActivityCopyWith<$Res>? get guild_type_activity { - if (_self.guild_type_activity == null) { +$ActivityCopyWith<$Res>? get guildTypeActivity { + if (_self.guildTypeActivity == null) { return null; } - return $ActivityCopyWith<$Res>(_self.guild_type_activity!, (value) { - return _then(_self.copyWith(guild_type_activity: value)); + return $ActivityCopyWith<$Res>(_self.guildTypeActivity!, (value) { + return _then(_self.copyWith(guildTypeActivity: value)); }); }/// Create a copy of Steward /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') -$PosStatusCopyWith<$Res>? get get_pos_status { - if (_self.get_pos_status == null) { +$PosStatusCopyWith<$Res>? get getPosStatus { + if (_self.getPosStatus == null) { return null; } - return $PosStatusCopyWith<$Res>(_self.get_pos_status!, (value) { - return _then(_self.copyWith(get_pos_status: value)); + return $PosStatusCopyWith<$Res>(_self.getPosStatus!, (value) { + return _then(_self.copyWith(getPosStatus: value)); }); } } @@ -854,28 +704,28 @@ $PosStatusCopyWith<$Res>? get get_pos_status { @JsonSerializable() class _Steward implements Steward { - _Steward({this.id, this.user, this.address, this.guild_area_activity, this.guild_type_activity, final List? kill_house, final List? steward_kill_house, final List? stewards, this.get_pos_status, this.key, this.create_date, this.modify_date, this.trash, this.user_id_foreign_key, this.address_id_foreign_key, this.user_bank_id_foreign_key, this.wallet_id_foreign_key, this.provincial_government_id_key, this.identity_documents, this.active, this.city_number, this.city_name, this.guilds_id, this.license_number, this.guilds_name, this.phone, this.type_activity, this.area_activity, this.province_number, this.province_name, this.steward, this.has_pos, this.centers_allocation, this.kill_house_centers_allocation, this.allocation_limit, this.limitation_allocation, this.registerar_role, this.registerar_fullname, this.registerar_mobile, this.kill_house_register, this.steward_register, this.guilds_room_register, this.pos_company_register, this.province_accept_state, this.province_message, this.condition, this.description_condition, this.steward_active, this.steward_allocation_limit, this.steward_limitation_allocation, this.license, this.license_form, this.license_file, this.reviewer_role, this.reviewer_fullname, this.reviewer_mobile, this.checker_message, this.final_accept, this.temporary_registration, this.created_by, this.modified_by, this.user_bank_info, this.wallet, final List? cars, final List? user_level}): _kill_house = kill_house,_steward_kill_house = steward_kill_house,_stewards = stewards,_cars = cars,_user_level = user_level; + _Steward({this.id, this.user, this.address, this.guildAreaActivity, this.guildTypeActivity, final List? killHouse, final List? stewardKillHouse, final List? stewards, this.getPosStatus, this.key, this.createDate, this.modifyDate, this.trash, this.userIdForeignKey, this.addressIdForeignKey, this.userBankIdForeignKey, this.walletIdForeignKey, this.provincialGovernmentIdKey, this.identityDocuments, this.active, this.cityNumber, this.cityName, this.guildsId, this.licenseNumber, this.guildsName, this.phone, this.typeActivity, this.areaActivity, this.provinceNumber, this.provinceName, this.steward, this.hasPos, this.centersAllocation, this.killHouseCentersAllocation, this.allocationLimit, this.limitationAllocation, this.registerarRole, this.registerarFullname, this.registerarMobile, this.killHouseRegister, this.stewardRegister, this.guildsRoomRegister, this.posCompanyRegister, this.provinceAcceptState, this.provinceMessage, this.condition, this.descriptionCondition, this.stewardActive, this.stewardAllocationLimit, this.stewardLimitationAllocation, this.license, this.licenseForm, this.licenseFile, this.reviewerRole, this.reviewerFullname, this.reviewerMobile, this.checkerMessage, this.finalAccept, this.temporaryRegistration, this.createdBy, this.modifiedBy, this.userBankInfo, this.wallet, final List? cars, final List? userLevel}): _killHouse = killHouse,_stewardKillHouse = stewardKillHouse,_stewards = stewards,_cars = cars,_userLevel = userLevel; factory _Steward.fromJson(Map json) => _$StewardFromJson(json); @override final int? id; @override final User? user; @override final Address? address; -@override final Activity? guild_area_activity; -@override final Activity? guild_type_activity; - final List? _kill_house; -@override List? get kill_house { - final value = _kill_house; +@override final Activity? guildAreaActivity; +@override final Activity? guildTypeActivity; + final List? _killHouse; +@override List? get killHouse { + final value = _killHouse; if (value == null) return null; - if (_kill_house is EqualUnmodifiableListView) return _kill_house; + if (_killHouse is EqualUnmodifiableListView) return _killHouse; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(value); } - final List? _steward_kill_house; -@override List? get steward_kill_house { - final value = _steward_kill_house; + final List? _stewardKillHouse; +@override List? get stewardKillHouse { + final value = _stewardKillHouse; if (value == null) return null; - if (_steward_kill_house is EqualUnmodifiableListView) return _steward_kill_house; + if (_stewardKillHouse is EqualUnmodifiableListView) return _stewardKillHouse; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(value); } @@ -889,60 +739,60 @@ class _Steward implements Steward { return EqualUnmodifiableListView(value); } -@override final PosStatus? get_pos_status; +@override final PosStatus? getPosStatus; @override final String? key; -@override final String? create_date; -@override final String? modify_date; +@override final String? createDate; +@override final String? modifyDate; @override final bool? trash; -@override final dynamic user_id_foreign_key; -@override final dynamic address_id_foreign_key; -@override final dynamic user_bank_id_foreign_key; -@override final dynamic wallet_id_foreign_key; -@override final dynamic provincial_government_id_key; -@override final dynamic identity_documents; +@override final dynamic userIdForeignKey; +@override final dynamic addressIdForeignKey; +@override final dynamic userBankIdForeignKey; +@override final dynamic walletIdForeignKey; +@override final dynamic provincialGovernmentIdKey; +@override final dynamic identityDocuments; @override final bool? active; -@override final int? city_number; -@override final String? city_name; -@override final String? guilds_id; -@override final String? license_number; -@override final String? guilds_name; +@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? type_activity; -@override final String? area_activity; -@override final int? province_number; -@override final String? province_name; +@override final String? typeActivity; +@override final String? areaActivity; +@override final int? provinceNumber; +@override final String? provinceName; @override final bool? steward; -@override final bool? has_pos; -@override final dynamic centers_allocation; -@override final dynamic kill_house_centers_allocation; -@override final dynamic allocation_limit; -@override final bool? limitation_allocation; -@override final String? registerar_role; -@override final String? registerar_fullname; -@override final String? registerar_mobile; -@override final bool? kill_house_register; -@override final bool? steward_register; -@override final bool? guilds_room_register; -@override final bool? pos_company_register; -@override final String? province_accept_state; -@override final String? province_message; +@override final bool? hasPos; +@override final dynamic centersAllocation; +@override final dynamic killHouseCentersAllocation; +@override final dynamic allocationLimit; +@override final bool? limitationAllocation; +@override final String? registerarRole; +@override final String? registerarFullname; +@override final String? registerarMobile; +@override final bool? killHouseRegister; +@override final bool? stewardRegister; +@override final bool? guildsRoomRegister; +@override final bool? posCompanyRegister; +@override final String? provinceAcceptState; +@override final String? provinceMessage; @override final String? condition; -@override final String? description_condition; -@override final bool? steward_active; -@override final dynamic steward_allocation_limit; -@override final bool? steward_limitation_allocation; +@override final String? descriptionCondition; +@override final bool? stewardActive; +@override final dynamic stewardAllocationLimit; +@override final bool? stewardLimitationAllocation; @override final bool? license; -@override final dynamic license_form; -@override final dynamic license_file; -@override final String? reviewer_role; -@override final String? reviewer_fullname; -@override final String? reviewer_mobile; -@override final String? checker_message; -@override final bool? final_accept; -@override final bool? temporary_registration; -@override final String? created_by; -@override final String? modified_by; -@override final dynamic user_bank_info; +@override final dynamic licenseForm; +@override final dynamic licenseFile; +@override final String? reviewerRole; +@override final String? reviewerFullname; +@override final String? reviewerMobile; +@override final String? checkerMessage; +@override final bool? finalAccept; +@override final bool? temporaryRegistration; +@override final String? createdBy; +@override final String? modifiedBy; +@override final dynamic userBankInfo; @override final int? wallet; final List? _cars; @override List? get cars { @@ -953,11 +803,11 @@ class _Steward implements Steward { return EqualUnmodifiableListView(value); } - final List? _user_level; -@override List? get user_level { - final value = _user_level; + final List? _userLevel; +@override List? get userLevel { + final value = _userLevel; if (value == null) return null; - if (_user_level is EqualUnmodifiableListView) return _user_level; + if (_userLevel is EqualUnmodifiableListView) return _userLevel; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(value); } @@ -976,16 +826,16 @@ Map toJson() { @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is _Steward&&(identical(other.id, id) || other.id == id)&&(identical(other.user, user) || other.user == user)&&(identical(other.address, address) || other.address == address)&&(identical(other.guild_area_activity, guild_area_activity) || other.guild_area_activity == guild_area_activity)&&(identical(other.guild_type_activity, guild_type_activity) || other.guild_type_activity == guild_type_activity)&&const DeepCollectionEquality().equals(other._kill_house, _kill_house)&&const DeepCollectionEquality().equals(other._steward_kill_house, _steward_kill_house)&&const DeepCollectionEquality().equals(other._stewards, _stewards)&&(identical(other.get_pos_status, get_pos_status) || other.get_pos_status == get_pos_status)&&(identical(other.key, key) || other.key == key)&&(identical(other.create_date, create_date) || other.create_date == create_date)&&(identical(other.modify_date, modify_date) || other.modify_date == modify_date)&&(identical(other.trash, trash) || other.trash == trash)&&const DeepCollectionEquality().equals(other.user_id_foreign_key, user_id_foreign_key)&&const DeepCollectionEquality().equals(other.address_id_foreign_key, address_id_foreign_key)&&const DeepCollectionEquality().equals(other.user_bank_id_foreign_key, user_bank_id_foreign_key)&&const DeepCollectionEquality().equals(other.wallet_id_foreign_key, wallet_id_foreign_key)&&const DeepCollectionEquality().equals(other.provincial_government_id_key, provincial_government_id_key)&&const DeepCollectionEquality().equals(other.identity_documents, identity_documents)&&(identical(other.active, active) || other.active == active)&&(identical(other.city_number, city_number) || other.city_number == city_number)&&(identical(other.city_name, city_name) || other.city_name == city_name)&&(identical(other.guilds_id, guilds_id) || other.guilds_id == guilds_id)&&(identical(other.license_number, license_number) || other.license_number == license_number)&&(identical(other.guilds_name, guilds_name) || other.guilds_name == guilds_name)&&(identical(other.phone, phone) || other.phone == phone)&&(identical(other.type_activity, type_activity) || other.type_activity == type_activity)&&(identical(other.area_activity, area_activity) || other.area_activity == area_activity)&&(identical(other.province_number, province_number) || other.province_number == province_number)&&(identical(other.province_name, province_name) || other.province_name == province_name)&&(identical(other.steward, steward) || other.steward == steward)&&(identical(other.has_pos, has_pos) || other.has_pos == has_pos)&&const DeepCollectionEquality().equals(other.centers_allocation, centers_allocation)&&const DeepCollectionEquality().equals(other.kill_house_centers_allocation, kill_house_centers_allocation)&&const DeepCollectionEquality().equals(other.allocation_limit, allocation_limit)&&(identical(other.limitation_allocation, limitation_allocation) || other.limitation_allocation == limitation_allocation)&&(identical(other.registerar_role, registerar_role) || other.registerar_role == registerar_role)&&(identical(other.registerar_fullname, registerar_fullname) || other.registerar_fullname == registerar_fullname)&&(identical(other.registerar_mobile, registerar_mobile) || other.registerar_mobile == registerar_mobile)&&(identical(other.kill_house_register, kill_house_register) || other.kill_house_register == kill_house_register)&&(identical(other.steward_register, steward_register) || other.steward_register == steward_register)&&(identical(other.guilds_room_register, guilds_room_register) || other.guilds_room_register == guilds_room_register)&&(identical(other.pos_company_register, pos_company_register) || other.pos_company_register == pos_company_register)&&(identical(other.province_accept_state, province_accept_state) || other.province_accept_state == province_accept_state)&&(identical(other.province_message, province_message) || other.province_message == province_message)&&(identical(other.condition, condition) || other.condition == condition)&&(identical(other.description_condition, description_condition) || other.description_condition == description_condition)&&(identical(other.steward_active, steward_active) || other.steward_active == steward_active)&&const DeepCollectionEquality().equals(other.steward_allocation_limit, steward_allocation_limit)&&(identical(other.steward_limitation_allocation, steward_limitation_allocation) || other.steward_limitation_allocation == steward_limitation_allocation)&&(identical(other.license, license) || other.license == license)&&const DeepCollectionEquality().equals(other.license_form, license_form)&&const DeepCollectionEquality().equals(other.license_file, license_file)&&(identical(other.reviewer_role, reviewer_role) || other.reviewer_role == reviewer_role)&&(identical(other.reviewer_fullname, reviewer_fullname) || other.reviewer_fullname == reviewer_fullname)&&(identical(other.reviewer_mobile, reviewer_mobile) || other.reviewer_mobile == reviewer_mobile)&&(identical(other.checker_message, checker_message) || other.checker_message == checker_message)&&(identical(other.final_accept, final_accept) || other.final_accept == final_accept)&&(identical(other.temporary_registration, temporary_registration) || other.temporary_registration == temporary_registration)&&(identical(other.created_by, created_by) || other.created_by == created_by)&&(identical(other.modified_by, modified_by) || other.modified_by == modified_by)&&const DeepCollectionEquality().equals(other.user_bank_info, user_bank_info)&&(identical(other.wallet, wallet) || other.wallet == wallet)&&const DeepCollectionEquality().equals(other._cars, _cars)&&const DeepCollectionEquality().equals(other._user_level, _user_level)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Steward&&(identical(other.id, id) || other.id == id)&&(identical(other.user, user) || other.user == user)&&(identical(other.address, address) || other.address == address)&&(identical(other.guildAreaActivity, guildAreaActivity) || other.guildAreaActivity == guildAreaActivity)&&(identical(other.guildTypeActivity, guildTypeActivity) || other.guildTypeActivity == guildTypeActivity)&&const DeepCollectionEquality().equals(other._killHouse, _killHouse)&&const DeepCollectionEquality().equals(other._stewardKillHouse, _stewardKillHouse)&&const DeepCollectionEquality().equals(other._stewards, _stewards)&&(identical(other.getPosStatus, getPosStatus) || other.getPosStatus == getPosStatus)&&(identical(other.key, key) || other.key == key)&&(identical(other.createDate, createDate) || other.createDate == createDate)&&(identical(other.modifyDate, modifyDate) || other.modifyDate == modifyDate)&&(identical(other.trash, trash) || other.trash == trash)&&const DeepCollectionEquality().equals(other.userIdForeignKey, userIdForeignKey)&&const DeepCollectionEquality().equals(other.addressIdForeignKey, addressIdForeignKey)&&const DeepCollectionEquality().equals(other.userBankIdForeignKey, userBankIdForeignKey)&&const DeepCollectionEquality().equals(other.walletIdForeignKey, walletIdForeignKey)&&const DeepCollectionEquality().equals(other.provincialGovernmentIdKey, provincialGovernmentIdKey)&&const DeepCollectionEquality().equals(other.identityDocuments, identityDocuments)&&(identical(other.active, active) || other.active == active)&&(identical(other.cityNumber, cityNumber) || other.cityNumber == cityNumber)&&(identical(other.cityName, cityName) || other.cityName == cityName)&&(identical(other.guildsId, guildsId) || other.guildsId == guildsId)&&(identical(other.licenseNumber, licenseNumber) || other.licenseNumber == licenseNumber)&&(identical(other.guildsName, guildsName) || other.guildsName == guildsName)&&(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)&&const DeepCollectionEquality().equals(other.centersAllocation, centersAllocation)&&const DeepCollectionEquality().equals(other.killHouseCentersAllocation, killHouseCentersAllocation)&&const DeepCollectionEquality().equals(other.allocationLimit, allocationLimit)&&(identical(other.limitationAllocation, limitationAllocation) || other.limitationAllocation == limitationAllocation)&&(identical(other.registerarRole, registerarRole) || other.registerarRole == registerarRole)&&(identical(other.registerarFullname, registerarFullname) || other.registerarFullname == registerarFullname)&&(identical(other.registerarMobile, registerarMobile) || other.registerarMobile == registerarMobile)&&(identical(other.killHouseRegister, killHouseRegister) || other.killHouseRegister == killHouseRegister)&&(identical(other.stewardRegister, stewardRegister) || other.stewardRegister == stewardRegister)&&(identical(other.guildsRoomRegister, guildsRoomRegister) || other.guildsRoomRegister == guildsRoomRegister)&&(identical(other.posCompanyRegister, posCompanyRegister) || other.posCompanyRegister == posCompanyRegister)&&(identical(other.provinceAcceptState, provinceAcceptState) || other.provinceAcceptState == provinceAcceptState)&&(identical(other.provinceMessage, provinceMessage) || other.provinceMessage == provinceMessage)&&(identical(other.condition, condition) || other.condition == condition)&&(identical(other.descriptionCondition, descriptionCondition) || other.descriptionCondition == descriptionCondition)&&(identical(other.stewardActive, stewardActive) || other.stewardActive == stewardActive)&&const DeepCollectionEquality().equals(other.stewardAllocationLimit, stewardAllocationLimit)&&(identical(other.stewardLimitationAllocation, stewardLimitationAllocation) || other.stewardLimitationAllocation == stewardLimitationAllocation)&&(identical(other.license, license) || other.license == license)&&const DeepCollectionEquality().equals(other.licenseForm, licenseForm)&&const DeepCollectionEquality().equals(other.licenseFile, licenseFile)&&(identical(other.reviewerRole, reviewerRole) || other.reviewerRole == reviewerRole)&&(identical(other.reviewerFullname, reviewerFullname) || other.reviewerFullname == reviewerFullname)&&(identical(other.reviewerMobile, reviewerMobile) || other.reviewerMobile == reviewerMobile)&&(identical(other.checkerMessage, checkerMessage) || other.checkerMessage == checkerMessage)&&(identical(other.finalAccept, finalAccept) || other.finalAccept == finalAccept)&&(identical(other.temporaryRegistration, temporaryRegistration) || other.temporaryRegistration == temporaryRegistration)&&(identical(other.createdBy, createdBy) || other.createdBy == createdBy)&&(identical(other.modifiedBy, modifiedBy) || other.modifiedBy == modifiedBy)&&const DeepCollectionEquality().equals(other.userBankInfo, userBankInfo)&&(identical(other.wallet, wallet) || other.wallet == wallet)&&const DeepCollectionEquality().equals(other._cars, _cars)&&const DeepCollectionEquality().equals(other._userLevel, _userLevel)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hashAll([runtimeType,id,user,address,guild_area_activity,guild_type_activity,const DeepCollectionEquality().hash(_kill_house),const DeepCollectionEquality().hash(_steward_kill_house),const DeepCollectionEquality().hash(_stewards),get_pos_status,key,create_date,modify_date,trash,const DeepCollectionEquality().hash(user_id_foreign_key),const DeepCollectionEquality().hash(address_id_foreign_key),const DeepCollectionEquality().hash(user_bank_id_foreign_key),const DeepCollectionEquality().hash(wallet_id_foreign_key),const DeepCollectionEquality().hash(provincial_government_id_key),const DeepCollectionEquality().hash(identity_documents),active,city_number,city_name,guilds_id,license_number,guilds_name,phone,type_activity,area_activity,province_number,province_name,steward,has_pos,const DeepCollectionEquality().hash(centers_allocation),const DeepCollectionEquality().hash(kill_house_centers_allocation),const DeepCollectionEquality().hash(allocation_limit),limitation_allocation,registerar_role,registerar_fullname,registerar_mobile,kill_house_register,steward_register,guilds_room_register,pos_company_register,province_accept_state,province_message,condition,description_condition,steward_active,const DeepCollectionEquality().hash(steward_allocation_limit),steward_limitation_allocation,license,const DeepCollectionEquality().hash(license_form),const DeepCollectionEquality().hash(license_file),reviewer_role,reviewer_fullname,reviewer_mobile,checker_message,final_accept,temporary_registration,created_by,modified_by,const DeepCollectionEquality().hash(user_bank_info),wallet,const DeepCollectionEquality().hash(_cars),const DeepCollectionEquality().hash(_user_level)]); +int get hashCode => Object.hashAll([runtimeType,id,user,address,guildAreaActivity,guildTypeActivity,const DeepCollectionEquality().hash(_killHouse),const DeepCollectionEquality().hash(_stewardKillHouse),const DeepCollectionEquality().hash(_stewards),getPosStatus,key,createDate,modifyDate,trash,const DeepCollectionEquality().hash(userIdForeignKey),const DeepCollectionEquality().hash(addressIdForeignKey),const DeepCollectionEquality().hash(userBankIdForeignKey),const DeepCollectionEquality().hash(walletIdForeignKey),const DeepCollectionEquality().hash(provincialGovernmentIdKey),const DeepCollectionEquality().hash(identityDocuments),active,cityNumber,cityName,guildsId,licenseNumber,guildsName,phone,typeActivity,areaActivity,provinceNumber,provinceName,steward,hasPos,const DeepCollectionEquality().hash(centersAllocation),const DeepCollectionEquality().hash(killHouseCentersAllocation),const DeepCollectionEquality().hash(allocationLimit),limitationAllocation,registerarRole,registerarFullname,registerarMobile,killHouseRegister,stewardRegister,guildsRoomRegister,posCompanyRegister,provinceAcceptState,provinceMessage,condition,descriptionCondition,stewardActive,const DeepCollectionEquality().hash(stewardAllocationLimit),stewardLimitationAllocation,license,const DeepCollectionEquality().hash(licenseForm),const DeepCollectionEquality().hash(licenseFile),reviewerRole,reviewerFullname,reviewerMobile,checkerMessage,finalAccept,temporaryRegistration,createdBy,modifiedBy,const DeepCollectionEquality().hash(userBankInfo),wallet,const DeepCollectionEquality().hash(_cars),const DeepCollectionEquality().hash(_userLevel)]); @override String toString() { - return 'Steward(id: $id, user: $user, address: $address, guild_area_activity: $guild_area_activity, guild_type_activity: $guild_type_activity, kill_house: $kill_house, steward_kill_house: $steward_kill_house, stewards: $stewards, get_pos_status: $get_pos_status, key: $key, create_date: $create_date, modify_date: $modify_date, trash: $trash, user_id_foreign_key: $user_id_foreign_key, address_id_foreign_key: $address_id_foreign_key, user_bank_id_foreign_key: $user_bank_id_foreign_key, wallet_id_foreign_key: $wallet_id_foreign_key, provincial_government_id_key: $provincial_government_id_key, identity_documents: $identity_documents, active: $active, city_number: $city_number, city_name: $city_name, guilds_id: $guilds_id, license_number: $license_number, guilds_name: $guilds_name, phone: $phone, type_activity: $type_activity, area_activity: $area_activity, province_number: $province_number, province_name: $province_name, steward: $steward, has_pos: $has_pos, centers_allocation: $centers_allocation, kill_house_centers_allocation: $kill_house_centers_allocation, allocation_limit: $allocation_limit, limitation_allocation: $limitation_allocation, registerar_role: $registerar_role, registerar_fullname: $registerar_fullname, registerar_mobile: $registerar_mobile, kill_house_register: $kill_house_register, steward_register: $steward_register, guilds_room_register: $guilds_room_register, pos_company_register: $pos_company_register, province_accept_state: $province_accept_state, province_message: $province_message, condition: $condition, description_condition: $description_condition, steward_active: $steward_active, steward_allocation_limit: $steward_allocation_limit, steward_limitation_allocation: $steward_limitation_allocation, license: $license, license_form: $license_form, license_file: $license_file, reviewer_role: $reviewer_role, reviewer_fullname: $reviewer_fullname, reviewer_mobile: $reviewer_mobile, checker_message: $checker_message, final_accept: $final_accept, temporary_registration: $temporary_registration, created_by: $created_by, modified_by: $modified_by, user_bank_info: $user_bank_info, wallet: $wallet, cars: $cars, user_level: $user_level)'; + return 'Steward(id: $id, user: $user, address: $address, guildAreaActivity: $guildAreaActivity, guildTypeActivity: $guildTypeActivity, killHouse: $killHouse, stewardKillHouse: $stewardKillHouse, stewards: $stewards, getPosStatus: $getPosStatus, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, userIdForeignKey: $userIdForeignKey, addressIdForeignKey: $addressIdForeignKey, userBankIdForeignKey: $userBankIdForeignKey, walletIdForeignKey: $walletIdForeignKey, provincialGovernmentIdKey: $provincialGovernmentIdKey, identityDocuments: $identityDocuments, active: $active, cityNumber: $cityNumber, cityName: $cityName, guildsId: $guildsId, licenseNumber: $licenseNumber, guildsName: $guildsName, phone: $phone, typeActivity: $typeActivity, areaActivity: $areaActivity, provinceNumber: $provinceNumber, provinceName: $provinceName, steward: $steward, hasPos: $hasPos, centersAllocation: $centersAllocation, killHouseCentersAllocation: $killHouseCentersAllocation, allocationLimit: $allocationLimit, limitationAllocation: $limitationAllocation, registerarRole: $registerarRole, registerarFullname: $registerarFullname, registerarMobile: $registerarMobile, killHouseRegister: $killHouseRegister, stewardRegister: $stewardRegister, guildsRoomRegister: $guildsRoomRegister, posCompanyRegister: $posCompanyRegister, provinceAcceptState: $provinceAcceptState, provinceMessage: $provinceMessage, condition: $condition, descriptionCondition: $descriptionCondition, stewardActive: $stewardActive, stewardAllocationLimit: $stewardAllocationLimit, stewardLimitationAllocation: $stewardLimitationAllocation, license: $license, licenseForm: $licenseForm, licenseFile: $licenseFile, reviewerRole: $reviewerRole, reviewerFullname: $reviewerFullname, reviewerMobile: $reviewerMobile, checkerMessage: $checkerMessage, finalAccept: $finalAccept, temporaryRegistration: $temporaryRegistration, createdBy: $createdBy, modifiedBy: $modifiedBy, userBankInfo: $userBankInfo, wallet: $wallet, cars: $cars, userLevel: $userLevel)'; } @@ -996,11 +846,11 @@ abstract mixin class _$StewardCopyWith<$Res> implements $StewardCopyWith<$Res> { factory _$StewardCopyWith(_Steward value, $Res Function(_Steward) _then) = __$StewardCopyWithImpl; @override @useResult $Res call({ - int? id, User? user, Address? address, Activity? guild_area_activity, Activity? guild_type_activity, List? kill_house, List? steward_kill_house, List? stewards, PosStatus? get_pos_status, String? key, String? create_date, String? modify_date, bool? trash, dynamic user_id_foreign_key, dynamic address_id_foreign_key, dynamic user_bank_id_foreign_key, dynamic wallet_id_foreign_key, dynamic provincial_government_id_key, dynamic identity_documents, bool? active, int? city_number, String? city_name, String? guilds_id, String? license_number, String? guilds_name, String? phone, String? type_activity, String? area_activity, int? province_number, String? province_name, bool? steward, bool? has_pos, dynamic centers_allocation, dynamic kill_house_centers_allocation, dynamic allocation_limit, bool? limitation_allocation, String? registerar_role, String? registerar_fullname, String? registerar_mobile, bool? kill_house_register, bool? steward_register, bool? guilds_room_register, bool? pos_company_register, String? province_accept_state, String? province_message, String? condition, String? description_condition, bool? steward_active, dynamic steward_allocation_limit, bool? steward_limitation_allocation, bool? license, dynamic license_form, dynamic license_file, String? reviewer_role, String? reviewer_fullname, String? reviewer_mobile, String? checker_message, bool? final_accept, bool? temporary_registration, String? created_by, String? modified_by, dynamic user_bank_info, int? wallet, List? cars, List? user_level + int? id, User? user, Address? address, Activity? guildAreaActivity, Activity? guildTypeActivity, List? killHouse, List? stewardKillHouse, List? stewards, PosStatus? getPosStatus, String? key, String? createDate, String? modifyDate, bool? trash, dynamic userIdForeignKey, dynamic addressIdForeignKey, dynamic userBankIdForeignKey, dynamic walletIdForeignKey, dynamic provincialGovernmentIdKey, dynamic identityDocuments, bool? active, int? cityNumber, String? cityName, String? guildsId, String? licenseNumber, String? guildsName, String? phone, String? typeActivity, String? areaActivity, int? provinceNumber, String? provinceName, bool? steward, bool? hasPos, dynamic centersAllocation, dynamic killHouseCentersAllocation, dynamic allocationLimit, bool? limitationAllocation, String? registerarRole, String? registerarFullname, String? registerarMobile, bool? killHouseRegister, bool? stewardRegister, bool? guildsRoomRegister, bool? posCompanyRegister, String? provinceAcceptState, String? provinceMessage, String? condition, String? descriptionCondition, bool? stewardActive, dynamic stewardAllocationLimit, bool? stewardLimitationAllocation, bool? license, dynamic licenseForm, dynamic licenseFile, String? reviewerRole, String? reviewerFullname, String? reviewerMobile, String? checkerMessage, bool? finalAccept, bool? temporaryRegistration, String? createdBy, String? modifiedBy, dynamic userBankInfo, int? wallet, List? cars, List? userLevel }); -@override $UserCopyWith<$Res>? get user;@override $AddressCopyWith<$Res>? get address;@override $ActivityCopyWith<$Res>? get guild_area_activity;@override $ActivityCopyWith<$Res>? get guild_type_activity;@override $PosStatusCopyWith<$Res>? get get_pos_status; +@override $UserCopyWith<$Res>? get user;@override $AddressCopyWith<$Res>? get address;@override $ActivityCopyWith<$Res>? get guildAreaActivity;@override $ActivityCopyWith<$Res>? get guildTypeActivity;@override $PosStatusCopyWith<$Res>? get getPosStatus; } /// @nodoc @@ -1013,73 +863,73 @@ class __$StewardCopyWithImpl<$Res> /// Create a copy of Steward /// with the given fields replaced by the non-null parameter values. -@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? user = freezed,Object? address = freezed,Object? guild_area_activity = freezed,Object? guild_type_activity = freezed,Object? kill_house = freezed,Object? steward_kill_house = freezed,Object? stewards = freezed,Object? get_pos_status = freezed,Object? key = freezed,Object? create_date = freezed,Object? modify_date = freezed,Object? trash = freezed,Object? user_id_foreign_key = freezed,Object? address_id_foreign_key = freezed,Object? user_bank_id_foreign_key = freezed,Object? wallet_id_foreign_key = freezed,Object? provincial_government_id_key = freezed,Object? identity_documents = freezed,Object? active = freezed,Object? city_number = freezed,Object? city_name = freezed,Object? guilds_id = freezed,Object? license_number = freezed,Object? guilds_name = freezed,Object? phone = freezed,Object? type_activity = freezed,Object? area_activity = freezed,Object? province_number = freezed,Object? province_name = freezed,Object? steward = freezed,Object? has_pos = freezed,Object? centers_allocation = freezed,Object? kill_house_centers_allocation = freezed,Object? allocation_limit = freezed,Object? limitation_allocation = freezed,Object? registerar_role = freezed,Object? registerar_fullname = freezed,Object? registerar_mobile = freezed,Object? kill_house_register = freezed,Object? steward_register = freezed,Object? guilds_room_register = freezed,Object? pos_company_register = freezed,Object? province_accept_state = freezed,Object? province_message = freezed,Object? condition = freezed,Object? description_condition = freezed,Object? steward_active = freezed,Object? steward_allocation_limit = freezed,Object? steward_limitation_allocation = freezed,Object? license = freezed,Object? license_form = freezed,Object? license_file = freezed,Object? reviewer_role = freezed,Object? reviewer_fullname = freezed,Object? reviewer_mobile = freezed,Object? checker_message = freezed,Object? final_accept = freezed,Object? temporary_registration = freezed,Object? created_by = freezed,Object? modified_by = freezed,Object? user_bank_info = freezed,Object? wallet = freezed,Object? cars = freezed,Object? user_level = freezed,}) { +@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? user = freezed,Object? address = freezed,Object? guildAreaActivity = freezed,Object? guildTypeActivity = freezed,Object? killHouse = freezed,Object? stewardKillHouse = freezed,Object? stewards = freezed,Object? getPosStatus = freezed,Object? key = freezed,Object? createDate = freezed,Object? modifyDate = freezed,Object? trash = freezed,Object? userIdForeignKey = freezed,Object? addressIdForeignKey = freezed,Object? userBankIdForeignKey = freezed,Object? walletIdForeignKey = freezed,Object? provincialGovernmentIdKey = freezed,Object? identityDocuments = freezed,Object? active = freezed,Object? cityNumber = freezed,Object? cityName = freezed,Object? guildsId = freezed,Object? licenseNumber = freezed,Object? guildsName = freezed,Object? phone = freezed,Object? typeActivity = freezed,Object? areaActivity = freezed,Object? provinceNumber = freezed,Object? provinceName = freezed,Object? steward = freezed,Object? hasPos = freezed,Object? centersAllocation = freezed,Object? killHouseCentersAllocation = freezed,Object? allocationLimit = freezed,Object? limitationAllocation = freezed,Object? registerarRole = freezed,Object? registerarFullname = freezed,Object? registerarMobile = freezed,Object? killHouseRegister = freezed,Object? stewardRegister = freezed,Object? guildsRoomRegister = freezed,Object? posCompanyRegister = freezed,Object? provinceAcceptState = freezed,Object? provinceMessage = freezed,Object? condition = freezed,Object? descriptionCondition = freezed,Object? stewardActive = freezed,Object? stewardAllocationLimit = freezed,Object? stewardLimitationAllocation = freezed,Object? license = freezed,Object? licenseForm = freezed,Object? licenseFile = freezed,Object? reviewerRole = freezed,Object? reviewerFullname = freezed,Object? reviewerMobile = freezed,Object? checkerMessage = freezed,Object? finalAccept = freezed,Object? temporaryRegistration = freezed,Object? createdBy = freezed,Object? modifiedBy = freezed,Object? userBankInfo = freezed,Object? wallet = freezed,Object? cars = freezed,Object? userLevel = freezed,}) { return _then(_Steward( id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as int?,user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable as User?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable -as Address?,guild_area_activity: freezed == guild_area_activity ? _self.guild_area_activity : guild_area_activity // ignore: cast_nullable_to_non_nullable -as Activity?,guild_type_activity: freezed == guild_type_activity ? _self.guild_type_activity : guild_type_activity // ignore: cast_nullable_to_non_nullable -as Activity?,kill_house: freezed == kill_house ? _self._kill_house : kill_house // ignore: cast_nullable_to_non_nullable -as List?,steward_kill_house: freezed == steward_kill_house ? _self._steward_kill_house : steward_kill_house // ignore: cast_nullable_to_non_nullable +as Address?,guildAreaActivity: freezed == guildAreaActivity ? _self.guildAreaActivity : guildAreaActivity // ignore: cast_nullable_to_non_nullable +as Activity?,guildTypeActivity: freezed == guildTypeActivity ? _self.guildTypeActivity : guildTypeActivity // ignore: cast_nullable_to_non_nullable +as Activity?,killHouse: freezed == killHouse ? _self._killHouse : killHouse // ignore: cast_nullable_to_non_nullable +as List?,stewardKillHouse: freezed == stewardKillHouse ? _self._stewardKillHouse : stewardKillHouse // ignore: cast_nullable_to_non_nullable as List?,stewards: freezed == stewards ? _self._stewards : stewards // ignore: cast_nullable_to_non_nullable -as List?,get_pos_status: freezed == get_pos_status ? _self.get_pos_status : get_pos_status // ignore: cast_nullable_to_non_nullable +as List?,getPosStatus: freezed == getPosStatus ? _self.getPosStatus : getPosStatus // ignore: cast_nullable_to_non_nullable as PosStatus?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable -as String?,create_date: freezed == create_date ? _self.create_date : create_date // ignore: cast_nullable_to_non_nullable -as String?,modify_date: freezed == modify_date ? _self.modify_date : modify_date // ignore: cast_nullable_to_non_nullable +as String?,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?,user_id_foreign_key: freezed == user_id_foreign_key ? _self.user_id_foreign_key : user_id_foreign_key // ignore: cast_nullable_to_non_nullable -as dynamic,address_id_foreign_key: freezed == address_id_foreign_key ? _self.address_id_foreign_key : address_id_foreign_key // ignore: cast_nullable_to_non_nullable -as dynamic,user_bank_id_foreign_key: freezed == user_bank_id_foreign_key ? _self.user_bank_id_foreign_key : user_bank_id_foreign_key // ignore: cast_nullable_to_non_nullable -as dynamic,wallet_id_foreign_key: freezed == wallet_id_foreign_key ? _self.wallet_id_foreign_key : wallet_id_foreign_key // ignore: cast_nullable_to_non_nullable -as dynamic,provincial_government_id_key: freezed == provincial_government_id_key ? _self.provincial_government_id_key : provincial_government_id_key // ignore: cast_nullable_to_non_nullable -as dynamic,identity_documents: freezed == identity_documents ? _self.identity_documents : identity_documents // ignore: cast_nullable_to_non_nullable +as bool?,userIdForeignKey: freezed == userIdForeignKey ? _self.userIdForeignKey : userIdForeignKey // ignore: cast_nullable_to_non_nullable +as dynamic,addressIdForeignKey: freezed == addressIdForeignKey ? _self.addressIdForeignKey : addressIdForeignKey // ignore: cast_nullable_to_non_nullable +as dynamic,userBankIdForeignKey: freezed == userBankIdForeignKey ? _self.userBankIdForeignKey : userBankIdForeignKey // ignore: cast_nullable_to_non_nullable +as dynamic,walletIdForeignKey: freezed == walletIdForeignKey ? _self.walletIdForeignKey : walletIdForeignKey // ignore: cast_nullable_to_non_nullable +as dynamic,provincialGovernmentIdKey: freezed == provincialGovernmentIdKey ? _self.provincialGovernmentIdKey : provincialGovernmentIdKey // ignore: cast_nullable_to_non_nullable +as dynamic,identityDocuments: freezed == identityDocuments ? _self.identityDocuments : identityDocuments // ignore: cast_nullable_to_non_nullable as dynamic,active: freezed == active ? _self.active : active // ignore: cast_nullable_to_non_nullable -as bool?,city_number: freezed == city_number ? _self.city_number : city_number // ignore: cast_nullable_to_non_nullable -as int?,city_name: freezed == city_name ? _self.city_name : city_name // ignore: cast_nullable_to_non_nullable -as String?,guilds_id: freezed == guilds_id ? _self.guilds_id : guilds_id // ignore: cast_nullable_to_non_nullable -as String?,license_number: freezed == license_number ? _self.license_number : license_number // ignore: cast_nullable_to_non_nullable -as String?,guilds_name: freezed == guilds_name ? _self.guilds_name : guilds_name // ignore: cast_nullable_to_non_nullable +as 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?,type_activity: freezed == type_activity ? _self.type_activity : type_activity // ignore: cast_nullable_to_non_nullable -as String?,area_activity: freezed == area_activity ? _self.area_activity : area_activity // ignore: cast_nullable_to_non_nullable -as String?,province_number: freezed == province_number ? _self.province_number : province_number // ignore: cast_nullable_to_non_nullable -as int?,province_name: freezed == province_name ? _self.province_name : province_name // ignore: cast_nullable_to_non_nullable +as String?,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?,has_pos: freezed == has_pos ? _self.has_pos : has_pos // ignore: cast_nullable_to_non_nullable -as bool?,centers_allocation: freezed == centers_allocation ? _self.centers_allocation : centers_allocation // ignore: cast_nullable_to_non_nullable -as dynamic,kill_house_centers_allocation: freezed == kill_house_centers_allocation ? _self.kill_house_centers_allocation : kill_house_centers_allocation // ignore: cast_nullable_to_non_nullable -as dynamic,allocation_limit: freezed == allocation_limit ? _self.allocation_limit : allocation_limit // ignore: cast_nullable_to_non_nullable -as dynamic,limitation_allocation: freezed == limitation_allocation ? _self.limitation_allocation : limitation_allocation // ignore: cast_nullable_to_non_nullable -as bool?,registerar_role: freezed == registerar_role ? _self.registerar_role : registerar_role // ignore: cast_nullable_to_non_nullable -as String?,registerar_fullname: freezed == registerar_fullname ? _self.registerar_fullname : registerar_fullname // ignore: cast_nullable_to_non_nullable -as String?,registerar_mobile: freezed == registerar_mobile ? _self.registerar_mobile : registerar_mobile // ignore: cast_nullable_to_non_nullable -as String?,kill_house_register: freezed == kill_house_register ? _self.kill_house_register : kill_house_register // ignore: cast_nullable_to_non_nullable -as bool?,steward_register: freezed == steward_register ? _self.steward_register : steward_register // ignore: cast_nullable_to_non_nullable -as bool?,guilds_room_register: freezed == guilds_room_register ? _self.guilds_room_register : guilds_room_register // ignore: cast_nullable_to_non_nullable -as bool?,pos_company_register: freezed == pos_company_register ? _self.pos_company_register : pos_company_register // ignore: cast_nullable_to_non_nullable -as bool?,province_accept_state: freezed == province_accept_state ? _self.province_accept_state : province_accept_state // ignore: cast_nullable_to_non_nullable -as String?,province_message: freezed == province_message ? _self.province_message : province_message // ignore: cast_nullable_to_non_nullable +as bool?,hasPos: freezed == hasPos ? _self.hasPos : hasPos // ignore: cast_nullable_to_non_nullable +as bool?,centersAllocation: freezed == centersAllocation ? _self.centersAllocation : centersAllocation // ignore: cast_nullable_to_non_nullable +as dynamic,killHouseCentersAllocation: freezed == killHouseCentersAllocation ? _self.killHouseCentersAllocation : killHouseCentersAllocation // ignore: cast_nullable_to_non_nullable +as dynamic,allocationLimit: freezed == allocationLimit ? _self.allocationLimit : allocationLimit // ignore: cast_nullable_to_non_nullable +as dynamic,limitationAllocation: freezed == limitationAllocation ? _self.limitationAllocation : limitationAllocation // ignore: cast_nullable_to_non_nullable +as bool?,registerarRole: freezed == registerarRole ? _self.registerarRole : registerarRole // ignore: cast_nullable_to_non_nullable +as String?,registerarFullname: freezed == registerarFullname ? _self.registerarFullname : registerarFullname // ignore: cast_nullable_to_non_nullable +as String?,registerarMobile: freezed == registerarMobile ? _self.registerarMobile : registerarMobile // ignore: cast_nullable_to_non_nullable +as String?,killHouseRegister: freezed == killHouseRegister ? _self.killHouseRegister : killHouseRegister // ignore: cast_nullable_to_non_nullable +as bool?,stewardRegister: freezed == stewardRegister ? _self.stewardRegister : stewardRegister // ignore: cast_nullable_to_non_nullable +as bool?,guildsRoomRegister: freezed == guildsRoomRegister ? _self.guildsRoomRegister : guildsRoomRegister // ignore: cast_nullable_to_non_nullable +as bool?,posCompanyRegister: freezed == posCompanyRegister ? _self.posCompanyRegister : posCompanyRegister // ignore: cast_nullable_to_non_nullable +as bool?,provinceAcceptState: freezed == provinceAcceptState ? _self.provinceAcceptState : provinceAcceptState // ignore: cast_nullable_to_non_nullable +as String?,provinceMessage: freezed == provinceMessage ? _self.provinceMessage : provinceMessage // ignore: cast_nullable_to_non_nullable as String?,condition: freezed == condition ? _self.condition : condition // ignore: cast_nullable_to_non_nullable -as String?,description_condition: freezed == description_condition ? _self.description_condition : description_condition // ignore: cast_nullable_to_non_nullable -as String?,steward_active: freezed == steward_active ? _self.steward_active : steward_active // ignore: cast_nullable_to_non_nullable -as bool?,steward_allocation_limit: freezed == steward_allocation_limit ? _self.steward_allocation_limit : steward_allocation_limit // ignore: cast_nullable_to_non_nullable -as dynamic,steward_limitation_allocation: freezed == steward_limitation_allocation ? _self.steward_limitation_allocation : steward_limitation_allocation // ignore: cast_nullable_to_non_nullable +as String?,descriptionCondition: freezed == descriptionCondition ? _self.descriptionCondition : descriptionCondition // ignore: cast_nullable_to_non_nullable +as String?,stewardActive: freezed == stewardActive ? _self.stewardActive : stewardActive // ignore: cast_nullable_to_non_nullable +as bool?,stewardAllocationLimit: freezed == stewardAllocationLimit ? _self.stewardAllocationLimit : stewardAllocationLimit // ignore: cast_nullable_to_non_nullable +as dynamic,stewardLimitationAllocation: freezed == stewardLimitationAllocation ? _self.stewardLimitationAllocation : stewardLimitationAllocation // ignore: cast_nullable_to_non_nullable as bool?,license: freezed == license ? _self.license : license // ignore: cast_nullable_to_non_nullable -as bool?,license_form: freezed == license_form ? _self.license_form : license_form // ignore: cast_nullable_to_non_nullable -as dynamic,license_file: freezed == license_file ? _self.license_file : license_file // ignore: cast_nullable_to_non_nullable -as dynamic,reviewer_role: freezed == reviewer_role ? _self.reviewer_role : reviewer_role // ignore: cast_nullable_to_non_nullable -as String?,reviewer_fullname: freezed == reviewer_fullname ? _self.reviewer_fullname : reviewer_fullname // ignore: cast_nullable_to_non_nullable -as String?,reviewer_mobile: freezed == reviewer_mobile ? _self.reviewer_mobile : reviewer_mobile // ignore: cast_nullable_to_non_nullable -as String?,checker_message: freezed == checker_message ? _self.checker_message : checker_message // ignore: cast_nullable_to_non_nullable -as String?,final_accept: freezed == final_accept ? _self.final_accept : final_accept // ignore: cast_nullable_to_non_nullable -as bool?,temporary_registration: freezed == temporary_registration ? _self.temporary_registration : temporary_registration // ignore: cast_nullable_to_non_nullable -as bool?,created_by: freezed == created_by ? _self.created_by : created_by // ignore: cast_nullable_to_non_nullable -as String?,modified_by: freezed == modified_by ? _self.modified_by : modified_by // ignore: cast_nullable_to_non_nullable -as String?,user_bank_info: freezed == user_bank_info ? _self.user_bank_info : user_bank_info // ignore: cast_nullable_to_non_nullable +as bool?,licenseForm: freezed == licenseForm ? _self.licenseForm : licenseForm // ignore: cast_nullable_to_non_nullable +as dynamic,licenseFile: freezed == licenseFile ? _self.licenseFile : licenseFile // ignore: cast_nullable_to_non_nullable +as dynamic,reviewerRole: freezed == reviewerRole ? _self.reviewerRole : reviewerRole // ignore: cast_nullable_to_non_nullable +as String?,reviewerFullname: freezed == reviewerFullname ? _self.reviewerFullname : reviewerFullname // ignore: cast_nullable_to_non_nullable +as String?,reviewerMobile: freezed == reviewerMobile ? _self.reviewerMobile : reviewerMobile // ignore: cast_nullable_to_non_nullable +as String?,checkerMessage: freezed == checkerMessage ? _self.checkerMessage : checkerMessage // ignore: cast_nullable_to_non_nullable +as String?,finalAccept: freezed == finalAccept ? _self.finalAccept : finalAccept // ignore: cast_nullable_to_non_nullable +as bool?,temporaryRegistration: freezed == temporaryRegistration ? _self.temporaryRegistration : temporaryRegistration // ignore: cast_nullable_to_non_nullable +as bool?,createdBy: freezed == createdBy ? _self.createdBy : createdBy // ignore: cast_nullable_to_non_nullable +as String?,modifiedBy: freezed == modifiedBy ? _self.modifiedBy : modifiedBy // ignore: cast_nullable_to_non_nullable +as String?,userBankInfo: freezed == userBankInfo ? _self.userBankInfo : userBankInfo // ignore: cast_nullable_to_non_nullable as dynamic,wallet: freezed == wallet ? _self.wallet : wallet // ignore: cast_nullable_to_non_nullable as int?,cars: freezed == cars ? _self._cars : cars // ignore: cast_nullable_to_non_nullable -as List?,user_level: freezed == user_level ? _self._user_level : user_level // ignore: cast_nullable_to_non_nullable +as List?,userLevel: freezed == userLevel ? _self._userLevel : userLevel // ignore: cast_nullable_to_non_nullable as List?, )); } @@ -1112,37 +962,37 @@ $AddressCopyWith<$Res>? get address { /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') -$ActivityCopyWith<$Res>? get guild_area_activity { - if (_self.guild_area_activity == null) { +$ActivityCopyWith<$Res>? get guildAreaActivity { + if (_self.guildAreaActivity == null) { return null; } - return $ActivityCopyWith<$Res>(_self.guild_area_activity!, (value) { - return _then(_self.copyWith(guild_area_activity: value)); + return $ActivityCopyWith<$Res>(_self.guildAreaActivity!, (value) { + return _then(_self.copyWith(guildAreaActivity: value)); }); }/// Create a copy of Steward /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') -$ActivityCopyWith<$Res>? get guild_type_activity { - if (_self.guild_type_activity == null) { +$ActivityCopyWith<$Res>? get guildTypeActivity { + if (_self.guildTypeActivity == null) { return null; } - return $ActivityCopyWith<$Res>(_self.guild_type_activity!, (value) { - return _then(_self.copyWith(guild_type_activity: value)); + return $ActivityCopyWith<$Res>(_self.guildTypeActivity!, (value) { + return _then(_self.copyWith(guildTypeActivity: value)); }); }/// Create a copy of Steward /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') -$PosStatusCopyWith<$Res>? get get_pos_status { - if (_self.get_pos_status == null) { +$PosStatusCopyWith<$Res>? get getPosStatus { + if (_self.getPosStatus == null) { return null; } - return $PosStatusCopyWith<$Res>(_self.get_pos_status!, (value) { - return _then(_self.copyWith(get_pos_status: value)); + return $PosStatusCopyWith<$Res>(_self.getPosStatus!, (value) { + return _then(_self.copyWith(getPosStatus: value)); }); } } @@ -1151,7 +1001,7 @@ $PosStatusCopyWith<$Res>? get get_pos_status { /// @nodoc mixin _$User { - String? get fullname; String? get first_name; String? get last_name; String? get mobile; String? get national_id; String? get city; + String? get fullname; String? get firstName; String? get lastName; String? get mobile; String? get nationalId; String? get city; /// Create a copy of User /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @@ -1164,16 +1014,16 @@ $UserCopyWith get copyWith => _$UserCopyWithImpl(this as User, _$ide @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is User&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.first_name, first_name) || other.first_name == first_name)&&(identical(other.last_name, last_name) || other.last_name == last_name)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.national_id, national_id) || other.national_id == national_id)&&(identical(other.city, city) || other.city == city)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is User&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.nationalId, nationalId) || other.nationalId == nationalId)&&(identical(other.city, city) || other.city == city)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,fullname,first_name,last_name,mobile,national_id,city); +int get hashCode => Object.hash(runtimeType,fullname,firstName,lastName,mobile,nationalId,city); @override String toString() { - return 'User(fullname: $fullname, first_name: $first_name, last_name: $last_name, mobile: $mobile, national_id: $national_id, city: $city)'; + return 'User(fullname: $fullname, firstName: $firstName, lastName: $lastName, mobile: $mobile, nationalId: $nationalId, city: $city)'; } @@ -1184,7 +1034,7 @@ abstract mixin class $UserCopyWith<$Res> { factory $UserCopyWith(User value, $Res Function(User) _then) = _$UserCopyWithImpl; @useResult $Res call({ - String? fullname, String? first_name, String? last_name, String? mobile, String? national_id, String? city + String? fullname, String? firstName, String? lastName, String? mobile, String? nationalId, String? city }); @@ -1201,13 +1051,13 @@ class _$UserCopyWithImpl<$Res> /// Create a copy of User /// with the given fields replaced by the non-null parameter values. -@pragma('vm:prefer-inline') @override $Res call({Object? fullname = freezed,Object? first_name = freezed,Object? last_name = freezed,Object? mobile = freezed,Object? national_id = freezed,Object? city = freezed,}) { +@pragma('vm:prefer-inline') @override $Res call({Object? fullname = freezed,Object? firstName = freezed,Object? lastName = freezed,Object? mobile = freezed,Object? nationalId = freezed,Object? city = freezed,}) { return _then(_self.copyWith( fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable -as String?,first_name: freezed == first_name ? _self.first_name : first_name // ignore: cast_nullable_to_non_nullable -as String?,last_name: freezed == last_name ? _self.last_name : last_name // ignore: cast_nullable_to_non_nullable +as String?,firstName: freezed == firstName ? _self.firstName : firstName // ignore: cast_nullable_to_non_nullable +as String?,lastName: freezed == lastName ? _self.lastName : lastName // ignore: cast_nullable_to_non_nullable as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable -as String?,national_id: freezed == national_id ? _self.national_id : national_id // ignore: cast_nullable_to_non_nullable +as String?,nationalId: freezed == nationalId ? _self.nationalId : nationalId // ignore: cast_nullable_to_non_nullable as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable as String?, )); @@ -1220,14 +1070,14 @@ as String?, @JsonSerializable() class _User implements User { - _User({this.fullname, this.first_name, this.last_name, this.mobile, this.national_id, this.city}); + _User({this.fullname, this.firstName, this.lastName, this.mobile, this.nationalId, this.city}); factory _User.fromJson(Map json) => _$UserFromJson(json); @override final String? fullname; -@override final String? first_name; -@override final String? last_name; +@override final String? firstName; +@override final String? lastName; @override final String? mobile; -@override final String? national_id; +@override final String? nationalId; @override final String? city; /// Create a copy of User @@ -1243,16 +1093,16 @@ Map toJson() { @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is _User&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.first_name, first_name) || other.first_name == first_name)&&(identical(other.last_name, last_name) || other.last_name == last_name)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.national_id, national_id) || other.national_id == national_id)&&(identical(other.city, city) || other.city == city)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _User&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.nationalId, nationalId) || other.nationalId == nationalId)&&(identical(other.city, city) || other.city == city)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,fullname,first_name,last_name,mobile,national_id,city); +int get hashCode => Object.hash(runtimeType,fullname,firstName,lastName,mobile,nationalId,city); @override String toString() { - return 'User(fullname: $fullname, first_name: $first_name, last_name: $last_name, mobile: $mobile, national_id: $national_id, city: $city)'; + return 'User(fullname: $fullname, firstName: $firstName, lastName: $lastName, mobile: $mobile, nationalId: $nationalId, city: $city)'; } @@ -1263,7 +1113,7 @@ abstract mixin class _$UserCopyWith<$Res> implements $UserCopyWith<$Res> { factory _$UserCopyWith(_User value, $Res Function(_User) _then) = __$UserCopyWithImpl; @override @useResult $Res call({ - String? fullname, String? first_name, String? last_name, String? mobile, String? national_id, String? city + String? fullname, String? firstName, String? lastName, String? mobile, String? nationalId, String? city }); @@ -1280,13 +1130,13 @@ class __$UserCopyWithImpl<$Res> /// Create a copy of User /// with the given fields replaced by the non-null parameter values. -@override @pragma('vm:prefer-inline') $Res call({Object? fullname = freezed,Object? first_name = freezed,Object? last_name = freezed,Object? mobile = freezed,Object? national_id = freezed,Object? city = freezed,}) { +@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(_User( fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable -as String?,first_name: freezed == first_name ? _self.first_name : first_name // ignore: cast_nullable_to_non_nullable -as String?,last_name: freezed == last_name ? _self.last_name : last_name // ignore: cast_nullable_to_non_nullable +as String?,firstName: freezed == firstName ? _self.firstName : firstName // ignore: cast_nullable_to_non_nullable +as String?,lastName: freezed == lastName ? _self.lastName : lastName // ignore: cast_nullable_to_non_nullable as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable -as String?,national_id: freezed == national_id ? _self.national_id : national_id // ignore: cast_nullable_to_non_nullable +as String?,nationalId: freezed == nationalId ? _self.nationalId : nationalId // ignore: cast_nullable_to_non_nullable as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable as String?, )); @@ -1299,7 +1149,7 @@ as String?, /// @nodoc mixin _$Address { - Province? get province; Province? get city; String? get address; String? get postal_code; + Province? get province; Province? get city; String? get address; String? get postalCode; /// Create a copy of Address /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @@ -1312,16 +1162,16 @@ $AddressCopyWith
get copyWith => _$AddressCopyWithImpl
(this as @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is Address&&(identical(other.province, province) || other.province == province)&&(identical(other.city, city) || other.city == city)&&(identical(other.address, address) || other.address == address)&&(identical(other.postal_code, postal_code) || other.postal_code == postal_code)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is Address&&(identical(other.province, province) || other.province == province)&&(identical(other.city, city) || other.city == city)&&(identical(other.address, address) || other.address == address)&&(identical(other.postalCode, postalCode) || other.postalCode == postalCode)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,province,city,address,postal_code); +int get hashCode => Object.hash(runtimeType,province,city,address,postalCode); @override String toString() { - return 'Address(province: $province, city: $city, address: $address, postal_code: $postal_code)'; + return 'Address(province: $province, city: $city, address: $address, postalCode: $postalCode)'; } @@ -1332,7 +1182,7 @@ abstract mixin class $AddressCopyWith<$Res> { factory $AddressCopyWith(Address value, $Res Function(Address) _then) = _$AddressCopyWithImpl; @useResult $Res call({ - Province? province, Province? city, String? address, String? postal_code + Province? province, Province? city, String? address, String? postalCode }); @@ -1349,12 +1199,12 @@ class _$AddressCopyWithImpl<$Res> /// Create a copy of Address /// with the given fields replaced by the non-null parameter values. -@pragma('vm:prefer-inline') @override $Res call({Object? province = freezed,Object? city = freezed,Object? address = freezed,Object? postal_code = freezed,}) { +@pragma('vm:prefer-inline') @override $Res call({Object? province = freezed,Object? city = freezed,Object? address = freezed,Object? postalCode = freezed,}) { return _then(_self.copyWith( province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable as Province?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable as Province?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable -as String?,postal_code: freezed == postal_code ? _self.postal_code : postal_code // ignore: cast_nullable_to_non_nullable +as String?,postalCode: freezed == postalCode ? _self.postalCode : postalCode // ignore: cast_nullable_to_non_nullable as String?, )); } @@ -1390,13 +1240,13 @@ $ProvinceCopyWith<$Res>? get city { @JsonSerializable() class _Address implements Address { - _Address({this.province, this.city, this.address, this.postal_code}); + _Address({this.province, this.city, this.address, this.postalCode}); factory _Address.fromJson(Map json) => _$AddressFromJson(json); @override final Province? province; @override final Province? city; @override final String? address; -@override final String? postal_code; +@override final String? postalCode; /// Create a copy of Address /// with the given fields replaced by the non-null parameter values. @@ -1411,16 +1261,16 @@ Map toJson() { @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is _Address&&(identical(other.province, province) || other.province == province)&&(identical(other.city, city) || other.city == city)&&(identical(other.address, address) || other.address == address)&&(identical(other.postal_code, postal_code) || other.postal_code == postal_code)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Address&&(identical(other.province, province) || other.province == province)&&(identical(other.city, city) || other.city == city)&&(identical(other.address, address) || other.address == address)&&(identical(other.postalCode, postalCode) || other.postalCode == postalCode)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,province,city,address,postal_code); +int get hashCode => Object.hash(runtimeType,province,city,address,postalCode); @override String toString() { - return 'Address(province: $province, city: $city, address: $address, postal_code: $postal_code)'; + return 'Address(province: $province, city: $city, address: $address, postalCode: $postalCode)'; } @@ -1431,7 +1281,7 @@ abstract mixin class _$AddressCopyWith<$Res> implements $AddressCopyWith<$Res> { factory _$AddressCopyWith(_Address value, $Res Function(_Address) _then) = __$AddressCopyWithImpl; @override @useResult $Res call({ - Province? province, Province? city, String? address, String? postal_code + Province? province, Province? city, String? address, String? postalCode }); @@ -1448,12 +1298,12 @@ class __$AddressCopyWithImpl<$Res> /// Create a copy of Address /// with the given fields replaced by the non-null parameter values. -@override @pragma('vm:prefer-inline') $Res call({Object? province = freezed,Object? city = freezed,Object? address = freezed,Object? postal_code = freezed,}) { +@override @pragma('vm:prefer-inline') $Res call({Object? province = freezed,Object? city = freezed,Object? address = freezed,Object? postalCode = freezed,}) { return _then(_Address( province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable as Province?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable as Province?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable -as String?,postal_code: freezed == postal_code ? _self.postal_code : postal_code // ignore: cast_nullable_to_non_nullable +as String?,postalCode: freezed == postalCode ? _self.postalCode : postalCode // ignore: cast_nullable_to_non_nullable as String?, )); } @@ -1761,7 +1611,7 @@ as String?, /// @nodoc mixin _$PosStatus { - int? get len_active_sessions; bool? get has_pons; bool? get has_active_pons; + int? get lenActiveSessions; bool? get hasPons; bool? get hasActivePons; /// Create a copy of PosStatus /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @@ -1774,16 +1624,16 @@ $PosStatusCopyWith get copyWith => _$PosStatusCopyWithImpl @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is PosStatus&&(identical(other.len_active_sessions, len_active_sessions) || other.len_active_sessions == len_active_sessions)&&(identical(other.has_pons, has_pons) || other.has_pons == has_pons)&&(identical(other.has_active_pons, has_active_pons) || other.has_active_pons == has_active_pons)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is PosStatus&&(identical(other.lenActiveSessions, lenActiveSessions) || other.lenActiveSessions == lenActiveSessions)&&(identical(other.hasPons, hasPons) || other.hasPons == hasPons)&&(identical(other.hasActivePons, hasActivePons) || other.hasActivePons == hasActivePons)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,len_active_sessions,has_pons,has_active_pons); +int get hashCode => Object.hash(runtimeType,lenActiveSessions,hasPons,hasActivePons); @override String toString() { - return 'PosStatus(len_active_sessions: $len_active_sessions, has_pons: $has_pons, has_active_pons: $has_active_pons)'; + return 'PosStatus(lenActiveSessions: $lenActiveSessions, hasPons: $hasPons, hasActivePons: $hasActivePons)'; } @@ -1794,7 +1644,7 @@ abstract mixin class $PosStatusCopyWith<$Res> { factory $PosStatusCopyWith(PosStatus value, $Res Function(PosStatus) _then) = _$PosStatusCopyWithImpl; @useResult $Res call({ - int? len_active_sessions, bool? has_pons, bool? has_active_pons + int? lenActiveSessions, bool? hasPons, bool? hasActivePons }); @@ -1811,11 +1661,11 @@ class _$PosStatusCopyWithImpl<$Res> /// Create a copy of PosStatus /// with the given fields replaced by the non-null parameter values. -@pragma('vm:prefer-inline') @override $Res call({Object? len_active_sessions = freezed,Object? has_pons = freezed,Object? has_active_pons = freezed,}) { +@pragma('vm:prefer-inline') @override $Res call({Object? lenActiveSessions = freezed,Object? hasPons = freezed,Object? hasActivePons = freezed,}) { return _then(_self.copyWith( -len_active_sessions: freezed == len_active_sessions ? _self.len_active_sessions : len_active_sessions // ignore: cast_nullable_to_non_nullable -as int?,has_pons: freezed == has_pons ? _self.has_pons : has_pons // ignore: cast_nullable_to_non_nullable -as bool?,has_active_pons: freezed == has_active_pons ? _self.has_active_pons : has_active_pons // ignore: cast_nullable_to_non_nullable +lenActiveSessions: freezed == lenActiveSessions ? _self.lenActiveSessions : lenActiveSessions // ignore: cast_nullable_to_non_nullable +as int?,hasPons: freezed == hasPons ? _self.hasPons : hasPons // ignore: cast_nullable_to_non_nullable +as bool?,hasActivePons: freezed == hasActivePons ? _self.hasActivePons : hasActivePons // ignore: cast_nullable_to_non_nullable as bool?, )); } @@ -1827,12 +1677,12 @@ as bool?, @JsonSerializable() class _PosStatus implements PosStatus { - _PosStatus({this.len_active_sessions, this.has_pons, this.has_active_pons}); + _PosStatus({this.lenActiveSessions, this.hasPons, this.hasActivePons}); factory _PosStatus.fromJson(Map json) => _$PosStatusFromJson(json); -@override final int? len_active_sessions; -@override final bool? has_pons; -@override final bool? has_active_pons; +@override final int? lenActiveSessions; +@override final bool? hasPons; +@override final bool? hasActivePons; /// Create a copy of PosStatus /// with the given fields replaced by the non-null parameter values. @@ -1847,16 +1697,16 @@ Map toJson() { @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is _PosStatus&&(identical(other.len_active_sessions, len_active_sessions) || other.len_active_sessions == len_active_sessions)&&(identical(other.has_pons, has_pons) || other.has_pons == has_pons)&&(identical(other.has_active_pons, has_active_pons) || other.has_active_pons == has_active_pons)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _PosStatus&&(identical(other.lenActiveSessions, lenActiveSessions) || other.lenActiveSessions == lenActiveSessions)&&(identical(other.hasPons, hasPons) || other.hasPons == hasPons)&&(identical(other.hasActivePons, hasActivePons) || other.hasActivePons == hasActivePons)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,len_active_sessions,has_pons,has_active_pons); +int get hashCode => Object.hash(runtimeType,lenActiveSessions,hasPons,hasActivePons); @override String toString() { - return 'PosStatus(len_active_sessions: $len_active_sessions, has_pons: $has_pons, has_active_pons: $has_active_pons)'; + return 'PosStatus(lenActiveSessions: $lenActiveSessions, hasPons: $hasPons, hasActivePons: $hasActivePons)'; } @@ -1867,7 +1717,7 @@ abstract mixin class _$PosStatusCopyWith<$Res> implements $PosStatusCopyWith<$Re factory _$PosStatusCopyWith(_PosStatus value, $Res Function(_PosStatus) _then) = __$PosStatusCopyWithImpl; @override @useResult $Res call({ - int? len_active_sessions, bool? has_pons, bool? has_active_pons + int? lenActiveSessions, bool? hasPons, bool? hasActivePons }); @@ -1884,11 +1734,11 @@ class __$PosStatusCopyWithImpl<$Res> /// Create a copy of PosStatus /// with the given fields replaced by the non-null parameter values. -@override @pragma('vm:prefer-inline') $Res call({Object? len_active_sessions = freezed,Object? has_pons = freezed,Object? has_active_pons = freezed,}) { +@override @pragma('vm:prefer-inline') $Res call({Object? lenActiveSessions = freezed,Object? hasPons = freezed,Object? hasActivePons = freezed,}) { return _then(_PosStatus( -len_active_sessions: freezed == len_active_sessions ? _self.len_active_sessions : len_active_sessions // ignore: cast_nullable_to_non_nullable -as int?,has_pons: freezed == has_pons ? _self.has_pons : has_pons // ignore: cast_nullable_to_non_nullable -as bool?,has_active_pons: freezed == has_active_pons ? _self.has_active_pons : has_active_pons // ignore: cast_nullable_to_non_nullable +lenActiveSessions: freezed == lenActiveSessions ? _self.lenActiveSessions : lenActiveSessions // ignore: cast_nullable_to_non_nullable +as int?,hasPons: freezed == hasPons ? _self.hasPons : hasPons // ignore: cast_nullable_to_non_nullable +as bool?,hasActivePons: freezed == hasActivePons ? _self.hasActivePons : hasActivePons // ignore: cast_nullable_to_non_nullable as bool?, )); } diff --git a/packages/chicken/lib/data/models/response/allocated_made/allocated_made.g.dart b/packages/chicken/lib/data/models/response/allocated_made/allocated_made.g.dart index 9116ccf..eee0fe3 100644 --- a/packages/chicken/lib/data/models/response/allocated_made/allocated_made.g.dart +++ b/packages/chicken/lib/data/models/response/allocated_made/allocated_made.g.dart @@ -6,159 +6,139 @@ part of 'allocated_made.dart'; // JsonSerializableGenerator // ************************************************************************** -_AllocatedMadeModel _$AllocatedMadeModelFromJson(Map json) => - _AllocatedMadeModel( - count: (json['count'] as num?)?.toInt(), - next: json['next'] as String?, - previous: json['previous'] as String?, - results: (json['results'] as List?) - ?.map((e) => AllocatedMadeResult.fromJson(e as Map)) - .toList(), - ); - -Map _$AllocatedMadeModelToJson(_AllocatedMadeModel instance) => - { - 'count': instance.count, - 'next': instance.next, - 'previous': instance.previous, - 'results': instance.results, - }; - -_AllocatedMadeResult _$AllocatedMadeResultFromJson( +_AllocatedMadeModel _$AllocatedMadeModelFromJson( Map json, -) => _AllocatedMadeResult( +) => _AllocatedMadeModel( id: (json['id'] as num?)?.toInt(), product: json['product'] == null ? null : Product.fromJson(json['product'] as Map), - kill_house: json['kill_house'], - to_kill_house: json['to_kill_house'], + killHouse: json['kill_house'], + toKillHouse: json['to_kill_house'], steward: json['steward'] == null ? null : Steward.fromJson(json['steward'] as Map), - to_steward: json['to_steward'], + toSteward: json['to_steward'], guilds: json['guilds'], - to_guilds: json['to_guilds'] == null + toGuilds: json['to_guilds'] == null ? null : Steward.fromJson(json['to_guilds'] as Map), - to_cold_house: json['to_cold_house'], - index_weight: (json['index_weight'] as num?)?.toInt(), - date_timestamp: (json['date_timestamp'] as num?)?.toInt(), - new_state: (json['new_state'] as num?)?.toInt(), - new_receiver_state: (json['new_receiver_state'] as num?)?.toInt(), - new_allocation_state: (json['new_allocation_state'] as num?)?.toInt(), + toColdHouse: json['to_cold_house'], + indexWeight: (json['index_weight'] as num?)?.toInt(), + dateTimestamp: (json['date_timestamp'] as num?)?.toInt(), + newState: (json['new_state'] as num?)?.toInt(), + newReceiverState: (json['new_receiver_state'] as num?)?.toInt(), + newAllocationState: (json['new_allocation_state'] as num?)?.toInt(), key: json['key'] as String?, - create_date: json['create_date'] as String?, - modify_date: json['modify_date'] as String?, + createDate: json['create_date'] as String?, + modifyDate: json['modify_date'] as String?, trash: json['trash'] as bool?, - number_of_carcasses: (json['number_of_carcasses'] as num?)?.toInt(), - real_number_of_carcasses: (json['real_number_of_carcasses'] as num?)?.toInt(), - receiver_real_number_of_carcasses: + numberOfCarcasses: (json['number_of_carcasses'] as num?)?.toInt(), + realNumberOfCarcasses: (json['real_number_of_carcasses'] as num?)?.toInt(), + receiverRealNumberOfCarcasses: (json['receiver_real_number_of_carcasses'] as num?)?.toInt(), - weight_of_carcasses: (json['weight_of_carcasses'] as num?)?.toInt(), - real_weight_of_carcasses: (json['real_weight_of_carcasses'] as num?)?.toInt(), - receiver_real_weight_of_carcasses: + weightOfCarcasses: (json['weight_of_carcasses'] as num?)?.toInt(), + realWeightOfCarcasses: (json['real_weight_of_carcasses'] as num?)?.toInt(), + receiverRealWeightOfCarcasses: (json['receiver_real_weight_of_carcasses'] as num?)?.toInt(), - weight_loss_of_carcasses: (json['weight_loss_of_carcasses'] as num?)?.toInt(), - final_registration: json['final_registration'] as bool?, - sell_type: json['sell_type'] as String?, - product_name: json['product_name'] as String?, - seller_type: json['seller_type'] as String?, + weightLossOfCarcasses: (json['weight_loss_of_carcasses'] as num?)?.toInt(), + finalRegistration: json['final_registration'] as bool?, + sellType: json['sell_type'] as String?, + productName: json['product_name'] as String?, + sellerType: json['seller_type'] as String?, type: json['type'] as String?, - sale_type: json['sale_type'] as String?, - allocation_type: json['allocation_type'] as String?, - system_registration_code: json['system_registration_code'] as bool?, - registration_code: (json['registration_code'] as num?)?.toInt(), + saleType: json['sale_type'] as String?, + allocationType: json['allocation_type'] as String?, + systemRegistrationCode: json['system_registration_code'] as bool?, + registrationCode: (json['registration_code'] as num?)?.toInt(), amount: (json['amount'] as num?)?.toInt(), - total_amount: (json['total_amount'] as num?)?.toInt(), - total_amount_paid: (json['total_amount_paid'] as num?)?.toInt(), - total_amount_remain: (json['total_amount_remain'] as num?)?.toInt(), - logged_registration_code: json['logged_registration_code'] as String?, + totalAmount: (json['total_amount'] as num?)?.toInt(), + totalAmountPaid: (json['total_amount_paid'] as num?)?.toInt(), + totalAmountRemain: (json['total_amount_remain'] as num?)?.toInt(), + loggedRegistrationCode: json['logged_registration_code'] as String?, state: json['state'] as String?, - receiver_state: json['receiver_state'] as String?, - allocation_state: json['allocation_state'] as String?, + receiverState: json['receiver_state'] as String?, + allocationState: json['allocation_state'] as String?, date: json['date'] as String?, role: json['role'] as String?, - steward_temp_key: json['steward_temp_key'] as String?, - approved_price_status: json['approved_price_status'] as bool?, - calculate_status: json['calculate_status'] as bool?, - temporary_trash: json['temporary_trash'] as bool?, - temporary_deleted: json['temporary_deleted'] as bool?, - created_by: json['created_by'] as String?, - modified_by: json['modified_by'] as String?, - ware_house: json['ware_house'], - steward_ware_house: json['steward_ware_house'], + stewardTempKey: json['steward_temp_key'] as String?, + approvedPriceStatus: json['approved_price_status'] as bool?, + calculateStatus: json['calculate_status'] as bool?, + temporaryTrash: json['temporary_trash'] as bool?, + temporaryDeleted: json['temporary_deleted'] as bool?, + createdBy: json['created_by'] as String?, + modifiedBy: json['modified_by'] as String?, + wareHouse: json['ware_house'], + stewardWareHouse: json['steward_ware_house'], car: json['car'], dispenser: json['dispenser'], ); -Map _$AllocatedMadeResultToJson( - _AllocatedMadeResult instance, +Map _$AllocatedMadeModelToJson( + _AllocatedMadeModel instance, ) => { 'id': instance.id, 'product': instance.product, - 'kill_house': instance.kill_house, - 'to_kill_house': instance.to_kill_house, + 'kill_house': instance.killHouse, + 'to_kill_house': instance.toKillHouse, 'steward': instance.steward, - 'to_steward': instance.to_steward, + 'to_steward': instance.toSteward, 'guilds': instance.guilds, - 'to_guilds': instance.to_guilds, - 'to_cold_house': instance.to_cold_house, - 'index_weight': instance.index_weight, - 'date_timestamp': instance.date_timestamp, - 'new_state': instance.new_state, - 'new_receiver_state': instance.new_receiver_state, - 'new_allocation_state': instance.new_allocation_state, + 'to_guilds': instance.toGuilds, + 'to_cold_house': instance.toColdHouse, + 'index_weight': instance.indexWeight, + 'date_timestamp': instance.dateTimestamp, + 'new_state': instance.newState, + 'new_receiver_state': instance.newReceiverState, + 'new_allocation_state': instance.newAllocationState, 'key': instance.key, - 'create_date': instance.create_date, - 'modify_date': instance.modify_date, + 'create_date': instance.createDate, + 'modify_date': instance.modifyDate, 'trash': instance.trash, - 'number_of_carcasses': instance.number_of_carcasses, - 'real_number_of_carcasses': instance.real_number_of_carcasses, - 'receiver_real_number_of_carcasses': - instance.receiver_real_number_of_carcasses, - 'weight_of_carcasses': instance.weight_of_carcasses, - 'real_weight_of_carcasses': instance.real_weight_of_carcasses, - 'receiver_real_weight_of_carcasses': - instance.receiver_real_weight_of_carcasses, - 'weight_loss_of_carcasses': instance.weight_loss_of_carcasses, - 'final_registration': instance.final_registration, - 'sell_type': instance.sell_type, - 'product_name': instance.product_name, - 'seller_type': instance.seller_type, + 'number_of_carcasses': instance.numberOfCarcasses, + 'real_number_of_carcasses': instance.realNumberOfCarcasses, + 'receiver_real_number_of_carcasses': instance.receiverRealNumberOfCarcasses, + 'weight_of_carcasses': instance.weightOfCarcasses, + 'real_weight_of_carcasses': instance.realWeightOfCarcasses, + 'receiver_real_weight_of_carcasses': instance.receiverRealWeightOfCarcasses, + 'weight_loss_of_carcasses': instance.weightLossOfCarcasses, + 'final_registration': instance.finalRegistration, + 'sell_type': instance.sellType, + 'product_name': instance.productName, + 'seller_type': instance.sellerType, 'type': instance.type, - 'sale_type': instance.sale_type, - 'allocation_type': instance.allocation_type, - 'system_registration_code': instance.system_registration_code, - 'registration_code': instance.registration_code, + 'sale_type': instance.saleType, + 'allocation_type': instance.allocationType, + 'system_registration_code': instance.systemRegistrationCode, + 'registration_code': instance.registrationCode, 'amount': instance.amount, - 'total_amount': instance.total_amount, - 'total_amount_paid': instance.total_amount_paid, - 'total_amount_remain': instance.total_amount_remain, - 'logged_registration_code': instance.logged_registration_code, + 'total_amount': instance.totalAmount, + 'total_amount_paid': instance.totalAmountPaid, + 'total_amount_remain': instance.totalAmountRemain, + 'logged_registration_code': instance.loggedRegistrationCode, 'state': instance.state, - 'receiver_state': instance.receiver_state, - 'allocation_state': instance.allocation_state, + 'receiver_state': instance.receiverState, + 'allocation_state': instance.allocationState, 'date': instance.date, 'role': instance.role, - 'steward_temp_key': instance.steward_temp_key, - 'approved_price_status': instance.approved_price_status, - 'calculate_status': instance.calculate_status, - 'temporary_trash': instance.temporary_trash, - 'temporary_deleted': instance.temporary_deleted, - 'created_by': instance.created_by, - 'modified_by': instance.modified_by, - 'ware_house': instance.ware_house, - 'steward_ware_house': instance.steward_ware_house, + 'steward_temp_key': instance.stewardTempKey, + 'approved_price_status': instance.approvedPriceStatus, + 'calculate_status': instance.calculateStatus, + 'temporary_trash': instance.temporaryTrash, + 'temporary_deleted': instance.temporaryDeleted, + 'created_by': instance.createdBy, + 'modified_by': instance.modifiedBy, + 'ware_house': instance.wareHouse, + 'steward_ware_house': instance.stewardWareHouse, 'car': instance.car, 'dispenser': instance.dispenser, }; _Product _$ProductFromJson(Map json) => - _Product(weight_average: (json['weight_average'] as num?)?.toInt()); + _Product(weightAverage: (json['weight_average'] as num?)?.toInt()); Map _$ProductToJson(_Product instance) => { - 'weight_average': instance.weight_average, + 'weight_average': instance.weightAverage, }; _Steward _$StewardFromJson(Map json) => _Steward( @@ -169,159 +149,159 @@ _Steward _$StewardFromJson(Map json) => _Steward( address: json['address'] == null ? null : Address.fromJson(json['address'] as Map), - guild_area_activity: json['guild_area_activity'] == null + guildAreaActivity: json['guild_area_activity'] == null ? null : Activity.fromJson(json['guild_area_activity'] as Map), - guild_type_activity: json['guild_type_activity'] == null + guildTypeActivity: json['guild_type_activity'] == null ? null : Activity.fromJson(json['guild_type_activity'] as Map), - kill_house: json['kill_house'] as List?, - steward_kill_house: json['steward_kill_house'] as List?, + killHouse: json['kill_house'] as List?, + stewardKillHouse: json['steward_kill_house'] as List?, stewards: json['stewards'] as List?, - get_pos_status: json['get_pos_status'] == null + getPosStatus: json['get_pos_status'] == null ? null : PosStatus.fromJson(json['get_pos_status'] as Map), key: json['key'] as String?, - create_date: json['create_date'] as String?, - modify_date: json['modify_date'] as String?, + createDate: json['create_date'] as String?, + modifyDate: json['modify_date'] as String?, trash: json['trash'] as bool?, - user_id_foreign_key: json['user_id_foreign_key'], - address_id_foreign_key: json['address_id_foreign_key'], - user_bank_id_foreign_key: json['user_bank_id_foreign_key'], - wallet_id_foreign_key: json['wallet_id_foreign_key'], - provincial_government_id_key: json['provincial_government_id_key'], - identity_documents: json['identity_documents'], + userIdForeignKey: json['user_id_foreign_key'], + addressIdForeignKey: json['address_id_foreign_key'], + userBankIdForeignKey: json['user_bank_id_foreign_key'], + walletIdForeignKey: json['wallet_id_foreign_key'], + provincialGovernmentIdKey: json['provincial_government_id_key'], + identityDocuments: json['identity_documents'], active: json['active'] as bool?, - city_number: (json['city_number'] as num?)?.toInt(), - city_name: json['city_name'] as String?, - guilds_id: json['guilds_id'] as String?, - license_number: json['license_number'] as String?, - guilds_name: json['guilds_name'] as String?, + 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?, - type_activity: json['type_activity'] as String?, - area_activity: json['area_activity'] as String?, - province_number: (json['province_number'] as num?)?.toInt(), - province_name: json['province_name'] as String?, + 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?, - has_pos: json['has_pos'] as bool?, - centers_allocation: json['centers_allocation'], - kill_house_centers_allocation: json['kill_house_centers_allocation'], - allocation_limit: json['allocation_limit'], - limitation_allocation: json['limitation_allocation'] as bool?, - registerar_role: json['registerar_role'] as String?, - registerar_fullname: json['registerar_fullname'] as String?, - registerar_mobile: json['registerar_mobile'] as String?, - kill_house_register: json['kill_house_register'] as bool?, - steward_register: json['steward_register'] as bool?, - guilds_room_register: json['guilds_room_register'] as bool?, - pos_company_register: json['pos_company_register'] as bool?, - province_accept_state: json['province_accept_state'] as String?, - province_message: json['province_message'] as String?, + hasPos: json['has_pos'] as bool?, + centersAllocation: json['centers_allocation'], + killHouseCentersAllocation: json['kill_house_centers_allocation'], + allocationLimit: json['allocation_limit'], + limitationAllocation: json['limitation_allocation'] as bool?, + registerarRole: json['registerar_role'] as String?, + registerarFullname: json['registerar_fullname'] as String?, + registerarMobile: json['registerar_mobile'] as String?, + killHouseRegister: json['kill_house_register'] as bool?, + stewardRegister: json['steward_register'] as bool?, + guildsRoomRegister: json['guilds_room_register'] as bool?, + posCompanyRegister: json['pos_company_register'] as bool?, + provinceAcceptState: json['province_accept_state'] as String?, + provinceMessage: json['province_message'] as String?, condition: json['condition'] as String?, - description_condition: json['description_condition'] as String?, - steward_active: json['steward_active'] as bool?, - steward_allocation_limit: json['steward_allocation_limit'], - steward_limitation_allocation: json['steward_limitation_allocation'] as bool?, + descriptionCondition: json['description_condition'] as String?, + stewardActive: json['steward_active'] as bool?, + stewardAllocationLimit: json['steward_allocation_limit'], + stewardLimitationAllocation: json['steward_limitation_allocation'] as bool?, license: json['license'] as bool?, - license_form: json['license_form'], - license_file: json['license_file'], - reviewer_role: json['reviewer_role'] as String?, - reviewer_fullname: json['reviewer_fullname'] as String?, - reviewer_mobile: json['reviewer_mobile'] as String?, - checker_message: json['checker_message'] as String?, - final_accept: json['final_accept'] as bool?, - temporary_registration: json['temporary_registration'] as bool?, - created_by: json['created_by'] as String?, - modified_by: json['modified_by'] as String?, - user_bank_info: json['user_bank_info'], + licenseForm: json['license_form'], + licenseFile: json['license_file'], + reviewerRole: json['reviewer_role'] as String?, + reviewerFullname: json['reviewer_fullname'] as String?, + reviewerMobile: json['reviewer_mobile'] as String?, + checkerMessage: json['checker_message'] as String?, + finalAccept: json['final_accept'] as bool?, + temporaryRegistration: json['temporary_registration'] as bool?, + createdBy: json['created_by'] as String?, + modifiedBy: json['modified_by'] as String?, + userBankInfo: json['user_bank_info'], wallet: (json['wallet'] as num?)?.toInt(), cars: json['cars'] as List?, - user_level: json['user_level'] as List?, + userLevel: json['user_level'] as List?, ); Map _$StewardToJson(_Steward instance) => { 'id': instance.id, 'user': instance.user, 'address': instance.address, - 'guild_area_activity': instance.guild_area_activity, - 'guild_type_activity': instance.guild_type_activity, - 'kill_house': instance.kill_house, - 'steward_kill_house': instance.steward_kill_house, + 'guild_area_activity': instance.guildAreaActivity, + 'guild_type_activity': instance.guildTypeActivity, + 'kill_house': instance.killHouse, + 'steward_kill_house': instance.stewardKillHouse, 'stewards': instance.stewards, - 'get_pos_status': instance.get_pos_status, + 'get_pos_status': instance.getPosStatus, 'key': instance.key, - 'create_date': instance.create_date, - 'modify_date': instance.modify_date, + 'create_date': instance.createDate, + 'modify_date': instance.modifyDate, 'trash': instance.trash, - 'user_id_foreign_key': instance.user_id_foreign_key, - 'address_id_foreign_key': instance.address_id_foreign_key, - 'user_bank_id_foreign_key': instance.user_bank_id_foreign_key, - 'wallet_id_foreign_key': instance.wallet_id_foreign_key, - 'provincial_government_id_key': instance.provincial_government_id_key, - 'identity_documents': instance.identity_documents, + 'user_id_foreign_key': instance.userIdForeignKey, + 'address_id_foreign_key': instance.addressIdForeignKey, + 'user_bank_id_foreign_key': instance.userBankIdForeignKey, + 'wallet_id_foreign_key': instance.walletIdForeignKey, + 'provincial_government_id_key': instance.provincialGovernmentIdKey, + 'identity_documents': instance.identityDocuments, 'active': instance.active, - 'city_number': instance.city_number, - 'city_name': instance.city_name, - 'guilds_id': instance.guilds_id, - 'license_number': instance.license_number, - 'guilds_name': instance.guilds_name, + '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.type_activity, - 'area_activity': instance.area_activity, - 'province_number': instance.province_number, - 'province_name': instance.province_name, + 'type_activity': instance.typeActivity, + 'area_activity': instance.areaActivity, + 'province_number': instance.provinceNumber, + 'province_name': instance.provinceName, 'steward': instance.steward, - 'has_pos': instance.has_pos, - 'centers_allocation': instance.centers_allocation, - 'kill_house_centers_allocation': instance.kill_house_centers_allocation, - 'allocation_limit': instance.allocation_limit, - 'limitation_allocation': instance.limitation_allocation, - 'registerar_role': instance.registerar_role, - 'registerar_fullname': instance.registerar_fullname, - 'registerar_mobile': instance.registerar_mobile, - 'kill_house_register': instance.kill_house_register, - 'steward_register': instance.steward_register, - 'guilds_room_register': instance.guilds_room_register, - 'pos_company_register': instance.pos_company_register, - 'province_accept_state': instance.province_accept_state, - 'province_message': instance.province_message, + 'has_pos': instance.hasPos, + 'centers_allocation': instance.centersAllocation, + 'kill_house_centers_allocation': instance.killHouseCentersAllocation, + 'allocation_limit': instance.allocationLimit, + 'limitation_allocation': instance.limitationAllocation, + 'registerar_role': instance.registerarRole, + 'registerar_fullname': instance.registerarFullname, + 'registerar_mobile': instance.registerarMobile, + 'kill_house_register': instance.killHouseRegister, + 'steward_register': instance.stewardRegister, + 'guilds_room_register': instance.guildsRoomRegister, + 'pos_company_register': instance.posCompanyRegister, + 'province_accept_state': instance.provinceAcceptState, + 'province_message': instance.provinceMessage, 'condition': instance.condition, - 'description_condition': instance.description_condition, - 'steward_active': instance.steward_active, - 'steward_allocation_limit': instance.steward_allocation_limit, - 'steward_limitation_allocation': instance.steward_limitation_allocation, + 'description_condition': instance.descriptionCondition, + 'steward_active': instance.stewardActive, + 'steward_allocation_limit': instance.stewardAllocationLimit, + 'steward_limitation_allocation': instance.stewardLimitationAllocation, 'license': instance.license, - 'license_form': instance.license_form, - 'license_file': instance.license_file, - 'reviewer_role': instance.reviewer_role, - 'reviewer_fullname': instance.reviewer_fullname, - 'reviewer_mobile': instance.reviewer_mobile, - 'checker_message': instance.checker_message, - 'final_accept': instance.final_accept, - 'temporary_registration': instance.temporary_registration, - 'created_by': instance.created_by, - 'modified_by': instance.modified_by, - 'user_bank_info': instance.user_bank_info, + 'license_form': instance.licenseForm, + 'license_file': instance.licenseFile, + 'reviewer_role': instance.reviewerRole, + 'reviewer_fullname': instance.reviewerFullname, + 'reviewer_mobile': instance.reviewerMobile, + 'checker_message': instance.checkerMessage, + 'final_accept': instance.finalAccept, + 'temporary_registration': instance.temporaryRegistration, + 'created_by': instance.createdBy, + 'modified_by': instance.modifiedBy, + 'user_bank_info': instance.userBankInfo, 'wallet': instance.wallet, 'cars': instance.cars, - 'user_level': instance.user_level, + 'user_level': instance.userLevel, }; _User _$UserFromJson(Map json) => _User( fullname: json['fullname'] as String?, - first_name: json['first_name'] as String?, - last_name: json['last_name'] as String?, + firstName: json['first_name'] as String?, + lastName: json['last_name'] as String?, mobile: json['mobile'] as String?, - national_id: json['national_id'] as String?, + nationalId: json['national_id'] as String?, city: json['city'] as String?, ); Map _$UserToJson(_User instance) => { 'fullname': instance.fullname, - 'first_name': instance.first_name, - 'last_name': instance.last_name, + 'first_name': instance.firstName, + 'last_name': instance.lastName, 'mobile': instance.mobile, - 'national_id': instance.national_id, + 'national_id': instance.nationalId, 'city': instance.city, }; @@ -333,14 +313,14 @@ _Address _$AddressFromJson(Map json) => _Address( ? null : Province.fromJson(json['city'] as Map), address: json['address'] as String?, - postal_code: json['postal_code'] as String?, + postalCode: json['postal_code'] as String?, ); Map _$AddressToJson(_Address instance) => { 'province': instance.province, 'city': instance.city, 'address': instance.address, - 'postal_code': instance.postal_code, + 'postal_code': instance.postalCode, }; _Province _$ProvinceFromJson(Map json) => @@ -360,14 +340,14 @@ Map _$ActivityToJson(_Activity instance) => { }; _PosStatus _$PosStatusFromJson(Map json) => _PosStatus( - len_active_sessions: (json['len_active_sessions'] as num?)?.toInt(), - has_pons: json['has_pons'] as bool?, - has_active_pons: json['has_active_pons'] as bool?, + lenActiveSessions: (json['len_active_sessions'] as num?)?.toInt(), + hasPons: json['has_pons'] as bool?, + hasActivePons: json['has_active_pons'] as bool?, ); Map _$PosStatusToJson(_PosStatus instance) => { - 'len_active_sessions': instance.len_active_sessions, - 'has_pons': instance.has_pons, - 'has_active_pons': instance.has_active_pons, + 'len_active_sessions': instance.lenActiveSessions, + 'has_pons': instance.hasPons, + 'has_active_pons': instance.hasActivePons, }; diff --git a/packages/chicken/lib/data/repositories/chicken_repository.dart b/packages/chicken/lib/data/repositories/chicken_repository.dart index a141760..d86de00 100644 --- a/packages/chicken/lib/data/repositories/chicken_repository.dart +++ b/packages/chicken/lib/data/repositories/chicken_repository.dart @@ -47,9 +47,9 @@ abstract class ChickenRepository { required int page, }); - Future getAllocatedMade({ + Future?> getAllocatedMade({ required String token, - required int page, + Map? queryParameters, }); Future confirmAllocation({ @@ -71,7 +71,7 @@ abstract class ChickenRepository { Future?> getGuilds({ required String token, - required bool isFree, + Map? queryParameters, }); Future getProfile({required String token}); diff --git a/packages/chicken/lib/data/repositories/chicken_repository_imp.dart b/packages/chicken/lib/data/repositories/chicken_repository_imp.dart index 88310be..3bf032b 100644 --- a/packages/chicken/lib/data/repositories/chicken_repository_imp.dart +++ b/packages/chicken/lib/data/repositories/chicken_repository_imp.dart @@ -106,14 +106,18 @@ class ChickenRepositoryImpl implements ChickenRepository { } @override - Future getAllocatedMade({ + Future?> getAllocatedMade({ required String token, - required int page, + Map? queryParameters, }) async { var res = await _httpClient.get( - '/steward-allocation/?search=filter&value=&role=Steward&page=$page&page_size=100', + '/steward-allocation/', + queryParameters:queryParameters, headers: {'Authorization': 'Bearer $token'}, - fromJson: AllocatedMadeModel.fromJson, + fromJson: (json) => PaginationModel.fromJson( + json, + (json) => AllocatedMadeModel.fromJson(json as Map), + ), ); return res.data; } @@ -168,12 +172,12 @@ class ChickenRepositoryImpl implements ChickenRepository { @override Future?> getGuilds({ required String token, - required bool isFree, + Map? queryParameters, }) async { var res = await _httpClient.get( - '/guilds/?role=Steward&free=$isFree', + '/guilds/?', + queryParameters: queryParameters, headers: {'Authorization': 'Bearer $token'}, - fromJsonList: (json) => json .map((item) => GuildModel.fromJson(item as Map)) .toList(), diff --git a/packages/chicken/lib/presentation/pages/entering_the_warehouse/string_utils.dart b/packages/chicken/lib/presentation/pages/entering_the_warehouse/string_utils.dart index 1fe6819..b7f8473 100644 --- a/packages/chicken/lib/presentation/pages/entering_the_warehouse/string_utils.dart +++ b/packages/chicken/lib/presentation/pages/entering_the_warehouse/string_utils.dart @@ -11,6 +11,14 @@ extension xStringUtils on String { get faItem => utilsMap[this] ?? this; + get buyerIsGuild { + final tmp = split('_'); + if (tmp.length > 1) { + return tmp.last == 'guild'; + } else { + return false; + } + } } Map utilsMap = { @@ -21,5 +29,5 @@ Map utilsMap = { 'free': 'آزاد', 'pending': 'در انتظار', 'accepted': 'تایید شده', - 'guild':'صنف' + 'guild': 'صنف', }; diff --git a/packages/chicken/lib/presentation/pages/out_of_province/logic.dart b/packages/chicken/lib/presentation/pages/out_of_province/logic.dart index 06c59a4..8606a54 100644 --- a/packages/chicken/lib/presentation/pages/out_of_province/logic.dart +++ b/packages/chicken/lib/presentation/pages/out_of_province/logic.dart @@ -10,7 +10,8 @@ import 'package:rasadyar_core/core.dart'; class OutOfProvinceLogic extends GetxController { var rootLogic = Get.find(); - Rxn allocatedMadeModel = Rxn(); + Rxn?> allocatedMadeModel = + Rxn?>(); RxList rolesProductsModel = RxList(); RxList guildsModel = [].obs; @@ -29,11 +30,16 @@ class OutOfProvinceLogic extends GetxController { safeCall( call: () async => await rootLogic.chickenRepository.getAllocatedMade( token: rootLogic.tokenService.accessToken.value!, - page: 1, + queryParameters: buildQueryParams( + page: 1, + pageSize: 20, + search: 'filter', + role: 'Steward', + ), ), onSuccess: (result) { if (result != null) { - allocatedMadeModel.value = result; + allocatedMadeModel.value = result.results; } }, onError: (error, stacktrace) {}, @@ -73,8 +79,7 @@ class OutOfProvinceLogic extends GetxController { call: () async => await rootLogic.chickenRepository.confirmAllAllocation( token: rootLogic.tokenService.accessToken.value!, allocationTokens: - allocatedMadeModel.value?.results?.map((e) => e.key!).toList() ?? - [], + allocatedMadeModel.value?.map((e) => e.key!).toList() ?? [], ), onSuccess: (result) { getAllocatedMade(); diff --git a/packages/chicken/lib/presentation/pages/root/logic.dart b/packages/chicken/lib/presentation/pages/root/logic.dart index 26603a0..4786e7c 100644 --- a/packages/chicken/lib/presentation/pages/root/logic.dart +++ b/packages/chicken/lib/presentation/pages/root/logic.dart @@ -6,6 +6,7 @@ import 'package:rasadyar_chicken/data/repositories/chicken_repository.dart'; import 'package:rasadyar_chicken/data/repositories/chicken_repository_imp.dart'; import 'package:rasadyar_chicken/presentation/pages/home/view.dart'; import 'package:rasadyar_chicken/presentation/pages/out_of_province/view.dart'; +import 'package:rasadyar_chicken/presentation/pages/sales_in_province/view.dart'; import 'package:rasadyar_chicken/presentation/utils/utils.dart'; import 'package:rasadyar_core/core.dart'; @@ -14,7 +15,7 @@ enum ErrorLocationType { serviceDisabled, permissionDenied, none } class RootLogic extends GetxController { RxInt currentPage = 2.obs; List pages = [ - Container(color: Colors.red), + SalesInProvincePage(), OutOfProvincePage(), HomePage(), Container(color: Colors.blue), diff --git a/packages/chicken/lib/presentation/pages/sales_in_province/logic.dart b/packages/chicken/lib/presentation/pages/sales_in_province/logic.dart index 90f6164..6a96717 100644 --- a/packages/chicken/lib/presentation/pages/sales_in_province/logic.dart +++ b/packages/chicken/lib/presentation/pages/sales_in_province/logic.dart @@ -11,7 +11,10 @@ import 'package:rasadyar_core/core.dart'; class SalesInProvinceLogic extends GetxController { var rootLogic = Get.find(); - Rxn allocatedMadeModel = Rxn(); + Rxn?> allocatedMadeModel = + Rxn?>(); + RxList isExpandedList = [].obs; + RxList rolesProductsModel = RxList(); RxList guildsModel = [].obs; @@ -86,15 +89,21 @@ class SalesInProvinceLogic extends GetxController { safeCall( call: () async => await rootLogic.chickenRepository.getAllocatedMade( token: rootLogic.tokenService.accessToken.value!, - page: currentPageAllocationsMade.value, + queryParameters: buildQueryParams( + page: currentPageAllocationsMade.value, + pageSize: 20, + search: 'filter', + role: 'Steward', + ), ), onSuccess: (result) { if (result != null) { if (isLoadingMoreAllocationsMade.value && - allocatedMadeModel.value?.results != null) { - allocatedMadeModel.value?.results?.addAll(result.results!); + allocatedMadeModel.value != null && + (allocatedMadeModel.value?.isNotEmpty ?? false)) { + allocatedMadeModel.value?.addAll(result.results!); } else { - allocatedMadeModel.value = result; + allocatedMadeModel.value = result.results; } } @@ -146,8 +155,7 @@ class SalesInProvinceLogic extends GetxController { call: () async => await rootLogic.chickenRepository.confirmAllAllocation( token: rootLogic.tokenService.accessToken.value!, allocationTokens: - allocatedMadeModel.value?.results?.map((e) => e.key!).toList() ?? - [], + allocatedMadeModel.value?.map((e) => e.key!).toList() ?? [], ), onSuccess: (result) { getAllocatedMade(); @@ -164,6 +172,7 @@ class SalesInProvinceLogic extends GetxController { onSuccess: (result) { if (result != null) { rolesProductsModel.value = result; + selectedProductModel.value = result.first; } }, onError: (error, stacktrace) {}, @@ -174,7 +183,10 @@ class SalesInProvinceLogic extends GetxController { safeCall( call: () async => await rootLogic.chickenRepository.getGuilds( token: rootLogic.tokenService.accessToken.value!, - isFree: saleType.value == 2 ? true : false, + queryParameters: buildQueryParams( + queryParams: {'free': saleType.value == 2 ? true : false}, + role: 'Steward', + ), ), onSuccess: (result) { if (result != null) { @@ -242,11 +254,12 @@ class SalesInProvinceLogic extends GetxController { ); } - - @override void dispose() { rootLogic.inventoryExpandedList.clear(); super.dispose(); } + + //TODO + void setEditData(AllocatedMadeModel item) {} } diff --git a/packages/chicken/lib/presentation/pages/sales_in_province/view.dart b/packages/chicken/lib/presentation/pages/sales_in_province/view.dart index d07bbfa..860201e 100644 --- a/packages/chicken/lib/presentation/pages/sales_in_province/view.dart +++ b/packages/chicken/lib/presentation/pages/sales_in_province/view.dart @@ -1,5 +1,7 @@ import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; import 'package:rasadyar_chicken/data/models/request/conform_allocation/conform_allocation.dart'; +import 'package:rasadyar_chicken/data/models/response/allocated_made/allocated_made.dart'; import 'package:rasadyar_chicken/data/models/response/guild/guild_model.dart'; import 'package:rasadyar_chicken/data/models/response/inventory/inventory_model.dart'; import 'package:rasadyar_chicken/data/models/response/roles_products/roles_products.dart'; @@ -14,23 +16,85 @@ class SalesInProvincePage extends GetView { @override Widget build(BuildContext context) { return Scaffold( - appBar: RAppBar(title: 'فروش در استان'), + appBar: RAppBar( + titleTextStyle: AppFonts.yekan16Bold.copyWith(color: Colors.white), + centerTitle: true, + hasBack: true, + onBackPressed: () { + Get.back(id: 1); + }, + leadingWidth: 155, + leading: Row( + mainAxisSize: MainAxisSize.min, + spacing: 6, + children: [ + Assets.vec.chickenSvg.svg( + width: 24, + height: 24, + colorFilter: const ColorFilter.mode( + Colors.white, + BlendMode.srcIn, + ), + ), + Text( + 'رصدطیور', + style: AppFonts.yekan16Bold.copyWith(color: Colors.white), + ), + ], + ), + additionalActions: [ + GestureDetector( + onTap: () { + // controller.searchIsSelected.value = !controller.searchIsSelected.value; + }, + child: Assets.vec.searchSvg.svg( + width: 24, + height: 24, + colorFilter: const ColorFilter.mode( + Colors.white, + BlendMode.srcIn, + ), + ), + ), + SizedBox(width: 8), + GestureDetector( + onTap: () { + // Get.bottomSheet(filterBottomSheet()); + }, + child: Assets.vec.filterOutlineSvg.svg( + width: 20, + height: 20, + colorFilter: const ColorFilter.mode( + Colors.white, + BlendMode.srcIn, + ), + ), + ), + SizedBox(width: 8), + ], + ), body: SingleChildScrollView( child: Column( children: [ + routePageWidget(), + inventoryWidget(), allocationsMade(), - SizedBox(height: 20), - RElevated( - text: 'ثبت توزیع/ فروش', - onPressed: () { - showAddBottomSheet(); - }, - ), + SizedBox(height: 40), ], ), ), + floatingActionButton: RFab.add( + onPressed: () { + Get.bottomSheet( + showAddBottomSheet(), + isScrollControlled: true, + backgroundColor: Colors.transparent, + ); + }, + ), + floatingActionButtonLocation: FloatingActionButtonLocation.startFloat, ); } @@ -48,7 +112,7 @@ class SalesInProvincePage extends GetView { ), ), SizedBox(height: 4), - /* ObxValue( + /* ObxValue( (data) => data.isEmpty ? Container( margin: const EdgeInsets.symmetric(vertical: 2), @@ -187,12 +251,12 @@ class SalesInProvincePage extends GetView { } Widget allocationsMade() { - return Padding( - padding: const EdgeInsets.symmetric(horizontal: 8.0), - child: Column( - children: [ - const SizedBox(height: 20), - Row( + return Column( + children: [ + const SizedBox(height: 20), + Padding( + padding: const EdgeInsets.symmetric(horizontal: 6), + child: Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Text( @@ -210,378 +274,613 @@ class SalesInProvincePage extends GetView { ), ], ), - SizedBox(height: 4), - ObxValue((data) { - if (data.value == null) { - return Container( - height: 80, - margin: const EdgeInsets.all(8), - padding: const EdgeInsets.all(12), - decoration: BoxDecoration( - color: Colors.white, - borderRadius: BorderRadius.circular(8), - border: Border.all(color: AppColor.blueNormal, width: 1), - ), - child: Center(child: CircularProgressIndicator()), - ); - } else if (data.value?.results?.isEmpty ?? true) { - return Container( - height: 80, - margin: const EdgeInsets.all(8), - padding: const EdgeInsets.all(12), - decoration: BoxDecoration( - color: Colors.white, - borderRadius: BorderRadius.circular(8), - border: Border.all(color: AppColor.blueNormal, width: 1), - ), - child: Center(child: Text('هیچ تخصیصات صورت نگرفته است ')), - ); - } else { - return Container( - margin: const EdgeInsets.symmetric(vertical: 2), - height: 700, - padding: const EdgeInsets.all(6), - child: ListView.separated( - padding: const EdgeInsets.all(8.0), - controller: controller.scrollControllerAllocationsMade, - itemCount: data.value?.results?.length ?? 0, - itemBuilder: (BuildContext context, int index) { - if (index == data.value!.results!.length) { - return Obx( - () => controller.isLoadingMoreAllocationsMade.value - ? const Padding( - padding: EdgeInsets.symmetric(vertical: 16), - child: Center( - child: CircularProgressIndicator(), - ), - ) - : const SizedBox(), - ); - } - final result = data.value!.results![index]; - return Card( - color: Colors.white, - margin: const EdgeInsets.symmetric(vertical: 4.0), - shape: RoundedRectangleBorder( - borderRadius: BorderRadius.circular(8), - side: const BorderSide( - color: AppColor.blueNormal, - width: 1, - ), - ), - child: Padding( - padding: const EdgeInsets.all(8.0), - child: Column( - mainAxisSize: MainAxisSize.min, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - buildRow('ردیف', '${index + 1}'), - buildRow( - 'تاریخ ثبت', - result.date!.formattedJalaliDate ?? 'N/A', - ), - buildRow( - 'نوع تخصیص', - result.allocation_type?.faAllocationType ?? 'N/A', - ), - buildRow( - 'مشخصات خریدار', - '${result.to_guilds?.user?.fullname} - ${result.to_guilds?.guilds_name}' ?? - 'N/A', - ), - buildRow( - 'مشخصات فروشنده', - result.steward?.user?.fullname ?? 'N/A', - ), - buildRow( - 'نوع فروش', - result.sell_type?.faItem ?? 'N/A', - ), - buildRow( - 'قیمت هر کیلو', - '${result.amount ?? 0} ریال ', - ), - buildRow( - 'قیمت کل', - '${result.total_amount ?? 0} ریال', - ), - buildRow( - 'وزن تخصیصی', - '${result.weight_of_carcasses?.toInt() ?? 0} کیلوگرم', - ), - buildRow( - 'کداحراز', - result.registration_code?.toString() ?? 'N/A', - ), - buildRow( - 'وضعیت کد احراز', - result.system_registration_code == true - ? "ارسال شده" - : "ارسال نشده" ?? 'N/A', - ), - buildRow( - 'افت وزن(کیلوگرم)', - result.weight_loss_of_carcasses - ?.toInt() - .toString() ?? - 'N/A', - ), - buildRow( - 'وضعیت', - result.receiver_state?.faItem ?? 'N/A', - ), - - Row( - spacing: 10, - children: [ - Expanded( - child: RElevated( - height: 40, - text: 'تایید', - onPressed: () { - ConformAllocation confromation = - ConformAllocation( - allocation_key: result.key, - number_of_carcasses: - result.number_of_carcasses, - weight_of_carcasses: result - .weight_of_carcasses - ?.toInt(), - amount: result.amount, - total_amount: result.total_amount, - ); - - controller.confirmAllocation( - confromation, - ); - }, - ), - ), - Expanded( - child: RElevated( - height: 40, - backgroundColor: AppColor.error, - text: 'رد', - onPressed: () { - controller.denyAllocation( - result.key ?? '', - ); - }, - ), - ), - ], - ), - ], - ), - ), + ), + ObxValue((data) { + if (data.value == null) { + return Container( + height: 80, + margin: const EdgeInsets.all(4), + padding: const EdgeInsets.all(12), + decoration: BoxDecoration( + color: Colors.white, + borderRadius: BorderRadius.circular(8), + border: Border.all(color: AppColor.blueNormal, width: 1), + ), + child: Center(child: CircularProgressIndicator()), + ); + } else if (data.value?.isEmpty ?? true) { + return Container( + height: 80, + margin: const EdgeInsets.all(8), + padding: const EdgeInsets.all(12), + decoration: BoxDecoration( + color: Colors.white, + borderRadius: BorderRadius.circular(8), + border: Border.all(color: AppColor.blueNormal, width: 1), + ), + child: Center(child: Text('هیچ تخصیصات صورت نگرفته است ')), + ); + } else { + return Container( + margin: const EdgeInsets.symmetric(vertical: 2), + child: ListView.separated( + padding: const EdgeInsets.all(8.0), + shrinkWrap: true, + controller: controller.scrollControllerAllocationsMade, + itemCount: data.value?.length ?? 0, + itemBuilder: (BuildContext context, int index) { + if (index == data.value!.length) { + return Obx( + () => controller.isLoadingMoreAllocationsMade.value + ? const Padding( + padding: EdgeInsets.symmetric(vertical: 8), + child: Center(child: CircularProgressIndicator()), + ) + : const SizedBox(), ); - }, - separatorBuilder: (BuildContext context, int index) => - SizedBox(height: 8), - ), + } + final result = data.value![index]; + return ObxValue((data) { + return allocationsMadeListItem( + expandList: controller.isExpandedList, + index: index, + item: result, + ); + }, controller.isExpandedList); + }, + separatorBuilder: (BuildContext context, int index) => + SizedBox(height: 8), + ), + ); + } + }, controller.allocatedMadeModel), + ], + ); + } + + Widget showAddBottomSheet() { + return BaseBottomSheet( + height: Get.height * 0.75, + child: Padding( + padding: EdgeInsets.only( + left: 16, + right: 16, + top: 16, + bottom: MediaQuery.of(Get.context!).viewInsets.bottom + 16, + ), + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + Text( + 'ثبت توزیع/ فروش', + style: AppFonts.yekan16Bold.copyWith(color: AppColor.blueNormal), + ), + const SizedBox(height: 12), + RTextField( + controller: TextEditingController(), + label: 'تاریخ', + enabled: false, + initText: Jalali.now().formatCompactDate(), + ), + const SizedBox(height: 12), + Material(type: MaterialType.transparency, child: productDropDown()), + const SizedBox(height: 12), + SizedBox( + height: 40, + child: ObxValue((data) { + return Row( + children: [ + Radio( + value: 1, + groupValue: controller.saleType.value, + onChanged: (value) { + controller.saleType.value = value!; + + controller.selectedGuildModel.value = null; + controller.selectedGuildModel.refresh(); + }, + ), + Text('فروش اختصاصی', style: AppFonts.yekan14), + SizedBox(width: 12), + Radio( + value: 2, + groupValue: controller.saleType.value, + onChanged: (value) { + controller.saleType.value = value!; + }, + ), + Text('فروش آزاد', style: AppFonts.yekan14), + ], + ); + }, controller.saleType), + ), + const SizedBox(height: 12), + + guildsDropDown(), + + const SizedBox(height: 12), + RTextField( + controller: controller.weightController, + keyboardType: TextInputType.number, + borderColor: AppColor.darkGreyLight, + inputFormatters: [ + FilteringTextInputFormatter.digitsOnly, + SeparatorInputFormatter(), + ], + + onChanged: (p0) { + controller.weight.value = int.tryParse(p0.clearComma) ?? 0; + }, + label: 'وزن لاشه', + ), + const SizedBox(height: 12), + RTextField( + controller: controller.pricePerKiloController, + borderColor: AppColor.darkGreyLight, + inputFormatters: [ + FilteringTextInputFormatter.digitsOnly, + SeparatorInputFormatter(), + ], + + onChanged: (p0) { + controller.pricePerKilo.value = int.tryParse(p0.clearComma) ?? 0; + }, + keyboardType: TextInputType.number, + label: 'قیمت هر کیلو', + ), + const SizedBox(height: 12), + ObxValue( + (p0) => RTextField( + enabled: false, + keyboardType: TextInputType.number, + inputFormatters: [ + FilteringTextInputFormatter.digitsOnly, + SeparatorInputFormatter(), + ], + borderColor: AppColor.darkGreyLight, + initText: controller.totalCost.value.toString().separatedByComma, + controller: controller.totalCostController, + label: 'هزینه کل', + ), + controller.totalCost, + ), + const SizedBox(height: 20), + ObxValue((data) { + return RElevated( + text: 'ثبت', + onPressed: data.value + ? () async{ + await controller.submitAllocation(); + controller.getAllocatedMade(); + Get.back(); + } + : null, ); - } - }, controller.allocatedMadeModel), + }, controller.isValid), + const SizedBox(height: 20), + ], + ), + ), + ); + } + + Widget guildsDropDown() { + return Obx(() { + final item = controller.selectedGuildModel.value; + return OverlayDropdownWidget( + key: ValueKey(item?.user?.fullname ?? ''), + items: controller.guildsModel, + onChanged: (value) { + controller.selectedGuildModel.value = value; + }, + selectedItem: item, + itemBuilder: (item) => Text( + item.user != null + ? '${item.steward == true ? 'مباشر' : 'صنف'} ${item.user!.fullname} (${item.user!.mobile})' + : 'بدون نام', + ), + labelBuilder: (item) => Text( + item?.user != null + ? '${item?.steward == true ? 'مباشر' : 'صنف'} ${item?.user!.fullname} (${item?.user!.mobile})' + : 'انتخاب مباشر/صنف', + ), + ); + }); + } + + Widget productDropDown() { + return Obx(() { + return OverlayDropdownWidget( + items: controller.rolesProductsModel, + onChanged: (value) { + controller.selectedProductModel.value = value; + }, + selectedItem: controller.selectedProductModel.value, + itemBuilder: (item) => Text(item.name ?? 'بدون نام'), + labelBuilder: (item) => Text(item?.name ?? 'انتخاب محصول'), + ); + }); + } + + Padding routePageWidget() { + return Padding( + padding: const EdgeInsets.symmetric(vertical: 4.0), + child: Row( + children: [ + SizedBox(width: 8), + RichText( + text: TextSpan( + style: AppFonts.yekan14.copyWith(color: AppColor.blueNormal), + children: [ + WidgetSpan( + child: Row( + children: [ + Assets.vec.cubeSearchSvg.svg( + width: 24, + height: 24, + colorFilter: const ColorFilter.mode( + AppColor.blueNormal, + BlendMode.srcIn, + ), + ), + SizedBox(width: 6), + ], + ), + ), + + TextSpan(text: 'داخل استان'), + TextSpan(text: '/'), + TextSpan(text: 'فروش'), + ], + ), + ), ], ), ); } - void showAddBottomSheet() { - Get.bottomSheet( - SafeArea( - child: BaseBottomSheet( - height: 700, - child: Padding( - padding: EdgeInsets.only( - left: 16, - right: 16, - top: 16, - bottom: MediaQuery.of(Get.context!).viewInsets.bottom + 16, - ), - child: Column( - mainAxisSize: MainAxisSize.min, - children: [ - Text( - 'ثبت توزیع/ فروش', - style: AppFonts.yekan16Bold.copyWith( - color: AppColor.blueNormal, + Widget allocationsMadeListItem({ + required RxList expandList, + required int index, + required AllocatedMadeModel item, + }) { + return GestureDetector( + onTap: () { + if (expandList.contains(index)) { + controller.isExpandedList.remove(index); + } else { + controller.isExpandedList.add(index); + } + }, + child: Container( + width: Get.width, + margin: const EdgeInsets.fromLTRB(0, 0, 10, 0), + decoration: BoxDecoration( + color: getTintColor(item), + borderRadius: BorderRadius.circular(8), + ), + child: AnimatedSize( + duration: Duration(milliseconds: 400), + alignment: Alignment.center, + child: Stack( + clipBehavior: Clip.none, + alignment: Alignment.centerRight, + children: [ + AnimatedSize( + duration: Duration(milliseconds: 300), + child: Container( + width: Get.width - 30, + alignment: Alignment.center, + decoration: BoxDecoration( + color: Colors.transparent, + borderRadius: BorderRadius.circular(8), + border: Border.all(width: 2, color: getTintColor(item)), + ), + child: Row( + children: [ + Expanded( + child: AnimatedCrossFade( + alignment: Alignment.center, + firstChild: Container( + height: 75, + decoration: BoxDecoration( + color: Colors.white, + borderRadius: BorderRadius.only( + bottomLeft: Radius.zero, + bottomRight: Radius.circular(8), + topLeft: Radius.zero, + topRight: Radius.circular(8), + ), + ), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + + children: [ + SizedBox(width: 12), + + Expanded( + flex: 2, + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + spacing: 4, + children: [ + Text( + item.steward?.user?.fullname ?? 'N/A', + textAlign: TextAlign.center, + style: AppFonts.yekan14.copyWith( + color: AppColor.blueNormal, + ), + ), + + SizedBox(height: 2), + Text( + item.createDate?.formattedJalaliDate, + textAlign: TextAlign.center, + style: AppFonts.yekan14.copyWith( + color: AppColor.bgDark, + ), + ), + ], + ), + ), + + SizedBox(width: 8), + Expanded( + flex: 2, + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + spacing: 4, + children: [ + Text( + '${item.weightOfCarcasses.separatedByComma} Kg', + textAlign: TextAlign.center, + style: AppFonts.yekan12.copyWith( + color: AppColor.bgDark, + ), + ), + Text( + '${item.amount.separatedByComma} ریال', + textAlign: TextAlign.center, + style: AppFonts.yekan12.copyWith( + color: AppColor.darkGreyDark, + ), + ), + ], + ), + ), + Expanded( + flex: 1, + child: Text( + '${item.allocationType?.faAllocationType}', + textAlign: TextAlign.center, + style: AppFonts.yekan10.copyWith( + color: AppColor.darkGreyDark, + ), + ), + ), + + SizedBox(width: 8), + ], + ), + ), + secondChild: Container( + padding: EdgeInsets.fromLTRB(8, 12, 14, 12), + + decoration: BoxDecoration( + color: Colors.white, + borderRadius: BorderRadius.circular(8), + ), + child: Column( + spacing: 8, + children: [ + Row( + mainAxisAlignment: + MainAxisAlignment.spaceBetween, + children: [ + GestureDetector( + onTap: () { + controller.setEditData(item); + //TODO + /* Get.bottomSheet( + addOrEditBuyerBottomSheet(true), + isScrollControlled: true, + ).whenComplete(() { + controller.resetSubmitForm(); + });*/ + }, + child: Assets.vec.editSvg.svg( + width: 20, + height: 20, + colorFilter: ColorFilter.mode( + AppColor.blueNormal, + BlendMode.srcIn, + ), + ), + ), + + Text( + item.allocationType?.faAllocationType, + textAlign: TextAlign.center, + style: AppFonts.yekan16.copyWith( + color: AppColor.greenDark, + ), + ), + + SizedBox(), + ], + ), + + buildRow( + 'تاریخ ثبت', + item.date!.formattedJalaliDate ?? 'N/A', + ), + buildRow( + 'نام و نام خانوادگی خریدار', + getBuyerInformation(item)?.user?.fullname ?? + 'N/A', + ), + buildRow( + 'شماره خریدار', + getBuyerInformation(item)?.user?.mobile ?? + 'N/A', + ), + buildRow( + 'نوع فروش', + item.sellType?.faItem ?? 'N/A', + ), + buildRow( + 'قیمت هر کیلو', + '${item.amount.separatedByComma ?? 0} ریال ', + ), + buildRow( + 'قیمت کل', + '${item.totalAmount.separatedByComma ?? 0} ریال', + ), + buildRow( + 'وزن تخصیصی', + '${item.weightOfCarcasses?.toInt().separatedByComma ?? 0} کیلوگرم', + ), + buildRow( + 'کداحراز', + item.registrationCode?.toString() ?? 'N/A', + ), + buildRow( + 'وضعیت کد احراز', + item.systemRegistrationCode == true + ? "ارسال شده" + : "ارسال نشده" ?? 'N/A', + ), + buildRow( + 'افت وزن(کیلوگرم)', + item.weightLossOfCarcasses + ?.toInt() + .toString() ?? + 'N/A', + ), + + Row( + spacing: 10, + children: [ + Expanded( + child: RElevated( + backgroundColor: AppColor.greenNormal, + height: 40, + text: 'تایید', + textStyle: AppFonts.yekan18.copyWith( + color: Colors.white, + ), + onPressed: () { + ConformAllocation confromation = + ConformAllocation( + allocation_key: item.key, + number_of_carcasses: + item.numberOfCarcasses, + weight_of_carcasses: item + .weightOfCarcasses + ?.toInt(), + amount: item.amount, + total_amount: item.totalAmount, + ); + + controller.confirmAllocation( + confromation, + ); + }, + ), + ), + Expanded( + child: ROutlinedElevated( + height: 40, + borderColor: AppColor.error, + text: 'رد', + textStyle: AppFonts.yekan18.copyWith( + color: AppColor.error, + ), + onPressed: () { + controller.denyAllocation( + item.key ?? '', + ); + }, + ), + ), + ], + ), + ], + ), + ), + crossFadeState: expandList.contains(index) + ? CrossFadeState.showSecond + : CrossFadeState.showFirst, + duration: Duration(milliseconds: 300), + ), + ), + Container( + width: 20, + child: Center( + child: RotatedBox( + quarterTurns: 3, + child: Text( + item.state?.faItem, + style: AppFonts.yekan8, + textAlign: TextAlign.center, + ), + ), + ), + ), + ], ), ), - const SizedBox(height: 12), - RTextField( - controller: TextEditingController(), - label: 'تاریخ', - enabled: false, - initText: Jalali.now().formatCompactDate(), - ), - const SizedBox(height: 12), - Material( - type: MaterialType.transparency, - child: productDropDown(), - ), - const SizedBox(height: 12), - SizedBox( - height: 40, - child: ObxValue((data) { - return Row( - children: [ - Radio( - value: 1, - groupValue: controller.saleType.value, - onChanged: (value) { - controller.saleType.value = value!; - }, - ), - Text('فروش اختصاصی', style: AppFonts.yekan14), - SizedBox(width: 12), - Radio( - value: 2, - groupValue: controller.saleType.value, - onChanged: (value) { - controller.saleType.value = value!; - }, - ), - Text('فروش آزاد', style: AppFonts.yekan14), - ], - ); - }, controller.saleType), - ), - const SizedBox(height: 12), + ), - Material( - type: MaterialType.transparency, - child: guildsDropDown(), - ), - - const SizedBox(height: 12), - RTextField( - controller: controller.weightController, - keyboardType: TextInputType.number, - onChanged: (p0) { - controller.weight.value = int.tryParse(p0) ?? 0; - }, - label: 'وزن لاشه', - ), - const SizedBox(height: 12), - RTextField( - controller: controller.pricePerKiloController, - onChanged: (p0) { - controller.pricePerKilo.value = int.tryParse(p0) ?? 0; - }, - keyboardType: TextInputType.number, - label: 'قیمت هر کیلو', - ), - const SizedBox(height: 12), - ObxValue( - (p0) => RTextField( - enabled: false, - keyboardType: TextInputType.number, - initText: controller.totalCost.value.toString(), - controller: controller.totalCostController, - label: 'هزینه کل', + Positioned( + right: -12, + child: Container( + width: index < 999 ? 24 : null, + height: index < 999 ? 24 : null, + padding: EdgeInsets.all(2), + decoration: BoxDecoration( + color: AppColor.greenLightHover, + borderRadius: BorderRadius.circular(4), + border: Border.all( + width: 0.50, + color: AppColor.greenDarkActive, + ), + ), + alignment: Alignment.center, + child: Text( + (index + 1).toString(), + style: AppFonts.yekan12.copyWith(color: Colors.black), ), - controller.totalCost, ), - const SizedBox(height: 20), - ObxValue((data) { - return RElevated( - text: 'ثبت', - onPressed: data.value - ? () { - controller.submitAllocation(); - } - : null, - ); - }, controller.isValid), - const SizedBox(height: 20), - ], - ), + ), + ], ), ), ), - isScrollControlled: true, - backgroundColor: Colors.transparent, ); } - Widget guildsDropDown() { - return ObxValue((p0) { - return DropdownButtonFormField( - value: controller.selectedGuildModel.value, - decoration: const InputDecoration( - labelText: 'انتخاب مباشر/صنف', - border: OutlineInputBorder(), - ), - isExpanded: true, - items: controller.guildsModel.map((guild) { - return DropdownMenuItem( - value: guild, - child: Text( - '${guild.steward == true ? 'مباشر' : 'صنف'} ${guild.user?.fullname} (${guild.user?.mobile})', - ), - ); - }).toList(), - onChanged: (value) { - if (value != null) { - controller.setSelectedGuild(value); - controller.checkVerfication(); - } - }, - ); - }, controller.guildsModel); - /* return GetBuilder( - builder: (controller) { - return DropdownButtonFormField( - value: controller.selectedGuildModel.value, - decoration: const InputDecoration( - labelText: 'انتخاب مباشر/صنف', - border: OutlineInputBorder(), - ), - isExpanded: true, - items: controller.guildsModel.map((guild) { - return DropdownMenuItem( - value: guild, - child: Text( - '${guild.steward == true ? 'مباشر' : 'صنف'} ${guild.user - ?.fullname} (${guild.user?.mobile})', - ), - ); - }).toList(), - onChanged: (value) { - if (value != null) { - controller.setSelectedGuild(value); - } - }, - ); - }, - );*/ + Color getTintColor(AllocatedMadeModel model) { + Color res; + + if (model.receiverState == 'pending') { + res = AppColor.yellowNormal; + } else if (model.receiverState == 'approved') { + res = AppColor.greenLightActive; + } else if (model.receiverState == 'rejected') { + res = AppColor.redLight; + } else { + res = AppColor.blueLight; + } + + return res; } - Widget productDropDown() { - return GetBuilder( - builder: (controller) { - return DropdownButtonFormField( - value: controller.selectedProductModel.value, - decoration: const InputDecoration( - labelText: 'انتخاب محصول', - border: OutlineInputBorder(), - ), - isExpanded: true, - items: controller.rolesProductsModel.map((guild) { - return DropdownMenuItem( - value: guild, - child: Text('${guild.name}'), - ); - }).toList(), - onChanged: (value) { - if (value != null) { - controller.setSelectedProduct(value); - controller.checkVerfication(); - } - }, - ); - }, - ); + Steward? getBuyerInformation(AllocatedMadeModel model) { + if (model.allocationType?.buyerIsGuild) { + return model.toGuilds; + } else { + return model.steward; + } } } diff --git a/packages/chicken/lib/presentation/pages/sales_out_of_province/view.dart b/packages/chicken/lib/presentation/pages/sales_out_of_province/view.dart index 1caaf43..1459091 100644 --- a/packages/chicken/lib/presentation/pages/sales_out_of_province/view.dart +++ b/packages/chicken/lib/presentation/pages/sales_out_of_province/view.dart @@ -106,272 +106,11 @@ class SalesOutOfProvincePage extends GetView { ), ], ), - ), ); }, controller.currentIndex); } - - Widget salePage(){ - return SizedBox(); - } - -/* - - Widget saleListWidget() { - return ObxValue((data) { - switch (data.value.status) { - case Status.initial: - case Status.loading: - return Center(child: CupertinoActivityIndicator()); - case Status.success: - return ListView.separated( - shrinkWrap: true, - physics: BouncingScrollPhysics(), - padding: EdgeInsets.fromLTRB(8, 8, 18, 80), - itemBuilder: (context, index) { - return ObxValue( - (expandList) => saleListItem(expandList: expandList, index: index, item: data.value.data![index]), - controller.isExpandedList, - ); - }, - separatorBuilder: (context, index) => SizedBox(height: 8), - itemCount: data.value.data?.length ?? 0, - ); - case Status.error: - return Center( - child: Text( - data.value.message ?? 'خطا در دریافت اطلاعات', - style: AppFonts.yekan16.copyWith(color: AppColor.error), - ), - ); - case Status.empty: - return emptyWidget(); - } - }, controller.purchaseOutOfProvinceList); - } -*/ - - - -/* GestureDetector saleListItem({required RxList expandList, required int index, required StewardFreeBar item}) { - return GestureDetector( - onTap: () { - if (expandList.contains(index)) { - controller.isExpandedList.remove(index); - } else { - controller.isExpandedList.add(index); - } - }, - child: AnimatedSize( - duration: Duration(milliseconds: 400), - alignment: Alignment.center, - child: Stack( - clipBehavior: Clip.none, - alignment: Alignment.centerRight, - children: [ - AnimatedSize( - duration: Duration(milliseconds: 300), - child: Container( - width: Get.width - 30, - alignment: Alignment.center, - decoration: BoxDecoration( - color: Colors.transparent, - borderRadius: BorderRadius.circular(8), - border: Border.all(width: 0.5, color: AppColor.darkGreyNormal), - ), - child: AnimatedCrossFade( - alignment: Alignment.center, - firstChild: Padding( - padding: const EdgeInsets.symmetric(vertical: 10), - child: Row( - mainAxisAlignment: MainAxisAlignment.spaceEvenly, - children: [ - SizedBox(width: 12), - Expanded( - flex: 2, - child: Text( - item.date?.formattedJalaliDate ?? 'N/A', - textAlign: TextAlign.center, - style: AppFonts.yekan14.copyWith(color: AppColor.bgDark), - ), - ), - Expanded( - flex: 3, - child: Text( - item.killHouseName ?? 'N/A', - textAlign: TextAlign.center, - style: AppFonts.yekan12.copyWith(color: AppColor.blueNormal), - ), - ), - SizedBox(width: 8,), - Expanded( - flex: 2, - child: Column( - children: [ - Text( - '${item.weightOfCarcasses?.separatedByComma}kg', - textAlign: TextAlign.left, - style: AppFonts.yekan12.copyWith(color: AppColor.blueNormal), - ), - - SizedBox(height: 2,), - Visibility( - visible: item.product?.name?.contains('مرغ گرم') ?? false, - child: Assets.vec.hotChickenSvg.svg(width: 24, - height: 24, - colorFilter: ColorFilter.mode(AppColor.blueNormal, BlendMode.srcIn))), - - ], - ), - ), - Expanded( - flex: 2, - child: Text( - '${item.province}\n${item.city}', - textAlign: TextAlign.center, - style: AppFonts.yekan12.copyWith(color: AppColor.bgDark), - ), - ), - Icon(CupertinoIcons.chevron_down, size: 12), - SizedBox(width: 8), - ], - ), - ), - secondChild: Container( - padding: EdgeInsets.fromLTRB(8, 12, 14, 12), - - decoration: BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(8)), - child: Column( - spacing: 8, - children: [ - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GestureDetector( - onTap: () { - controller.setEditData(item); - Get.bottomSheet( - addPurchasedInformationBottomSheet(true), - isScrollControlled: true, - ).whenComplete(() { - controller.resetSubmitForm(); - }); - }, - child: Assets.vec.editSvg.svg( - width: 20, - height: 20, - colorFilter: ColorFilter.mode(AppColor.blueNormal, BlendMode.srcIn), - ), - ), - - Text( - '${item.province}-${item.city}', - textAlign: TextAlign.center, - style: AppFonts.yekan16.copyWith(color: AppColor.greenDark), - ), - - GestureDetector( - onTap: () { - // buildDeleteDialog( - // onConfirm: () => controller.deleteStewardPurchaseOutOfProvince(item.key!), - // ); - }, - child: Assets.vec.trashSvg.svg( - width: 20, - height: 20, - colorFilter: ColorFilter.mode(AppColor.error, BlendMode.srcIn), - ), - ), - ], - ), - 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: buildRow('تاریخ', item.date?.formattedJalaliDateYHMS ?? 'N/A'), - ), - - buildRow('مشخصات فروشنده', '${item.killHouseName} - ${item.killHouseMobile ?? 'N/A'}'), - buildRow('محصول', item.product?.name ?? 'N/A'), - buildRow('وزن خریداری شده', '${item.weightOfCarcasses?.separatedByComma} کیلوگرم'), - Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - GestureDetector( - 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; - print('Loading progress: $loadingProgress'); - return CupertinoActivityIndicator(); - }, - ), - ], - ), - ), - ); - }, - child: Text( - 'مشاهده بارنامه', style: AppFonts.yekan14.copyWith(color: AppColor.blueNormal)), - ), - Icon(CupertinoIcons.chevron_up, size: 12), - ], - ), - ], - ), - ), - crossFadeState: expandList.contains(index) ? CrossFadeState.showSecond : CrossFadeState.showFirst, - duration: Duration(milliseconds: 300), - ), - ), - ), - Positioned( - right: -12, - child: Container( - width: index < 999 ? 24 : null, - height: index < 999 ? 24 : null, - padding: EdgeInsets.all(2), - decoration: BoxDecoration( - color: AppColor.greenLightHover, - borderRadius: BorderRadius.circular(4), - border: Border.all(width: 0.50, color: AppColor.greenDarkActive), - ), - alignment: Alignment.center, - child: Text((index + 1).toString(), style: AppFonts.yekan12.copyWith(color: Colors.black)), - ), - ), - ], - ), - ), - ); - }*/ - Row routePageWidget() { return Row( children: [ @@ -431,246 +170,6 @@ class SalesOutOfProvincePage extends GetView { ); } -/* Widget addPurchasedInformationBottomSheet([bool isOnEdit = false]) { - return BaseBottomSheet( - child: SingleChildScrollView( - child: Form( - key: controller.formKey, - child: Column( - spacing: 16, - children: [ - Text( - isOnEdit ? 'ویرایش اطلاعات خرید' : 'ثبت اطلاعات خرید', - style: AppFonts.yekan16Bold.copyWith(color: AppColor.darkGreyDarkHover), - ), - _productTypeWidget(), - RTextField( - controller: controller.sellerNameController, - label: 'نام فروشنده', - borderColor: AppColor.darkGreyLight, - ), - RTextField( - controller: controller.sellerPhoneController, - label: 'تلفن فروشنده', - keyboardType: TextInputType.phone, - borderColor: AppColor.darkGreyLight, - maxLength: 11, - validator: (value) { - if (value == null || value.isEmpty) { - return 'لطفاً شماره موبایل را وارد کنید'; - } - // حذف کاماها برای اعتبارسنجی - String cleaned = value.replaceAll(',', ''); - if (cleaned.length != 11) { - return 'شماره موبایل باید ۱۱ رقم باشد'; - } - if (!cleaned.startsWith('09')) { - return 'شماره موبایل باید با 09 شروع شود'; - } - return null; - }, - ), - _provinceWidget(), - _cityWidget(), - RTextField( - controller: controller.carcassWeightController, - label: 'وزن لاشه', - keyboardType: TextInputType.number, - borderColor: AppColor.darkGreyLight, - inputFormatters: [FilteringTextInputFormatter.digitsOnly, SeparatorInputFormatter()], - ), - _imageCarcasesWidget(isOnEdit), - submitButtonWidget(isOnEdit), - SizedBox(), - ], - ), - ), - ), - ); - }*/ - -/* Widget submitButtonWidget(bool isOnEdit) { - return ObxValue((data) { - return RElevated( - text: isOnEdit ? 'ویرایش' : 'ثبت خرید', - onPressed: data.value - ? () async { - var res = await controller.createStewardPurchaseOutOfProvince(); - if (res) { - Get.back(); - } - } - : null, - height: 40, - ); - }, controller.isSubmitButtonEnabled); - }*/ - - Widget _productTypeWidget() { - tLog(controller.outOfTheProvinceLogic.rolesProductsModel); - iLog(controller.selectedProduct.value); - return Obx(() { - return OverlayDropdownWidget( - items: controller.outOfTheProvinceLogic.rolesProductsModel, - onChanged: (value) { - controller.selectedProduct.value = value; - }, - selectedItem: controller.selectedProduct.value, - initialValue: controller.selectedProduct.value, - itemBuilder: (item) => Text(item.name ?? 'بدون نام'), - labelBuilder: (item) => Text(item?.name ?? 'انتخاب محصول'), - ); - }); - } - - Widget _provinceWidget() { - return Obx(() { - return OverlayDropdownWidget( - items: controller.rootLogic.provinces, - onChanged: (value) { - controller.selectedProvince.value = value; - print('Selected Product: ${value.name}'); - }, - selectedItem: controller.selectedProvince.value, - itemBuilder: (item) => Text(item.name ?? 'بدون نام'), - labelBuilder: (item) => Text(item?.name ?? 'انتخاب استان'), - ); - }); - } - - Widget _cityWidget() { - return ObxValue((data) { - return OverlayDropdownWidget( - items: data, - onChanged: (value) { - controller.selectedCity.value = value; - print('Selected Product: ${value.name}'); - }, - selectedItem: controller.selectedCity.value, - itemBuilder: (item) => Text(item.name ?? 'بدون نام'), - labelBuilder: (item) => Text(item?.name ?? 'انتخاب شهر'), - ); - }, controller.cites); - } - -/* SizedBox _imageCarcasesWidget(bool isOnEdit) { - return SizedBox( - width: Get.width, - height: 250, - child: Card( - color: Colors.white, - child: Padding( - padding: const EdgeInsets.all(16.0), - child: Column( - children: [ - Expanded( - child: ObxValue((data) { - return Container( - width: Get.width, - decoration: BoxDecoration(color: AppColor.lightGreyNormal, borderRadius: BorderRadius.circular(8)), - child: Center( - child: isOnEdit - ? Image.network(controller.editImageUrl.value ?? '') - : data.value == null - ? Assets.images.placeHolder.image(height: 150, width: 200) - : Image.file(File(data.value!.path), fit: BoxFit.cover), - ), - ); - }, controller.selectedImage), - ), - SizedBox(height: 15), - Container( - width: Get.width, - height: 40, - child: Row( - crossAxisAlignment: CrossAxisAlignment.center, - children: [ - Text('تصویر بار', style: AppFonts.yekan16Bold.copyWith(color: AppColor.blueNormal)), - Spacer(), - GestureDetector( - onTap: () async { - controller.selectedImage.value = await controller.imagePicker.pickImage( - source: ImageSource.camera, - imageQuality: 60, - maxWidth: 1080, - maxHeight: 720, - ); - }, - child: Container( - decoration: ShapeDecoration( - color: AppColor.blueNormal, - shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(8)), - ), - padding: EdgeInsetsGeometry.symmetric(horizontal: 6, vertical: 4), - child: Row( - crossAxisAlignment: CrossAxisAlignment.center, - children: [ - Text('دوربین', style: AppFonts.yekan14.copyWith(color: Colors.white)), - SizedBox(width: 8), - Icon(CupertinoIcons.camera, color: Colors.white), - ], - ), - ), - ), - SizedBox(width: 16), - GestureDetector( - onTap: () async { - controller.selectedImage.value = await controller.imagePicker.pickImage( - source: ImageSource.gallery, - imageQuality: 60, - maxWidth: 1080, - maxHeight: 720, - ); - }, - child: Container( - decoration: ShapeDecoration( - color: AppColor.blueNormal, - shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(8)), - ), - padding: EdgeInsetsGeometry.symmetric(horizontal: 6, vertical: 4), - child: Row( - crossAxisAlignment: CrossAxisAlignment.center, - children: [ - Text('گالری', style: AppFonts.yekan14.copyWith(color: Colors.white)), - SizedBox(width: 8), - Icon(CupertinoIcons.photo, color: Colors.white), - ], - ), - ), - ), - ], - ), - ), - ], - ), - ), - ), - ); - }*/ - -/* Future buildDeleteDialog({required Future Function() onConfirm}) async { - await Get.defaultDialog( - title: 'حذف خرید', - middleText: 'آیا از حذف این خرید مطمئن هستید؟', - confirm: ElevatedButton( - style: ElevatedButton.styleFrom(backgroundColor: AppColor.error, foregroundColor: Colors.white), - onPressed: () async { - await onConfirm(); - Get.back(); - }, - child: Text('بله'), - ), - cancel: ElevatedButton( - onPressed: () { - Get.back(); - }, - child: Text('خیر'), - ), - ).whenComplete(() => controller.getStewardPurchaseOutOfProvince()); - } - -*/ - Widget filterBottomSheet() { return BaseBottomSheet( height: 250, @@ -806,5 +305,4 @@ class SalesOutOfProvincePage extends GetView { ); } - } diff --git a/packages/core/lib/utils/map_utils.dart b/packages/core/lib/utils/map_utils.dart index 39e63c4..a313a1e 100644 --- a/packages/core/lib/utils/map_utils.dart +++ b/packages/core/lib/utils/map_utils.dart @@ -28,9 +28,8 @@ Map buildQueryParams({ params['search'] = search; } - if (value != null) { - params['value'] = value; - } + params['value'] = value ?? ''; + if (page != null) { params['page'] = page; diff --git a/packages/core/lib/utils/string_utils.dart b/packages/core/lib/utils/string_utils.dart index 36f527b..555bcbe 100644 --- a/packages/core/lib/utils/string_utils.dart +++ b/packages/core/lib/utils/string_utils.dart @@ -1,11 +1,13 @@ import 'package:intl/intl.dart'; extension XString on String { - String get separatedByComma { + String get separatedByComma { final formatter = NumberFormat('#,###'); - return formatter.format(this); + final number = num.tryParse(this); + return number != null ? formatter.format(number) : this; } - get clearComma{ + + get clearComma { return replaceAll(RegExp(r'\D'), ''); } }