diff --git a/packages/chicken/lib/data/data_source/remote/chicken/chicken_remote.dart b/packages/chicken/lib/data/data_source/remote/chicken/chicken_remote.dart index 5c97a3e..41492d8 100644 --- a/packages/chicken/lib/data/data_source/remote/chicken/chicken_remote.dart +++ b/packages/chicken/lib/data/data_source/remote/chicken/chicken_remote.dart @@ -26,10 +26,10 @@ import 'package:rasadyar_chicken/data/models/response/waiting_arrival/waiting_ar import 'package:rasadyar_core/core.dart'; abstract class ChickenRemoteDatasource { - Future?> getRolesProduct({ + Future?> getRolesProducts({ required String token, - required String role, - CancelToken? cancelToken, + CancelToken? cancelToken, + Map? queryParameters, }); Future getKillHouseDistributionInfo({ required String token, @@ -75,11 +75,6 @@ abstract class ChickenRemoteDatasource { required List allocationTokens, }); - Future?> getRolesProducts({ - required String token, - Map? queryParameters, - }); - Future?> getGuilds({ required String token, Map? queryParameters, diff --git a/packages/chicken/lib/data/data_source/remote/chicken/chicken_remote_imp.dart b/packages/chicken/lib/data/data_source/remote/chicken/chicken_remote_imp.dart index f3f4de9..96885b3 100644 --- a/packages/chicken/lib/data/data_source/remote/chicken/chicken_remote_imp.dart +++ b/packages/chicken/lib/data/data_source/remote/chicken/chicken_remote_imp.dart @@ -32,24 +32,6 @@ class ChickenRemoteDatasourceImp implements ChickenRemoteDatasource { ChickenRemoteDatasourceImp(this._httpClient); - @override - Future?> getRolesProduct({ - required String token, - required String role, - CancelToken? cancelToken, - }) async { - var res = await _httpClient.get( - '/roles-products/?role=$role', - headers: {'Authorization': 'Bearer $token'}, - queryParameters: {'role': role}, - fromJsonList: (json) => (json) - .map((item) => ProductModel.fromJson(item as Map)) - .toList(), - ); - - return res.data; - } - @override Future getKillHouseDistributionInfo({ required String token, @@ -178,11 +160,13 @@ class ChickenRemoteDatasourceImp implements ChickenRemoteDatasource { @override Future?> getRolesProducts({ required String token, + CancelToken? cancelToken, Map? queryParameters, }) async { var res = await _httpClient.get( '/roles-products/', headers: {'Authorization': 'Bearer $token'}, + cancelToken: cancelToken, queryParameters: queryParameters, fromJsonList: (json) => json .map((item) => ProductModel.fromJson(item as Map)) diff --git a/packages/chicken/lib/data/data_source/remote/kill_house/kill_house_remote.dart b/packages/chicken/lib/data/data_source/remote/kill_house/kill_house_remote.dart index f155cb7..b84f17b 100644 --- a/packages/chicken/lib/data/data_source/remote/kill_house/kill_house_remote.dart +++ b/packages/chicken/lib/data/data_source/remote/kill_house/kill_house_remote.dart @@ -2,14 +2,11 @@ import 'package:rasadyar_chicken/data/models/kill_house_module/register_request/ import 'package:rasadyar_chicken/data/models/kill_house_module/register_request/response/kill_house/kill_house_response.dart'; import 'package:rasadyar_chicken/data/models/kill_house_module/register_request/response/kill_request_list/kill_request_list.dart' as listModel; -import 'package:rasadyar_chicken/data/models/kill_house_module/warehouse_and_distribution/response/kill_house_sales_info_dashboard.dart'; +import 'package:rasadyar_chicken/data/models/kill_house_module/warehouse_and_distribution/response/kill_house_bars/kill_house_bars_response.dart'; +import 'package:rasadyar_chicken/data/models/kill_house_module/warehouse_and_distribution/response/kill_house_sales_info_dashboard/kill_house_sales_info_dashboard.dart'; import 'package:rasadyar_core/core.dart'; abstract class KillHouseRemoteDataSource { - - - - //region requestKill Future?> getKillHouseList({ required String token, @@ -45,9 +42,10 @@ abstract class KillHouseRemoteDataSource { Map? queryParameters, }); - - - + Future?> getBarsForKillHouse({ + required String token, + Map? queryParameters, + }); //endregion } diff --git a/packages/chicken/lib/data/data_source/remote/kill_house/kill_house_remote_impl.dart b/packages/chicken/lib/data/data_source/remote/kill_house/kill_house_remote_impl.dart index d5c0264..a1282f6 100644 --- a/packages/chicken/lib/data/data_source/remote/kill_house/kill_house_remote_impl.dart +++ b/packages/chicken/lib/data/data_source/remote/kill_house/kill_house_remote_impl.dart @@ -3,7 +3,8 @@ import 'package:rasadyar_chicken/data/models/kill_house_module/register_request/ import 'package:rasadyar_chicken/data/models/kill_house_module/register_request/response/kill_house/kill_house_response.dart'; import 'package:rasadyar_chicken/data/models/kill_house_module/register_request/response/kill_request_list/kill_request_list.dart' as listModel; -import 'package:rasadyar_chicken/data/models/kill_house_module/warehouse_and_distribution/response/kill_house_sales_info_dashboard.dart'; +import 'package:rasadyar_chicken/data/models/kill_house_module/warehouse_and_distribution/response/kill_house_bars/kill_house_bars_response.dart'; +import 'package:rasadyar_chicken/data/models/kill_house_module/warehouse_and_distribution/response/kill_house_sales_info_dashboard/kill_house_sales_info_dashboard.dart'; import 'package:rasadyar_core/core.dart'; class KillHouseRemoteDataSourceImpl extends KillHouseRemoteDataSource { @@ -109,5 +110,24 @@ class KillHouseRemoteDataSourceImpl extends KillHouseRemoteDataSource { return res.data; } + @override + Future?> getBarsForKillHouse({ + required String token, + Map? queryParameters, + }) async { + var res = await _httpClient.get( + '/bars_for_kill_house/', + headers: {'Authorization': 'Bearer $token'}, + queryParameters: queryParameters, + + fromJson: (json) => PaginationModel.fromJson( + json, + (json) => KillHouseBarsResponse.fromJson(json as Map), + ), + ); + + return res.data; + } + //endregion } diff --git a/packages/chicken/lib/data/di/chicken_di.dart b/packages/chicken/lib/data/di/chicken_di.dart index e07e842..9c1f84c 100644 --- a/packages/chicken/lib/data/di/chicken_di.dart +++ b/packages/chicken/lib/data/di/chicken_di.dart @@ -100,7 +100,6 @@ Future setupChickenDI() async { diChicken.registerLazySingleton( () => KillHouseRepositoryImpl( diChicken.get(), - diChicken.get(), ), ); //endregion diff --git a/packages/chicken/lib/data/models/kill_house_module/warehouse_and_distribution/response/kill_house_bars/kill_house_bars_response.dart b/packages/chicken/lib/data/models/kill_house_module/warehouse_and_distribution/response/kill_house_bars/kill_house_bars_response.dart new file mode 100644 index 0000000..18f62b8 --- /dev/null +++ b/packages/chicken/lib/data/models/kill_house_module/warehouse_and_distribution/response/kill_house_bars/kill_house_bars_response.dart @@ -0,0 +1,272 @@ +import 'package:freezed_annotation/freezed_annotation.dart'; + +part 'kill_house_bars_response.freezed.dart'; +part 'kill_house_bars_response.g.dart'; + +@freezed +abstract class KillHouseBarsResponse with _$KillHouseBarsResponse { + const factory KillHouseBarsResponse({ + KillHouseUserModel? killhouseUser, + KillHouseUserModel? killer, + AddCarModel? addCar, + PoultryRequestModel? poultryRequest, + WeightInfoModel? weightInfo, + String? key, + String? createDate, + bool? trash, + int? quantity, + int? barCode, + int? quarantineQuantity, + String? quarantineCodeState, + double? fee, + String? time, + String? state, + String? vetState, + String? activeState, + String? assignmentStateArchive, + String? showKillHouse, + CarModel? car, + String? killHouseMessage, + String? allocationState, + bool? auction, + String? role, + String? clearanceCode, + String? trafficCode, + RegistrarClearanceCode? registrarClearanceCode, + String? editorTrafficCode, + String? barRemover, + int? extraKilledQuantity, + int? acceptedRealQuantity, + double? acceptedRealWeight, + double? extraKilledWeight, + int? vetAcceptedRealQuantity, + double? vetAcceptedRealWeight, + int? acceptedAssignmentRealQuantity, + double? acceptedAssignmentRealWeight, + String? message, + bool? wareHouseConfirmation, + int? wareHouseAcceptedRealQuantity, + double? wareHouseAcceptedRealWeight, + String? dateOfWareHouse, + bool? freezing, + bool? archiveWage, + double? weightLoss, + String? wareHouseInputType, + String? documentStatus, + String? aggregateCode, + bool? aggregateStatus, + bool? calculateStatus, + bool? temporaryTrash, + bool? temporaryDeleted, + String? enteredMessage, + String? inquiryDate, + String? inquiryOrigin, + String? inquiryDestination, + String? inquiryDriver, + String? inquiryPelak, + String? settlementType, + double? price, + String? description, + String? barDocumentDescription, + String? image, + String? priceRegisterar, + String? priceRegisterarRole, + String? priceRegisterDate, + String? priceEditor, + String? priceEditorRole, + String? priceEditorDate, + bool? nonReceipt, + bool? nonReceiptReturn, + String? nonReceiptReturnMessage, + String? nonReceiptMessage, + bool? mainNonReceipt, + String? nonReceiptState, + String? nonReceiptChecker, + String? nonReceiptCheckerMessage, + String? nonReceiptCheckerMobile, + String? nonReceiptCheckDate, + String? nonReceiptReturner, + String? nonReceiptReturnerMobile, + String? nonReceiptReturnDate, + bool? fine, + double? fineAmount, + double? fineCoefficient, + String? documentNumber, + bool? companyDocument, + bool? warehouse, + double? warehouseCommitmentWeight, + bool? returnTrash, + double? amount, + int? killRequest, + String? realAddCar, + String? barDocumentStatus, + int? inputWarehouse, + }) = _KillHouseBars; + + factory KillHouseBarsResponse.fromJson(Map json) => + _$KillHouseBarsFromJson(json); +} + +@freezed +abstract class KillHouseUserModel with _$KillHouseUserModel { + const factory KillHouseUserModel({ + KillHouseOperatorModel? killHouseOperator, + String? name, + bool? killer, + String? key, + double? maximumLoadVolumeIncrease, + double? maximumLoadVolumeReduction, + }) = _KillHouseUserModel; + + factory KillHouseUserModel.fromJson(Map json) => + _$KillHouseUserModelFromJson(json); +} + +@freezed +abstract class KillHouseOperatorModel with _$KillHouseOperatorModel { + const factory KillHouseOperatorModel({UserDetailModel? user}) = + _KillHouseOperatorModel; + + factory KillHouseOperatorModel.fromJson(Map json) => + _$KillHouseOperatorModelFromJson(json); +} + +@freezed +abstract class UserDetailModel with _$UserDetailModel { + const factory UserDetailModel({ + String? fullname, + String? firstName, + String? lastName, + int? baseOrder, + String? mobile, + String? nationalId, + String? nationalCode, + String? key, + CityDetailModel? city, + String? unitName, + String? unitNationalId, + String? unitRegistrationNumber, + String? unitEconomicalNumber, + String? unitProvince, + String? unitCity, + String? unitPostalCode, + String? unitAddress, + }) = _UserDetailModel; + + factory UserDetailModel.fromJson(Map json) => + _$UserDetailModelFromJson(json); +} + +@freezed +abstract class CityDetailModel with _$CityDetailModel { + const factory CityDetailModel({ + int? id, + String? key, + String? createDate, + String? modifyDate, + bool? trash, + int? provinceIdForeignKey, + int? cityIdKey, + String? name, + double? productPrice, + bool? provinceCenter, + int? cityNumber, + String? cityName, + int? provinceNumber, + String? provinceName, + String? createdBy, + String? modifiedBy, + int? province, + }) = _CityDetailModel; + + factory CityDetailModel.fromJson(Map json) => + _$CityDetailModelFromJson(json); +} + +@freezed +abstract class AddCarModel with _$AddCarModel { + const factory AddCarModel({DriverModel? driver}) = _AddCarModel; + + factory AddCarModel.fromJson(Map json) => + _$AddCarModelFromJson(json); +} + +@freezed +abstract class DriverModel with _$DriverModel { + const factory DriverModel({ + String? driverName, + String? driverMobile, + String? typeCar, + String? pelak, + String? healthCode, + }) = _DriverModel; + + factory DriverModel.fromJson(Map json) => + _$DriverModelFromJson(json); +} + +@freezed +abstract class PoultryRequestModel with _$PoultryRequestModel { + const factory PoultryRequestModel({ + int? poultryReqOrderCode, + String? poultryName, + String? poultryUserName, + String? poultryMobile, + String? poultryCity, + String? chickenBreed, + String? date, + bool? freezing, + bool? export, + bool? freeSaleInProvince, + bool? directBuying, + }) = _PoultryRequestModel; + + factory PoultryRequestModel.fromJson(Map json) => + _$PoultryRequestModelFromJson(json); +} + +@freezed +abstract class WeightInfoModel with _$WeightInfoModel { + const factory WeightInfoModel({ + double? indexWeight, + double? weight, + double? finalIndexWeight, + double? killHousePrice, + int? weightLoss, + double? inputLoss, + String? state, + }) = _WeightInfoModel; + + factory WeightInfoModel.fromJson(Map json) => + _$WeightInfoModelFromJson(json); +} + +@freezed +abstract class CarModel with _$CarModel { + const factory CarModel({ + int? id, + String? key, + String? pelak, + //Object? capocity, + String? typeCar, + String? driverName, + String? driverMobile, + String? weightWithoutLoad, + }) = _CarModel; + + factory CarModel.fromJson(Map json) => + _$CarModelFromJson(json); +} + +@freezed +abstract class RegistrarClearanceCode with _$RegistrarClearanceCode { + const factory RegistrarClearanceCode({ + String? date, + String? name, + String? role, + String? mobile, + }) = _RegistrarClearanceCode; + + factory RegistrarClearanceCode.fromJson(Map json) => + _$RegistrarClearanceCodeFromJson(json); +} diff --git a/packages/chicken/lib/data/models/kill_house_module/warehouse_and_distribution/response/kill_house_bars/kill_house_bars_response.freezed.dart b/packages/chicken/lib/data/models/kill_house_module/warehouse_and_distribution/response/kill_house_bars/kill_house_bars_response.freezed.dart new file mode 100644 index 0000000..80a7fde --- /dev/null +++ b/packages/chicken/lib/data/models/kill_house_module/warehouse_and_distribution/response/kill_house_bars/kill_house_bars_response.freezed.dart @@ -0,0 +1,3660 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// coverage:ignore-file +// ignore_for_file: type=lint +// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark + +part of 'kill_house_bars_response.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; +KillHouseBarsResponse _$KillHouseBarsResponseFromJson( + Map json +) { + return _KillHouseBars.fromJson( + json + ); +} + +/// @nodoc +mixin _$KillHouseBarsResponse { + + KillHouseUserModel? get killhouseUser; KillHouseUserModel? get killer; AddCarModel? get addCar; PoultryRequestModel? get poultryRequest; WeightInfoModel? get weightInfo; String? get key; String? get createDate; bool? get trash; int? get quantity; int? get barCode; int? get quarantineQuantity; String? get quarantineCodeState; double? get fee; String? get time; String? get state; String? get vetState; String? get activeState; String? get assignmentStateArchive; String? get showKillHouse; CarModel? get car; String? get killHouseMessage; String? get allocationState; bool? get auction; String? get role; String? get clearanceCode; String? get trafficCode; RegistrarClearanceCode? get registrarClearanceCode; String? get editorTrafficCode; String? get barRemover; int? get extraKilledQuantity; int? get acceptedRealQuantity; double? get acceptedRealWeight; double? get extraKilledWeight; int? get vetAcceptedRealQuantity; double? get vetAcceptedRealWeight; int? get acceptedAssignmentRealQuantity; double? get acceptedAssignmentRealWeight; String? get message; bool? get wareHouseConfirmation; int? get wareHouseAcceptedRealQuantity; double? get wareHouseAcceptedRealWeight; String? get dateOfWareHouse; bool? get freezing; bool? get archiveWage; double? get weightLoss; String? get wareHouseInputType; String? get documentStatus; String? get aggregateCode; bool? get aggregateStatus; bool? get calculateStatus; bool? get temporaryTrash; bool? get temporaryDeleted; String? get enteredMessage; String? get inquiryDate; String? get inquiryOrigin; String? get inquiryDestination; String? get inquiryDriver; String? get inquiryPelak; String? get settlementType; double? get price; String? get description; String? get barDocumentDescription; String? get image; String? get priceRegisterar; String? get priceRegisterarRole; String? get priceRegisterDate; String? get priceEditor; String? get priceEditorRole; String? get priceEditorDate; bool? get nonReceipt; bool? get nonReceiptReturn; String? get nonReceiptReturnMessage; String? get nonReceiptMessage; bool? get mainNonReceipt; String? get nonReceiptState; String? get nonReceiptChecker; String? get nonReceiptCheckerMessage; String? get nonReceiptCheckerMobile; String? get nonReceiptCheckDate; String? get nonReceiptReturner; String? get nonReceiptReturnerMobile; String? get nonReceiptReturnDate; bool? get fine; double? get fineAmount; double? get fineCoefficient; String? get documentNumber; bool? get companyDocument; bool? get warehouse; double? get warehouseCommitmentWeight; bool? get returnTrash; double? get amount; int? get killRequest; String? get realAddCar; String? get barDocumentStatus; int? get inputWarehouse; +/// Create a copy of KillHouseBarsResponse +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$KillHouseBarsResponseCopyWith get copyWith => _$KillHouseBarsResponseCopyWithImpl(this as KillHouseBarsResponse, _$identity); + + /// Serializes this KillHouseBarsResponse to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is KillHouseBarsResponse&&(identical(other.killhouseUser, killhouseUser) || other.killhouseUser == killhouseUser)&&(identical(other.killer, killer) || other.killer == killer)&&(identical(other.addCar, addCar) || other.addCar == addCar)&&(identical(other.poultryRequest, poultryRequest) || other.poultryRequest == poultryRequest)&&(identical(other.weightInfo, weightInfo) || other.weightInfo == weightInfo)&&(identical(other.key, key) || other.key == key)&&(identical(other.createDate, createDate) || other.createDate == createDate)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.quantity, quantity) || other.quantity == quantity)&&(identical(other.barCode, barCode) || other.barCode == barCode)&&(identical(other.quarantineQuantity, quarantineQuantity) || other.quarantineQuantity == quarantineQuantity)&&(identical(other.quarantineCodeState, quarantineCodeState) || other.quarantineCodeState == quarantineCodeState)&&(identical(other.fee, fee) || other.fee == fee)&&(identical(other.time, time) || other.time == time)&&(identical(other.state, state) || other.state == state)&&(identical(other.vetState, vetState) || other.vetState == vetState)&&(identical(other.activeState, activeState) || other.activeState == activeState)&&(identical(other.assignmentStateArchive, assignmentStateArchive) || other.assignmentStateArchive == assignmentStateArchive)&&(identical(other.showKillHouse, showKillHouse) || other.showKillHouse == showKillHouse)&&(identical(other.car, car) || other.car == car)&&(identical(other.killHouseMessage, killHouseMessage) || other.killHouseMessage == killHouseMessage)&&(identical(other.allocationState, allocationState) || other.allocationState == allocationState)&&(identical(other.auction, auction) || other.auction == auction)&&(identical(other.role, role) || other.role == role)&&(identical(other.clearanceCode, clearanceCode) || other.clearanceCode == clearanceCode)&&(identical(other.trafficCode, trafficCode) || other.trafficCode == trafficCode)&&(identical(other.registrarClearanceCode, registrarClearanceCode) || other.registrarClearanceCode == registrarClearanceCode)&&(identical(other.editorTrafficCode, editorTrafficCode) || other.editorTrafficCode == editorTrafficCode)&&(identical(other.barRemover, barRemover) || other.barRemover == barRemover)&&(identical(other.extraKilledQuantity, extraKilledQuantity) || other.extraKilledQuantity == extraKilledQuantity)&&(identical(other.acceptedRealQuantity, acceptedRealQuantity) || other.acceptedRealQuantity == acceptedRealQuantity)&&(identical(other.acceptedRealWeight, acceptedRealWeight) || other.acceptedRealWeight == acceptedRealWeight)&&(identical(other.extraKilledWeight, extraKilledWeight) || other.extraKilledWeight == extraKilledWeight)&&(identical(other.vetAcceptedRealQuantity, vetAcceptedRealQuantity) || other.vetAcceptedRealQuantity == vetAcceptedRealQuantity)&&(identical(other.vetAcceptedRealWeight, vetAcceptedRealWeight) || other.vetAcceptedRealWeight == vetAcceptedRealWeight)&&(identical(other.acceptedAssignmentRealQuantity, acceptedAssignmentRealQuantity) || other.acceptedAssignmentRealQuantity == acceptedAssignmentRealQuantity)&&(identical(other.acceptedAssignmentRealWeight, acceptedAssignmentRealWeight) || other.acceptedAssignmentRealWeight == acceptedAssignmentRealWeight)&&(identical(other.message, message) || other.message == message)&&(identical(other.wareHouseConfirmation, wareHouseConfirmation) || other.wareHouseConfirmation == wareHouseConfirmation)&&(identical(other.wareHouseAcceptedRealQuantity, wareHouseAcceptedRealQuantity) || other.wareHouseAcceptedRealQuantity == wareHouseAcceptedRealQuantity)&&(identical(other.wareHouseAcceptedRealWeight, wareHouseAcceptedRealWeight) || other.wareHouseAcceptedRealWeight == wareHouseAcceptedRealWeight)&&(identical(other.dateOfWareHouse, dateOfWareHouse) || other.dateOfWareHouse == dateOfWareHouse)&&(identical(other.freezing, freezing) || other.freezing == freezing)&&(identical(other.archiveWage, archiveWage) || other.archiveWage == archiveWage)&&(identical(other.weightLoss, weightLoss) || other.weightLoss == weightLoss)&&(identical(other.wareHouseInputType, wareHouseInputType) || other.wareHouseInputType == wareHouseInputType)&&(identical(other.documentStatus, documentStatus) || other.documentStatus == documentStatus)&&(identical(other.aggregateCode, aggregateCode) || other.aggregateCode == aggregateCode)&&(identical(other.aggregateStatus, aggregateStatus) || other.aggregateStatus == aggregateStatus)&&(identical(other.calculateStatus, calculateStatus) || other.calculateStatus == calculateStatus)&&(identical(other.temporaryTrash, temporaryTrash) || other.temporaryTrash == temporaryTrash)&&(identical(other.temporaryDeleted, temporaryDeleted) || other.temporaryDeleted == temporaryDeleted)&&(identical(other.enteredMessage, enteredMessage) || other.enteredMessage == enteredMessage)&&(identical(other.inquiryDate, inquiryDate) || other.inquiryDate == inquiryDate)&&(identical(other.inquiryOrigin, inquiryOrigin) || other.inquiryOrigin == inquiryOrigin)&&(identical(other.inquiryDestination, inquiryDestination) || other.inquiryDestination == inquiryDestination)&&(identical(other.inquiryDriver, inquiryDriver) || other.inquiryDriver == inquiryDriver)&&(identical(other.inquiryPelak, inquiryPelak) || other.inquiryPelak == inquiryPelak)&&(identical(other.settlementType, settlementType) || other.settlementType == settlementType)&&(identical(other.price, price) || other.price == price)&&(identical(other.description, description) || other.description == description)&&(identical(other.barDocumentDescription, barDocumentDescription) || other.barDocumentDescription == barDocumentDescription)&&(identical(other.image, image) || other.image == image)&&(identical(other.priceRegisterar, priceRegisterar) || other.priceRegisterar == priceRegisterar)&&(identical(other.priceRegisterarRole, priceRegisterarRole) || other.priceRegisterarRole == priceRegisterarRole)&&(identical(other.priceRegisterDate, priceRegisterDate) || other.priceRegisterDate == priceRegisterDate)&&(identical(other.priceEditor, priceEditor) || other.priceEditor == priceEditor)&&(identical(other.priceEditorRole, priceEditorRole) || other.priceEditorRole == priceEditorRole)&&(identical(other.priceEditorDate, priceEditorDate) || other.priceEditorDate == priceEditorDate)&&(identical(other.nonReceipt, nonReceipt) || other.nonReceipt == nonReceipt)&&(identical(other.nonReceiptReturn, nonReceiptReturn) || other.nonReceiptReturn == nonReceiptReturn)&&(identical(other.nonReceiptReturnMessage, nonReceiptReturnMessage) || other.nonReceiptReturnMessage == nonReceiptReturnMessage)&&(identical(other.nonReceiptMessage, nonReceiptMessage) || other.nonReceiptMessage == nonReceiptMessage)&&(identical(other.mainNonReceipt, mainNonReceipt) || other.mainNonReceipt == mainNonReceipt)&&(identical(other.nonReceiptState, nonReceiptState) || other.nonReceiptState == nonReceiptState)&&(identical(other.nonReceiptChecker, nonReceiptChecker) || other.nonReceiptChecker == nonReceiptChecker)&&(identical(other.nonReceiptCheckerMessage, nonReceiptCheckerMessage) || other.nonReceiptCheckerMessage == nonReceiptCheckerMessage)&&(identical(other.nonReceiptCheckerMobile, nonReceiptCheckerMobile) || other.nonReceiptCheckerMobile == nonReceiptCheckerMobile)&&(identical(other.nonReceiptCheckDate, nonReceiptCheckDate) || other.nonReceiptCheckDate == nonReceiptCheckDate)&&(identical(other.nonReceiptReturner, nonReceiptReturner) || other.nonReceiptReturner == nonReceiptReturner)&&(identical(other.nonReceiptReturnerMobile, nonReceiptReturnerMobile) || other.nonReceiptReturnerMobile == nonReceiptReturnerMobile)&&(identical(other.nonReceiptReturnDate, nonReceiptReturnDate) || other.nonReceiptReturnDate == nonReceiptReturnDate)&&(identical(other.fine, fine) || other.fine == fine)&&(identical(other.fineAmount, fineAmount) || other.fineAmount == fineAmount)&&(identical(other.fineCoefficient, fineCoefficient) || other.fineCoefficient == fineCoefficient)&&(identical(other.documentNumber, documentNumber) || other.documentNumber == documentNumber)&&(identical(other.companyDocument, companyDocument) || other.companyDocument == companyDocument)&&(identical(other.warehouse, warehouse) || other.warehouse == warehouse)&&(identical(other.warehouseCommitmentWeight, warehouseCommitmentWeight) || other.warehouseCommitmentWeight == warehouseCommitmentWeight)&&(identical(other.returnTrash, returnTrash) || other.returnTrash == returnTrash)&&(identical(other.amount, amount) || other.amount == amount)&&(identical(other.killRequest, killRequest) || other.killRequest == killRequest)&&(identical(other.realAddCar, realAddCar) || other.realAddCar == realAddCar)&&(identical(other.barDocumentStatus, barDocumentStatus) || other.barDocumentStatus == barDocumentStatus)&&(identical(other.inputWarehouse, inputWarehouse) || other.inputWarehouse == inputWarehouse)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,killhouseUser,killer,addCar,poultryRequest,weightInfo,key,createDate,trash,quantity,barCode,quarantineQuantity,quarantineCodeState,fee,time,state,vetState,activeState,assignmentStateArchive,showKillHouse,car,killHouseMessage,allocationState,auction,role,clearanceCode,trafficCode,registrarClearanceCode,editorTrafficCode,barRemover,extraKilledQuantity,acceptedRealQuantity,acceptedRealWeight,extraKilledWeight,vetAcceptedRealQuantity,vetAcceptedRealWeight,acceptedAssignmentRealQuantity,acceptedAssignmentRealWeight,message,wareHouseConfirmation,wareHouseAcceptedRealQuantity,wareHouseAcceptedRealWeight,dateOfWareHouse,freezing,archiveWage,weightLoss,wareHouseInputType,documentStatus,aggregateCode,aggregateStatus,calculateStatus,temporaryTrash,temporaryDeleted,enteredMessage,inquiryDate,inquiryOrigin,inquiryDestination,inquiryDriver,inquiryPelak,settlementType,price,description,barDocumentDescription,image,priceRegisterar,priceRegisterarRole,priceRegisterDate,priceEditor,priceEditorRole,priceEditorDate,nonReceipt,nonReceiptReturn,nonReceiptReturnMessage,nonReceiptMessage,mainNonReceipt,nonReceiptState,nonReceiptChecker,nonReceiptCheckerMessage,nonReceiptCheckerMobile,nonReceiptCheckDate,nonReceiptReturner,nonReceiptReturnerMobile,nonReceiptReturnDate,fine,fineAmount,fineCoefficient,documentNumber,companyDocument,warehouse,warehouseCommitmentWeight,returnTrash,amount,killRequest,realAddCar,barDocumentStatus,inputWarehouse]); + +@override +String toString() { + return 'KillHouseBarsResponse(killhouseUser: $killhouseUser, killer: $killer, addCar: $addCar, poultryRequest: $poultryRequest, weightInfo: $weightInfo, key: $key, createDate: $createDate, trash: $trash, quantity: $quantity, barCode: $barCode, quarantineQuantity: $quarantineQuantity, quarantineCodeState: $quarantineCodeState, fee: $fee, time: $time, state: $state, vetState: $vetState, activeState: $activeState, assignmentStateArchive: $assignmentStateArchive, showKillHouse: $showKillHouse, car: $car, killHouseMessage: $killHouseMessage, allocationState: $allocationState, auction: $auction, role: $role, clearanceCode: $clearanceCode, trafficCode: $trafficCode, registrarClearanceCode: $registrarClearanceCode, editorTrafficCode: $editorTrafficCode, barRemover: $barRemover, extraKilledQuantity: $extraKilledQuantity, acceptedRealQuantity: $acceptedRealQuantity, acceptedRealWeight: $acceptedRealWeight, extraKilledWeight: $extraKilledWeight, vetAcceptedRealQuantity: $vetAcceptedRealQuantity, vetAcceptedRealWeight: $vetAcceptedRealWeight, acceptedAssignmentRealQuantity: $acceptedAssignmentRealQuantity, acceptedAssignmentRealWeight: $acceptedAssignmentRealWeight, message: $message, wareHouseConfirmation: $wareHouseConfirmation, wareHouseAcceptedRealQuantity: $wareHouseAcceptedRealQuantity, wareHouseAcceptedRealWeight: $wareHouseAcceptedRealWeight, dateOfWareHouse: $dateOfWareHouse, freezing: $freezing, archiveWage: $archiveWage, weightLoss: $weightLoss, wareHouseInputType: $wareHouseInputType, documentStatus: $documentStatus, aggregateCode: $aggregateCode, aggregateStatus: $aggregateStatus, calculateStatus: $calculateStatus, temporaryTrash: $temporaryTrash, temporaryDeleted: $temporaryDeleted, enteredMessage: $enteredMessage, inquiryDate: $inquiryDate, inquiryOrigin: $inquiryOrigin, inquiryDestination: $inquiryDestination, inquiryDriver: $inquiryDriver, inquiryPelak: $inquiryPelak, settlementType: $settlementType, price: $price, description: $description, barDocumentDescription: $barDocumentDescription, image: $image, priceRegisterar: $priceRegisterar, priceRegisterarRole: $priceRegisterarRole, priceRegisterDate: $priceRegisterDate, priceEditor: $priceEditor, priceEditorRole: $priceEditorRole, priceEditorDate: $priceEditorDate, nonReceipt: $nonReceipt, nonReceiptReturn: $nonReceiptReturn, nonReceiptReturnMessage: $nonReceiptReturnMessage, nonReceiptMessage: $nonReceiptMessage, mainNonReceipt: $mainNonReceipt, nonReceiptState: $nonReceiptState, nonReceiptChecker: $nonReceiptChecker, nonReceiptCheckerMessage: $nonReceiptCheckerMessage, nonReceiptCheckerMobile: $nonReceiptCheckerMobile, nonReceiptCheckDate: $nonReceiptCheckDate, nonReceiptReturner: $nonReceiptReturner, nonReceiptReturnerMobile: $nonReceiptReturnerMobile, nonReceiptReturnDate: $nonReceiptReturnDate, fine: $fine, fineAmount: $fineAmount, fineCoefficient: $fineCoefficient, documentNumber: $documentNumber, companyDocument: $companyDocument, warehouse: $warehouse, warehouseCommitmentWeight: $warehouseCommitmentWeight, returnTrash: $returnTrash, amount: $amount, killRequest: $killRequest, realAddCar: $realAddCar, barDocumentStatus: $barDocumentStatus, inputWarehouse: $inputWarehouse)'; +} + + +} + +/// @nodoc +abstract mixin class $KillHouseBarsResponseCopyWith<$Res> { + factory $KillHouseBarsResponseCopyWith(KillHouseBarsResponse value, $Res Function(KillHouseBarsResponse) _then) = _$KillHouseBarsResponseCopyWithImpl; +@useResult +$Res call({ + KillHouseUserModel? killhouseUser, KillHouseUserModel? killer, AddCarModel? addCar, PoultryRequestModel? poultryRequest, WeightInfoModel? weightInfo, String? key, String? createDate, bool? trash, int? quantity, int? barCode, int? quarantineQuantity, String? quarantineCodeState, double? fee, String? time, String? state, String? vetState, String? activeState, String? assignmentStateArchive, String? showKillHouse, CarModel? car, String? killHouseMessage, String? allocationState, bool? auction, String? role, String? clearanceCode, String? trafficCode, RegistrarClearanceCode? registrarClearanceCode, String? editorTrafficCode, String? barRemover, int? extraKilledQuantity, int? acceptedRealQuantity, double? acceptedRealWeight, double? extraKilledWeight, int? vetAcceptedRealQuantity, double? vetAcceptedRealWeight, int? acceptedAssignmentRealQuantity, double? acceptedAssignmentRealWeight, String? message, bool? wareHouseConfirmation, int? wareHouseAcceptedRealQuantity, double? wareHouseAcceptedRealWeight, String? dateOfWareHouse, bool? freezing, bool? archiveWage, double? weightLoss, String? wareHouseInputType, String? documentStatus, String? aggregateCode, bool? aggregateStatus, bool? calculateStatus, bool? temporaryTrash, bool? temporaryDeleted, String? enteredMessage, String? inquiryDate, String? inquiryOrigin, String? inquiryDestination, String? inquiryDriver, String? inquiryPelak, String? settlementType, double? price, String? description, String? barDocumentDescription, String? image, String? priceRegisterar, String? priceRegisterarRole, String? priceRegisterDate, String? priceEditor, String? priceEditorRole, String? priceEditorDate, bool? nonReceipt, bool? nonReceiptReturn, String? nonReceiptReturnMessage, String? nonReceiptMessage, bool? mainNonReceipt, String? nonReceiptState, String? nonReceiptChecker, String? nonReceiptCheckerMessage, String? nonReceiptCheckerMobile, String? nonReceiptCheckDate, String? nonReceiptReturner, String? nonReceiptReturnerMobile, String? nonReceiptReturnDate, bool? fine, double? fineAmount, double? fineCoefficient, String? documentNumber, bool? companyDocument, bool? warehouse, double? warehouseCommitmentWeight, bool? returnTrash, double? amount, int? killRequest, String? realAddCar, String? barDocumentStatus, int? inputWarehouse +}); + + +$KillHouseUserModelCopyWith<$Res>? get killhouseUser;$KillHouseUserModelCopyWith<$Res>? get killer;$AddCarModelCopyWith<$Res>? get addCar;$PoultryRequestModelCopyWith<$Res>? get poultryRequest;$WeightInfoModelCopyWith<$Res>? get weightInfo;$CarModelCopyWith<$Res>? get car;$RegistrarClearanceCodeCopyWith<$Res>? get registrarClearanceCode; + +} +/// @nodoc +class _$KillHouseBarsResponseCopyWithImpl<$Res> + implements $KillHouseBarsResponseCopyWith<$Res> { + _$KillHouseBarsResponseCopyWithImpl(this._self, this._then); + + final KillHouseBarsResponse _self; + final $Res Function(KillHouseBarsResponse) _then; + +/// Create a copy of KillHouseBarsResponse +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? killhouseUser = freezed,Object? killer = freezed,Object? addCar = freezed,Object? poultryRequest = freezed,Object? weightInfo = freezed,Object? key = freezed,Object? createDate = freezed,Object? trash = freezed,Object? quantity = freezed,Object? barCode = freezed,Object? quarantineQuantity = freezed,Object? quarantineCodeState = freezed,Object? fee = freezed,Object? time = freezed,Object? state = freezed,Object? vetState = freezed,Object? activeState = freezed,Object? assignmentStateArchive = freezed,Object? showKillHouse = freezed,Object? car = freezed,Object? killHouseMessage = freezed,Object? allocationState = freezed,Object? auction = freezed,Object? role = freezed,Object? clearanceCode = freezed,Object? trafficCode = freezed,Object? registrarClearanceCode = freezed,Object? editorTrafficCode = freezed,Object? barRemover = freezed,Object? extraKilledQuantity = freezed,Object? acceptedRealQuantity = freezed,Object? acceptedRealWeight = freezed,Object? extraKilledWeight = freezed,Object? vetAcceptedRealQuantity = freezed,Object? vetAcceptedRealWeight = freezed,Object? acceptedAssignmentRealQuantity = freezed,Object? acceptedAssignmentRealWeight = freezed,Object? message = freezed,Object? wareHouseConfirmation = freezed,Object? wareHouseAcceptedRealQuantity = freezed,Object? wareHouseAcceptedRealWeight = freezed,Object? dateOfWareHouse = freezed,Object? freezing = freezed,Object? archiveWage = freezed,Object? weightLoss = freezed,Object? wareHouseInputType = freezed,Object? documentStatus = freezed,Object? aggregateCode = freezed,Object? aggregateStatus = freezed,Object? calculateStatus = freezed,Object? temporaryTrash = freezed,Object? temporaryDeleted = freezed,Object? enteredMessage = freezed,Object? inquiryDate = freezed,Object? inquiryOrigin = freezed,Object? inquiryDestination = freezed,Object? inquiryDriver = freezed,Object? inquiryPelak = freezed,Object? settlementType = freezed,Object? price = freezed,Object? description = freezed,Object? barDocumentDescription = freezed,Object? image = freezed,Object? priceRegisterar = freezed,Object? priceRegisterarRole = freezed,Object? priceRegisterDate = freezed,Object? priceEditor = freezed,Object? priceEditorRole = freezed,Object? priceEditorDate = freezed,Object? nonReceipt = freezed,Object? nonReceiptReturn = freezed,Object? nonReceiptReturnMessage = freezed,Object? nonReceiptMessage = freezed,Object? mainNonReceipt = freezed,Object? nonReceiptState = freezed,Object? nonReceiptChecker = freezed,Object? nonReceiptCheckerMessage = freezed,Object? nonReceiptCheckerMobile = freezed,Object? nonReceiptCheckDate = freezed,Object? nonReceiptReturner = freezed,Object? nonReceiptReturnerMobile = freezed,Object? nonReceiptReturnDate = freezed,Object? fine = freezed,Object? fineAmount = freezed,Object? fineCoefficient = freezed,Object? documentNumber = freezed,Object? companyDocument = freezed,Object? warehouse = freezed,Object? warehouseCommitmentWeight = freezed,Object? returnTrash = freezed,Object? amount = freezed,Object? killRequest = freezed,Object? realAddCar = freezed,Object? barDocumentStatus = freezed,Object? inputWarehouse = freezed,}) { + return _then(_self.copyWith( +killhouseUser: freezed == killhouseUser ? _self.killhouseUser : killhouseUser // ignore: cast_nullable_to_non_nullable +as KillHouseUserModel?,killer: freezed == killer ? _self.killer : killer // ignore: cast_nullable_to_non_nullable +as KillHouseUserModel?,addCar: freezed == addCar ? _self.addCar : addCar // ignore: cast_nullable_to_non_nullable +as AddCarModel?,poultryRequest: freezed == poultryRequest ? _self.poultryRequest : poultryRequest // ignore: cast_nullable_to_non_nullable +as PoultryRequestModel?,weightInfo: freezed == weightInfo ? _self.weightInfo : weightInfo // ignore: cast_nullable_to_non_nullable +as WeightInfoModel?,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?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable +as bool?,quantity: freezed == quantity ? _self.quantity : quantity // ignore: cast_nullable_to_non_nullable +as int?,barCode: freezed == barCode ? _self.barCode : barCode // ignore: cast_nullable_to_non_nullable +as int?,quarantineQuantity: freezed == quarantineQuantity ? _self.quarantineQuantity : quarantineQuantity // ignore: cast_nullable_to_non_nullable +as int?,quarantineCodeState: freezed == quarantineCodeState ? _self.quarantineCodeState : quarantineCodeState // ignore: cast_nullable_to_non_nullable +as String?,fee: freezed == fee ? _self.fee : fee // ignore: cast_nullable_to_non_nullable +as double?,time: freezed == time ? _self.time : time // ignore: cast_nullable_to_non_nullable +as String?,state: freezed == state ? _self.state : state // ignore: cast_nullable_to_non_nullable +as String?,vetState: freezed == vetState ? _self.vetState : vetState // ignore: cast_nullable_to_non_nullable +as String?,activeState: freezed == activeState ? _self.activeState : activeState // ignore: cast_nullable_to_non_nullable +as String?,assignmentStateArchive: freezed == assignmentStateArchive ? _self.assignmentStateArchive : assignmentStateArchive // ignore: cast_nullable_to_non_nullable +as String?,showKillHouse: freezed == showKillHouse ? _self.showKillHouse : showKillHouse // ignore: cast_nullable_to_non_nullable +as String?,car: freezed == car ? _self.car : car // ignore: cast_nullable_to_non_nullable +as CarModel?,killHouseMessage: freezed == killHouseMessage ? _self.killHouseMessage : killHouseMessage // ignore: cast_nullable_to_non_nullable +as String?,allocationState: freezed == allocationState ? _self.allocationState : allocationState // ignore: cast_nullable_to_non_nullable +as String?,auction: freezed == auction ? _self.auction : auction // ignore: cast_nullable_to_non_nullable +as bool?,role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable +as String?,clearanceCode: freezed == clearanceCode ? _self.clearanceCode : clearanceCode // ignore: cast_nullable_to_non_nullable +as String?,trafficCode: freezed == trafficCode ? _self.trafficCode : trafficCode // ignore: cast_nullable_to_non_nullable +as String?,registrarClearanceCode: freezed == registrarClearanceCode ? _self.registrarClearanceCode : registrarClearanceCode // ignore: cast_nullable_to_non_nullable +as RegistrarClearanceCode?,editorTrafficCode: freezed == editorTrafficCode ? _self.editorTrafficCode : editorTrafficCode // ignore: cast_nullable_to_non_nullable +as String?,barRemover: freezed == barRemover ? _self.barRemover : barRemover // ignore: cast_nullable_to_non_nullable +as String?,extraKilledQuantity: freezed == extraKilledQuantity ? _self.extraKilledQuantity : extraKilledQuantity // ignore: cast_nullable_to_non_nullable +as int?,acceptedRealQuantity: freezed == acceptedRealQuantity ? _self.acceptedRealQuantity : acceptedRealQuantity // ignore: cast_nullable_to_non_nullable +as int?,acceptedRealWeight: freezed == acceptedRealWeight ? _self.acceptedRealWeight : acceptedRealWeight // ignore: cast_nullable_to_non_nullable +as double?,extraKilledWeight: freezed == extraKilledWeight ? _self.extraKilledWeight : extraKilledWeight // ignore: cast_nullable_to_non_nullable +as double?,vetAcceptedRealQuantity: freezed == vetAcceptedRealQuantity ? _self.vetAcceptedRealQuantity : vetAcceptedRealQuantity // ignore: cast_nullable_to_non_nullable +as int?,vetAcceptedRealWeight: freezed == vetAcceptedRealWeight ? _self.vetAcceptedRealWeight : vetAcceptedRealWeight // ignore: cast_nullable_to_non_nullable +as double?,acceptedAssignmentRealQuantity: freezed == acceptedAssignmentRealQuantity ? _self.acceptedAssignmentRealQuantity : acceptedAssignmentRealQuantity // ignore: cast_nullable_to_non_nullable +as int?,acceptedAssignmentRealWeight: freezed == acceptedAssignmentRealWeight ? _self.acceptedAssignmentRealWeight : acceptedAssignmentRealWeight // ignore: cast_nullable_to_non_nullable +as double?,message: freezed == message ? _self.message : message // ignore: cast_nullable_to_non_nullable +as String?,wareHouseConfirmation: freezed == wareHouseConfirmation ? _self.wareHouseConfirmation : wareHouseConfirmation // ignore: cast_nullable_to_non_nullable +as bool?,wareHouseAcceptedRealQuantity: freezed == wareHouseAcceptedRealQuantity ? _self.wareHouseAcceptedRealQuantity : wareHouseAcceptedRealQuantity // ignore: cast_nullable_to_non_nullable +as int?,wareHouseAcceptedRealWeight: freezed == wareHouseAcceptedRealWeight ? _self.wareHouseAcceptedRealWeight : wareHouseAcceptedRealWeight // ignore: cast_nullable_to_non_nullable +as double?,dateOfWareHouse: freezed == dateOfWareHouse ? _self.dateOfWareHouse : dateOfWareHouse // ignore: cast_nullable_to_non_nullable +as String?,freezing: freezed == freezing ? _self.freezing : freezing // ignore: cast_nullable_to_non_nullable +as bool?,archiveWage: freezed == archiveWage ? _self.archiveWage : archiveWage // ignore: cast_nullable_to_non_nullable +as bool?,weightLoss: freezed == weightLoss ? _self.weightLoss : weightLoss // ignore: cast_nullable_to_non_nullable +as double?,wareHouseInputType: freezed == wareHouseInputType ? _self.wareHouseInputType : wareHouseInputType // ignore: cast_nullable_to_non_nullable +as String?,documentStatus: freezed == documentStatus ? _self.documentStatus : documentStatus // ignore: cast_nullable_to_non_nullable +as String?,aggregateCode: freezed == aggregateCode ? _self.aggregateCode : aggregateCode // ignore: cast_nullable_to_non_nullable +as String?,aggregateStatus: freezed == aggregateStatus ? _self.aggregateStatus : aggregateStatus // 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?,enteredMessage: freezed == enteredMessage ? _self.enteredMessage : enteredMessage // ignore: cast_nullable_to_non_nullable +as String?,inquiryDate: freezed == inquiryDate ? _self.inquiryDate : inquiryDate // ignore: cast_nullable_to_non_nullable +as String?,inquiryOrigin: freezed == inquiryOrigin ? _self.inquiryOrigin : inquiryOrigin // ignore: cast_nullable_to_non_nullable +as String?,inquiryDestination: freezed == inquiryDestination ? _self.inquiryDestination : inquiryDestination // ignore: cast_nullable_to_non_nullable +as String?,inquiryDriver: freezed == inquiryDriver ? _self.inquiryDriver : inquiryDriver // ignore: cast_nullable_to_non_nullable +as String?,inquiryPelak: freezed == inquiryPelak ? _self.inquiryPelak : inquiryPelak // ignore: cast_nullable_to_non_nullable +as String?,settlementType: freezed == settlementType ? _self.settlementType : settlementType // ignore: cast_nullable_to_non_nullable +as String?,price: freezed == price ? _self.price : price // ignore: cast_nullable_to_non_nullable +as double?,description: freezed == description ? _self.description : description // ignore: cast_nullable_to_non_nullable +as String?,barDocumentDescription: freezed == barDocumentDescription ? _self.barDocumentDescription : barDocumentDescription // ignore: cast_nullable_to_non_nullable +as String?,image: freezed == image ? _self.image : image // ignore: cast_nullable_to_non_nullable +as String?,priceRegisterar: freezed == priceRegisterar ? _self.priceRegisterar : priceRegisterar // ignore: cast_nullable_to_non_nullable +as String?,priceRegisterarRole: freezed == priceRegisterarRole ? _self.priceRegisterarRole : priceRegisterarRole // ignore: cast_nullable_to_non_nullable +as String?,priceRegisterDate: freezed == priceRegisterDate ? _self.priceRegisterDate : priceRegisterDate // ignore: cast_nullable_to_non_nullable +as String?,priceEditor: freezed == priceEditor ? _self.priceEditor : priceEditor // ignore: cast_nullable_to_non_nullable +as String?,priceEditorRole: freezed == priceEditorRole ? _self.priceEditorRole : priceEditorRole // ignore: cast_nullable_to_non_nullable +as String?,priceEditorDate: freezed == priceEditorDate ? _self.priceEditorDate : priceEditorDate // ignore: cast_nullable_to_non_nullable +as String?,nonReceipt: freezed == nonReceipt ? _self.nonReceipt : nonReceipt // ignore: cast_nullable_to_non_nullable +as bool?,nonReceiptReturn: freezed == nonReceiptReturn ? _self.nonReceiptReturn : nonReceiptReturn // ignore: cast_nullable_to_non_nullable +as bool?,nonReceiptReturnMessage: freezed == nonReceiptReturnMessage ? _self.nonReceiptReturnMessage : nonReceiptReturnMessage // ignore: cast_nullable_to_non_nullable +as String?,nonReceiptMessage: freezed == nonReceiptMessage ? _self.nonReceiptMessage : nonReceiptMessage // ignore: cast_nullable_to_non_nullable +as String?,mainNonReceipt: freezed == mainNonReceipt ? _self.mainNonReceipt : mainNonReceipt // ignore: cast_nullable_to_non_nullable +as bool?,nonReceiptState: freezed == nonReceiptState ? _self.nonReceiptState : nonReceiptState // ignore: cast_nullable_to_non_nullable +as String?,nonReceiptChecker: freezed == nonReceiptChecker ? _self.nonReceiptChecker : nonReceiptChecker // ignore: cast_nullable_to_non_nullable +as String?,nonReceiptCheckerMessage: freezed == nonReceiptCheckerMessage ? _self.nonReceiptCheckerMessage : nonReceiptCheckerMessage // ignore: cast_nullable_to_non_nullable +as String?,nonReceiptCheckerMobile: freezed == nonReceiptCheckerMobile ? _self.nonReceiptCheckerMobile : nonReceiptCheckerMobile // ignore: cast_nullable_to_non_nullable +as String?,nonReceiptCheckDate: freezed == nonReceiptCheckDate ? _self.nonReceiptCheckDate : nonReceiptCheckDate // ignore: cast_nullable_to_non_nullable +as String?,nonReceiptReturner: freezed == nonReceiptReturner ? _self.nonReceiptReturner : nonReceiptReturner // ignore: cast_nullable_to_non_nullable +as String?,nonReceiptReturnerMobile: freezed == nonReceiptReturnerMobile ? _self.nonReceiptReturnerMobile : nonReceiptReturnerMobile // ignore: cast_nullable_to_non_nullable +as String?,nonReceiptReturnDate: freezed == nonReceiptReturnDate ? _self.nonReceiptReturnDate : nonReceiptReturnDate // ignore: cast_nullable_to_non_nullable +as String?,fine: freezed == fine ? _self.fine : fine // ignore: cast_nullable_to_non_nullable +as bool?,fineAmount: freezed == fineAmount ? _self.fineAmount : fineAmount // ignore: cast_nullable_to_non_nullable +as double?,fineCoefficient: freezed == fineCoefficient ? _self.fineCoefficient : fineCoefficient // ignore: cast_nullable_to_non_nullable +as double?,documentNumber: freezed == documentNumber ? _self.documentNumber : documentNumber // ignore: cast_nullable_to_non_nullable +as String?,companyDocument: freezed == companyDocument ? _self.companyDocument : companyDocument // ignore: cast_nullable_to_non_nullable +as bool?,warehouse: freezed == warehouse ? _self.warehouse : warehouse // ignore: cast_nullable_to_non_nullable +as bool?,warehouseCommitmentWeight: freezed == warehouseCommitmentWeight ? _self.warehouseCommitmentWeight : warehouseCommitmentWeight // ignore: cast_nullable_to_non_nullable +as double?,returnTrash: freezed == returnTrash ? _self.returnTrash : returnTrash // ignore: cast_nullable_to_non_nullable +as bool?,amount: freezed == amount ? _self.amount : amount // ignore: cast_nullable_to_non_nullable +as double?,killRequest: freezed == killRequest ? _self.killRequest : killRequest // ignore: cast_nullable_to_non_nullable +as int?,realAddCar: freezed == realAddCar ? _self.realAddCar : realAddCar // ignore: cast_nullable_to_non_nullable +as String?,barDocumentStatus: freezed == barDocumentStatus ? _self.barDocumentStatus : barDocumentStatus // ignore: cast_nullable_to_non_nullable +as String?,inputWarehouse: freezed == inputWarehouse ? _self.inputWarehouse : inputWarehouse // ignore: cast_nullable_to_non_nullable +as int?, + )); +} +/// Create a copy of KillHouseBarsResponse +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$KillHouseUserModelCopyWith<$Res>? get killhouseUser { + if (_self.killhouseUser == null) { + return null; + } + + return $KillHouseUserModelCopyWith<$Res>(_self.killhouseUser!, (value) { + return _then(_self.copyWith(killhouseUser: value)); + }); +}/// Create a copy of KillHouseBarsResponse +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$KillHouseUserModelCopyWith<$Res>? get killer { + if (_self.killer == null) { + return null; + } + + return $KillHouseUserModelCopyWith<$Res>(_self.killer!, (value) { + return _then(_self.copyWith(killer: value)); + }); +}/// Create a copy of KillHouseBarsResponse +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$AddCarModelCopyWith<$Res>? get addCar { + if (_self.addCar == null) { + return null; + } + + return $AddCarModelCopyWith<$Res>(_self.addCar!, (value) { + return _then(_self.copyWith(addCar: value)); + }); +}/// Create a copy of KillHouseBarsResponse +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$PoultryRequestModelCopyWith<$Res>? get poultryRequest { + if (_self.poultryRequest == null) { + return null; + } + + return $PoultryRequestModelCopyWith<$Res>(_self.poultryRequest!, (value) { + return _then(_self.copyWith(poultryRequest: value)); + }); +}/// Create a copy of KillHouseBarsResponse +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$WeightInfoModelCopyWith<$Res>? get weightInfo { + if (_self.weightInfo == null) { + return null; + } + + return $WeightInfoModelCopyWith<$Res>(_self.weightInfo!, (value) { + return _then(_self.copyWith(weightInfo: value)); + }); +}/// Create a copy of KillHouseBarsResponse +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$CarModelCopyWith<$Res>? get car { + if (_self.car == null) { + return null; + } + + return $CarModelCopyWith<$Res>(_self.car!, (value) { + return _then(_self.copyWith(car: value)); + }); +}/// Create a copy of KillHouseBarsResponse +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$RegistrarClearanceCodeCopyWith<$Res>? get registrarClearanceCode { + if (_self.registrarClearanceCode == null) { + return null; + } + + return $RegistrarClearanceCodeCopyWith<$Res>(_self.registrarClearanceCode!, (value) { + return _then(_self.copyWith(registrarClearanceCode: value)); + }); +} +} + + +/// Adds pattern-matching-related methods to [KillHouseBarsResponse]. +extension KillHouseBarsResponsePatterns on KillHouseBarsResponse { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _KillHouseBars value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _KillHouseBars() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _KillHouseBars value) $default,){ +final _that = this; +switch (_that) { +case _KillHouseBars(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _KillHouseBars value)? $default,){ +final _that = this; +switch (_that) { +case _KillHouseBars() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( KillHouseUserModel? killhouseUser, KillHouseUserModel? killer, AddCarModel? addCar, PoultryRequestModel? poultryRequest, WeightInfoModel? weightInfo, String? key, String? createDate, bool? trash, int? quantity, int? barCode, int? quarantineQuantity, String? quarantineCodeState, double? fee, String? time, String? state, String? vetState, String? activeState, String? assignmentStateArchive, String? showKillHouse, CarModel? car, String? killHouseMessage, String? allocationState, bool? auction, String? role, String? clearanceCode, String? trafficCode, RegistrarClearanceCode? registrarClearanceCode, String? editorTrafficCode, String? barRemover, int? extraKilledQuantity, int? acceptedRealQuantity, double? acceptedRealWeight, double? extraKilledWeight, int? vetAcceptedRealQuantity, double? vetAcceptedRealWeight, int? acceptedAssignmentRealQuantity, double? acceptedAssignmentRealWeight, String? message, bool? wareHouseConfirmation, int? wareHouseAcceptedRealQuantity, double? wareHouseAcceptedRealWeight, String? dateOfWareHouse, bool? freezing, bool? archiveWage, double? weightLoss, String? wareHouseInputType, String? documentStatus, String? aggregateCode, bool? aggregateStatus, bool? calculateStatus, bool? temporaryTrash, bool? temporaryDeleted, String? enteredMessage, String? inquiryDate, String? inquiryOrigin, String? inquiryDestination, String? inquiryDriver, String? inquiryPelak, String? settlementType, double? price, String? description, String? barDocumentDescription, String? image, String? priceRegisterar, String? priceRegisterarRole, String? priceRegisterDate, String? priceEditor, String? priceEditorRole, String? priceEditorDate, bool? nonReceipt, bool? nonReceiptReturn, String? nonReceiptReturnMessage, String? nonReceiptMessage, bool? mainNonReceipt, String? nonReceiptState, String? nonReceiptChecker, String? nonReceiptCheckerMessage, String? nonReceiptCheckerMobile, String? nonReceiptCheckDate, String? nonReceiptReturner, String? nonReceiptReturnerMobile, String? nonReceiptReturnDate, bool? fine, double? fineAmount, double? fineCoefficient, String? documentNumber, bool? companyDocument, bool? warehouse, double? warehouseCommitmentWeight, bool? returnTrash, double? amount, int? killRequest, String? realAddCar, String? barDocumentStatus, int? inputWarehouse)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _KillHouseBars() when $default != null: +return $default(_that.killhouseUser,_that.killer,_that.addCar,_that.poultryRequest,_that.weightInfo,_that.key,_that.createDate,_that.trash,_that.quantity,_that.barCode,_that.quarantineQuantity,_that.quarantineCodeState,_that.fee,_that.time,_that.state,_that.vetState,_that.activeState,_that.assignmentStateArchive,_that.showKillHouse,_that.car,_that.killHouseMessage,_that.allocationState,_that.auction,_that.role,_that.clearanceCode,_that.trafficCode,_that.registrarClearanceCode,_that.editorTrafficCode,_that.barRemover,_that.extraKilledQuantity,_that.acceptedRealQuantity,_that.acceptedRealWeight,_that.extraKilledWeight,_that.vetAcceptedRealQuantity,_that.vetAcceptedRealWeight,_that.acceptedAssignmentRealQuantity,_that.acceptedAssignmentRealWeight,_that.message,_that.wareHouseConfirmation,_that.wareHouseAcceptedRealQuantity,_that.wareHouseAcceptedRealWeight,_that.dateOfWareHouse,_that.freezing,_that.archiveWage,_that.weightLoss,_that.wareHouseInputType,_that.documentStatus,_that.aggregateCode,_that.aggregateStatus,_that.calculateStatus,_that.temporaryTrash,_that.temporaryDeleted,_that.enteredMessage,_that.inquiryDate,_that.inquiryOrigin,_that.inquiryDestination,_that.inquiryDriver,_that.inquiryPelak,_that.settlementType,_that.price,_that.description,_that.barDocumentDescription,_that.image,_that.priceRegisterar,_that.priceRegisterarRole,_that.priceRegisterDate,_that.priceEditor,_that.priceEditorRole,_that.priceEditorDate,_that.nonReceipt,_that.nonReceiptReturn,_that.nonReceiptReturnMessage,_that.nonReceiptMessage,_that.mainNonReceipt,_that.nonReceiptState,_that.nonReceiptChecker,_that.nonReceiptCheckerMessage,_that.nonReceiptCheckerMobile,_that.nonReceiptCheckDate,_that.nonReceiptReturner,_that.nonReceiptReturnerMobile,_that.nonReceiptReturnDate,_that.fine,_that.fineAmount,_that.fineCoefficient,_that.documentNumber,_that.companyDocument,_that.warehouse,_that.warehouseCommitmentWeight,_that.returnTrash,_that.amount,_that.killRequest,_that.realAddCar,_that.barDocumentStatus,_that.inputWarehouse);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( KillHouseUserModel? killhouseUser, KillHouseUserModel? killer, AddCarModel? addCar, PoultryRequestModel? poultryRequest, WeightInfoModel? weightInfo, String? key, String? createDate, bool? trash, int? quantity, int? barCode, int? quarantineQuantity, String? quarantineCodeState, double? fee, String? time, String? state, String? vetState, String? activeState, String? assignmentStateArchive, String? showKillHouse, CarModel? car, String? killHouseMessage, String? allocationState, bool? auction, String? role, String? clearanceCode, String? trafficCode, RegistrarClearanceCode? registrarClearanceCode, String? editorTrafficCode, String? barRemover, int? extraKilledQuantity, int? acceptedRealQuantity, double? acceptedRealWeight, double? extraKilledWeight, int? vetAcceptedRealQuantity, double? vetAcceptedRealWeight, int? acceptedAssignmentRealQuantity, double? acceptedAssignmentRealWeight, String? message, bool? wareHouseConfirmation, int? wareHouseAcceptedRealQuantity, double? wareHouseAcceptedRealWeight, String? dateOfWareHouse, bool? freezing, bool? archiveWage, double? weightLoss, String? wareHouseInputType, String? documentStatus, String? aggregateCode, bool? aggregateStatus, bool? calculateStatus, bool? temporaryTrash, bool? temporaryDeleted, String? enteredMessage, String? inquiryDate, String? inquiryOrigin, String? inquiryDestination, String? inquiryDriver, String? inquiryPelak, String? settlementType, double? price, String? description, String? barDocumentDescription, String? image, String? priceRegisterar, String? priceRegisterarRole, String? priceRegisterDate, String? priceEditor, String? priceEditorRole, String? priceEditorDate, bool? nonReceipt, bool? nonReceiptReturn, String? nonReceiptReturnMessage, String? nonReceiptMessage, bool? mainNonReceipt, String? nonReceiptState, String? nonReceiptChecker, String? nonReceiptCheckerMessage, String? nonReceiptCheckerMobile, String? nonReceiptCheckDate, String? nonReceiptReturner, String? nonReceiptReturnerMobile, String? nonReceiptReturnDate, bool? fine, double? fineAmount, double? fineCoefficient, String? documentNumber, bool? companyDocument, bool? warehouse, double? warehouseCommitmentWeight, bool? returnTrash, double? amount, int? killRequest, String? realAddCar, String? barDocumentStatus, int? inputWarehouse) $default,) {final _that = this; +switch (_that) { +case _KillHouseBars(): +return $default(_that.killhouseUser,_that.killer,_that.addCar,_that.poultryRequest,_that.weightInfo,_that.key,_that.createDate,_that.trash,_that.quantity,_that.barCode,_that.quarantineQuantity,_that.quarantineCodeState,_that.fee,_that.time,_that.state,_that.vetState,_that.activeState,_that.assignmentStateArchive,_that.showKillHouse,_that.car,_that.killHouseMessage,_that.allocationState,_that.auction,_that.role,_that.clearanceCode,_that.trafficCode,_that.registrarClearanceCode,_that.editorTrafficCode,_that.barRemover,_that.extraKilledQuantity,_that.acceptedRealQuantity,_that.acceptedRealWeight,_that.extraKilledWeight,_that.vetAcceptedRealQuantity,_that.vetAcceptedRealWeight,_that.acceptedAssignmentRealQuantity,_that.acceptedAssignmentRealWeight,_that.message,_that.wareHouseConfirmation,_that.wareHouseAcceptedRealQuantity,_that.wareHouseAcceptedRealWeight,_that.dateOfWareHouse,_that.freezing,_that.archiveWage,_that.weightLoss,_that.wareHouseInputType,_that.documentStatus,_that.aggregateCode,_that.aggregateStatus,_that.calculateStatus,_that.temporaryTrash,_that.temporaryDeleted,_that.enteredMessage,_that.inquiryDate,_that.inquiryOrigin,_that.inquiryDestination,_that.inquiryDriver,_that.inquiryPelak,_that.settlementType,_that.price,_that.description,_that.barDocumentDescription,_that.image,_that.priceRegisterar,_that.priceRegisterarRole,_that.priceRegisterDate,_that.priceEditor,_that.priceEditorRole,_that.priceEditorDate,_that.nonReceipt,_that.nonReceiptReturn,_that.nonReceiptReturnMessage,_that.nonReceiptMessage,_that.mainNonReceipt,_that.nonReceiptState,_that.nonReceiptChecker,_that.nonReceiptCheckerMessage,_that.nonReceiptCheckerMobile,_that.nonReceiptCheckDate,_that.nonReceiptReturner,_that.nonReceiptReturnerMobile,_that.nonReceiptReturnDate,_that.fine,_that.fineAmount,_that.fineCoefficient,_that.documentNumber,_that.companyDocument,_that.warehouse,_that.warehouseCommitmentWeight,_that.returnTrash,_that.amount,_that.killRequest,_that.realAddCar,_that.barDocumentStatus,_that.inputWarehouse);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( KillHouseUserModel? killhouseUser, KillHouseUserModel? killer, AddCarModel? addCar, PoultryRequestModel? poultryRequest, WeightInfoModel? weightInfo, String? key, String? createDate, bool? trash, int? quantity, int? barCode, int? quarantineQuantity, String? quarantineCodeState, double? fee, String? time, String? state, String? vetState, String? activeState, String? assignmentStateArchive, String? showKillHouse, CarModel? car, String? killHouseMessage, String? allocationState, bool? auction, String? role, String? clearanceCode, String? trafficCode, RegistrarClearanceCode? registrarClearanceCode, String? editorTrafficCode, String? barRemover, int? extraKilledQuantity, int? acceptedRealQuantity, double? acceptedRealWeight, double? extraKilledWeight, int? vetAcceptedRealQuantity, double? vetAcceptedRealWeight, int? acceptedAssignmentRealQuantity, double? acceptedAssignmentRealWeight, String? message, bool? wareHouseConfirmation, int? wareHouseAcceptedRealQuantity, double? wareHouseAcceptedRealWeight, String? dateOfWareHouse, bool? freezing, bool? archiveWage, double? weightLoss, String? wareHouseInputType, String? documentStatus, String? aggregateCode, bool? aggregateStatus, bool? calculateStatus, bool? temporaryTrash, bool? temporaryDeleted, String? enteredMessage, String? inquiryDate, String? inquiryOrigin, String? inquiryDestination, String? inquiryDriver, String? inquiryPelak, String? settlementType, double? price, String? description, String? barDocumentDescription, String? image, String? priceRegisterar, String? priceRegisterarRole, String? priceRegisterDate, String? priceEditor, String? priceEditorRole, String? priceEditorDate, bool? nonReceipt, bool? nonReceiptReturn, String? nonReceiptReturnMessage, String? nonReceiptMessage, bool? mainNonReceipt, String? nonReceiptState, String? nonReceiptChecker, String? nonReceiptCheckerMessage, String? nonReceiptCheckerMobile, String? nonReceiptCheckDate, String? nonReceiptReturner, String? nonReceiptReturnerMobile, String? nonReceiptReturnDate, bool? fine, double? fineAmount, double? fineCoefficient, String? documentNumber, bool? companyDocument, bool? warehouse, double? warehouseCommitmentWeight, bool? returnTrash, double? amount, int? killRequest, String? realAddCar, String? barDocumentStatus, int? inputWarehouse)? $default,) {final _that = this; +switch (_that) { +case _KillHouseBars() when $default != null: +return $default(_that.killhouseUser,_that.killer,_that.addCar,_that.poultryRequest,_that.weightInfo,_that.key,_that.createDate,_that.trash,_that.quantity,_that.barCode,_that.quarantineQuantity,_that.quarantineCodeState,_that.fee,_that.time,_that.state,_that.vetState,_that.activeState,_that.assignmentStateArchive,_that.showKillHouse,_that.car,_that.killHouseMessage,_that.allocationState,_that.auction,_that.role,_that.clearanceCode,_that.trafficCode,_that.registrarClearanceCode,_that.editorTrafficCode,_that.barRemover,_that.extraKilledQuantity,_that.acceptedRealQuantity,_that.acceptedRealWeight,_that.extraKilledWeight,_that.vetAcceptedRealQuantity,_that.vetAcceptedRealWeight,_that.acceptedAssignmentRealQuantity,_that.acceptedAssignmentRealWeight,_that.message,_that.wareHouseConfirmation,_that.wareHouseAcceptedRealQuantity,_that.wareHouseAcceptedRealWeight,_that.dateOfWareHouse,_that.freezing,_that.archiveWage,_that.weightLoss,_that.wareHouseInputType,_that.documentStatus,_that.aggregateCode,_that.aggregateStatus,_that.calculateStatus,_that.temporaryTrash,_that.temporaryDeleted,_that.enteredMessage,_that.inquiryDate,_that.inquiryOrigin,_that.inquiryDestination,_that.inquiryDriver,_that.inquiryPelak,_that.settlementType,_that.price,_that.description,_that.barDocumentDescription,_that.image,_that.priceRegisterar,_that.priceRegisterarRole,_that.priceRegisterDate,_that.priceEditor,_that.priceEditorRole,_that.priceEditorDate,_that.nonReceipt,_that.nonReceiptReturn,_that.nonReceiptReturnMessage,_that.nonReceiptMessage,_that.mainNonReceipt,_that.nonReceiptState,_that.nonReceiptChecker,_that.nonReceiptCheckerMessage,_that.nonReceiptCheckerMobile,_that.nonReceiptCheckDate,_that.nonReceiptReturner,_that.nonReceiptReturnerMobile,_that.nonReceiptReturnDate,_that.fine,_that.fineAmount,_that.fineCoefficient,_that.documentNumber,_that.companyDocument,_that.warehouse,_that.warehouseCommitmentWeight,_that.returnTrash,_that.amount,_that.killRequest,_that.realAddCar,_that.barDocumentStatus,_that.inputWarehouse);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _KillHouseBars implements KillHouseBarsResponse { + const _KillHouseBars({this.killhouseUser, this.killer, this.addCar, this.poultryRequest, this.weightInfo, this.key, this.createDate, this.trash, this.quantity, this.barCode, this.quarantineQuantity, this.quarantineCodeState, this.fee, this.time, this.state, this.vetState, this.activeState, this.assignmentStateArchive, this.showKillHouse, this.car, this.killHouseMessage, this.allocationState, this.auction, this.role, this.clearanceCode, this.trafficCode, this.registrarClearanceCode, this.editorTrafficCode, this.barRemover, this.extraKilledQuantity, this.acceptedRealQuantity, this.acceptedRealWeight, this.extraKilledWeight, this.vetAcceptedRealQuantity, this.vetAcceptedRealWeight, this.acceptedAssignmentRealQuantity, this.acceptedAssignmentRealWeight, this.message, this.wareHouseConfirmation, this.wareHouseAcceptedRealQuantity, this.wareHouseAcceptedRealWeight, this.dateOfWareHouse, this.freezing, this.archiveWage, this.weightLoss, this.wareHouseInputType, this.documentStatus, this.aggregateCode, this.aggregateStatus, this.calculateStatus, this.temporaryTrash, this.temporaryDeleted, this.enteredMessage, this.inquiryDate, this.inquiryOrigin, this.inquiryDestination, this.inquiryDriver, this.inquiryPelak, this.settlementType, this.price, this.description, this.barDocumentDescription, this.image, this.priceRegisterar, this.priceRegisterarRole, this.priceRegisterDate, this.priceEditor, this.priceEditorRole, this.priceEditorDate, this.nonReceipt, this.nonReceiptReturn, this.nonReceiptReturnMessage, this.nonReceiptMessage, this.mainNonReceipt, this.nonReceiptState, this.nonReceiptChecker, this.nonReceiptCheckerMessage, this.nonReceiptCheckerMobile, this.nonReceiptCheckDate, this.nonReceiptReturner, this.nonReceiptReturnerMobile, this.nonReceiptReturnDate, this.fine, this.fineAmount, this.fineCoefficient, this.documentNumber, this.companyDocument, this.warehouse, this.warehouseCommitmentWeight, this.returnTrash, this.amount, this.killRequest, this.realAddCar, this.barDocumentStatus, this.inputWarehouse}); + factory _KillHouseBars.fromJson(Map json) => _$KillHouseBarsFromJson(json); + +@override final KillHouseUserModel? killhouseUser; +@override final KillHouseUserModel? killer; +@override final AddCarModel? addCar; +@override final PoultryRequestModel? poultryRequest; +@override final WeightInfoModel? weightInfo; +@override final String? key; +@override final String? createDate; +@override final bool? trash; +@override final int? quantity; +@override final int? barCode; +@override final int? quarantineQuantity; +@override final String? quarantineCodeState; +@override final double? fee; +@override final String? time; +@override final String? state; +@override final String? vetState; +@override final String? activeState; +@override final String? assignmentStateArchive; +@override final String? showKillHouse; +@override final CarModel? car; +@override final String? killHouseMessage; +@override final String? allocationState; +@override final bool? auction; +@override final String? role; +@override final String? clearanceCode; +@override final String? trafficCode; +@override final RegistrarClearanceCode? registrarClearanceCode; +@override final String? editorTrafficCode; +@override final String? barRemover; +@override final int? extraKilledQuantity; +@override final int? acceptedRealQuantity; +@override final double? acceptedRealWeight; +@override final double? extraKilledWeight; +@override final int? vetAcceptedRealQuantity; +@override final double? vetAcceptedRealWeight; +@override final int? acceptedAssignmentRealQuantity; +@override final double? acceptedAssignmentRealWeight; +@override final String? message; +@override final bool? wareHouseConfirmation; +@override final int? wareHouseAcceptedRealQuantity; +@override final double? wareHouseAcceptedRealWeight; +@override final String? dateOfWareHouse; +@override final bool? freezing; +@override final bool? archiveWage; +@override final double? weightLoss; +@override final String? wareHouseInputType; +@override final String? documentStatus; +@override final String? aggregateCode; +@override final bool? aggregateStatus; +@override final bool? calculateStatus; +@override final bool? temporaryTrash; +@override final bool? temporaryDeleted; +@override final String? enteredMessage; +@override final String? inquiryDate; +@override final String? inquiryOrigin; +@override final String? inquiryDestination; +@override final String? inquiryDriver; +@override final String? inquiryPelak; +@override final String? settlementType; +@override final double? price; +@override final String? description; +@override final String? barDocumentDescription; +@override final String? image; +@override final String? priceRegisterar; +@override final String? priceRegisterarRole; +@override final String? priceRegisterDate; +@override final String? priceEditor; +@override final String? priceEditorRole; +@override final String? priceEditorDate; +@override final bool? nonReceipt; +@override final bool? nonReceiptReturn; +@override final String? nonReceiptReturnMessage; +@override final String? nonReceiptMessage; +@override final bool? mainNonReceipt; +@override final String? nonReceiptState; +@override final String? nonReceiptChecker; +@override final String? nonReceiptCheckerMessage; +@override final String? nonReceiptCheckerMobile; +@override final String? nonReceiptCheckDate; +@override final String? nonReceiptReturner; +@override final String? nonReceiptReturnerMobile; +@override final String? nonReceiptReturnDate; +@override final bool? fine; +@override final double? fineAmount; +@override final double? fineCoefficient; +@override final String? documentNumber; +@override final bool? companyDocument; +@override final bool? warehouse; +@override final double? warehouseCommitmentWeight; +@override final bool? returnTrash; +@override final double? amount; +@override final int? killRequest; +@override final String? realAddCar; +@override final String? barDocumentStatus; +@override final int? inputWarehouse; + +/// Create a copy of KillHouseBarsResponse +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$KillHouseBarsCopyWith<_KillHouseBars> get copyWith => __$KillHouseBarsCopyWithImpl<_KillHouseBars>(this, _$identity); + +@override +Map toJson() { + return _$KillHouseBarsToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _KillHouseBars&&(identical(other.killhouseUser, killhouseUser) || other.killhouseUser == killhouseUser)&&(identical(other.killer, killer) || other.killer == killer)&&(identical(other.addCar, addCar) || other.addCar == addCar)&&(identical(other.poultryRequest, poultryRequest) || other.poultryRequest == poultryRequest)&&(identical(other.weightInfo, weightInfo) || other.weightInfo == weightInfo)&&(identical(other.key, key) || other.key == key)&&(identical(other.createDate, createDate) || other.createDate == createDate)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.quantity, quantity) || other.quantity == quantity)&&(identical(other.barCode, barCode) || other.barCode == barCode)&&(identical(other.quarantineQuantity, quarantineQuantity) || other.quarantineQuantity == quarantineQuantity)&&(identical(other.quarantineCodeState, quarantineCodeState) || other.quarantineCodeState == quarantineCodeState)&&(identical(other.fee, fee) || other.fee == fee)&&(identical(other.time, time) || other.time == time)&&(identical(other.state, state) || other.state == state)&&(identical(other.vetState, vetState) || other.vetState == vetState)&&(identical(other.activeState, activeState) || other.activeState == activeState)&&(identical(other.assignmentStateArchive, assignmentStateArchive) || other.assignmentStateArchive == assignmentStateArchive)&&(identical(other.showKillHouse, showKillHouse) || other.showKillHouse == showKillHouse)&&(identical(other.car, car) || other.car == car)&&(identical(other.killHouseMessage, killHouseMessage) || other.killHouseMessage == killHouseMessage)&&(identical(other.allocationState, allocationState) || other.allocationState == allocationState)&&(identical(other.auction, auction) || other.auction == auction)&&(identical(other.role, role) || other.role == role)&&(identical(other.clearanceCode, clearanceCode) || other.clearanceCode == clearanceCode)&&(identical(other.trafficCode, trafficCode) || other.trafficCode == trafficCode)&&(identical(other.registrarClearanceCode, registrarClearanceCode) || other.registrarClearanceCode == registrarClearanceCode)&&(identical(other.editorTrafficCode, editorTrafficCode) || other.editorTrafficCode == editorTrafficCode)&&(identical(other.barRemover, barRemover) || other.barRemover == barRemover)&&(identical(other.extraKilledQuantity, extraKilledQuantity) || other.extraKilledQuantity == extraKilledQuantity)&&(identical(other.acceptedRealQuantity, acceptedRealQuantity) || other.acceptedRealQuantity == acceptedRealQuantity)&&(identical(other.acceptedRealWeight, acceptedRealWeight) || other.acceptedRealWeight == acceptedRealWeight)&&(identical(other.extraKilledWeight, extraKilledWeight) || other.extraKilledWeight == extraKilledWeight)&&(identical(other.vetAcceptedRealQuantity, vetAcceptedRealQuantity) || other.vetAcceptedRealQuantity == vetAcceptedRealQuantity)&&(identical(other.vetAcceptedRealWeight, vetAcceptedRealWeight) || other.vetAcceptedRealWeight == vetAcceptedRealWeight)&&(identical(other.acceptedAssignmentRealQuantity, acceptedAssignmentRealQuantity) || other.acceptedAssignmentRealQuantity == acceptedAssignmentRealQuantity)&&(identical(other.acceptedAssignmentRealWeight, acceptedAssignmentRealWeight) || other.acceptedAssignmentRealWeight == acceptedAssignmentRealWeight)&&(identical(other.message, message) || other.message == message)&&(identical(other.wareHouseConfirmation, wareHouseConfirmation) || other.wareHouseConfirmation == wareHouseConfirmation)&&(identical(other.wareHouseAcceptedRealQuantity, wareHouseAcceptedRealQuantity) || other.wareHouseAcceptedRealQuantity == wareHouseAcceptedRealQuantity)&&(identical(other.wareHouseAcceptedRealWeight, wareHouseAcceptedRealWeight) || other.wareHouseAcceptedRealWeight == wareHouseAcceptedRealWeight)&&(identical(other.dateOfWareHouse, dateOfWareHouse) || other.dateOfWareHouse == dateOfWareHouse)&&(identical(other.freezing, freezing) || other.freezing == freezing)&&(identical(other.archiveWage, archiveWage) || other.archiveWage == archiveWage)&&(identical(other.weightLoss, weightLoss) || other.weightLoss == weightLoss)&&(identical(other.wareHouseInputType, wareHouseInputType) || other.wareHouseInputType == wareHouseInputType)&&(identical(other.documentStatus, documentStatus) || other.documentStatus == documentStatus)&&(identical(other.aggregateCode, aggregateCode) || other.aggregateCode == aggregateCode)&&(identical(other.aggregateStatus, aggregateStatus) || other.aggregateStatus == aggregateStatus)&&(identical(other.calculateStatus, calculateStatus) || other.calculateStatus == calculateStatus)&&(identical(other.temporaryTrash, temporaryTrash) || other.temporaryTrash == temporaryTrash)&&(identical(other.temporaryDeleted, temporaryDeleted) || other.temporaryDeleted == temporaryDeleted)&&(identical(other.enteredMessage, enteredMessage) || other.enteredMessage == enteredMessage)&&(identical(other.inquiryDate, inquiryDate) || other.inquiryDate == inquiryDate)&&(identical(other.inquiryOrigin, inquiryOrigin) || other.inquiryOrigin == inquiryOrigin)&&(identical(other.inquiryDestination, inquiryDestination) || other.inquiryDestination == inquiryDestination)&&(identical(other.inquiryDriver, inquiryDriver) || other.inquiryDriver == inquiryDriver)&&(identical(other.inquiryPelak, inquiryPelak) || other.inquiryPelak == inquiryPelak)&&(identical(other.settlementType, settlementType) || other.settlementType == settlementType)&&(identical(other.price, price) || other.price == price)&&(identical(other.description, description) || other.description == description)&&(identical(other.barDocumentDescription, barDocumentDescription) || other.barDocumentDescription == barDocumentDescription)&&(identical(other.image, image) || other.image == image)&&(identical(other.priceRegisterar, priceRegisterar) || other.priceRegisterar == priceRegisterar)&&(identical(other.priceRegisterarRole, priceRegisterarRole) || other.priceRegisterarRole == priceRegisterarRole)&&(identical(other.priceRegisterDate, priceRegisterDate) || other.priceRegisterDate == priceRegisterDate)&&(identical(other.priceEditor, priceEditor) || other.priceEditor == priceEditor)&&(identical(other.priceEditorRole, priceEditorRole) || other.priceEditorRole == priceEditorRole)&&(identical(other.priceEditorDate, priceEditorDate) || other.priceEditorDate == priceEditorDate)&&(identical(other.nonReceipt, nonReceipt) || other.nonReceipt == nonReceipt)&&(identical(other.nonReceiptReturn, nonReceiptReturn) || other.nonReceiptReturn == nonReceiptReturn)&&(identical(other.nonReceiptReturnMessage, nonReceiptReturnMessage) || other.nonReceiptReturnMessage == nonReceiptReturnMessage)&&(identical(other.nonReceiptMessage, nonReceiptMessage) || other.nonReceiptMessage == nonReceiptMessage)&&(identical(other.mainNonReceipt, mainNonReceipt) || other.mainNonReceipt == mainNonReceipt)&&(identical(other.nonReceiptState, nonReceiptState) || other.nonReceiptState == nonReceiptState)&&(identical(other.nonReceiptChecker, nonReceiptChecker) || other.nonReceiptChecker == nonReceiptChecker)&&(identical(other.nonReceiptCheckerMessage, nonReceiptCheckerMessage) || other.nonReceiptCheckerMessage == nonReceiptCheckerMessage)&&(identical(other.nonReceiptCheckerMobile, nonReceiptCheckerMobile) || other.nonReceiptCheckerMobile == nonReceiptCheckerMobile)&&(identical(other.nonReceiptCheckDate, nonReceiptCheckDate) || other.nonReceiptCheckDate == nonReceiptCheckDate)&&(identical(other.nonReceiptReturner, nonReceiptReturner) || other.nonReceiptReturner == nonReceiptReturner)&&(identical(other.nonReceiptReturnerMobile, nonReceiptReturnerMobile) || other.nonReceiptReturnerMobile == nonReceiptReturnerMobile)&&(identical(other.nonReceiptReturnDate, nonReceiptReturnDate) || other.nonReceiptReturnDate == nonReceiptReturnDate)&&(identical(other.fine, fine) || other.fine == fine)&&(identical(other.fineAmount, fineAmount) || other.fineAmount == fineAmount)&&(identical(other.fineCoefficient, fineCoefficient) || other.fineCoefficient == fineCoefficient)&&(identical(other.documentNumber, documentNumber) || other.documentNumber == documentNumber)&&(identical(other.companyDocument, companyDocument) || other.companyDocument == companyDocument)&&(identical(other.warehouse, warehouse) || other.warehouse == warehouse)&&(identical(other.warehouseCommitmentWeight, warehouseCommitmentWeight) || other.warehouseCommitmentWeight == warehouseCommitmentWeight)&&(identical(other.returnTrash, returnTrash) || other.returnTrash == returnTrash)&&(identical(other.amount, amount) || other.amount == amount)&&(identical(other.killRequest, killRequest) || other.killRequest == killRequest)&&(identical(other.realAddCar, realAddCar) || other.realAddCar == realAddCar)&&(identical(other.barDocumentStatus, barDocumentStatus) || other.barDocumentStatus == barDocumentStatus)&&(identical(other.inputWarehouse, inputWarehouse) || other.inputWarehouse == inputWarehouse)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hashAll([runtimeType,killhouseUser,killer,addCar,poultryRequest,weightInfo,key,createDate,trash,quantity,barCode,quarantineQuantity,quarantineCodeState,fee,time,state,vetState,activeState,assignmentStateArchive,showKillHouse,car,killHouseMessage,allocationState,auction,role,clearanceCode,trafficCode,registrarClearanceCode,editorTrafficCode,barRemover,extraKilledQuantity,acceptedRealQuantity,acceptedRealWeight,extraKilledWeight,vetAcceptedRealQuantity,vetAcceptedRealWeight,acceptedAssignmentRealQuantity,acceptedAssignmentRealWeight,message,wareHouseConfirmation,wareHouseAcceptedRealQuantity,wareHouseAcceptedRealWeight,dateOfWareHouse,freezing,archiveWage,weightLoss,wareHouseInputType,documentStatus,aggregateCode,aggregateStatus,calculateStatus,temporaryTrash,temporaryDeleted,enteredMessage,inquiryDate,inquiryOrigin,inquiryDestination,inquiryDriver,inquiryPelak,settlementType,price,description,barDocumentDescription,image,priceRegisterar,priceRegisterarRole,priceRegisterDate,priceEditor,priceEditorRole,priceEditorDate,nonReceipt,nonReceiptReturn,nonReceiptReturnMessage,nonReceiptMessage,mainNonReceipt,nonReceiptState,nonReceiptChecker,nonReceiptCheckerMessage,nonReceiptCheckerMobile,nonReceiptCheckDate,nonReceiptReturner,nonReceiptReturnerMobile,nonReceiptReturnDate,fine,fineAmount,fineCoefficient,documentNumber,companyDocument,warehouse,warehouseCommitmentWeight,returnTrash,amount,killRequest,realAddCar,barDocumentStatus,inputWarehouse]); + +@override +String toString() { + return 'KillHouseBarsResponse(killhouseUser: $killhouseUser, killer: $killer, addCar: $addCar, poultryRequest: $poultryRequest, weightInfo: $weightInfo, key: $key, createDate: $createDate, trash: $trash, quantity: $quantity, barCode: $barCode, quarantineQuantity: $quarantineQuantity, quarantineCodeState: $quarantineCodeState, fee: $fee, time: $time, state: $state, vetState: $vetState, activeState: $activeState, assignmentStateArchive: $assignmentStateArchive, showKillHouse: $showKillHouse, car: $car, killHouseMessage: $killHouseMessage, allocationState: $allocationState, auction: $auction, role: $role, clearanceCode: $clearanceCode, trafficCode: $trafficCode, registrarClearanceCode: $registrarClearanceCode, editorTrafficCode: $editorTrafficCode, barRemover: $barRemover, extraKilledQuantity: $extraKilledQuantity, acceptedRealQuantity: $acceptedRealQuantity, acceptedRealWeight: $acceptedRealWeight, extraKilledWeight: $extraKilledWeight, vetAcceptedRealQuantity: $vetAcceptedRealQuantity, vetAcceptedRealWeight: $vetAcceptedRealWeight, acceptedAssignmentRealQuantity: $acceptedAssignmentRealQuantity, acceptedAssignmentRealWeight: $acceptedAssignmentRealWeight, message: $message, wareHouseConfirmation: $wareHouseConfirmation, wareHouseAcceptedRealQuantity: $wareHouseAcceptedRealQuantity, wareHouseAcceptedRealWeight: $wareHouseAcceptedRealWeight, dateOfWareHouse: $dateOfWareHouse, freezing: $freezing, archiveWage: $archiveWage, weightLoss: $weightLoss, wareHouseInputType: $wareHouseInputType, documentStatus: $documentStatus, aggregateCode: $aggregateCode, aggregateStatus: $aggregateStatus, calculateStatus: $calculateStatus, temporaryTrash: $temporaryTrash, temporaryDeleted: $temporaryDeleted, enteredMessage: $enteredMessage, inquiryDate: $inquiryDate, inquiryOrigin: $inquiryOrigin, inquiryDestination: $inquiryDestination, inquiryDriver: $inquiryDriver, inquiryPelak: $inquiryPelak, settlementType: $settlementType, price: $price, description: $description, barDocumentDescription: $barDocumentDescription, image: $image, priceRegisterar: $priceRegisterar, priceRegisterarRole: $priceRegisterarRole, priceRegisterDate: $priceRegisterDate, priceEditor: $priceEditor, priceEditorRole: $priceEditorRole, priceEditorDate: $priceEditorDate, nonReceipt: $nonReceipt, nonReceiptReturn: $nonReceiptReturn, nonReceiptReturnMessage: $nonReceiptReturnMessage, nonReceiptMessage: $nonReceiptMessage, mainNonReceipt: $mainNonReceipt, nonReceiptState: $nonReceiptState, nonReceiptChecker: $nonReceiptChecker, nonReceiptCheckerMessage: $nonReceiptCheckerMessage, nonReceiptCheckerMobile: $nonReceiptCheckerMobile, nonReceiptCheckDate: $nonReceiptCheckDate, nonReceiptReturner: $nonReceiptReturner, nonReceiptReturnerMobile: $nonReceiptReturnerMobile, nonReceiptReturnDate: $nonReceiptReturnDate, fine: $fine, fineAmount: $fineAmount, fineCoefficient: $fineCoefficient, documentNumber: $documentNumber, companyDocument: $companyDocument, warehouse: $warehouse, warehouseCommitmentWeight: $warehouseCommitmentWeight, returnTrash: $returnTrash, amount: $amount, killRequest: $killRequest, realAddCar: $realAddCar, barDocumentStatus: $barDocumentStatus, inputWarehouse: $inputWarehouse)'; +} + + +} + +/// @nodoc +abstract mixin class _$KillHouseBarsCopyWith<$Res> implements $KillHouseBarsResponseCopyWith<$Res> { + factory _$KillHouseBarsCopyWith(_KillHouseBars value, $Res Function(_KillHouseBars) _then) = __$KillHouseBarsCopyWithImpl; +@override @useResult +$Res call({ + KillHouseUserModel? killhouseUser, KillHouseUserModel? killer, AddCarModel? addCar, PoultryRequestModel? poultryRequest, WeightInfoModel? weightInfo, String? key, String? createDate, bool? trash, int? quantity, int? barCode, int? quarantineQuantity, String? quarantineCodeState, double? fee, String? time, String? state, String? vetState, String? activeState, String? assignmentStateArchive, String? showKillHouse, CarModel? car, String? killHouseMessage, String? allocationState, bool? auction, String? role, String? clearanceCode, String? trafficCode, RegistrarClearanceCode? registrarClearanceCode, String? editorTrafficCode, String? barRemover, int? extraKilledQuantity, int? acceptedRealQuantity, double? acceptedRealWeight, double? extraKilledWeight, int? vetAcceptedRealQuantity, double? vetAcceptedRealWeight, int? acceptedAssignmentRealQuantity, double? acceptedAssignmentRealWeight, String? message, bool? wareHouseConfirmation, int? wareHouseAcceptedRealQuantity, double? wareHouseAcceptedRealWeight, String? dateOfWareHouse, bool? freezing, bool? archiveWage, double? weightLoss, String? wareHouseInputType, String? documentStatus, String? aggregateCode, bool? aggregateStatus, bool? calculateStatus, bool? temporaryTrash, bool? temporaryDeleted, String? enteredMessage, String? inquiryDate, String? inquiryOrigin, String? inquiryDestination, String? inquiryDriver, String? inquiryPelak, String? settlementType, double? price, String? description, String? barDocumentDescription, String? image, String? priceRegisterar, String? priceRegisterarRole, String? priceRegisterDate, String? priceEditor, String? priceEditorRole, String? priceEditorDate, bool? nonReceipt, bool? nonReceiptReturn, String? nonReceiptReturnMessage, String? nonReceiptMessage, bool? mainNonReceipt, String? nonReceiptState, String? nonReceiptChecker, String? nonReceiptCheckerMessage, String? nonReceiptCheckerMobile, String? nonReceiptCheckDate, String? nonReceiptReturner, String? nonReceiptReturnerMobile, String? nonReceiptReturnDate, bool? fine, double? fineAmount, double? fineCoefficient, String? documentNumber, bool? companyDocument, bool? warehouse, double? warehouseCommitmentWeight, bool? returnTrash, double? amount, int? killRequest, String? realAddCar, String? barDocumentStatus, int? inputWarehouse +}); + + +@override $KillHouseUserModelCopyWith<$Res>? get killhouseUser;@override $KillHouseUserModelCopyWith<$Res>? get killer;@override $AddCarModelCopyWith<$Res>? get addCar;@override $PoultryRequestModelCopyWith<$Res>? get poultryRequest;@override $WeightInfoModelCopyWith<$Res>? get weightInfo;@override $CarModelCopyWith<$Res>? get car;@override $RegistrarClearanceCodeCopyWith<$Res>? get registrarClearanceCode; + +} +/// @nodoc +class __$KillHouseBarsCopyWithImpl<$Res> + implements _$KillHouseBarsCopyWith<$Res> { + __$KillHouseBarsCopyWithImpl(this._self, this._then); + + final _KillHouseBars _self; + final $Res Function(_KillHouseBars) _then; + +/// Create a copy of KillHouseBarsResponse +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? killhouseUser = freezed,Object? killer = freezed,Object? addCar = freezed,Object? poultryRequest = freezed,Object? weightInfo = freezed,Object? key = freezed,Object? createDate = freezed,Object? trash = freezed,Object? quantity = freezed,Object? barCode = freezed,Object? quarantineQuantity = freezed,Object? quarantineCodeState = freezed,Object? fee = freezed,Object? time = freezed,Object? state = freezed,Object? vetState = freezed,Object? activeState = freezed,Object? assignmentStateArchive = freezed,Object? showKillHouse = freezed,Object? car = freezed,Object? killHouseMessage = freezed,Object? allocationState = freezed,Object? auction = freezed,Object? role = freezed,Object? clearanceCode = freezed,Object? trafficCode = freezed,Object? registrarClearanceCode = freezed,Object? editorTrafficCode = freezed,Object? barRemover = freezed,Object? extraKilledQuantity = freezed,Object? acceptedRealQuantity = freezed,Object? acceptedRealWeight = freezed,Object? extraKilledWeight = freezed,Object? vetAcceptedRealQuantity = freezed,Object? vetAcceptedRealWeight = freezed,Object? acceptedAssignmentRealQuantity = freezed,Object? acceptedAssignmentRealWeight = freezed,Object? message = freezed,Object? wareHouseConfirmation = freezed,Object? wareHouseAcceptedRealQuantity = freezed,Object? wareHouseAcceptedRealWeight = freezed,Object? dateOfWareHouse = freezed,Object? freezing = freezed,Object? archiveWage = freezed,Object? weightLoss = freezed,Object? wareHouseInputType = freezed,Object? documentStatus = freezed,Object? aggregateCode = freezed,Object? aggregateStatus = freezed,Object? calculateStatus = freezed,Object? temporaryTrash = freezed,Object? temporaryDeleted = freezed,Object? enteredMessage = freezed,Object? inquiryDate = freezed,Object? inquiryOrigin = freezed,Object? inquiryDestination = freezed,Object? inquiryDriver = freezed,Object? inquiryPelak = freezed,Object? settlementType = freezed,Object? price = freezed,Object? description = freezed,Object? barDocumentDescription = freezed,Object? image = freezed,Object? priceRegisterar = freezed,Object? priceRegisterarRole = freezed,Object? priceRegisterDate = freezed,Object? priceEditor = freezed,Object? priceEditorRole = freezed,Object? priceEditorDate = freezed,Object? nonReceipt = freezed,Object? nonReceiptReturn = freezed,Object? nonReceiptReturnMessage = freezed,Object? nonReceiptMessage = freezed,Object? mainNonReceipt = freezed,Object? nonReceiptState = freezed,Object? nonReceiptChecker = freezed,Object? nonReceiptCheckerMessage = freezed,Object? nonReceiptCheckerMobile = freezed,Object? nonReceiptCheckDate = freezed,Object? nonReceiptReturner = freezed,Object? nonReceiptReturnerMobile = freezed,Object? nonReceiptReturnDate = freezed,Object? fine = freezed,Object? fineAmount = freezed,Object? fineCoefficient = freezed,Object? documentNumber = freezed,Object? companyDocument = freezed,Object? warehouse = freezed,Object? warehouseCommitmentWeight = freezed,Object? returnTrash = freezed,Object? amount = freezed,Object? killRequest = freezed,Object? realAddCar = freezed,Object? barDocumentStatus = freezed,Object? inputWarehouse = freezed,}) { + return _then(_KillHouseBars( +killhouseUser: freezed == killhouseUser ? _self.killhouseUser : killhouseUser // ignore: cast_nullable_to_non_nullable +as KillHouseUserModel?,killer: freezed == killer ? _self.killer : killer // ignore: cast_nullable_to_non_nullable +as KillHouseUserModel?,addCar: freezed == addCar ? _self.addCar : addCar // ignore: cast_nullable_to_non_nullable +as AddCarModel?,poultryRequest: freezed == poultryRequest ? _self.poultryRequest : poultryRequest // ignore: cast_nullable_to_non_nullable +as PoultryRequestModel?,weightInfo: freezed == weightInfo ? _self.weightInfo : weightInfo // ignore: cast_nullable_to_non_nullable +as WeightInfoModel?,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?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable +as bool?,quantity: freezed == quantity ? _self.quantity : quantity // ignore: cast_nullable_to_non_nullable +as int?,barCode: freezed == barCode ? _self.barCode : barCode // ignore: cast_nullable_to_non_nullable +as int?,quarantineQuantity: freezed == quarantineQuantity ? _self.quarantineQuantity : quarantineQuantity // ignore: cast_nullable_to_non_nullable +as int?,quarantineCodeState: freezed == quarantineCodeState ? _self.quarantineCodeState : quarantineCodeState // ignore: cast_nullable_to_non_nullable +as String?,fee: freezed == fee ? _self.fee : fee // ignore: cast_nullable_to_non_nullable +as double?,time: freezed == time ? _self.time : time // ignore: cast_nullable_to_non_nullable +as String?,state: freezed == state ? _self.state : state // ignore: cast_nullable_to_non_nullable +as String?,vetState: freezed == vetState ? _self.vetState : vetState // ignore: cast_nullable_to_non_nullable +as String?,activeState: freezed == activeState ? _self.activeState : activeState // ignore: cast_nullable_to_non_nullable +as String?,assignmentStateArchive: freezed == assignmentStateArchive ? _self.assignmentStateArchive : assignmentStateArchive // ignore: cast_nullable_to_non_nullable +as String?,showKillHouse: freezed == showKillHouse ? _self.showKillHouse : showKillHouse // ignore: cast_nullable_to_non_nullable +as String?,car: freezed == car ? _self.car : car // ignore: cast_nullable_to_non_nullable +as CarModel?,killHouseMessage: freezed == killHouseMessage ? _self.killHouseMessage : killHouseMessage // ignore: cast_nullable_to_non_nullable +as String?,allocationState: freezed == allocationState ? _self.allocationState : allocationState // ignore: cast_nullable_to_non_nullable +as String?,auction: freezed == auction ? _self.auction : auction // ignore: cast_nullable_to_non_nullable +as bool?,role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable +as String?,clearanceCode: freezed == clearanceCode ? _self.clearanceCode : clearanceCode // ignore: cast_nullable_to_non_nullable +as String?,trafficCode: freezed == trafficCode ? _self.trafficCode : trafficCode // ignore: cast_nullable_to_non_nullable +as String?,registrarClearanceCode: freezed == registrarClearanceCode ? _self.registrarClearanceCode : registrarClearanceCode // ignore: cast_nullable_to_non_nullable +as RegistrarClearanceCode?,editorTrafficCode: freezed == editorTrafficCode ? _self.editorTrafficCode : editorTrafficCode // ignore: cast_nullable_to_non_nullable +as String?,barRemover: freezed == barRemover ? _self.barRemover : barRemover // ignore: cast_nullable_to_non_nullable +as String?,extraKilledQuantity: freezed == extraKilledQuantity ? _self.extraKilledQuantity : extraKilledQuantity // ignore: cast_nullable_to_non_nullable +as int?,acceptedRealQuantity: freezed == acceptedRealQuantity ? _self.acceptedRealQuantity : acceptedRealQuantity // ignore: cast_nullable_to_non_nullable +as int?,acceptedRealWeight: freezed == acceptedRealWeight ? _self.acceptedRealWeight : acceptedRealWeight // ignore: cast_nullable_to_non_nullable +as double?,extraKilledWeight: freezed == extraKilledWeight ? _self.extraKilledWeight : extraKilledWeight // ignore: cast_nullable_to_non_nullable +as double?,vetAcceptedRealQuantity: freezed == vetAcceptedRealQuantity ? _self.vetAcceptedRealQuantity : vetAcceptedRealQuantity // ignore: cast_nullable_to_non_nullable +as int?,vetAcceptedRealWeight: freezed == vetAcceptedRealWeight ? _self.vetAcceptedRealWeight : vetAcceptedRealWeight // ignore: cast_nullable_to_non_nullable +as double?,acceptedAssignmentRealQuantity: freezed == acceptedAssignmentRealQuantity ? _self.acceptedAssignmentRealQuantity : acceptedAssignmentRealQuantity // ignore: cast_nullable_to_non_nullable +as int?,acceptedAssignmentRealWeight: freezed == acceptedAssignmentRealWeight ? _self.acceptedAssignmentRealWeight : acceptedAssignmentRealWeight // ignore: cast_nullable_to_non_nullable +as double?,message: freezed == message ? _self.message : message // ignore: cast_nullable_to_non_nullable +as String?,wareHouseConfirmation: freezed == wareHouseConfirmation ? _self.wareHouseConfirmation : wareHouseConfirmation // ignore: cast_nullable_to_non_nullable +as bool?,wareHouseAcceptedRealQuantity: freezed == wareHouseAcceptedRealQuantity ? _self.wareHouseAcceptedRealQuantity : wareHouseAcceptedRealQuantity // ignore: cast_nullable_to_non_nullable +as int?,wareHouseAcceptedRealWeight: freezed == wareHouseAcceptedRealWeight ? _self.wareHouseAcceptedRealWeight : wareHouseAcceptedRealWeight // ignore: cast_nullable_to_non_nullable +as double?,dateOfWareHouse: freezed == dateOfWareHouse ? _self.dateOfWareHouse : dateOfWareHouse // ignore: cast_nullable_to_non_nullable +as String?,freezing: freezed == freezing ? _self.freezing : freezing // ignore: cast_nullable_to_non_nullable +as bool?,archiveWage: freezed == archiveWage ? _self.archiveWage : archiveWage // ignore: cast_nullable_to_non_nullable +as bool?,weightLoss: freezed == weightLoss ? _self.weightLoss : weightLoss // ignore: cast_nullable_to_non_nullable +as double?,wareHouseInputType: freezed == wareHouseInputType ? _self.wareHouseInputType : wareHouseInputType // ignore: cast_nullable_to_non_nullable +as String?,documentStatus: freezed == documentStatus ? _self.documentStatus : documentStatus // ignore: cast_nullable_to_non_nullable +as String?,aggregateCode: freezed == aggregateCode ? _self.aggregateCode : aggregateCode // ignore: cast_nullable_to_non_nullable +as String?,aggregateStatus: freezed == aggregateStatus ? _self.aggregateStatus : aggregateStatus // 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?,enteredMessage: freezed == enteredMessage ? _self.enteredMessage : enteredMessage // ignore: cast_nullable_to_non_nullable +as String?,inquiryDate: freezed == inquiryDate ? _self.inquiryDate : inquiryDate // ignore: cast_nullable_to_non_nullable +as String?,inquiryOrigin: freezed == inquiryOrigin ? _self.inquiryOrigin : inquiryOrigin // ignore: cast_nullable_to_non_nullable +as String?,inquiryDestination: freezed == inquiryDestination ? _self.inquiryDestination : inquiryDestination // ignore: cast_nullable_to_non_nullable +as String?,inquiryDriver: freezed == inquiryDriver ? _self.inquiryDriver : inquiryDriver // ignore: cast_nullable_to_non_nullable +as String?,inquiryPelak: freezed == inquiryPelak ? _self.inquiryPelak : inquiryPelak // ignore: cast_nullable_to_non_nullable +as String?,settlementType: freezed == settlementType ? _self.settlementType : settlementType // ignore: cast_nullable_to_non_nullable +as String?,price: freezed == price ? _self.price : price // ignore: cast_nullable_to_non_nullable +as double?,description: freezed == description ? _self.description : description // ignore: cast_nullable_to_non_nullable +as String?,barDocumentDescription: freezed == barDocumentDescription ? _self.barDocumentDescription : barDocumentDescription // ignore: cast_nullable_to_non_nullable +as String?,image: freezed == image ? _self.image : image // ignore: cast_nullable_to_non_nullable +as String?,priceRegisterar: freezed == priceRegisterar ? _self.priceRegisterar : priceRegisterar // ignore: cast_nullable_to_non_nullable +as String?,priceRegisterarRole: freezed == priceRegisterarRole ? _self.priceRegisterarRole : priceRegisterarRole // ignore: cast_nullable_to_non_nullable +as String?,priceRegisterDate: freezed == priceRegisterDate ? _self.priceRegisterDate : priceRegisterDate // ignore: cast_nullable_to_non_nullable +as String?,priceEditor: freezed == priceEditor ? _self.priceEditor : priceEditor // ignore: cast_nullable_to_non_nullable +as String?,priceEditorRole: freezed == priceEditorRole ? _self.priceEditorRole : priceEditorRole // ignore: cast_nullable_to_non_nullable +as String?,priceEditorDate: freezed == priceEditorDate ? _self.priceEditorDate : priceEditorDate // ignore: cast_nullable_to_non_nullable +as String?,nonReceipt: freezed == nonReceipt ? _self.nonReceipt : nonReceipt // ignore: cast_nullable_to_non_nullable +as bool?,nonReceiptReturn: freezed == nonReceiptReturn ? _self.nonReceiptReturn : nonReceiptReturn // ignore: cast_nullable_to_non_nullable +as bool?,nonReceiptReturnMessage: freezed == nonReceiptReturnMessage ? _self.nonReceiptReturnMessage : nonReceiptReturnMessage // ignore: cast_nullable_to_non_nullable +as String?,nonReceiptMessage: freezed == nonReceiptMessage ? _self.nonReceiptMessage : nonReceiptMessage // ignore: cast_nullable_to_non_nullable +as String?,mainNonReceipt: freezed == mainNonReceipt ? _self.mainNonReceipt : mainNonReceipt // ignore: cast_nullable_to_non_nullable +as bool?,nonReceiptState: freezed == nonReceiptState ? _self.nonReceiptState : nonReceiptState // ignore: cast_nullable_to_non_nullable +as String?,nonReceiptChecker: freezed == nonReceiptChecker ? _self.nonReceiptChecker : nonReceiptChecker // ignore: cast_nullable_to_non_nullable +as String?,nonReceiptCheckerMessage: freezed == nonReceiptCheckerMessage ? _self.nonReceiptCheckerMessage : nonReceiptCheckerMessage // ignore: cast_nullable_to_non_nullable +as String?,nonReceiptCheckerMobile: freezed == nonReceiptCheckerMobile ? _self.nonReceiptCheckerMobile : nonReceiptCheckerMobile // ignore: cast_nullable_to_non_nullable +as String?,nonReceiptCheckDate: freezed == nonReceiptCheckDate ? _self.nonReceiptCheckDate : nonReceiptCheckDate // ignore: cast_nullable_to_non_nullable +as String?,nonReceiptReturner: freezed == nonReceiptReturner ? _self.nonReceiptReturner : nonReceiptReturner // ignore: cast_nullable_to_non_nullable +as String?,nonReceiptReturnerMobile: freezed == nonReceiptReturnerMobile ? _self.nonReceiptReturnerMobile : nonReceiptReturnerMobile // ignore: cast_nullable_to_non_nullable +as String?,nonReceiptReturnDate: freezed == nonReceiptReturnDate ? _self.nonReceiptReturnDate : nonReceiptReturnDate // ignore: cast_nullable_to_non_nullable +as String?,fine: freezed == fine ? _self.fine : fine // ignore: cast_nullable_to_non_nullable +as bool?,fineAmount: freezed == fineAmount ? _self.fineAmount : fineAmount // ignore: cast_nullable_to_non_nullable +as double?,fineCoefficient: freezed == fineCoefficient ? _self.fineCoefficient : fineCoefficient // ignore: cast_nullable_to_non_nullable +as double?,documentNumber: freezed == documentNumber ? _self.documentNumber : documentNumber // ignore: cast_nullable_to_non_nullable +as String?,companyDocument: freezed == companyDocument ? _self.companyDocument : companyDocument // ignore: cast_nullable_to_non_nullable +as bool?,warehouse: freezed == warehouse ? _self.warehouse : warehouse // ignore: cast_nullable_to_non_nullable +as bool?,warehouseCommitmentWeight: freezed == warehouseCommitmentWeight ? _self.warehouseCommitmentWeight : warehouseCommitmentWeight // ignore: cast_nullable_to_non_nullable +as double?,returnTrash: freezed == returnTrash ? _self.returnTrash : returnTrash // ignore: cast_nullable_to_non_nullable +as bool?,amount: freezed == amount ? _self.amount : amount // ignore: cast_nullable_to_non_nullable +as double?,killRequest: freezed == killRequest ? _self.killRequest : killRequest // ignore: cast_nullable_to_non_nullable +as int?,realAddCar: freezed == realAddCar ? _self.realAddCar : realAddCar // ignore: cast_nullable_to_non_nullable +as String?,barDocumentStatus: freezed == barDocumentStatus ? _self.barDocumentStatus : barDocumentStatus // ignore: cast_nullable_to_non_nullable +as String?,inputWarehouse: freezed == inputWarehouse ? _self.inputWarehouse : inputWarehouse // ignore: cast_nullable_to_non_nullable +as int?, + )); +} + +/// Create a copy of KillHouseBarsResponse +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$KillHouseUserModelCopyWith<$Res>? get killhouseUser { + if (_self.killhouseUser == null) { + return null; + } + + return $KillHouseUserModelCopyWith<$Res>(_self.killhouseUser!, (value) { + return _then(_self.copyWith(killhouseUser: value)); + }); +}/// Create a copy of KillHouseBarsResponse +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$KillHouseUserModelCopyWith<$Res>? get killer { + if (_self.killer == null) { + return null; + } + + return $KillHouseUserModelCopyWith<$Res>(_self.killer!, (value) { + return _then(_self.copyWith(killer: value)); + }); +}/// Create a copy of KillHouseBarsResponse +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$AddCarModelCopyWith<$Res>? get addCar { + if (_self.addCar == null) { + return null; + } + + return $AddCarModelCopyWith<$Res>(_self.addCar!, (value) { + return _then(_self.copyWith(addCar: value)); + }); +}/// Create a copy of KillHouseBarsResponse +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$PoultryRequestModelCopyWith<$Res>? get poultryRequest { + if (_self.poultryRequest == null) { + return null; + } + + return $PoultryRequestModelCopyWith<$Res>(_self.poultryRequest!, (value) { + return _then(_self.copyWith(poultryRequest: value)); + }); +}/// Create a copy of KillHouseBarsResponse +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$WeightInfoModelCopyWith<$Res>? get weightInfo { + if (_self.weightInfo == null) { + return null; + } + + return $WeightInfoModelCopyWith<$Res>(_self.weightInfo!, (value) { + return _then(_self.copyWith(weightInfo: value)); + }); +}/// Create a copy of KillHouseBarsResponse +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$CarModelCopyWith<$Res>? get car { + if (_self.car == null) { + return null; + } + + return $CarModelCopyWith<$Res>(_self.car!, (value) { + return _then(_self.copyWith(car: value)); + }); +}/// Create a copy of KillHouseBarsResponse +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$RegistrarClearanceCodeCopyWith<$Res>? get registrarClearanceCode { + if (_self.registrarClearanceCode == null) { + return null; + } + + return $RegistrarClearanceCodeCopyWith<$Res>(_self.registrarClearanceCode!, (value) { + return _then(_self.copyWith(registrarClearanceCode: value)); + }); +} +} + + +/// @nodoc +mixin _$KillHouseUserModel { + + KillHouseOperatorModel? get killHouseOperator; String? get name; bool? get killer; String? get key; double? get maximumLoadVolumeIncrease; double? get maximumLoadVolumeReduction; +/// Create a copy of KillHouseUserModel +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$KillHouseUserModelCopyWith get copyWith => _$KillHouseUserModelCopyWithImpl(this as KillHouseUserModel, _$identity); + + /// Serializes this KillHouseUserModel to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is KillHouseUserModel&&(identical(other.killHouseOperator, killHouseOperator) || other.killHouseOperator == killHouseOperator)&&(identical(other.name, name) || other.name == name)&&(identical(other.killer, killer) || other.killer == killer)&&(identical(other.key, key) || other.key == key)&&(identical(other.maximumLoadVolumeIncrease, maximumLoadVolumeIncrease) || other.maximumLoadVolumeIncrease == maximumLoadVolumeIncrease)&&(identical(other.maximumLoadVolumeReduction, maximumLoadVolumeReduction) || other.maximumLoadVolumeReduction == maximumLoadVolumeReduction)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,killHouseOperator,name,killer,key,maximumLoadVolumeIncrease,maximumLoadVolumeReduction); + +@override +String toString() { + return 'KillHouseUserModel(killHouseOperator: $killHouseOperator, name: $name, killer: $killer, key: $key, maximumLoadVolumeIncrease: $maximumLoadVolumeIncrease, maximumLoadVolumeReduction: $maximumLoadVolumeReduction)'; +} + + +} + +/// @nodoc +abstract mixin class $KillHouseUserModelCopyWith<$Res> { + factory $KillHouseUserModelCopyWith(KillHouseUserModel value, $Res Function(KillHouseUserModel) _then) = _$KillHouseUserModelCopyWithImpl; +@useResult +$Res call({ + KillHouseOperatorModel? killHouseOperator, String? name, bool? killer, String? key, double? maximumLoadVolumeIncrease, double? maximumLoadVolumeReduction +}); + + +$KillHouseOperatorModelCopyWith<$Res>? get killHouseOperator; + +} +/// @nodoc +class _$KillHouseUserModelCopyWithImpl<$Res> + implements $KillHouseUserModelCopyWith<$Res> { + _$KillHouseUserModelCopyWithImpl(this._self, this._then); + + final KillHouseUserModel _self; + final $Res Function(KillHouseUserModel) _then; + +/// Create a copy of KillHouseUserModel +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? killHouseOperator = freezed,Object? name = freezed,Object? killer = freezed,Object? key = freezed,Object? maximumLoadVolumeIncrease = freezed,Object? maximumLoadVolumeReduction = freezed,}) { + return _then(_self.copyWith( +killHouseOperator: freezed == killHouseOperator ? _self.killHouseOperator : killHouseOperator // ignore: cast_nullable_to_non_nullable +as KillHouseOperatorModel?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?,killer: freezed == killer ? _self.killer : killer // ignore: cast_nullable_to_non_nullable +as bool?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,maximumLoadVolumeIncrease: freezed == maximumLoadVolumeIncrease ? _self.maximumLoadVolumeIncrease : maximumLoadVolumeIncrease // ignore: cast_nullable_to_non_nullable +as double?,maximumLoadVolumeReduction: freezed == maximumLoadVolumeReduction ? _self.maximumLoadVolumeReduction : maximumLoadVolumeReduction // ignore: cast_nullable_to_non_nullable +as double?, + )); +} +/// Create a copy of KillHouseUserModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$KillHouseOperatorModelCopyWith<$Res>? get killHouseOperator { + if (_self.killHouseOperator == null) { + return null; + } + + return $KillHouseOperatorModelCopyWith<$Res>(_self.killHouseOperator!, (value) { + return _then(_self.copyWith(killHouseOperator: value)); + }); +} +} + + +/// Adds pattern-matching-related methods to [KillHouseUserModel]. +extension KillHouseUserModelPatterns on KillHouseUserModel { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _KillHouseUserModel value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _KillHouseUserModel() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _KillHouseUserModel value) $default,){ +final _that = this; +switch (_that) { +case _KillHouseUserModel(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _KillHouseUserModel value)? $default,){ +final _that = this; +switch (_that) { +case _KillHouseUserModel() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( KillHouseOperatorModel? killHouseOperator, String? name, bool? killer, String? key, double? maximumLoadVolumeIncrease, double? maximumLoadVolumeReduction)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _KillHouseUserModel() when $default != null: +return $default(_that.killHouseOperator,_that.name,_that.killer,_that.key,_that.maximumLoadVolumeIncrease,_that.maximumLoadVolumeReduction);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( KillHouseOperatorModel? killHouseOperator, String? name, bool? killer, String? key, double? maximumLoadVolumeIncrease, double? maximumLoadVolumeReduction) $default,) {final _that = this; +switch (_that) { +case _KillHouseUserModel(): +return $default(_that.killHouseOperator,_that.name,_that.killer,_that.key,_that.maximumLoadVolumeIncrease,_that.maximumLoadVolumeReduction);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( KillHouseOperatorModel? killHouseOperator, String? name, bool? killer, String? key, double? maximumLoadVolumeIncrease, double? maximumLoadVolumeReduction)? $default,) {final _that = this; +switch (_that) { +case _KillHouseUserModel() when $default != null: +return $default(_that.killHouseOperator,_that.name,_that.killer,_that.key,_that.maximumLoadVolumeIncrease,_that.maximumLoadVolumeReduction);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _KillHouseUserModel implements KillHouseUserModel { + const _KillHouseUserModel({this.killHouseOperator, this.name, this.killer, this.key, this.maximumLoadVolumeIncrease, this.maximumLoadVolumeReduction}); + factory _KillHouseUserModel.fromJson(Map json) => _$KillHouseUserModelFromJson(json); + +@override final KillHouseOperatorModel? killHouseOperator; +@override final String? name; +@override final bool? killer; +@override final String? key; +@override final double? maximumLoadVolumeIncrease; +@override final double? maximumLoadVolumeReduction; + +/// Create a copy of KillHouseUserModel +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$KillHouseUserModelCopyWith<_KillHouseUserModel> get copyWith => __$KillHouseUserModelCopyWithImpl<_KillHouseUserModel>(this, _$identity); + +@override +Map toJson() { + return _$KillHouseUserModelToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _KillHouseUserModel&&(identical(other.killHouseOperator, killHouseOperator) || other.killHouseOperator == killHouseOperator)&&(identical(other.name, name) || other.name == name)&&(identical(other.killer, killer) || other.killer == killer)&&(identical(other.key, key) || other.key == key)&&(identical(other.maximumLoadVolumeIncrease, maximumLoadVolumeIncrease) || other.maximumLoadVolumeIncrease == maximumLoadVolumeIncrease)&&(identical(other.maximumLoadVolumeReduction, maximumLoadVolumeReduction) || other.maximumLoadVolumeReduction == maximumLoadVolumeReduction)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,killHouseOperator,name,killer,key,maximumLoadVolumeIncrease,maximumLoadVolumeReduction); + +@override +String toString() { + return 'KillHouseUserModel(killHouseOperator: $killHouseOperator, name: $name, killer: $killer, key: $key, maximumLoadVolumeIncrease: $maximumLoadVolumeIncrease, maximumLoadVolumeReduction: $maximumLoadVolumeReduction)'; +} + + +} + +/// @nodoc +abstract mixin class _$KillHouseUserModelCopyWith<$Res> implements $KillHouseUserModelCopyWith<$Res> { + factory _$KillHouseUserModelCopyWith(_KillHouseUserModel value, $Res Function(_KillHouseUserModel) _then) = __$KillHouseUserModelCopyWithImpl; +@override @useResult +$Res call({ + KillHouseOperatorModel? killHouseOperator, String? name, bool? killer, String? key, double? maximumLoadVolumeIncrease, double? maximumLoadVolumeReduction +}); + + +@override $KillHouseOperatorModelCopyWith<$Res>? get killHouseOperator; + +} +/// @nodoc +class __$KillHouseUserModelCopyWithImpl<$Res> + implements _$KillHouseUserModelCopyWith<$Res> { + __$KillHouseUserModelCopyWithImpl(this._self, this._then); + + final _KillHouseUserModel _self; + final $Res Function(_KillHouseUserModel) _then; + +/// Create a copy of KillHouseUserModel +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? killHouseOperator = freezed,Object? name = freezed,Object? killer = freezed,Object? key = freezed,Object? maximumLoadVolumeIncrease = freezed,Object? maximumLoadVolumeReduction = freezed,}) { + return _then(_KillHouseUserModel( +killHouseOperator: freezed == killHouseOperator ? _self.killHouseOperator : killHouseOperator // ignore: cast_nullable_to_non_nullable +as KillHouseOperatorModel?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?,killer: freezed == killer ? _self.killer : killer // ignore: cast_nullable_to_non_nullable +as bool?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,maximumLoadVolumeIncrease: freezed == maximumLoadVolumeIncrease ? _self.maximumLoadVolumeIncrease : maximumLoadVolumeIncrease // ignore: cast_nullable_to_non_nullable +as double?,maximumLoadVolumeReduction: freezed == maximumLoadVolumeReduction ? _self.maximumLoadVolumeReduction : maximumLoadVolumeReduction // ignore: cast_nullable_to_non_nullable +as double?, + )); +} + +/// Create a copy of KillHouseUserModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$KillHouseOperatorModelCopyWith<$Res>? get killHouseOperator { + if (_self.killHouseOperator == null) { + return null; + } + + return $KillHouseOperatorModelCopyWith<$Res>(_self.killHouseOperator!, (value) { + return _then(_self.copyWith(killHouseOperator: value)); + }); +} +} + + +/// @nodoc +mixin _$KillHouseOperatorModel { + + UserDetailModel? get user; +/// Create a copy of KillHouseOperatorModel +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$KillHouseOperatorModelCopyWith get copyWith => _$KillHouseOperatorModelCopyWithImpl(this as KillHouseOperatorModel, _$identity); + + /// Serializes this KillHouseOperatorModel to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is KillHouseOperatorModel&&(identical(other.user, user) || other.user == user)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,user); + +@override +String toString() { + return 'KillHouseOperatorModel(user: $user)'; +} + + +} + +/// @nodoc +abstract mixin class $KillHouseOperatorModelCopyWith<$Res> { + factory $KillHouseOperatorModelCopyWith(KillHouseOperatorModel value, $Res Function(KillHouseOperatorModel) _then) = _$KillHouseOperatorModelCopyWithImpl; +@useResult +$Res call({ + UserDetailModel? user +}); + + +$UserDetailModelCopyWith<$Res>? get user; + +} +/// @nodoc +class _$KillHouseOperatorModelCopyWithImpl<$Res> + implements $KillHouseOperatorModelCopyWith<$Res> { + _$KillHouseOperatorModelCopyWithImpl(this._self, this._then); + + final KillHouseOperatorModel _self; + final $Res Function(KillHouseOperatorModel) _then; + +/// Create a copy of KillHouseOperatorModel +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? user = freezed,}) { + return _then(_self.copyWith( +user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable +as UserDetailModel?, + )); +} +/// Create a copy of KillHouseOperatorModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$UserDetailModelCopyWith<$Res>? get user { + if (_self.user == null) { + return null; + } + + return $UserDetailModelCopyWith<$Res>(_self.user!, (value) { + return _then(_self.copyWith(user: value)); + }); +} +} + + +/// Adds pattern-matching-related methods to [KillHouseOperatorModel]. +extension KillHouseOperatorModelPatterns on KillHouseOperatorModel { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _KillHouseOperatorModel value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _KillHouseOperatorModel() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _KillHouseOperatorModel value) $default,){ +final _that = this; +switch (_that) { +case _KillHouseOperatorModel(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _KillHouseOperatorModel value)? $default,){ +final _that = this; +switch (_that) { +case _KillHouseOperatorModel() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( UserDetailModel? user)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _KillHouseOperatorModel() when $default != null: +return $default(_that.user);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( UserDetailModel? user) $default,) {final _that = this; +switch (_that) { +case _KillHouseOperatorModel(): +return $default(_that.user);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( UserDetailModel? user)? $default,) {final _that = this; +switch (_that) { +case _KillHouseOperatorModel() when $default != null: +return $default(_that.user);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _KillHouseOperatorModel implements KillHouseOperatorModel { + const _KillHouseOperatorModel({this.user}); + factory _KillHouseOperatorModel.fromJson(Map json) => _$KillHouseOperatorModelFromJson(json); + +@override final UserDetailModel? user; + +/// Create a copy of KillHouseOperatorModel +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$KillHouseOperatorModelCopyWith<_KillHouseOperatorModel> get copyWith => __$KillHouseOperatorModelCopyWithImpl<_KillHouseOperatorModel>(this, _$identity); + +@override +Map toJson() { + return _$KillHouseOperatorModelToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _KillHouseOperatorModel&&(identical(other.user, user) || other.user == user)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,user); + +@override +String toString() { + return 'KillHouseOperatorModel(user: $user)'; +} + + +} + +/// @nodoc +abstract mixin class _$KillHouseOperatorModelCopyWith<$Res> implements $KillHouseOperatorModelCopyWith<$Res> { + factory _$KillHouseOperatorModelCopyWith(_KillHouseOperatorModel value, $Res Function(_KillHouseOperatorModel) _then) = __$KillHouseOperatorModelCopyWithImpl; +@override @useResult +$Res call({ + UserDetailModel? user +}); + + +@override $UserDetailModelCopyWith<$Res>? get user; + +} +/// @nodoc +class __$KillHouseOperatorModelCopyWithImpl<$Res> + implements _$KillHouseOperatorModelCopyWith<$Res> { + __$KillHouseOperatorModelCopyWithImpl(this._self, this._then); + + final _KillHouseOperatorModel _self; + final $Res Function(_KillHouseOperatorModel) _then; + +/// Create a copy of KillHouseOperatorModel +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? user = freezed,}) { + return _then(_KillHouseOperatorModel( +user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable +as UserDetailModel?, + )); +} + +/// Create a copy of KillHouseOperatorModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$UserDetailModelCopyWith<$Res>? get user { + if (_self.user == null) { + return null; + } + + return $UserDetailModelCopyWith<$Res>(_self.user!, (value) { + return _then(_self.copyWith(user: value)); + }); +} +} + + +/// @nodoc +mixin _$UserDetailModel { + + String? get fullname; String? get firstName; String? get lastName; int? get baseOrder; String? get mobile; String? get nationalId; String? get nationalCode; String? get key; CityDetailModel? get city; String? get unitName; String? get unitNationalId; String? get unitRegistrationNumber; String? get unitEconomicalNumber; String? get unitProvince; String? get unitCity; String? get unitPostalCode; String? get unitAddress; +/// Create a copy of UserDetailModel +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$UserDetailModelCopyWith get copyWith => _$UserDetailModelCopyWithImpl(this as UserDetailModel, _$identity); + + /// Serializes this UserDetailModel to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is UserDetailModel&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.baseOrder, baseOrder) || other.baseOrder == baseOrder)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.nationalId, nationalId) || other.nationalId == nationalId)&&(identical(other.nationalCode, nationalCode) || other.nationalCode == nationalCode)&&(identical(other.key, key) || other.key == key)&&(identical(other.city, city) || other.city == city)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.unitNationalId, unitNationalId) || other.unitNationalId == unitNationalId)&&(identical(other.unitRegistrationNumber, unitRegistrationNumber) || other.unitRegistrationNumber == unitRegistrationNumber)&&(identical(other.unitEconomicalNumber, unitEconomicalNumber) || other.unitEconomicalNumber == unitEconomicalNumber)&&(identical(other.unitProvince, unitProvince) || other.unitProvince == unitProvince)&&(identical(other.unitCity, unitCity) || other.unitCity == unitCity)&&(identical(other.unitPostalCode, unitPostalCode) || other.unitPostalCode == unitPostalCode)&&(identical(other.unitAddress, unitAddress) || other.unitAddress == unitAddress)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,fullname,firstName,lastName,baseOrder,mobile,nationalId,nationalCode,key,city,unitName,unitNationalId,unitRegistrationNumber,unitEconomicalNumber,unitProvince,unitCity,unitPostalCode,unitAddress); + +@override +String toString() { + return 'UserDetailModel(fullname: $fullname, firstName: $firstName, lastName: $lastName, baseOrder: $baseOrder, mobile: $mobile, nationalId: $nationalId, nationalCode: $nationalCode, key: $key, city: $city, unitName: $unitName, unitNationalId: $unitNationalId, unitRegistrationNumber: $unitRegistrationNumber, unitEconomicalNumber: $unitEconomicalNumber, unitProvince: $unitProvince, unitCity: $unitCity, unitPostalCode: $unitPostalCode, unitAddress: $unitAddress)'; +} + + +} + +/// @nodoc +abstract mixin class $UserDetailModelCopyWith<$Res> { + factory $UserDetailModelCopyWith(UserDetailModel value, $Res Function(UserDetailModel) _then) = _$UserDetailModelCopyWithImpl; +@useResult +$Res call({ + String? fullname, String? firstName, String? lastName, int? baseOrder, String? mobile, String? nationalId, String? nationalCode, String? key, CityDetailModel? city, String? unitName, String? unitNationalId, String? unitRegistrationNumber, String? unitEconomicalNumber, String? unitProvince, String? unitCity, String? unitPostalCode, String? unitAddress +}); + + +$CityDetailModelCopyWith<$Res>? get city; + +} +/// @nodoc +class _$UserDetailModelCopyWithImpl<$Res> + implements $UserDetailModelCopyWith<$Res> { + _$UserDetailModelCopyWithImpl(this._self, this._then); + + final UserDetailModel _self; + final $Res Function(UserDetailModel) _then; + +/// Create a copy of UserDetailModel +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? fullname = freezed,Object? firstName = freezed,Object? lastName = freezed,Object? baseOrder = freezed,Object? mobile = freezed,Object? nationalId = freezed,Object? nationalCode = freezed,Object? key = freezed,Object? city = freezed,Object? unitName = freezed,Object? unitNationalId = freezed,Object? unitRegistrationNumber = freezed,Object? unitEconomicalNumber = freezed,Object? unitProvince = freezed,Object? unitCity = freezed,Object? unitPostalCode = freezed,Object? unitAddress = freezed,}) { + return _then(_self.copyWith( +fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable +as String?,firstName: freezed == firstName ? _self.firstName : firstName // ignore: cast_nullable_to_non_nullable +as String?,lastName: freezed == lastName ? _self.lastName : lastName // ignore: cast_nullable_to_non_nullable +as String?,baseOrder: freezed == baseOrder ? _self.baseOrder : baseOrder // ignore: cast_nullable_to_non_nullable +as int?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?,nationalId: freezed == nationalId ? _self.nationalId : nationalId // ignore: cast_nullable_to_non_nullable +as String?,nationalCode: freezed == nationalCode ? _self.nationalCode : nationalCode // ignore: cast_nullable_to_non_nullable +as String?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as CityDetailModel?,unitName: freezed == unitName ? _self.unitName : unitName // ignore: cast_nullable_to_non_nullable +as String?,unitNationalId: freezed == unitNationalId ? _self.unitNationalId : unitNationalId // ignore: cast_nullable_to_non_nullable +as String?,unitRegistrationNumber: freezed == unitRegistrationNumber ? _self.unitRegistrationNumber : unitRegistrationNumber // ignore: cast_nullable_to_non_nullable +as String?,unitEconomicalNumber: freezed == unitEconomicalNumber ? _self.unitEconomicalNumber : unitEconomicalNumber // ignore: cast_nullable_to_non_nullable +as String?,unitProvince: freezed == unitProvince ? _self.unitProvince : unitProvince // ignore: cast_nullable_to_non_nullable +as String?,unitCity: freezed == unitCity ? _self.unitCity : unitCity // ignore: cast_nullable_to_non_nullable +as String?,unitPostalCode: freezed == unitPostalCode ? _self.unitPostalCode : unitPostalCode // ignore: cast_nullable_to_non_nullable +as String?,unitAddress: freezed == unitAddress ? _self.unitAddress : unitAddress // ignore: cast_nullable_to_non_nullable +as String?, + )); +} +/// Create a copy of UserDetailModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$CityDetailModelCopyWith<$Res>? get city { + if (_self.city == null) { + return null; + } + + return $CityDetailModelCopyWith<$Res>(_self.city!, (value) { + return _then(_self.copyWith(city: value)); + }); +} +} + + +/// Adds pattern-matching-related methods to [UserDetailModel]. +extension UserDetailModelPatterns on UserDetailModel { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _UserDetailModel value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _UserDetailModel() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _UserDetailModel value) $default,){ +final _that = this; +switch (_that) { +case _UserDetailModel(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _UserDetailModel value)? $default,){ +final _that = this; +switch (_that) { +case _UserDetailModel() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? fullname, String? firstName, String? lastName, int? baseOrder, String? mobile, String? nationalId, String? nationalCode, String? key, CityDetailModel? city, String? unitName, String? unitNationalId, String? unitRegistrationNumber, String? unitEconomicalNumber, String? unitProvince, String? unitCity, String? unitPostalCode, String? unitAddress)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _UserDetailModel() when $default != null: +return $default(_that.fullname,_that.firstName,_that.lastName,_that.baseOrder,_that.mobile,_that.nationalId,_that.nationalCode,_that.key,_that.city,_that.unitName,_that.unitNationalId,_that.unitRegistrationNumber,_that.unitEconomicalNumber,_that.unitProvince,_that.unitCity,_that.unitPostalCode,_that.unitAddress);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? fullname, String? firstName, String? lastName, int? baseOrder, String? mobile, String? nationalId, String? nationalCode, String? key, CityDetailModel? city, String? unitName, String? unitNationalId, String? unitRegistrationNumber, String? unitEconomicalNumber, String? unitProvince, String? unitCity, String? unitPostalCode, String? unitAddress) $default,) {final _that = this; +switch (_that) { +case _UserDetailModel(): +return $default(_that.fullname,_that.firstName,_that.lastName,_that.baseOrder,_that.mobile,_that.nationalId,_that.nationalCode,_that.key,_that.city,_that.unitName,_that.unitNationalId,_that.unitRegistrationNumber,_that.unitEconomicalNumber,_that.unitProvince,_that.unitCity,_that.unitPostalCode,_that.unitAddress);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? fullname, String? firstName, String? lastName, int? baseOrder, String? mobile, String? nationalId, String? nationalCode, String? key, CityDetailModel? city, String? unitName, String? unitNationalId, String? unitRegistrationNumber, String? unitEconomicalNumber, String? unitProvince, String? unitCity, String? unitPostalCode, String? unitAddress)? $default,) {final _that = this; +switch (_that) { +case _UserDetailModel() when $default != null: +return $default(_that.fullname,_that.firstName,_that.lastName,_that.baseOrder,_that.mobile,_that.nationalId,_that.nationalCode,_that.key,_that.city,_that.unitName,_that.unitNationalId,_that.unitRegistrationNumber,_that.unitEconomicalNumber,_that.unitProvince,_that.unitCity,_that.unitPostalCode,_that.unitAddress);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _UserDetailModel implements UserDetailModel { + const _UserDetailModel({this.fullname, this.firstName, this.lastName, this.baseOrder, this.mobile, this.nationalId, this.nationalCode, this.key, this.city, this.unitName, this.unitNationalId, this.unitRegistrationNumber, this.unitEconomicalNumber, this.unitProvince, this.unitCity, this.unitPostalCode, this.unitAddress}); + factory _UserDetailModel.fromJson(Map json) => _$UserDetailModelFromJson(json); + +@override final String? fullname; +@override final String? firstName; +@override final String? lastName; +@override final int? baseOrder; +@override final String? mobile; +@override final String? nationalId; +@override final String? nationalCode; +@override final String? key; +@override final CityDetailModel? city; +@override final String? unitName; +@override final String? unitNationalId; +@override final String? unitRegistrationNumber; +@override final String? unitEconomicalNumber; +@override final String? unitProvince; +@override final String? unitCity; +@override final String? unitPostalCode; +@override final String? unitAddress; + +/// Create a copy of UserDetailModel +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$UserDetailModelCopyWith<_UserDetailModel> get copyWith => __$UserDetailModelCopyWithImpl<_UserDetailModel>(this, _$identity); + +@override +Map toJson() { + return _$UserDetailModelToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _UserDetailModel&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.baseOrder, baseOrder) || other.baseOrder == baseOrder)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.nationalId, nationalId) || other.nationalId == nationalId)&&(identical(other.nationalCode, nationalCode) || other.nationalCode == nationalCode)&&(identical(other.key, key) || other.key == key)&&(identical(other.city, city) || other.city == city)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.unitNationalId, unitNationalId) || other.unitNationalId == unitNationalId)&&(identical(other.unitRegistrationNumber, unitRegistrationNumber) || other.unitRegistrationNumber == unitRegistrationNumber)&&(identical(other.unitEconomicalNumber, unitEconomicalNumber) || other.unitEconomicalNumber == unitEconomicalNumber)&&(identical(other.unitProvince, unitProvince) || other.unitProvince == unitProvince)&&(identical(other.unitCity, unitCity) || other.unitCity == unitCity)&&(identical(other.unitPostalCode, unitPostalCode) || other.unitPostalCode == unitPostalCode)&&(identical(other.unitAddress, unitAddress) || other.unitAddress == unitAddress)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,fullname,firstName,lastName,baseOrder,mobile,nationalId,nationalCode,key,city,unitName,unitNationalId,unitRegistrationNumber,unitEconomicalNumber,unitProvince,unitCity,unitPostalCode,unitAddress); + +@override +String toString() { + return 'UserDetailModel(fullname: $fullname, firstName: $firstName, lastName: $lastName, baseOrder: $baseOrder, mobile: $mobile, nationalId: $nationalId, nationalCode: $nationalCode, key: $key, city: $city, unitName: $unitName, unitNationalId: $unitNationalId, unitRegistrationNumber: $unitRegistrationNumber, unitEconomicalNumber: $unitEconomicalNumber, unitProvince: $unitProvince, unitCity: $unitCity, unitPostalCode: $unitPostalCode, unitAddress: $unitAddress)'; +} + + +} + +/// @nodoc +abstract mixin class _$UserDetailModelCopyWith<$Res> implements $UserDetailModelCopyWith<$Res> { + factory _$UserDetailModelCopyWith(_UserDetailModel value, $Res Function(_UserDetailModel) _then) = __$UserDetailModelCopyWithImpl; +@override @useResult +$Res call({ + String? fullname, String? firstName, String? lastName, int? baseOrder, String? mobile, String? nationalId, String? nationalCode, String? key, CityDetailModel? city, String? unitName, String? unitNationalId, String? unitRegistrationNumber, String? unitEconomicalNumber, String? unitProvince, String? unitCity, String? unitPostalCode, String? unitAddress +}); + + +@override $CityDetailModelCopyWith<$Res>? get city; + +} +/// @nodoc +class __$UserDetailModelCopyWithImpl<$Res> + implements _$UserDetailModelCopyWith<$Res> { + __$UserDetailModelCopyWithImpl(this._self, this._then); + + final _UserDetailModel _self; + final $Res Function(_UserDetailModel) _then; + +/// Create a copy of UserDetailModel +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? fullname = freezed,Object? firstName = freezed,Object? lastName = freezed,Object? baseOrder = freezed,Object? mobile = freezed,Object? nationalId = freezed,Object? nationalCode = freezed,Object? key = freezed,Object? city = freezed,Object? unitName = freezed,Object? unitNationalId = freezed,Object? unitRegistrationNumber = freezed,Object? unitEconomicalNumber = freezed,Object? unitProvince = freezed,Object? unitCity = freezed,Object? unitPostalCode = freezed,Object? unitAddress = freezed,}) { + return _then(_UserDetailModel( +fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable +as String?,firstName: freezed == firstName ? _self.firstName : firstName // ignore: cast_nullable_to_non_nullable +as String?,lastName: freezed == lastName ? _self.lastName : lastName // ignore: cast_nullable_to_non_nullable +as String?,baseOrder: freezed == baseOrder ? _self.baseOrder : baseOrder // ignore: cast_nullable_to_non_nullable +as int?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?,nationalId: freezed == nationalId ? _self.nationalId : nationalId // ignore: cast_nullable_to_non_nullable +as String?,nationalCode: freezed == nationalCode ? _self.nationalCode : nationalCode // ignore: cast_nullable_to_non_nullable +as String?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as CityDetailModel?,unitName: freezed == unitName ? _self.unitName : unitName // ignore: cast_nullable_to_non_nullable +as String?,unitNationalId: freezed == unitNationalId ? _self.unitNationalId : unitNationalId // ignore: cast_nullable_to_non_nullable +as String?,unitRegistrationNumber: freezed == unitRegistrationNumber ? _self.unitRegistrationNumber : unitRegistrationNumber // ignore: cast_nullable_to_non_nullable +as String?,unitEconomicalNumber: freezed == unitEconomicalNumber ? _self.unitEconomicalNumber : unitEconomicalNumber // ignore: cast_nullable_to_non_nullable +as String?,unitProvince: freezed == unitProvince ? _self.unitProvince : unitProvince // ignore: cast_nullable_to_non_nullable +as String?,unitCity: freezed == unitCity ? _self.unitCity : unitCity // ignore: cast_nullable_to_non_nullable +as String?,unitPostalCode: freezed == unitPostalCode ? _self.unitPostalCode : unitPostalCode // ignore: cast_nullable_to_non_nullable +as String?,unitAddress: freezed == unitAddress ? _self.unitAddress : unitAddress // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +/// Create a copy of UserDetailModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$CityDetailModelCopyWith<$Res>? get city { + if (_self.city == null) { + return null; + } + + return $CityDetailModelCopyWith<$Res>(_self.city!, (value) { + return _then(_self.copyWith(city: value)); + }); +} +} + + +/// @nodoc +mixin _$CityDetailModel { + + int? get id; String? get key; String? get createDate; String? get modifyDate; bool? get trash; int? get provinceIdForeignKey; int? get cityIdKey; String? get name; double? get productPrice; bool? get provinceCenter; int? get cityNumber; String? get cityName; int? get provinceNumber; String? get provinceName; String? get createdBy; String? get modifiedBy; int? get province; +/// Create a copy of CityDetailModel +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$CityDetailModelCopyWith get copyWith => _$CityDetailModelCopyWithImpl(this as CityDetailModel, _$identity); + + /// Serializes this CityDetailModel to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is CityDetailModel&&(identical(other.id, id) || other.id == id)&&(identical(other.key, key) || other.key == key)&&(identical(other.createDate, createDate) || other.createDate == createDate)&&(identical(other.modifyDate, modifyDate) || other.modifyDate == modifyDate)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.provinceIdForeignKey, provinceIdForeignKey) || other.provinceIdForeignKey == provinceIdForeignKey)&&(identical(other.cityIdKey, cityIdKey) || other.cityIdKey == cityIdKey)&&(identical(other.name, name) || other.name == name)&&(identical(other.productPrice, productPrice) || other.productPrice == productPrice)&&(identical(other.provinceCenter, provinceCenter) || other.provinceCenter == provinceCenter)&&(identical(other.cityNumber, cityNumber) || other.cityNumber == cityNumber)&&(identical(other.cityName, cityName) || other.cityName == cityName)&&(identical(other.provinceNumber, provinceNumber) || other.provinceNumber == provinceNumber)&&(identical(other.provinceName, provinceName) || other.provinceName == provinceName)&&(identical(other.createdBy, createdBy) || other.createdBy == createdBy)&&(identical(other.modifiedBy, modifiedBy) || other.modifiedBy == modifiedBy)&&(identical(other.province, province) || other.province == province)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,id,key,createDate,modifyDate,trash,provinceIdForeignKey,cityIdKey,name,productPrice,provinceCenter,cityNumber,cityName,provinceNumber,provinceName,createdBy,modifiedBy,province); + +@override +String toString() { + return 'CityDetailModel(id: $id, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, provinceIdForeignKey: $provinceIdForeignKey, cityIdKey: $cityIdKey, name: $name, productPrice: $productPrice, provinceCenter: $provinceCenter, cityNumber: $cityNumber, cityName: $cityName, provinceNumber: $provinceNumber, provinceName: $provinceName, createdBy: $createdBy, modifiedBy: $modifiedBy, province: $province)'; +} + + +} + +/// @nodoc +abstract mixin class $CityDetailModelCopyWith<$Res> { + factory $CityDetailModelCopyWith(CityDetailModel value, $Res Function(CityDetailModel) _then) = _$CityDetailModelCopyWithImpl; +@useResult +$Res call({ + int? id, String? key, String? createDate, String? modifyDate, bool? trash, int? provinceIdForeignKey, int? cityIdKey, String? name, double? productPrice, bool? provinceCenter, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, String? createdBy, String? modifiedBy, int? province +}); + + + + +} +/// @nodoc +class _$CityDetailModelCopyWithImpl<$Res> + implements $CityDetailModelCopyWith<$Res> { + _$CityDetailModelCopyWithImpl(this._self, this._then); + + final CityDetailModel _self; + final $Res Function(CityDetailModel) _then; + +/// Create a copy of CityDetailModel +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? key = freezed,Object? createDate = freezed,Object? modifyDate = freezed,Object? trash = freezed,Object? provinceIdForeignKey = freezed,Object? cityIdKey = freezed,Object? name = freezed,Object? productPrice = freezed,Object? provinceCenter = freezed,Object? cityNumber = freezed,Object? cityName = freezed,Object? provinceNumber = freezed,Object? provinceName = freezed,Object? createdBy = freezed,Object? modifiedBy = freezed,Object? province = freezed,}) { + return _then(_self.copyWith( +id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable +as int?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,createDate: freezed == createDate ? _self.createDate : createDate // ignore: cast_nullable_to_non_nullable +as String?,modifyDate: freezed == modifyDate ? _self.modifyDate : modifyDate // ignore: cast_nullable_to_non_nullable +as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable +as bool?,provinceIdForeignKey: freezed == provinceIdForeignKey ? _self.provinceIdForeignKey : provinceIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,cityIdKey: freezed == cityIdKey ? _self.cityIdKey : cityIdKey // ignore: cast_nullable_to_non_nullable +as int?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?,productPrice: freezed == productPrice ? _self.productPrice : productPrice // ignore: cast_nullable_to_non_nullable +as double?,provinceCenter: freezed == provinceCenter ? _self.provinceCenter : provinceCenter // ignore: cast_nullable_to_non_nullable +as bool?,cityNumber: freezed == cityNumber ? _self.cityNumber : cityNumber // ignore: cast_nullable_to_non_nullable +as int?,cityName: freezed == cityName ? _self.cityName : cityName // ignore: cast_nullable_to_non_nullable +as String?,provinceNumber: freezed == provinceNumber ? _self.provinceNumber : provinceNumber // ignore: cast_nullable_to_non_nullable +as int?,provinceName: freezed == provinceName ? _self.provinceName : provinceName // ignore: cast_nullable_to_non_nullable +as String?,createdBy: freezed == createdBy ? _self.createdBy : createdBy // ignore: cast_nullable_to_non_nullable +as String?,modifiedBy: freezed == modifiedBy ? _self.modifiedBy : modifiedBy // ignore: cast_nullable_to_non_nullable +as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as int?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [CityDetailModel]. +extension CityDetailModelPatterns on CityDetailModel { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _CityDetailModel value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _CityDetailModel() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _CityDetailModel value) $default,){ +final _that = this; +switch (_that) { +case _CityDetailModel(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _CityDetailModel value)? $default,){ +final _that = this; +switch (_that) { +case _CityDetailModel() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( int? id, String? key, String? createDate, String? modifyDate, bool? trash, int? provinceIdForeignKey, int? cityIdKey, String? name, double? productPrice, bool? provinceCenter, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, String? createdBy, String? modifiedBy, int? province)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _CityDetailModel() when $default != null: +return $default(_that.id,_that.key,_that.createDate,_that.modifyDate,_that.trash,_that.provinceIdForeignKey,_that.cityIdKey,_that.name,_that.productPrice,_that.provinceCenter,_that.cityNumber,_that.cityName,_that.provinceNumber,_that.provinceName,_that.createdBy,_that.modifiedBy,_that.province);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( int? id, String? key, String? createDate, String? modifyDate, bool? trash, int? provinceIdForeignKey, int? cityIdKey, String? name, double? productPrice, bool? provinceCenter, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, String? createdBy, String? modifiedBy, int? province) $default,) {final _that = this; +switch (_that) { +case _CityDetailModel(): +return $default(_that.id,_that.key,_that.createDate,_that.modifyDate,_that.trash,_that.provinceIdForeignKey,_that.cityIdKey,_that.name,_that.productPrice,_that.provinceCenter,_that.cityNumber,_that.cityName,_that.provinceNumber,_that.provinceName,_that.createdBy,_that.modifiedBy,_that.province);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( int? id, String? key, String? createDate, String? modifyDate, bool? trash, int? provinceIdForeignKey, int? cityIdKey, String? name, double? productPrice, bool? provinceCenter, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, String? createdBy, String? modifiedBy, int? province)? $default,) {final _that = this; +switch (_that) { +case _CityDetailModel() when $default != null: +return $default(_that.id,_that.key,_that.createDate,_that.modifyDate,_that.trash,_that.provinceIdForeignKey,_that.cityIdKey,_that.name,_that.productPrice,_that.provinceCenter,_that.cityNumber,_that.cityName,_that.provinceNumber,_that.provinceName,_that.createdBy,_that.modifiedBy,_that.province);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _CityDetailModel implements CityDetailModel { + const _CityDetailModel({this.id, this.key, this.createDate, this.modifyDate, this.trash, this.provinceIdForeignKey, this.cityIdKey, this.name, this.productPrice, this.provinceCenter, this.cityNumber, this.cityName, this.provinceNumber, this.provinceName, this.createdBy, this.modifiedBy, this.province}); + factory _CityDetailModel.fromJson(Map json) => _$CityDetailModelFromJson(json); + +@override final int? id; +@override final String? key; +@override final String? createDate; +@override final String? modifyDate; +@override final bool? trash; +@override final int? provinceIdForeignKey; +@override final int? cityIdKey; +@override final String? name; +@override final double? productPrice; +@override final bool? provinceCenter; +@override final int? cityNumber; +@override final String? cityName; +@override final int? provinceNumber; +@override final String? provinceName; +@override final String? createdBy; +@override final String? modifiedBy; +@override final int? province; + +/// Create a copy of CityDetailModel +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$CityDetailModelCopyWith<_CityDetailModel> get copyWith => __$CityDetailModelCopyWithImpl<_CityDetailModel>(this, _$identity); + +@override +Map toJson() { + return _$CityDetailModelToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _CityDetailModel&&(identical(other.id, id) || other.id == id)&&(identical(other.key, key) || other.key == key)&&(identical(other.createDate, createDate) || other.createDate == createDate)&&(identical(other.modifyDate, modifyDate) || other.modifyDate == modifyDate)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.provinceIdForeignKey, provinceIdForeignKey) || other.provinceIdForeignKey == provinceIdForeignKey)&&(identical(other.cityIdKey, cityIdKey) || other.cityIdKey == cityIdKey)&&(identical(other.name, name) || other.name == name)&&(identical(other.productPrice, productPrice) || other.productPrice == productPrice)&&(identical(other.provinceCenter, provinceCenter) || other.provinceCenter == provinceCenter)&&(identical(other.cityNumber, cityNumber) || other.cityNumber == cityNumber)&&(identical(other.cityName, cityName) || other.cityName == cityName)&&(identical(other.provinceNumber, provinceNumber) || other.provinceNumber == provinceNumber)&&(identical(other.provinceName, provinceName) || other.provinceName == provinceName)&&(identical(other.createdBy, createdBy) || other.createdBy == createdBy)&&(identical(other.modifiedBy, modifiedBy) || other.modifiedBy == modifiedBy)&&(identical(other.province, province) || other.province == province)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,id,key,createDate,modifyDate,trash,provinceIdForeignKey,cityIdKey,name,productPrice,provinceCenter,cityNumber,cityName,provinceNumber,provinceName,createdBy,modifiedBy,province); + +@override +String toString() { + return 'CityDetailModel(id: $id, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, provinceIdForeignKey: $provinceIdForeignKey, cityIdKey: $cityIdKey, name: $name, productPrice: $productPrice, provinceCenter: $provinceCenter, cityNumber: $cityNumber, cityName: $cityName, provinceNumber: $provinceNumber, provinceName: $provinceName, createdBy: $createdBy, modifiedBy: $modifiedBy, province: $province)'; +} + + +} + +/// @nodoc +abstract mixin class _$CityDetailModelCopyWith<$Res> implements $CityDetailModelCopyWith<$Res> { + factory _$CityDetailModelCopyWith(_CityDetailModel value, $Res Function(_CityDetailModel) _then) = __$CityDetailModelCopyWithImpl; +@override @useResult +$Res call({ + int? id, String? key, String? createDate, String? modifyDate, bool? trash, int? provinceIdForeignKey, int? cityIdKey, String? name, double? productPrice, bool? provinceCenter, int? cityNumber, String? cityName, int? provinceNumber, String? provinceName, String? createdBy, String? modifiedBy, int? province +}); + + + + +} +/// @nodoc +class __$CityDetailModelCopyWithImpl<$Res> + implements _$CityDetailModelCopyWith<$Res> { + __$CityDetailModelCopyWithImpl(this._self, this._then); + + final _CityDetailModel _self; + final $Res Function(_CityDetailModel) _then; + +/// Create a copy of CityDetailModel +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? key = freezed,Object? createDate = freezed,Object? modifyDate = freezed,Object? trash = freezed,Object? provinceIdForeignKey = freezed,Object? cityIdKey = freezed,Object? name = freezed,Object? productPrice = freezed,Object? provinceCenter = freezed,Object? cityNumber = freezed,Object? cityName = freezed,Object? provinceNumber = freezed,Object? provinceName = freezed,Object? createdBy = freezed,Object? modifiedBy = freezed,Object? province = freezed,}) { + return _then(_CityDetailModel( +id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable +as int?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,createDate: freezed == createDate ? _self.createDate : createDate // ignore: cast_nullable_to_non_nullable +as String?,modifyDate: freezed == modifyDate ? _self.modifyDate : modifyDate // ignore: cast_nullable_to_non_nullable +as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable +as bool?,provinceIdForeignKey: freezed == provinceIdForeignKey ? _self.provinceIdForeignKey : provinceIdForeignKey // ignore: cast_nullable_to_non_nullable +as int?,cityIdKey: freezed == cityIdKey ? _self.cityIdKey : cityIdKey // ignore: cast_nullable_to_non_nullable +as int?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?,productPrice: freezed == productPrice ? _self.productPrice : productPrice // ignore: cast_nullable_to_non_nullable +as double?,provinceCenter: freezed == provinceCenter ? _self.provinceCenter : provinceCenter // ignore: cast_nullable_to_non_nullable +as bool?,cityNumber: freezed == cityNumber ? _self.cityNumber : cityNumber // ignore: cast_nullable_to_non_nullable +as int?,cityName: freezed == cityName ? _self.cityName : cityName // ignore: cast_nullable_to_non_nullable +as String?,provinceNumber: freezed == provinceNumber ? _self.provinceNumber : provinceNumber // ignore: cast_nullable_to_non_nullable +as int?,provinceName: freezed == provinceName ? _self.provinceName : provinceName // ignore: cast_nullable_to_non_nullable +as String?,createdBy: freezed == createdBy ? _self.createdBy : createdBy // ignore: cast_nullable_to_non_nullable +as String?,modifiedBy: freezed == modifiedBy ? _self.modifiedBy : modifiedBy // ignore: cast_nullable_to_non_nullable +as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as int?, + )); +} + + +} + + +/// @nodoc +mixin _$AddCarModel { + + DriverModel? get driver; +/// Create a copy of AddCarModel +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$AddCarModelCopyWith get copyWith => _$AddCarModelCopyWithImpl(this as AddCarModel, _$identity); + + /// Serializes this AddCarModel to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is AddCarModel&&(identical(other.driver, driver) || other.driver == driver)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,driver); + +@override +String toString() { + return 'AddCarModel(driver: $driver)'; +} + + +} + +/// @nodoc +abstract mixin class $AddCarModelCopyWith<$Res> { + factory $AddCarModelCopyWith(AddCarModel value, $Res Function(AddCarModel) _then) = _$AddCarModelCopyWithImpl; +@useResult +$Res call({ + DriverModel? driver +}); + + +$DriverModelCopyWith<$Res>? get driver; + +} +/// @nodoc +class _$AddCarModelCopyWithImpl<$Res> + implements $AddCarModelCopyWith<$Res> { + _$AddCarModelCopyWithImpl(this._self, this._then); + + final AddCarModel _self; + final $Res Function(AddCarModel) _then; + +/// Create a copy of AddCarModel +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? driver = freezed,}) { + return _then(_self.copyWith( +driver: freezed == driver ? _self.driver : driver // ignore: cast_nullable_to_non_nullable +as DriverModel?, + )); +} +/// Create a copy of AddCarModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$DriverModelCopyWith<$Res>? get driver { + if (_self.driver == null) { + return null; + } + + return $DriverModelCopyWith<$Res>(_self.driver!, (value) { + return _then(_self.copyWith(driver: value)); + }); +} +} + + +/// Adds pattern-matching-related methods to [AddCarModel]. +extension AddCarModelPatterns on AddCarModel { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _AddCarModel value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _AddCarModel() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _AddCarModel value) $default,){ +final _that = this; +switch (_that) { +case _AddCarModel(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _AddCarModel value)? $default,){ +final _that = this; +switch (_that) { +case _AddCarModel() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( DriverModel? driver)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _AddCarModel() when $default != null: +return $default(_that.driver);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( DriverModel? driver) $default,) {final _that = this; +switch (_that) { +case _AddCarModel(): +return $default(_that.driver);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( DriverModel? driver)? $default,) {final _that = this; +switch (_that) { +case _AddCarModel() when $default != null: +return $default(_that.driver);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _AddCarModel implements AddCarModel { + const _AddCarModel({this.driver}); + factory _AddCarModel.fromJson(Map json) => _$AddCarModelFromJson(json); + +@override final DriverModel? driver; + +/// Create a copy of AddCarModel +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$AddCarModelCopyWith<_AddCarModel> get copyWith => __$AddCarModelCopyWithImpl<_AddCarModel>(this, _$identity); + +@override +Map toJson() { + return _$AddCarModelToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _AddCarModel&&(identical(other.driver, driver) || other.driver == driver)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,driver); + +@override +String toString() { + return 'AddCarModel(driver: $driver)'; +} + + +} + +/// @nodoc +abstract mixin class _$AddCarModelCopyWith<$Res> implements $AddCarModelCopyWith<$Res> { + factory _$AddCarModelCopyWith(_AddCarModel value, $Res Function(_AddCarModel) _then) = __$AddCarModelCopyWithImpl; +@override @useResult +$Res call({ + DriverModel? driver +}); + + +@override $DriverModelCopyWith<$Res>? get driver; + +} +/// @nodoc +class __$AddCarModelCopyWithImpl<$Res> + implements _$AddCarModelCopyWith<$Res> { + __$AddCarModelCopyWithImpl(this._self, this._then); + + final _AddCarModel _self; + final $Res Function(_AddCarModel) _then; + +/// Create a copy of AddCarModel +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? driver = freezed,}) { + return _then(_AddCarModel( +driver: freezed == driver ? _self.driver : driver // ignore: cast_nullable_to_non_nullable +as DriverModel?, + )); +} + +/// Create a copy of AddCarModel +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$DriverModelCopyWith<$Res>? get driver { + if (_self.driver == null) { + return null; + } + + return $DriverModelCopyWith<$Res>(_self.driver!, (value) { + return _then(_self.copyWith(driver: value)); + }); +} +} + + +/// @nodoc +mixin _$DriverModel { + + String? get driverName; String? get driverMobile; String? get typeCar; String? get pelak; String? get healthCode; +/// Create a copy of DriverModel +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$DriverModelCopyWith get copyWith => _$DriverModelCopyWithImpl(this as DriverModel, _$identity); + + /// Serializes this DriverModel to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is DriverModel&&(identical(other.driverName, driverName) || other.driverName == driverName)&&(identical(other.driverMobile, driverMobile) || other.driverMobile == driverMobile)&&(identical(other.typeCar, typeCar) || other.typeCar == typeCar)&&(identical(other.pelak, pelak) || other.pelak == pelak)&&(identical(other.healthCode, healthCode) || other.healthCode == healthCode)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,driverName,driverMobile,typeCar,pelak,healthCode); + +@override +String toString() { + return 'DriverModel(driverName: $driverName, driverMobile: $driverMobile, typeCar: $typeCar, pelak: $pelak, healthCode: $healthCode)'; +} + + +} + +/// @nodoc +abstract mixin class $DriverModelCopyWith<$Res> { + factory $DriverModelCopyWith(DriverModel value, $Res Function(DriverModel) _then) = _$DriverModelCopyWithImpl; +@useResult +$Res call({ + String? driverName, String? driverMobile, String? typeCar, String? pelak, String? healthCode +}); + + + + +} +/// @nodoc +class _$DriverModelCopyWithImpl<$Res> + implements $DriverModelCopyWith<$Res> { + _$DriverModelCopyWithImpl(this._self, this._then); + + final DriverModel _self; + final $Res Function(DriverModel) _then; + +/// Create a copy of DriverModel +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? driverName = freezed,Object? driverMobile = freezed,Object? typeCar = freezed,Object? pelak = freezed,Object? healthCode = freezed,}) { + return _then(_self.copyWith( +driverName: freezed == driverName ? _self.driverName : driverName // ignore: cast_nullable_to_non_nullable +as String?,driverMobile: freezed == driverMobile ? _self.driverMobile : driverMobile // ignore: cast_nullable_to_non_nullable +as String?,typeCar: freezed == typeCar ? _self.typeCar : typeCar // ignore: cast_nullable_to_non_nullable +as String?,pelak: freezed == pelak ? _self.pelak : pelak // ignore: cast_nullable_to_non_nullable +as String?,healthCode: freezed == healthCode ? _self.healthCode : healthCode // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [DriverModel]. +extension DriverModelPatterns on DriverModel { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _DriverModel value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _DriverModel() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _DriverModel value) $default,){ +final _that = this; +switch (_that) { +case _DriverModel(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _DriverModel value)? $default,){ +final _that = this; +switch (_that) { +case _DriverModel() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? driverName, String? driverMobile, String? typeCar, String? pelak, String? healthCode)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _DriverModel() when $default != null: +return $default(_that.driverName,_that.driverMobile,_that.typeCar,_that.pelak,_that.healthCode);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? driverName, String? driverMobile, String? typeCar, String? pelak, String? healthCode) $default,) {final _that = this; +switch (_that) { +case _DriverModel(): +return $default(_that.driverName,_that.driverMobile,_that.typeCar,_that.pelak,_that.healthCode);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? driverName, String? driverMobile, String? typeCar, String? pelak, String? healthCode)? $default,) {final _that = this; +switch (_that) { +case _DriverModel() when $default != null: +return $default(_that.driverName,_that.driverMobile,_that.typeCar,_that.pelak,_that.healthCode);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _DriverModel implements DriverModel { + const _DriverModel({this.driverName, this.driverMobile, this.typeCar, this.pelak, this.healthCode}); + factory _DriverModel.fromJson(Map json) => _$DriverModelFromJson(json); + +@override final String? driverName; +@override final String? driverMobile; +@override final String? typeCar; +@override final String? pelak; +@override final String? healthCode; + +/// Create a copy of DriverModel +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$DriverModelCopyWith<_DriverModel> get copyWith => __$DriverModelCopyWithImpl<_DriverModel>(this, _$identity); + +@override +Map toJson() { + return _$DriverModelToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _DriverModel&&(identical(other.driverName, driverName) || other.driverName == driverName)&&(identical(other.driverMobile, driverMobile) || other.driverMobile == driverMobile)&&(identical(other.typeCar, typeCar) || other.typeCar == typeCar)&&(identical(other.pelak, pelak) || other.pelak == pelak)&&(identical(other.healthCode, healthCode) || other.healthCode == healthCode)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,driverName,driverMobile,typeCar,pelak,healthCode); + +@override +String toString() { + return 'DriverModel(driverName: $driverName, driverMobile: $driverMobile, typeCar: $typeCar, pelak: $pelak, healthCode: $healthCode)'; +} + + +} + +/// @nodoc +abstract mixin class _$DriverModelCopyWith<$Res> implements $DriverModelCopyWith<$Res> { + factory _$DriverModelCopyWith(_DriverModel value, $Res Function(_DriverModel) _then) = __$DriverModelCopyWithImpl; +@override @useResult +$Res call({ + String? driverName, String? driverMobile, String? typeCar, String? pelak, String? healthCode +}); + + + + +} +/// @nodoc +class __$DriverModelCopyWithImpl<$Res> + implements _$DriverModelCopyWith<$Res> { + __$DriverModelCopyWithImpl(this._self, this._then); + + final _DriverModel _self; + final $Res Function(_DriverModel) _then; + +/// Create a copy of DriverModel +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? driverName = freezed,Object? driverMobile = freezed,Object? typeCar = freezed,Object? pelak = freezed,Object? healthCode = freezed,}) { + return _then(_DriverModel( +driverName: freezed == driverName ? _self.driverName : driverName // ignore: cast_nullable_to_non_nullable +as String?,driverMobile: freezed == driverMobile ? _self.driverMobile : driverMobile // ignore: cast_nullable_to_non_nullable +as String?,typeCar: freezed == typeCar ? _self.typeCar : typeCar // ignore: cast_nullable_to_non_nullable +as String?,pelak: freezed == pelak ? _self.pelak : pelak // ignore: cast_nullable_to_non_nullable +as String?,healthCode: freezed == healthCode ? _self.healthCode : healthCode // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$PoultryRequestModel { + + int? get poultryReqOrderCode; String? get poultryName; String? get poultryUserName; String? get poultryMobile; String? get poultryCity; String? get chickenBreed; String? get date; bool? get freezing; bool? get export; bool? get freeSaleInProvince; bool? get directBuying; +/// Create a copy of PoultryRequestModel +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$PoultryRequestModelCopyWith get copyWith => _$PoultryRequestModelCopyWithImpl(this as PoultryRequestModel, _$identity); + + /// Serializes this PoultryRequestModel to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is PoultryRequestModel&&(identical(other.poultryReqOrderCode, poultryReqOrderCode) || other.poultryReqOrderCode == poultryReqOrderCode)&&(identical(other.poultryName, poultryName) || other.poultryName == poultryName)&&(identical(other.poultryUserName, poultryUserName) || other.poultryUserName == poultryUserName)&&(identical(other.poultryMobile, poultryMobile) || other.poultryMobile == poultryMobile)&&(identical(other.poultryCity, poultryCity) || other.poultryCity == poultryCity)&&(identical(other.chickenBreed, chickenBreed) || other.chickenBreed == chickenBreed)&&(identical(other.date, date) || other.date == date)&&(identical(other.freezing, freezing) || other.freezing == freezing)&&(identical(other.export, export) || other.export == export)&&(identical(other.freeSaleInProvince, freeSaleInProvince) || other.freeSaleInProvince == freeSaleInProvince)&&(identical(other.directBuying, directBuying) || other.directBuying == directBuying)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,poultryReqOrderCode,poultryName,poultryUserName,poultryMobile,poultryCity,chickenBreed,date,freezing,export,freeSaleInProvince,directBuying); + +@override +String toString() { + return 'PoultryRequestModel(poultryReqOrderCode: $poultryReqOrderCode, poultryName: $poultryName, poultryUserName: $poultryUserName, poultryMobile: $poultryMobile, poultryCity: $poultryCity, chickenBreed: $chickenBreed, date: $date, freezing: $freezing, export: $export, freeSaleInProvince: $freeSaleInProvince, directBuying: $directBuying)'; +} + + +} + +/// @nodoc +abstract mixin class $PoultryRequestModelCopyWith<$Res> { + factory $PoultryRequestModelCopyWith(PoultryRequestModel value, $Res Function(PoultryRequestModel) _then) = _$PoultryRequestModelCopyWithImpl; +@useResult +$Res call({ + int? poultryReqOrderCode, String? poultryName, String? poultryUserName, String? poultryMobile, String? poultryCity, String? chickenBreed, String? date, bool? freezing, bool? export, bool? freeSaleInProvince, bool? directBuying +}); + + + + +} +/// @nodoc +class _$PoultryRequestModelCopyWithImpl<$Res> + implements $PoultryRequestModelCopyWith<$Res> { + _$PoultryRequestModelCopyWithImpl(this._self, this._then); + + final PoultryRequestModel _self; + final $Res Function(PoultryRequestModel) _then; + +/// Create a copy of PoultryRequestModel +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? poultryReqOrderCode = freezed,Object? poultryName = freezed,Object? poultryUserName = freezed,Object? poultryMobile = freezed,Object? poultryCity = freezed,Object? chickenBreed = freezed,Object? date = freezed,Object? freezing = freezed,Object? export = freezed,Object? freeSaleInProvince = freezed,Object? directBuying = freezed,}) { + return _then(_self.copyWith( +poultryReqOrderCode: freezed == poultryReqOrderCode ? _self.poultryReqOrderCode : poultryReqOrderCode // ignore: cast_nullable_to_non_nullable +as int?,poultryName: freezed == poultryName ? _self.poultryName : poultryName // ignore: cast_nullable_to_non_nullable +as String?,poultryUserName: freezed == poultryUserName ? _self.poultryUserName : poultryUserName // ignore: cast_nullable_to_non_nullable +as String?,poultryMobile: freezed == poultryMobile ? _self.poultryMobile : poultryMobile // ignore: cast_nullable_to_non_nullable +as String?,poultryCity: freezed == poultryCity ? _self.poultryCity : poultryCity // ignore: cast_nullable_to_non_nullable +as String?,chickenBreed: freezed == chickenBreed ? _self.chickenBreed : chickenBreed // ignore: cast_nullable_to_non_nullable +as String?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?,freezing: freezed == freezing ? _self.freezing : freezing // ignore: cast_nullable_to_non_nullable +as bool?,export: freezed == export ? _self.export : export // ignore: cast_nullable_to_non_nullable +as bool?,freeSaleInProvince: freezed == freeSaleInProvince ? _self.freeSaleInProvince : freeSaleInProvince // ignore: cast_nullable_to_non_nullable +as bool?,directBuying: freezed == directBuying ? _self.directBuying : directBuying // ignore: cast_nullable_to_non_nullable +as bool?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [PoultryRequestModel]. +extension PoultryRequestModelPatterns on PoultryRequestModel { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _PoultryRequestModel value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _PoultryRequestModel() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _PoultryRequestModel value) $default,){ +final _that = this; +switch (_that) { +case _PoultryRequestModel(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _PoultryRequestModel value)? $default,){ +final _that = this; +switch (_that) { +case _PoultryRequestModel() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( int? poultryReqOrderCode, String? poultryName, String? poultryUserName, String? poultryMobile, String? poultryCity, String? chickenBreed, String? date, bool? freezing, bool? export, bool? freeSaleInProvince, bool? directBuying)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _PoultryRequestModel() when $default != null: +return $default(_that.poultryReqOrderCode,_that.poultryName,_that.poultryUserName,_that.poultryMobile,_that.poultryCity,_that.chickenBreed,_that.date,_that.freezing,_that.export,_that.freeSaleInProvince,_that.directBuying);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( int? poultryReqOrderCode, String? poultryName, String? poultryUserName, String? poultryMobile, String? poultryCity, String? chickenBreed, String? date, bool? freezing, bool? export, bool? freeSaleInProvince, bool? directBuying) $default,) {final _that = this; +switch (_that) { +case _PoultryRequestModel(): +return $default(_that.poultryReqOrderCode,_that.poultryName,_that.poultryUserName,_that.poultryMobile,_that.poultryCity,_that.chickenBreed,_that.date,_that.freezing,_that.export,_that.freeSaleInProvince,_that.directBuying);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( int? poultryReqOrderCode, String? poultryName, String? poultryUserName, String? poultryMobile, String? poultryCity, String? chickenBreed, String? date, bool? freezing, bool? export, bool? freeSaleInProvince, bool? directBuying)? $default,) {final _that = this; +switch (_that) { +case _PoultryRequestModel() when $default != null: +return $default(_that.poultryReqOrderCode,_that.poultryName,_that.poultryUserName,_that.poultryMobile,_that.poultryCity,_that.chickenBreed,_that.date,_that.freezing,_that.export,_that.freeSaleInProvince,_that.directBuying);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _PoultryRequestModel implements PoultryRequestModel { + const _PoultryRequestModel({this.poultryReqOrderCode, this.poultryName, this.poultryUserName, this.poultryMobile, this.poultryCity, this.chickenBreed, this.date, this.freezing, this.export, this.freeSaleInProvince, this.directBuying}); + factory _PoultryRequestModel.fromJson(Map json) => _$PoultryRequestModelFromJson(json); + +@override final int? poultryReqOrderCode; +@override final String? poultryName; +@override final String? poultryUserName; +@override final String? poultryMobile; +@override final String? poultryCity; +@override final String? chickenBreed; +@override final String? date; +@override final bool? freezing; +@override final bool? export; +@override final bool? freeSaleInProvince; +@override final bool? directBuying; + +/// Create a copy of PoultryRequestModel +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$PoultryRequestModelCopyWith<_PoultryRequestModel> get copyWith => __$PoultryRequestModelCopyWithImpl<_PoultryRequestModel>(this, _$identity); + +@override +Map toJson() { + return _$PoultryRequestModelToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _PoultryRequestModel&&(identical(other.poultryReqOrderCode, poultryReqOrderCode) || other.poultryReqOrderCode == poultryReqOrderCode)&&(identical(other.poultryName, poultryName) || other.poultryName == poultryName)&&(identical(other.poultryUserName, poultryUserName) || other.poultryUserName == poultryUserName)&&(identical(other.poultryMobile, poultryMobile) || other.poultryMobile == poultryMobile)&&(identical(other.poultryCity, poultryCity) || other.poultryCity == poultryCity)&&(identical(other.chickenBreed, chickenBreed) || other.chickenBreed == chickenBreed)&&(identical(other.date, date) || other.date == date)&&(identical(other.freezing, freezing) || other.freezing == freezing)&&(identical(other.export, export) || other.export == export)&&(identical(other.freeSaleInProvince, freeSaleInProvince) || other.freeSaleInProvince == freeSaleInProvince)&&(identical(other.directBuying, directBuying) || other.directBuying == directBuying)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,poultryReqOrderCode,poultryName,poultryUserName,poultryMobile,poultryCity,chickenBreed,date,freezing,export,freeSaleInProvince,directBuying); + +@override +String toString() { + return 'PoultryRequestModel(poultryReqOrderCode: $poultryReqOrderCode, poultryName: $poultryName, poultryUserName: $poultryUserName, poultryMobile: $poultryMobile, poultryCity: $poultryCity, chickenBreed: $chickenBreed, date: $date, freezing: $freezing, export: $export, freeSaleInProvince: $freeSaleInProvince, directBuying: $directBuying)'; +} + + +} + +/// @nodoc +abstract mixin class _$PoultryRequestModelCopyWith<$Res> implements $PoultryRequestModelCopyWith<$Res> { + factory _$PoultryRequestModelCopyWith(_PoultryRequestModel value, $Res Function(_PoultryRequestModel) _then) = __$PoultryRequestModelCopyWithImpl; +@override @useResult +$Res call({ + int? poultryReqOrderCode, String? poultryName, String? poultryUserName, String? poultryMobile, String? poultryCity, String? chickenBreed, String? date, bool? freezing, bool? export, bool? freeSaleInProvince, bool? directBuying +}); + + + + +} +/// @nodoc +class __$PoultryRequestModelCopyWithImpl<$Res> + implements _$PoultryRequestModelCopyWith<$Res> { + __$PoultryRequestModelCopyWithImpl(this._self, this._then); + + final _PoultryRequestModel _self; + final $Res Function(_PoultryRequestModel) _then; + +/// Create a copy of PoultryRequestModel +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? poultryReqOrderCode = freezed,Object? poultryName = freezed,Object? poultryUserName = freezed,Object? poultryMobile = freezed,Object? poultryCity = freezed,Object? chickenBreed = freezed,Object? date = freezed,Object? freezing = freezed,Object? export = freezed,Object? freeSaleInProvince = freezed,Object? directBuying = freezed,}) { + return _then(_PoultryRequestModel( +poultryReqOrderCode: freezed == poultryReqOrderCode ? _self.poultryReqOrderCode : poultryReqOrderCode // ignore: cast_nullable_to_non_nullable +as int?,poultryName: freezed == poultryName ? _self.poultryName : poultryName // ignore: cast_nullable_to_non_nullable +as String?,poultryUserName: freezed == poultryUserName ? _self.poultryUserName : poultryUserName // ignore: cast_nullable_to_non_nullable +as String?,poultryMobile: freezed == poultryMobile ? _self.poultryMobile : poultryMobile // ignore: cast_nullable_to_non_nullable +as String?,poultryCity: freezed == poultryCity ? _self.poultryCity : poultryCity // ignore: cast_nullable_to_non_nullable +as String?,chickenBreed: freezed == chickenBreed ? _self.chickenBreed : chickenBreed // ignore: cast_nullable_to_non_nullable +as String?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?,freezing: freezed == freezing ? _self.freezing : freezing // ignore: cast_nullable_to_non_nullable +as bool?,export: freezed == export ? _self.export : export // ignore: cast_nullable_to_non_nullable +as bool?,freeSaleInProvince: freezed == freeSaleInProvince ? _self.freeSaleInProvince : freeSaleInProvince // ignore: cast_nullable_to_non_nullable +as bool?,directBuying: freezed == directBuying ? _self.directBuying : directBuying // ignore: cast_nullable_to_non_nullable +as bool?, + )); +} + + +} + + +/// @nodoc +mixin _$WeightInfoModel { + + double? get indexWeight; double? get weight; double? get finalIndexWeight; double? get killHousePrice; int? get weightLoss; double? get inputLoss; String? get state; +/// Create a copy of WeightInfoModel +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$WeightInfoModelCopyWith get copyWith => _$WeightInfoModelCopyWithImpl(this as WeightInfoModel, _$identity); + + /// Serializes this WeightInfoModel to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is WeightInfoModel&&(identical(other.indexWeight, indexWeight) || other.indexWeight == indexWeight)&&(identical(other.weight, weight) || other.weight == weight)&&(identical(other.finalIndexWeight, finalIndexWeight) || other.finalIndexWeight == finalIndexWeight)&&(identical(other.killHousePrice, killHousePrice) || other.killHousePrice == killHousePrice)&&(identical(other.weightLoss, weightLoss) || other.weightLoss == weightLoss)&&(identical(other.inputLoss, inputLoss) || other.inputLoss == inputLoss)&&(identical(other.state, state) || other.state == state)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,indexWeight,weight,finalIndexWeight,killHousePrice,weightLoss,inputLoss,state); + +@override +String toString() { + return 'WeightInfoModel(indexWeight: $indexWeight, weight: $weight, finalIndexWeight: $finalIndexWeight, killHousePrice: $killHousePrice, weightLoss: $weightLoss, inputLoss: $inputLoss, state: $state)'; +} + + +} + +/// @nodoc +abstract mixin class $WeightInfoModelCopyWith<$Res> { + factory $WeightInfoModelCopyWith(WeightInfoModel value, $Res Function(WeightInfoModel) _then) = _$WeightInfoModelCopyWithImpl; +@useResult +$Res call({ + double? indexWeight, double? weight, double? finalIndexWeight, double? killHousePrice, int? weightLoss, double? inputLoss, String? state +}); + + + + +} +/// @nodoc +class _$WeightInfoModelCopyWithImpl<$Res> + implements $WeightInfoModelCopyWith<$Res> { + _$WeightInfoModelCopyWithImpl(this._self, this._then); + + final WeightInfoModel _self; + final $Res Function(WeightInfoModel) _then; + +/// Create a copy of WeightInfoModel +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? indexWeight = freezed,Object? weight = freezed,Object? finalIndexWeight = freezed,Object? killHousePrice = freezed,Object? weightLoss = freezed,Object? inputLoss = freezed,Object? state = freezed,}) { + return _then(_self.copyWith( +indexWeight: freezed == indexWeight ? _self.indexWeight : indexWeight // ignore: cast_nullable_to_non_nullable +as double?,weight: freezed == weight ? _self.weight : weight // ignore: cast_nullable_to_non_nullable +as double?,finalIndexWeight: freezed == finalIndexWeight ? _self.finalIndexWeight : finalIndexWeight // ignore: cast_nullable_to_non_nullable +as double?,killHousePrice: freezed == killHousePrice ? _self.killHousePrice : killHousePrice // ignore: cast_nullable_to_non_nullable +as double?,weightLoss: freezed == weightLoss ? _self.weightLoss : weightLoss // ignore: cast_nullable_to_non_nullable +as int?,inputLoss: freezed == inputLoss ? _self.inputLoss : inputLoss // ignore: cast_nullable_to_non_nullable +as double?,state: freezed == state ? _self.state : state // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [WeightInfoModel]. +extension WeightInfoModelPatterns on WeightInfoModel { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _WeightInfoModel value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _WeightInfoModel() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _WeightInfoModel value) $default,){ +final _that = this; +switch (_that) { +case _WeightInfoModel(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _WeightInfoModel value)? $default,){ +final _that = this; +switch (_that) { +case _WeightInfoModel() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( double? indexWeight, double? weight, double? finalIndexWeight, double? killHousePrice, int? weightLoss, double? inputLoss, String? state)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _WeightInfoModel() when $default != null: +return $default(_that.indexWeight,_that.weight,_that.finalIndexWeight,_that.killHousePrice,_that.weightLoss,_that.inputLoss,_that.state);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( double? indexWeight, double? weight, double? finalIndexWeight, double? killHousePrice, int? weightLoss, double? inputLoss, String? state) $default,) {final _that = this; +switch (_that) { +case _WeightInfoModel(): +return $default(_that.indexWeight,_that.weight,_that.finalIndexWeight,_that.killHousePrice,_that.weightLoss,_that.inputLoss,_that.state);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( double? indexWeight, double? weight, double? finalIndexWeight, double? killHousePrice, int? weightLoss, double? inputLoss, String? state)? $default,) {final _that = this; +switch (_that) { +case _WeightInfoModel() when $default != null: +return $default(_that.indexWeight,_that.weight,_that.finalIndexWeight,_that.killHousePrice,_that.weightLoss,_that.inputLoss,_that.state);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _WeightInfoModel implements WeightInfoModel { + const _WeightInfoModel({this.indexWeight, this.weight, this.finalIndexWeight, this.killHousePrice, this.weightLoss, this.inputLoss, this.state}); + factory _WeightInfoModel.fromJson(Map json) => _$WeightInfoModelFromJson(json); + +@override final double? indexWeight; +@override final double? weight; +@override final double? finalIndexWeight; +@override final double? killHousePrice; +@override final int? weightLoss; +@override final double? inputLoss; +@override final String? state; + +/// Create a copy of WeightInfoModel +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$WeightInfoModelCopyWith<_WeightInfoModel> get copyWith => __$WeightInfoModelCopyWithImpl<_WeightInfoModel>(this, _$identity); + +@override +Map toJson() { + return _$WeightInfoModelToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _WeightInfoModel&&(identical(other.indexWeight, indexWeight) || other.indexWeight == indexWeight)&&(identical(other.weight, weight) || other.weight == weight)&&(identical(other.finalIndexWeight, finalIndexWeight) || other.finalIndexWeight == finalIndexWeight)&&(identical(other.killHousePrice, killHousePrice) || other.killHousePrice == killHousePrice)&&(identical(other.weightLoss, weightLoss) || other.weightLoss == weightLoss)&&(identical(other.inputLoss, inputLoss) || other.inputLoss == inputLoss)&&(identical(other.state, state) || other.state == state)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,indexWeight,weight,finalIndexWeight,killHousePrice,weightLoss,inputLoss,state); + +@override +String toString() { + return 'WeightInfoModel(indexWeight: $indexWeight, weight: $weight, finalIndexWeight: $finalIndexWeight, killHousePrice: $killHousePrice, weightLoss: $weightLoss, inputLoss: $inputLoss, state: $state)'; +} + + +} + +/// @nodoc +abstract mixin class _$WeightInfoModelCopyWith<$Res> implements $WeightInfoModelCopyWith<$Res> { + factory _$WeightInfoModelCopyWith(_WeightInfoModel value, $Res Function(_WeightInfoModel) _then) = __$WeightInfoModelCopyWithImpl; +@override @useResult +$Res call({ + double? indexWeight, double? weight, double? finalIndexWeight, double? killHousePrice, int? weightLoss, double? inputLoss, String? state +}); + + + + +} +/// @nodoc +class __$WeightInfoModelCopyWithImpl<$Res> + implements _$WeightInfoModelCopyWith<$Res> { + __$WeightInfoModelCopyWithImpl(this._self, this._then); + + final _WeightInfoModel _self; + final $Res Function(_WeightInfoModel) _then; + +/// Create a copy of WeightInfoModel +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? indexWeight = freezed,Object? weight = freezed,Object? finalIndexWeight = freezed,Object? killHousePrice = freezed,Object? weightLoss = freezed,Object? inputLoss = freezed,Object? state = freezed,}) { + return _then(_WeightInfoModel( +indexWeight: freezed == indexWeight ? _self.indexWeight : indexWeight // ignore: cast_nullable_to_non_nullable +as double?,weight: freezed == weight ? _self.weight : weight // ignore: cast_nullable_to_non_nullable +as double?,finalIndexWeight: freezed == finalIndexWeight ? _self.finalIndexWeight : finalIndexWeight // ignore: cast_nullable_to_non_nullable +as double?,killHousePrice: freezed == killHousePrice ? _self.killHousePrice : killHousePrice // ignore: cast_nullable_to_non_nullable +as double?,weightLoss: freezed == weightLoss ? _self.weightLoss : weightLoss // ignore: cast_nullable_to_non_nullable +as int?,inputLoss: freezed == inputLoss ? _self.inputLoss : inputLoss // ignore: cast_nullable_to_non_nullable +as double?,state: freezed == state ? _self.state : state // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$CarModel { + + int? get id; String? get key; String? get pelak;//Object? capocity, + String? get typeCar; String? get driverName; String? get driverMobile; String? get weightWithoutLoad; +/// Create a copy of CarModel +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$CarModelCopyWith get copyWith => _$CarModelCopyWithImpl(this as CarModel, _$identity); + + /// Serializes this CarModel to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is CarModel&&(identical(other.id, id) || other.id == id)&&(identical(other.key, key) || other.key == key)&&(identical(other.pelak, pelak) || other.pelak == pelak)&&(identical(other.typeCar, typeCar) || other.typeCar == typeCar)&&(identical(other.driverName, driverName) || other.driverName == driverName)&&(identical(other.driverMobile, driverMobile) || other.driverMobile == driverMobile)&&(identical(other.weightWithoutLoad, weightWithoutLoad) || other.weightWithoutLoad == weightWithoutLoad)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,id,key,pelak,typeCar,driverName,driverMobile,weightWithoutLoad); + +@override +String toString() { + return 'CarModel(id: $id, key: $key, pelak: $pelak, typeCar: $typeCar, driverName: $driverName, driverMobile: $driverMobile, weightWithoutLoad: $weightWithoutLoad)'; +} + + +} + +/// @nodoc +abstract mixin class $CarModelCopyWith<$Res> { + factory $CarModelCopyWith(CarModel value, $Res Function(CarModel) _then) = _$CarModelCopyWithImpl; +@useResult +$Res call({ + int? id, String? key, String? pelak, String? typeCar, String? driverName, String? driverMobile, String? weightWithoutLoad +}); + + + + +} +/// @nodoc +class _$CarModelCopyWithImpl<$Res> + implements $CarModelCopyWith<$Res> { + _$CarModelCopyWithImpl(this._self, this._then); + + final CarModel _self; + final $Res Function(CarModel) _then; + +/// Create a copy of CarModel +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? key = freezed,Object? pelak = freezed,Object? typeCar = freezed,Object? driverName = freezed,Object? driverMobile = freezed,Object? weightWithoutLoad = freezed,}) { + return _then(_self.copyWith( +id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable +as int?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,pelak: freezed == pelak ? _self.pelak : pelak // ignore: cast_nullable_to_non_nullable +as String?,typeCar: freezed == typeCar ? _self.typeCar : typeCar // ignore: cast_nullable_to_non_nullable +as String?,driverName: freezed == driverName ? _self.driverName : driverName // ignore: cast_nullable_to_non_nullable +as String?,driverMobile: freezed == driverMobile ? _self.driverMobile : driverMobile // ignore: cast_nullable_to_non_nullable +as String?,weightWithoutLoad: freezed == weightWithoutLoad ? _self.weightWithoutLoad : weightWithoutLoad // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [CarModel]. +extension CarModelPatterns on CarModel { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _CarModel value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _CarModel() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _CarModel value) $default,){ +final _that = this; +switch (_that) { +case _CarModel(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _CarModel value)? $default,){ +final _that = this; +switch (_that) { +case _CarModel() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( int? id, String? key, String? pelak, String? typeCar, String? driverName, String? driverMobile, String? weightWithoutLoad)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _CarModel() when $default != null: +return $default(_that.id,_that.key,_that.pelak,_that.typeCar,_that.driverName,_that.driverMobile,_that.weightWithoutLoad);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( int? id, String? key, String? pelak, String? typeCar, String? driverName, String? driverMobile, String? weightWithoutLoad) $default,) {final _that = this; +switch (_that) { +case _CarModel(): +return $default(_that.id,_that.key,_that.pelak,_that.typeCar,_that.driverName,_that.driverMobile,_that.weightWithoutLoad);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( int? id, String? key, String? pelak, String? typeCar, String? driverName, String? driverMobile, String? weightWithoutLoad)? $default,) {final _that = this; +switch (_that) { +case _CarModel() when $default != null: +return $default(_that.id,_that.key,_that.pelak,_that.typeCar,_that.driverName,_that.driverMobile,_that.weightWithoutLoad);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _CarModel implements CarModel { + const _CarModel({this.id, this.key, this.pelak, this.typeCar, this.driverName, this.driverMobile, this.weightWithoutLoad}); + factory _CarModel.fromJson(Map json) => _$CarModelFromJson(json); + +@override final int? id; +@override final String? key; +@override final String? pelak; +//Object? capocity, +@override final String? typeCar; +@override final String? driverName; +@override final String? driverMobile; +@override final String? weightWithoutLoad; + +/// Create a copy of CarModel +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$CarModelCopyWith<_CarModel> get copyWith => __$CarModelCopyWithImpl<_CarModel>(this, _$identity); + +@override +Map toJson() { + return _$CarModelToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _CarModel&&(identical(other.id, id) || other.id == id)&&(identical(other.key, key) || other.key == key)&&(identical(other.pelak, pelak) || other.pelak == pelak)&&(identical(other.typeCar, typeCar) || other.typeCar == typeCar)&&(identical(other.driverName, driverName) || other.driverName == driverName)&&(identical(other.driverMobile, driverMobile) || other.driverMobile == driverMobile)&&(identical(other.weightWithoutLoad, weightWithoutLoad) || other.weightWithoutLoad == weightWithoutLoad)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,id,key,pelak,typeCar,driverName,driverMobile,weightWithoutLoad); + +@override +String toString() { + return 'CarModel(id: $id, key: $key, pelak: $pelak, typeCar: $typeCar, driverName: $driverName, driverMobile: $driverMobile, weightWithoutLoad: $weightWithoutLoad)'; +} + + +} + +/// @nodoc +abstract mixin class _$CarModelCopyWith<$Res> implements $CarModelCopyWith<$Res> { + factory _$CarModelCopyWith(_CarModel value, $Res Function(_CarModel) _then) = __$CarModelCopyWithImpl; +@override @useResult +$Res call({ + int? id, String? key, String? pelak, String? typeCar, String? driverName, String? driverMobile, String? weightWithoutLoad +}); + + + + +} +/// @nodoc +class __$CarModelCopyWithImpl<$Res> + implements _$CarModelCopyWith<$Res> { + __$CarModelCopyWithImpl(this._self, this._then); + + final _CarModel _self; + final $Res Function(_CarModel) _then; + +/// Create a copy of CarModel +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? key = freezed,Object? pelak = freezed,Object? typeCar = freezed,Object? driverName = freezed,Object? driverMobile = freezed,Object? weightWithoutLoad = freezed,}) { + return _then(_CarModel( +id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable +as int?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,pelak: freezed == pelak ? _self.pelak : pelak // ignore: cast_nullable_to_non_nullable +as String?,typeCar: freezed == typeCar ? _self.typeCar : typeCar // ignore: cast_nullable_to_non_nullable +as String?,driverName: freezed == driverName ? _self.driverName : driverName // ignore: cast_nullable_to_non_nullable +as String?,driverMobile: freezed == driverMobile ? _self.driverMobile : driverMobile // ignore: cast_nullable_to_non_nullable +as String?,weightWithoutLoad: freezed == weightWithoutLoad ? _self.weightWithoutLoad : weightWithoutLoad // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$RegistrarClearanceCode { + + String? get date; String? get name; String? get role; String? get mobile; +/// Create a copy of RegistrarClearanceCode +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$RegistrarClearanceCodeCopyWith get copyWith => _$RegistrarClearanceCodeCopyWithImpl(this as RegistrarClearanceCode, _$identity); + + /// Serializes this RegistrarClearanceCode to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is RegistrarClearanceCode&&(identical(other.date, date) || other.date == date)&&(identical(other.name, name) || other.name == name)&&(identical(other.role, role) || other.role == role)&&(identical(other.mobile, mobile) || other.mobile == mobile)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,date,name,role,mobile); + +@override +String toString() { + return 'RegistrarClearanceCode(date: $date, name: $name, role: $role, mobile: $mobile)'; +} + + +} + +/// @nodoc +abstract mixin class $RegistrarClearanceCodeCopyWith<$Res> { + factory $RegistrarClearanceCodeCopyWith(RegistrarClearanceCode value, $Res Function(RegistrarClearanceCode) _then) = _$RegistrarClearanceCodeCopyWithImpl; +@useResult +$Res call({ + String? date, String? name, String? role, String? mobile +}); + + + + +} +/// @nodoc +class _$RegistrarClearanceCodeCopyWithImpl<$Res> + implements $RegistrarClearanceCodeCopyWith<$Res> { + _$RegistrarClearanceCodeCopyWithImpl(this._self, this._then); + + final RegistrarClearanceCode _self; + final $Res Function(RegistrarClearanceCode) _then; + +/// Create a copy of RegistrarClearanceCode +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? date = freezed,Object? name = freezed,Object? role = freezed,Object? mobile = freezed,}) { + return _then(_self.copyWith( +date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?,role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable +as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [RegistrarClearanceCode]. +extension RegistrarClearanceCodePatterns on RegistrarClearanceCode { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _RegistrarClearanceCode value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _RegistrarClearanceCode() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _RegistrarClearanceCode value) $default,){ +final _that = this; +switch (_that) { +case _RegistrarClearanceCode(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _RegistrarClearanceCode value)? $default,){ +final _that = this; +switch (_that) { +case _RegistrarClearanceCode() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( String? date, String? name, String? role, String? mobile)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _RegistrarClearanceCode() when $default != null: +return $default(_that.date,_that.name,_that.role,_that.mobile);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( String? date, String? name, String? role, String? mobile) $default,) {final _that = this; +switch (_that) { +case _RegistrarClearanceCode(): +return $default(_that.date,_that.name,_that.role,_that.mobile);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? date, String? name, String? role, String? mobile)? $default,) {final _that = this; +switch (_that) { +case _RegistrarClearanceCode() when $default != null: +return $default(_that.date,_that.name,_that.role,_that.mobile);case _: + return null; + +} +} + +} + +/// @nodoc +@JsonSerializable() + +class _RegistrarClearanceCode implements RegistrarClearanceCode { + const _RegistrarClearanceCode({this.date, this.name, this.role, this.mobile}); + factory _RegistrarClearanceCode.fromJson(Map json) => _$RegistrarClearanceCodeFromJson(json); + +@override final String? date; +@override final String? name; +@override final String? role; +@override final String? mobile; + +/// Create a copy of RegistrarClearanceCode +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$RegistrarClearanceCodeCopyWith<_RegistrarClearanceCode> get copyWith => __$RegistrarClearanceCodeCopyWithImpl<_RegistrarClearanceCode>(this, _$identity); + +@override +Map toJson() { + return _$RegistrarClearanceCodeToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _RegistrarClearanceCode&&(identical(other.date, date) || other.date == date)&&(identical(other.name, name) || other.name == name)&&(identical(other.role, role) || other.role == role)&&(identical(other.mobile, mobile) || other.mobile == mobile)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,date,name,role,mobile); + +@override +String toString() { + return 'RegistrarClearanceCode(date: $date, name: $name, role: $role, mobile: $mobile)'; +} + + +} + +/// @nodoc +abstract mixin class _$RegistrarClearanceCodeCopyWith<$Res> implements $RegistrarClearanceCodeCopyWith<$Res> { + factory _$RegistrarClearanceCodeCopyWith(_RegistrarClearanceCode value, $Res Function(_RegistrarClearanceCode) _then) = __$RegistrarClearanceCodeCopyWithImpl; +@override @useResult +$Res call({ + String? date, String? name, String? role, String? mobile +}); + + + + +} +/// @nodoc +class __$RegistrarClearanceCodeCopyWithImpl<$Res> + implements _$RegistrarClearanceCodeCopyWith<$Res> { + __$RegistrarClearanceCodeCopyWithImpl(this._self, this._then); + + final _RegistrarClearanceCode _self; + final $Res Function(_RegistrarClearanceCode) _then; + +/// Create a copy of RegistrarClearanceCode +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? date = freezed,Object? name = freezed,Object? role = freezed,Object? mobile = freezed,}) { + return _then(_RegistrarClearanceCode( +date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?,role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable +as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + +// dart format on diff --git a/packages/chicken/lib/data/models/kill_house_module/warehouse_and_distribution/response/kill_house_bars/kill_house_bars_response.g.dart b/packages/chicken/lib/data/models/kill_house_module/warehouse_and_distribution/response/kill_house_bars/kill_house_bars_response.g.dart new file mode 100644 index 0000000..b235863 --- /dev/null +++ b/packages/chicken/lib/data/models/kill_house_module/warehouse_and_distribution/response/kill_house_bars/kill_house_bars_response.g.dart @@ -0,0 +1,474 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'kill_house_bars_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +_KillHouseBars _$KillHouseBarsFromJson( + Map json, +) => _KillHouseBars( + killhouseUser: json['killhouse_user'] == null + ? null + : KillHouseUserModel.fromJson( + json['killhouse_user'] as Map, + ), + killer: json['killer'] == null + ? null + : KillHouseUserModel.fromJson(json['killer'] as Map), + addCar: json['add_car'] == null + ? null + : AddCarModel.fromJson(json['add_car'] as Map), + poultryRequest: json['poultry_request'] == null + ? null + : PoultryRequestModel.fromJson( + json['poultry_request'] as Map, + ), + weightInfo: json['weight_info'] == null + ? null + : WeightInfoModel.fromJson(json['weight_info'] as Map), + key: json['key'] as String?, + createDate: json['create_date'] as String?, + trash: json['trash'] as bool?, + quantity: (json['quantity'] as num?)?.toInt(), + barCode: (json['bar_code'] as num?)?.toInt(), + quarantineQuantity: (json['quarantine_quantity'] as num?)?.toInt(), + quarantineCodeState: json['quarantine_code_state'] as String?, + fee: (json['fee'] as num?)?.toDouble(), + time: json['time'] as String?, + state: json['state'] as String?, + vetState: json['vet_state'] as String?, + activeState: json['active_state'] as String?, + assignmentStateArchive: json['assignment_state_archive'] as String?, + showKillHouse: json['show_kill_house'] as String?, + car: json['car'] == null + ? null + : CarModel.fromJson(json['car'] as Map), + killHouseMessage: json['kill_house_message'] as String?, + allocationState: json['allocation_state'] as String?, + auction: json['auction'] as bool?, + role: json['role'] as String?, + clearanceCode: json['clearance_code'] as String?, + trafficCode: json['traffic_code'] as String?, + registrarClearanceCode: json['registrar_clearance_code'] == null + ? null + : RegistrarClearanceCode.fromJson( + json['registrar_clearance_code'] as Map, + ), + editorTrafficCode: json['editor_traffic_code'] as String?, + barRemover: json['bar_remover'] as String?, + extraKilledQuantity: (json['extra_killed_quantity'] as num?)?.toInt(), + acceptedRealQuantity: (json['accepted_real_quantity'] as num?)?.toInt(), + acceptedRealWeight: (json['accepted_real_weight'] as num?)?.toDouble(), + extraKilledWeight: (json['extra_killed_weight'] as num?)?.toDouble(), + vetAcceptedRealQuantity: (json['vet_accepted_real_quantity'] as num?) + ?.toInt(), + vetAcceptedRealWeight: (json['vet_accepted_real_weight'] as num?)?.toDouble(), + acceptedAssignmentRealQuantity: + (json['accepted_assignment_real_quantity'] as num?)?.toInt(), + acceptedAssignmentRealWeight: + (json['accepted_assignment_real_weight'] as num?)?.toDouble(), + message: json['message'] as String?, + wareHouseConfirmation: json['ware_house_confirmation'] as bool?, + wareHouseAcceptedRealQuantity: + (json['ware_house_accepted_real_quantity'] as num?)?.toInt(), + wareHouseAcceptedRealWeight: (json['ware_house_accepted_real_weight'] as num?) + ?.toDouble(), + dateOfWareHouse: json['date_of_ware_house'] as String?, + freezing: json['freezing'] as bool?, + archiveWage: json['archive_wage'] as bool?, + weightLoss: (json['weight_loss'] as num?)?.toDouble(), + wareHouseInputType: json['ware_house_input_type'] as String?, + documentStatus: json['document_status'] as String?, + aggregateCode: json['aggregate_code'] as String?, + aggregateStatus: json['aggregate_status'] as bool?, + calculateStatus: json['calculate_status'] as bool?, + temporaryTrash: json['temporary_trash'] as bool?, + temporaryDeleted: json['temporary_deleted'] as bool?, + enteredMessage: json['entered_message'] as String?, + inquiryDate: json['inquiry_date'] as String?, + inquiryOrigin: json['inquiry_origin'] as String?, + inquiryDestination: json['inquiry_destination'] as String?, + inquiryDriver: json['inquiry_driver'] as String?, + inquiryPelak: json['inquiry_pelak'] as String?, + settlementType: json['settlement_type'] as String?, + price: (json['price'] as num?)?.toDouble(), + description: json['description'] as String?, + barDocumentDescription: json['bar_document_description'] as String?, + image: json['image'] as String?, + priceRegisterar: json['price_registerar'] as String?, + priceRegisterarRole: json['price_registerar_role'] as String?, + priceRegisterDate: json['price_register_date'] as String?, + priceEditor: json['price_editor'] as String?, + priceEditorRole: json['price_editor_role'] as String?, + priceEditorDate: json['price_editor_date'] as String?, + nonReceipt: json['non_receipt'] as bool?, + nonReceiptReturn: json['non_receipt_return'] as bool?, + nonReceiptReturnMessage: json['non_receipt_return_message'] as String?, + nonReceiptMessage: json['non_receipt_message'] as String?, + mainNonReceipt: json['main_non_receipt'] as bool?, + nonReceiptState: json['non_receipt_state'] as String?, + nonReceiptChecker: json['non_receipt_checker'] as String?, + nonReceiptCheckerMessage: json['non_receipt_checker_message'] as String?, + nonReceiptCheckerMobile: json['non_receipt_checker_mobile'] as String?, + nonReceiptCheckDate: json['non_receipt_check_date'] as String?, + nonReceiptReturner: json['non_receipt_returner'] as String?, + nonReceiptReturnerMobile: json['non_receipt_returner_mobile'] as String?, + nonReceiptReturnDate: json['non_receipt_return_date'] as String?, + fine: json['fine'] as bool?, + fineAmount: (json['fine_amount'] as num?)?.toDouble(), + fineCoefficient: (json['fine_coefficient'] as num?)?.toDouble(), + documentNumber: json['document_number'] as String?, + companyDocument: json['company_document'] as bool?, + warehouse: json['warehouse'] as bool?, + warehouseCommitmentWeight: (json['warehouse_commitment_weight'] as num?) + ?.toDouble(), + returnTrash: json['return_trash'] as bool?, + amount: (json['amount'] as num?)?.toDouble(), + killRequest: (json['kill_request'] as num?)?.toInt(), + realAddCar: json['real_add_car'] as String?, + barDocumentStatus: json['bar_document_status'] as String?, + inputWarehouse: (json['input_warehouse'] as num?)?.toInt(), +); + +Map _$KillHouseBarsToJson( + _KillHouseBars instance, +) => { + 'killhouse_user': instance.killhouseUser, + 'killer': instance.killer, + 'add_car': instance.addCar, + 'poultry_request': instance.poultryRequest, + 'weight_info': instance.weightInfo, + 'key': instance.key, + 'create_date': instance.createDate, + 'trash': instance.trash, + 'quantity': instance.quantity, + 'bar_code': instance.barCode, + 'quarantine_quantity': instance.quarantineQuantity, + 'quarantine_code_state': instance.quarantineCodeState, + 'fee': instance.fee, + 'time': instance.time, + 'state': instance.state, + 'vet_state': instance.vetState, + 'active_state': instance.activeState, + 'assignment_state_archive': instance.assignmentStateArchive, + 'show_kill_house': instance.showKillHouse, + 'car': instance.car, + 'kill_house_message': instance.killHouseMessage, + 'allocation_state': instance.allocationState, + 'auction': instance.auction, + 'role': instance.role, + 'clearance_code': instance.clearanceCode, + 'traffic_code': instance.trafficCode, + 'registrar_clearance_code': instance.registrarClearanceCode, + 'editor_traffic_code': instance.editorTrafficCode, + 'bar_remover': instance.barRemover, + 'extra_killed_quantity': instance.extraKilledQuantity, + 'accepted_real_quantity': instance.acceptedRealQuantity, + 'accepted_real_weight': instance.acceptedRealWeight, + 'extra_killed_weight': instance.extraKilledWeight, + 'vet_accepted_real_quantity': instance.vetAcceptedRealQuantity, + 'vet_accepted_real_weight': instance.vetAcceptedRealWeight, + 'accepted_assignment_real_quantity': instance.acceptedAssignmentRealQuantity, + 'accepted_assignment_real_weight': instance.acceptedAssignmentRealWeight, + 'message': instance.message, + 'ware_house_confirmation': instance.wareHouseConfirmation, + 'ware_house_accepted_real_quantity': instance.wareHouseAcceptedRealQuantity, + 'ware_house_accepted_real_weight': instance.wareHouseAcceptedRealWeight, + 'date_of_ware_house': instance.dateOfWareHouse, + 'freezing': instance.freezing, + 'archive_wage': instance.archiveWage, + 'weight_loss': instance.weightLoss, + 'ware_house_input_type': instance.wareHouseInputType, + 'document_status': instance.documentStatus, + 'aggregate_code': instance.aggregateCode, + 'aggregate_status': instance.aggregateStatus, + 'calculate_status': instance.calculateStatus, + 'temporary_trash': instance.temporaryTrash, + 'temporary_deleted': instance.temporaryDeleted, + 'entered_message': instance.enteredMessage, + 'inquiry_date': instance.inquiryDate, + 'inquiry_origin': instance.inquiryOrigin, + 'inquiry_destination': instance.inquiryDestination, + 'inquiry_driver': instance.inquiryDriver, + 'inquiry_pelak': instance.inquiryPelak, + 'settlement_type': instance.settlementType, + 'price': instance.price, + 'description': instance.description, + 'bar_document_description': instance.barDocumentDescription, + 'image': instance.image, + 'price_registerar': instance.priceRegisterar, + 'price_registerar_role': instance.priceRegisterarRole, + 'price_register_date': instance.priceRegisterDate, + 'price_editor': instance.priceEditor, + 'price_editor_role': instance.priceEditorRole, + 'price_editor_date': instance.priceEditorDate, + 'non_receipt': instance.nonReceipt, + 'non_receipt_return': instance.nonReceiptReturn, + 'non_receipt_return_message': instance.nonReceiptReturnMessage, + 'non_receipt_message': instance.nonReceiptMessage, + 'main_non_receipt': instance.mainNonReceipt, + 'non_receipt_state': instance.nonReceiptState, + 'non_receipt_checker': instance.nonReceiptChecker, + 'non_receipt_checker_message': instance.nonReceiptCheckerMessage, + 'non_receipt_checker_mobile': instance.nonReceiptCheckerMobile, + 'non_receipt_check_date': instance.nonReceiptCheckDate, + 'non_receipt_returner': instance.nonReceiptReturner, + 'non_receipt_returner_mobile': instance.nonReceiptReturnerMobile, + 'non_receipt_return_date': instance.nonReceiptReturnDate, + 'fine': instance.fine, + 'fine_amount': instance.fineAmount, + 'fine_coefficient': instance.fineCoefficient, + 'document_number': instance.documentNumber, + 'company_document': instance.companyDocument, + 'warehouse': instance.warehouse, + 'warehouse_commitment_weight': instance.warehouseCommitmentWeight, + 'return_trash': instance.returnTrash, + 'amount': instance.amount, + 'kill_request': instance.killRequest, + 'real_add_car': instance.realAddCar, + 'bar_document_status': instance.barDocumentStatus, + 'input_warehouse': instance.inputWarehouse, +}; + +_KillHouseUserModel _$KillHouseUserModelFromJson(Map json) => + _KillHouseUserModel( + killHouseOperator: json['kill_house_operator'] == null + ? null + : KillHouseOperatorModel.fromJson( + json['kill_house_operator'] as Map, + ), + name: json['name'] as String?, + killer: json['killer'] as bool?, + key: json['key'] as String?, + maximumLoadVolumeIncrease: (json['maximum_load_volume_increase'] as num?) + ?.toDouble(), + maximumLoadVolumeReduction: + (json['maximum_load_volume_reduction'] as num?)?.toDouble(), + ); + +Map _$KillHouseUserModelToJson(_KillHouseUserModel instance) => + { + 'kill_house_operator': instance.killHouseOperator, + 'name': instance.name, + 'killer': instance.killer, + 'key': instance.key, + 'maximum_load_volume_increase': instance.maximumLoadVolumeIncrease, + 'maximum_load_volume_reduction': instance.maximumLoadVolumeReduction, + }; + +_KillHouseOperatorModel _$KillHouseOperatorModelFromJson( + Map json, +) => _KillHouseOperatorModel( + user: json['user'] == null + ? null + : UserDetailModel.fromJson(json['user'] as Map), +); + +Map _$KillHouseOperatorModelToJson( + _KillHouseOperatorModel instance, +) => {'user': instance.user}; + +_UserDetailModel _$UserDetailModelFromJson(Map json) => + _UserDetailModel( + fullname: json['fullname'] as String?, + firstName: json['first_name'] as String?, + lastName: json['last_name'] as String?, + baseOrder: (json['base_order'] as num?)?.toInt(), + mobile: json['mobile'] as String?, + nationalId: json['national_id'] as String?, + nationalCode: json['national_code'] as String?, + key: json['key'] as String?, + city: json['city'] == null + ? null + : CityDetailModel.fromJson(json['city'] as Map), + unitName: json['unit_name'] as String?, + unitNationalId: json['unit_national_id'] as String?, + unitRegistrationNumber: json['unit_registration_number'] as String?, + unitEconomicalNumber: json['unit_economical_number'] as String?, + unitProvince: json['unit_province'] as String?, + unitCity: json['unit_city'] as String?, + unitPostalCode: json['unit_postal_code'] as String?, + unitAddress: json['unit_address'] as String?, + ); + +Map _$UserDetailModelToJson(_UserDetailModel instance) => + { + 'fullname': instance.fullname, + 'first_name': instance.firstName, + 'last_name': instance.lastName, + 'base_order': instance.baseOrder, + 'mobile': instance.mobile, + 'national_id': instance.nationalId, + 'national_code': instance.nationalCode, + 'key': instance.key, + 'city': instance.city, + 'unit_name': instance.unitName, + 'unit_national_id': instance.unitNationalId, + 'unit_registration_number': instance.unitRegistrationNumber, + 'unit_economical_number': instance.unitEconomicalNumber, + 'unit_province': instance.unitProvince, + 'unit_city': instance.unitCity, + 'unit_postal_code': instance.unitPostalCode, + 'unit_address': instance.unitAddress, + }; + +_CityDetailModel _$CityDetailModelFromJson(Map json) => + _CityDetailModel( + id: (json['id'] as num?)?.toInt(), + key: json['key'] as String?, + createDate: json['create_date'] as String?, + modifyDate: json['modify_date'] as String?, + trash: json['trash'] as bool?, + provinceIdForeignKey: (json['province_id_foreign_key'] as num?)?.toInt(), + cityIdKey: (json['city_id_key'] as num?)?.toInt(), + name: json['name'] as String?, + productPrice: (json['product_price'] as num?)?.toDouble(), + provinceCenter: json['province_center'] as bool?, + cityNumber: (json['city_number'] as num?)?.toInt(), + cityName: json['city_name'] as String?, + provinceNumber: (json['province_number'] as num?)?.toInt(), + provinceName: json['province_name'] as String?, + createdBy: json['created_by'] as String?, + modifiedBy: json['modified_by'] as String?, + province: (json['province'] as num?)?.toInt(), + ); + +Map _$CityDetailModelToJson(_CityDetailModel instance) => + { + 'id': instance.id, + 'key': instance.key, + 'create_date': instance.createDate, + 'modify_date': instance.modifyDate, + 'trash': instance.trash, + 'province_id_foreign_key': instance.provinceIdForeignKey, + 'city_id_key': instance.cityIdKey, + 'name': instance.name, + 'product_price': instance.productPrice, + 'province_center': instance.provinceCenter, + 'city_number': instance.cityNumber, + 'city_name': instance.cityName, + 'province_number': instance.provinceNumber, + 'province_name': instance.provinceName, + 'created_by': instance.createdBy, + 'modified_by': instance.modifiedBy, + 'province': instance.province, + }; + +_AddCarModel _$AddCarModelFromJson(Map json) => _AddCarModel( + driver: json['driver'] == null + ? null + : DriverModel.fromJson(json['driver'] as Map), +); + +Map _$AddCarModelToJson(_AddCarModel instance) => + {'driver': instance.driver}; + +_DriverModel _$DriverModelFromJson(Map json) => _DriverModel( + driverName: json['driver_name'] as String?, + driverMobile: json['driver_mobile'] as String?, + typeCar: json['type_car'] as String?, + pelak: json['pelak'] as String?, + healthCode: json['health_code'] as String?, +); + +Map _$DriverModelToJson(_DriverModel instance) => + { + 'driver_name': instance.driverName, + 'driver_mobile': instance.driverMobile, + 'type_car': instance.typeCar, + 'pelak': instance.pelak, + 'health_code': instance.healthCode, + }; + +_PoultryRequestModel _$PoultryRequestModelFromJson(Map json) => + _PoultryRequestModel( + poultryReqOrderCode: (json['poultry_req_order_code'] as num?)?.toInt(), + poultryName: json['poultry_name'] as String?, + poultryUserName: json['poultry_user_name'] as String?, + poultryMobile: json['poultry_mobile'] as String?, + poultryCity: json['poultry_city'] as String?, + chickenBreed: json['chicken_breed'] as String?, + date: json['date'] as String?, + freezing: json['freezing'] as bool?, + export: json['export'] as bool?, + freeSaleInProvince: json['free_sale_in_province'] as bool?, + directBuying: json['direct_buying'] as bool?, + ); + +Map _$PoultryRequestModelToJson( + _PoultryRequestModel instance, +) => { + 'poultry_req_order_code': instance.poultryReqOrderCode, + 'poultry_name': instance.poultryName, + 'poultry_user_name': instance.poultryUserName, + 'poultry_mobile': instance.poultryMobile, + 'poultry_city': instance.poultryCity, + 'chicken_breed': instance.chickenBreed, + 'date': instance.date, + 'freezing': instance.freezing, + 'export': instance.export, + 'free_sale_in_province': instance.freeSaleInProvince, + 'direct_buying': instance.directBuying, +}; + +_WeightInfoModel _$WeightInfoModelFromJson(Map json) => + _WeightInfoModel( + indexWeight: (json['index_weight'] as num?)?.toDouble(), + weight: (json['weight'] as num?)?.toDouble(), + finalIndexWeight: (json['final_index_weight'] as num?)?.toDouble(), + killHousePrice: (json['kill_house_price'] as num?)?.toDouble(), + weightLoss: (json['weight_loss'] as num?)?.toInt(), + inputLoss: (json['input_loss'] as num?)?.toDouble(), + state: json['state'] as String?, + ); + +Map _$WeightInfoModelToJson(_WeightInfoModel instance) => + { + 'index_weight': instance.indexWeight, + 'weight': instance.weight, + 'final_index_weight': instance.finalIndexWeight, + 'kill_house_price': instance.killHousePrice, + 'weight_loss': instance.weightLoss, + 'input_loss': instance.inputLoss, + 'state': instance.state, + }; + +_CarModel _$CarModelFromJson(Map json) => _CarModel( + id: (json['id'] as num?)?.toInt(), + key: json['key'] as String?, + pelak: json['pelak'] as String?, + typeCar: json['type_car'] as String?, + driverName: json['driver_name'] as String?, + driverMobile: json['driver_mobile'] as String?, + weightWithoutLoad: json['weight_without_load'] as String?, +); + +Map _$CarModelToJson(_CarModel instance) => { + 'id': instance.id, + 'key': instance.key, + 'pelak': instance.pelak, + 'type_car': instance.typeCar, + 'driver_name': instance.driverName, + 'driver_mobile': instance.driverMobile, + 'weight_without_load': instance.weightWithoutLoad, +}; + +_RegistrarClearanceCode _$RegistrarClearanceCodeFromJson( + Map json, +) => _RegistrarClearanceCode( + date: json['date'] as String?, + name: json['name'] as String?, + role: json['role'] as String?, + mobile: json['mobile'] as String?, +); + +Map _$RegistrarClearanceCodeToJson( + _RegistrarClearanceCode instance, +) => { + 'date': instance.date, + 'name': instance.name, + 'role': instance.role, + 'mobile': instance.mobile, +}; diff --git a/packages/chicken/lib/data/models/kill_house_module/warehouse_and_distribution/response/kill_house_sales_info_dashboard.dart b/packages/chicken/lib/data/models/kill_house_module/warehouse_and_distribution/response/kill_house_sales_info_dashboard/kill_house_sales_info_dashboard.dart similarity index 100% rename from packages/chicken/lib/data/models/kill_house_module/warehouse_and_distribution/response/kill_house_sales_info_dashboard.dart rename to packages/chicken/lib/data/models/kill_house_module/warehouse_and_distribution/response/kill_house_sales_info_dashboard/kill_house_sales_info_dashboard.dart diff --git a/packages/chicken/lib/data/models/kill_house_module/warehouse_and_distribution/response/kill_house_sales_info_dashboard.freezed.dart b/packages/chicken/lib/data/models/kill_house_module/warehouse_and_distribution/response/kill_house_sales_info_dashboard/kill_house_sales_info_dashboard.freezed.dart similarity index 100% rename from packages/chicken/lib/data/models/kill_house_module/warehouse_and_distribution/response/kill_house_sales_info_dashboard.freezed.dart rename to packages/chicken/lib/data/models/kill_house_module/warehouse_and_distribution/response/kill_house_sales_info_dashboard/kill_house_sales_info_dashboard.freezed.dart diff --git a/packages/chicken/lib/data/models/kill_house_module/warehouse_and_distribution/response/kill_house_sales_info_dashboard.g.dart b/packages/chicken/lib/data/models/kill_house_module/warehouse_and_distribution/response/kill_house_sales_info_dashboard/kill_house_sales_info_dashboard.g.dart similarity index 100% rename from packages/chicken/lib/data/models/kill_house_module/warehouse_and_distribution/response/kill_house_sales_info_dashboard.g.dart rename to packages/chicken/lib/data/models/kill_house_module/warehouse_and_distribution/response/kill_house_sales_info_dashboard/kill_house_sales_info_dashboard.g.dart diff --git a/packages/chicken/lib/data/models/request/create_steward_free_bar/create_steward_free_bar.dart b/packages/chicken/lib/data/models/request/create_steward_free_bar/create_steward_free_bar.dart index 830a0ba..3a2bfc8 100644 --- a/packages/chicken/lib/data/models/request/create_steward_free_bar/create_steward_free_bar.dart +++ b/packages/chicken/lib/data/models/request/create_steward_free_bar/create_steward_free_bar.dart @@ -16,6 +16,7 @@ abstract class CreateStewardFreeBar with _$CreateStewardFreeBar { int? numberOfCarcasses, String? date, String? barImage, + String? distributionType, }) = _CreateStewardFreeBar; factory CreateStewardFreeBar.fromJson(Map json) => diff --git a/packages/chicken/lib/data/models/request/create_steward_free_bar/create_steward_free_bar.freezed.dart b/packages/chicken/lib/data/models/request/create_steward_free_bar/create_steward_free_bar.freezed.dart index 22c5f4f..6b7693c 100644 --- a/packages/chicken/lib/data/models/request/create_steward_free_bar/create_steward_free_bar.freezed.dart +++ b/packages/chicken/lib/data/models/request/create_steward_free_bar/create_steward_free_bar.freezed.dart @@ -15,7 +15,7 @@ T _$identity(T value) => value; /// @nodoc mixin _$CreateStewardFreeBar { - String? get productKey; String? get key; String? get killHouseName; String? get killHouseMobile; String? get province; String? get city; int? get weightOfCarcasses; int? get numberOfCarcasses; String? get date; String? get barImage; + String? get productKey; String? get key; String? get killHouseName; String? get killHouseMobile; String? get province; String? get city; int? get weightOfCarcasses; int? get numberOfCarcasses; String? get date; String? get barImage; String? get distributionType; /// Create a copy of CreateStewardFreeBar /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @@ -28,16 +28,16 @@ $CreateStewardFreeBarCopyWith get copyWith => _$CreateStew @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is CreateStewardFreeBar&&(identical(other.productKey, productKey) || other.productKey == productKey)&&(identical(other.key, key) || other.key == key)&&(identical(other.killHouseName, killHouseName) || other.killHouseName == killHouseName)&&(identical(other.killHouseMobile, killHouseMobile) || other.killHouseMobile == killHouseMobile)&&(identical(other.province, province) || other.province == province)&&(identical(other.city, city) || other.city == city)&&(identical(other.weightOfCarcasses, weightOfCarcasses) || other.weightOfCarcasses == weightOfCarcasses)&&(identical(other.numberOfCarcasses, numberOfCarcasses) || other.numberOfCarcasses == numberOfCarcasses)&&(identical(other.date, date) || other.date == date)&&(identical(other.barImage, barImage) || other.barImage == barImage)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is CreateStewardFreeBar&&(identical(other.productKey, productKey) || other.productKey == productKey)&&(identical(other.key, key) || other.key == key)&&(identical(other.killHouseName, killHouseName) || other.killHouseName == killHouseName)&&(identical(other.killHouseMobile, killHouseMobile) || other.killHouseMobile == killHouseMobile)&&(identical(other.province, province) || other.province == province)&&(identical(other.city, city) || other.city == city)&&(identical(other.weightOfCarcasses, weightOfCarcasses) || other.weightOfCarcasses == weightOfCarcasses)&&(identical(other.numberOfCarcasses, numberOfCarcasses) || other.numberOfCarcasses == numberOfCarcasses)&&(identical(other.date, date) || other.date == date)&&(identical(other.barImage, barImage) || other.barImage == barImage)&&(identical(other.distributionType, distributionType) || other.distributionType == distributionType)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,productKey,key,killHouseName,killHouseMobile,province,city,weightOfCarcasses,numberOfCarcasses,date,barImage); +int get hashCode => Object.hash(runtimeType,productKey,key,killHouseName,killHouseMobile,province,city,weightOfCarcasses,numberOfCarcasses,date,barImage,distributionType); @override String toString() { - return 'CreateStewardFreeBar(productKey: $productKey, key: $key, killHouseName: $killHouseName, killHouseMobile: $killHouseMobile, province: $province, city: $city, weightOfCarcasses: $weightOfCarcasses, numberOfCarcasses: $numberOfCarcasses, date: $date, barImage: $barImage)'; + return 'CreateStewardFreeBar(productKey: $productKey, key: $key, killHouseName: $killHouseName, killHouseMobile: $killHouseMobile, province: $province, city: $city, weightOfCarcasses: $weightOfCarcasses, numberOfCarcasses: $numberOfCarcasses, date: $date, barImage: $barImage, distributionType: $distributionType)'; } @@ -48,7 +48,7 @@ abstract mixin class $CreateStewardFreeBarCopyWith<$Res> { factory $CreateStewardFreeBarCopyWith(CreateStewardFreeBar value, $Res Function(CreateStewardFreeBar) _then) = _$CreateStewardFreeBarCopyWithImpl; @useResult $Res call({ - String? productKey, String? key, String? killHouseName, String? killHouseMobile, String? province, String? city, int? weightOfCarcasses, int? numberOfCarcasses, String? date, String? barImage + String? productKey, String? key, String? killHouseName, String? killHouseMobile, String? province, String? city, int? weightOfCarcasses, int? numberOfCarcasses, String? date, String? barImage, String? distributionType }); @@ -65,7 +65,7 @@ class _$CreateStewardFreeBarCopyWithImpl<$Res> /// Create a copy of CreateStewardFreeBar /// with the given fields replaced by the non-null parameter values. -@pragma('vm:prefer-inline') @override $Res call({Object? productKey = freezed,Object? key = freezed,Object? killHouseName = freezed,Object? killHouseMobile = freezed,Object? province = freezed,Object? city = freezed,Object? weightOfCarcasses = freezed,Object? numberOfCarcasses = freezed,Object? date = freezed,Object? barImage = freezed,}) { +@pragma('vm:prefer-inline') @override $Res call({Object? productKey = freezed,Object? key = freezed,Object? killHouseName = freezed,Object? killHouseMobile = freezed,Object? province = freezed,Object? city = freezed,Object? weightOfCarcasses = freezed,Object? numberOfCarcasses = freezed,Object? date = freezed,Object? barImage = freezed,Object? distributionType = freezed,}) { return _then(_self.copyWith( productKey: freezed == productKey ? _self.productKey : productKey // ignore: cast_nullable_to_non_nullable as String?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable @@ -77,6 +77,7 @@ as String?,weightOfCarcasses: freezed == weightOfCarcasses ? _self.weightOfCarca as int?,numberOfCarcasses: freezed == numberOfCarcasses ? _self.numberOfCarcasses : numberOfCarcasses // ignore: cast_nullable_to_non_nullable as int?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable as String?,barImage: freezed == barImage ? _self.barImage : barImage // ignore: cast_nullable_to_non_nullable +as String?,distributionType: freezed == distributionType ? _self.distributionType : distributionType // ignore: cast_nullable_to_non_nullable as String?, )); } @@ -162,10 +163,10 @@ return $default(_that);case _: /// } /// ``` -@optionalTypeArgs TResult maybeWhen(TResult Function( String? productKey, String? key, String? killHouseName, String? killHouseMobile, String? province, String? city, int? weightOfCarcasses, int? numberOfCarcasses, String? date, String? barImage)? $default,{required TResult orElse(),}) {final _that = this; +@optionalTypeArgs TResult maybeWhen(TResult Function( String? productKey, String? key, String? killHouseName, String? killHouseMobile, String? province, String? city, int? weightOfCarcasses, int? numberOfCarcasses, String? date, String? barImage, String? distributionType)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _CreateStewardFreeBar() when $default != null: -return $default(_that.productKey,_that.key,_that.killHouseName,_that.killHouseMobile,_that.province,_that.city,_that.weightOfCarcasses,_that.numberOfCarcasses,_that.date,_that.barImage);case _: +return $default(_that.productKey,_that.key,_that.killHouseName,_that.killHouseMobile,_that.province,_that.city,_that.weightOfCarcasses,_that.numberOfCarcasses,_that.date,_that.barImage,_that.distributionType);case _: return orElse(); } @@ -183,10 +184,10 @@ return $default(_that.productKey,_that.key,_that.killHouseName,_that.killHouseMo /// } /// ``` -@optionalTypeArgs TResult when(TResult Function( String? productKey, String? key, String? killHouseName, String? killHouseMobile, String? province, String? city, int? weightOfCarcasses, int? numberOfCarcasses, String? date, String? barImage) $default,) {final _that = this; +@optionalTypeArgs TResult when(TResult Function( String? productKey, String? key, String? killHouseName, String? killHouseMobile, String? province, String? city, int? weightOfCarcasses, int? numberOfCarcasses, String? date, String? barImage, String? distributionType) $default,) {final _that = this; switch (_that) { case _CreateStewardFreeBar(): -return $default(_that.productKey,_that.key,_that.killHouseName,_that.killHouseMobile,_that.province,_that.city,_that.weightOfCarcasses,_that.numberOfCarcasses,_that.date,_that.barImage);case _: +return $default(_that.productKey,_that.key,_that.killHouseName,_that.killHouseMobile,_that.province,_that.city,_that.weightOfCarcasses,_that.numberOfCarcasses,_that.date,_that.barImage,_that.distributionType);case _: throw StateError('Unexpected subclass'); } @@ -203,10 +204,10 @@ return $default(_that.productKey,_that.key,_that.killHouseName,_that.killHouseMo /// } /// ``` -@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? productKey, String? key, String? killHouseName, String? killHouseMobile, String? province, String? city, int? weightOfCarcasses, int? numberOfCarcasses, String? date, String? barImage)? $default,) {final _that = this; +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? productKey, String? key, String? killHouseName, String? killHouseMobile, String? province, String? city, int? weightOfCarcasses, int? numberOfCarcasses, String? date, String? barImage, String? distributionType)? $default,) {final _that = this; switch (_that) { case _CreateStewardFreeBar() when $default != null: -return $default(_that.productKey,_that.key,_that.killHouseName,_that.killHouseMobile,_that.province,_that.city,_that.weightOfCarcasses,_that.numberOfCarcasses,_that.date,_that.barImage);case _: +return $default(_that.productKey,_that.key,_that.killHouseName,_that.killHouseMobile,_that.province,_that.city,_that.weightOfCarcasses,_that.numberOfCarcasses,_that.date,_that.barImage,_that.distributionType);case _: return null; } @@ -218,7 +219,7 @@ return $default(_that.productKey,_that.key,_that.killHouseName,_that.killHouseMo @JsonSerializable() class _CreateStewardFreeBar implements CreateStewardFreeBar { - const _CreateStewardFreeBar({this.productKey, this.key, this.killHouseName, this.killHouseMobile, this.province, this.city, this.weightOfCarcasses, this.numberOfCarcasses, this.date, this.barImage}); + const _CreateStewardFreeBar({this.productKey, this.key, this.killHouseName, this.killHouseMobile, this.province, this.city, this.weightOfCarcasses, this.numberOfCarcasses, this.date, this.barImage, this.distributionType}); factory _CreateStewardFreeBar.fromJson(Map json) => _$CreateStewardFreeBarFromJson(json); @override final String? productKey; @@ -231,6 +232,7 @@ class _CreateStewardFreeBar implements CreateStewardFreeBar { @override final int? numberOfCarcasses; @override final String? date; @override final String? barImage; +@override final String? distributionType; /// Create a copy of CreateStewardFreeBar /// with the given fields replaced by the non-null parameter values. @@ -245,16 +247,16 @@ Map toJson() { @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is _CreateStewardFreeBar&&(identical(other.productKey, productKey) || other.productKey == productKey)&&(identical(other.key, key) || other.key == key)&&(identical(other.killHouseName, killHouseName) || other.killHouseName == killHouseName)&&(identical(other.killHouseMobile, killHouseMobile) || other.killHouseMobile == killHouseMobile)&&(identical(other.province, province) || other.province == province)&&(identical(other.city, city) || other.city == city)&&(identical(other.weightOfCarcasses, weightOfCarcasses) || other.weightOfCarcasses == weightOfCarcasses)&&(identical(other.numberOfCarcasses, numberOfCarcasses) || other.numberOfCarcasses == numberOfCarcasses)&&(identical(other.date, date) || other.date == date)&&(identical(other.barImage, barImage) || other.barImage == barImage)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _CreateStewardFreeBar&&(identical(other.productKey, productKey) || other.productKey == productKey)&&(identical(other.key, key) || other.key == key)&&(identical(other.killHouseName, killHouseName) || other.killHouseName == killHouseName)&&(identical(other.killHouseMobile, killHouseMobile) || other.killHouseMobile == killHouseMobile)&&(identical(other.province, province) || other.province == province)&&(identical(other.city, city) || other.city == city)&&(identical(other.weightOfCarcasses, weightOfCarcasses) || other.weightOfCarcasses == weightOfCarcasses)&&(identical(other.numberOfCarcasses, numberOfCarcasses) || other.numberOfCarcasses == numberOfCarcasses)&&(identical(other.date, date) || other.date == date)&&(identical(other.barImage, barImage) || other.barImage == barImage)&&(identical(other.distributionType, distributionType) || other.distributionType == distributionType)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,productKey,key,killHouseName,killHouseMobile,province,city,weightOfCarcasses,numberOfCarcasses,date,barImage); +int get hashCode => Object.hash(runtimeType,productKey,key,killHouseName,killHouseMobile,province,city,weightOfCarcasses,numberOfCarcasses,date,barImage,distributionType); @override String toString() { - return 'CreateStewardFreeBar(productKey: $productKey, key: $key, killHouseName: $killHouseName, killHouseMobile: $killHouseMobile, province: $province, city: $city, weightOfCarcasses: $weightOfCarcasses, numberOfCarcasses: $numberOfCarcasses, date: $date, barImage: $barImage)'; + return 'CreateStewardFreeBar(productKey: $productKey, key: $key, killHouseName: $killHouseName, killHouseMobile: $killHouseMobile, province: $province, city: $city, weightOfCarcasses: $weightOfCarcasses, numberOfCarcasses: $numberOfCarcasses, date: $date, barImage: $barImage, distributionType: $distributionType)'; } @@ -265,7 +267,7 @@ abstract mixin class _$CreateStewardFreeBarCopyWith<$Res> implements $CreateStew factory _$CreateStewardFreeBarCopyWith(_CreateStewardFreeBar value, $Res Function(_CreateStewardFreeBar) _then) = __$CreateStewardFreeBarCopyWithImpl; @override @useResult $Res call({ - String? productKey, String? key, String? killHouseName, String? killHouseMobile, String? province, String? city, int? weightOfCarcasses, int? numberOfCarcasses, String? date, String? barImage + String? productKey, String? key, String? killHouseName, String? killHouseMobile, String? province, String? city, int? weightOfCarcasses, int? numberOfCarcasses, String? date, String? barImage, String? distributionType }); @@ -282,7 +284,7 @@ class __$CreateStewardFreeBarCopyWithImpl<$Res> /// Create a copy of CreateStewardFreeBar /// with the given fields replaced by the non-null parameter values. -@override @pragma('vm:prefer-inline') $Res call({Object? productKey = freezed,Object? key = freezed,Object? killHouseName = freezed,Object? killHouseMobile = freezed,Object? province = freezed,Object? city = freezed,Object? weightOfCarcasses = freezed,Object? numberOfCarcasses = freezed,Object? date = freezed,Object? barImage = freezed,}) { +@override @pragma('vm:prefer-inline') $Res call({Object? productKey = freezed,Object? key = freezed,Object? killHouseName = freezed,Object? killHouseMobile = freezed,Object? province = freezed,Object? city = freezed,Object? weightOfCarcasses = freezed,Object? numberOfCarcasses = freezed,Object? date = freezed,Object? barImage = freezed,Object? distributionType = freezed,}) { return _then(_CreateStewardFreeBar( productKey: freezed == productKey ? _self.productKey : productKey // ignore: cast_nullable_to_non_nullable as String?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable @@ -294,6 +296,7 @@ as String?,weightOfCarcasses: freezed == weightOfCarcasses ? _self.weightOfCarca as int?,numberOfCarcasses: freezed == numberOfCarcasses ? _self.numberOfCarcasses : numberOfCarcasses // ignore: cast_nullable_to_non_nullable as int?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable as String?,barImage: freezed == barImage ? _self.barImage : barImage // ignore: cast_nullable_to_non_nullable +as String?,distributionType: freezed == distributionType ? _self.distributionType : distributionType // ignore: cast_nullable_to_non_nullable as String?, )); } diff --git a/packages/chicken/lib/data/models/request/create_steward_free_bar/create_steward_free_bar.g.dart b/packages/chicken/lib/data/models/request/create_steward_free_bar/create_steward_free_bar.g.dart index f90c42d..963660a 100644 --- a/packages/chicken/lib/data/models/request/create_steward_free_bar/create_steward_free_bar.g.dart +++ b/packages/chicken/lib/data/models/request/create_steward_free_bar/create_steward_free_bar.g.dart @@ -19,6 +19,7 @@ _CreateStewardFreeBar _$CreateStewardFreeBarFromJson( numberOfCarcasses: (json['number_of_carcasses'] as num?)?.toInt(), date: json['date'] as String?, barImage: json['bar_image'] as String?, + distributionType: json['distribution_type'] as String?, ); Map _$CreateStewardFreeBarToJson( @@ -34,4 +35,5 @@ Map _$CreateStewardFreeBarToJson( 'number_of_carcasses': instance.numberOfCarcasses, 'date': instance.date, 'bar_image': instance.barImage, + 'distribution_type': instance.distributionType, }; diff --git a/packages/chicken/lib/data/models/request/steward_free_sale_bar/steward_free_sale_bar_request.dart b/packages/chicken/lib/data/models/request/steward_free_sale_bar/steward_free_sale_bar_request.dart index 1d8da3e..85c93cc 100644 --- a/packages/chicken/lib/data/models/request/steward_free_sale_bar/steward_free_sale_bar_request.dart +++ b/packages/chicken/lib/data/models/request/steward_free_sale_bar/steward_free_sale_bar_request.dart @@ -22,6 +22,7 @@ abstract class StewardFreeSaleBarRequest with _$StewardFreeSaleBarRequest { String? quota, String? saleType, String? productionDate, + String? distributionType, }) = _StewardFreeSaleBarRequest; factory StewardFreeSaleBarRequest.fromJson(Map json) => diff --git a/packages/chicken/lib/data/models/request/steward_free_sale_bar/steward_free_sale_bar_request.freezed.dart b/packages/chicken/lib/data/models/request/steward_free_sale_bar/steward_free_sale_bar_request.freezed.dart index 3a73391..5147402 100644 --- a/packages/chicken/lib/data/models/request/steward_free_sale_bar/steward_free_sale_bar_request.freezed.dart +++ b/packages/chicken/lib/data/models/request/steward_free_sale_bar/steward_free_sale_bar_request.freezed.dart @@ -15,7 +15,7 @@ T _$identity(T value) => value; /// @nodoc mixin _$StewardFreeSaleBarRequest { - String? get buyerKey; String? get buyerMobile; String? get buyerName; String? get city; String? get key; int? get numberOfCarcasses; int? get weightOfCarcasses; String? get date; String? get clearanceCode; String? get productKey; String? get role; String? get registerCode; String? get province; String? get quota; String? get saleType; String? get productionDate; + String? get buyerKey; String? get buyerMobile; String? get buyerName; String? get city; String? get key; int? get numberOfCarcasses; int? get weightOfCarcasses; String? get date; String? get clearanceCode; String? get productKey; String? get role; String? get registerCode; String? get province; String? get quota; String? get saleType; String? get productionDate; String? get distributionType; /// Create a copy of StewardFreeSaleBarRequest /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @@ -28,16 +28,16 @@ $StewardFreeSaleBarRequestCopyWith get copyWith => _$ @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is StewardFreeSaleBarRequest&&(identical(other.buyerKey, buyerKey) || other.buyerKey == buyerKey)&&(identical(other.buyerMobile, buyerMobile) || other.buyerMobile == buyerMobile)&&(identical(other.buyerName, buyerName) || other.buyerName == buyerName)&&(identical(other.city, city) || other.city == city)&&(identical(other.key, key) || other.key == key)&&(identical(other.numberOfCarcasses, numberOfCarcasses) || other.numberOfCarcasses == numberOfCarcasses)&&(identical(other.weightOfCarcasses, weightOfCarcasses) || other.weightOfCarcasses == weightOfCarcasses)&&(identical(other.date, date) || other.date == date)&&(identical(other.clearanceCode, clearanceCode) || other.clearanceCode == clearanceCode)&&(identical(other.productKey, productKey) || other.productKey == productKey)&&(identical(other.role, role) || other.role == role)&&(identical(other.registerCode, registerCode) || other.registerCode == registerCode)&&(identical(other.province, province) || other.province == province)&&(identical(other.quota, quota) || other.quota == quota)&&(identical(other.saleType, saleType) || other.saleType == saleType)&&(identical(other.productionDate, productionDate) || other.productionDate == productionDate)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is StewardFreeSaleBarRequest&&(identical(other.buyerKey, buyerKey) || other.buyerKey == buyerKey)&&(identical(other.buyerMobile, buyerMobile) || other.buyerMobile == buyerMobile)&&(identical(other.buyerName, buyerName) || other.buyerName == buyerName)&&(identical(other.city, city) || other.city == city)&&(identical(other.key, key) || other.key == key)&&(identical(other.numberOfCarcasses, numberOfCarcasses) || other.numberOfCarcasses == numberOfCarcasses)&&(identical(other.weightOfCarcasses, weightOfCarcasses) || other.weightOfCarcasses == weightOfCarcasses)&&(identical(other.date, date) || other.date == date)&&(identical(other.clearanceCode, clearanceCode) || other.clearanceCode == clearanceCode)&&(identical(other.productKey, productKey) || other.productKey == productKey)&&(identical(other.role, role) || other.role == role)&&(identical(other.registerCode, registerCode) || other.registerCode == registerCode)&&(identical(other.province, province) || other.province == province)&&(identical(other.quota, quota) || other.quota == quota)&&(identical(other.saleType, saleType) || other.saleType == saleType)&&(identical(other.productionDate, productionDate) || other.productionDate == productionDate)&&(identical(other.distributionType, distributionType) || other.distributionType == distributionType)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,buyerKey,buyerMobile,buyerName,city,key,numberOfCarcasses,weightOfCarcasses,date,clearanceCode,productKey,role,registerCode,province,quota,saleType,productionDate); +int get hashCode => Object.hash(runtimeType,buyerKey,buyerMobile,buyerName,city,key,numberOfCarcasses,weightOfCarcasses,date,clearanceCode,productKey,role,registerCode,province,quota,saleType,productionDate,distributionType); @override String toString() { - return 'StewardFreeSaleBarRequest(buyerKey: $buyerKey, buyerMobile: $buyerMobile, buyerName: $buyerName, city: $city, key: $key, numberOfCarcasses: $numberOfCarcasses, weightOfCarcasses: $weightOfCarcasses, date: $date, clearanceCode: $clearanceCode, productKey: $productKey, role: $role, registerCode: $registerCode, province: $province, quota: $quota, saleType: $saleType, productionDate: $productionDate)'; + return 'StewardFreeSaleBarRequest(buyerKey: $buyerKey, buyerMobile: $buyerMobile, buyerName: $buyerName, city: $city, key: $key, numberOfCarcasses: $numberOfCarcasses, weightOfCarcasses: $weightOfCarcasses, date: $date, clearanceCode: $clearanceCode, productKey: $productKey, role: $role, registerCode: $registerCode, province: $province, quota: $quota, saleType: $saleType, productionDate: $productionDate, distributionType: $distributionType)'; } @@ -48,7 +48,7 @@ abstract mixin class $StewardFreeSaleBarRequestCopyWith<$Res> { factory $StewardFreeSaleBarRequestCopyWith(StewardFreeSaleBarRequest value, $Res Function(StewardFreeSaleBarRequest) _then) = _$StewardFreeSaleBarRequestCopyWithImpl; @useResult $Res call({ - String? buyerKey, String? buyerMobile, String? buyerName, String? city, String? key, int? numberOfCarcasses, int? weightOfCarcasses, String? date, String? clearanceCode, String? productKey, String? role, String? registerCode, String? province, String? quota, String? saleType, String? productionDate + String? buyerKey, String? buyerMobile, String? buyerName, String? city, String? key, int? numberOfCarcasses, int? weightOfCarcasses, String? date, String? clearanceCode, String? productKey, String? role, String? registerCode, String? province, String? quota, String? saleType, String? productionDate, String? distributionType }); @@ -65,7 +65,7 @@ class _$StewardFreeSaleBarRequestCopyWithImpl<$Res> /// Create a copy of StewardFreeSaleBarRequest /// with the given fields replaced by the non-null parameter values. -@pragma('vm:prefer-inline') @override $Res call({Object? buyerKey = freezed,Object? buyerMobile = freezed,Object? buyerName = freezed,Object? city = freezed,Object? key = freezed,Object? numberOfCarcasses = freezed,Object? weightOfCarcasses = freezed,Object? date = freezed,Object? clearanceCode = freezed,Object? productKey = freezed,Object? role = freezed,Object? registerCode = freezed,Object? province = freezed,Object? quota = freezed,Object? saleType = freezed,Object? productionDate = freezed,}) { +@pragma('vm:prefer-inline') @override $Res call({Object? buyerKey = freezed,Object? buyerMobile = freezed,Object? buyerName = freezed,Object? city = freezed,Object? key = freezed,Object? numberOfCarcasses = freezed,Object? weightOfCarcasses = freezed,Object? date = freezed,Object? clearanceCode = freezed,Object? productKey = freezed,Object? role = freezed,Object? registerCode = freezed,Object? province = freezed,Object? quota = freezed,Object? saleType = freezed,Object? productionDate = freezed,Object? distributionType = freezed,}) { return _then(_self.copyWith( buyerKey: freezed == buyerKey ? _self.buyerKey : buyerKey // ignore: cast_nullable_to_non_nullable as String?,buyerMobile: freezed == buyerMobile ? _self.buyerMobile : buyerMobile // ignore: cast_nullable_to_non_nullable @@ -83,6 +83,7 @@ as String?,province: freezed == province ? _self.province : province // ignore: as String?,quota: freezed == quota ? _self.quota : quota // ignore: cast_nullable_to_non_nullable as String?,saleType: freezed == saleType ? _self.saleType : saleType // ignore: cast_nullable_to_non_nullable as String?,productionDate: freezed == productionDate ? _self.productionDate : productionDate // ignore: cast_nullable_to_non_nullable +as String?,distributionType: freezed == distributionType ? _self.distributionType : distributionType // ignore: cast_nullable_to_non_nullable as String?, )); } @@ -168,10 +169,10 @@ return $default(_that);case _: /// } /// ``` -@optionalTypeArgs TResult maybeWhen(TResult Function( String? buyerKey, String? buyerMobile, String? buyerName, String? city, String? key, int? numberOfCarcasses, int? weightOfCarcasses, String? date, String? clearanceCode, String? productKey, String? role, String? registerCode, String? province, String? quota, String? saleType, String? productionDate)? $default,{required TResult orElse(),}) {final _that = this; +@optionalTypeArgs TResult maybeWhen(TResult Function( String? buyerKey, String? buyerMobile, String? buyerName, String? city, String? key, int? numberOfCarcasses, int? weightOfCarcasses, String? date, String? clearanceCode, String? productKey, String? role, String? registerCode, String? province, String? quota, String? saleType, String? productionDate, String? distributionType)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _StewardFreeSaleBarRequest() when $default != null: -return $default(_that.buyerKey,_that.buyerMobile,_that.buyerName,_that.city,_that.key,_that.numberOfCarcasses,_that.weightOfCarcasses,_that.date,_that.clearanceCode,_that.productKey,_that.role,_that.registerCode,_that.province,_that.quota,_that.saleType,_that.productionDate);case _: +return $default(_that.buyerKey,_that.buyerMobile,_that.buyerName,_that.city,_that.key,_that.numberOfCarcasses,_that.weightOfCarcasses,_that.date,_that.clearanceCode,_that.productKey,_that.role,_that.registerCode,_that.province,_that.quota,_that.saleType,_that.productionDate,_that.distributionType);case _: return orElse(); } @@ -189,10 +190,10 @@ return $default(_that.buyerKey,_that.buyerMobile,_that.buyerName,_that.city,_tha /// } /// ``` -@optionalTypeArgs TResult when(TResult Function( String? buyerKey, String? buyerMobile, String? buyerName, String? city, String? key, int? numberOfCarcasses, int? weightOfCarcasses, String? date, String? clearanceCode, String? productKey, String? role, String? registerCode, String? province, String? quota, String? saleType, String? productionDate) $default,) {final _that = this; +@optionalTypeArgs TResult when(TResult Function( String? buyerKey, String? buyerMobile, String? buyerName, String? city, String? key, int? numberOfCarcasses, int? weightOfCarcasses, String? date, String? clearanceCode, String? productKey, String? role, String? registerCode, String? province, String? quota, String? saleType, String? productionDate, String? distributionType) $default,) {final _that = this; switch (_that) { case _StewardFreeSaleBarRequest(): -return $default(_that.buyerKey,_that.buyerMobile,_that.buyerName,_that.city,_that.key,_that.numberOfCarcasses,_that.weightOfCarcasses,_that.date,_that.clearanceCode,_that.productKey,_that.role,_that.registerCode,_that.province,_that.quota,_that.saleType,_that.productionDate);case _: +return $default(_that.buyerKey,_that.buyerMobile,_that.buyerName,_that.city,_that.key,_that.numberOfCarcasses,_that.weightOfCarcasses,_that.date,_that.clearanceCode,_that.productKey,_that.role,_that.registerCode,_that.province,_that.quota,_that.saleType,_that.productionDate,_that.distributionType);case _: throw StateError('Unexpected subclass'); } @@ -209,10 +210,10 @@ return $default(_that.buyerKey,_that.buyerMobile,_that.buyerName,_that.city,_tha /// } /// ``` -@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? buyerKey, String? buyerMobile, String? buyerName, String? city, String? key, int? numberOfCarcasses, int? weightOfCarcasses, String? date, String? clearanceCode, String? productKey, String? role, String? registerCode, String? province, String? quota, String? saleType, String? productionDate)? $default,) {final _that = this; +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? buyerKey, String? buyerMobile, String? buyerName, String? city, String? key, int? numberOfCarcasses, int? weightOfCarcasses, String? date, String? clearanceCode, String? productKey, String? role, String? registerCode, String? province, String? quota, String? saleType, String? productionDate, String? distributionType)? $default,) {final _that = this; switch (_that) { case _StewardFreeSaleBarRequest() when $default != null: -return $default(_that.buyerKey,_that.buyerMobile,_that.buyerName,_that.city,_that.key,_that.numberOfCarcasses,_that.weightOfCarcasses,_that.date,_that.clearanceCode,_that.productKey,_that.role,_that.registerCode,_that.province,_that.quota,_that.saleType,_that.productionDate);case _: +return $default(_that.buyerKey,_that.buyerMobile,_that.buyerName,_that.city,_that.key,_that.numberOfCarcasses,_that.weightOfCarcasses,_that.date,_that.clearanceCode,_that.productKey,_that.role,_that.registerCode,_that.province,_that.quota,_that.saleType,_that.productionDate,_that.distributionType);case _: return null; } @@ -224,7 +225,7 @@ return $default(_that.buyerKey,_that.buyerMobile,_that.buyerName,_that.city,_tha @JsonSerializable() class _StewardFreeSaleBarRequest implements StewardFreeSaleBarRequest { - const _StewardFreeSaleBarRequest({this.buyerKey, this.buyerMobile, this.buyerName, this.city, this.key, this.numberOfCarcasses, this.weightOfCarcasses, this.date, this.clearanceCode, this.productKey, this.role, this.registerCode, this.province, this.quota, this.saleType, this.productionDate}); + const _StewardFreeSaleBarRequest({this.buyerKey, this.buyerMobile, this.buyerName, this.city, this.key, this.numberOfCarcasses, this.weightOfCarcasses, this.date, this.clearanceCode, this.productKey, this.role, this.registerCode, this.province, this.quota, this.saleType, this.productionDate, this.distributionType}); factory _StewardFreeSaleBarRequest.fromJson(Map json) => _$StewardFreeSaleBarRequestFromJson(json); @override final String? buyerKey; @@ -243,6 +244,7 @@ class _StewardFreeSaleBarRequest implements StewardFreeSaleBarRequest { @override final String? quota; @override final String? saleType; @override final String? productionDate; +@override final String? distributionType; /// Create a copy of StewardFreeSaleBarRequest /// with the given fields replaced by the non-null parameter values. @@ -257,16 +259,16 @@ Map toJson() { @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is _StewardFreeSaleBarRequest&&(identical(other.buyerKey, buyerKey) || other.buyerKey == buyerKey)&&(identical(other.buyerMobile, buyerMobile) || other.buyerMobile == buyerMobile)&&(identical(other.buyerName, buyerName) || other.buyerName == buyerName)&&(identical(other.city, city) || other.city == city)&&(identical(other.key, key) || other.key == key)&&(identical(other.numberOfCarcasses, numberOfCarcasses) || other.numberOfCarcasses == numberOfCarcasses)&&(identical(other.weightOfCarcasses, weightOfCarcasses) || other.weightOfCarcasses == weightOfCarcasses)&&(identical(other.date, date) || other.date == date)&&(identical(other.clearanceCode, clearanceCode) || other.clearanceCode == clearanceCode)&&(identical(other.productKey, productKey) || other.productKey == productKey)&&(identical(other.role, role) || other.role == role)&&(identical(other.registerCode, registerCode) || other.registerCode == registerCode)&&(identical(other.province, province) || other.province == province)&&(identical(other.quota, quota) || other.quota == quota)&&(identical(other.saleType, saleType) || other.saleType == saleType)&&(identical(other.productionDate, productionDate) || other.productionDate == productionDate)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _StewardFreeSaleBarRequest&&(identical(other.buyerKey, buyerKey) || other.buyerKey == buyerKey)&&(identical(other.buyerMobile, buyerMobile) || other.buyerMobile == buyerMobile)&&(identical(other.buyerName, buyerName) || other.buyerName == buyerName)&&(identical(other.city, city) || other.city == city)&&(identical(other.key, key) || other.key == key)&&(identical(other.numberOfCarcasses, numberOfCarcasses) || other.numberOfCarcasses == numberOfCarcasses)&&(identical(other.weightOfCarcasses, weightOfCarcasses) || other.weightOfCarcasses == weightOfCarcasses)&&(identical(other.date, date) || other.date == date)&&(identical(other.clearanceCode, clearanceCode) || other.clearanceCode == clearanceCode)&&(identical(other.productKey, productKey) || other.productKey == productKey)&&(identical(other.role, role) || other.role == role)&&(identical(other.registerCode, registerCode) || other.registerCode == registerCode)&&(identical(other.province, province) || other.province == province)&&(identical(other.quota, quota) || other.quota == quota)&&(identical(other.saleType, saleType) || other.saleType == saleType)&&(identical(other.productionDate, productionDate) || other.productionDate == productionDate)&&(identical(other.distributionType, distributionType) || other.distributionType == distributionType)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,buyerKey,buyerMobile,buyerName,city,key,numberOfCarcasses,weightOfCarcasses,date,clearanceCode,productKey,role,registerCode,province,quota,saleType,productionDate); +int get hashCode => Object.hash(runtimeType,buyerKey,buyerMobile,buyerName,city,key,numberOfCarcasses,weightOfCarcasses,date,clearanceCode,productKey,role,registerCode,province,quota,saleType,productionDate,distributionType); @override String toString() { - return 'StewardFreeSaleBarRequest(buyerKey: $buyerKey, buyerMobile: $buyerMobile, buyerName: $buyerName, city: $city, key: $key, numberOfCarcasses: $numberOfCarcasses, weightOfCarcasses: $weightOfCarcasses, date: $date, clearanceCode: $clearanceCode, productKey: $productKey, role: $role, registerCode: $registerCode, province: $province, quota: $quota, saleType: $saleType, productionDate: $productionDate)'; + return 'StewardFreeSaleBarRequest(buyerKey: $buyerKey, buyerMobile: $buyerMobile, buyerName: $buyerName, city: $city, key: $key, numberOfCarcasses: $numberOfCarcasses, weightOfCarcasses: $weightOfCarcasses, date: $date, clearanceCode: $clearanceCode, productKey: $productKey, role: $role, registerCode: $registerCode, province: $province, quota: $quota, saleType: $saleType, productionDate: $productionDate, distributionType: $distributionType)'; } @@ -277,7 +279,7 @@ abstract mixin class _$StewardFreeSaleBarRequestCopyWith<$Res> implements $Stewa factory _$StewardFreeSaleBarRequestCopyWith(_StewardFreeSaleBarRequest value, $Res Function(_StewardFreeSaleBarRequest) _then) = __$StewardFreeSaleBarRequestCopyWithImpl; @override @useResult $Res call({ - String? buyerKey, String? buyerMobile, String? buyerName, String? city, String? key, int? numberOfCarcasses, int? weightOfCarcasses, String? date, String? clearanceCode, String? productKey, String? role, String? registerCode, String? province, String? quota, String? saleType, String? productionDate + String? buyerKey, String? buyerMobile, String? buyerName, String? city, String? key, int? numberOfCarcasses, int? weightOfCarcasses, String? date, String? clearanceCode, String? productKey, String? role, String? registerCode, String? province, String? quota, String? saleType, String? productionDate, String? distributionType }); @@ -294,7 +296,7 @@ class __$StewardFreeSaleBarRequestCopyWithImpl<$Res> /// Create a copy of StewardFreeSaleBarRequest /// with the given fields replaced by the non-null parameter values. -@override @pragma('vm:prefer-inline') $Res call({Object? buyerKey = freezed,Object? buyerMobile = freezed,Object? buyerName = freezed,Object? city = freezed,Object? key = freezed,Object? numberOfCarcasses = freezed,Object? weightOfCarcasses = freezed,Object? date = freezed,Object? clearanceCode = freezed,Object? productKey = freezed,Object? role = freezed,Object? registerCode = freezed,Object? province = freezed,Object? quota = freezed,Object? saleType = freezed,Object? productionDate = freezed,}) { +@override @pragma('vm:prefer-inline') $Res call({Object? buyerKey = freezed,Object? buyerMobile = freezed,Object? buyerName = freezed,Object? city = freezed,Object? key = freezed,Object? numberOfCarcasses = freezed,Object? weightOfCarcasses = freezed,Object? date = freezed,Object? clearanceCode = freezed,Object? productKey = freezed,Object? role = freezed,Object? registerCode = freezed,Object? province = freezed,Object? quota = freezed,Object? saleType = freezed,Object? productionDate = freezed,Object? distributionType = freezed,}) { return _then(_StewardFreeSaleBarRequest( buyerKey: freezed == buyerKey ? _self.buyerKey : buyerKey // ignore: cast_nullable_to_non_nullable as String?,buyerMobile: freezed == buyerMobile ? _self.buyerMobile : buyerMobile // ignore: cast_nullable_to_non_nullable @@ -312,6 +314,7 @@ as String?,province: freezed == province ? _self.province : province // ignore: as String?,quota: freezed == quota ? _self.quota : quota // ignore: cast_nullable_to_non_nullable as String?,saleType: freezed == saleType ? _self.saleType : saleType // ignore: cast_nullable_to_non_nullable as String?,productionDate: freezed == productionDate ? _self.productionDate : productionDate // ignore: cast_nullable_to_non_nullable +as String?,distributionType: freezed == distributionType ? _self.distributionType : distributionType // ignore: cast_nullable_to_non_nullable as String?, )); } diff --git a/packages/chicken/lib/data/models/request/steward_free_sale_bar/steward_free_sale_bar_request.g.dart b/packages/chicken/lib/data/models/request/steward_free_sale_bar/steward_free_sale_bar_request.g.dart index 375effa..5476e31 100644 --- a/packages/chicken/lib/data/models/request/steward_free_sale_bar/steward_free_sale_bar_request.g.dart +++ b/packages/chicken/lib/data/models/request/steward_free_sale_bar/steward_free_sale_bar_request.g.dart @@ -25,6 +25,7 @@ _StewardFreeSaleBarRequest _$StewardFreeSaleBarRequestFromJson( quota: json['quota'] as String?, saleType: json['sale_type'] as String?, productionDate: json['production_date'] as String?, + distributionType: json['distribution_type'] as String?, ); Map _$StewardFreeSaleBarRequestToJson( @@ -46,4 +47,5 @@ Map _$StewardFreeSaleBarRequestToJson( 'quota': instance.quota, 'sale_type': instance.saleType, 'production_date': instance.productionDate, + 'distribution_type': instance.distributionType, }; diff --git a/packages/chicken/lib/data/models/request/submit_steward_allocation/submit_steward_allocation.dart b/packages/chicken/lib/data/models/request/submit_steward_allocation/submit_steward_allocation.dart index fdd9ddc..b77de72 100644 --- a/packages/chicken/lib/data/models/request/submit_steward_allocation/submit_steward_allocation.dart +++ b/packages/chicken/lib/data/models/request/submit_steward_allocation/submit_steward_allocation.dart @@ -21,6 +21,7 @@ abstract class SubmitStewardAllocation with _$SubmitStewardAllocation { bool? approvedPriceStatus, String? productionDate, String? date, + String? distributionType, }) = _SubmitStewardAllocation; factory SubmitStewardAllocation.fromJson(Map json) => diff --git a/packages/chicken/lib/data/models/request/submit_steward_allocation/submit_steward_allocation.freezed.dart b/packages/chicken/lib/data/models/request/submit_steward_allocation/submit_steward_allocation.freezed.dart index 38e08c4..c770887 100644 --- a/packages/chicken/lib/data/models/request/submit_steward_allocation/submit_steward_allocation.freezed.dart +++ b/packages/chicken/lib/data/models/request/submit_steward_allocation/submit_steward_allocation.freezed.dart @@ -15,7 +15,7 @@ T _$identity(T value) => value; /// @nodoc mixin _$SubmitStewardAllocation { - String? get sellerType; String? get buyerType; String? get guildKey; String? get productKey; String? get type; String? get allocationType; int? get numberOfCarcasses; int? get weightOfCarcasses; String? get sellType; int? get amount; String? get quota; int? get totalAmount; bool? get approvedPriceStatus; String? get productionDate; String? get date; + String? get sellerType; String? get buyerType; String? get guildKey; String? get productKey; String? get type; String? get allocationType; int? get numberOfCarcasses; int? get weightOfCarcasses; String? get sellType; int? get amount; String? get quota; int? get totalAmount; bool? get approvedPriceStatus; String? get productionDate; String? get date; String? get distributionType; /// Create a copy of SubmitStewardAllocation /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @@ -28,16 +28,16 @@ $SubmitStewardAllocationCopyWith get copyWith => _$Subm @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is SubmitStewardAllocation&&(identical(other.sellerType, sellerType) || other.sellerType == sellerType)&&(identical(other.buyerType, buyerType) || other.buyerType == buyerType)&&(identical(other.guildKey, guildKey) || other.guildKey == guildKey)&&(identical(other.productKey, productKey) || other.productKey == productKey)&&(identical(other.type, type) || other.type == type)&&(identical(other.allocationType, allocationType) || other.allocationType == allocationType)&&(identical(other.numberOfCarcasses, numberOfCarcasses) || other.numberOfCarcasses == numberOfCarcasses)&&(identical(other.weightOfCarcasses, weightOfCarcasses) || other.weightOfCarcasses == weightOfCarcasses)&&(identical(other.sellType, sellType) || other.sellType == sellType)&&(identical(other.amount, amount) || other.amount == amount)&&(identical(other.quota, quota) || other.quota == quota)&&(identical(other.totalAmount, totalAmount) || other.totalAmount == totalAmount)&&(identical(other.approvedPriceStatus, approvedPriceStatus) || other.approvedPriceStatus == approvedPriceStatus)&&(identical(other.productionDate, productionDate) || other.productionDate == productionDate)&&(identical(other.date, date) || other.date == date)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is SubmitStewardAllocation&&(identical(other.sellerType, sellerType) || other.sellerType == sellerType)&&(identical(other.buyerType, buyerType) || other.buyerType == buyerType)&&(identical(other.guildKey, guildKey) || other.guildKey == guildKey)&&(identical(other.productKey, productKey) || other.productKey == productKey)&&(identical(other.type, type) || other.type == type)&&(identical(other.allocationType, allocationType) || other.allocationType == allocationType)&&(identical(other.numberOfCarcasses, numberOfCarcasses) || other.numberOfCarcasses == numberOfCarcasses)&&(identical(other.weightOfCarcasses, weightOfCarcasses) || other.weightOfCarcasses == weightOfCarcasses)&&(identical(other.sellType, sellType) || other.sellType == sellType)&&(identical(other.amount, amount) || other.amount == amount)&&(identical(other.quota, quota) || other.quota == quota)&&(identical(other.totalAmount, totalAmount) || other.totalAmount == totalAmount)&&(identical(other.approvedPriceStatus, approvedPriceStatus) || other.approvedPriceStatus == approvedPriceStatus)&&(identical(other.productionDate, productionDate) || other.productionDate == productionDate)&&(identical(other.date, date) || other.date == date)&&(identical(other.distributionType, distributionType) || other.distributionType == distributionType)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,sellerType,buyerType,guildKey,productKey,type,allocationType,numberOfCarcasses,weightOfCarcasses,sellType,amount,quota,totalAmount,approvedPriceStatus,productionDate,date); +int get hashCode => Object.hash(runtimeType,sellerType,buyerType,guildKey,productKey,type,allocationType,numberOfCarcasses,weightOfCarcasses,sellType,amount,quota,totalAmount,approvedPriceStatus,productionDate,date,distributionType); @override String toString() { - return 'SubmitStewardAllocation(sellerType: $sellerType, buyerType: $buyerType, guildKey: $guildKey, productKey: $productKey, type: $type, allocationType: $allocationType, numberOfCarcasses: $numberOfCarcasses, weightOfCarcasses: $weightOfCarcasses, sellType: $sellType, amount: $amount, quota: $quota, totalAmount: $totalAmount, approvedPriceStatus: $approvedPriceStatus, productionDate: $productionDate, date: $date)'; + return 'SubmitStewardAllocation(sellerType: $sellerType, buyerType: $buyerType, guildKey: $guildKey, productKey: $productKey, type: $type, allocationType: $allocationType, numberOfCarcasses: $numberOfCarcasses, weightOfCarcasses: $weightOfCarcasses, sellType: $sellType, amount: $amount, quota: $quota, totalAmount: $totalAmount, approvedPriceStatus: $approvedPriceStatus, productionDate: $productionDate, date: $date, distributionType: $distributionType)'; } @@ -48,7 +48,7 @@ abstract mixin class $SubmitStewardAllocationCopyWith<$Res> { factory $SubmitStewardAllocationCopyWith(SubmitStewardAllocation value, $Res Function(SubmitStewardAllocation) _then) = _$SubmitStewardAllocationCopyWithImpl; @useResult $Res call({ - String? sellerType, String? buyerType, String? guildKey, String? productKey, String? type, String? allocationType, int? numberOfCarcasses, int? weightOfCarcasses, String? sellType, int? amount, String? quota, int? totalAmount, bool? approvedPriceStatus, String? productionDate, String? date + String? sellerType, String? buyerType, String? guildKey, String? productKey, String? type, String? allocationType, int? numberOfCarcasses, int? weightOfCarcasses, String? sellType, int? amount, String? quota, int? totalAmount, bool? approvedPriceStatus, String? productionDate, String? date, String? distributionType }); @@ -65,7 +65,7 @@ class _$SubmitStewardAllocationCopyWithImpl<$Res> /// Create a copy of SubmitStewardAllocation /// with the given fields replaced by the non-null parameter values. -@pragma('vm:prefer-inline') @override $Res call({Object? sellerType = freezed,Object? buyerType = freezed,Object? guildKey = freezed,Object? productKey = freezed,Object? type = freezed,Object? allocationType = freezed,Object? numberOfCarcasses = freezed,Object? weightOfCarcasses = freezed,Object? sellType = freezed,Object? amount = freezed,Object? quota = freezed,Object? totalAmount = freezed,Object? approvedPriceStatus = freezed,Object? productionDate = freezed,Object? date = freezed,}) { +@pragma('vm:prefer-inline') @override $Res call({Object? sellerType = freezed,Object? buyerType = freezed,Object? guildKey = freezed,Object? productKey = freezed,Object? type = freezed,Object? allocationType = freezed,Object? numberOfCarcasses = freezed,Object? weightOfCarcasses = freezed,Object? sellType = freezed,Object? amount = freezed,Object? quota = freezed,Object? totalAmount = freezed,Object? approvedPriceStatus = freezed,Object? productionDate = freezed,Object? date = freezed,Object? distributionType = freezed,}) { return _then(_self.copyWith( sellerType: freezed == sellerType ? _self.sellerType : sellerType // ignore: cast_nullable_to_non_nullable as String?,buyerType: freezed == buyerType ? _self.buyerType : buyerType // ignore: cast_nullable_to_non_nullable @@ -82,6 +82,7 @@ as String?,totalAmount: freezed == totalAmount ? _self.totalAmount : totalAmount as int?,approvedPriceStatus: freezed == approvedPriceStatus ? _self.approvedPriceStatus : approvedPriceStatus // ignore: cast_nullable_to_non_nullable as bool?,productionDate: freezed == productionDate ? _self.productionDate : productionDate // ignore: cast_nullable_to_non_nullable as String?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?,distributionType: freezed == distributionType ? _self.distributionType : distributionType // ignore: cast_nullable_to_non_nullable as String?, )); } @@ -167,10 +168,10 @@ return $default(_that);case _: /// } /// ``` -@optionalTypeArgs TResult maybeWhen(TResult Function( String? sellerType, String? buyerType, String? guildKey, String? productKey, String? type, String? allocationType, int? numberOfCarcasses, int? weightOfCarcasses, String? sellType, int? amount, String? quota, int? totalAmount, bool? approvedPriceStatus, String? productionDate, String? date)? $default,{required TResult orElse(),}) {final _that = this; +@optionalTypeArgs TResult maybeWhen(TResult Function( String? sellerType, String? buyerType, String? guildKey, String? productKey, String? type, String? allocationType, int? numberOfCarcasses, int? weightOfCarcasses, String? sellType, int? amount, String? quota, int? totalAmount, bool? approvedPriceStatus, String? productionDate, String? date, String? distributionType)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _SubmitStewardAllocation() when $default != null: -return $default(_that.sellerType,_that.buyerType,_that.guildKey,_that.productKey,_that.type,_that.allocationType,_that.numberOfCarcasses,_that.weightOfCarcasses,_that.sellType,_that.amount,_that.quota,_that.totalAmount,_that.approvedPriceStatus,_that.productionDate,_that.date);case _: +return $default(_that.sellerType,_that.buyerType,_that.guildKey,_that.productKey,_that.type,_that.allocationType,_that.numberOfCarcasses,_that.weightOfCarcasses,_that.sellType,_that.amount,_that.quota,_that.totalAmount,_that.approvedPriceStatus,_that.productionDate,_that.date,_that.distributionType);case _: return orElse(); } @@ -188,10 +189,10 @@ return $default(_that.sellerType,_that.buyerType,_that.guildKey,_that.productKey /// } /// ``` -@optionalTypeArgs TResult when(TResult Function( String? sellerType, String? buyerType, String? guildKey, String? productKey, String? type, String? allocationType, int? numberOfCarcasses, int? weightOfCarcasses, String? sellType, int? amount, String? quota, int? totalAmount, bool? approvedPriceStatus, String? productionDate, String? date) $default,) {final _that = this; +@optionalTypeArgs TResult when(TResult Function( String? sellerType, String? buyerType, String? guildKey, String? productKey, String? type, String? allocationType, int? numberOfCarcasses, int? weightOfCarcasses, String? sellType, int? amount, String? quota, int? totalAmount, bool? approvedPriceStatus, String? productionDate, String? date, String? distributionType) $default,) {final _that = this; switch (_that) { case _SubmitStewardAllocation(): -return $default(_that.sellerType,_that.buyerType,_that.guildKey,_that.productKey,_that.type,_that.allocationType,_that.numberOfCarcasses,_that.weightOfCarcasses,_that.sellType,_that.amount,_that.quota,_that.totalAmount,_that.approvedPriceStatus,_that.productionDate,_that.date);case _: +return $default(_that.sellerType,_that.buyerType,_that.guildKey,_that.productKey,_that.type,_that.allocationType,_that.numberOfCarcasses,_that.weightOfCarcasses,_that.sellType,_that.amount,_that.quota,_that.totalAmount,_that.approvedPriceStatus,_that.productionDate,_that.date,_that.distributionType);case _: throw StateError('Unexpected subclass'); } @@ -208,10 +209,10 @@ return $default(_that.sellerType,_that.buyerType,_that.guildKey,_that.productKey /// } /// ``` -@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? sellerType, String? buyerType, String? guildKey, String? productKey, String? type, String? allocationType, int? numberOfCarcasses, int? weightOfCarcasses, String? sellType, int? amount, String? quota, int? totalAmount, bool? approvedPriceStatus, String? productionDate, String? date)? $default,) {final _that = this; +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? sellerType, String? buyerType, String? guildKey, String? productKey, String? type, String? allocationType, int? numberOfCarcasses, int? weightOfCarcasses, String? sellType, int? amount, String? quota, int? totalAmount, bool? approvedPriceStatus, String? productionDate, String? date, String? distributionType)? $default,) {final _that = this; switch (_that) { case _SubmitStewardAllocation() when $default != null: -return $default(_that.sellerType,_that.buyerType,_that.guildKey,_that.productKey,_that.type,_that.allocationType,_that.numberOfCarcasses,_that.weightOfCarcasses,_that.sellType,_that.amount,_that.quota,_that.totalAmount,_that.approvedPriceStatus,_that.productionDate,_that.date);case _: +return $default(_that.sellerType,_that.buyerType,_that.guildKey,_that.productKey,_that.type,_that.allocationType,_that.numberOfCarcasses,_that.weightOfCarcasses,_that.sellType,_that.amount,_that.quota,_that.totalAmount,_that.approvedPriceStatus,_that.productionDate,_that.date,_that.distributionType);case _: return null; } @@ -223,7 +224,7 @@ return $default(_that.sellerType,_that.buyerType,_that.guildKey,_that.productKey @JsonSerializable() class _SubmitStewardAllocation implements SubmitStewardAllocation { - const _SubmitStewardAllocation({this.sellerType, this.buyerType, this.guildKey, this.productKey, this.type, this.allocationType, this.numberOfCarcasses, this.weightOfCarcasses, this.sellType, this.amount, this.quota, this.totalAmount, this.approvedPriceStatus, this.productionDate, this.date}); + const _SubmitStewardAllocation({this.sellerType, this.buyerType, this.guildKey, this.productKey, this.type, this.allocationType, this.numberOfCarcasses, this.weightOfCarcasses, this.sellType, this.amount, this.quota, this.totalAmount, this.approvedPriceStatus, this.productionDate, this.date, this.distributionType}); factory _SubmitStewardAllocation.fromJson(Map json) => _$SubmitStewardAllocationFromJson(json); @override final String? sellerType; @@ -241,6 +242,7 @@ class _SubmitStewardAllocation implements SubmitStewardAllocation { @override final bool? approvedPriceStatus; @override final String? productionDate; @override final String? date; +@override final String? distributionType; /// Create a copy of SubmitStewardAllocation /// with the given fields replaced by the non-null parameter values. @@ -255,16 +257,16 @@ Map toJson() { @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is _SubmitStewardAllocation&&(identical(other.sellerType, sellerType) || other.sellerType == sellerType)&&(identical(other.buyerType, buyerType) || other.buyerType == buyerType)&&(identical(other.guildKey, guildKey) || other.guildKey == guildKey)&&(identical(other.productKey, productKey) || other.productKey == productKey)&&(identical(other.type, type) || other.type == type)&&(identical(other.allocationType, allocationType) || other.allocationType == allocationType)&&(identical(other.numberOfCarcasses, numberOfCarcasses) || other.numberOfCarcasses == numberOfCarcasses)&&(identical(other.weightOfCarcasses, weightOfCarcasses) || other.weightOfCarcasses == weightOfCarcasses)&&(identical(other.sellType, sellType) || other.sellType == sellType)&&(identical(other.amount, amount) || other.amount == amount)&&(identical(other.quota, quota) || other.quota == quota)&&(identical(other.totalAmount, totalAmount) || other.totalAmount == totalAmount)&&(identical(other.approvedPriceStatus, approvedPriceStatus) || other.approvedPriceStatus == approvedPriceStatus)&&(identical(other.productionDate, productionDate) || other.productionDate == productionDate)&&(identical(other.date, date) || other.date == date)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _SubmitStewardAllocation&&(identical(other.sellerType, sellerType) || other.sellerType == sellerType)&&(identical(other.buyerType, buyerType) || other.buyerType == buyerType)&&(identical(other.guildKey, guildKey) || other.guildKey == guildKey)&&(identical(other.productKey, productKey) || other.productKey == productKey)&&(identical(other.type, type) || other.type == type)&&(identical(other.allocationType, allocationType) || other.allocationType == allocationType)&&(identical(other.numberOfCarcasses, numberOfCarcasses) || other.numberOfCarcasses == numberOfCarcasses)&&(identical(other.weightOfCarcasses, weightOfCarcasses) || other.weightOfCarcasses == weightOfCarcasses)&&(identical(other.sellType, sellType) || other.sellType == sellType)&&(identical(other.amount, amount) || other.amount == amount)&&(identical(other.quota, quota) || other.quota == quota)&&(identical(other.totalAmount, totalAmount) || other.totalAmount == totalAmount)&&(identical(other.approvedPriceStatus, approvedPriceStatus) || other.approvedPriceStatus == approvedPriceStatus)&&(identical(other.productionDate, productionDate) || other.productionDate == productionDate)&&(identical(other.date, date) || other.date == date)&&(identical(other.distributionType, distributionType) || other.distributionType == distributionType)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,sellerType,buyerType,guildKey,productKey,type,allocationType,numberOfCarcasses,weightOfCarcasses,sellType,amount,quota,totalAmount,approvedPriceStatus,productionDate,date); +int get hashCode => Object.hash(runtimeType,sellerType,buyerType,guildKey,productKey,type,allocationType,numberOfCarcasses,weightOfCarcasses,sellType,amount,quota,totalAmount,approvedPriceStatus,productionDate,date,distributionType); @override String toString() { - return 'SubmitStewardAllocation(sellerType: $sellerType, buyerType: $buyerType, guildKey: $guildKey, productKey: $productKey, type: $type, allocationType: $allocationType, numberOfCarcasses: $numberOfCarcasses, weightOfCarcasses: $weightOfCarcasses, sellType: $sellType, amount: $amount, quota: $quota, totalAmount: $totalAmount, approvedPriceStatus: $approvedPriceStatus, productionDate: $productionDate, date: $date)'; + return 'SubmitStewardAllocation(sellerType: $sellerType, buyerType: $buyerType, guildKey: $guildKey, productKey: $productKey, type: $type, allocationType: $allocationType, numberOfCarcasses: $numberOfCarcasses, weightOfCarcasses: $weightOfCarcasses, sellType: $sellType, amount: $amount, quota: $quota, totalAmount: $totalAmount, approvedPriceStatus: $approvedPriceStatus, productionDate: $productionDate, date: $date, distributionType: $distributionType)'; } @@ -275,7 +277,7 @@ abstract mixin class _$SubmitStewardAllocationCopyWith<$Res> implements $SubmitS factory _$SubmitStewardAllocationCopyWith(_SubmitStewardAllocation value, $Res Function(_SubmitStewardAllocation) _then) = __$SubmitStewardAllocationCopyWithImpl; @override @useResult $Res call({ - String? sellerType, String? buyerType, String? guildKey, String? productKey, String? type, String? allocationType, int? numberOfCarcasses, int? weightOfCarcasses, String? sellType, int? amount, String? quota, int? totalAmount, bool? approvedPriceStatus, String? productionDate, String? date + String? sellerType, String? buyerType, String? guildKey, String? productKey, String? type, String? allocationType, int? numberOfCarcasses, int? weightOfCarcasses, String? sellType, int? amount, String? quota, int? totalAmount, bool? approvedPriceStatus, String? productionDate, String? date, String? distributionType }); @@ -292,7 +294,7 @@ class __$SubmitStewardAllocationCopyWithImpl<$Res> /// Create a copy of SubmitStewardAllocation /// with the given fields replaced by the non-null parameter values. -@override @pragma('vm:prefer-inline') $Res call({Object? sellerType = freezed,Object? buyerType = freezed,Object? guildKey = freezed,Object? productKey = freezed,Object? type = freezed,Object? allocationType = freezed,Object? numberOfCarcasses = freezed,Object? weightOfCarcasses = freezed,Object? sellType = freezed,Object? amount = freezed,Object? quota = freezed,Object? totalAmount = freezed,Object? approvedPriceStatus = freezed,Object? productionDate = freezed,Object? date = freezed,}) { +@override @pragma('vm:prefer-inline') $Res call({Object? sellerType = freezed,Object? buyerType = freezed,Object? guildKey = freezed,Object? productKey = freezed,Object? type = freezed,Object? allocationType = freezed,Object? numberOfCarcasses = freezed,Object? weightOfCarcasses = freezed,Object? sellType = freezed,Object? amount = freezed,Object? quota = freezed,Object? totalAmount = freezed,Object? approvedPriceStatus = freezed,Object? productionDate = freezed,Object? date = freezed,Object? distributionType = freezed,}) { return _then(_SubmitStewardAllocation( sellerType: freezed == sellerType ? _self.sellerType : sellerType // ignore: cast_nullable_to_non_nullable as String?,buyerType: freezed == buyerType ? _self.buyerType : buyerType // ignore: cast_nullable_to_non_nullable @@ -309,6 +311,7 @@ as String?,totalAmount: freezed == totalAmount ? _self.totalAmount : totalAmount as int?,approvedPriceStatus: freezed == approvedPriceStatus ? _self.approvedPriceStatus : approvedPriceStatus // ignore: cast_nullable_to_non_nullable as bool?,productionDate: freezed == productionDate ? _self.productionDate : productionDate // ignore: cast_nullable_to_non_nullable as String?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable +as String?,distributionType: freezed == distributionType ? _self.distributionType : distributionType // ignore: cast_nullable_to_non_nullable as String?, )); } diff --git a/packages/chicken/lib/data/models/request/submit_steward_allocation/submit_steward_allocation.g.dart b/packages/chicken/lib/data/models/request/submit_steward_allocation/submit_steward_allocation.g.dart index 26f7f0f..59f972c 100644 --- a/packages/chicken/lib/data/models/request/submit_steward_allocation/submit_steward_allocation.g.dart +++ b/packages/chicken/lib/data/models/request/submit_steward_allocation/submit_steward_allocation.g.dart @@ -24,6 +24,7 @@ _SubmitStewardAllocation _$SubmitStewardAllocationFromJson( approvedPriceStatus: json['approved_price_status'] as bool?, productionDate: json['production_date'] as String?, date: json['date'] as String?, + distributionType: json['distribution_type'] as String?, ); Map _$SubmitStewardAllocationToJson( @@ -44,4 +45,5 @@ Map _$SubmitStewardAllocationToJson( 'approved_price_status': instance.approvedPriceStatus, 'production_date': instance.productionDate, 'date': instance.date, + 'distribution_type': instance.distributionType, }; diff --git a/packages/chicken/lib/data/models/response/segmentation_model/segmentation_model.dart b/packages/chicken/lib/data/models/response/segmentation_model/segmentation_model.dart index 0956fab..b4653ec 100644 --- a/packages/chicken/lib/data/models/response/segmentation_model/segmentation_model.dart +++ b/packages/chicken/lib/data/models/response/segmentation_model/segmentation_model.dart @@ -18,6 +18,7 @@ abstract class SegmentationModel with _$SegmentationModel { DateTime? date, ToGuild? toGuild, String? productionDate, + String? distributionType, }) = _SegmentationModel; factory SegmentationModel.fromJson(Map json) => diff --git a/packages/chicken/lib/data/models/response/segmentation_model/segmentation_model.freezed.dart b/packages/chicken/lib/data/models/response/segmentation_model/segmentation_model.freezed.dart index a358ac4..e0c1c8d 100644 --- a/packages/chicken/lib/data/models/response/segmentation_model/segmentation_model.freezed.dart +++ b/packages/chicken/lib/data/models/response/segmentation_model/segmentation_model.freezed.dart @@ -15,7 +15,7 @@ T _$identity(T value) => value; /// @nodoc mixin _$SegmentationModel { - String? get key; String? get productKey; String? get guildKey; String? get result; String? get quota; String? get saleType; int? get weight; Buyer? get buyer; DateTime? get date; ToGuild? get toGuild; String? get productionDate; + String? get key; String? get productKey; String? get guildKey; String? get result; String? get quota; String? get saleType; int? get weight; Buyer? get buyer; DateTime? get date; ToGuild? get toGuild; String? get productionDate; String? get distributionType; /// Create a copy of SegmentationModel /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @@ -28,16 +28,16 @@ $SegmentationModelCopyWith get copyWith => _$SegmentationMode @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is SegmentationModel&&(identical(other.key, key) || other.key == key)&&(identical(other.productKey, productKey) || other.productKey == productKey)&&(identical(other.guildKey, guildKey) || other.guildKey == guildKey)&&(identical(other.result, result) || other.result == result)&&(identical(other.quota, quota) || other.quota == quota)&&(identical(other.saleType, saleType) || other.saleType == saleType)&&(identical(other.weight, weight) || other.weight == weight)&&(identical(other.buyer, buyer) || other.buyer == buyer)&&(identical(other.date, date) || other.date == date)&&(identical(other.toGuild, toGuild) || other.toGuild == toGuild)&&(identical(other.productionDate, productionDate) || other.productionDate == productionDate)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is SegmentationModel&&(identical(other.key, key) || other.key == key)&&(identical(other.productKey, productKey) || other.productKey == productKey)&&(identical(other.guildKey, guildKey) || other.guildKey == guildKey)&&(identical(other.result, result) || other.result == result)&&(identical(other.quota, quota) || other.quota == quota)&&(identical(other.saleType, saleType) || other.saleType == saleType)&&(identical(other.weight, weight) || other.weight == weight)&&(identical(other.buyer, buyer) || other.buyer == buyer)&&(identical(other.date, date) || other.date == date)&&(identical(other.toGuild, toGuild) || other.toGuild == toGuild)&&(identical(other.productionDate, productionDate) || other.productionDate == productionDate)&&(identical(other.distributionType, distributionType) || other.distributionType == distributionType)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,key,productKey,guildKey,result,quota,saleType,weight,buyer,date,toGuild,productionDate); +int get hashCode => Object.hash(runtimeType,key,productKey,guildKey,result,quota,saleType,weight,buyer,date,toGuild,productionDate,distributionType); @override String toString() { - return 'SegmentationModel(key: $key, productKey: $productKey, guildKey: $guildKey, result: $result, quota: $quota, saleType: $saleType, weight: $weight, buyer: $buyer, date: $date, toGuild: $toGuild, productionDate: $productionDate)'; + return 'SegmentationModel(key: $key, productKey: $productKey, guildKey: $guildKey, result: $result, quota: $quota, saleType: $saleType, weight: $weight, buyer: $buyer, date: $date, toGuild: $toGuild, productionDate: $productionDate, distributionType: $distributionType)'; } @@ -48,7 +48,7 @@ abstract mixin class $SegmentationModelCopyWith<$Res> { factory $SegmentationModelCopyWith(SegmentationModel value, $Res Function(SegmentationModel) _then) = _$SegmentationModelCopyWithImpl; @useResult $Res call({ - String? key, String? productKey, String? guildKey, String? result, String? quota, String? saleType, int? weight, Buyer? buyer, DateTime? date, ToGuild? toGuild, String? productionDate + String? key, String? productKey, String? guildKey, String? result, String? quota, String? saleType, int? weight, Buyer? buyer, DateTime? date, ToGuild? toGuild, String? productionDate, String? distributionType }); @@ -65,7 +65,7 @@ class _$SegmentationModelCopyWithImpl<$Res> /// Create a copy of SegmentationModel /// with the given fields replaced by the non-null parameter values. -@pragma('vm:prefer-inline') @override $Res call({Object? key = freezed,Object? productKey = freezed,Object? guildKey = freezed,Object? result = freezed,Object? quota = freezed,Object? saleType = freezed,Object? weight = freezed,Object? buyer = freezed,Object? date = freezed,Object? toGuild = freezed,Object? productionDate = freezed,}) { +@pragma('vm:prefer-inline') @override $Res call({Object? key = freezed,Object? productKey = freezed,Object? guildKey = freezed,Object? result = freezed,Object? quota = freezed,Object? saleType = freezed,Object? weight = freezed,Object? buyer = freezed,Object? date = freezed,Object? toGuild = freezed,Object? productionDate = freezed,Object? distributionType = freezed,}) { return _then(_self.copyWith( key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable as String?,productKey: freezed == productKey ? _self.productKey : productKey // ignore: cast_nullable_to_non_nullable @@ -78,6 +78,7 @@ as int?,buyer: freezed == buyer ? _self.buyer : buyer // ignore: cast_nullable_t as Buyer?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable as DateTime?,toGuild: freezed == toGuild ? _self.toGuild : toGuild // ignore: cast_nullable_to_non_nullable as ToGuild?,productionDate: freezed == productionDate ? _self.productionDate : productionDate // ignore: cast_nullable_to_non_nullable +as String?,distributionType: freezed == distributionType ? _self.distributionType : distributionType // ignore: cast_nullable_to_non_nullable as String?, )); } @@ -187,10 +188,10 @@ return $default(_that);case _: /// } /// ``` -@optionalTypeArgs TResult maybeWhen(TResult Function( String? key, String? productKey, String? guildKey, String? result, String? quota, String? saleType, int? weight, Buyer? buyer, DateTime? date, ToGuild? toGuild, String? productionDate)? $default,{required TResult orElse(),}) {final _that = this; +@optionalTypeArgs TResult maybeWhen(TResult Function( String? key, String? productKey, String? guildKey, String? result, String? quota, String? saleType, int? weight, Buyer? buyer, DateTime? date, ToGuild? toGuild, String? productionDate, String? distributionType)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _SegmentationModel() when $default != null: -return $default(_that.key,_that.productKey,_that.guildKey,_that.result,_that.quota,_that.saleType,_that.weight,_that.buyer,_that.date,_that.toGuild,_that.productionDate);case _: +return $default(_that.key,_that.productKey,_that.guildKey,_that.result,_that.quota,_that.saleType,_that.weight,_that.buyer,_that.date,_that.toGuild,_that.productionDate,_that.distributionType);case _: return orElse(); } @@ -208,10 +209,10 @@ return $default(_that.key,_that.productKey,_that.guildKey,_that.result,_that.quo /// } /// ``` -@optionalTypeArgs TResult when(TResult Function( String? key, String? productKey, String? guildKey, String? result, String? quota, String? saleType, int? weight, Buyer? buyer, DateTime? date, ToGuild? toGuild, String? productionDate) $default,) {final _that = this; +@optionalTypeArgs TResult when(TResult Function( String? key, String? productKey, String? guildKey, String? result, String? quota, String? saleType, int? weight, Buyer? buyer, DateTime? date, ToGuild? toGuild, String? productionDate, String? distributionType) $default,) {final _that = this; switch (_that) { case _SegmentationModel(): -return $default(_that.key,_that.productKey,_that.guildKey,_that.result,_that.quota,_that.saleType,_that.weight,_that.buyer,_that.date,_that.toGuild,_that.productionDate);case _: +return $default(_that.key,_that.productKey,_that.guildKey,_that.result,_that.quota,_that.saleType,_that.weight,_that.buyer,_that.date,_that.toGuild,_that.productionDate,_that.distributionType);case _: throw StateError('Unexpected subclass'); } @@ -228,10 +229,10 @@ return $default(_that.key,_that.productKey,_that.guildKey,_that.result,_that.quo /// } /// ``` -@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? key, String? productKey, String? guildKey, String? result, String? quota, String? saleType, int? weight, Buyer? buyer, DateTime? date, ToGuild? toGuild, String? productionDate)? $default,) {final _that = this; +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? key, String? productKey, String? guildKey, String? result, String? quota, String? saleType, int? weight, Buyer? buyer, DateTime? date, ToGuild? toGuild, String? productionDate, String? distributionType)? $default,) {final _that = this; switch (_that) { case _SegmentationModel() when $default != null: -return $default(_that.key,_that.productKey,_that.guildKey,_that.result,_that.quota,_that.saleType,_that.weight,_that.buyer,_that.date,_that.toGuild,_that.productionDate);case _: +return $default(_that.key,_that.productKey,_that.guildKey,_that.result,_that.quota,_that.saleType,_that.weight,_that.buyer,_that.date,_that.toGuild,_that.productionDate,_that.distributionType);case _: return null; } @@ -243,7 +244,7 @@ return $default(_that.key,_that.productKey,_that.guildKey,_that.result,_that.quo @JsonSerializable() class _SegmentationModel implements SegmentationModel { - const _SegmentationModel({this.key, this.productKey, this.guildKey, this.result, this.quota, this.saleType, this.weight, this.buyer, this.date, this.toGuild, this.productionDate}); + const _SegmentationModel({this.key, this.productKey, this.guildKey, this.result, this.quota, this.saleType, this.weight, this.buyer, this.date, this.toGuild, this.productionDate, this.distributionType}); factory _SegmentationModel.fromJson(Map json) => _$SegmentationModelFromJson(json); @override final String? key; @@ -257,6 +258,7 @@ class _SegmentationModel implements SegmentationModel { @override final DateTime? date; @override final ToGuild? toGuild; @override final String? productionDate; +@override final String? distributionType; /// Create a copy of SegmentationModel /// with the given fields replaced by the non-null parameter values. @@ -271,16 +273,16 @@ Map toJson() { @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is _SegmentationModel&&(identical(other.key, key) || other.key == key)&&(identical(other.productKey, productKey) || other.productKey == productKey)&&(identical(other.guildKey, guildKey) || other.guildKey == guildKey)&&(identical(other.result, result) || other.result == result)&&(identical(other.quota, quota) || other.quota == quota)&&(identical(other.saleType, saleType) || other.saleType == saleType)&&(identical(other.weight, weight) || other.weight == weight)&&(identical(other.buyer, buyer) || other.buyer == buyer)&&(identical(other.date, date) || other.date == date)&&(identical(other.toGuild, toGuild) || other.toGuild == toGuild)&&(identical(other.productionDate, productionDate) || other.productionDate == productionDate)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _SegmentationModel&&(identical(other.key, key) || other.key == key)&&(identical(other.productKey, productKey) || other.productKey == productKey)&&(identical(other.guildKey, guildKey) || other.guildKey == guildKey)&&(identical(other.result, result) || other.result == result)&&(identical(other.quota, quota) || other.quota == quota)&&(identical(other.saleType, saleType) || other.saleType == saleType)&&(identical(other.weight, weight) || other.weight == weight)&&(identical(other.buyer, buyer) || other.buyer == buyer)&&(identical(other.date, date) || other.date == date)&&(identical(other.toGuild, toGuild) || other.toGuild == toGuild)&&(identical(other.productionDate, productionDate) || other.productionDate == productionDate)&&(identical(other.distributionType, distributionType) || other.distributionType == distributionType)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hash(runtimeType,key,productKey,guildKey,result,quota,saleType,weight,buyer,date,toGuild,productionDate); +int get hashCode => Object.hash(runtimeType,key,productKey,guildKey,result,quota,saleType,weight,buyer,date,toGuild,productionDate,distributionType); @override String toString() { - return 'SegmentationModel(key: $key, productKey: $productKey, guildKey: $guildKey, result: $result, quota: $quota, saleType: $saleType, weight: $weight, buyer: $buyer, date: $date, toGuild: $toGuild, productionDate: $productionDate)'; + return 'SegmentationModel(key: $key, productKey: $productKey, guildKey: $guildKey, result: $result, quota: $quota, saleType: $saleType, weight: $weight, buyer: $buyer, date: $date, toGuild: $toGuild, productionDate: $productionDate, distributionType: $distributionType)'; } @@ -291,7 +293,7 @@ abstract mixin class _$SegmentationModelCopyWith<$Res> implements $SegmentationM factory _$SegmentationModelCopyWith(_SegmentationModel value, $Res Function(_SegmentationModel) _then) = __$SegmentationModelCopyWithImpl; @override @useResult $Res call({ - String? key, String? productKey, String? guildKey, String? result, String? quota, String? saleType, int? weight, Buyer? buyer, DateTime? date, ToGuild? toGuild, String? productionDate + String? key, String? productKey, String? guildKey, String? result, String? quota, String? saleType, int? weight, Buyer? buyer, DateTime? date, ToGuild? toGuild, String? productionDate, String? distributionType }); @@ -308,7 +310,7 @@ class __$SegmentationModelCopyWithImpl<$Res> /// Create a copy of SegmentationModel /// with the given fields replaced by the non-null parameter values. -@override @pragma('vm:prefer-inline') $Res call({Object? key = freezed,Object? productKey = freezed,Object? guildKey = freezed,Object? result = freezed,Object? quota = freezed,Object? saleType = freezed,Object? weight = freezed,Object? buyer = freezed,Object? date = freezed,Object? toGuild = freezed,Object? productionDate = freezed,}) { +@override @pragma('vm:prefer-inline') $Res call({Object? key = freezed,Object? productKey = freezed,Object? guildKey = freezed,Object? result = freezed,Object? quota = freezed,Object? saleType = freezed,Object? weight = freezed,Object? buyer = freezed,Object? date = freezed,Object? toGuild = freezed,Object? productionDate = freezed,Object? distributionType = freezed,}) { return _then(_SegmentationModel( key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable as String?,productKey: freezed == productKey ? _self.productKey : productKey // ignore: cast_nullable_to_non_nullable @@ -321,6 +323,7 @@ as int?,buyer: freezed == buyer ? _self.buyer : buyer // ignore: cast_nullable_t as Buyer?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable as DateTime?,toGuild: freezed == toGuild ? _self.toGuild : toGuild // ignore: cast_nullable_to_non_nullable as ToGuild?,productionDate: freezed == productionDate ? _self.productionDate : productionDate // ignore: cast_nullable_to_non_nullable +as String?,distributionType: freezed == distributionType ? _self.distributionType : distributionType // ignore: cast_nullable_to_non_nullable as String?, )); } diff --git a/packages/chicken/lib/data/models/response/segmentation_model/segmentation_model.g.dart b/packages/chicken/lib/data/models/response/segmentation_model/segmentation_model.g.dart index e947e7a..db4cfae 100644 --- a/packages/chicken/lib/data/models/response/segmentation_model/segmentation_model.g.dart +++ b/packages/chicken/lib/data/models/response/segmentation_model/segmentation_model.g.dart @@ -25,6 +25,7 @@ _SegmentationModel _$SegmentationModelFromJson(Map json) => ? null : ToGuild.fromJson(json['to_guild'] as Map), productionDate: json['production_date'] as String?, + distributionType: json['distribution_type'] as String?, ); Map _$SegmentationModelToJson(_SegmentationModel instance) => @@ -40,6 +41,7 @@ Map _$SegmentationModelToJson(_SegmentationModel instance) => 'date': instance.date?.toIso8601String(), 'to_guild': instance.toGuild, 'production_date': instance.productionDate, + 'distribution_type': instance.distributionType, }; _Buyer _$BuyerFromJson(Map json) => _Buyer( diff --git a/packages/chicken/lib/data/repositories/chicken/chicken_repository.dart b/packages/chicken/lib/data/repositories/chicken/chicken_repository.dart index 81ca764..0f35283 100644 --- a/packages/chicken/lib/data/repositories/chicken/chicken_repository.dart +++ b/packages/chicken/lib/data/repositories/chicken/chicken_repository.dart @@ -29,13 +29,13 @@ import '../../models/request/create_steward_free_bar/create_steward_free_bar.dar abstract class ChickenRepository { //region Remote + Future?> getRolesProducts({ + required String token, + CancelToken? cancelToken, + Map? queryParameters, + }); //region Steward - Future?> getRolesProduct({ - required String token, - required String role, - CancelToken? cancelToken, - }); Future getKillHouseDistributionInfo({ required String token, @@ -81,11 +81,6 @@ abstract class ChickenRepository { required List allocationTokens, }); - Future?> getRolesProducts({ - required String token, - Map? queryParameters, - }); - Future?> getGuilds({ required String token, Map? queryParameters, diff --git a/packages/chicken/lib/data/repositories/chicken/chicken_repository_imp.dart b/packages/chicken/lib/data/repositories/chicken/chicken_repository_imp.dart index 00c2749..d9f280a 100644 --- a/packages/chicken/lib/data/repositories/chicken/chicken_repository_imp.dart +++ b/packages/chicken/lib/data/repositories/chicken/chicken_repository_imp.dart @@ -37,19 +37,6 @@ class ChickenRepositoryImp implements ChickenRepository { ChickenRepositoryImp({required this.remote, required this.local}); //region Remote - @override - Future?> getRolesProduct({ - required String token, - required String role, - CancelToken? cancelToken, - }) async { - var res = await remote.getRolesProduct( - token: token, - role: role, - cancelToken: cancelToken, - ); - return res; - } @override Future getKillHouseDistributionInfo({ @@ -145,10 +132,12 @@ class ChickenRepositoryImp implements ChickenRepository { @override Future?> getRolesProducts({ required String token, + CancelToken? cancelToken, Map? queryParameters, }) async { var res = await remote.getRolesProducts( token: token, + cancelToken: cancelToken, queryParameters: queryParameters, ); return res; diff --git a/packages/chicken/lib/data/repositories/kill_house/kill_house_repository.dart b/packages/chicken/lib/data/repositories/kill_house/kill_house_repository.dart index 5124f82..95ded99 100644 --- a/packages/chicken/lib/data/repositories/kill_house/kill_house_repository.dart +++ b/packages/chicken/lib/data/repositories/kill_house/kill_house_repository.dart @@ -4,11 +4,10 @@ import 'package:rasadyar_chicken/data/models/kill_house_module/register_request/ import 'package:rasadyar_chicken/data/models/kill_house_module/register_request/response/kill_request_list/kill_request_list.dart' as listModel show KillRequestList; -import 'package:rasadyar_chicken/data/models/kill_house_module/warehouse_and_distribution/response/kill_house_sales_info_dashboard.dart'; -import 'package:rasadyar_chicken/data/models/response/broadcast_price/broadcast_price.dart'; -import 'package:rasadyar_chicken/data/models/response/iran_province_city/iran_province_city_model.dart'; -import 'package:rasadyar_chicken/data/models/response/roles_products/roles_products.dart'; -import 'package:rasadyar_core/core.dart'; +import 'package:rasadyar_chicken/data/models/kill_house_module/warehouse_and_distribution/response/kill_house_bars/kill_house_bars_response.dart'; +import 'package:rasadyar_chicken/data/models/kill_house_module/warehouse_and_distribution/response/kill_house_sales_info_dashboard/kill_house_sales_info_dashboard.dart'; +import 'package:rasadyar_core/data/model/pagination_model/pagination_model.dart'; + abstract class KillHouseRepository { @@ -48,12 +47,10 @@ abstract class KillHouseRepository { Map? queryParameters, }); - Future getBroadcastPrice({required String token}); - - Future?> getRolesProducts({required String token}); - - - Future?> getProvince({CancelToken? cancelToken}); + Future?> getBarsForKillHouse({ + required String token, + Map? queryParameters, + }); //endregion } diff --git a/packages/chicken/lib/data/repositories/kill_house/kill_house_repository_impl.dart b/packages/chicken/lib/data/repositories/kill_house/kill_house_repository_impl.dart index 071f565..d6dfc35 100644 --- a/packages/chicken/lib/data/repositories/kill_house/kill_house_repository_impl.dart +++ b/packages/chicken/lib/data/repositories/kill_house/kill_house_repository_impl.dart @@ -3,21 +3,16 @@ import 'package:rasadyar_chicken/data/models/kill_house_module/register_request/ import 'package:rasadyar_chicken/data/models/kill_house_module/register_request/response/chicken_commission_prices/chicken_commission_prices.dart'; import 'package:rasadyar_chicken/data/models/kill_house_module/register_request/response/kill_house/kill_house_response.dart'; import 'package:rasadyar_chicken/data/models/kill_house_module/register_request/response/kill_request_list/kill_request_list.dart' - as listModel; -import 'package:rasadyar_chicken/data/models/kill_house_module/warehouse_and_distribution/response/kill_house_sales_info_dashboard.dart'; -import 'package:rasadyar_chicken/data/models/response/broadcast_price/broadcast_price.dart'; -import 'package:rasadyar_chicken/data/models/response/iran_province_city/iran_province_city_model.dart'; -import 'package:rasadyar_chicken/data/models/response/roles_products/roles_products.dart'; + as ListModel; +import 'package:rasadyar_chicken/data/models/kill_house_module/warehouse_and_distribution/response/kill_house_bars/kill_house_bars_response.dart'; +import 'package:rasadyar_chicken/data/models/kill_house_module/warehouse_and_distribution/response/kill_house_sales_info_dashboard/kill_house_sales_info_dashboard.dart'; import 'package:rasadyar_core/core.dart'; - -import '../chicken/chicken_repository.dart'; import 'kill_house_repository.dart'; class KillHouseRepositoryImpl extends KillHouseRepository { final KillHouseRemoteDataSource remoteDataSource; - final ChickenRepository chickenRepository; - KillHouseRepositoryImpl(this.remoteDataSource, this.chickenRepository); + KillHouseRepositoryImpl(this.remoteDataSource); @override Future?> getKillHouseList({ @@ -54,7 +49,7 @@ class KillHouseRepositoryImpl extends KillHouseRepository { } @override - Future?> getListKillRequest({ + Future?> getListKillRequest({ required String token, Map? queryParameters, }) async { @@ -93,24 +88,14 @@ class KillHouseRepositoryImpl extends KillHouseRepository { } @override - Future getBroadcastPrice({required String token}) async { - return await chickenRepository.getBroadcastPrice(token: token); - } - - @override - Future?> getRolesProducts({required String token}) async { - var res = await chickenRepository.getRolesProducts( - token: token, - queryParameters: buildQueryParams(role: 'KillHouse'), - ); - return res; - } - - @override - Future?> getProvince({ - CancelToken? cancelToken, + Future?> getBarsForKillHouse({ + required String token, + Map? queryParameters, }) async { - return await chickenRepository.getProvince(cancelToken: cancelToken); + return await remoteDataSource.getBarsForKillHouse( + token: token, + queryParameters: queryParameters, + ); } //endregion diff --git a/packages/chicken/lib/presentation/pages/common/auth/logic.dart b/packages/chicken/lib/features/common/auth/logic.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/common/auth/logic.dart rename to packages/chicken/lib/features/common/auth/logic.dart diff --git a/packages/chicken/lib/presentation/pages/common/auth/view.dart b/packages/chicken/lib/features/common/auth/view.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/common/auth/view.dart rename to packages/chicken/lib/features/common/auth/view.dart diff --git a/packages/chicken/lib/presentation/pages/common/profile/logic.dart b/packages/chicken/lib/features/common/profile/logic.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/common/profile/logic.dart rename to packages/chicken/lib/features/common/profile/logic.dart diff --git a/packages/chicken/lib/presentation/pages/common/profile/view.dart b/packages/chicken/lib/features/common/profile/view.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/common/profile/view.dart rename to packages/chicken/lib/features/common/profile/view.dart diff --git a/packages/chicken/lib/presentation/pages/common/role/logic.dart b/packages/chicken/lib/features/common/role/logic.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/common/role/logic.dart rename to packages/chicken/lib/features/common/role/logic.dart diff --git a/packages/chicken/lib/presentation/pages/common/role/view.dart b/packages/chicken/lib/features/common/role/view.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/common/role/view.dart rename to packages/chicken/lib/features/common/role/view.dart diff --git a/packages/chicken/lib/presentation/pages/kill_house/action/logic.dart b/packages/chicken/lib/features/kill_house/action/logic.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/kill_house/action/logic.dart rename to packages/chicken/lib/features/kill_house/action/logic.dart diff --git a/packages/chicken/lib/presentation/pages/kill_house/action/view.dart b/packages/chicken/lib/features/kill_house/action/view.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/kill_house/action/view.dart rename to packages/chicken/lib/features/kill_house/action/view.dart diff --git a/packages/chicken/lib/presentation/pages/kill_house/root/logic.dart b/packages/chicken/lib/features/kill_house/root/logic.dart similarity index 95% rename from packages/chicken/lib/presentation/pages/kill_house/root/logic.dart rename to packages/chicken/lib/features/kill_house/root/logic.dart index 774bf38..cae61ab 100644 --- a/packages/chicken/lib/presentation/pages/kill_house/root/logic.dart +++ b/packages/chicken/lib/features/kill_house/root/logic.dart @@ -3,7 +3,7 @@ import 'package:rasadyar_chicken/data/di/chicken_di.dart'; import 'package:rasadyar_chicken/data/models/response/broadcast_price/broadcast_price.dart'; import 'package:rasadyar_chicken/data/models/response/roles_products/roles_products.dart'; import 'package:rasadyar_chicken/data/repositories/kill_house/kill_house_repository.dart'; -import 'package:rasadyar_chicken/presentation/pages/common/profile/view.dart'; +import 'package:rasadyar_chicken/features/common/profile/view.dart'; import 'package:rasadyar_chicken/presentation/routes/pages.dart'; import 'package:rasadyar_chicken/presentation/routes/routes.dart'; import 'package:rasadyar_chicken/presentation/utils/nested_keys_utils.dart'; diff --git a/packages/chicken/lib/presentation/pages/kill_house/root/view.dart b/packages/chicken/lib/features/kill_house/root/view.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/kill_house/root/view.dart rename to packages/chicken/lib/features/kill_house/root/view.dart diff --git a/packages/chicken/lib/presentation/pages/kill_house/submit_request/add_request_bottom_sheet.dart b/packages/chicken/lib/features/kill_house/submit_request/add_request_bottom_sheet.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/kill_house/submit_request/add_request_bottom_sheet.dart rename to packages/chicken/lib/features/kill_house/submit_request/add_request_bottom_sheet.dart diff --git a/packages/chicken/lib/presentation/pages/kill_house/submit_request/logic.dart b/packages/chicken/lib/features/kill_house/submit_request/logic.dart similarity index 98% rename from packages/chicken/lib/presentation/pages/kill_house/submit_request/logic.dart rename to packages/chicken/lib/features/kill_house/submit_request/logic.dart index 9787110..ed600b6 100644 --- a/packages/chicken/lib/presentation/pages/kill_house/submit_request/logic.dart +++ b/packages/chicken/lib/features/kill_house/submit_request/logic.dart @@ -4,7 +4,7 @@ import 'package:rasadyar_chicken/data/models/kill_house_module/register_request/ import 'package:rasadyar_chicken/data/models/kill_house_module/register_request/response/kill_house/kill_house_response.dart'; import 'package:rasadyar_chicken/data/models/kill_house_module/register_request/response/kill_request_list/kill_request_list.dart' as listModel; -import 'package:rasadyar_chicken/presentation/pages/kill_house/root/logic.dart'; +import 'package:rasadyar_chicken/features/kill_house/root/logic.dart'; import 'package:rasadyar_chicken/presentation/widget/base_page/logic.dart'; import 'package:rasadyar_core/core.dart'; diff --git a/packages/chicken/lib/presentation/pages/kill_house/submit_request/view.dart b/packages/chicken/lib/features/kill_house/submit_request/view.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/kill_house/submit_request/view.dart rename to packages/chicken/lib/features/kill_house/submit_request/view.dart diff --git a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/buy/logic.dart b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/buy/logic.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/buy/logic.dart rename to packages/chicken/lib/features/kill_house/warehouse_and_distribution/buy/logic.dart diff --git a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/buy/view.dart b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/buy/view.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/buy/view.dart rename to packages/chicken/lib/features/kill_house/warehouse_and_distribution/buy/view.dart diff --git a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/buy_in_province/logic.dart b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/buy_in_province/logic.dart similarity index 62% rename from packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/buy_in_province/logic.dart rename to packages/chicken/lib/features/kill_house/warehouse_and_distribution/buy_in_province/logic.dart index c0a95ec..c1861f5 100644 --- a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/buy_in_province/logic.dart +++ b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/buy_in_province/logic.dart @@ -1,7 +1,7 @@ -import 'package:rasadyar_chicken/presentation/pages/kill_house/warehouse_and_distribution/buy/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/kill_house/warehouse_and_distribution/buy_in_province_all/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/kill_house/warehouse_and_distribution/buy_in_province_waiting/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/kill_house/warehouse_and_distribution/root/logic.dart'; +import 'package:rasadyar_chicken/features/kill_house/warehouse_and_distribution/buy/logic.dart'; +import 'package:rasadyar_chicken/features/kill_house/warehouse_and_distribution/buy_in_province_entered/logic.dart'; +import 'package:rasadyar_chicken/features/kill_house/warehouse_and_distribution/buy_in_province_waiting/logic.dart'; +import 'package:rasadyar_chicken/features/kill_house/warehouse_and_distribution/root/logic.dart'; import 'package:rasadyar_core/core.dart'; class WarehouseAndDistributionBuyInProvinceLogic extends GetxController { @@ -11,22 +11,28 @@ class WarehouseAndDistributionBuyInProvinceLogic extends GetxController { Rx fromDateFilter = Jalali.now().obs; Rx toDateFilter = Jalali.now().obs; - WarehouseAndDistributionRootLogic rootLogic = Get.find(); + WarehouseAndDistributionRootLogic rootLogic = + Get.find(); - WarehouseAndDistributionBuyLogic get buyLogic => Get.find(); + WarehouseAndDistributionBuyLogic get buyLogic => + Get.find(); RxInt selectedSegmentIndex = 0.obs; - WarehouseAndDistributionBuyInProvinceAllLogic buyAllLogic = Get.find(); - WarehouseAndDistributionBuyInProvinceWaitingLogic buyWaitingLogic = Get.find(); + WarehouseAndDistributionBuyInProvinceEnteredLogic buyAllLogic = + Get.find(); + WarehouseAndDistributionBuyInProvinceWaitingLogic buyWaitingLogic = + Get.find(); @override void onInit() { super.onInit(); routesName.value = [...buyLogic.routesName, 'داخل استان'].toList(); - routesName.add(selectedSegmentIndex.value == 0 ? 'در انتظار' : 'کل خریدها'); + routesName.add( + selectedSegmentIndex.value == 0 ? 'در انتظار' : 'وارد شده به انبار', + ); ever(selectedSegmentIndex, (callback) { routesName.removeLast(); - routesName.add(callback == 0 ? 'در انتظار' : 'کل خریدها'); + routesName.add(callback == 0 ? 'در انتظار' : 'وارد شده به انبار'); }); ever(fromDateFilter, (callback) => _setFromDateFilter(callback)); @@ -66,9 +72,9 @@ class WarehouseAndDistributionBuyInProvinceLogic extends GetxController { Future submitFilter() async { final isWaiting = selectedSegmentIndex.value == 0; if (isWaiting) { - buyWaitingLogic.getWaitingArrivals(); + buyWaitingLogic.getKillHouseBars(); } else { - buyAllLogic.getAllArrivals(); + buyAllLogic.getkillHouseBars(); } } @@ -84,6 +90,9 @@ class WarehouseAndDistributionBuyInProvinceLogic extends GetxController { Future onRefresh() async { await rootLogic.onRefresh(); - await Future.wait([buyWaitingLogic.getWaitingArrivals(), buyAllLogic.getAllArrivals()]); + await Future.wait([ + buyWaitingLogic.getKillHouseBars(), + buyAllLogic.getkillHouseBars(), + ]); } } diff --git a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/buy_in_province/view.dart b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/buy_in_province/view.dart similarity index 65% rename from packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/buy_in_province/view.dart rename to packages/chicken/lib/features/kill_house/warehouse_and_distribution/buy_in_province/view.dart index c4a071e..45a03ae 100644 --- a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/buy_in_province/view.dart +++ b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/buy_in_province/view.dart @@ -1,6 +1,7 @@ import 'package:flutter/material.dart'; -import 'package:rasadyar_chicken/presentation/pages/kill_house/warehouse_and_distribution/buy_in_province_all/view.dart'; -import 'package:rasadyar_chicken/presentation/pages/kill_house/warehouse_and_distribution/buy_in_province_waiting/view.dart'; + +import 'package:rasadyar_chicken/features/kill_house/warehouse_and_distribution/buy_in_province_entered/view.dart'; +import 'package:rasadyar_chicken/features/kill_house/warehouse_and_distribution/buy_in_province_waiting/view.dart'; import 'package:rasadyar_chicken/presentation/utils/nested_keys_utils.dart'; import 'package:rasadyar_chicken/presentation/widget/base_page/view.dart'; import 'package:rasadyar_chicken/presentation/widget/inventory/inventory_widget.dart'; @@ -27,16 +28,49 @@ class WarehouseAndDistributionBuyInProvincePage child: Column( spacing: 4.h, children: [ - ObxValue((data) { - return InventoryWidget(inventoryModel: data.value); - }, controller.rootLogic.inventoryModel), + Obx(() { + final listInventory = [ + InventoryItemData( + title: 'موجودی انبار', + value: controller + .rootLogic + .rolesProduct + .value + ?.totalRemainWeight + ?.separatedByCommaFa, + color: const Color(0xFFEAFBFC), + ), + InventoryItemData( + title: 'مانده دولتی', + value: controller + .rootLogic + .salesInfoDashboard + .value + ?.totalGovernmentalRemainWeight + ?.separatedByCommaFa, + color: const Color(0xFFF5ECEE), + ), + InventoryItemData( + title: 'مانده آزاد', + value: controller + .rootLogic + .salesInfoDashboard + .value + ?.totalFreeRemainWeight + ?.separatedByCommaFa, + color: const Color(0xFFF1E7FF), + ), + ]; + + return InventoryWidget(inventoryModel: listInventory); + }), segmentWidget(), ObxValue((index) { return Expanded( child: index.value == 0 ? WarehouseAndDistributionBuyInProvinceWaitingPage() - : WarehouseAndDistributionBuyInProvinceAllPage(), + : WarehouseAndDistributionBuyInProvinceEnteredPage(), ); }, controller.selectedSegmentIndex), ], @@ -51,7 +85,7 @@ class WarehouseAndDistributionBuyInProvincePage children: [ Expanded( child: RSegment( - children: ['وارد شده به انبار', 'کل خریدها'], + children: ['در انتظار', 'وارد شده به انبار'], selectedIndex: 0, borderColor: const Color(0xFFB4B4B4), selectedBorderColor: AppColor.blueNormal, diff --git a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/buy_in_province_all/logic.dart b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/buy_in_province_entered/logic.dart similarity index 69% rename from packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/buy_in_province_all/logic.dart rename to packages/chicken/lib/features/kill_house/warehouse_and_distribution/buy_in_province_entered/logic.dart index bb739e8..71553da 100644 --- a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/buy_in_province_all/logic.dart +++ b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/buy_in_province_entered/logic.dart @@ -1,10 +1,11 @@ import 'package:flutter/material.dart'; +import 'package:rasadyar_chicken/data/models/kill_house_module/warehouse_and_distribution/response/kill_house_bars/kill_house_bars_response.dart'; import 'package:rasadyar_chicken/data/models/request/steward_allocation/steward_allocation_request.dart'; import 'package:rasadyar_chicken/data/models/response/waiting_arrival/waiting_arrival.dart'; -import 'package:rasadyar_chicken/presentation/pages/kill_house/warehouse_and_distribution/root/logic.dart'; +import 'package:rasadyar_chicken/features/kill_house/warehouse_and_distribution/root/logic.dart'; import 'package:rasadyar_core/core.dart'; -class WarehouseAndDistributionBuyInProvinceAllLogic extends GetxController { +class WarehouseAndDistributionBuyInProvinceEnteredLogic extends GetxController { RxInt isExpandedListIndex = (-1).obs; Rx fromDateFilter = Jalali.now().obs; Rx toDateFilter = Jalali.now().obs; @@ -16,8 +17,8 @@ class WarehouseAndDistributionBuyInProvinceAllLogic extends GetxController { WarehouseAndDistributionRootLogic rootLogic = Get.find(); - Rx>> allProduct = - Resource>.loading().obs; + Rx>> enteredBars = + Resource>.loading().obs; TextEditingController weightController = TextEditingController(); TextEditingController countController = TextEditingController(); @@ -29,14 +30,14 @@ class WarehouseAndDistributionBuyInProvinceAllLogic extends GetxController { @override void onInit() { super.onInit(); - getAllArrivals(); + getkillHouseBars(); } @override void onReady() { debounce( searchedValue, - (callback) => getAllArrivals(), + (callback) => getkillHouseBars(), time: Duration(milliseconds: 2000), ); super.onReady(); @@ -47,12 +48,12 @@ class WarehouseAndDistributionBuyInProvinceAllLogic extends GetxController { }); } - Future getAllArrivals([bool isLoadingMore = false]) async { + Future getkillHouseBars([bool isLoadingMore = false]) async { if (isLoadingMore) { isLoadingMoreAllocationsMade.value = true; } else { - allProduct.value = - Resource>.loading(); + enteredBars.value = + Resource>.loading(); } if (searchedValue.value != null && @@ -61,39 +62,42 @@ class WarehouseAndDistributionBuyInProvinceAllLogic extends GetxController { currentPage.value = 1; } - // TODO: Fix - chickenRepository doesn't exist in rootLogic safeCall( - // call: () async => await rootLogic.chickenRepository.getWaitingArrivals( - // token: rootLogic.tokenService.accessToken.value!, - // queryParameters: buildQueryParams( - // queryParams: {'type': 'all'}, - // pageSize: 20, - // page: currentPage.value, - // search: 'filter', - // role: 'Steward', - // value: searchedValue.value, - // fromDate: fromDateFilter.value.toDateTime(), - // toDate: toDateFilter.value.toDateTime(), - // ), - // ), - call: () async => null as PaginationModel?, + call: () async => await rootLogic.killHouseRepository.getBarsForKillHouse( + token: rootLogic.tokenService.accessToken.value!, + queryParameters: buildQueryParams( + queryParams: {'type': 'entered'}, + pageSize: 20, + page: currentPage.value, + search: 'filter', + role: 'KillHouse', + value: searchedValue.value, + + ), + ), + onSuccess: (res) async { await Future.delayed(Duration(milliseconds: 200)); - // TODO: Fix - res type issues - // if ((res?.count ?? 0) == 0) { - // allProduct.value = Resource>.empty(); - // } else { - // allProduct.value = Resource>.success( - // PaginationModel( - // count: res?.count ?? 0, - // next: res?.next, - // previous: res?.previous, - // results: [...(allProduct.value.data?.results ?? []), ...(res?.results ?? [])], - // ), - // ); - // } - allProduct.value = - Resource>.empty(); + + if ((res?.count ?? 0) == 0) { + enteredBars.value = + Resource>.empty(); + } else { + enteredBars.value = + Resource>.success( + PaginationModel( + count: res?.count ?? 0, + next: res?.next, + previous: res?.previous, + results: [ + ...(enteredBars.value.data?.results ?? []), + ...(res?.results ?? []), + ], + ), + ); + } + enteredBars.value = + Resource>.empty(); }, ); } @@ -121,7 +125,7 @@ class WarehouseAndDistributionBuyInProvinceAllLogic extends GetxController { // ), call: () async {}, onSuccess: (result) { - getAllArrivals(); + getkillHouseBars(); rootLogic.onRefresh(); clearApprovedController(); toggleExpansion(); @@ -149,7 +153,7 @@ class WarehouseAndDistributionBuyInProvinceAllLogic extends GetxController { eLog(error); }, onSuccess: (result) { - getAllArrivals(); + getkillHouseBars(); rootLogic.onRefresh(); }, ); diff --git a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/buy_in_province_all/view.dart b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/buy_in_province_entered/view.dart similarity index 69% rename from packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/buy_in_province_all/view.dart rename to packages/chicken/lib/features/kill_house/warehouse_and_distribution/buy_in_province_entered/view.dart index 3f954c8..5eed6db 100644 --- a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/buy_in_province_all/view.dart +++ b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/buy_in_province_entered/view.dart @@ -1,13 +1,15 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; +import 'package:rasadyar_chicken/data/models/kill_house_module/warehouse_and_distribution/response/kill_house_bars/kill_house_bars_response.dart'; import 'package:rasadyar_chicken/data/models/response/waiting_arrival/waiting_arrival.dart'; -import 'package:rasadyar_chicken/presentation/utils/string_utils.dart'; + import 'package:rasadyar_core/core.dart'; import 'logic.dart'; -class WarehouseAndDistributionBuyInProvinceAllPage extends GetView { - const WarehouseAndDistributionBuyInProvinceAllPage({super.key}); +class WarehouseAndDistributionBuyInProvinceEnteredPage + extends GetView { + const WarehouseAndDistributionBuyInProvinceEnteredPage({super.key}); @override Widget build(BuildContext context) { @@ -28,21 +30,21 @@ class WarehouseAndDistributionBuyInProvinceAllPage extends GetView SizedBox(height: 8.h), - onLoadMore: () async => controller.getAllArrivals(true), + onLoadMore: () async => controller.getkillHouseBars(true), ); - }, controller.allProduct), + }, controller.enteredBars), ); } - Row itemListWidget(WaitingArrivalModel item) { + Row itemListWidget(KillHouseBarsResponse item) { return Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ @@ -55,12 +57,12 @@ class WarehouseAndDistributionBuyInProvinceAllPage extends GetView controller.denyEntries(item), - onRefresh: () => controller.getAllArrivals(), - ); + onRefresh: () => controller.getkillHouseBars(), + ); */ }, borderColor: AppColor.redNormal, ), @@ -285,25 +315,37 @@ class WarehouseAndDistributionBuyInProvinceAllPage extends GetView bgConfirmAllColor = AppColor.blueNormal.obs; RxInt currentPage = 1.obs; final RxBool isLoadingMoreAllocationsMade = false.obs; + WarehouseAndDistributionRootLogic rootLogic = Get.find(); RxBool isButtonConfirm = false.obs; - Rx>> waitingProduct = - Resource>.loading().obs; + Rx>> waitingBars = + Resource>.loading().obs; TextEditingController weightController = TextEditingController(); TextEditingController countController = TextEditingController(); @@ -35,7 +37,7 @@ class WarehouseAndDistributionBuyInProvinceWaitingLogic extends GetxController { super.onInit(); debounce( searchedValue, - (callback) => getWaitingArrivals(), + (callback) => getKillHouseBars(), time: Duration(milliseconds: timeDebounce), ); } @@ -43,7 +45,7 @@ class WarehouseAndDistributionBuyInProvinceWaitingLogic extends GetxController { @override void onReady() { super.onReady(); - getWaitingArrivals(); + getKillHouseBars(); approvedWithOtpController.addListener(() { isButtonConfirm.value = approvedWithOtpController.text.trim().length > 4; }); @@ -53,12 +55,12 @@ class WarehouseAndDistributionBuyInProvinceWaitingLogic extends GetxController { searchedValue.value = data?.trim(); } - Future getWaitingArrivals([bool isLoadingMore = false]) async { + Future getKillHouseBars([bool isLoadingMore = false]) async { if (isLoadingMore) { isLoadingMoreAllocationsMade.value = true; } else { - waitingProduct.value = - Resource>.loading(); + waitingBars.value = + Resource>.loading(); } if (searchedValue.value != null && @@ -67,40 +69,42 @@ class WarehouseAndDistributionBuyInProvinceWaitingLogic extends GetxController { currentPage.value = 1; } - // TODO: Fix - chickenRepository doesn't exist in rootLogic safeCall( - // call: () async => await rootLogic.chickenRepository.getWaitingArrivals( - // token: rootLogic.tokenService.accessToken.value!, - // queryParameters: buildQueryParams( - // queryParams: {'type': 'not_entered'}, - // pageSize: 20, - // page: currentPage.value, - // search: 'filter', - // role: 'Steward', - // value: searchedValue.value, - // fromDate: fromDateFilter.value.toDateTime(), - // toDate: toDateFilter.value.toDateTime(), - // ), - // ), - call: () async => null as PaginationModel?, + call: () async => await rootLogic.killHouseRepository.getBarsForKillHouse( + token: rootLogic.tokenService.accessToken.value!, + queryParameters: buildQueryParams( + queryParams: {'type': 'notentered'}, + pageSize: 20, + page: currentPage.value, + search: 'filter', + role: 'KillHouse', + value: searchedValue.value, + + ), + ), onSuccess: (res) async { await Future.delayed(Duration(milliseconds: 200)); - // TODO: Fix - res type issues - // if ((res?.count ?? 0) == 0) { - // waitingProduct.value = Resource>.empty(); - // } else { - // waitingProduct.value = Resource>.success( - // PaginationModel( - // count: res?.count ?? 0, - // next: res?.next, - // previous: res?.previous, - // results: [...(waitingProduct.value.data?.results ?? []), ...(res?.results ?? [])], - // ), - // ); - // flashingFabBgColor(); - // } - waitingProduct.value = - Resource>.empty(); + + if ((res?.count ?? 0) == 0) { + waitingBars.value = + Resource>.empty(); + } else { + waitingBars.value = + Resource>.success( + PaginationModel( + count: res?.count ?? 0, + next: res?.next, + previous: res?.previous, + results: [ + ...(waitingBars.value.data?.results ?? []), + ...(res?.results ?? []), + ], + ), + ); + flashingFabBgColor(); + } + waitingBars.value = + Resource>.empty(); }, ); } @@ -133,7 +137,7 @@ class WarehouseAndDistributionBuyInProvinceWaitingLogic extends GetxController { eLog(error); }, onSuccess: (result) { - getWaitingArrivals(); + getKillHouseBars(); rootLogic.onRefresh(); clearApprovedController(); toggleExpansion(); @@ -164,7 +168,7 @@ class WarehouseAndDistributionBuyInProvinceWaitingLogic extends GetxController { eLog(error); }, onSuccess: (result) { - getWaitingArrivals(); + getKillHouseBars(); rootLogic.onRefresh(); }, ); diff --git a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/buy_in_province_waiting/view.dart b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/buy_in_province_waiting/view.dart similarity index 67% rename from packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/buy_in_province_waiting/view.dart rename to packages/chicken/lib/features/kill_house/warehouse_and_distribution/buy_in_province_waiting/view.dart index d54e4f3..f7271ad 100644 --- a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/buy_in_province_waiting/view.dart +++ b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/buy_in_province_waiting/view.dart @@ -1,12 +1,12 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; -import 'package:rasadyar_chicken/data/models/response/waiting_arrival/waiting_arrival.dart'; -import 'package:rasadyar_chicken/presentation/utils/string_utils.dart'; +import 'package:rasadyar_chicken/data/models/kill_house_module/warehouse_and_distribution/response/kill_house_bars/kill_house_bars_response.dart'; import 'package:rasadyar_core/core.dart'; import 'logic.dart'; -class WarehouseAndDistributionBuyInProvinceWaitingPage extends GetView { +class WarehouseAndDistributionBuyInProvinceWaitingPage + extends GetView { const WarehouseAndDistributionBuyInProvinceWaitingPage({super.key}); @override @@ -38,14 +38,14 @@ class WarehouseAndDistributionBuyInProvinceWaitingPage extends GetView SizedBox(height: 8.h), - onLoadMore: () async => controller.getWaitingArrivals(true), + onLoadMore: () async => controller.getKillHouseBars(true), ); - }, controller.waitingProduct), + }, controller.waitingBars), ), ); } - Row itemListWidget(WaitingArrivalModel item) { + Row itemListWidget(KillHouseBarsResponse item) { return Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ @@ -58,13 +58,14 @@ class WarehouseAndDistributionBuyInProvinceWaitingPage extends GetView controller.denyEntries(item), - onRefresh: () => controller.getWaitingArrivals(), - ); + onRefresh: () => controller.getKillHouseBars(), + ); */ }, borderColor: AppColor.redNormal, ), @@ -264,8 +298,10 @@ class WarehouseAndDistributionBuyInProvinceWaitingPage extends GetView{ 0: ChickenRoutes.buyWarehouseAndDistribution, @@ -68,6 +70,7 @@ class WarehouseAndDistributionRootLogic extends GetxController { super.onInit(); killHouseRepository = diChicken.get(); + chickenRepository = diChicken.get(); } @override @@ -152,7 +155,7 @@ class WarehouseAndDistributionRootLogic extends GetxController { _provincesCancelToken = CancelToken(); try { - final res = await killHouseRepository.getProvince( + final res = await chickenRepository.getProvince( cancelToken: _provincesCancelToken, ); if (res != null) { @@ -170,7 +173,7 @@ class WarehouseAndDistributionRootLogic extends GetxController { Future getBroadcastPrice() async { safeCall( - call: () async => await killHouseRepository.getBroadcastPrice( + call: () async => await chickenRepository.getBroadcastPrice( token: tokenService.accessToken.value!, ), onSuccess: (result) { @@ -182,8 +185,9 @@ class WarehouseAndDistributionRootLogic extends GetxController { Future getRolesProducts() async { await safeCall( - call: () async => await killHouseRepository.getRolesProducts( + call: () async => await chickenRepository.getRolesProducts( token: tokenService.accessToken.value!, + queryParameters: buildRawQueryParams(role: 'KillHouse'), ), onSuccess: (result) { if (result != null) { diff --git a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/root/view.dart b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/root/view.dart similarity index 99% rename from packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/root/view.dart rename to packages/chicken/lib/features/kill_house/warehouse_and_distribution/root/view.dart index 9477fef..3260743 100644 --- a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/root/view.dart +++ b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/root/view.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:rasadyar_chicken/chicken.dart'; import 'package:rasadyar_chicken/data/models/response/kill_house_distribution_info/kill_house_distribution_info.dart'; -import 'package:rasadyar_chicken/presentation/pages/kill_house/warehouse_and_distribution/root/logic.dart'; +import 'package:rasadyar_chicken/features/kill_house/warehouse_and_distribution/root/logic.dart'; import 'package:rasadyar_chicken/presentation/utils/nested_keys_utils.dart'; import 'package:rasadyar_chicken/presentation/widget/base_page/view.dart'; import 'package:rasadyar_core/core.dart'; diff --git a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/sale/logic.dart b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/sale/logic.dart similarity index 97% rename from packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/sale/logic.dart rename to packages/chicken/lib/features/kill_house/warehouse_and_distribution/sale/logic.dart index 99c17ac..8777419 100644 --- a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/sale/logic.dart +++ b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/sale/logic.dart @@ -4,7 +4,7 @@ import 'package:rasadyar_chicken/data/models/response/allocated_made/allocated_m import 'package:rasadyar_chicken/data/models/response/guild/guild_model.dart'; import 'package:rasadyar_chicken/data/models/response/roles_products/roles_products.dart'; import 'package:rasadyar_chicken/data/models/response/steward_free_bar_dashboard/steward_free_bar_dashboard.dart'; -import 'package:rasadyar_chicken/presentation/pages/kill_house/warehouse_and_distribution/root/logic.dart'; +import 'package:rasadyar_chicken/features/kill_house/warehouse_and_distribution/root/logic.dart'; import 'package:rasadyar_core/core.dart'; class WarehouseAndDistributionSaleLogic extends GetxController { diff --git a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/sale/view.dart b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/sale/view.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/sale/view.dart rename to packages/chicken/lib/features/kill_house/warehouse_and_distribution/sale/view.dart diff --git a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/sales_in_province/logic.dart b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/sales_in_province/logic.dart similarity index 98% rename from packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/sales_in_province/logic.dart rename to packages/chicken/lib/features/kill_house/warehouse_and_distribution/sales_in_province/logic.dart index 2974906..898c85d 100644 --- a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/sales_in_province/logic.dart +++ b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/sales_in_province/logic.dart @@ -9,8 +9,8 @@ import 'package:rasadyar_chicken/data/models/response/guild/guild_model.dart'; import 'package:rasadyar_chicken/data/models/response/guild_profile/guild_profile.dart'; import 'package:rasadyar_chicken/data/models/response/roles_products/roles_products.dart'; import 'package:rasadyar_chicken/data/models/response/steward_remain_weight/steward_remain_weight.dart'; -import 'package:rasadyar_chicken/presentation/pages/kill_house/warehouse_and_distribution/root/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/kill_house/warehouse_and_distribution/sale/logic.dart'; +import 'package:rasadyar_chicken/features/kill_house/warehouse_and_distribution/root/logic.dart'; +import 'package:rasadyar_chicken/features/kill_house/warehouse_and_distribution/sale/logic.dart'; import 'package:rasadyar_chicken/presentation/utils/string_utils.dart'; import 'package:rasadyar_chicken/presentation/utils/utils.dart'; import 'package:rasadyar_core/core.dart'; diff --git a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/sales_in_province/view.dart b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/sales_in_province/view.dart similarity index 99% rename from packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/sales_in_province/view.dart rename to packages/chicken/lib/features/kill_house/warehouse_and_distribution/sales_in_province/view.dart index e345d3b..547b197 100644 --- a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/sales_in_province/view.dart +++ b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/sales_in_province/view.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:rasadyar_chicken/data/models/response/allocated_made/allocated_made.dart'; -import 'package:rasadyar_chicken/presentation/pages/kill_house/warehouse_and_distribution/sales_in_province/widgets/cu_sale_in_provience.dart'; +import 'package:rasadyar_chicken/features/kill_house/warehouse_and_distribution/sales_in_province/widgets/cu_sale_in_provience.dart'; import 'package:rasadyar_chicken/presentation/utils/nested_keys_utils.dart'; import 'package:rasadyar_chicken/presentation/utils/string_utils.dart'; import 'package:rasadyar_chicken/presentation/widget/base_page/view.dart'; diff --git a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/sales_in_province/widgets/cu_sale_in_provience.dart b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/sales_in_province/widgets/cu_sale_in_provience.dart similarity index 99% rename from packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/sales_in_province/widgets/cu_sale_in_provience.dart rename to packages/chicken/lib/features/kill_house/warehouse_and_distribution/sales_in_province/widgets/cu_sale_in_provience.dart index 4dfd6b1..48a7340 100644 --- a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/sales_in_province/widgets/cu_sale_in_provience.dart +++ b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/sales_in_province/widgets/cu_sale_in_provience.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:rasadyar_chicken/data/models/response/roles_products/roles_products.dart'; -import 'package:rasadyar_chicken/presentation/pages/kill_house/warehouse_and_distribution/sales_in_province/logic.dart'; +import 'package:rasadyar_chicken/features/kill_house/warehouse_and_distribution/sales_in_province/logic.dart'; import 'package:rasadyar_core/core.dart'; Widget addOrEditBottomSheet(WarehouseAndDistributionSalesInProvinceLogic controller, {bool isEditMode = false}) { diff --git a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/sales_out_of_province/logic.dart b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/sales_out_of_province/logic.dart similarity index 96% rename from packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/sales_out_of_province/logic.dart rename to packages/chicken/lib/features/kill_house/warehouse_and_distribution/sales_out_of_province/logic.dart index 676c60b..172aaa6 100644 --- a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/sales_out_of_province/logic.dart +++ b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/sales_out_of_province/logic.dart @@ -6,10 +6,10 @@ import 'package:rasadyar_chicken/data/models/response/out_province_carcasses_buy import 'package:rasadyar_chicken/data/models/response/roles_products/roles_products.dart'; import 'package:rasadyar_chicken/data/models/response/steward_free_sale_bar/steward_free_sale_bar.dart'; import 'package:rasadyar_chicken/data/models/response/steward_remain_weight/steward_remain_weight.dart'; -import 'package:rasadyar_chicken/presentation/pages/kill_house/warehouse_and_distribution/root/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/kill_house/warehouse_and_distribution/sale/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/kill_house/warehouse_and_distribution/sales_out_of_province_buyers/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/kill_house/warehouse_and_distribution/sales_out_of_province_sales_list/logic.dart'; +import 'package:rasadyar_chicken/features/kill_house/warehouse_and_distribution/root/logic.dart'; +import 'package:rasadyar_chicken/features/kill_house/warehouse_and_distribution/sale/logic.dart'; +import 'package:rasadyar_chicken/features/kill_house/warehouse_and_distribution/sales_out_of_province_buyers/logic.dart'; +import 'package:rasadyar_chicken/features/kill_house/warehouse_and_distribution/sales_out_of_province_sales_list/logic.dart'; import 'package:rasadyar_chicken/presentation/utils/utils.dart'; import 'package:rasadyar_core/core.dart'; diff --git a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/sales_out_of_province/view.dart b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/sales_out_of_province/view.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/sales_out_of_province/view.dart rename to packages/chicken/lib/features/kill_house/warehouse_and_distribution/sales_out_of_province/view.dart diff --git a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/sales_out_of_province_buyers/logic.dart b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/sales_out_of_province_buyers/logic.dart similarity index 95% rename from packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/sales_out_of_province_buyers/logic.dart rename to packages/chicken/lib/features/kill_house/warehouse_and_distribution/sales_out_of_province_buyers/logic.dart index 68a32b3..e65f6fc 100644 --- a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/sales_out_of_province_buyers/logic.dart +++ b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/sales_out_of_province_buyers/logic.dart @@ -2,9 +2,9 @@ import 'package:flutter/material.dart'; import 'package:rasadyar_chicken/data/models/response/iran_province_city/iran_province_city_model.dart'; import 'package:rasadyar_chicken/data/models/response/out_province_carcasses_buyer/out_province_carcasses_buyer.dart'; -import 'package:rasadyar_chicken/presentation/pages/kill_house/warehouse_and_distribution/root/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/kill_house/warehouse_and_distribution/sale/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/kill_house/warehouse_and_distribution/sales_out_of_province/logic.dart'; +import 'package:rasadyar_chicken/features/kill_house/warehouse_and_distribution/root/logic.dart'; +import 'package:rasadyar_chicken/features/kill_house/warehouse_and_distribution/sale/logic.dart'; +import 'package:rasadyar_chicken/features/kill_house/warehouse_and_distribution/sales_out_of_province/logic.dart'; import 'package:rasadyar_chicken/presentation/utils/utils.dart'; import 'package:rasadyar_core/core.dart'; diff --git a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/sales_out_of_province_buyers/view.dart b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/sales_out_of_province_buyers/view.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/sales_out_of_province_buyers/view.dart rename to packages/chicken/lib/features/kill_house/warehouse_and_distribution/sales_out_of_province_buyers/view.dart diff --git a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/sales_out_of_province_sales_list/logic.dart b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/sales_out_of_province_sales_list/logic.dart similarity index 95% rename from packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/sales_out_of_province_sales_list/logic.dart rename to packages/chicken/lib/features/kill_house/warehouse_and_distribution/sales_out_of_province_sales_list/logic.dart index c82d3ac..2b1c063 100644 --- a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/sales_out_of_province_sales_list/logic.dart +++ b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/sales_out_of_province_sales_list/logic.dart @@ -4,9 +4,9 @@ import 'package:rasadyar_chicken/data/models/response/iran_province_city/iran_pr import 'package:rasadyar_chicken/data/models/response/out_province_carcasses_buyer/out_province_carcasses_buyer.dart'; import 'package:rasadyar_chicken/data/models/response/roles_products/roles_products.dart'; import 'package:rasadyar_chicken/data/models/response/steward_free_sale_bar/steward_free_sale_bar.dart'; -import 'package:rasadyar_chicken/presentation/pages/kill_house/warehouse_and_distribution/root/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/kill_house/warehouse_and_distribution/sale/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/kill_house/warehouse_and_distribution/sales_out_of_province_buyers/logic.dart'; +import 'package:rasadyar_chicken/features/kill_house/warehouse_and_distribution/root/logic.dart'; +import 'package:rasadyar_chicken/features/kill_house/warehouse_and_distribution/sale/logic.dart'; +import 'package:rasadyar_chicken/features/kill_house/warehouse_and_distribution/sales_out_of_province_buyers/logic.dart'; import 'package:rasadyar_chicken/presentation/utils/utils.dart'; import 'package:rasadyar_core/core.dart'; diff --git a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/sales_out_of_province_sales_list/view.dart b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/sales_out_of_province_sales_list/view.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/sales_out_of_province_sales_list/view.dart rename to packages/chicken/lib/features/kill_house/warehouse_and_distribution/sales_out_of_province_sales_list/view.dart diff --git a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/segmentation/logic.dart b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/segmentation/logic.dart similarity index 98% rename from packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/segmentation/logic.dart rename to packages/chicken/lib/features/kill_house/warehouse_and_distribution/segmentation/logic.dart index c00028e..42e5389 100644 --- a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/segmentation/logic.dart +++ b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/segmentation/logic.dart @@ -4,7 +4,7 @@ import 'package:rasadyar_chicken/data/models/response/broadcast_price/broadcast_ import 'package:rasadyar_chicken/data/models/response/guild/guild_model.dart'; import 'package:rasadyar_chicken/data/models/response/roles_products/roles_products.dart'; import 'package:rasadyar_chicken/data/models/response/segmentation_model/segmentation_model.dart'; -import 'package:rasadyar_chicken/presentation/pages/kill_house/warehouse_and_distribution/root/logic.dart'; +import 'package:rasadyar_chicken/features/kill_house/warehouse_and_distribution/root/logic.dart'; import 'package:rasadyar_chicken/presentation/utils/utils.dart'; import 'package:rasadyar_core/core.dart'; diff --git a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/segmentation/view.dart b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/segmentation/view.dart similarity index 98% rename from packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/segmentation/view.dart rename to packages/chicken/lib/features/kill_house/warehouse_and_distribution/segmentation/view.dart index 133d7e3..fa61813 100644 --- a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/segmentation/view.dart +++ b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/segmentation/view.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:rasadyar_chicken/data/models/response/segmentation_model/segmentation_model.dart'; -import 'package:rasadyar_chicken/presentation/pages/kill_house/warehouse_and_distribution/segmentation/widgets/cu_bottom_sheet.dart'; +import 'package:rasadyar_chicken/features/kill_house/warehouse_and_distribution/segmentation/widgets/cu_bottom_sheet.dart'; import 'package:rasadyar_chicken/presentation/widget/base_page/view.dart'; import 'package:rasadyar_chicken/presentation/widget/filter_bottom_sheet.dart'; import 'package:rasadyar_core/core.dart'; diff --git a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/segmentation/widgets/cu_bottom_sheet.dart b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/segmentation/widgets/cu_bottom_sheet.dart similarity index 99% rename from packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/segmentation/widgets/cu_bottom_sheet.dart rename to packages/chicken/lib/features/kill_house/warehouse_and_distribution/segmentation/widgets/cu_bottom_sheet.dart index 9d16f29..7af0b56 100644 --- a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/segmentation/widgets/cu_bottom_sheet.dart +++ b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/segmentation/widgets/cu_bottom_sheet.dart @@ -2,7 +2,7 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:rasadyar_chicken/data/models/response/guild/guild_model.dart'; import 'package:rasadyar_chicken/data/models/response/roles_products/roles_products.dart'; -import 'package:rasadyar_chicken/presentation/pages/kill_house/warehouse_and_distribution/segmentation/logic.dart'; +import 'package:rasadyar_chicken/features/kill_house/warehouse_and_distribution/segmentation/logic.dart'; import 'package:rasadyar_core/core.dart'; Widget addOrEditBottomSheet(WarehouseAndDistributionSegmentationLogic controller, {bool isOnEdit = false}) { diff --git a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/warehouse_and_distribution.dart b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/warehouse_and_distribution.dart similarity index 90% rename from packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/warehouse_and_distribution.dart rename to packages/chicken/lib/features/kill_house/warehouse_and_distribution/warehouse_and_distribution.dart index 614914d..51bad79 100644 --- a/packages/chicken/lib/presentation/pages/kill_house/warehouse_and_distribution/warehouse_and_distribution.dart +++ b/packages/chicken/lib/features/kill_house/warehouse_and_distribution/warehouse_and_distribution.dart @@ -2,8 +2,8 @@ export 'buy/logic.dart'; export 'buy/view.dart'; export 'buy_in_province/logic.dart'; export 'buy_in_province/view.dart'; -export 'buy_in_province_all/logic.dart'; -export 'buy_in_province_all/view.dart'; +export 'buy_in_province_entered/logic.dart'; +export 'buy_in_province_entered/view.dart'; export 'buy_in_province_waiting/logic.dart'; export 'buy_in_province_waiting/view.dart'; export 'buy_out_of_province/logic.dart'; diff --git a/packages/chicken/lib/presentation/pages/poultry_farm_inspection/home/logic.dart b/packages/chicken/lib/features/poultry_farm_inspection/home/logic.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/poultry_farm_inspection/home/logic.dart rename to packages/chicken/lib/features/poultry_farm_inspection/home/logic.dart diff --git a/packages/chicken/lib/presentation/pages/poultry_farm_inspection/home/view.dart b/packages/chicken/lib/features/poultry_farm_inspection/home/view.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/poultry_farm_inspection/home/view.dart rename to packages/chicken/lib/features/poultry_farm_inspection/home/view.dart diff --git a/packages/chicken/lib/presentation/pages/poultry_farm_inspection/poultry_farm_inspection.dart b/packages/chicken/lib/features/poultry_farm_inspection/poultry_farm_inspection.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/poultry_farm_inspection/poultry_farm_inspection.dart rename to packages/chicken/lib/features/poultry_farm_inspection/poultry_farm_inspection.dart diff --git a/packages/chicken/lib/presentation/pages/poultry_farm_inspection/widgets/card_info.dart b/packages/chicken/lib/features/poultry_farm_inspection/widgets/card_info.dart similarity index 94% rename from packages/chicken/lib/presentation/pages/poultry_farm_inspection/widgets/card_info.dart rename to packages/chicken/lib/features/poultry_farm_inspection/widgets/card_info.dart index 3f55e48..cf9da15 100644 --- a/packages/chicken/lib/presentation/pages/poultry_farm_inspection/widgets/card_info.dart +++ b/packages/chicken/lib/features/poultry_farm_inspection/widgets/card_info.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:rasadyar_chicken/presentation/pages/poultry_farm_inspection/home/logic.dart'; +import 'package:rasadyar_chicken/features/poultry_farm_inspection/home/logic.dart'; import 'package:rasadyar_core/core.dart'; Widget farmInfoWidget({ diff --git a/packages/chicken/lib/presentation/pages/poultry_farm_inspection/widgets/cu_bottom_sheet.dart b/packages/chicken/lib/features/poultry_farm_inspection/widgets/cu_bottom_sheet.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/poultry_farm_inspection/widgets/cu_bottom_sheet.dart rename to packages/chicken/lib/features/poultry_farm_inspection/widgets/cu_bottom_sheet.dart diff --git a/packages/chicken/lib/presentation/pages/poultry_farm_inspection/widgets/step1_page.dart b/packages/chicken/lib/features/poultry_farm_inspection/widgets/step1_page.dart similarity index 97% rename from packages/chicken/lib/presentation/pages/poultry_farm_inspection/widgets/step1_page.dart rename to packages/chicken/lib/features/poultry_farm_inspection/widgets/step1_page.dart index 6740746..2ff435e 100644 --- a/packages/chicken/lib/presentation/pages/poultry_farm_inspection/widgets/step1_page.dart +++ b/packages/chicken/lib/features/poultry_farm_inspection/widgets/step1_page.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:rasadyar_chicken/presentation/pages/poultry_farm_inspection/widgets/card_info.dart'; +import 'package:rasadyar_chicken/features/poultry_farm_inspection/widgets/card_info.dart'; import 'package:rasadyar_core/core.dart'; import '../home/logic.dart'; diff --git a/packages/chicken/lib/presentation/pages/poultry_farm_inspection/widgets/step2_page.dart b/packages/chicken/lib/features/poultry_farm_inspection/widgets/step2_page.dart similarity index 99% rename from packages/chicken/lib/presentation/pages/poultry_farm_inspection/widgets/step2_page.dart rename to packages/chicken/lib/features/poultry_farm_inspection/widgets/step2_page.dart index f09c7d3..f7fba7a 100644 --- a/packages/chicken/lib/presentation/pages/poultry_farm_inspection/widgets/step2_page.dart +++ b/packages/chicken/lib/features/poultry_farm_inspection/widgets/step2_page.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:rasadyar_chicken/presentation/pages/poultry_farm_inspection/widgets/card_info.dart'; +import 'package:rasadyar_chicken/features/poultry_farm_inspection/widgets/card_info.dart'; import 'package:rasadyar_core/core.dart'; import '../home/logic.dart'; diff --git a/packages/chicken/lib/presentation/pages/poultry_farm_inspection/widgets/step3_page.dart b/packages/chicken/lib/features/poultry_farm_inspection/widgets/step3_page.dart similarity index 99% rename from packages/chicken/lib/presentation/pages/poultry_farm_inspection/widgets/step3_page.dart rename to packages/chicken/lib/features/poultry_farm_inspection/widgets/step3_page.dart index eba203d..b03145c 100644 --- a/packages/chicken/lib/presentation/pages/poultry_farm_inspection/widgets/step3_page.dart +++ b/packages/chicken/lib/features/poultry_farm_inspection/widgets/step3_page.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:rasadyar_chicken/presentation/pages/poultry_farm_inspection/widgets/card_info.dart'; +import 'package:rasadyar_chicken/features/poultry_farm_inspection/widgets/card_info.dart'; import 'package:rasadyar_core/core.dart'; import '../home/logic.dart'; diff --git a/packages/chicken/lib/presentation/pages/poultry_farm_inspection/widgets/step4_page.dart b/packages/chicken/lib/features/poultry_farm_inspection/widgets/step4_page.dart similarity index 99% rename from packages/chicken/lib/presentation/pages/poultry_farm_inspection/widgets/step4_page.dart rename to packages/chicken/lib/features/poultry_farm_inspection/widgets/step4_page.dart index 8c2dadc..1dee69c 100644 --- a/packages/chicken/lib/presentation/pages/poultry_farm_inspection/widgets/step4_page.dart +++ b/packages/chicken/lib/features/poultry_farm_inspection/widgets/step4_page.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:rasadyar_chicken/presentation/pages/poultry_farm_inspection/widgets/card_info.dart'; +import 'package:rasadyar_chicken/features/poultry_farm_inspection/widgets/card_info.dart'; import 'package:rasadyar_core/core.dart'; import '../home/logic.dart'; diff --git a/packages/chicken/lib/presentation/pages/poultry_farm_inspection/widgets/step5_page.dart b/packages/chicken/lib/features/poultry_farm_inspection/widgets/step5_page.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/poultry_farm_inspection/widgets/step5_page.dart rename to packages/chicken/lib/features/poultry_farm_inspection/widgets/step5_page.dart diff --git a/packages/chicken/lib/presentation/pages/poultry_science/active_hatching/logic.dart b/packages/chicken/lib/features/poultry_science/active_hatching/logic.dart similarity index 96% rename from packages/chicken/lib/presentation/pages/poultry_science/active_hatching/logic.dart rename to packages/chicken/lib/features/poultry_science/active_hatching/logic.dart index 9360f4a..c428715 100644 --- a/packages/chicken/lib/presentation/pages/poultry_science/active_hatching/logic.dart +++ b/packages/chicken/lib/features/poultry_science/active_hatching/logic.dart @@ -1,5 +1,5 @@ import 'package:rasadyar_chicken/data/models/response/hatching/hatching_models.dart'; -import 'package:rasadyar_chicken/presentation/pages/poultry_science/root/logic.dart'; +import 'package:rasadyar_chicken/features/poultry_science/root/logic.dart'; import 'package:rasadyar_core/core.dart'; class ActiveHatchingLogic extends GetxController { diff --git a/packages/chicken/lib/presentation/pages/poultry_science/active_hatching/view.dart b/packages/chicken/lib/features/poultry_science/active_hatching/view.dart similarity index 98% rename from packages/chicken/lib/presentation/pages/poultry_science/active_hatching/view.dart rename to packages/chicken/lib/features/poultry_science/active_hatching/view.dart index 6dfc282..6877625 100644 --- a/packages/chicken/lib/presentation/pages/poultry_science/active_hatching/view.dart +++ b/packages/chicken/lib/features/poultry_science/active_hatching/view.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:rasadyar_chicken/data/models/response/hatching/hatching_models.dart'; -import 'package:rasadyar_chicken/presentation/pages/poultry_science/active_hatching/logic.dart'; +import 'package:rasadyar_chicken/features/poultry_science/active_hatching/logic.dart'; import 'package:rasadyar_chicken/presentation/utils/nested_keys_utils.dart'; import 'package:rasadyar_chicken/presentation/widget/base_page/view.dart'; import 'package:rasadyar_core/core.dart'; diff --git a/packages/chicken/lib/presentation/pages/poultry_science/farm/logic.dart b/packages/chicken/lib/features/poultry_science/farm/logic.dart similarity index 95% rename from packages/chicken/lib/presentation/pages/poultry_science/farm/logic.dart rename to packages/chicken/lib/features/poultry_science/farm/logic.dart index 461b297..389cd6a 100644 --- a/packages/chicken/lib/presentation/pages/poultry_science/farm/logic.dart +++ b/packages/chicken/lib/features/poultry_science/farm/logic.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:rasadyar_chicken/data/models/response/poultry_farm/poultry_farm.dart'; -import 'package:rasadyar_chicken/presentation/pages/poultry_science/home/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/poultry_science/root/logic.dart'; +import 'package:rasadyar_chicken/features/poultry_science/home/logic.dart'; +import 'package:rasadyar_chicken/features/poultry_science/root/logic.dart'; import 'package:rasadyar_core/core.dart'; class FarmLogic extends GetxController { diff --git a/packages/chicken/lib/presentation/pages/poultry_science/farm/view.dart b/packages/chicken/lib/features/poultry_science/farm/view.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/poultry_science/farm/view.dart rename to packages/chicken/lib/features/poultry_science/farm/view.dart diff --git a/packages/chicken/lib/presentation/pages/poultry_science/genocide/logic.dart b/packages/chicken/lib/features/poultry_science/genocide/logic.dart similarity index 95% rename from packages/chicken/lib/presentation/pages/poultry_science/genocide/logic.dart rename to packages/chicken/lib/features/poultry_science/genocide/logic.dart index c266812..ee6ba89 100644 --- a/packages/chicken/lib/presentation/pages/poultry_science/genocide/logic.dart +++ b/packages/chicken/lib/features/poultry_science/genocide/logic.dart @@ -1,6 +1,6 @@ import 'package:rasadyar_chicken/data/models/response/poultry_order/poultry_order.dart'; -import 'package:rasadyar_chicken/presentation/pages/poultry_science/killing_registration/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/poultry_science/root/logic.dart'; +import 'package:rasadyar_chicken/features/poultry_science/killing_registration/logic.dart'; +import 'package:rasadyar_chicken/features/poultry_science/root/logic.dart'; import 'package:rasadyar_core/core.dart'; class GenocideLogic extends GetxController { diff --git a/packages/chicken/lib/presentation/pages/poultry_science/genocide/view.dart b/packages/chicken/lib/features/poultry_science/genocide/view.dart similarity index 99% rename from packages/chicken/lib/presentation/pages/poultry_science/genocide/view.dart rename to packages/chicken/lib/features/poultry_science/genocide/view.dart index be6f035..5bbd158 100644 --- a/packages/chicken/lib/presentation/pages/poultry_science/genocide/view.dart +++ b/packages/chicken/lib/features/poultry_science/genocide/view.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:rasadyar_chicken/data/models/response/poultry_order/poultry_order.dart'; -import 'package:rasadyar_chicken/presentation/pages/poultry_science/killing_registration/view.dart'; +import 'package:rasadyar_chicken/features/poultry_science/killing_registration/view.dart'; import 'package:rasadyar_chicken/presentation/utils/nested_keys_utils.dart'; import 'package:rasadyar_chicken/presentation/widget/base_page/view.dart'; import 'package:rasadyar_chicken/presentation/widget/filter_bottom_sheet.dart'; diff --git a/packages/chicken/lib/presentation/pages/poultry_science/home/logic.dart b/packages/chicken/lib/features/poultry_science/home/logic.dart similarity index 98% rename from packages/chicken/lib/presentation/pages/poultry_science/home/logic.dart rename to packages/chicken/lib/features/poultry_science/home/logic.dart index b508a24..b3c2bd8 100644 --- a/packages/chicken/lib/presentation/pages/poultry_science/home/logic.dart +++ b/packages/chicken/lib/features/poultry_science/home/logic.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:rasadyar_chicken/data/models/response/poultry_science/home_poultry_science/home_poultry_science_model.dart'; -import 'package:rasadyar_chicken/presentation/pages/poultry_science/root/logic.dart'; +import 'package:rasadyar_chicken/features/poultry_science/root/logic.dart'; import 'package:rasadyar_core/core.dart'; import 'package:rasadyar_core/presentation/widget/custom/information_card_widget.dart'; diff --git a/packages/chicken/lib/presentation/pages/poultry_science/home/view.dart b/packages/chicken/lib/features/poultry_science/home/view.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/poultry_science/home/view.dart rename to packages/chicken/lib/features/poultry_science/home/view.dart diff --git a/packages/chicken/lib/presentation/pages/poultry_science/inspection/logic.dart b/packages/chicken/lib/features/poultry_science/inspection/logic.dart similarity index 98% rename from packages/chicken/lib/presentation/pages/poultry_science/inspection/logic.dart rename to packages/chicken/lib/features/poultry_science/inspection/logic.dart index b131553..9fbdd78 100644 --- a/packages/chicken/lib/presentation/pages/poultry_science/inspection/logic.dart +++ b/packages/chicken/lib/features/poultry_science/inspection/logic.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:rasadyar_chicken/data/models/response/hatching/hatching_models.dart'; import 'package:rasadyar_chicken/data/models/response/hatching_report/hatching_report.dart'; -import 'package:rasadyar_chicken/presentation/pages/poultry_science/root/logic.dart'; +import 'package:rasadyar_chicken/features/poultry_science/root/logic.dart'; import 'package:rasadyar_core/core.dart'; class InspectionPoultryScienceLogic extends GetxController { diff --git a/packages/chicken/lib/presentation/pages/poultry_science/inspection/view.dart b/packages/chicken/lib/features/poultry_science/inspection/view.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/poultry_science/inspection/view.dart rename to packages/chicken/lib/features/poultry_science/inspection/view.dart diff --git a/packages/chicken/lib/presentation/pages/poultry_science/killing_registration/logic.dart b/packages/chicken/lib/features/poultry_science/killing_registration/logic.dart similarity index 98% rename from packages/chicken/lib/presentation/pages/poultry_science/killing_registration/logic.dart rename to packages/chicken/lib/features/poultry_science/killing_registration/logic.dart index 42665cc..a5704a0 100644 --- a/packages/chicken/lib/presentation/pages/poultry_science/killing_registration/logic.dart +++ b/packages/chicken/lib/features/poultry_science/killing_registration/logic.dart @@ -7,8 +7,8 @@ import 'package:rasadyar_chicken/data/models/response/kill_house_poultry/kill_ho import 'package:rasadyar_chicken/data/models/response/kill_request_poultry/kill_request_poultry.dart'; import 'package:rasadyar_chicken/data/models/response/poultry_hatching/poultry_hatching.dart'; import 'package:rasadyar_chicken/data/models/response/sell_for_freezing/sell_for_freezing.dart'; -import 'package:rasadyar_chicken/presentation/pages/poultry_science/genocide/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/poultry_science/root/logic.dart'; +import 'package:rasadyar_chicken/features/poultry_science/genocide/logic.dart'; +import 'package:rasadyar_chicken/features/poultry_science/root/logic.dart'; import 'package:rasadyar_core/core.dart'; class KillingRegistrationLogic extends GetxController { diff --git a/packages/chicken/lib/presentation/pages/poultry_science/killing_registration/view.dart b/packages/chicken/lib/features/poultry_science/killing_registration/view.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/poultry_science/killing_registration/view.dart rename to packages/chicken/lib/features/poultry_science/killing_registration/view.dart diff --git a/packages/chicken/lib/presentation/pages/poultry_science/poultry_action/logic.dart b/packages/chicken/lib/features/poultry_science/poultry_action/logic.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/poultry_science/poultry_action/logic.dart rename to packages/chicken/lib/features/poultry_science/poultry_action/logic.dart diff --git a/packages/chicken/lib/presentation/pages/poultry_science/poultry_action/view.dart b/packages/chicken/lib/features/poultry_science/poultry_action/view.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/poultry_science/poultry_action/view.dart rename to packages/chicken/lib/features/poultry_science/poultry_action/view.dart diff --git a/packages/chicken/lib/presentation/pages/poultry_science/root/logic.dart b/packages/chicken/lib/features/poultry_science/root/logic.dart similarity index 94% rename from packages/chicken/lib/presentation/pages/poultry_science/root/logic.dart rename to packages/chicken/lib/features/poultry_science/root/logic.dart index 811d2d3..84d39b6 100644 --- a/packages/chicken/lib/presentation/pages/poultry_science/root/logic.dart +++ b/packages/chicken/lib/features/poultry_science/root/logic.dart @@ -2,8 +2,8 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:rasadyar_chicken/data/di/chicken_di.dart'; import 'package:rasadyar_chicken/data/repositories/poultry_science/poultry_science_repository.dart'; -import 'package:rasadyar_chicken/presentation/pages/common/profile/view.dart'; -import 'package:rasadyar_chicken/presentation/pages/poultry_science/home/view.dart'; +import 'package:rasadyar_chicken/features/common/profile/view.dart'; +import 'package:rasadyar_chicken/features/poultry_science/home/view.dart'; import 'package:rasadyar_chicken/presentation/routes/pages.dart'; import 'package:rasadyar_chicken/presentation/routes/routes.dart'; import 'package:rasadyar_chicken/presentation/utils/nested_keys_utils.dart'; diff --git a/packages/chicken/lib/presentation/pages/poultry_science/root/view.dart b/packages/chicken/lib/features/poultry_science/root/view.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/poultry_science/root/view.dart rename to packages/chicken/lib/features/poultry_science/root/view.dart diff --git a/packages/chicken/lib/presentation/pages/steward/buy/logic.dart b/packages/chicken/lib/features/steward/buy/logic.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/steward/buy/logic.dart rename to packages/chicken/lib/features/steward/buy/logic.dart diff --git a/packages/chicken/lib/presentation/pages/steward/buy/view.dart b/packages/chicken/lib/features/steward/buy/view.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/steward/buy/view.dart rename to packages/chicken/lib/features/steward/buy/view.dart diff --git a/packages/chicken/lib/presentation/pages/steward/buy_in_province/logic.dart b/packages/chicken/lib/features/steward/buy_in_province/logic.dart similarity index 88% rename from packages/chicken/lib/presentation/pages/steward/buy_in_province/logic.dart rename to packages/chicken/lib/features/steward/buy_in_province/logic.dart index 28f5734..9e88adb 100644 --- a/packages/chicken/lib/presentation/pages/steward/buy_in_province/logic.dart +++ b/packages/chicken/lib/features/steward/buy_in_province/logic.dart @@ -1,7 +1,7 @@ -import 'package:rasadyar_chicken/presentation/pages/steward/buy/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/steward/buy_in_province_all/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/steward/buy_in_province_waiting/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/steward/root/logic.dart'; +import 'package:rasadyar_chicken/features/steward/buy/logic.dart'; +import 'package:rasadyar_chicken/features/steward/buy_in_province_all/logic.dart'; +import 'package:rasadyar_chicken/features/steward/buy_in_province_waiting/logic.dart'; +import 'package:rasadyar_chicken/features/steward/root/logic.dart'; import 'package:rasadyar_core/core.dart'; class BuyInProvinceLogic extends GetxController { diff --git a/packages/chicken/lib/presentation/pages/steward/buy_in_province/view.dart b/packages/chicken/lib/features/steward/buy_in_province/view.dart similarity index 57% rename from packages/chicken/lib/presentation/pages/steward/buy_in_province/view.dart rename to packages/chicken/lib/features/steward/buy_in_province/view.dart index 3617cb5..9a718ff 100644 --- a/packages/chicken/lib/presentation/pages/steward/buy_in_province/view.dart +++ b/packages/chicken/lib/features/steward/buy_in_province/view.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; -import 'package:rasadyar_chicken/presentation/pages/steward/buy_in_province_all/view.dart'; -import 'package:rasadyar_chicken/presentation/pages/steward/buy_in_province_waiting/view.dart'; +import 'package:rasadyar_chicken/features/steward/buy_in_province_all/view.dart'; +import 'package:rasadyar_chicken/features/steward/buy_in_province_waiting/view.dart'; import 'package:rasadyar_chicken/presentation/utils/nested_keys_utils.dart'; import 'package:rasadyar_chicken/presentation/widget/base_page/view.dart'; import 'package:rasadyar_chicken/presentation/widget/inventory/inventory_widget.dart'; @@ -22,21 +22,58 @@ class BuyInProvincePage extends GetView { onFilterTap: () { Get.bottomSheet(filterBottomSheet()); }, - onRefresh: controller.onRefresh, + onRefresh: controller.onRefresh, child: Column( children: [ - ObxValue((data) { - return InventoryWidget(inventoryModel: data.value!); - }, controller.rootLogic.inventoryModel), - + Obx(() { + var list = [ + InventoryItemData( + title: 'موجودی انبار', + value: controller + .rootLogic + .inventoryModel + .value + ?.totalRemainWeight + ?.separatedByCommaFa, + color: const Color(0xFFEAFBFC), + ), + InventoryItemData( + title: 'مانده دولتی', + value: controller + .rootLogic + .inventoryModel + .value + ?.totalGovernmentalRemainWeight + ?.separatedByCommaFa, + + color: const Color(0xFFF5ECEE), + ), + InventoryItemData( + title: 'مانده آزاد', + value: controller + .rootLogic + .inventoryModel + .value + ?.totalFreeRemainWeight + ?.separatedByCommaFa, + + color: const Color(0xFFF1E7FF), + ), + ]; + + return InventoryWidget(inventoryModel: list); + }), + segmentWidget(), ObxValue((index) { return Expanded( - child: index.value == 0 ? BuyInProvinceWaitingPage() : BuyInProvinceAllPage(), + child: index.value == 0 + ? BuyInProvinceWaitingPage() + : BuyInProvinceAllPage(), ); }, controller.selectedSegmentIndex), ], - ) + ), ); } @@ -52,7 +89,8 @@ class BuyInProvincePage extends GetView { borderColor: const Color(0xFFB4B4B4), selectedBorderColor: AppColor.blueNormal, selectedBackgroundColor: AppColor.blueLight, - onSegmentSelected: (index) => controller.selectedSegmentIndex.value = index, + onSegmentSelected: (index) => + controller.selectedSegmentIndex.value = index, backgroundColor: AppColor.whiteGreyNormal, ), ), @@ -67,14 +105,18 @@ class BuyInProvincePage extends GetView { child: Column( spacing: 16, children: [ - Text('فیلترها', style: AppFonts.yekan16Bold.copyWith(color: AppColor.blueNormal)), + Text( + 'فیلترها', + style: AppFonts.yekan16Bold.copyWith(color: AppColor.blueNormal), + ), Row( spacing: 8, children: [ Expanded( child: dateFilterWidget( date: controller.fromDateFilter, - onChanged: (jalali) => controller.fromDateFilter.value = jalali, + onChanged: (jalali) => + controller.fromDateFilter.value = jalali, ), ), Expanded( diff --git a/packages/chicken/lib/presentation/pages/steward/buy_in_province_all/logic.dart b/packages/chicken/lib/features/steward/buy_in_province_all/logic.dart similarity index 98% rename from packages/chicken/lib/presentation/pages/steward/buy_in_province_all/logic.dart rename to packages/chicken/lib/features/steward/buy_in_province_all/logic.dart index 0c23aa9..f301043 100644 --- a/packages/chicken/lib/presentation/pages/steward/buy_in_province_all/logic.dart +++ b/packages/chicken/lib/features/steward/buy_in_province_all/logic.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:rasadyar_chicken/data/models/request/steward_allocation/steward_allocation_request.dart'; import 'package:rasadyar_chicken/data/models/response/waiting_arrival/waiting_arrival.dart'; -import 'package:rasadyar_chicken/presentation/pages/steward/root/logic.dart'; +import 'package:rasadyar_chicken/features/steward/root/logic.dart'; import 'package:rasadyar_core/core.dart'; class BuyInProvinceAllLogic extends GetxController { diff --git a/packages/chicken/lib/presentation/pages/steward/buy_in_province_all/view.dart b/packages/chicken/lib/features/steward/buy_in_province_all/view.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/steward/buy_in_province_all/view.dart rename to packages/chicken/lib/features/steward/buy_in_province_all/view.dart diff --git a/packages/chicken/lib/presentation/pages/steward/buy_in_province_waiting/logic.dart b/packages/chicken/lib/features/steward/buy_in_province_waiting/logic.dart similarity index 98% rename from packages/chicken/lib/presentation/pages/steward/buy_in_province_waiting/logic.dart rename to packages/chicken/lib/features/steward/buy_in_province_waiting/logic.dart index a8dab30..01b9d4e 100644 --- a/packages/chicken/lib/presentation/pages/steward/buy_in_province_waiting/logic.dart +++ b/packages/chicken/lib/features/steward/buy_in_province_waiting/logic.dart @@ -3,7 +3,7 @@ import 'dart:async'; import 'package:flutter/material.dart'; import 'package:rasadyar_chicken/data/models/request/steward_allocation/steward_allocation_request.dart'; import 'package:rasadyar_chicken/data/models/response/waiting_arrival/waiting_arrival.dart'; -import 'package:rasadyar_chicken/presentation/pages/steward/root/logic.dart'; +import 'package:rasadyar_chicken/features/steward/root/logic.dart'; import 'package:rasadyar_chicken/presentation/utils/utils.dart'; import 'package:rasadyar_core/core.dart'; diff --git a/packages/chicken/lib/presentation/pages/steward/buy_in_province_waiting/view.dart b/packages/chicken/lib/features/steward/buy_in_province_waiting/view.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/steward/buy_in_province_waiting/view.dart rename to packages/chicken/lib/features/steward/buy_in_province_waiting/view.dart diff --git a/packages/chicken/lib/presentation/pages/steward/buy_out_of_province/logic.dart b/packages/chicken/lib/features/steward/buy_out_of_province/logic.dart similarity index 97% rename from packages/chicken/lib/presentation/pages/steward/buy_out_of_province/logic.dart rename to packages/chicken/lib/features/steward/buy_out_of_province/logic.dart index e465673..82be7b4 100644 --- a/packages/chicken/lib/presentation/pages/steward/buy_out_of_province/logic.dart +++ b/packages/chicken/lib/features/steward/buy_out_of_province/logic.dart @@ -3,9 +3,9 @@ import 'package:rasadyar_chicken/data/models/request/create_steward_free_bar/cre import 'package:rasadyar_chicken/data/models/response/iran_province_city/iran_province_city_model.dart'; import 'package:rasadyar_chicken/data/models/response/roles_products/roles_products.dart'; import 'package:rasadyar_chicken/data/models/response/steward_free_bar/steward_free_bar.dart'; -import 'package:rasadyar_chicken/presentation/pages/steward/buy/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/steward/root/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/steward/sale/logic.dart'; +import 'package:rasadyar_chicken/features/steward/buy/logic.dart'; +import 'package:rasadyar_chicken/features/steward/root/logic.dart'; +import 'package:rasadyar_chicken/features/steward/sale/logic.dart'; import 'package:rasadyar_chicken/presentation/utils/utils.dart'; import 'package:rasadyar_core/core.dart'; @@ -200,6 +200,7 @@ class BuyOutOfProvinceLogic extends GetxController { numberOfCarcasses: int.parse(carcassCountController.text.clearComma), barImage: _base64Image.value, date: DateTime.now().formattedYHMS, + distributionType: 'App', ); await rootLogic.chickenRepository.createStewardPurchasesOutSideOfTheProvince( token: rootLogic.tokenService.accessToken.value!, diff --git a/packages/chicken/lib/presentation/pages/steward/buy_out_of_province/view.dart b/packages/chicken/lib/features/steward/buy_out_of_province/view.dart similarity index 94% rename from packages/chicken/lib/presentation/pages/steward/buy_out_of_province/view.dart rename to packages/chicken/lib/features/steward/buy_out_of_province/view.dart index b7b0bf8..9ae5182 100644 --- a/packages/chicken/lib/presentation/pages/steward/buy_out_of_province/view.dart +++ b/packages/chicken/lib/features/steward/buy_out_of_province/view.dart @@ -33,9 +33,44 @@ class BuyOutOfProvincePage extends GetView { Positioned.fill( child: Column( children: [ - ObxValue((data) { - return InventoryWidget(inventoryModel: data.value!); - }, controller.rootLogic.inventoryModel), + Obx(() { + var list = [ + InventoryItemData( + title: 'موجودی انبار', + value: controller + .rootLogic + .inventoryModel + .value + ?.totalRemainWeight + ?.separatedByCommaFa, + color: const Color(0xFFEAFBFC), + ), + InventoryItemData( + title: 'مانده دولتی', + value: controller + .rootLogic + .inventoryModel + .value + ?.totalGovernmentalRemainWeight + ?.separatedByCommaFa, + + color: const Color(0xFFF5ECEE), + ), + InventoryItemData( + title: 'مانده آزاد', + value: controller + .rootLogic + .inventoryModel + .value + ?.totalFreeRemainWeight + ?.separatedByCommaFa, + + color: const Color(0xFFF1E7FF), + ), + ]; + + return InventoryWidget(inventoryModel: list); + }), ObxValue((data) { return RPaginatedListView( diff --git a/packages/chicken/lib/presentation/pages/steward/home/logic.dart b/packages/chicken/lib/features/steward/home/logic.dart similarity index 97% rename from packages/chicken/lib/presentation/pages/steward/home/logic.dart rename to packages/chicken/lib/features/steward/home/logic.dart index ce6abfa..5f56fe6 100644 --- a/packages/chicken/lib/presentation/pages/steward/home/logic.dart +++ b/packages/chicken/lib/features/steward/home/logic.dart @@ -1,6 +1,6 @@ import 'package:rasadyar_chicken/data/models/response/bar_information/bar_information.dart'; import 'package:rasadyar_chicken/data/models/response/kill_house_distribution_info/kill_house_distribution_info.dart'; -import 'package:rasadyar_chicken/presentation/pages/steward/root/logic.dart'; +import 'package:rasadyar_chicken/features/steward/root/logic.dart'; import 'package:rasadyar_core/core.dart'; class HomeLogic extends GetxController { diff --git a/packages/chicken/lib/presentation/pages/steward/home/view.dart b/packages/chicken/lib/features/steward/home/view.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/steward/home/view.dart rename to packages/chicken/lib/features/steward/home/view.dart diff --git a/packages/chicken/lib/presentation/pages/steward/root/logic.dart b/packages/chicken/lib/features/steward/root/logic.dart similarity index 94% rename from packages/chicken/lib/presentation/pages/steward/root/logic.dart rename to packages/chicken/lib/features/steward/root/logic.dart index 0719b3f..bfd6b5a 100644 --- a/packages/chicken/lib/presentation/pages/steward/root/logic.dart +++ b/packages/chicken/lib/features/steward/root/logic.dart @@ -12,11 +12,11 @@ import 'package:rasadyar_chicken/data/models/response/steward_sales_info_dashboa import 'package:rasadyar_chicken/data/models/response/waiting_arrival/waiting_arrival.dart' hide ProductModel; import 'package:rasadyar_chicken/data/repositories/chicken/chicken_repository.dart'; -import 'package:rasadyar_chicken/presentation/pages/common/profile/view.dart'; -import 'package:rasadyar_chicken/presentation/pages/steward/buy/view.dart'; -import 'package:rasadyar_chicken/presentation/pages/steward/home/view.dart'; -import 'package:rasadyar_chicken/presentation/pages/steward/sale/view.dart'; -import 'package:rasadyar_chicken/presentation/pages/steward/segmentation/view.dart'; +import 'package:rasadyar_chicken/features/common/profile/view.dart'; +import 'package:rasadyar_chicken/features/steward/buy/view.dart'; +import 'package:rasadyar_chicken/features/steward/home/view.dart'; +import 'package:rasadyar_chicken/features/steward/sale/view.dart'; +import 'package:rasadyar_chicken/features/steward/segmentation/view.dart'; import 'package:rasadyar_chicken/presentation/routes/routes.dart'; import 'package:rasadyar_chicken/presentation/utils/nested_keys_utils.dart'; import 'package:rasadyar_chicken/presentation/utils/utils.dart'; @@ -123,10 +123,10 @@ class StewardRootLogic extends GetxController { _inventoryCancelToken = CancelToken(); await safeCall?>( - call: () async => await chickenRepository.getRolesProduct( + call: () async => await chickenRepository.getRolesProducts( token: tokenService.accessToken.value!, cancelToken: _inventoryCancelToken, - role: 'Steward', + queryParameters: buildRawQueryParams(role: 'Steward'), ), onSuccess: (result) { if (result != null) { diff --git a/packages/chicken/lib/presentation/pages/steward/root/view.dart b/packages/chicken/lib/features/steward/root/view.dart similarity index 99% rename from packages/chicken/lib/presentation/pages/steward/root/view.dart rename to packages/chicken/lib/features/steward/root/view.dart index 747243a..668c910 100644 --- a/packages/chicken/lib/presentation/pages/steward/root/view.dart +++ b/packages/chicken/lib/features/steward/root/view.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:rasadyar_chicken/chicken.dart'; import 'package:rasadyar_chicken/data/models/response/kill_house_distribution_info/kill_house_distribution_info.dart'; -import 'package:rasadyar_chicken/presentation/pages/steward/root/logic.dart'; +import 'package:rasadyar_chicken/features/steward/root/logic.dart'; import 'package:rasadyar_chicken/presentation/utils/nested_keys_utils.dart'; import 'package:rasadyar_chicken/presentation/widget/base_page/view.dart'; import 'package:rasadyar_core/core.dart'; diff --git a/packages/chicken/lib/presentation/pages/steward/sale/logic.dart b/packages/chicken/lib/features/steward/sale/logic.dart similarity index 98% rename from packages/chicken/lib/presentation/pages/steward/sale/logic.dart rename to packages/chicken/lib/features/steward/sale/logic.dart index cbb403a..2111b44 100644 --- a/packages/chicken/lib/presentation/pages/steward/sale/logic.dart +++ b/packages/chicken/lib/features/steward/sale/logic.dart @@ -5,7 +5,7 @@ import 'package:rasadyar_chicken/data/models/response/allocated_made/allocated_m import 'package:rasadyar_chicken/data/models/response/guild/guild_model.dart'; import 'package:rasadyar_chicken/data/models/response/roles_products/roles_products.dart'; import 'package:rasadyar_chicken/data/models/response/steward_free_bar_dashboard/steward_free_bar_dashboard.dart'; -import 'package:rasadyar_chicken/presentation/pages/steward/root/logic.dart'; +import 'package:rasadyar_chicken/features/steward/root/logic.dart'; import 'package:rasadyar_core/core.dart'; class SaleLogic extends GetxController { diff --git a/packages/chicken/lib/presentation/pages/steward/sale/view.dart b/packages/chicken/lib/features/steward/sale/view.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/steward/sale/view.dart rename to packages/chicken/lib/features/steward/sale/view.dart diff --git a/packages/chicken/lib/presentation/pages/steward/sales_in_province/logic.dart b/packages/chicken/lib/features/steward/sales_in_province/logic.dart similarity index 99% rename from packages/chicken/lib/presentation/pages/steward/sales_in_province/logic.dart rename to packages/chicken/lib/features/steward/sales_in_province/logic.dart index 230ba59..f521f0e 100644 --- a/packages/chicken/lib/presentation/pages/steward/sales_in_province/logic.dart +++ b/packages/chicken/lib/features/steward/sales_in_province/logic.dart @@ -9,8 +9,8 @@ import 'package:rasadyar_chicken/data/models/response/guild/guild_model.dart'; import 'package:rasadyar_chicken/data/models/response/guild_profile/guild_profile.dart'; import 'package:rasadyar_chicken/data/models/response/roles_products/roles_products.dart'; import 'package:rasadyar_chicken/data/models/response/steward_remain_weight/steward_remain_weight.dart'; -import 'package:rasadyar_chicken/presentation/pages/steward/root/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/steward/sale/logic.dart'; +import 'package:rasadyar_chicken/features/steward/root/logic.dart'; +import 'package:rasadyar_chicken/features/steward/sale/logic.dart'; import 'package:rasadyar_chicken/presentation/utils/string_utils.dart'; import 'package:rasadyar_chicken/presentation/utils/utils.dart'; import 'package:rasadyar_core/core.dart'; @@ -357,6 +357,7 @@ class SalesInProvinceLogic extends GetxController { productKey: selectedProductModel.value?.key, date: DateTime.now().formattedDashedGregorian, type: "manual", + distributionType: 'App', ); } diff --git a/packages/chicken/lib/presentation/pages/steward/sales_in_province/view.dart b/packages/chicken/lib/features/steward/sales_in_province/view.dart similarity index 92% rename from packages/chicken/lib/presentation/pages/steward/sales_in_province/view.dart rename to packages/chicken/lib/features/steward/sales_in_province/view.dart index d2f94dd..03ba693 100644 --- a/packages/chicken/lib/presentation/pages/steward/sales_in_province/view.dart +++ b/packages/chicken/lib/features/steward/sales_in_province/view.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:rasadyar_chicken/data/models/response/allocated_made/allocated_made.dart'; -import 'package:rasadyar_chicken/presentation/pages/steward/sales_in_province/widgets/cu_sale_in_provience.dart'; +import 'package:rasadyar_chicken/features/steward/sales_in_province/widgets/cu_sale_in_provience.dart'; import 'package:rasadyar_chicken/presentation/utils/nested_keys_utils.dart'; import 'package:rasadyar_chicken/presentation/utils/string_utils.dart'; import 'package:rasadyar_chicken/presentation/widget/base_page/view.dart'; @@ -28,9 +28,44 @@ class SalesInProvincePage extends GetView { Positioned.fill( child: Column( children: [ - ObxValue((data) { - return InventoryWidget(inventoryModel: data.value!); - }, controller.rootLogic.inventoryModel), + Obx(() { + var list = [ + InventoryItemData( + title: 'موجودی انبار', + value: controller + .rootLogic + .inventoryModel + .value + ?.totalRemainWeight + ?.separatedByCommaFa, + color: const Color(0xFFEAFBFC), + ), + InventoryItemData( + title: 'مانده دولتی', + value: controller + .rootLogic + .inventoryModel + .value + ?.totalGovernmentalRemainWeight + ?.separatedByCommaFa, + + color: const Color(0xFFF5ECEE), + ), + InventoryItemData( + title: 'مانده آزاد', + value: controller + .rootLogic + .inventoryModel + .value + ?.totalFreeRemainWeight + ?.separatedByCommaFa, + + color: const Color(0xFFF1E7FF), + ), + ]; + + return InventoryWidget(inventoryModel: list); + }), Expanded( child: ObxValue((data) { diff --git a/packages/chicken/lib/presentation/pages/steward/sales_in_province/widgets/cu_sale_in_provience.dart b/packages/chicken/lib/features/steward/sales_in_province/widgets/cu_sale_in_provience.dart similarity index 99% rename from packages/chicken/lib/presentation/pages/steward/sales_in_province/widgets/cu_sale_in_provience.dart rename to packages/chicken/lib/features/steward/sales_in_province/widgets/cu_sale_in_provience.dart index eee86cc..5d5c11b 100644 --- a/packages/chicken/lib/presentation/pages/steward/sales_in_province/widgets/cu_sale_in_provience.dart +++ b/packages/chicken/lib/features/steward/sales_in_province/widgets/cu_sale_in_provience.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:rasadyar_chicken/data/models/response/roles_products/roles_products.dart'; -import 'package:rasadyar_chicken/presentation/pages/steward/sales_in_province/logic.dart'; +import 'package:rasadyar_chicken/features/steward/sales_in_province/logic.dart'; import 'package:rasadyar_core/core.dart'; Widget addOrEditBottomSheet(SalesInProvinceLogic controller, {bool isEditMode = false}) { diff --git a/packages/chicken/lib/presentation/pages/steward/sales_out_of_province/logic.dart b/packages/chicken/lib/features/steward/sales_out_of_province/logic.dart similarity index 97% rename from packages/chicken/lib/presentation/pages/steward/sales_out_of_province/logic.dart rename to packages/chicken/lib/features/steward/sales_out_of_province/logic.dart index 0a53647..6db729a 100644 --- a/packages/chicken/lib/presentation/pages/steward/sales_out_of_province/logic.dart +++ b/packages/chicken/lib/features/steward/sales_out_of_province/logic.dart @@ -6,10 +6,10 @@ import 'package:rasadyar_chicken/data/models/response/out_province_carcasses_buy import 'package:rasadyar_chicken/data/models/response/roles_products/roles_products.dart'; import 'package:rasadyar_chicken/data/models/response/steward_free_sale_bar/steward_free_sale_bar.dart'; import 'package:rasadyar_chicken/data/models/response/steward_remain_weight/steward_remain_weight.dart'; -import 'package:rasadyar_chicken/presentation/pages/steward/root/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/steward/sale/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/steward/sales_out_of_province_buyers/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/steward/sales_out_of_province_sales_list/logic.dart'; +import 'package:rasadyar_chicken/features/steward/root/logic.dart'; +import 'package:rasadyar_chicken/features/steward/sale/logic.dart'; +import 'package:rasadyar_chicken/features/steward/sales_out_of_province_buyers/logic.dart'; +import 'package:rasadyar_chicken/features/steward/sales_out_of_province_sales_list/logic.dart'; import 'package:rasadyar_chicken/presentation/utils/utils.dart'; import 'package:rasadyar_core/core.dart'; @@ -229,7 +229,8 @@ class SalesOutOfProvinceLogic extends GetxController { saleType: saleType.value == 2 ? 'free' : 'exclusive', quota: quotaType.value == 1 ? 'governmental' : 'free', productionDate: productionDate.value?.toDateTime().formattedDashedGregorian, - ); + distributionType: 'App', + ); await safeCall( showError: true, call: () => rootLogic.chickenRepository.createOutProvinceStewardFreeBar( diff --git a/packages/chicken/lib/presentation/pages/steward/sales_out_of_province/view.dart b/packages/chicken/lib/features/steward/sales_out_of_province/view.dart similarity index 96% rename from packages/chicken/lib/presentation/pages/steward/sales_out_of_province/view.dart rename to packages/chicken/lib/features/steward/sales_out_of_province/view.dart index 9b2f322..00fce2d 100644 --- a/packages/chicken/lib/presentation/pages/steward/sales_out_of_province/view.dart +++ b/packages/chicken/lib/features/steward/sales_out_of_province/view.dart @@ -32,9 +32,44 @@ class SalesOutOfProvincePage extends GetView { Positioned.fill( child: Column( children: [ - ObxValue((data) { - return InventoryWidget(inventoryModel: data.value!); - }, controller.rootLogic.inventoryModel), + Obx(() { + var list = [ + InventoryItemData( + title: 'موجودی انبار', + value: controller + .rootLogic + .inventoryModel + .value + ?.totalRemainWeight + ?.separatedByCommaFa, + color: const Color(0xFFEAFBFC), + ), + InventoryItemData( + title: 'مانده دولتی', + value: controller + .rootLogic + .inventoryModel + .value + ?.totalGovernmentalRemainWeight + ?.separatedByCommaFa, + + color: const Color(0xFFF5ECEE), + ), + InventoryItemData( + title: 'مانده آزاد', + value: controller + .rootLogic + .inventoryModel + .value + ?.totalFreeRemainWeight + ?.separatedByCommaFa, + + color: const Color(0xFFF1E7FF), + ), + ]; + + return InventoryWidget(inventoryModel: list); + }), ObxValue((data) { return RPaginatedListView( diff --git a/packages/chicken/lib/presentation/pages/steward/sales_out_of_province_buyers/logic.dart b/packages/chicken/lib/features/steward/sales_out_of_province_buyers/logic.dart similarity index 96% rename from packages/chicken/lib/presentation/pages/steward/sales_out_of_province_buyers/logic.dart rename to packages/chicken/lib/features/steward/sales_out_of_province_buyers/logic.dart index 4a441b4..3efea0a 100644 --- a/packages/chicken/lib/presentation/pages/steward/sales_out_of_province_buyers/logic.dart +++ b/packages/chicken/lib/features/steward/sales_out_of_province_buyers/logic.dart @@ -2,9 +2,9 @@ import 'package:flutter/material.dart'; import 'package:rasadyar_chicken/data/models/response/iran_province_city/iran_province_city_model.dart'; import 'package:rasadyar_chicken/data/models/response/out_province_carcasses_buyer/out_province_carcasses_buyer.dart'; -import 'package:rasadyar_chicken/presentation/pages/steward/root/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/steward/sale/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/steward/sales_out_of_province/logic.dart'; +import 'package:rasadyar_chicken/features/steward/root/logic.dart'; +import 'package:rasadyar_chicken/features/steward/sale/logic.dart'; +import 'package:rasadyar_chicken/features/steward/sales_out_of_province/logic.dart'; import 'package:rasadyar_chicken/presentation/utils/utils.dart'; import 'package:rasadyar_core/core.dart'; diff --git a/packages/chicken/lib/presentation/pages/steward/sales_out_of_province_buyers/view.dart b/packages/chicken/lib/features/steward/sales_out_of_province_buyers/view.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/steward/sales_out_of_province_buyers/view.dart rename to packages/chicken/lib/features/steward/sales_out_of_province_buyers/view.dart diff --git a/packages/chicken/lib/presentation/pages/steward/sales_out_of_province_sales_list/logic.dart b/packages/chicken/lib/features/steward/sales_out_of_province_sales_list/logic.dart similarity index 96% rename from packages/chicken/lib/presentation/pages/steward/sales_out_of_province_sales_list/logic.dart rename to packages/chicken/lib/features/steward/sales_out_of_province_sales_list/logic.dart index f10fedc..9c504f9 100644 --- a/packages/chicken/lib/presentation/pages/steward/sales_out_of_province_sales_list/logic.dart +++ b/packages/chicken/lib/features/steward/sales_out_of_province_sales_list/logic.dart @@ -4,9 +4,9 @@ import 'package:rasadyar_chicken/data/models/response/iran_province_city/iran_pr import 'package:rasadyar_chicken/data/models/response/out_province_carcasses_buyer/out_province_carcasses_buyer.dart'; import 'package:rasadyar_chicken/data/models/response/roles_products/roles_products.dart'; import 'package:rasadyar_chicken/data/models/response/steward_free_sale_bar/steward_free_sale_bar.dart'; -import 'package:rasadyar_chicken/presentation/pages/steward/root/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/steward/sale/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/steward/sales_out_of_province_buyers/logic.dart'; +import 'package:rasadyar_chicken/features/steward/root/logic.dart'; +import 'package:rasadyar_chicken/features/steward/sale/logic.dart'; +import 'package:rasadyar_chicken/features/steward/sales_out_of_province_buyers/logic.dart'; import 'package:rasadyar_chicken/presentation/utils/utils.dart'; import 'package:rasadyar_core/core.dart'; diff --git a/packages/chicken/lib/presentation/pages/steward/sales_out_of_province_sales_list/view.dart b/packages/chicken/lib/features/steward/sales_out_of_province_sales_list/view.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/steward/sales_out_of_province_sales_list/view.dart rename to packages/chicken/lib/features/steward/sales_out_of_province_sales_list/view.dart diff --git a/packages/chicken/lib/presentation/pages/steward/segmentation/logic.dart b/packages/chicken/lib/features/steward/segmentation/logic.dart similarity index 98% rename from packages/chicken/lib/presentation/pages/steward/segmentation/logic.dart rename to packages/chicken/lib/features/steward/segmentation/logic.dart index efae2a0..64b6669 100644 --- a/packages/chicken/lib/presentation/pages/steward/segmentation/logic.dart +++ b/packages/chicken/lib/features/steward/segmentation/logic.dart @@ -5,7 +5,7 @@ import 'package:rasadyar_chicken/data/models/response/guild/guild_model.dart'; import 'package:rasadyar_chicken/data/models/response/roles_products/roles_products.dart'; import 'package:rasadyar_chicken/data/models/response/segmentation_model/segmentation_model.dart'; import 'package:rasadyar_chicken/data/models/response/steward_remain_weight/steward_remain_weight.dart'; -import 'package:rasadyar_chicken/presentation/pages/steward/root/logic.dart'; +import 'package:rasadyar_chicken/features/steward/root/logic.dart'; import 'package:rasadyar_chicken/presentation/utils/utils.dart'; import 'package:rasadyar_core/core.dart'; @@ -228,6 +228,8 @@ class SegmentationLogic extends GetxController { weight: int.tryParse(weightController.text.clearComma) ?? 0, saleType: priceType.value == 1 ? 'governmental' : 'free', quota: quotaType.value == 1 ? 'governmental' : 'free', + distributionType: 'App', + productionDate: productionDate.value?.toDateTime().formattedDashedGregorian, ); if (segmentType.value == 2) { segmentationModel = segmentationModel.copyWith(guildKey: selectedGuildModel.value?.key); diff --git a/packages/chicken/lib/presentation/pages/steward/segmentation/view.dart b/packages/chicken/lib/features/steward/segmentation/view.dart similarity index 99% rename from packages/chicken/lib/presentation/pages/steward/segmentation/view.dart rename to packages/chicken/lib/features/steward/segmentation/view.dart index 0fb9a04..46868f5 100644 --- a/packages/chicken/lib/presentation/pages/steward/segmentation/view.dart +++ b/packages/chicken/lib/features/steward/segmentation/view.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:rasadyar_chicken/data/models/response/segmentation_model/segmentation_model.dart'; -import 'package:rasadyar_chicken/presentation/pages/steward/segmentation/widgets/cu_bottom_sheet.dart'; +import 'package:rasadyar_chicken/features/steward/segmentation/widgets/cu_bottom_sheet.dart'; import 'package:rasadyar_chicken/presentation/widget/base_page/view.dart'; import 'package:rasadyar_chicken/presentation/widget/filter_bottom_sheet.dart'; import 'package:rasadyar_core/core.dart'; diff --git a/packages/chicken/lib/presentation/pages/steward/segmentation/widgets/cu_bottom_sheet.dart b/packages/chicken/lib/features/steward/segmentation/widgets/cu_bottom_sheet.dart similarity index 99% rename from packages/chicken/lib/presentation/pages/steward/segmentation/widgets/cu_bottom_sheet.dart rename to packages/chicken/lib/features/steward/segmentation/widgets/cu_bottom_sheet.dart index f00cf6c..defd318 100644 --- a/packages/chicken/lib/presentation/pages/steward/segmentation/widgets/cu_bottom_sheet.dart +++ b/packages/chicken/lib/features/steward/segmentation/widgets/cu_bottom_sheet.dart @@ -2,7 +2,7 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:rasadyar_chicken/data/models/response/guild/guild_model.dart'; import 'package:rasadyar_chicken/data/models/response/roles_products/roles_products.dart'; -import 'package:rasadyar_chicken/presentation/pages/steward/segmentation/logic.dart'; +import 'package:rasadyar_chicken/features/steward/segmentation/logic.dart'; import 'package:rasadyar_core/core.dart'; Widget addOrEditBottomSheet(SegmentationLogic controller, {bool isOnEdit = false}) { diff --git a/packages/chicken/lib/presentation/pages/steward/steward.dart b/packages/chicken/lib/features/steward/steward.dart similarity index 100% rename from packages/chicken/lib/presentation/pages/steward/steward.dart rename to packages/chicken/lib/features/steward/steward.dart diff --git a/packages/chicken/lib/presentation/routes/global_binding.dart b/packages/chicken/lib/presentation/routes/global_binding.dart index 2db71cc..61e35f6 100644 --- a/packages/chicken/lib/presentation/routes/global_binding.dart +++ b/packages/chicken/lib/presentation/routes/global_binding.dart @@ -1,4 +1,4 @@ -import 'package:rasadyar_chicken/presentation/pages/common/profile/logic.dart'; +import 'package:rasadyar_chicken/features/common/profile/logic.dart'; import 'package:rasadyar_core/core.dart'; class GlobalBinding extends Bindings { diff --git a/packages/chicken/lib/presentation/routes/pages.dart b/packages/chicken/lib/presentation/routes/pages.dart index 502a45a..bce66a1 100644 --- a/packages/chicken/lib/presentation/routes/pages.dart +++ b/packages/chicken/lib/presentation/routes/pages.dart @@ -1,31 +1,32 @@ -import 'package:rasadyar_chicken/presentation/pages/common/auth/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/common/auth/view.dart'; -import 'package:rasadyar_chicken/presentation/pages/common/role/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/common/role/view.dart'; -import 'package:rasadyar_chicken/presentation/pages/kill_house/action/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/kill_house/action/view.dart'; -import 'package:rasadyar_chicken/presentation/pages/kill_house/root/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/kill_house/root/view.dart'; -import 'package:rasadyar_chicken/presentation/pages/kill_house/submit_request/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/kill_house/submit_request/view.dart'; -import 'package:rasadyar_chicken/presentation/pages/poultry_farm_inspection/poultry_farm_inspection.dart'; -import 'package:rasadyar_chicken/presentation/pages/poultry_science/active_hatching/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/poultry_science/active_hatching/view.dart'; -import 'package:rasadyar_chicken/presentation/pages/poultry_science/farm/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/poultry_science/farm/view.dart'; -import 'package:rasadyar_chicken/presentation/pages/poultry_science/genocide/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/poultry_science/genocide/view.dart'; -import 'package:rasadyar_chicken/presentation/pages/poultry_science/home/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/poultry_science/inspection/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/poultry_science/inspection/view.dart'; -import 'package:rasadyar_chicken/presentation/pages/poultry_science/killing_registration/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/poultry_science/killing_registration/view.dart'; -import 'package:rasadyar_chicken/presentation/pages/poultry_science/poultry_action/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/poultry_science/poultry_action/view.dart'; -import 'package:rasadyar_chicken/presentation/pages/poultry_science/root/logic.dart'; -import 'package:rasadyar_chicken/presentation/pages/poultry_science/root/view.dart'; -import 'package:rasadyar_chicken/presentation/pages/steward/steward.dart'; -import 'package:rasadyar_chicken/presentation/pages/kill_house/warehouse_and_distribution/warehouse_and_distribution.dart' +import 'package:rasadyar_chicken/features/common/auth/logic.dart'; +import 'package:rasadyar_chicken/features/common/auth/view.dart'; +import 'package:rasadyar_chicken/features/common/role/logic.dart'; +import 'package:rasadyar_chicken/features/common/role/view.dart'; +import 'package:rasadyar_chicken/features/kill_house/action/logic.dart'; +import 'package:rasadyar_chicken/features/kill_house/action/view.dart'; +import 'package:rasadyar_chicken/features/kill_house/root/logic.dart'; +import 'package:rasadyar_chicken/features/kill_house/root/view.dart'; +import 'package:rasadyar_chicken/features/kill_house/submit_request/logic.dart'; +import 'package:rasadyar_chicken/features/kill_house/submit_request/view.dart'; +import 'package:rasadyar_chicken/features/kill_house/warehouse_and_distribution/buy_in_province_entered/logic.dart'; +import 'package:rasadyar_chicken/features/poultry_farm_inspection/poultry_farm_inspection.dart'; +import 'package:rasadyar_chicken/features/poultry_science/active_hatching/logic.dart'; +import 'package:rasadyar_chicken/features/poultry_science/active_hatching/view.dart'; +import 'package:rasadyar_chicken/features/poultry_science/farm/logic.dart'; +import 'package:rasadyar_chicken/features/poultry_science/farm/view.dart'; +import 'package:rasadyar_chicken/features/poultry_science/genocide/logic.dart'; +import 'package:rasadyar_chicken/features/poultry_science/genocide/view.dart'; +import 'package:rasadyar_chicken/features/poultry_science/home/logic.dart'; +import 'package:rasadyar_chicken/features/poultry_science/inspection/logic.dart'; +import 'package:rasadyar_chicken/features/poultry_science/inspection/view.dart'; +import 'package:rasadyar_chicken/features/poultry_science/killing_registration/logic.dart'; +import 'package:rasadyar_chicken/features/poultry_science/killing_registration/view.dart'; +import 'package:rasadyar_chicken/features/poultry_science/poultry_action/logic.dart'; +import 'package:rasadyar_chicken/features/poultry_science/poultry_action/view.dart'; +import 'package:rasadyar_chicken/features/poultry_science/root/logic.dart'; +import 'package:rasadyar_chicken/features/poultry_science/root/view.dart'; +import 'package:rasadyar_chicken/features/steward/steward.dart'; +import 'package:rasadyar_chicken/features/kill_house/warehouse_and_distribution/warehouse_and_distribution.dart' as warehouse; import 'package:rasadyar_chicken/presentation/routes/global_binding.dart'; import 'package:rasadyar_chicken/presentation/routes/routes.dart'; @@ -408,7 +409,7 @@ sealed class ChickenPages { () => warehouse.WarehouseAndDistributionBuyInProvinceWaitingLogic(), ); Get.lazyPut( - () => warehouse.WarehouseAndDistributionBuyInProvinceAllLogic(), + () => warehouse.WarehouseAndDistributionBuyInProvinceEnteredLogic(), ); }), ), diff --git a/packages/chicken/lib/presentation/widget/captcha/view.dart b/packages/chicken/lib/presentation/widget/captcha/view.dart index c9c0d4c..940adc7 100644 --- a/packages/chicken/lib/presentation/widget/captcha/view.dart +++ b/packages/chicken/lib/presentation/widget/captcha/view.dart @@ -2,7 +2,7 @@ import 'dart:math'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; -import 'package:rasadyar_chicken/presentation/pages/common/auth/logic.dart'; +import 'package:rasadyar_chicken/features/common/auth/logic.dart'; import 'package:rasadyar_core/core.dart'; import 'logic.dart'; diff --git a/packages/chicken/lib/presentation/widget/inventory/inventory_widget.dart b/packages/chicken/lib/presentation/widget/inventory/inventory_widget.dart index 73bb2ef..8ce2cdf 100644 --- a/packages/chicken/lib/presentation/widget/inventory/inventory_widget.dart +++ b/packages/chicken/lib/presentation/widget/inventory/inventory_widget.dart @@ -1,10 +1,57 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; -import 'package:rasadyar_chicken/data/models/response/roles_products/roles_products.dart'; import 'package:rasadyar_core/core.dart'; +class InventoryItemData { + final String title; + final String? value; + final String? unit; + final Color? color; + + const InventoryItemData({ + required this.title, + required this.value, + this.unit, + this.color, + }); + + InventoryItemData copyWith({ + String? title, + String? value, + String? unit, + Color? color, + }) { + return InventoryItemData( + title: title ?? this.title, + value: value ?? this.value, + unit: unit ?? this.unit, + color: color ?? this.color, + ); + } + + @override + bool operator ==(Object other) { + if (identical(this, other)) return true; + return other is InventoryItemData && + other.title == title && + other.value == value && + other.unit == unit && + other.color == color; + } + + @override + int get hashCode { + return title.hashCode ^ value.hashCode ^ unit.hashCode ^ color.hashCode; + } + + @override + String toString() { + return 'InventoryItemData(title: $title, value: $value, unit: $unit, color: $color)'; + } +} + class InventoryWidget extends StatelessWidget { - final ProductModel? inventoryModel; + final List inventoryModel; const InventoryWidget({super.key, required this.inventoryModel}); @@ -17,54 +64,31 @@ class InventoryWidget extends StatelessWidget { padding: EdgeInsets.symmetric(horizontal: 8.w), child: Row( spacing: 8.w, - children: [ - _itemList( - title: 'موجودی انبار', - value: inventoryModel?.totalRemainWeight?.separatedByCommaFa, - color: const Color(0xFFEAFBFC), - ), - _itemList( - title: 'مانده دولتی', - value: inventoryModel - ?.totalGovernmentalRemainWeight - ?.separatedByCommaFa, - color: const Color(0xFFF5ECEE), - ), - _itemList( - title: 'مانده آزاد', - value: inventoryModel?.totalFreeRemainWeight?.separatedByCommaFa, - color: const Color(0xFFF1E7FF), - ), - ], + children: inventoryModel.map((item) => _item(item)).toList(), ), ), ); } - Widget _itemList({ - required String title, - required String? value, - String? unit, - Color? color, - }) { + Widget _item(InventoryItemData item) { return Container( width: 125.w, height: 50.h, clipBehavior: Clip.antiAlias, decoration: ShapeDecoration( - color: color ?? Colors.white.withValues(alpha: 0.40), + color: item.color ?? Colors.white.withValues(alpha: 0.40), shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(8)), ), child: Column( children: [ SizedBox(height: 4), Text( - title, + item.title, textAlign: TextAlign.center, style: AppFonts.yekan12.copyWith(color: const Color(0xFF5B5B5B)), ), SizedBox(height: 4), - value == null || value.isEmpty + item.value == null || item.value!.isEmpty ? const Center(child: CupertinoActivityIndicator()) : Padding( padding: EdgeInsets.symmetric(horizontal: 4.w), @@ -73,14 +97,14 @@ class InventoryWidget extends StatelessWidget { mainAxisAlignment: MainAxisAlignment.center, children: [ Text( - value, + item.value!, textAlign: TextAlign.right, style: AppFonts.yekan16.copyWith( color: const Color(0xFF5B5B5B), ), ), Text( - unit ?? 'کیلوگرم', + item.unit ?? 'کیلوگرم', textAlign: TextAlign.center, style: AppFonts.yekan10.copyWith( color: const Color(0xFF5B5B5B), diff --git a/packages/chicken/lib/presentation/widget/steward/widely_used/logic.dart b/packages/chicken/lib/presentation/widget/steward/widely_used/logic.dart index 7964db0..dcaeb11 100644 --- a/packages/chicken/lib/presentation/widget/steward/widely_used/logic.dart +++ b/packages/chicken/lib/presentation/widget/steward/widely_used/logic.dart @@ -1,5 +1,5 @@ -import 'package:rasadyar_chicken/presentation/pages/steward/root/logic.dart'; +import 'package:rasadyar_chicken/features/steward/root/logic.dart'; import 'package:rasadyar_core/core.dart'; enum WidelyUsedType { edit, normal }