feat: new changes in StewardFreeBar model and some change ui

This commit is contained in:
2025-06-17 14:53:03 +03:30
parent cda87cba95
commit fc4295e532
6 changed files with 611 additions and 609 deletions

View File

@@ -1,4 +1,3 @@
import 'package:freezed_annotation/freezed_annotation.dart'; import 'package:freezed_annotation/freezed_annotation.dart';
part 'roles_products.freezed.dart'; part 'roles_products.freezed.dart';
@@ -6,62 +5,63 @@ part 'roles_products.g.dart';
@freezed @freezed
abstract class RolesProductsModel with _$RolesProductsModel { abstract class RolesProductsModel with _$RolesProductsModel {
factory RolesProductsModel({ factory RolesProductsModel({required List<ProductModel> products}) =
required List<ProductModel> products, _RolesProductsModel;
}) = _RolesProductsModel;
factory RolesProductsModel.fromJson(Map<String, dynamic> json) => _$RolesProductsModelFromJson(json); factory RolesProductsModel.fromJson(Map<String, dynamic> json) =>
_$RolesProductsModelFromJson(json);
} }
@freezed @freezed
abstract class ProductModel with _$ProductModel { abstract class ProductModel with _$ProductModel {
factory ProductModel({ factory ProductModel({
int? id, int? id,
String? key, String? key,
String? create_date, // Changed from createDate, removed @JsonKey String? create_date, // Changed from createDate, removed @JsonKey
String? modify_date, // Changed from modifyDate, removed @JsonKey String? modify_date, // Changed from modifyDate, removed @JsonKey
bool? trash, bool? trash,
String? name, String? name,
int? provinceGovernmentalCarcassesQuantity, int? provinceGovernmentalCarcassesQuantity,
int? provinceGovernmentalCarcassesWeight, int? provinceGovernmentalCarcassesWeight,
int? provinceFreeCarcassesQuantity, int? provinceFreeCarcassesQuantity,
int? provinceFreeCarcassesWeight, int? provinceFreeCarcassesWeight,
int? receiveGovernmentalCarcassesQuantity, int? receiveGovernmentalCarcassesQuantity,
int? receiveGovernmentalCarcassesWeight, int? receiveGovernmentalCarcassesWeight,
int? receiveFreeCarcassesQuantity, int? receiveFreeCarcassesQuantity,
int? receiveFreeCarcassesWeight, int? receiveFreeCarcassesWeight,
int? freeBuyingCarcassesQuantity, int? freeBuyingCarcassesQuantity,
int? freeBuyingCarcassesWeight, int? freeBuyingCarcassesWeight,
int? totalGovernmentalCarcassesQuantity, int? totalGovernmentalCarcassesQuantity,
int? totalGovernmentalCarcassesWeight, int? totalGovernmentalCarcassesWeight,
int? totalFreeBarsCarcassesQuantity, int? totalFreeBarsCarcassesQuantity,
int? totalFreeBarsCarcassesWeight, int? totalFreeBarsCarcassesWeight,
double? weightAverage, double? weightAverage,
int? totalCarcassesQuantity, int? totalCarcassesQuantity,
int? totalCarcassesWeight, int? totalCarcassesWeight,
int? freezingQuantity, int? freezingQuantity,
int? freezingWeight, int? freezingWeight,
int? lossWeight, int? lossWeight,
int? outProvinceAllocatedQuantity, int? outProvinceAllocatedQuantity,
int? outProvinceAllocatedWeight, int? outProvinceAllocatedWeight,
int? provinceAllocatedQuantity, int? provinceAllocatedQuantity,
int? provinceAllocatedWeight, int? provinceAllocatedWeight,
int? realAllocatedQuantity, int? realAllocatedQuantity,
int? realAllocatedWeight, int? realAllocatedWeight,
int? coldHouseAllocatedWeight, int? coldHouseAllocatedWeight,
int? posAllocatedWeight, int? posAllocatedWeight,
int? segmentationWeight, int? segmentationWeight,
int? totalRemainQuantity, int? totalRemainQuantity,
int? totalRemainWeight, int? totalRemainWeight,
int? freePrice, int? freePrice,
int? approvedPrice, int? approvedPrice,
bool? approvedPriceStatus, bool? approvedPriceStatus,
dynamic createdBy, dynamic createdBy,
dynamic modifiedBy, dynamic modifiedBy,
int? parentProduct, int? parentProduct,
dynamic killHouse, dynamic killHouse,
int? guild, int? guild,
}) = _ProductModel; }) = _ProductModel;
factory ProductModel.fromJson(Map<String, dynamic> json) => _$ProductModelFromJson(json); factory ProductModel.fromJson(Map<String, dynamic> json) =>
} _$ProductModelFromJson(json);
}

View File

@@ -24,27 +24,27 @@ abstract class Result with _$Result {
dynamic guild, dynamic guild,
Product? product, Product? product,
String? key, String? key,
String? create_date, String? createDate,
String? modify_date, String? modifyDate,
bool? trash, bool? trash,
String? kill_house_name, String? killHouseName,
String? kill_house_mobile, String? killHouseMobile,
String? kill_house_vet_name, String? killHouseVetName,
String? kill_house_vet_mobile, String? killHouseVetMobile,
String? province, String? province,
String? city, String? city,
String? driver_name, String? driverName,
String? driver_mobile, String? driverMobile,
dynamic car, dynamic car,
String? pelak, String? pelak,
int? number_of_carcasses, int? numberOfCarcasses,
int? weight_of_carcasses, double? weightOfCarcasses,
String? bar_image, String? barImage,
String? date, String? date,
bool? temporary_trash, bool? temporaryTrash,
bool? temporary_deleted, bool? temporaryDeleted,
String? created_by, String? createdBy,
String? modified_by, String? modifiedBy,
}) = _Result; }) = _Result;
factory Result.fromJson(Map<String, dynamic> json) => _$ResultFromJson(json); factory Result.fromJson(Map<String, dynamic> json) => _$ResultFromJson(json);
@@ -54,15 +54,15 @@ abstract class Result with _$Result {
abstract class Steward with _$Steward { abstract class Steward with _$Steward {
const factory Steward({ const factory Steward({
User? user, User? user,
String? guilds_name, String? guildsName,
bool? steward, bool? steward,
dynamic allocation_limit, int? allocationLimit,
Address? address, Address? address,
String? license_number, String? licenseNumber,
String? type_activity, String? typeActivity,
String? area_activity, String? areaActivity,
String? guilds_id, String? guildsId,
String? create_date, String? createDate,
}) = _Steward; }) = _Steward;
factory Steward.fromJson(Map<String, dynamic> json) => _$StewardFromJson(json); factory Steward.fromJson(Map<String, dynamic> json) => _$StewardFromJson(json);
@@ -72,22 +72,22 @@ abstract class Steward with _$Steward {
abstract class User with _$User { abstract class User with _$User {
const factory User({ const factory User({
String? fullname, String? fullname,
String? first_name, String? firstName,
String? last_name, String? lastName,
int? base_order, int? baseOrder,
String? mobile, String? mobile,
String? national_id, String? nationalId,
String? national_code, String? nationalCode,
String? key, String? key,
City? city, City? city,
String? unit_name, String? unitName,
String? unit_national_id, String? unitNationalId,
String? unit_registration_number, String? unitRegistrationNumber,
String? unit_economical_number, String? unitEconomicalNumber,
String? unit_province, String? unitProvince,
String? unit_city, String? unitCity,
String? unit_postal_code, String? unitPostalCode,
String? unit_address, String? unitAddress,
}) = _User; }) = _User;
factory User.fromJson(Map<String, dynamic> json) => _$UserFromJson(json); factory User.fromJson(Map<String, dynamic> json) => _$UserFromJson(json);
@@ -98,20 +98,20 @@ abstract class City with _$City {
const factory City({ const factory City({
int? id, int? id,
String? key, String? key,
String? create_date, String? createDate,
String? modify_date, String? modifyDate,
bool? trash, bool? trash,
int? province_id_foreign_key, int? provinceIdForeignKey,
int? city_id_key, int? cityIdKey,
String? name, String? name,
int? product_price, double? productPrice,
bool? province_center, bool? provinceCenter,
int? city_number, int? cityNumber,
String? city_name, String? cityName,
int? province_number, int? provinceNumber,
String? province_name, String? provinceName,
String? created_by, String? createdBy,
String? modified_by, String? modifiedBy,
int? province, int? province,
}) = _City; }) = _City;
@@ -124,7 +124,7 @@ abstract class Address with _$Address {
Province? province, Province? province,
City? city, City? city,
String? address, String? address,
String? postal_code, String? postalCode,
}) = _Address; }) = _Address;
factory Address.fromJson(Map<String, dynamic> json) => _$AddressFromJson(json); factory Address.fromJson(Map<String, dynamic> json) => _$AddressFromJson(json);

View File

@@ -166,7 +166,7 @@ as List<Result>?,
/// @nodoc /// @nodoc
mixin _$Result { mixin _$Result {
int? get id; Steward? get steward; dynamic get guild; Product? get product; String? get key; String? get create_date; String? get modify_date; bool? get trash; String? get kill_house_name; String? get kill_house_mobile; String? get kill_house_vet_name; String? get kill_house_vet_mobile; String? get province; String? get city; String? get driver_name; String? get driver_mobile; dynamic get car; String? get pelak; int? get number_of_carcasses; int? get weight_of_carcasses; String? get bar_image; String? get date; bool? get temporary_trash; bool? get temporary_deleted; String? get created_by; String? get modified_by; int? get id; Steward? get steward; dynamic get guild; Product? get product; String? get key; String? get createDate; String? get modifyDate; bool? get trash; String? get killHouseName; String? get killHouseMobile; String? get killHouseVetName; String? get killHouseVetMobile; String? get province; String? get city; String? get driverName; String? get driverMobile; dynamic get car; String? get pelak; int? get numberOfCarcasses; double? get weightOfCarcasses; String? get barImage; String? get date; bool? get temporaryTrash; bool? get temporaryDeleted; String? get createdBy; String? get modifiedBy;
/// Create a copy of Result /// Create a copy of Result
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false) @JsonKey(includeFromJson: false, includeToJson: false)
@@ -179,16 +179,16 @@ $ResultCopyWith<Result> get copyWith => _$ResultCopyWithImpl<Result>(this as Res
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is Result&&(identical(other.id, id) || other.id == id)&&(identical(other.steward, steward) || other.steward == steward)&&const DeepCollectionEquality().equals(other.guild, guild)&&(identical(other.product, product) || other.product == product)&&(identical(other.key, key) || other.key == key)&&(identical(other.create_date, create_date) || other.create_date == create_date)&&(identical(other.modify_date, modify_date) || other.modify_date == modify_date)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.kill_house_name, kill_house_name) || other.kill_house_name == kill_house_name)&&(identical(other.kill_house_mobile, kill_house_mobile) || other.kill_house_mobile == kill_house_mobile)&&(identical(other.kill_house_vet_name, kill_house_vet_name) || other.kill_house_vet_name == kill_house_vet_name)&&(identical(other.kill_house_vet_mobile, kill_house_vet_mobile) || other.kill_house_vet_mobile == kill_house_vet_mobile)&&(identical(other.province, province) || other.province == province)&&(identical(other.city, city) || other.city == city)&&(identical(other.driver_name, driver_name) || other.driver_name == driver_name)&&(identical(other.driver_mobile, driver_mobile) || other.driver_mobile == driver_mobile)&&const DeepCollectionEquality().equals(other.car, car)&&(identical(other.pelak, pelak) || other.pelak == pelak)&&(identical(other.number_of_carcasses, number_of_carcasses) || other.number_of_carcasses == number_of_carcasses)&&(identical(other.weight_of_carcasses, weight_of_carcasses) || other.weight_of_carcasses == weight_of_carcasses)&&(identical(other.bar_image, bar_image) || other.bar_image == bar_image)&&(identical(other.date, date) || other.date == date)&&(identical(other.temporary_trash, temporary_trash) || other.temporary_trash == temporary_trash)&&(identical(other.temporary_deleted, temporary_deleted) || other.temporary_deleted == temporary_deleted)&&(identical(other.created_by, created_by) || other.created_by == created_by)&&(identical(other.modified_by, modified_by) || other.modified_by == modified_by)); return identical(this, other) || (other.runtimeType == runtimeType&&other is Result&&(identical(other.id, id) || other.id == id)&&(identical(other.steward, steward) || other.steward == steward)&&const DeepCollectionEquality().equals(other.guild, guild)&&(identical(other.product, product) || other.product == product)&&(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.killHouseName, killHouseName) || other.killHouseName == killHouseName)&&(identical(other.killHouseMobile, killHouseMobile) || other.killHouseMobile == killHouseMobile)&&(identical(other.killHouseVetName, killHouseVetName) || other.killHouseVetName == killHouseVetName)&&(identical(other.killHouseVetMobile, killHouseVetMobile) || other.killHouseVetMobile == killHouseVetMobile)&&(identical(other.province, province) || other.province == province)&&(identical(other.city, city) || other.city == city)&&(identical(other.driverName, driverName) || other.driverName == driverName)&&(identical(other.driverMobile, driverMobile) || other.driverMobile == driverMobile)&&const DeepCollectionEquality().equals(other.car, car)&&(identical(other.pelak, pelak) || other.pelak == pelak)&&(identical(other.numberOfCarcasses, numberOfCarcasses) || other.numberOfCarcasses == numberOfCarcasses)&&(identical(other.weightOfCarcasses, weightOfCarcasses) || other.weightOfCarcasses == weightOfCarcasses)&&(identical(other.barImage, barImage) || other.barImage == barImage)&&(identical(other.date, date) || other.date == date)&&(identical(other.temporaryTrash, temporaryTrash) || other.temporaryTrash == temporaryTrash)&&(identical(other.temporaryDeleted, temporaryDeleted) || other.temporaryDeleted == temporaryDeleted)&&(identical(other.createdBy, createdBy) || other.createdBy == createdBy)&&(identical(other.modifiedBy, modifiedBy) || other.modifiedBy == modifiedBy));
} }
@JsonKey(includeFromJson: false, includeToJson: false) @JsonKey(includeFromJson: false, includeToJson: false)
@override @override
int get hashCode => Object.hashAll([runtimeType,id,steward,const DeepCollectionEquality().hash(guild),product,key,create_date,modify_date,trash,kill_house_name,kill_house_mobile,kill_house_vet_name,kill_house_vet_mobile,province,city,driver_name,driver_mobile,const DeepCollectionEquality().hash(car),pelak,number_of_carcasses,weight_of_carcasses,bar_image,date,temporary_trash,temporary_deleted,created_by,modified_by]); int get hashCode => Object.hashAll([runtimeType,id,steward,const DeepCollectionEquality().hash(guild),product,key,createDate,modifyDate,trash,killHouseName,killHouseMobile,killHouseVetName,killHouseVetMobile,province,city,driverName,driverMobile,const DeepCollectionEquality().hash(car),pelak,numberOfCarcasses,weightOfCarcasses,barImage,date,temporaryTrash,temporaryDeleted,createdBy,modifiedBy]);
@override @override
String toString() { String toString() {
return 'Result(id: $id, steward: $steward, guild: $guild, product: $product, key: $key, create_date: $create_date, modify_date: $modify_date, trash: $trash, kill_house_name: $kill_house_name, kill_house_mobile: $kill_house_mobile, kill_house_vet_name: $kill_house_vet_name, kill_house_vet_mobile: $kill_house_vet_mobile, province: $province, city: $city, driver_name: $driver_name, driver_mobile: $driver_mobile, car: $car, pelak: $pelak, number_of_carcasses: $number_of_carcasses, weight_of_carcasses: $weight_of_carcasses, bar_image: $bar_image, date: $date, temporary_trash: $temporary_trash, temporary_deleted: $temporary_deleted, created_by: $created_by, modified_by: $modified_by)'; return 'Result(id: $id, steward: $steward, guild: $guild, product: $product, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, killHouseName: $killHouseName, killHouseMobile: $killHouseMobile, killHouseVetName: $killHouseVetName, killHouseVetMobile: $killHouseVetMobile, province: $province, city: $city, driverName: $driverName, driverMobile: $driverMobile, car: $car, pelak: $pelak, numberOfCarcasses: $numberOfCarcasses, weightOfCarcasses: $weightOfCarcasses, barImage: $barImage, date: $date, temporaryTrash: $temporaryTrash, temporaryDeleted: $temporaryDeleted, createdBy: $createdBy, modifiedBy: $modifiedBy)';
} }
@@ -199,7 +199,7 @@ abstract mixin class $ResultCopyWith<$Res> {
factory $ResultCopyWith(Result value, $Res Function(Result) _then) = _$ResultCopyWithImpl; factory $ResultCopyWith(Result value, $Res Function(Result) _then) = _$ResultCopyWithImpl;
@useResult @useResult
$Res call({ $Res call({
int? id, Steward? steward, dynamic guild, Product? product, String? key, String? create_date, String? modify_date, bool? trash, String? kill_house_name, String? kill_house_mobile, String? kill_house_vet_name, String? kill_house_vet_mobile, String? province, String? city, String? driver_name, String? driver_mobile, dynamic car, String? pelak, int? number_of_carcasses, int? weight_of_carcasses, String? bar_image, String? date, bool? temporary_trash, bool? temporary_deleted, String? created_by, String? modified_by int? id, Steward? steward, dynamic guild, Product? product, String? key, String? createDate, String? modifyDate, bool? trash, String? killHouseName, String? killHouseMobile, String? killHouseVetName, String? killHouseVetMobile, String? province, String? city, String? driverName, String? driverMobile, dynamic car, String? pelak, int? numberOfCarcasses, double? weightOfCarcasses, String? barImage, String? date, bool? temporaryTrash, bool? temporaryDeleted, String? createdBy, String? modifiedBy
}); });
@@ -216,34 +216,34 @@ class _$ResultCopyWithImpl<$Res>
/// Create a copy of Result /// Create a copy of Result
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? steward = freezed,Object? guild = freezed,Object? product = freezed,Object? key = freezed,Object? create_date = freezed,Object? modify_date = freezed,Object? trash = freezed,Object? kill_house_name = freezed,Object? kill_house_mobile = freezed,Object? kill_house_vet_name = freezed,Object? kill_house_vet_mobile = freezed,Object? province = freezed,Object? city = freezed,Object? driver_name = freezed,Object? driver_mobile = freezed,Object? car = freezed,Object? pelak = freezed,Object? number_of_carcasses = freezed,Object? weight_of_carcasses = freezed,Object? bar_image = freezed,Object? date = freezed,Object? temporary_trash = freezed,Object? temporary_deleted = freezed,Object? created_by = freezed,Object? modified_by = freezed,}) { @pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? steward = freezed,Object? guild = freezed,Object? product = freezed,Object? key = freezed,Object? createDate = freezed,Object? modifyDate = freezed,Object? trash = freezed,Object? killHouseName = freezed,Object? killHouseMobile = freezed,Object? killHouseVetName = freezed,Object? killHouseVetMobile = freezed,Object? province = freezed,Object? city = freezed,Object? driverName = freezed,Object? driverMobile = freezed,Object? car = freezed,Object? pelak = freezed,Object? numberOfCarcasses = freezed,Object? weightOfCarcasses = freezed,Object? barImage = freezed,Object? date = freezed,Object? temporaryTrash = freezed,Object? temporaryDeleted = freezed,Object? createdBy = freezed,Object? modifiedBy = freezed,}) {
return _then(_self.copyWith( return _then(_self.copyWith(
id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
as int?,steward: freezed == steward ? _self.steward : steward // ignore: cast_nullable_to_non_nullable as int?,steward: freezed == steward ? _self.steward : steward // ignore: cast_nullable_to_non_nullable
as Steward?,guild: freezed == guild ? _self.guild : guild // ignore: cast_nullable_to_non_nullable as Steward?,guild: freezed == guild ? _self.guild : guild // ignore: cast_nullable_to_non_nullable
as dynamic,product: freezed == product ? _self.product : product // ignore: cast_nullable_to_non_nullable as dynamic,product: freezed == product ? _self.product : product // ignore: cast_nullable_to_non_nullable
as Product?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable as Product?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable
as String?,create_date: freezed == create_date ? _self.create_date : create_date // ignore: cast_nullable_to_non_nullable as String?,createDate: freezed == createDate ? _self.createDate : createDate // ignore: cast_nullable_to_non_nullable
as String?,modify_date: freezed == modify_date ? _self.modify_date : modify_date // ignore: cast_nullable_to_non_nullable as String?,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 String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable
as bool?,kill_house_name: freezed == kill_house_name ? _self.kill_house_name : kill_house_name // ignore: cast_nullable_to_non_nullable as bool?,killHouseName: freezed == killHouseName ? _self.killHouseName : killHouseName // ignore: cast_nullable_to_non_nullable
as String?,kill_house_mobile: freezed == kill_house_mobile ? _self.kill_house_mobile : kill_house_mobile // ignore: cast_nullable_to_non_nullable as String?,killHouseMobile: freezed == killHouseMobile ? _self.killHouseMobile : killHouseMobile // ignore: cast_nullable_to_non_nullable
as String?,kill_house_vet_name: freezed == kill_house_vet_name ? _self.kill_house_vet_name : kill_house_vet_name // ignore: cast_nullable_to_non_nullable as String?,killHouseVetName: freezed == killHouseVetName ? _self.killHouseVetName : killHouseVetName // ignore: cast_nullable_to_non_nullable
as String?,kill_house_vet_mobile: freezed == kill_house_vet_mobile ? _self.kill_house_vet_mobile : kill_house_vet_mobile // ignore: cast_nullable_to_non_nullable as String?,killHouseVetMobile: freezed == killHouseVetMobile ? _self.killHouseVetMobile : killHouseVetMobile // ignore: cast_nullable_to_non_nullable
as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable
as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable
as String?,driver_name: freezed == driver_name ? _self.driver_name : driver_name // ignore: cast_nullable_to_non_nullable as String?,driverName: freezed == driverName ? _self.driverName : driverName // ignore: cast_nullable_to_non_nullable
as String?,driver_mobile: freezed == driver_mobile ? _self.driver_mobile : driver_mobile // ignore: cast_nullable_to_non_nullable as String?,driverMobile: freezed == driverMobile ? _self.driverMobile : driverMobile // ignore: cast_nullable_to_non_nullable
as String?,car: freezed == car ? _self.car : car // ignore: cast_nullable_to_non_nullable as String?,car: freezed == car ? _self.car : car // ignore: cast_nullable_to_non_nullable
as dynamic,pelak: freezed == pelak ? _self.pelak : pelak // ignore: cast_nullable_to_non_nullable as dynamic,pelak: freezed == pelak ? _self.pelak : pelak // ignore: cast_nullable_to_non_nullable
as String?,number_of_carcasses: freezed == number_of_carcasses ? _self.number_of_carcasses : number_of_carcasses // ignore: cast_nullable_to_non_nullable as String?,numberOfCarcasses: freezed == numberOfCarcasses ? _self.numberOfCarcasses : numberOfCarcasses // ignore: cast_nullable_to_non_nullable
as int?,weight_of_carcasses: freezed == weight_of_carcasses ? _self.weight_of_carcasses : weight_of_carcasses // ignore: cast_nullable_to_non_nullable as int?,weightOfCarcasses: freezed == weightOfCarcasses ? _self.weightOfCarcasses : weightOfCarcasses // ignore: cast_nullable_to_non_nullable
as int?,bar_image: freezed == bar_image ? _self.bar_image : bar_image // ignore: cast_nullable_to_non_nullable as double?,barImage: freezed == barImage ? _self.barImage : barImage // ignore: cast_nullable_to_non_nullable
as String?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable as String?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable
as String?,temporary_trash: freezed == temporary_trash ? _self.temporary_trash : temporary_trash // ignore: cast_nullable_to_non_nullable as String?,temporaryTrash: freezed == temporaryTrash ? _self.temporaryTrash : temporaryTrash // ignore: cast_nullable_to_non_nullable
as bool?,temporary_deleted: freezed == temporary_deleted ? _self.temporary_deleted : temporary_deleted // ignore: cast_nullable_to_non_nullable as bool?,temporaryDeleted: freezed == temporaryDeleted ? _self.temporaryDeleted : temporaryDeleted // ignore: cast_nullable_to_non_nullable
as bool?,created_by: freezed == created_by ? _self.created_by : created_by // ignore: cast_nullable_to_non_nullable as bool?,createdBy: freezed == createdBy ? _self.createdBy : createdBy // ignore: cast_nullable_to_non_nullable
as String?,modified_by: freezed == modified_by ? _self.modified_by : modified_by // ignore: cast_nullable_to_non_nullable as String?,modifiedBy: freezed == modifiedBy ? _self.modifiedBy : modifiedBy // ignore: cast_nullable_to_non_nullable
as String?, as String?,
)); ));
} }
@@ -279,7 +279,7 @@ $ProductCopyWith<$Res>? get product {
@JsonSerializable() @JsonSerializable()
class _Result implements Result { class _Result implements Result {
const _Result({this.id, this.steward, this.guild, this.product, this.key, this.create_date, this.modify_date, this.trash, this.kill_house_name, this.kill_house_mobile, this.kill_house_vet_name, this.kill_house_vet_mobile, this.province, this.city, this.driver_name, this.driver_mobile, this.car, this.pelak, this.number_of_carcasses, this.weight_of_carcasses, this.bar_image, this.date, this.temporary_trash, this.temporary_deleted, this.created_by, this.modified_by}); const _Result({this.id, this.steward, this.guild, this.product, this.key, this.createDate, this.modifyDate, this.trash, this.killHouseName, this.killHouseMobile, this.killHouseVetName, this.killHouseVetMobile, this.province, this.city, this.driverName, this.driverMobile, this.car, this.pelak, this.numberOfCarcasses, this.weightOfCarcasses, this.barImage, this.date, this.temporaryTrash, this.temporaryDeleted, this.createdBy, this.modifiedBy});
factory _Result.fromJson(Map<String, dynamic> json) => _$ResultFromJson(json); factory _Result.fromJson(Map<String, dynamic> json) => _$ResultFromJson(json);
@override final int? id; @override final int? id;
@@ -287,27 +287,27 @@ class _Result implements Result {
@override final dynamic guild; @override final dynamic guild;
@override final Product? product; @override final Product? product;
@override final String? key; @override final String? key;
@override final String? create_date; @override final String? createDate;
@override final String? modify_date; @override final String? modifyDate;
@override final bool? trash; @override final bool? trash;
@override final String? kill_house_name; @override final String? killHouseName;
@override final String? kill_house_mobile; @override final String? killHouseMobile;
@override final String? kill_house_vet_name; @override final String? killHouseVetName;
@override final String? kill_house_vet_mobile; @override final String? killHouseVetMobile;
@override final String? province; @override final String? province;
@override final String? city; @override final String? city;
@override final String? driver_name; @override final String? driverName;
@override final String? driver_mobile; @override final String? driverMobile;
@override final dynamic car; @override final dynamic car;
@override final String? pelak; @override final String? pelak;
@override final int? number_of_carcasses; @override final int? numberOfCarcasses;
@override final int? weight_of_carcasses; @override final double? weightOfCarcasses;
@override final String? bar_image; @override final String? barImage;
@override final String? date; @override final String? date;
@override final bool? temporary_trash; @override final bool? temporaryTrash;
@override final bool? temporary_deleted; @override final bool? temporaryDeleted;
@override final String? created_by; @override final String? createdBy;
@override final String? modified_by; @override final String? modifiedBy;
/// Create a copy of Result /// Create a copy of Result
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@@ -322,16 +322,16 @@ Map<String, dynamic> toJson() {
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is _Result&&(identical(other.id, id) || other.id == id)&&(identical(other.steward, steward) || other.steward == steward)&&const DeepCollectionEquality().equals(other.guild, guild)&&(identical(other.product, product) || other.product == product)&&(identical(other.key, key) || other.key == key)&&(identical(other.create_date, create_date) || other.create_date == create_date)&&(identical(other.modify_date, modify_date) || other.modify_date == modify_date)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.kill_house_name, kill_house_name) || other.kill_house_name == kill_house_name)&&(identical(other.kill_house_mobile, kill_house_mobile) || other.kill_house_mobile == kill_house_mobile)&&(identical(other.kill_house_vet_name, kill_house_vet_name) || other.kill_house_vet_name == kill_house_vet_name)&&(identical(other.kill_house_vet_mobile, kill_house_vet_mobile) || other.kill_house_vet_mobile == kill_house_vet_mobile)&&(identical(other.province, province) || other.province == province)&&(identical(other.city, city) || other.city == city)&&(identical(other.driver_name, driver_name) || other.driver_name == driver_name)&&(identical(other.driver_mobile, driver_mobile) || other.driver_mobile == driver_mobile)&&const DeepCollectionEquality().equals(other.car, car)&&(identical(other.pelak, pelak) || other.pelak == pelak)&&(identical(other.number_of_carcasses, number_of_carcasses) || other.number_of_carcasses == number_of_carcasses)&&(identical(other.weight_of_carcasses, weight_of_carcasses) || other.weight_of_carcasses == weight_of_carcasses)&&(identical(other.bar_image, bar_image) || other.bar_image == bar_image)&&(identical(other.date, date) || other.date == date)&&(identical(other.temporary_trash, temporary_trash) || other.temporary_trash == temporary_trash)&&(identical(other.temporary_deleted, temporary_deleted) || other.temporary_deleted == temporary_deleted)&&(identical(other.created_by, created_by) || other.created_by == created_by)&&(identical(other.modified_by, modified_by) || other.modified_by == modified_by)); return identical(this, other) || (other.runtimeType == runtimeType&&other is _Result&&(identical(other.id, id) || other.id == id)&&(identical(other.steward, steward) || other.steward == steward)&&const DeepCollectionEquality().equals(other.guild, guild)&&(identical(other.product, product) || other.product == product)&&(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.killHouseName, killHouseName) || other.killHouseName == killHouseName)&&(identical(other.killHouseMobile, killHouseMobile) || other.killHouseMobile == killHouseMobile)&&(identical(other.killHouseVetName, killHouseVetName) || other.killHouseVetName == killHouseVetName)&&(identical(other.killHouseVetMobile, killHouseVetMobile) || other.killHouseVetMobile == killHouseVetMobile)&&(identical(other.province, province) || other.province == province)&&(identical(other.city, city) || other.city == city)&&(identical(other.driverName, driverName) || other.driverName == driverName)&&(identical(other.driverMobile, driverMobile) || other.driverMobile == driverMobile)&&const DeepCollectionEquality().equals(other.car, car)&&(identical(other.pelak, pelak) || other.pelak == pelak)&&(identical(other.numberOfCarcasses, numberOfCarcasses) || other.numberOfCarcasses == numberOfCarcasses)&&(identical(other.weightOfCarcasses, weightOfCarcasses) || other.weightOfCarcasses == weightOfCarcasses)&&(identical(other.barImage, barImage) || other.barImage == barImage)&&(identical(other.date, date) || other.date == date)&&(identical(other.temporaryTrash, temporaryTrash) || other.temporaryTrash == temporaryTrash)&&(identical(other.temporaryDeleted, temporaryDeleted) || other.temporaryDeleted == temporaryDeleted)&&(identical(other.createdBy, createdBy) || other.createdBy == createdBy)&&(identical(other.modifiedBy, modifiedBy) || other.modifiedBy == modifiedBy));
} }
@JsonKey(includeFromJson: false, includeToJson: false) @JsonKey(includeFromJson: false, includeToJson: false)
@override @override
int get hashCode => Object.hashAll([runtimeType,id,steward,const DeepCollectionEquality().hash(guild),product,key,create_date,modify_date,trash,kill_house_name,kill_house_mobile,kill_house_vet_name,kill_house_vet_mobile,province,city,driver_name,driver_mobile,const DeepCollectionEquality().hash(car),pelak,number_of_carcasses,weight_of_carcasses,bar_image,date,temporary_trash,temporary_deleted,created_by,modified_by]); int get hashCode => Object.hashAll([runtimeType,id,steward,const DeepCollectionEquality().hash(guild),product,key,createDate,modifyDate,trash,killHouseName,killHouseMobile,killHouseVetName,killHouseVetMobile,province,city,driverName,driverMobile,const DeepCollectionEquality().hash(car),pelak,numberOfCarcasses,weightOfCarcasses,barImage,date,temporaryTrash,temporaryDeleted,createdBy,modifiedBy]);
@override @override
String toString() { String toString() {
return 'Result(id: $id, steward: $steward, guild: $guild, product: $product, key: $key, create_date: $create_date, modify_date: $modify_date, trash: $trash, kill_house_name: $kill_house_name, kill_house_mobile: $kill_house_mobile, kill_house_vet_name: $kill_house_vet_name, kill_house_vet_mobile: $kill_house_vet_mobile, province: $province, city: $city, driver_name: $driver_name, driver_mobile: $driver_mobile, car: $car, pelak: $pelak, number_of_carcasses: $number_of_carcasses, weight_of_carcasses: $weight_of_carcasses, bar_image: $bar_image, date: $date, temporary_trash: $temporary_trash, temporary_deleted: $temporary_deleted, created_by: $created_by, modified_by: $modified_by)'; return 'Result(id: $id, steward: $steward, guild: $guild, product: $product, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, killHouseName: $killHouseName, killHouseMobile: $killHouseMobile, killHouseVetName: $killHouseVetName, killHouseVetMobile: $killHouseVetMobile, province: $province, city: $city, driverName: $driverName, driverMobile: $driverMobile, car: $car, pelak: $pelak, numberOfCarcasses: $numberOfCarcasses, weightOfCarcasses: $weightOfCarcasses, barImage: $barImage, date: $date, temporaryTrash: $temporaryTrash, temporaryDeleted: $temporaryDeleted, createdBy: $createdBy, modifiedBy: $modifiedBy)';
} }
@@ -342,7 +342,7 @@ abstract mixin class _$ResultCopyWith<$Res> implements $ResultCopyWith<$Res> {
factory _$ResultCopyWith(_Result value, $Res Function(_Result) _then) = __$ResultCopyWithImpl; factory _$ResultCopyWith(_Result value, $Res Function(_Result) _then) = __$ResultCopyWithImpl;
@override @useResult @override @useResult
$Res call({ $Res call({
int? id, Steward? steward, dynamic guild, Product? product, String? key, String? create_date, String? modify_date, bool? trash, String? kill_house_name, String? kill_house_mobile, String? kill_house_vet_name, String? kill_house_vet_mobile, String? province, String? city, String? driver_name, String? driver_mobile, dynamic car, String? pelak, int? number_of_carcasses, int? weight_of_carcasses, String? bar_image, String? date, bool? temporary_trash, bool? temporary_deleted, String? created_by, String? modified_by int? id, Steward? steward, dynamic guild, Product? product, String? key, String? createDate, String? modifyDate, bool? trash, String? killHouseName, String? killHouseMobile, String? killHouseVetName, String? killHouseVetMobile, String? province, String? city, String? driverName, String? driverMobile, dynamic car, String? pelak, int? numberOfCarcasses, double? weightOfCarcasses, String? barImage, String? date, bool? temporaryTrash, bool? temporaryDeleted, String? createdBy, String? modifiedBy
}); });
@@ -359,34 +359,34 @@ class __$ResultCopyWithImpl<$Res>
/// Create a copy of Result /// Create a copy of Result
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? steward = freezed,Object? guild = freezed,Object? product = freezed,Object? key = freezed,Object? create_date = freezed,Object? modify_date = freezed,Object? trash = freezed,Object? kill_house_name = freezed,Object? kill_house_mobile = freezed,Object? kill_house_vet_name = freezed,Object? kill_house_vet_mobile = freezed,Object? province = freezed,Object? city = freezed,Object? driver_name = freezed,Object? driver_mobile = freezed,Object? car = freezed,Object? pelak = freezed,Object? number_of_carcasses = freezed,Object? weight_of_carcasses = freezed,Object? bar_image = freezed,Object? date = freezed,Object? temporary_trash = freezed,Object? temporary_deleted = freezed,Object? created_by = freezed,Object? modified_by = freezed,}) { @override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? steward = freezed,Object? guild = freezed,Object? product = freezed,Object? key = freezed,Object? createDate = freezed,Object? modifyDate = freezed,Object? trash = freezed,Object? killHouseName = freezed,Object? killHouseMobile = freezed,Object? killHouseVetName = freezed,Object? killHouseVetMobile = freezed,Object? province = freezed,Object? city = freezed,Object? driverName = freezed,Object? driverMobile = freezed,Object? car = freezed,Object? pelak = freezed,Object? numberOfCarcasses = freezed,Object? weightOfCarcasses = freezed,Object? barImage = freezed,Object? date = freezed,Object? temporaryTrash = freezed,Object? temporaryDeleted = freezed,Object? createdBy = freezed,Object? modifiedBy = freezed,}) {
return _then(_Result( return _then(_Result(
id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
as int?,steward: freezed == steward ? _self.steward : steward // ignore: cast_nullable_to_non_nullable as int?,steward: freezed == steward ? _self.steward : steward // ignore: cast_nullable_to_non_nullable
as Steward?,guild: freezed == guild ? _self.guild : guild // ignore: cast_nullable_to_non_nullable as Steward?,guild: freezed == guild ? _self.guild : guild // ignore: cast_nullable_to_non_nullable
as dynamic,product: freezed == product ? _self.product : product // ignore: cast_nullable_to_non_nullable as dynamic,product: freezed == product ? _self.product : product // ignore: cast_nullable_to_non_nullable
as Product?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable as Product?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable
as String?,create_date: freezed == create_date ? _self.create_date : create_date // ignore: cast_nullable_to_non_nullable as String?,createDate: freezed == createDate ? _self.createDate : createDate // ignore: cast_nullable_to_non_nullable
as String?,modify_date: freezed == modify_date ? _self.modify_date : modify_date // ignore: cast_nullable_to_non_nullable as String?,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 String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable
as bool?,kill_house_name: freezed == kill_house_name ? _self.kill_house_name : kill_house_name // ignore: cast_nullable_to_non_nullable as bool?,killHouseName: freezed == killHouseName ? _self.killHouseName : killHouseName // ignore: cast_nullable_to_non_nullable
as String?,kill_house_mobile: freezed == kill_house_mobile ? _self.kill_house_mobile : kill_house_mobile // ignore: cast_nullable_to_non_nullable as String?,killHouseMobile: freezed == killHouseMobile ? _self.killHouseMobile : killHouseMobile // ignore: cast_nullable_to_non_nullable
as String?,kill_house_vet_name: freezed == kill_house_vet_name ? _self.kill_house_vet_name : kill_house_vet_name // ignore: cast_nullable_to_non_nullable as String?,killHouseVetName: freezed == killHouseVetName ? _self.killHouseVetName : killHouseVetName // ignore: cast_nullable_to_non_nullable
as String?,kill_house_vet_mobile: freezed == kill_house_vet_mobile ? _self.kill_house_vet_mobile : kill_house_vet_mobile // ignore: cast_nullable_to_non_nullable as String?,killHouseVetMobile: freezed == killHouseVetMobile ? _self.killHouseVetMobile : killHouseVetMobile // ignore: cast_nullable_to_non_nullable
as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable
as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable
as String?,driver_name: freezed == driver_name ? _self.driver_name : driver_name // ignore: cast_nullable_to_non_nullable as String?,driverName: freezed == driverName ? _self.driverName : driverName // ignore: cast_nullable_to_non_nullable
as String?,driver_mobile: freezed == driver_mobile ? _self.driver_mobile : driver_mobile // ignore: cast_nullable_to_non_nullable as String?,driverMobile: freezed == driverMobile ? _self.driverMobile : driverMobile // ignore: cast_nullable_to_non_nullable
as String?,car: freezed == car ? _self.car : car // ignore: cast_nullable_to_non_nullable as String?,car: freezed == car ? _self.car : car // ignore: cast_nullable_to_non_nullable
as dynamic,pelak: freezed == pelak ? _self.pelak : pelak // ignore: cast_nullable_to_non_nullable as dynamic,pelak: freezed == pelak ? _self.pelak : pelak // ignore: cast_nullable_to_non_nullable
as String?,number_of_carcasses: freezed == number_of_carcasses ? _self.number_of_carcasses : number_of_carcasses // ignore: cast_nullable_to_non_nullable as String?,numberOfCarcasses: freezed == numberOfCarcasses ? _self.numberOfCarcasses : numberOfCarcasses // ignore: cast_nullable_to_non_nullable
as int?,weight_of_carcasses: freezed == weight_of_carcasses ? _self.weight_of_carcasses : weight_of_carcasses // ignore: cast_nullable_to_non_nullable as int?,weightOfCarcasses: freezed == weightOfCarcasses ? _self.weightOfCarcasses : weightOfCarcasses // ignore: cast_nullable_to_non_nullable
as int?,bar_image: freezed == bar_image ? _self.bar_image : bar_image // ignore: cast_nullable_to_non_nullable as double?,barImage: freezed == barImage ? _self.barImage : barImage // ignore: cast_nullable_to_non_nullable
as String?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable as String?,date: freezed == date ? _self.date : date // ignore: cast_nullable_to_non_nullable
as String?,temporary_trash: freezed == temporary_trash ? _self.temporary_trash : temporary_trash // ignore: cast_nullable_to_non_nullable as String?,temporaryTrash: freezed == temporaryTrash ? _self.temporaryTrash : temporaryTrash // ignore: cast_nullable_to_non_nullable
as bool?,temporary_deleted: freezed == temporary_deleted ? _self.temporary_deleted : temporary_deleted // ignore: cast_nullable_to_non_nullable as bool?,temporaryDeleted: freezed == temporaryDeleted ? _self.temporaryDeleted : temporaryDeleted // ignore: cast_nullable_to_non_nullable
as bool?,created_by: freezed == created_by ? _self.created_by : created_by // ignore: cast_nullable_to_non_nullable as bool?,createdBy: freezed == createdBy ? _self.createdBy : createdBy // ignore: cast_nullable_to_non_nullable
as String?,modified_by: freezed == modified_by ? _self.modified_by : modified_by // ignore: cast_nullable_to_non_nullable as String?,modifiedBy: freezed == modifiedBy ? _self.modifiedBy : modifiedBy // ignore: cast_nullable_to_non_nullable
as String?, as String?,
)); ));
} }
@@ -422,7 +422,7 @@ $ProductCopyWith<$Res>? get product {
/// @nodoc /// @nodoc
mixin _$Steward { mixin _$Steward {
User? get user; String? get guilds_name; bool? get steward; dynamic get allocation_limit; Address? get address; String? get license_number; String? get type_activity; String? get area_activity; String? get guilds_id; String? get create_date; User? get user; String? get guildsName; bool? get steward; int? get allocationLimit; Address? get address; String? get licenseNumber; String? get typeActivity; String? get areaActivity; String? get guildsId; String? get createDate;
/// Create a copy of Steward /// Create a copy of Steward
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false) @JsonKey(includeFromJson: false, includeToJson: false)
@@ -435,16 +435,16 @@ $StewardCopyWith<Steward> get copyWith => _$StewardCopyWithImpl<Steward>(this as
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is Steward&&(identical(other.user, user) || other.user == user)&&(identical(other.guilds_name, guilds_name) || other.guilds_name == guilds_name)&&(identical(other.steward, steward) || other.steward == steward)&&const DeepCollectionEquality().equals(other.allocation_limit, allocation_limit)&&(identical(other.address, address) || other.address == address)&&(identical(other.license_number, license_number) || other.license_number == license_number)&&(identical(other.type_activity, type_activity) || other.type_activity == type_activity)&&(identical(other.area_activity, area_activity) || other.area_activity == area_activity)&&(identical(other.guilds_id, guilds_id) || other.guilds_id == guilds_id)&&(identical(other.create_date, create_date) || other.create_date == create_date)); return identical(this, other) || (other.runtimeType == runtimeType&&other is Steward&&(identical(other.user, user) || other.user == user)&&(identical(other.guildsName, guildsName) || other.guildsName == guildsName)&&(identical(other.steward, steward) || other.steward == steward)&&(identical(other.allocationLimit, allocationLimit) || other.allocationLimit == allocationLimit)&&(identical(other.address, address) || other.address == address)&&(identical(other.licenseNumber, licenseNumber) || other.licenseNumber == licenseNumber)&&(identical(other.typeActivity, typeActivity) || other.typeActivity == typeActivity)&&(identical(other.areaActivity, areaActivity) || other.areaActivity == areaActivity)&&(identical(other.guildsId, guildsId) || other.guildsId == guildsId)&&(identical(other.createDate, createDate) || other.createDate == createDate));
} }
@JsonKey(includeFromJson: false, includeToJson: false) @JsonKey(includeFromJson: false, includeToJson: false)
@override @override
int get hashCode => Object.hash(runtimeType,user,guilds_name,steward,const DeepCollectionEquality().hash(allocation_limit),address,license_number,type_activity,area_activity,guilds_id,create_date); int get hashCode => Object.hash(runtimeType,user,guildsName,steward,allocationLimit,address,licenseNumber,typeActivity,areaActivity,guildsId,createDate);
@override @override
String toString() { String toString() {
return 'Steward(user: $user, guilds_name: $guilds_name, steward: $steward, allocation_limit: $allocation_limit, address: $address, license_number: $license_number, type_activity: $type_activity, area_activity: $area_activity, guilds_id: $guilds_id, create_date: $create_date)'; return 'Steward(user: $user, guildsName: $guildsName, steward: $steward, allocationLimit: $allocationLimit, address: $address, licenseNumber: $licenseNumber, typeActivity: $typeActivity, areaActivity: $areaActivity, guildsId: $guildsId, createDate: $createDate)';
} }
@@ -455,7 +455,7 @@ abstract mixin class $StewardCopyWith<$Res> {
factory $StewardCopyWith(Steward value, $Res Function(Steward) _then) = _$StewardCopyWithImpl; factory $StewardCopyWith(Steward value, $Res Function(Steward) _then) = _$StewardCopyWithImpl;
@useResult @useResult
$Res call({ $Res call({
User? user, String? guilds_name, bool? steward, dynamic allocation_limit, Address? address, String? license_number, String? type_activity, String? area_activity, String? guilds_id, String? create_date User? user, String? guildsName, bool? steward, int? allocationLimit, Address? address, String? licenseNumber, String? typeActivity, String? areaActivity, String? guildsId, String? createDate
}); });
@@ -472,18 +472,18 @@ class _$StewardCopyWithImpl<$Res>
/// Create a copy of Steward /// Create a copy of Steward
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? user = freezed,Object? guilds_name = freezed,Object? steward = freezed,Object? allocation_limit = freezed,Object? address = freezed,Object? license_number = freezed,Object? type_activity = freezed,Object? area_activity = freezed,Object? guilds_id = freezed,Object? create_date = freezed,}) { @pragma('vm:prefer-inline') @override $Res call({Object? user = freezed,Object? guildsName = freezed,Object? steward = freezed,Object? allocationLimit = freezed,Object? address = freezed,Object? licenseNumber = freezed,Object? typeActivity = freezed,Object? areaActivity = freezed,Object? guildsId = freezed,Object? createDate = freezed,}) {
return _then(_self.copyWith( return _then(_self.copyWith(
user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable
as User?,guilds_name: freezed == guilds_name ? _self.guilds_name : guilds_name // ignore: cast_nullable_to_non_nullable as User?,guildsName: freezed == guildsName ? _self.guildsName : guildsName // ignore: cast_nullable_to_non_nullable
as String?,steward: freezed == steward ? _self.steward : steward // ignore: cast_nullable_to_non_nullable as String?,steward: freezed == steward ? _self.steward : steward // ignore: cast_nullable_to_non_nullable
as bool?,allocation_limit: freezed == allocation_limit ? _self.allocation_limit : allocation_limit // ignore: cast_nullable_to_non_nullable as bool?,allocationLimit: freezed == allocationLimit ? _self.allocationLimit : allocationLimit // ignore: cast_nullable_to_non_nullable
as dynamic,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable as int?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable
as Address?,license_number: freezed == license_number ? _self.license_number : license_number // ignore: cast_nullable_to_non_nullable as Address?,licenseNumber: freezed == licenseNumber ? _self.licenseNumber : licenseNumber // ignore: cast_nullable_to_non_nullable
as String?,type_activity: freezed == type_activity ? _self.type_activity : type_activity // ignore: cast_nullable_to_non_nullable as String?,typeActivity: freezed == typeActivity ? _self.typeActivity : typeActivity // ignore: cast_nullable_to_non_nullable
as String?,area_activity: freezed == area_activity ? _self.area_activity : area_activity // ignore: cast_nullable_to_non_nullable as String?,areaActivity: freezed == areaActivity ? _self.areaActivity : areaActivity // ignore: cast_nullable_to_non_nullable
as String?,guilds_id: freezed == guilds_id ? _self.guilds_id : guilds_id // ignore: cast_nullable_to_non_nullable as String?,guildsId: freezed == guildsId ? _self.guildsId : guildsId // ignore: cast_nullable_to_non_nullable
as String?,create_date: freezed == create_date ? _self.create_date : create_date // ignore: cast_nullable_to_non_nullable as String?,createDate: freezed == createDate ? _self.createDate : createDate // ignore: cast_nullable_to_non_nullable
as String?, as String?,
)); ));
} }
@@ -519,19 +519,19 @@ $AddressCopyWith<$Res>? get address {
@JsonSerializable() @JsonSerializable()
class _Steward implements Steward { class _Steward implements Steward {
const _Steward({this.user, this.guilds_name, this.steward, this.allocation_limit, this.address, this.license_number, this.type_activity, this.area_activity, this.guilds_id, this.create_date}); const _Steward({this.user, this.guildsName, this.steward, this.allocationLimit, this.address, this.licenseNumber, this.typeActivity, this.areaActivity, this.guildsId, this.createDate});
factory _Steward.fromJson(Map<String, dynamic> json) => _$StewardFromJson(json); factory _Steward.fromJson(Map<String, dynamic> json) => _$StewardFromJson(json);
@override final User? user; @override final User? user;
@override final String? guilds_name; @override final String? guildsName;
@override final bool? steward; @override final bool? steward;
@override final dynamic allocation_limit; @override final int? allocationLimit;
@override final Address? address; @override final Address? address;
@override final String? license_number; @override final String? licenseNumber;
@override final String? type_activity; @override final String? typeActivity;
@override final String? area_activity; @override final String? areaActivity;
@override final String? guilds_id; @override final String? guildsId;
@override final String? create_date; @override final String? createDate;
/// Create a copy of Steward /// Create a copy of Steward
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@@ -546,16 +546,16 @@ Map<String, dynamic> toJson() {
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is _Steward&&(identical(other.user, user) || other.user == user)&&(identical(other.guilds_name, guilds_name) || other.guilds_name == guilds_name)&&(identical(other.steward, steward) || other.steward == steward)&&const DeepCollectionEquality().equals(other.allocation_limit, allocation_limit)&&(identical(other.address, address) || other.address == address)&&(identical(other.license_number, license_number) || other.license_number == license_number)&&(identical(other.type_activity, type_activity) || other.type_activity == type_activity)&&(identical(other.area_activity, area_activity) || other.area_activity == area_activity)&&(identical(other.guilds_id, guilds_id) || other.guilds_id == guilds_id)&&(identical(other.create_date, create_date) || other.create_date == create_date)); return identical(this, other) || (other.runtimeType == runtimeType&&other is _Steward&&(identical(other.user, user) || other.user == user)&&(identical(other.guildsName, guildsName) || other.guildsName == guildsName)&&(identical(other.steward, steward) || other.steward == steward)&&(identical(other.allocationLimit, allocationLimit) || other.allocationLimit == allocationLimit)&&(identical(other.address, address) || other.address == address)&&(identical(other.licenseNumber, licenseNumber) || other.licenseNumber == licenseNumber)&&(identical(other.typeActivity, typeActivity) || other.typeActivity == typeActivity)&&(identical(other.areaActivity, areaActivity) || other.areaActivity == areaActivity)&&(identical(other.guildsId, guildsId) || other.guildsId == guildsId)&&(identical(other.createDate, createDate) || other.createDate == createDate));
} }
@JsonKey(includeFromJson: false, includeToJson: false) @JsonKey(includeFromJson: false, includeToJson: false)
@override @override
int get hashCode => Object.hash(runtimeType,user,guilds_name,steward,const DeepCollectionEquality().hash(allocation_limit),address,license_number,type_activity,area_activity,guilds_id,create_date); int get hashCode => Object.hash(runtimeType,user,guildsName,steward,allocationLimit,address,licenseNumber,typeActivity,areaActivity,guildsId,createDate);
@override @override
String toString() { String toString() {
return 'Steward(user: $user, guilds_name: $guilds_name, steward: $steward, allocation_limit: $allocation_limit, address: $address, license_number: $license_number, type_activity: $type_activity, area_activity: $area_activity, guilds_id: $guilds_id, create_date: $create_date)'; return 'Steward(user: $user, guildsName: $guildsName, steward: $steward, allocationLimit: $allocationLimit, address: $address, licenseNumber: $licenseNumber, typeActivity: $typeActivity, areaActivity: $areaActivity, guildsId: $guildsId, createDate: $createDate)';
} }
@@ -566,7 +566,7 @@ abstract mixin class _$StewardCopyWith<$Res> implements $StewardCopyWith<$Res> {
factory _$StewardCopyWith(_Steward value, $Res Function(_Steward) _then) = __$StewardCopyWithImpl; factory _$StewardCopyWith(_Steward value, $Res Function(_Steward) _then) = __$StewardCopyWithImpl;
@override @useResult @override @useResult
$Res call({ $Res call({
User? user, String? guilds_name, bool? steward, dynamic allocation_limit, Address? address, String? license_number, String? type_activity, String? area_activity, String? guilds_id, String? create_date User? user, String? guildsName, bool? steward, int? allocationLimit, Address? address, String? licenseNumber, String? typeActivity, String? areaActivity, String? guildsId, String? createDate
}); });
@@ -583,18 +583,18 @@ class __$StewardCopyWithImpl<$Res>
/// Create a copy of Steward /// Create a copy of Steward
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? user = freezed,Object? guilds_name = freezed,Object? steward = freezed,Object? allocation_limit = freezed,Object? address = freezed,Object? license_number = freezed,Object? type_activity = freezed,Object? area_activity = freezed,Object? guilds_id = freezed,Object? create_date = freezed,}) { @override @pragma('vm:prefer-inline') $Res call({Object? user = freezed,Object? guildsName = freezed,Object? steward = freezed,Object? allocationLimit = freezed,Object? address = freezed,Object? licenseNumber = freezed,Object? typeActivity = freezed,Object? areaActivity = freezed,Object? guildsId = freezed,Object? createDate = freezed,}) {
return _then(_Steward( return _then(_Steward(
user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable
as User?,guilds_name: freezed == guilds_name ? _self.guilds_name : guilds_name // ignore: cast_nullable_to_non_nullable as User?,guildsName: freezed == guildsName ? _self.guildsName : guildsName // ignore: cast_nullable_to_non_nullable
as String?,steward: freezed == steward ? _self.steward : steward // ignore: cast_nullable_to_non_nullable as String?,steward: freezed == steward ? _self.steward : steward // ignore: cast_nullable_to_non_nullable
as bool?,allocation_limit: freezed == allocation_limit ? _self.allocation_limit : allocation_limit // ignore: cast_nullable_to_non_nullable as bool?,allocationLimit: freezed == allocationLimit ? _self.allocationLimit : allocationLimit // ignore: cast_nullable_to_non_nullable
as dynamic,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable as int?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable
as Address?,license_number: freezed == license_number ? _self.license_number : license_number // ignore: cast_nullable_to_non_nullable as Address?,licenseNumber: freezed == licenseNumber ? _self.licenseNumber : licenseNumber // ignore: cast_nullable_to_non_nullable
as String?,type_activity: freezed == type_activity ? _self.type_activity : type_activity // ignore: cast_nullable_to_non_nullable as String?,typeActivity: freezed == typeActivity ? _self.typeActivity : typeActivity // ignore: cast_nullable_to_non_nullable
as String?,area_activity: freezed == area_activity ? _self.area_activity : area_activity // ignore: cast_nullable_to_non_nullable as String?,areaActivity: freezed == areaActivity ? _self.areaActivity : areaActivity // ignore: cast_nullable_to_non_nullable
as String?,guilds_id: freezed == guilds_id ? _self.guilds_id : guilds_id // ignore: cast_nullable_to_non_nullable as String?,guildsId: freezed == guildsId ? _self.guildsId : guildsId // ignore: cast_nullable_to_non_nullable
as String?,create_date: freezed == create_date ? _self.create_date : create_date // ignore: cast_nullable_to_non_nullable as String?,createDate: freezed == createDate ? _self.createDate : createDate // ignore: cast_nullable_to_non_nullable
as String?, as String?,
)); ));
} }
@@ -630,7 +630,7 @@ $AddressCopyWith<$Res>? get address {
/// @nodoc /// @nodoc
mixin _$User { mixin _$User {
String? get fullname; String? get first_name; String? get last_name; int? get base_order; String? get mobile; String? get national_id; String? get national_code; String? get key; City? get city; String? get unit_name; String? get unit_national_id; String? get unit_registration_number; String? get unit_economical_number; String? get unit_province; String? get unit_city; String? get unit_postal_code; String? get unit_address; String? get fullname; String? get firstName; String? get lastName; int? get baseOrder; String? get mobile; String? get nationalId; String? get nationalCode; String? get key; City? get city; String? get unitName; String? get unitNationalId; String? get unitRegistrationNumber; String? get unitEconomicalNumber; String? get unitProvince; String? get unitCity; String? get unitPostalCode; String? get unitAddress;
/// Create a copy of User /// Create a copy of User
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false) @JsonKey(includeFromJson: false, includeToJson: false)
@@ -643,16 +643,16 @@ $UserCopyWith<User> get copyWith => _$UserCopyWithImpl<User>(this as User, _$ide
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is User&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.first_name, first_name) || other.first_name == first_name)&&(identical(other.last_name, last_name) || other.last_name == last_name)&&(identical(other.base_order, base_order) || other.base_order == base_order)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.national_id, national_id) || other.national_id == national_id)&&(identical(other.national_code, national_code) || other.national_code == national_code)&&(identical(other.key, key) || other.key == key)&&(identical(other.city, city) || other.city == city)&&(identical(other.unit_name, unit_name) || other.unit_name == unit_name)&&(identical(other.unit_national_id, unit_national_id) || other.unit_national_id == unit_national_id)&&(identical(other.unit_registration_number, unit_registration_number) || other.unit_registration_number == unit_registration_number)&&(identical(other.unit_economical_number, unit_economical_number) || other.unit_economical_number == unit_economical_number)&&(identical(other.unit_province, unit_province) || other.unit_province == unit_province)&&(identical(other.unit_city, unit_city) || other.unit_city == unit_city)&&(identical(other.unit_postal_code, unit_postal_code) || other.unit_postal_code == unit_postal_code)&&(identical(other.unit_address, unit_address) || other.unit_address == unit_address)); return identical(this, other) || (other.runtimeType == runtimeType&&other is User&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.baseOrder, baseOrder) || other.baseOrder == baseOrder)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.nationalId, nationalId) || other.nationalId == nationalId)&&(identical(other.nationalCode, nationalCode) || other.nationalCode == nationalCode)&&(identical(other.key, key) || other.key == key)&&(identical(other.city, city) || other.city == city)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.unitNationalId, unitNationalId) || other.unitNationalId == unitNationalId)&&(identical(other.unitRegistrationNumber, unitRegistrationNumber) || other.unitRegistrationNumber == unitRegistrationNumber)&&(identical(other.unitEconomicalNumber, unitEconomicalNumber) || other.unitEconomicalNumber == unitEconomicalNumber)&&(identical(other.unitProvince, unitProvince) || other.unitProvince == unitProvince)&&(identical(other.unitCity, unitCity) || other.unitCity == unitCity)&&(identical(other.unitPostalCode, unitPostalCode) || other.unitPostalCode == unitPostalCode)&&(identical(other.unitAddress, unitAddress) || other.unitAddress == unitAddress));
} }
@JsonKey(includeFromJson: false, includeToJson: false) @JsonKey(includeFromJson: false, includeToJson: false)
@override @override
int get hashCode => Object.hash(runtimeType,fullname,first_name,last_name,base_order,mobile,national_id,national_code,key,city,unit_name,unit_national_id,unit_registration_number,unit_economical_number,unit_province,unit_city,unit_postal_code,unit_address); int get hashCode => Object.hash(runtimeType,fullname,firstName,lastName,baseOrder,mobile,nationalId,nationalCode,key,city,unitName,unitNationalId,unitRegistrationNumber,unitEconomicalNumber,unitProvince,unitCity,unitPostalCode,unitAddress);
@override @override
String toString() { String toString() {
return 'User(fullname: $fullname, first_name: $first_name, last_name: $last_name, base_order: $base_order, mobile: $mobile, national_id: $national_id, national_code: $national_code, key: $key, city: $city, unit_name: $unit_name, unit_national_id: $unit_national_id, unit_registration_number: $unit_registration_number, unit_economical_number: $unit_economical_number, unit_province: $unit_province, unit_city: $unit_city, unit_postal_code: $unit_postal_code, unit_address: $unit_address)'; return 'User(fullname: $fullname, firstName: $firstName, lastName: $lastName, baseOrder: $baseOrder, mobile: $mobile, nationalId: $nationalId, nationalCode: $nationalCode, key: $key, city: $city, unitName: $unitName, unitNationalId: $unitNationalId, unitRegistrationNumber: $unitRegistrationNumber, unitEconomicalNumber: $unitEconomicalNumber, unitProvince: $unitProvince, unitCity: $unitCity, unitPostalCode: $unitPostalCode, unitAddress: $unitAddress)';
} }
@@ -663,7 +663,7 @@ abstract mixin class $UserCopyWith<$Res> {
factory $UserCopyWith(User value, $Res Function(User) _then) = _$UserCopyWithImpl; factory $UserCopyWith(User value, $Res Function(User) _then) = _$UserCopyWithImpl;
@useResult @useResult
$Res call({ $Res call({
String? fullname, String? first_name, String? last_name, int? base_order, String? mobile, String? national_id, String? national_code, String? key, City? city, String? unit_name, String? unit_national_id, String? unit_registration_number, String? unit_economical_number, String? unit_province, String? unit_city, String? unit_postal_code, String? unit_address String? fullname, String? firstName, String? lastName, int? baseOrder, String? mobile, String? nationalId, String? nationalCode, String? key, City? city, String? unitName, String? unitNationalId, String? unitRegistrationNumber, String? unitEconomicalNumber, String? unitProvince, String? unitCity, String? unitPostalCode, String? unitAddress
}); });
@@ -680,25 +680,25 @@ class _$UserCopyWithImpl<$Res>
/// Create a copy of User /// Create a copy of User
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? fullname = freezed,Object? first_name = freezed,Object? last_name = freezed,Object? base_order = freezed,Object? mobile = freezed,Object? national_id = freezed,Object? national_code = freezed,Object? key = freezed,Object? city = freezed,Object? unit_name = freezed,Object? unit_national_id = freezed,Object? unit_registration_number = freezed,Object? unit_economical_number = freezed,Object? unit_province = freezed,Object? unit_city = freezed,Object? unit_postal_code = freezed,Object? unit_address = freezed,}) { @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( return _then(_self.copyWith(
fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable
as String?,first_name: freezed == first_name ? _self.first_name : first_name // ignore: cast_nullable_to_non_nullable as String?,firstName: freezed == firstName ? _self.firstName : firstName // ignore: cast_nullable_to_non_nullable
as String?,last_name: freezed == last_name ? _self.last_name : last_name // ignore: cast_nullable_to_non_nullable as String?,lastName: freezed == lastName ? _self.lastName : lastName // ignore: cast_nullable_to_non_nullable
as String?,base_order: freezed == base_order ? _self.base_order : base_order // 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 int?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable
as String?,national_id: freezed == national_id ? _self.national_id : national_id // ignore: cast_nullable_to_non_nullable as String?,nationalId: freezed == nationalId ? _self.nationalId : nationalId // ignore: cast_nullable_to_non_nullable
as String?,national_code: freezed == national_code ? _self.national_code : national_code // 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?,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 String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable
as City?,unit_name: freezed == unit_name ? _self.unit_name : unit_name // ignore: cast_nullable_to_non_nullable as City?,unitName: freezed == unitName ? _self.unitName : unitName // ignore: cast_nullable_to_non_nullable
as String?,unit_national_id: freezed == unit_national_id ? _self.unit_national_id : unit_national_id // ignore: cast_nullable_to_non_nullable as String?,unitNationalId: freezed == unitNationalId ? _self.unitNationalId : unitNationalId // ignore: cast_nullable_to_non_nullable
as String?,unit_registration_number: freezed == unit_registration_number ? _self.unit_registration_number : unit_registration_number // ignore: cast_nullable_to_non_nullable as String?,unitRegistrationNumber: freezed == unitRegistrationNumber ? _self.unitRegistrationNumber : unitRegistrationNumber // ignore: cast_nullable_to_non_nullable
as String?,unit_economical_number: freezed == unit_economical_number ? _self.unit_economical_number : unit_economical_number // ignore: cast_nullable_to_non_nullable as String?,unitEconomicalNumber: freezed == unitEconomicalNumber ? _self.unitEconomicalNumber : unitEconomicalNumber // ignore: cast_nullable_to_non_nullable
as String?,unit_province: freezed == unit_province ? _self.unit_province : unit_province // ignore: cast_nullable_to_non_nullable as String?,unitProvince: freezed == unitProvince ? _self.unitProvince : unitProvince // ignore: cast_nullable_to_non_nullable
as String?,unit_city: freezed == unit_city ? _self.unit_city : unit_city // ignore: cast_nullable_to_non_nullable as String?,unitCity: freezed == unitCity ? _self.unitCity : unitCity // ignore: cast_nullable_to_non_nullable
as String?,unit_postal_code: freezed == unit_postal_code ? _self.unit_postal_code : unit_postal_code // ignore: cast_nullable_to_non_nullable as String?,unitPostalCode: freezed == unitPostalCode ? _self.unitPostalCode : unitPostalCode // ignore: cast_nullable_to_non_nullable
as String?,unit_address: freezed == unit_address ? _self.unit_address : unit_address // ignore: cast_nullable_to_non_nullable as String?,unitAddress: freezed == unitAddress ? _self.unitAddress : unitAddress // ignore: cast_nullable_to_non_nullable
as String?, as String?,
)); ));
} }
@@ -722,26 +722,26 @@ $CityCopyWith<$Res>? get city {
@JsonSerializable() @JsonSerializable()
class _User implements User { class _User implements User {
const _User({this.fullname, this.first_name, this.last_name, this.base_order, this.mobile, this.national_id, this.national_code, this.key, this.city, this.unit_name, this.unit_national_id, this.unit_registration_number, this.unit_economical_number, this.unit_province, this.unit_city, this.unit_postal_code, this.unit_address}); const _User({this.fullname, this.firstName, this.lastName, this.baseOrder, this.mobile, this.nationalId, this.nationalCode, this.key, this.city, this.unitName, this.unitNationalId, this.unitRegistrationNumber, this.unitEconomicalNumber, this.unitProvince, this.unitCity, this.unitPostalCode, this.unitAddress});
factory _User.fromJson(Map<String, dynamic> json) => _$UserFromJson(json); factory _User.fromJson(Map<String, dynamic> json) => _$UserFromJson(json);
@override final String? fullname; @override final String? fullname;
@override final String? first_name; @override final String? firstName;
@override final String? last_name; @override final String? lastName;
@override final int? base_order; @override final int? baseOrder;
@override final String? mobile; @override final String? mobile;
@override final String? national_id; @override final String? nationalId;
@override final String? national_code; @override final String? nationalCode;
@override final String? key; @override final String? key;
@override final City? city; @override final City? city;
@override final String? unit_name; @override final String? unitName;
@override final String? unit_national_id; @override final String? unitNationalId;
@override final String? unit_registration_number; @override final String? unitRegistrationNumber;
@override final String? unit_economical_number; @override final String? unitEconomicalNumber;
@override final String? unit_province; @override final String? unitProvince;
@override final String? unit_city; @override final String? unitCity;
@override final String? unit_postal_code; @override final String? unitPostalCode;
@override final String? unit_address; @override final String? unitAddress;
/// Create a copy of User /// Create a copy of User
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@@ -756,16 +756,16 @@ Map<String, dynamic> toJson() {
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is _User&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.first_name, first_name) || other.first_name == first_name)&&(identical(other.last_name, last_name) || other.last_name == last_name)&&(identical(other.base_order, base_order) || other.base_order == base_order)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.national_id, national_id) || other.national_id == national_id)&&(identical(other.national_code, national_code) || other.national_code == national_code)&&(identical(other.key, key) || other.key == key)&&(identical(other.city, city) || other.city == city)&&(identical(other.unit_name, unit_name) || other.unit_name == unit_name)&&(identical(other.unit_national_id, unit_national_id) || other.unit_national_id == unit_national_id)&&(identical(other.unit_registration_number, unit_registration_number) || other.unit_registration_number == unit_registration_number)&&(identical(other.unit_economical_number, unit_economical_number) || other.unit_economical_number == unit_economical_number)&&(identical(other.unit_province, unit_province) || other.unit_province == unit_province)&&(identical(other.unit_city, unit_city) || other.unit_city == unit_city)&&(identical(other.unit_postal_code, unit_postal_code) || other.unit_postal_code == unit_postal_code)&&(identical(other.unit_address, unit_address) || other.unit_address == unit_address)); return identical(this, other) || (other.runtimeType == runtimeType&&other is _User&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.baseOrder, baseOrder) || other.baseOrder == baseOrder)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.nationalId, nationalId) || other.nationalId == nationalId)&&(identical(other.nationalCode, nationalCode) || other.nationalCode == nationalCode)&&(identical(other.key, key) || other.key == key)&&(identical(other.city, city) || other.city == city)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.unitNationalId, unitNationalId) || other.unitNationalId == unitNationalId)&&(identical(other.unitRegistrationNumber, unitRegistrationNumber) || other.unitRegistrationNumber == unitRegistrationNumber)&&(identical(other.unitEconomicalNumber, unitEconomicalNumber) || other.unitEconomicalNumber == unitEconomicalNumber)&&(identical(other.unitProvince, unitProvince) || other.unitProvince == unitProvince)&&(identical(other.unitCity, unitCity) || other.unitCity == unitCity)&&(identical(other.unitPostalCode, unitPostalCode) || other.unitPostalCode == unitPostalCode)&&(identical(other.unitAddress, unitAddress) || other.unitAddress == unitAddress));
} }
@JsonKey(includeFromJson: false, includeToJson: false) @JsonKey(includeFromJson: false, includeToJson: false)
@override @override
int get hashCode => Object.hash(runtimeType,fullname,first_name,last_name,base_order,mobile,national_id,national_code,key,city,unit_name,unit_national_id,unit_registration_number,unit_economical_number,unit_province,unit_city,unit_postal_code,unit_address); int get hashCode => Object.hash(runtimeType,fullname,firstName,lastName,baseOrder,mobile,nationalId,nationalCode,key,city,unitName,unitNationalId,unitRegistrationNumber,unitEconomicalNumber,unitProvince,unitCity,unitPostalCode,unitAddress);
@override @override
String toString() { String toString() {
return 'User(fullname: $fullname, first_name: $first_name, last_name: $last_name, base_order: $base_order, mobile: $mobile, national_id: $national_id, national_code: $national_code, key: $key, city: $city, unit_name: $unit_name, unit_national_id: $unit_national_id, unit_registration_number: $unit_registration_number, unit_economical_number: $unit_economical_number, unit_province: $unit_province, unit_city: $unit_city, unit_postal_code: $unit_postal_code, unit_address: $unit_address)'; return 'User(fullname: $fullname, firstName: $firstName, lastName: $lastName, baseOrder: $baseOrder, mobile: $mobile, nationalId: $nationalId, nationalCode: $nationalCode, key: $key, city: $city, unitName: $unitName, unitNationalId: $unitNationalId, unitRegistrationNumber: $unitRegistrationNumber, unitEconomicalNumber: $unitEconomicalNumber, unitProvince: $unitProvince, unitCity: $unitCity, unitPostalCode: $unitPostalCode, unitAddress: $unitAddress)';
} }
@@ -776,7 +776,7 @@ abstract mixin class _$UserCopyWith<$Res> implements $UserCopyWith<$Res> {
factory _$UserCopyWith(_User value, $Res Function(_User) _then) = __$UserCopyWithImpl; factory _$UserCopyWith(_User value, $Res Function(_User) _then) = __$UserCopyWithImpl;
@override @useResult @override @useResult
$Res call({ $Res call({
String? fullname, String? first_name, String? last_name, int? base_order, String? mobile, String? national_id, String? national_code, String? key, City? city, String? unit_name, String? unit_national_id, String? unit_registration_number, String? unit_economical_number, String? unit_province, String? unit_city, String? unit_postal_code, String? unit_address String? fullname, String? firstName, String? lastName, int? baseOrder, String? mobile, String? nationalId, String? nationalCode, String? key, City? city, String? unitName, String? unitNationalId, String? unitRegistrationNumber, String? unitEconomicalNumber, String? unitProvince, String? unitCity, String? unitPostalCode, String? unitAddress
}); });
@@ -793,25 +793,25 @@ class __$UserCopyWithImpl<$Res>
/// Create a copy of User /// Create a copy of User
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? fullname = freezed,Object? first_name = freezed,Object? last_name = freezed,Object? base_order = freezed,Object? mobile = freezed,Object? national_id = freezed,Object? national_code = freezed,Object? key = freezed,Object? city = freezed,Object? unit_name = freezed,Object? unit_national_id = freezed,Object? unit_registration_number = freezed,Object? unit_economical_number = freezed,Object? unit_province = freezed,Object? unit_city = freezed,Object? unit_postal_code = freezed,Object? unit_address = freezed,}) { @override @pragma('vm:prefer-inline') $Res call({Object? fullname = freezed,Object? firstName = freezed,Object? lastName = freezed,Object? baseOrder = freezed,Object? mobile = freezed,Object? nationalId = freezed,Object? nationalCode = freezed,Object? key = freezed,Object? city = freezed,Object? unitName = freezed,Object? unitNationalId = freezed,Object? unitRegistrationNumber = freezed,Object? unitEconomicalNumber = freezed,Object? unitProvince = freezed,Object? unitCity = freezed,Object? unitPostalCode = freezed,Object? unitAddress = freezed,}) {
return _then(_User( return _then(_User(
fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable
as String?,first_name: freezed == first_name ? _self.first_name : first_name // ignore: cast_nullable_to_non_nullable as String?,firstName: freezed == firstName ? _self.firstName : firstName // ignore: cast_nullable_to_non_nullable
as String?,last_name: freezed == last_name ? _self.last_name : last_name // ignore: cast_nullable_to_non_nullable as String?,lastName: freezed == lastName ? _self.lastName : lastName // ignore: cast_nullable_to_non_nullable
as String?,base_order: freezed == base_order ? _self.base_order : base_order // 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 int?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable
as String?,national_id: freezed == national_id ? _self.national_id : national_id // ignore: cast_nullable_to_non_nullable as String?,nationalId: freezed == nationalId ? _self.nationalId : nationalId // ignore: cast_nullable_to_non_nullable
as String?,national_code: freezed == national_code ? _self.national_code : national_code // 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?,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 String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable
as City?,unit_name: freezed == unit_name ? _self.unit_name : unit_name // ignore: cast_nullable_to_non_nullable as City?,unitName: freezed == unitName ? _self.unitName : unitName // ignore: cast_nullable_to_non_nullable
as String?,unit_national_id: freezed == unit_national_id ? _self.unit_national_id : unit_national_id // ignore: cast_nullable_to_non_nullable as String?,unitNationalId: freezed == unitNationalId ? _self.unitNationalId : unitNationalId // ignore: cast_nullable_to_non_nullable
as String?,unit_registration_number: freezed == unit_registration_number ? _self.unit_registration_number : unit_registration_number // ignore: cast_nullable_to_non_nullable as String?,unitRegistrationNumber: freezed == unitRegistrationNumber ? _self.unitRegistrationNumber : unitRegistrationNumber // ignore: cast_nullable_to_non_nullable
as String?,unit_economical_number: freezed == unit_economical_number ? _self.unit_economical_number : unit_economical_number // ignore: cast_nullable_to_non_nullable as String?,unitEconomicalNumber: freezed == unitEconomicalNumber ? _self.unitEconomicalNumber : unitEconomicalNumber // ignore: cast_nullable_to_non_nullable
as String?,unit_province: freezed == unit_province ? _self.unit_province : unit_province // ignore: cast_nullable_to_non_nullable as String?,unitProvince: freezed == unitProvince ? _self.unitProvince : unitProvince // ignore: cast_nullable_to_non_nullable
as String?,unit_city: freezed == unit_city ? _self.unit_city : unit_city // ignore: cast_nullable_to_non_nullable as String?,unitCity: freezed == unitCity ? _self.unitCity : unitCity // ignore: cast_nullable_to_non_nullable
as String?,unit_postal_code: freezed == unit_postal_code ? _self.unit_postal_code : unit_postal_code // ignore: cast_nullable_to_non_nullable as String?,unitPostalCode: freezed == unitPostalCode ? _self.unitPostalCode : unitPostalCode // ignore: cast_nullable_to_non_nullable
as String?,unit_address: freezed == unit_address ? _self.unit_address : unit_address // ignore: cast_nullable_to_non_nullable as String?,unitAddress: freezed == unitAddress ? _self.unitAddress : unitAddress // ignore: cast_nullable_to_non_nullable
as String?, as String?,
)); ));
} }
@@ -835,7 +835,7 @@ $CityCopyWith<$Res>? get city {
/// @nodoc /// @nodoc
mixin _$City { mixin _$City {
int? get id; String? get key; String? get create_date; String? get modify_date; bool? get trash; int? get province_id_foreign_key; int? get city_id_key; String? get name; int? get product_price; bool? get province_center; int? get city_number; String? get city_name; int? get province_number; String? get province_name; String? get created_by; String? get modified_by; int? get province; 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 City /// Create a copy of City
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false) @JsonKey(includeFromJson: false, includeToJson: false)
@@ -848,16 +848,16 @@ $CityCopyWith<City> get copyWith => _$CityCopyWithImpl<City>(this as City, _$ide
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is City&&(identical(other.id, id) || other.id == id)&&(identical(other.key, key) || other.key == key)&&(identical(other.create_date, create_date) || other.create_date == create_date)&&(identical(other.modify_date, modify_date) || other.modify_date == modify_date)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.province_id_foreign_key, province_id_foreign_key) || other.province_id_foreign_key == province_id_foreign_key)&&(identical(other.city_id_key, city_id_key) || other.city_id_key == city_id_key)&&(identical(other.name, name) || other.name == name)&&(identical(other.product_price, product_price) || other.product_price == product_price)&&(identical(other.province_center, province_center) || other.province_center == province_center)&&(identical(other.city_number, city_number) || other.city_number == city_number)&&(identical(other.city_name, city_name) || other.city_name == city_name)&&(identical(other.province_number, province_number) || other.province_number == province_number)&&(identical(other.province_name, province_name) || other.province_name == province_name)&&(identical(other.created_by, created_by) || other.created_by == created_by)&&(identical(other.modified_by, modified_by) || other.modified_by == modified_by)&&(identical(other.province, province) || other.province == province)); return identical(this, other) || (other.runtimeType == runtimeType&&other is City&&(identical(other.id, id) || other.id == id)&&(identical(other.key, key) || other.key == key)&&(identical(other.createDate, createDate) || other.createDate == createDate)&&(identical(other.modifyDate, modifyDate) || other.modifyDate == modifyDate)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.provinceIdForeignKey, provinceIdForeignKey) || other.provinceIdForeignKey == provinceIdForeignKey)&&(identical(other.cityIdKey, cityIdKey) || other.cityIdKey == cityIdKey)&&(identical(other.name, name) || other.name == name)&&(identical(other.productPrice, productPrice) || other.productPrice == productPrice)&&(identical(other.provinceCenter, provinceCenter) || other.provinceCenter == provinceCenter)&&(identical(other.cityNumber, cityNumber) || other.cityNumber == cityNumber)&&(identical(other.cityName, cityName) || other.cityName == cityName)&&(identical(other.provinceNumber, provinceNumber) || other.provinceNumber == provinceNumber)&&(identical(other.provinceName, provinceName) || other.provinceName == provinceName)&&(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) @JsonKey(includeFromJson: false, includeToJson: false)
@override @override
int get hashCode => Object.hash(runtimeType,id,key,create_date,modify_date,trash,province_id_foreign_key,city_id_key,name,product_price,province_center,city_number,city_name,province_number,province_name,created_by,modified_by,province); int get hashCode => Object.hash(runtimeType,id,key,createDate,modifyDate,trash,provinceIdForeignKey,cityIdKey,name,productPrice,provinceCenter,cityNumber,cityName,provinceNumber,provinceName,createdBy,modifiedBy,province);
@override @override
String toString() { String toString() {
return 'City(id: $id, key: $key, create_date: $create_date, modify_date: $modify_date, trash: $trash, province_id_foreign_key: $province_id_foreign_key, city_id_key: $city_id_key, name: $name, product_price: $product_price, province_center: $province_center, city_number: $city_number, city_name: $city_name, province_number: $province_number, province_name: $province_name, created_by: $created_by, modified_by: $modified_by, province: $province)'; return 'City(id: $id, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, provinceIdForeignKey: $provinceIdForeignKey, cityIdKey: $cityIdKey, name: $name, productPrice: $productPrice, provinceCenter: $provinceCenter, cityNumber: $cityNumber, cityName: $cityName, provinceNumber: $provinceNumber, provinceName: $provinceName, createdBy: $createdBy, modifiedBy: $modifiedBy, province: $province)';
} }
@@ -868,7 +868,7 @@ abstract mixin class $CityCopyWith<$Res> {
factory $CityCopyWith(City value, $Res Function(City) _then) = _$CityCopyWithImpl; factory $CityCopyWith(City value, $Res Function(City) _then) = _$CityCopyWithImpl;
@useResult @useResult
$Res call({ $Res call({
int? id, String? key, String? create_date, String? modify_date, bool? trash, int? province_id_foreign_key, int? city_id_key, String? name, int? product_price, bool? province_center, int? city_number, String? city_name, int? province_number, String? province_name, String? created_by, String? modified_by, int? province 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
}); });
@@ -885,24 +885,24 @@ class _$CityCopyWithImpl<$Res>
/// Create a copy of City /// Create a copy of City
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? key = freezed,Object? create_date = freezed,Object? modify_date = freezed,Object? trash = freezed,Object? province_id_foreign_key = freezed,Object? city_id_key = freezed,Object? name = freezed,Object? product_price = freezed,Object? province_center = freezed,Object? city_number = freezed,Object? city_name = freezed,Object? province_number = freezed,Object? province_name = freezed,Object? created_by = freezed,Object? modified_by = freezed,Object? province = freezed,}) { @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( return _then(_self.copyWith(
id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable 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 int?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable
as String?,create_date: freezed == create_date ? _self.create_date : create_date // ignore: cast_nullable_to_non_nullable as String?,createDate: freezed == createDate ? _self.createDate : createDate // ignore: cast_nullable_to_non_nullable
as String?,modify_date: freezed == modify_date ? _self.modify_date : modify_date // ignore: cast_nullable_to_non_nullable as String?,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 String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable
as bool?,province_id_foreign_key: freezed == province_id_foreign_key ? _self.province_id_foreign_key : province_id_foreign_key // ignore: cast_nullable_to_non_nullable as bool?,provinceIdForeignKey: freezed == provinceIdForeignKey ? _self.provinceIdForeignKey : provinceIdForeignKey // ignore: cast_nullable_to_non_nullable
as int?,city_id_key: freezed == city_id_key ? _self.city_id_key : city_id_key // 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 int?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable
as String?,product_price: freezed == product_price ? _self.product_price : product_price // ignore: cast_nullable_to_non_nullable as String?,productPrice: freezed == productPrice ? _self.productPrice : productPrice // ignore: cast_nullable_to_non_nullable
as int?,province_center: freezed == province_center ? _self.province_center : province_center // ignore: cast_nullable_to_non_nullable as double?,provinceCenter: freezed == provinceCenter ? _self.provinceCenter : provinceCenter // ignore: cast_nullable_to_non_nullable
as bool?,city_number: freezed == city_number ? _self.city_number : city_number // ignore: cast_nullable_to_non_nullable as bool?,cityNumber: freezed == cityNumber ? _self.cityNumber : cityNumber // ignore: cast_nullable_to_non_nullable
as int?,city_name: freezed == city_name ? _self.city_name : city_name // ignore: cast_nullable_to_non_nullable as int?,cityName: freezed == cityName ? _self.cityName : cityName // ignore: cast_nullable_to_non_nullable
as String?,province_number: freezed == province_number ? _self.province_number : province_number // ignore: cast_nullable_to_non_nullable as String?,provinceNumber: freezed == provinceNumber ? _self.provinceNumber : provinceNumber // ignore: cast_nullable_to_non_nullable
as int?,province_name: freezed == province_name ? _self.province_name : province_name // ignore: cast_nullable_to_non_nullable as int?,provinceName: freezed == provinceName ? _self.provinceName : provinceName // ignore: cast_nullable_to_non_nullable
as String?,created_by: freezed == created_by ? _self.created_by : created_by // ignore: cast_nullable_to_non_nullable as String?,createdBy: freezed == createdBy ? _self.createdBy : createdBy // ignore: cast_nullable_to_non_nullable
as String?,modified_by: freezed == modified_by ? _self.modified_by : modified_by // ignore: cast_nullable_to_non_nullable as String?,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 String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable
as int?, as int?,
)); ));
@@ -915,25 +915,25 @@ as int?,
@JsonSerializable() @JsonSerializable()
class _City implements City { class _City implements City {
const _City({this.id, this.key, this.create_date, this.modify_date, this.trash, this.province_id_foreign_key, this.city_id_key, this.name, this.product_price, this.province_center, this.city_number, this.city_name, this.province_number, this.province_name, this.created_by, this.modified_by, this.province}); const _City({this.id, this.key, this.createDate, this.modifyDate, this.trash, this.provinceIdForeignKey, this.cityIdKey, this.name, this.productPrice, this.provinceCenter, this.cityNumber, this.cityName, this.provinceNumber, this.provinceName, this.createdBy, this.modifiedBy, this.province});
factory _City.fromJson(Map<String, dynamic> json) => _$CityFromJson(json); factory _City.fromJson(Map<String, dynamic> json) => _$CityFromJson(json);
@override final int? id; @override final int? id;
@override final String? key; @override final String? key;
@override final String? create_date; @override final String? createDate;
@override final String? modify_date; @override final String? modifyDate;
@override final bool? trash; @override final bool? trash;
@override final int? province_id_foreign_key; @override final int? provinceIdForeignKey;
@override final int? city_id_key; @override final int? cityIdKey;
@override final String? name; @override final String? name;
@override final int? product_price; @override final double? productPrice;
@override final bool? province_center; @override final bool? provinceCenter;
@override final int? city_number; @override final int? cityNumber;
@override final String? city_name; @override final String? cityName;
@override final int? province_number; @override final int? provinceNumber;
@override final String? province_name; @override final String? provinceName;
@override final String? created_by; @override final String? createdBy;
@override final String? modified_by; @override final String? modifiedBy;
@override final int? province; @override final int? province;
/// Create a copy of City /// Create a copy of City
@@ -949,16 +949,16 @@ Map<String, dynamic> toJson() {
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is _City&&(identical(other.id, id) || other.id == id)&&(identical(other.key, key) || other.key == key)&&(identical(other.create_date, create_date) || other.create_date == create_date)&&(identical(other.modify_date, modify_date) || other.modify_date == modify_date)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.province_id_foreign_key, province_id_foreign_key) || other.province_id_foreign_key == province_id_foreign_key)&&(identical(other.city_id_key, city_id_key) || other.city_id_key == city_id_key)&&(identical(other.name, name) || other.name == name)&&(identical(other.product_price, product_price) || other.product_price == product_price)&&(identical(other.province_center, province_center) || other.province_center == province_center)&&(identical(other.city_number, city_number) || other.city_number == city_number)&&(identical(other.city_name, city_name) || other.city_name == city_name)&&(identical(other.province_number, province_number) || other.province_number == province_number)&&(identical(other.province_name, province_name) || other.province_name == province_name)&&(identical(other.created_by, created_by) || other.created_by == created_by)&&(identical(other.modified_by, modified_by) || other.modified_by == modified_by)&&(identical(other.province, province) || other.province == province)); return identical(this, other) || (other.runtimeType == runtimeType&&other is _City&&(identical(other.id, id) || other.id == id)&&(identical(other.key, key) || other.key == key)&&(identical(other.createDate, createDate) || other.createDate == createDate)&&(identical(other.modifyDate, modifyDate) || other.modifyDate == modifyDate)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.provinceIdForeignKey, provinceIdForeignKey) || other.provinceIdForeignKey == provinceIdForeignKey)&&(identical(other.cityIdKey, cityIdKey) || other.cityIdKey == cityIdKey)&&(identical(other.name, name) || other.name == name)&&(identical(other.productPrice, productPrice) || other.productPrice == productPrice)&&(identical(other.provinceCenter, provinceCenter) || other.provinceCenter == provinceCenter)&&(identical(other.cityNumber, cityNumber) || other.cityNumber == cityNumber)&&(identical(other.cityName, cityName) || other.cityName == cityName)&&(identical(other.provinceNumber, provinceNumber) || other.provinceNumber == provinceNumber)&&(identical(other.provinceName, provinceName) || other.provinceName == provinceName)&&(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) @JsonKey(includeFromJson: false, includeToJson: false)
@override @override
int get hashCode => Object.hash(runtimeType,id,key,create_date,modify_date,trash,province_id_foreign_key,city_id_key,name,product_price,province_center,city_number,city_name,province_number,province_name,created_by,modified_by,province); int get hashCode => Object.hash(runtimeType,id,key,createDate,modifyDate,trash,provinceIdForeignKey,cityIdKey,name,productPrice,provinceCenter,cityNumber,cityName,provinceNumber,provinceName,createdBy,modifiedBy,province);
@override @override
String toString() { String toString() {
return 'City(id: $id, key: $key, create_date: $create_date, modify_date: $modify_date, trash: $trash, province_id_foreign_key: $province_id_foreign_key, city_id_key: $city_id_key, name: $name, product_price: $product_price, province_center: $province_center, city_number: $city_number, city_name: $city_name, province_number: $province_number, province_name: $province_name, created_by: $created_by, modified_by: $modified_by, province: $province)'; return 'City(id: $id, key: $key, createDate: $createDate, modifyDate: $modifyDate, trash: $trash, provinceIdForeignKey: $provinceIdForeignKey, cityIdKey: $cityIdKey, name: $name, productPrice: $productPrice, provinceCenter: $provinceCenter, cityNumber: $cityNumber, cityName: $cityName, provinceNumber: $provinceNumber, provinceName: $provinceName, createdBy: $createdBy, modifiedBy: $modifiedBy, province: $province)';
} }
@@ -969,7 +969,7 @@ abstract mixin class _$CityCopyWith<$Res> implements $CityCopyWith<$Res> {
factory _$CityCopyWith(_City value, $Res Function(_City) _then) = __$CityCopyWithImpl; factory _$CityCopyWith(_City value, $Res Function(_City) _then) = __$CityCopyWithImpl;
@override @useResult @override @useResult
$Res call({ $Res call({
int? id, String? key, String? create_date, String? modify_date, bool? trash, int? province_id_foreign_key, int? city_id_key, String? name, int? product_price, bool? province_center, int? city_number, String? city_name, int? province_number, String? province_name, String? created_by, String? modified_by, int? province 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
}); });
@@ -986,24 +986,24 @@ class __$CityCopyWithImpl<$Res>
/// Create a copy of City /// Create a copy of City
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? key = freezed,Object? create_date = freezed,Object? modify_date = freezed,Object? trash = freezed,Object? province_id_foreign_key = freezed,Object? city_id_key = freezed,Object? name = freezed,Object? product_price = freezed,Object? province_center = freezed,Object? city_number = freezed,Object? city_name = freezed,Object? province_number = freezed,Object? province_name = freezed,Object? created_by = freezed,Object? modified_by = freezed,Object? province = freezed,}) { @override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? key = freezed,Object? createDate = freezed,Object? modifyDate = freezed,Object? trash = freezed,Object? provinceIdForeignKey = freezed,Object? cityIdKey = freezed,Object? name = freezed,Object? productPrice = freezed,Object? provinceCenter = freezed,Object? cityNumber = freezed,Object? cityName = freezed,Object? provinceNumber = freezed,Object? provinceName = freezed,Object? createdBy = freezed,Object? modifiedBy = freezed,Object? province = freezed,}) {
return _then(_City( return _then(_City(
id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable 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 int?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable
as String?,create_date: freezed == create_date ? _self.create_date : create_date // ignore: cast_nullable_to_non_nullable as String?,createDate: freezed == createDate ? _self.createDate : createDate // ignore: cast_nullable_to_non_nullable
as String?,modify_date: freezed == modify_date ? _self.modify_date : modify_date // ignore: cast_nullable_to_non_nullable as String?,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 String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable
as bool?,province_id_foreign_key: freezed == province_id_foreign_key ? _self.province_id_foreign_key : province_id_foreign_key // ignore: cast_nullable_to_non_nullable as bool?,provinceIdForeignKey: freezed == provinceIdForeignKey ? _self.provinceIdForeignKey : provinceIdForeignKey // ignore: cast_nullable_to_non_nullable
as int?,city_id_key: freezed == city_id_key ? _self.city_id_key : city_id_key // 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 int?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable
as String?,product_price: freezed == product_price ? _self.product_price : product_price // ignore: cast_nullable_to_non_nullable as String?,productPrice: freezed == productPrice ? _self.productPrice : productPrice // ignore: cast_nullable_to_non_nullable
as int?,province_center: freezed == province_center ? _self.province_center : province_center // ignore: cast_nullable_to_non_nullable as double?,provinceCenter: freezed == provinceCenter ? _self.provinceCenter : provinceCenter // ignore: cast_nullable_to_non_nullable
as bool?,city_number: freezed == city_number ? _self.city_number : city_number // ignore: cast_nullable_to_non_nullable as bool?,cityNumber: freezed == cityNumber ? _self.cityNumber : cityNumber // ignore: cast_nullable_to_non_nullable
as int?,city_name: freezed == city_name ? _self.city_name : city_name // ignore: cast_nullable_to_non_nullable as int?,cityName: freezed == cityName ? _self.cityName : cityName // ignore: cast_nullable_to_non_nullable
as String?,province_number: freezed == province_number ? _self.province_number : province_number // ignore: cast_nullable_to_non_nullable as String?,provinceNumber: freezed == provinceNumber ? _self.provinceNumber : provinceNumber // ignore: cast_nullable_to_non_nullable
as int?,province_name: freezed == province_name ? _self.province_name : province_name // ignore: cast_nullable_to_non_nullable as int?,provinceName: freezed == provinceName ? _self.provinceName : provinceName // ignore: cast_nullable_to_non_nullable
as String?,created_by: freezed == created_by ? _self.created_by : created_by // ignore: cast_nullable_to_non_nullable as String?,createdBy: freezed == createdBy ? _self.createdBy : createdBy // ignore: cast_nullable_to_non_nullable
as String?,modified_by: freezed == modified_by ? _self.modified_by : modified_by // ignore: cast_nullable_to_non_nullable as String?,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 String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable
as int?, as int?,
)); ));
@@ -1016,7 +1016,7 @@ as int?,
/// @nodoc /// @nodoc
mixin _$Address { mixin _$Address {
Province? get province; City? get city; String? get address; String? get postal_code; Province? get province; City? get city; String? get address; String? get postalCode;
/// Create a copy of Address /// Create a copy of Address
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false) @JsonKey(includeFromJson: false, includeToJson: false)
@@ -1029,16 +1029,16 @@ $AddressCopyWith<Address> get copyWith => _$AddressCopyWithImpl<Address>(this as
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is Address&&(identical(other.province, province) || other.province == province)&&(identical(other.city, city) || other.city == city)&&(identical(other.address, address) || other.address == address)&&(identical(other.postal_code, postal_code) || other.postal_code == postal_code)); return identical(this, other) || (other.runtimeType == runtimeType&&other is Address&&(identical(other.province, province) || other.province == province)&&(identical(other.city, city) || other.city == city)&&(identical(other.address, address) || other.address == address)&&(identical(other.postalCode, postalCode) || other.postalCode == postalCode));
} }
@JsonKey(includeFromJson: false, includeToJson: false) @JsonKey(includeFromJson: false, includeToJson: false)
@override @override
int get hashCode => Object.hash(runtimeType,province,city,address,postal_code); int get hashCode => Object.hash(runtimeType,province,city,address,postalCode);
@override @override
String toString() { String toString() {
return 'Address(province: $province, city: $city, address: $address, postal_code: $postal_code)'; return 'Address(province: $province, city: $city, address: $address, postalCode: $postalCode)';
} }
@@ -1049,7 +1049,7 @@ abstract mixin class $AddressCopyWith<$Res> {
factory $AddressCopyWith(Address value, $Res Function(Address) _then) = _$AddressCopyWithImpl; factory $AddressCopyWith(Address value, $Res Function(Address) _then) = _$AddressCopyWithImpl;
@useResult @useResult
$Res call({ $Res call({
Province? province, City? city, String? address, String? postal_code Province? province, City? city, String? address, String? postalCode
}); });
@@ -1066,12 +1066,12 @@ class _$AddressCopyWithImpl<$Res>
/// Create a copy of Address /// Create a copy of Address
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? province = freezed,Object? city = freezed,Object? address = freezed,Object? postal_code = freezed,}) { @pragma('vm:prefer-inline') @override $Res call({Object? province = freezed,Object? city = freezed,Object? address = freezed,Object? postalCode = freezed,}) {
return _then(_self.copyWith( return _then(_self.copyWith(
province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable
as Province?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable as Province?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable
as City?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable as City?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable
as String?,postal_code: freezed == postal_code ? _self.postal_code : postal_code // ignore: cast_nullable_to_non_nullable as String?,postalCode: freezed == postalCode ? _self.postalCode : postalCode // ignore: cast_nullable_to_non_nullable
as String?, as String?,
)); ));
} }
@@ -1107,13 +1107,13 @@ $CityCopyWith<$Res>? get city {
@JsonSerializable() @JsonSerializable()
class _Address implements Address { class _Address implements Address {
const _Address({this.province, this.city, this.address, this.postal_code}); const _Address({this.province, this.city, this.address, this.postalCode});
factory _Address.fromJson(Map<String, dynamic> json) => _$AddressFromJson(json); factory _Address.fromJson(Map<String, dynamic> json) => _$AddressFromJson(json);
@override final Province? province; @override final Province? province;
@override final City? city; @override final City? city;
@override final String? address; @override final String? address;
@override final String? postal_code; @override final String? postalCode;
/// Create a copy of Address /// Create a copy of Address
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@@ -1128,16 +1128,16 @@ Map<String, dynamic> toJson() {
@override @override
bool operator ==(Object other) { bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is _Address&&(identical(other.province, province) || other.province == province)&&(identical(other.city, city) || other.city == city)&&(identical(other.address, address) || other.address == address)&&(identical(other.postal_code, postal_code) || other.postal_code == postal_code)); return identical(this, other) || (other.runtimeType == runtimeType&&other is _Address&&(identical(other.province, province) || other.province == province)&&(identical(other.city, city) || other.city == city)&&(identical(other.address, address) || other.address == address)&&(identical(other.postalCode, postalCode) || other.postalCode == postalCode));
} }
@JsonKey(includeFromJson: false, includeToJson: false) @JsonKey(includeFromJson: false, includeToJson: false)
@override @override
int get hashCode => Object.hash(runtimeType,province,city,address,postal_code); int get hashCode => Object.hash(runtimeType,province,city,address,postalCode);
@override @override
String toString() { String toString() {
return 'Address(province: $province, city: $city, address: $address, postal_code: $postal_code)'; return 'Address(province: $province, city: $city, address: $address, postalCode: $postalCode)';
} }
@@ -1148,7 +1148,7 @@ abstract mixin class _$AddressCopyWith<$Res> implements $AddressCopyWith<$Res> {
factory _$AddressCopyWith(_Address value, $Res Function(_Address) _then) = __$AddressCopyWithImpl; factory _$AddressCopyWith(_Address value, $Res Function(_Address) _then) = __$AddressCopyWithImpl;
@override @useResult @override @useResult
$Res call({ $Res call({
Province? province, City? city, String? address, String? postal_code Province? province, City? city, String? address, String? postalCode
}); });
@@ -1165,12 +1165,12 @@ class __$AddressCopyWithImpl<$Res>
/// Create a copy of Address /// Create a copy of Address
/// with the given fields replaced by the non-null parameter values. /// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? province = freezed,Object? city = freezed,Object? address = freezed,Object? postal_code = freezed,}) { @override @pragma('vm:prefer-inline') $Res call({Object? province = freezed,Object? city = freezed,Object? address = freezed,Object? postalCode = freezed,}) {
return _then(_Address( return _then(_Address(
province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable
as Province?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable as Province?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable
as City?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable as City?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable
as String?,postal_code: freezed == postal_code ? _self.postal_code : postal_code // ignore: cast_nullable_to_non_nullable as String?,postalCode: freezed == postalCode ? _self.postalCode : postalCode // ignore: cast_nullable_to_non_nullable
as String?, as String?,
)); ));
} }

View File

@@ -34,27 +34,27 @@ _Result _$ResultFromJson(Map<String, dynamic> json) => _Result(
? null ? null
: Product.fromJson(json['product'] as Map<String, dynamic>), : Product.fromJson(json['product'] as Map<String, dynamic>),
key: json['key'] as String?, key: json['key'] as String?,
create_date: json['create_date'] as String?, createDate: json['create_date'] as String?,
modify_date: json['modify_date'] as String?, modifyDate: json['modify_date'] as String?,
trash: json['trash'] as bool?, trash: json['trash'] as bool?,
kill_house_name: json['kill_house_name'] as String?, killHouseName: json['kill_house_name'] as String?,
kill_house_mobile: json['kill_house_mobile'] as String?, killHouseMobile: json['kill_house_mobile'] as String?,
kill_house_vet_name: json['kill_house_vet_name'] as String?, killHouseVetName: json['kill_house_vet_name'] as String?,
kill_house_vet_mobile: json['kill_house_vet_mobile'] as String?, killHouseVetMobile: json['kill_house_vet_mobile'] as String?,
province: json['province'] as String?, province: json['province'] as String?,
city: json['city'] as String?, city: json['city'] as String?,
driver_name: json['driver_name'] as String?, driverName: json['driver_name'] as String?,
driver_mobile: json['driver_mobile'] as String?, driverMobile: json['driver_mobile'] as String?,
car: json['car'], car: json['car'],
pelak: json['pelak'] as String?, pelak: json['pelak'] as String?,
number_of_carcasses: (json['number_of_carcasses'] as num?)?.toInt(), numberOfCarcasses: (json['number_of_carcasses'] as num?)?.toInt(),
weight_of_carcasses: (json['weight_of_carcasses'] as num?)?.toInt(), weightOfCarcasses: (json['weight_of_carcasses'] as num?)?.toDouble(),
bar_image: json['bar_image'] as String?, barImage: json['bar_image'] as String?,
date: json['date'] as String?, date: json['date'] as String?,
temporary_trash: json['temporary_trash'] as bool?, temporaryTrash: json['temporary_trash'] as bool?,
temporary_deleted: json['temporary_deleted'] as bool?, temporaryDeleted: json['temporary_deleted'] as bool?,
created_by: json['created_by'] as String?, createdBy: json['created_by'] as String?,
modified_by: json['modified_by'] as String?, modifiedBy: json['modified_by'] as String?,
); );
Map<String, dynamic> _$ResultToJson(_Result instance) => <String, dynamic>{ Map<String, dynamic> _$ResultToJson(_Result instance) => <String, dynamic>{
@@ -63,138 +63,138 @@ Map<String, dynamic> _$ResultToJson(_Result instance) => <String, dynamic>{
'guild': instance.guild, 'guild': instance.guild,
'product': instance.product, 'product': instance.product,
'key': instance.key, 'key': instance.key,
'create_date': instance.create_date, 'create_date': instance.createDate,
'modify_date': instance.modify_date, 'modify_date': instance.modifyDate,
'trash': instance.trash, 'trash': instance.trash,
'kill_house_name': instance.kill_house_name, 'kill_house_name': instance.killHouseName,
'kill_house_mobile': instance.kill_house_mobile, 'kill_house_mobile': instance.killHouseMobile,
'kill_house_vet_name': instance.kill_house_vet_name, 'kill_house_vet_name': instance.killHouseVetName,
'kill_house_vet_mobile': instance.kill_house_vet_mobile, 'kill_house_vet_mobile': instance.killHouseVetMobile,
'province': instance.province, 'province': instance.province,
'city': instance.city, 'city': instance.city,
'driver_name': instance.driver_name, 'driver_name': instance.driverName,
'driver_mobile': instance.driver_mobile, 'driver_mobile': instance.driverMobile,
'car': instance.car, 'car': instance.car,
'pelak': instance.pelak, 'pelak': instance.pelak,
'number_of_carcasses': instance.number_of_carcasses, 'number_of_carcasses': instance.numberOfCarcasses,
'weight_of_carcasses': instance.weight_of_carcasses, 'weight_of_carcasses': instance.weightOfCarcasses,
'bar_image': instance.bar_image, 'bar_image': instance.barImage,
'date': instance.date, 'date': instance.date,
'temporary_trash': instance.temporary_trash, 'temporary_trash': instance.temporaryTrash,
'temporary_deleted': instance.temporary_deleted, 'temporary_deleted': instance.temporaryDeleted,
'created_by': instance.created_by, 'created_by': instance.createdBy,
'modified_by': instance.modified_by, 'modified_by': instance.modifiedBy,
}; };
_Steward _$StewardFromJson(Map<String, dynamic> json) => _Steward( _Steward _$StewardFromJson(Map<String, dynamic> json) => _Steward(
user: json['user'] == null user: json['user'] == null
? null ? null
: User.fromJson(json['user'] as Map<String, dynamic>), : User.fromJson(json['user'] as Map<String, dynamic>),
guilds_name: json['guilds_name'] as String?, guildsName: json['guilds_name'] as String?,
steward: json['steward'] as bool?, steward: json['steward'] as bool?,
allocation_limit: json['allocation_limit'], allocationLimit: (json['allocation_limit'] as num?)?.toInt(),
address: json['address'] == null address: json['address'] == null
? null ? null
: Address.fromJson(json['address'] as Map<String, dynamic>), : Address.fromJson(json['address'] as Map<String, dynamic>),
license_number: json['license_number'] as String?, licenseNumber: json['license_number'] as String?,
type_activity: json['type_activity'] as String?, typeActivity: json['type_activity'] as String?,
area_activity: json['area_activity'] as String?, areaActivity: json['area_activity'] as String?,
guilds_id: json['guilds_id'] as String?, guildsId: json['guilds_id'] as String?,
create_date: json['create_date'] as String?, createDate: json['create_date'] as String?,
); );
Map<String, dynamic> _$StewardToJson(_Steward instance) => <String, dynamic>{ Map<String, dynamic> _$StewardToJson(_Steward instance) => <String, dynamic>{
'user': instance.user, 'user': instance.user,
'guilds_name': instance.guilds_name, 'guilds_name': instance.guildsName,
'steward': instance.steward, 'steward': instance.steward,
'allocation_limit': instance.allocation_limit, 'allocation_limit': instance.allocationLimit,
'address': instance.address, 'address': instance.address,
'license_number': instance.license_number, 'license_number': instance.licenseNumber,
'type_activity': instance.type_activity, 'type_activity': instance.typeActivity,
'area_activity': instance.area_activity, 'area_activity': instance.areaActivity,
'guilds_id': instance.guilds_id, 'guilds_id': instance.guildsId,
'create_date': instance.create_date, 'create_date': instance.createDate,
}; };
_User _$UserFromJson(Map<String, dynamic> json) => _User( _User _$UserFromJson(Map<String, dynamic> json) => _User(
fullname: json['fullname'] as String?, fullname: json['fullname'] as String?,
first_name: json['first_name'] as String?, firstName: json['first_name'] as String?,
last_name: json['last_name'] as String?, lastName: json['last_name'] as String?,
base_order: (json['base_order'] as num?)?.toInt(), baseOrder: (json['base_order'] as num?)?.toInt(),
mobile: json['mobile'] as String?, mobile: json['mobile'] as String?,
national_id: json['national_id'] as String?, nationalId: json['national_id'] as String?,
national_code: json['national_code'] as String?, nationalCode: json['national_code'] as String?,
key: json['key'] as String?, key: json['key'] as String?,
city: json['city'] == null city: json['city'] == null
? null ? null
: City.fromJson(json['city'] as Map<String, dynamic>), : City.fromJson(json['city'] as Map<String, dynamic>),
unit_name: json['unit_name'] as String?, unitName: json['unit_name'] as String?,
unit_national_id: json['unit_national_id'] as String?, unitNationalId: json['unit_national_id'] as String?,
unit_registration_number: json['unit_registration_number'] as String?, unitRegistrationNumber: json['unit_registration_number'] as String?,
unit_economical_number: json['unit_economical_number'] as String?, unitEconomicalNumber: json['unit_economical_number'] as String?,
unit_province: json['unit_province'] as String?, unitProvince: json['unit_province'] as String?,
unit_city: json['unit_city'] as String?, unitCity: json['unit_city'] as String?,
unit_postal_code: json['unit_postal_code'] as String?, unitPostalCode: json['unit_postal_code'] as String?,
unit_address: json['unit_address'] as String?, unitAddress: json['unit_address'] as String?,
); );
Map<String, dynamic> _$UserToJson(_User instance) => <String, dynamic>{ Map<String, dynamic> _$UserToJson(_User instance) => <String, dynamic>{
'fullname': instance.fullname, 'fullname': instance.fullname,
'first_name': instance.first_name, 'first_name': instance.firstName,
'last_name': instance.last_name, 'last_name': instance.lastName,
'base_order': instance.base_order, 'base_order': instance.baseOrder,
'mobile': instance.mobile, 'mobile': instance.mobile,
'national_id': instance.national_id, 'national_id': instance.nationalId,
'national_code': instance.national_code, 'national_code': instance.nationalCode,
'key': instance.key, 'key': instance.key,
'city': instance.city, 'city': instance.city,
'unit_name': instance.unit_name, 'unit_name': instance.unitName,
'unit_national_id': instance.unit_national_id, 'unit_national_id': instance.unitNationalId,
'unit_registration_number': instance.unit_registration_number, 'unit_registration_number': instance.unitRegistrationNumber,
'unit_economical_number': instance.unit_economical_number, 'unit_economical_number': instance.unitEconomicalNumber,
'unit_province': instance.unit_province, 'unit_province': instance.unitProvince,
'unit_city': instance.unit_city, 'unit_city': instance.unitCity,
'unit_postal_code': instance.unit_postal_code, 'unit_postal_code': instance.unitPostalCode,
'unit_address': instance.unit_address, 'unit_address': instance.unitAddress,
}; };
_City _$CityFromJson(Map<String, dynamic> json) => _City( _City _$CityFromJson(Map<String, dynamic> json) => _City(
id: (json['id'] as num?)?.toInt(), id: (json['id'] as num?)?.toInt(),
key: json['key'] as String?, key: json['key'] as String?,
create_date: json['create_date'] as String?, createDate: json['create_date'] as String?,
modify_date: json['modify_date'] as String?, modifyDate: json['modify_date'] as String?,
trash: json['trash'] as bool?, trash: json['trash'] as bool?,
province_id_foreign_key: (json['province_id_foreign_key'] as num?)?.toInt(), provinceIdForeignKey: (json['province_id_foreign_key'] as num?)?.toInt(),
city_id_key: (json['city_id_key'] as num?)?.toInt(), cityIdKey: (json['city_id_key'] as num?)?.toInt(),
name: json['name'] as String?, name: json['name'] as String?,
product_price: (json['product_price'] as num?)?.toInt(), productPrice: (json['product_price'] as num?)?.toDouble(),
province_center: json['province_center'] as bool?, provinceCenter: json['province_center'] as bool?,
city_number: (json['city_number'] as num?)?.toInt(), cityNumber: (json['city_number'] as num?)?.toInt(),
city_name: json['city_name'] as String?, cityName: json['city_name'] as String?,
province_number: (json['province_number'] as num?)?.toInt(), provinceNumber: (json['province_number'] as num?)?.toInt(),
province_name: json['province_name'] as String?, provinceName: json['province_name'] as String?,
created_by: json['created_by'] as String?, createdBy: json['created_by'] as String?,
modified_by: json['modified_by'] as String?, modifiedBy: json['modified_by'] as String?,
province: (json['province'] as num?)?.toInt(), province: (json['province'] as num?)?.toInt(),
); );
Map<String, dynamic> _$CityToJson(_City instance) => <String, dynamic>{ Map<String, dynamic> _$CityToJson(_City instance) => <String, dynamic>{
'id': instance.id, 'id': instance.id,
'key': instance.key, 'key': instance.key,
'create_date': instance.create_date, 'create_date': instance.createDate,
'modify_date': instance.modify_date, 'modify_date': instance.modifyDate,
'trash': instance.trash, 'trash': instance.trash,
'province_id_foreign_key': instance.province_id_foreign_key, 'province_id_foreign_key': instance.provinceIdForeignKey,
'city_id_key': instance.city_id_key, 'city_id_key': instance.cityIdKey,
'name': instance.name, 'name': instance.name,
'product_price': instance.product_price, 'product_price': instance.productPrice,
'province_center': instance.province_center, 'province_center': instance.provinceCenter,
'city_number': instance.city_number, 'city_number': instance.cityNumber,
'city_name': instance.city_name, 'city_name': instance.cityName,
'province_number': instance.province_number, 'province_number': instance.provinceNumber,
'province_name': instance.province_name, 'province_name': instance.provinceName,
'created_by': instance.created_by, 'created_by': instance.createdBy,
'modified_by': instance.modified_by, 'modified_by': instance.modifiedBy,
'province': instance.province, 'province': instance.province,
}; };
@@ -206,14 +206,14 @@ _Address _$AddressFromJson(Map<String, dynamic> json) => _Address(
? null ? null
: City.fromJson(json['city'] as Map<String, dynamic>), : City.fromJson(json['city'] as Map<String, dynamic>),
address: json['address'] as String?, address: json['address'] as String?,
postal_code: json['postal_code'] as String?, postalCode: json['postal_code'] as String?,
); );
Map<String, dynamic> _$AddressToJson(_Address instance) => <String, dynamic>{ Map<String, dynamic> _$AddressToJson(_Address instance) => <String, dynamic>{
'province': instance.province, 'province': instance.province,
'city': instance.city, 'city': instance.city,
'address': instance.address, 'address': instance.address,
'postal_code': instance.postal_code, 'postal_code': instance.postalCode,
}; };
_Province _$ProvinceFromJson(Map<String, dynamic> json) => _Province _$ProvinceFromJson(Map<String, dynamic> json) =>

View File

@@ -1,8 +1,20 @@
import 'package:rasadyar_chicken/presentation/pages/root/logic.dart';
import 'package:rasadyar_core/core.dart'; import 'package:rasadyar_core/core.dart';
class SalesOutOfProvinceLogic extends GetxController { class SalesOutOfProvinceLogic extends GetxController {
RxBool isExpanded = false.obs; RxBool isExpanded = false.obs;
RxList<int> isExpandedList = <int>[].obs; RxList<int> isExpandedList = <int>[].obs;
RootLogic get rootLogic => Get.find<RootLogic>();
@override @override
void onReady() { void onReady() {
// TODO: implement onReady // TODO: implement onReady

View File

@@ -65,231 +65,221 @@ class SalesOutOfProvincePage extends GetView<SalesOutOfProvinceLogic> {
ListView saleListWidget() { ListView saleListWidget() {
return ListView.separated( return ListView.separated(
shrinkWrap: true, shrinkWrap: true,
padding: EdgeInsets.fromLTRB(8, 8, 18, 80), physics: BouncingScrollPhysics(),
itemBuilder: (context, index) { padding: EdgeInsets.fromLTRB(8, 8, 18, 80),
return ObxValue( itemBuilder: (context, index) {
(data) => saleListItem(data, index), return ObxValue(
controller.isExpandedList, (data) => saleListItem(data, index),
); controller.isExpandedList,
},
separatorBuilder: (context, index) => SizedBox(height: 8),
itemCount: 5,
); );
},
separatorBuilder: (context, index) => SizedBox(height: 8),
itemCount: 5,
);
}
Widget emptyWidget() {
return Center(
child: Text(
'داده ای دریافت نشد!',
style: AppFonts.yekan16.copyWith(color: AppColor.darkGreyDarkHover),
),
);
} }
GestureDetector saleListItem(RxList<int> data, int index) { GestureDetector saleListItem(RxList<int> data, int index) {
return GestureDetector( return GestureDetector(
onTap: () { onTap: () {
if (data.contains(index)) { if (data.contains(index)) {
controller.isExpandedList.remove(index); controller.isExpandedList.remove(index);
} else { } else {
controller.isExpandedList.add(index); controller.isExpandedList.add(index);
} }
}, },
child: AnimatedContainer( child: AnimatedContainer(
duration: Duration(milliseconds: 400), duration: Duration(milliseconds: 400),
alignment: Alignment.center,
height: data.contains(index) ? 210 : 56,
child: Stack(
clipBehavior: Clip.none,
alignment: Alignment.centerRight,
children: [
AnimatedContainer(
width: Get.width - 30,
duration: Duration(milliseconds: 300),
height: data.contains(index) ? 210 : 56,
alignment: Alignment.center,
decoration: BoxDecoration(
color: Colors.transparent,
borderRadius: BorderRadius.circular(8),
border: Border.all(width: 0.5, color: AppColor.darkGreyNormal),
),
child: AnimatedCrossFade(
alignment: Alignment.center, alignment: Alignment.center,
height: data.contains(index) ? 210 : 56, firstChild: Row(
child: Stack( mainAxisAlignment: MainAxisAlignment.spaceEvenly,
clipBehavior: Clip.none,
alignment: Alignment.centerRight,
children: [ children: [
AnimatedContainer( Text(
width: Get.width - 30, '1403/5/5',
duration: Duration(milliseconds: 300), textAlign: TextAlign.center,
height: data.contains(index) ? 210 : 56, style: AppFonts.yekan14.copyWith(color: AppColor.bgDark),
alignment: Alignment.center, ),
decoration: BoxDecoration( Text(
color: Colors.transparent, 'افلاک',
borderRadius: BorderRadius.circular(8), textAlign: TextAlign.center,
border: Border.all( style: AppFonts.yekan14.copyWith(
width: 0.5, color: AppColor.blueNormal,
color: AppColor.darkGreyNormal,
),
),
child: AnimatedCrossFade(
alignment: Alignment.center,
firstChild: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
Text(
'1403/5/5',
textAlign: TextAlign.center,
style: AppFonts.yekan14.copyWith(
color: AppColor.bgDark,
),
),
Text(
'افلاک',
textAlign: TextAlign.center,
style: AppFonts.yekan14.copyWith(
color: AppColor.blueNormal,
),
),
Text(
'kg 200 مرغ گرم ',
textAlign: TextAlign.center,
style: AppFonts.yekan14.copyWith(
color: AppColor.blueNormal,
),
),
Text(
'لرستان-خرم آباد',
textAlign: TextAlign.center,
style: AppFonts.yekan14.copyWith(
color: AppColor.bgDark,
),
),
Icon(CupertinoIcons.chevron_down, size: 12),
],
),
secondChild: Container(
padding: EdgeInsets.fromLTRB(8, 12, 14, 12),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(8),
),
child: Column(
spacing: 8,
children: [
Row(
mainAxisAlignment:
MainAxisAlignment.spaceBetween,
children: [
Assets.vec.editSvg.svg(
width: 20,
height: 20,
colorFilter: ColorFilter.mode(
AppColor.blueNormal,
BlendMode.srcIn,
),
),
Text(
'لرستان - خرم آباد',
textAlign: TextAlign.center,
style: AppFonts.yekan16.copyWith(
color: AppColor.greenDark,
),
),
Assets.vec.trashSvg.svg(
width: 20,
height: 20,
colorFilter: ColorFilter.mode(
AppColor.error,
BlendMode.srcIn,
),
),
],
),
Container(
height: 32,
padding: EdgeInsets.symmetric(
horizontal: 4,
),
decoration: ShapeDecoration(
color: AppColor.blueLight,
shape: RoundedRectangleBorder(
side: BorderSide(
width: 1,
color: AppColor.blueLightHover,
),
borderRadius: BorderRadius.circular(8),
),
),
child: buildRow(
'تاریخ',
'07:15:00 - 1402/07/01',
),
),
buildRow(
'مشخصات فروشنده',
'افلاک - 09203659874',
),
buildRow('وزن خریداری شده', '200 کیلوگرم'),
buildRow('لاشه خریداری شده', '200 عدد'),
Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
Icon(CupertinoIcons.chevron_up, size: 12),
],
),
],
),
),
crossFadeState: data.contains(index)
? CrossFadeState.showSecond
: CrossFadeState.showFirst,
duration: Duration(milliseconds: 300),
), ),
), ),
Positioned( Text(
right: -12, 'kg 200 مرغ گرم ',
child: Container( textAlign: TextAlign.center,
width: index < 999 ? 24 : null, style: AppFonts.yekan14.copyWith(
height: index < 999 ? 24 : null, color: AppColor.blueNormal,
padding: EdgeInsets.all(2),
decoration: BoxDecoration(
color: AppColor.greenLightHover,
borderRadius: BorderRadius.circular(4),
border: Border.all(
width: 0.50,
color: AppColor.greenDarkActive,
),
),
alignment: Alignment.center,
child: Text(
(index + 1).toString(),
style: AppFonts.yekan12.copyWith(
color: Colors.black,
),
),
), ),
), ),
Text(
'لرستان-خرم آباد',
textAlign: TextAlign.center,
style: AppFonts.yekan14.copyWith(color: AppColor.bgDark),
),
Icon(CupertinoIcons.chevron_down, size: 12),
], ],
), ),
secondChild: Container(
padding: EdgeInsets.fromLTRB(8, 12, 14, 12),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(8),
),
child: Column(
spacing: 8,
children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Assets.vec.editSvg.svg(
width: 20,
height: 20,
colorFilter: ColorFilter.mode(
AppColor.blueNormal,
BlendMode.srcIn,
),
),
Text(
'لرستان - خرم آباد',
textAlign: TextAlign.center,
style: AppFonts.yekan16.copyWith(
color: AppColor.greenDark,
),
),
Assets.vec.trashSvg.svg(
width: 20,
height: 20,
colorFilter: ColorFilter.mode(
AppColor.error,
BlendMode.srcIn,
),
),
],
),
Container(
height: 32,
padding: EdgeInsets.symmetric(horizontal: 4),
decoration: ShapeDecoration(
color: AppColor.blueLight,
shape: RoundedRectangleBorder(
side: BorderSide(
width: 1,
color: AppColor.blueLightHover,
),
borderRadius: BorderRadius.circular(8),
),
),
child: buildRow('تاریخ', '07:15:00 - 1402/07/01'),
),
buildRow('مشخصات فروشنده', 'افلاک - 09203659874'),
buildRow('وزن خریداری شده', '200 کیلوگرم'),
buildRow('لاشه خریداری شده', '200 عدد'),
Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [Icon(CupertinoIcons.chevron_up, size: 12)],
),
],
),
),
crossFadeState: data.contains(index)
? CrossFadeState.showSecond
: CrossFadeState.showFirst,
duration: Duration(milliseconds: 300),
), ),
); ),
Positioned(
right: -12,
child: Container(
width: index < 999 ? 24 : null,
height: index < 999 ? 24 : null,
padding: EdgeInsets.all(2),
decoration: BoxDecoration(
color: AppColor.greenLightHover,
borderRadius: BorderRadius.circular(4),
border: Border.all(
width: 0.50,
color: AppColor.greenDarkActive,
),
),
alignment: Alignment.center,
child: Text(
(index + 1).toString(),
style: AppFonts.yekan12.copyWith(color: Colors.black),
),
),
),
],
),
),
);
} }
Row routePageWidget() { Row routePageWidget() {
return Row( return Row(
children: [ children: [
SizedBox(width: 8), SizedBox(width: 8),
RichText( RichText(
text: TextSpan( text: TextSpan(
style: AppFonts.yekan14.copyWith(color: AppColor.blueNormal), style: AppFonts.yekan14.copyWith(color: AppColor.blueNormal),
children: [ children: [
WidgetSpan( WidgetSpan(
child: Row( child: Row(
children: [ children: [
Assets.vec.cubeSearchSvg.svg( Assets.vec.cubeSearchSvg.svg(
width: 24, width: 24,
height: 24, height: 24,
colorFilter: const ColorFilter.mode( colorFilter: const ColorFilter.mode(
AppColor.blueNormal, AppColor.blueNormal,
BlendMode.srcIn, BlendMode.srcIn,
), ),
),
SizedBox(width: 6,)
],
), ),
), SizedBox(width: 6),
],
TextSpan(text: 'خارج استان'), ),
TextSpan(text: '/'),
TextSpan(text: 'خرید'),
],
), ),
),
], TextSpan(text: 'خارج استان'),
); TextSpan(text: '/'),
TextSpan(text: 'خرید'),
],
),
),
],
);
} }
Widget buildRow(String title, String value) { Widget buildRow(String title, String value) {