From 857ae6b5501c7dd2da1b8a663f8413f505eb569d Mon Sep 17 00:00:00 2001 From: MrM Date: Fri, 6 Jun 2025 09:27:15 +0330 Subject: [PATCH] some change --- .../steward_free_bar.freezed.dart | 1477 +++++++++++++++++ .../steward_free_bar/steward_free_bar.g.dart | 233 +++ .../steward_free_bar_dashboard.freezed.dart | 157 ++ .../steward_free_bar_dashboard.g.dart | 25 + 4 files changed, 1892 insertions(+) create mode 100644 packages/chicken/lib/data/models/response/steward_free_bar/steward_free_bar.freezed.dart create mode 100644 packages/chicken/lib/data/models/response/steward_free_bar/steward_free_bar.g.dart create mode 100644 packages/chicken/lib/data/models/response/steward_free_bar_dashboard/steward_free_bar_dashboard.freezed.dart create mode 100644 packages/chicken/lib/data/models/response/steward_free_bar_dashboard/steward_free_bar_dashboard.g.dart diff --git a/packages/chicken/lib/data/models/response/steward_free_bar/steward_free_bar.freezed.dart b/packages/chicken/lib/data/models/response/steward_free_bar/steward_free_bar.freezed.dart new file mode 100644 index 0000000..84c082a --- /dev/null +++ b/packages/chicken/lib/data/models/response/steward_free_bar/steward_free_bar.freezed.dart @@ -0,0 +1,1477 @@ +// dart format width=80 +// coverage:ignore-file +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint +// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark + +part of 'steward_free_bar.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; + +/// @nodoc +mixin _$StewardFreeBar { + + int? get count; String? get next; String? get previous; List? get results; +/// Create a copy of StewardFreeBar +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$StewardFreeBarCopyWith get copyWith => _$StewardFreeBarCopyWithImpl(this as StewardFreeBar, _$identity); + + /// Serializes this StewardFreeBar to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is StewardFreeBar&&(identical(other.count, count) || other.count == count)&&(identical(other.next, next) || other.next == next)&&(identical(other.previous, previous) || other.previous == previous)&&const DeepCollectionEquality().equals(other.results, results)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,count,next,previous,const DeepCollectionEquality().hash(results)); + +@override +String toString() { + return 'StewardFreeBar(count: $count, next: $next, previous: $previous, results: $results)'; +} + + +} + +/// @nodoc +abstract mixin class $StewardFreeBarCopyWith<$Res> { + factory $StewardFreeBarCopyWith(StewardFreeBar value, $Res Function(StewardFreeBar) _then) = _$StewardFreeBarCopyWithImpl; +@useResult +$Res call({ + int? count, String? next, String? previous, List? results +}); + + + + +} +/// @nodoc +class _$StewardFreeBarCopyWithImpl<$Res> + implements $StewardFreeBarCopyWith<$Res> { + _$StewardFreeBarCopyWithImpl(this._self, this._then); + + final StewardFreeBar _self; + final $Res Function(StewardFreeBar) _then; + +/// Create a copy of StewardFreeBar +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? count = freezed,Object? next = freezed,Object? previous = freezed,Object? results = freezed,}) { + return _then(_self.copyWith( +count: freezed == count ? _self.count : count // ignore: cast_nullable_to_non_nullable +as int?,next: freezed == next ? _self.next : next // ignore: cast_nullable_to_non_nullable +as String?,previous: freezed == previous ? _self.previous : previous // ignore: cast_nullable_to_non_nullable +as String?,results: freezed == results ? _self.results : results // ignore: cast_nullable_to_non_nullable +as List?, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _StewardFreeBar implements StewardFreeBar { + const _StewardFreeBar({this.count, this.next, this.previous, final List? results}): _results = results; + factory _StewardFreeBar.fromJson(Map json) => _$StewardFreeBarFromJson(json); + +@override final int? count; +@override final String? next; +@override final String? previous; + final List? _results; +@override List? get results { + final value = _results; + if (value == null) return null; + if (_results is EqualUnmodifiableListView) return _results; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + + +/// Create a copy of StewardFreeBar +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$StewardFreeBarCopyWith<_StewardFreeBar> get copyWith => __$StewardFreeBarCopyWithImpl<_StewardFreeBar>(this, _$identity); + +@override +Map toJson() { + return _$StewardFreeBarToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _StewardFreeBar&&(identical(other.count, count) || other.count == count)&&(identical(other.next, next) || other.next == next)&&(identical(other.previous, previous) || other.previous == previous)&&const DeepCollectionEquality().equals(other._results, _results)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,count,next,previous,const DeepCollectionEquality().hash(_results)); + +@override +String toString() { + return 'StewardFreeBar(count: $count, next: $next, previous: $previous, results: $results)'; +} + + +} + +/// @nodoc +abstract mixin class _$StewardFreeBarCopyWith<$Res> implements $StewardFreeBarCopyWith<$Res> { + factory _$StewardFreeBarCopyWith(_StewardFreeBar value, $Res Function(_StewardFreeBar) _then) = __$StewardFreeBarCopyWithImpl; +@override @useResult +$Res call({ + int? count, String? next, String? previous, List? results +}); + + + + +} +/// @nodoc +class __$StewardFreeBarCopyWithImpl<$Res> + implements _$StewardFreeBarCopyWith<$Res> { + __$StewardFreeBarCopyWithImpl(this._self, this._then); + + final _StewardFreeBar _self; + final $Res Function(_StewardFreeBar) _then; + +/// Create a copy of StewardFreeBar +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? count = freezed,Object? next = freezed,Object? previous = freezed,Object? results = freezed,}) { + return _then(_StewardFreeBar( +count: freezed == count ? _self.count : count // ignore: cast_nullable_to_non_nullable +as int?,next: freezed == next ? _self.next : next // ignore: cast_nullable_to_non_nullable +as String?,previous: freezed == previous ? _self.previous : previous // ignore: cast_nullable_to_non_nullable +as String?,results: freezed == results ? _self._results : results // ignore: cast_nullable_to_non_nullable +as List?, + )); +} + + +} + + +/// @nodoc +mixin _$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; +/// Create a copy of Result +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ResultCopyWith get copyWith => _$ResultCopyWithImpl(this as Result, _$identity); + + /// Serializes this Result to a JSON map. + Map toJson(); + + +@override +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)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@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]); + +@override +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)'; +} + + +} + +/// @nodoc +abstract mixin class $ResultCopyWith<$Res> { + factory $ResultCopyWith(Result value, $Res Function(Result) _then) = _$ResultCopyWithImpl; +@useResult +$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 +}); + + +$StewardCopyWith<$Res>? get steward;$ProductCopyWith<$Res>? get product; + +} +/// @nodoc +class _$ResultCopyWithImpl<$Res> + implements $ResultCopyWith<$Res> { + _$ResultCopyWithImpl(this._self, this._then); + + final Result _self; + final $Res Function(Result) _then; + +/// Create a copy of Result +/// 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,}) { + return _then(_self.copyWith( +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 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 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?,modify_date: freezed == modify_date ? _self.modify_date : modify_date // ignore: cast_nullable_to_non_nullable +as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable +as bool?,kill_house_name: freezed == kill_house_name ? _self.kill_house_name : kill_house_name // 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?,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?,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?,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?,driver_name: freezed == driver_name ? _self.driver_name : driver_name // 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?,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 String?,number_of_carcasses: freezed == number_of_carcasses ? _self.number_of_carcasses : number_of_carcasses // ignore: cast_nullable_to_non_nullable +as int?,weight_of_carcasses: freezed == weight_of_carcasses ? _self.weight_of_carcasses : weight_of_carcasses // ignore: cast_nullable_to_non_nullable +as int?,bar_image: freezed == bar_image ? _self.bar_image : bar_image // 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 bool?,temporary_deleted: freezed == temporary_deleted ? _self.temporary_deleted : temporary_deleted // ignore: cast_nullable_to_non_nullable +as bool?,created_by: freezed == created_by ? _self.created_by : created_by // ignore: cast_nullable_to_non_nullable +as String?,modified_by: freezed == modified_by ? _self.modified_by : modified_by // ignore: cast_nullable_to_non_nullable +as String?, + )); +} +/// Create a copy of Result +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$StewardCopyWith<$Res>? get steward { + if (_self.steward == null) { + return null; + } + + return $StewardCopyWith<$Res>(_self.steward!, (value) { + return _then(_self.copyWith(steward: value)); + }); +}/// Create a copy of Result +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ProductCopyWith<$Res>? get product { + if (_self.product == null) { + return null; + } + + return $ProductCopyWith<$Res>(_self.product!, (value) { + return _then(_self.copyWith(product: value)); + }); +} +} + + +/// @nodoc +@JsonSerializable() + +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}); + factory _Result.fromJson(Map json) => _$ResultFromJson(json); + +@override final int? id; +@override final Steward? steward; +@override final dynamic guild; +@override final Product? product; +@override final String? key; +@override final String? create_date; +@override final String? modify_date; +@override final bool? trash; +@override final String? kill_house_name; +@override final String? kill_house_mobile; +@override final String? kill_house_vet_name; +@override final String? kill_house_vet_mobile; +@override final String? province; +@override final String? city; +@override final String? driver_name; +@override final String? driver_mobile; +@override final dynamic car; +@override final String? pelak; +@override final int? number_of_carcasses; +@override final int? weight_of_carcasses; +@override final String? bar_image; +@override final String? date; +@override final bool? temporary_trash; +@override final bool? temporary_deleted; +@override final String? created_by; +@override final String? modified_by; + +/// Create a copy of Result +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ResultCopyWith<_Result> get copyWith => __$ResultCopyWithImpl<_Result>(this, _$identity); + +@override +Map toJson() { + return _$ResultToJson(this, ); +} + +@override +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)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@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]); + +@override +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)'; +} + + +} + +/// @nodoc +abstract mixin class _$ResultCopyWith<$Res> implements $ResultCopyWith<$Res> { + factory _$ResultCopyWith(_Result value, $Res Function(_Result) _then) = __$ResultCopyWithImpl; +@override @useResult +$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 +}); + + +@override $StewardCopyWith<$Res>? get steward;@override $ProductCopyWith<$Res>? get product; + +} +/// @nodoc +class __$ResultCopyWithImpl<$Res> + implements _$ResultCopyWith<$Res> { + __$ResultCopyWithImpl(this._self, this._then); + + final _Result _self; + final $Res Function(_Result) _then; + +/// Create a copy of Result +/// 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,}) { + return _then(_Result( +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 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 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?,modify_date: freezed == modify_date ? _self.modify_date : modify_date // ignore: cast_nullable_to_non_nullable +as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable +as bool?,kill_house_name: freezed == kill_house_name ? _self.kill_house_name : kill_house_name // 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?,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?,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?,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?,driver_name: freezed == driver_name ? _self.driver_name : driver_name // 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?,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 String?,number_of_carcasses: freezed == number_of_carcasses ? _self.number_of_carcasses : number_of_carcasses // ignore: cast_nullable_to_non_nullable +as int?,weight_of_carcasses: freezed == weight_of_carcasses ? _self.weight_of_carcasses : weight_of_carcasses // ignore: cast_nullable_to_non_nullable +as int?,bar_image: freezed == bar_image ? _self.bar_image : bar_image // 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 bool?,temporary_deleted: freezed == temporary_deleted ? _self.temporary_deleted : temporary_deleted // ignore: cast_nullable_to_non_nullable +as bool?,created_by: freezed == created_by ? _self.created_by : created_by // ignore: cast_nullable_to_non_nullable +as String?,modified_by: freezed == modified_by ? _self.modified_by : modified_by // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +/// Create a copy of Result +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$StewardCopyWith<$Res>? get steward { + if (_self.steward == null) { + return null; + } + + return $StewardCopyWith<$Res>(_self.steward!, (value) { + return _then(_self.copyWith(steward: value)); + }); +}/// Create a copy of Result +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ProductCopyWith<$Res>? get product { + if (_self.product == null) { + return null; + } + + return $ProductCopyWith<$Res>(_self.product!, (value) { + return _then(_self.copyWith(product: value)); + }); +} +} + + +/// @nodoc +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; +/// Create a copy of Steward +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$StewardCopyWith get copyWith => _$StewardCopyWithImpl(this as Steward, _$identity); + + /// Serializes this Steward to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is Steward&&(identical(other.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)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@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); + +@override +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)'; +} + + +} + +/// @nodoc +abstract mixin class $StewardCopyWith<$Res> { + factory $StewardCopyWith(Steward value, $Res Function(Steward) _then) = _$StewardCopyWithImpl; +@useResult +$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 +}); + + +$UserCopyWith<$Res>? get user;$AddressCopyWith<$Res>? get address; + +} +/// @nodoc +class _$StewardCopyWithImpl<$Res> + implements $StewardCopyWith<$Res> { + _$StewardCopyWithImpl(this._self, this._then); + + final Steward _self; + final $Res Function(Steward) _then; + +/// Create a copy of Steward +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? 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,}) { + return _then(_self.copyWith( +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 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 dynamic,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 String?,type_activity: freezed == type_activity ? _self.type_activity : type_activity // ignore: cast_nullable_to_non_nullable +as String?,area_activity: freezed == area_activity ? _self.area_activity : area_activity // ignore: cast_nullable_to_non_nullable +as String?,guilds_id: freezed == guilds_id ? _self.guilds_id : guilds_id // 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?, + )); +} +/// Create a copy of Steward +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$UserCopyWith<$Res>? get user { + if (_self.user == null) { + return null; + } + + return $UserCopyWith<$Res>(_self.user!, (value) { + return _then(_self.copyWith(user: value)); + }); +}/// Create a copy of Steward +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$AddressCopyWith<$Res>? get address { + if (_self.address == null) { + return null; + } + + return $AddressCopyWith<$Res>(_self.address!, (value) { + return _then(_self.copyWith(address: value)); + }); +} +} + + +/// @nodoc +@JsonSerializable() + +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}); + factory _Steward.fromJson(Map json) => _$StewardFromJson(json); + +@override final User? user; +@override final String? guilds_name; +@override final bool? steward; +@override final dynamic allocation_limit; +@override final Address? address; +@override final String? license_number; +@override final String? type_activity; +@override final String? area_activity; +@override final String? guilds_id; +@override final String? create_date; + +/// Create a copy of Steward +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$StewardCopyWith<_Steward> get copyWith => __$StewardCopyWithImpl<_Steward>(this, _$identity); + +@override +Map toJson() { + return _$StewardToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Steward&&(identical(other.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)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@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); + +@override +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)'; +} + + +} + +/// @nodoc +abstract mixin class _$StewardCopyWith<$Res> implements $StewardCopyWith<$Res> { + factory _$StewardCopyWith(_Steward value, $Res Function(_Steward) _then) = __$StewardCopyWithImpl; +@override @useResult +$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 +}); + + +@override $UserCopyWith<$Res>? get user;@override $AddressCopyWith<$Res>? get address; + +} +/// @nodoc +class __$StewardCopyWithImpl<$Res> + implements _$StewardCopyWith<$Res> { + __$StewardCopyWithImpl(this._self, this._then); + + final _Steward _self; + final $Res Function(_Steward) _then; + +/// Create a copy of Steward +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? 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,}) { + return _then(_Steward( +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 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 dynamic,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 String?,type_activity: freezed == type_activity ? _self.type_activity : type_activity // ignore: cast_nullable_to_non_nullable +as String?,area_activity: freezed == area_activity ? _self.area_activity : area_activity // ignore: cast_nullable_to_non_nullable +as String?,guilds_id: freezed == guilds_id ? _self.guilds_id : guilds_id // 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?, + )); +} + +/// Create a copy of Steward +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$UserCopyWith<$Res>? get user { + if (_self.user == null) { + return null; + } + + return $UserCopyWith<$Res>(_self.user!, (value) { + return _then(_self.copyWith(user: value)); + }); +}/// Create a copy of Steward +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$AddressCopyWith<$Res>? get address { + if (_self.address == null) { + return null; + } + + return $AddressCopyWith<$Res>(_self.address!, (value) { + return _then(_self.copyWith(address: value)); + }); +} +} + + +/// @nodoc +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; +/// Create a copy of User +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$UserCopyWith get copyWith => _$UserCopyWithImpl(this as User, _$identity); + + /// Serializes this User to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is User&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.first_name, first_name) || other.first_name == first_name)&&(identical(other.last_name, last_name) || other.last_name == last_name)&&(identical(other.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)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@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); + +@override +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)'; +} + + +} + +/// @nodoc +abstract mixin class $UserCopyWith<$Res> { + factory $UserCopyWith(User value, $Res Function(User) _then) = _$UserCopyWithImpl; +@useResult +$Res call({ + String? fullname, String? first_name, String? last_name, 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 +}); + + +$CityCopyWith<$Res>? get city; + +} +/// @nodoc +class _$UserCopyWithImpl<$Res> + implements $UserCopyWith<$Res> { + _$UserCopyWithImpl(this._self, this._then); + + final User _self; + final $Res Function(User) _then; + +/// Create a copy of User +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? fullname = freezed,Object? 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,}) { + return _then(_self.copyWith( +fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable +as String?,first_name: freezed == first_name ? _self.first_name : first_name // ignore: cast_nullable_to_non_nullable +as String?,last_name: freezed == last_name ? _self.last_name : last_name // ignore: cast_nullable_to_non_nullable +as String?,base_order: freezed == base_order ? _self.base_order : base_order // 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?,national_code: freezed == national_code ? _self.national_code : national_code // ignore: cast_nullable_to_non_nullable +as String?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as City?,unit_name: freezed == unit_name ? _self.unit_name : unit_name // 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?,unit_registration_number: freezed == unit_registration_number ? _self.unit_registration_number : unit_registration_number // 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?,unit_province: freezed == unit_province ? _self.unit_province : unit_province // 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?,unit_postal_code: freezed == unit_postal_code ? _self.unit_postal_code : unit_postal_code // 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?, + )); +} +/// Create a copy of User +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$CityCopyWith<$Res>? get city { + if (_self.city == null) { + return null; + } + + return $CityCopyWith<$Res>(_self.city!, (value) { + return _then(_self.copyWith(city: value)); + }); +} +} + + +/// @nodoc +@JsonSerializable() + +class _User implements User { + const _User({this.fullname, this.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}); + factory _User.fromJson(Map json) => _$UserFromJson(json); + +@override final String? fullname; +@override final String? first_name; +@override final String? last_name; +@override final int? base_order; +@override final String? mobile; +@override final String? national_id; +@override final String? national_code; +@override final String? key; +@override final City? city; +@override final String? unit_name; +@override final String? unit_national_id; +@override final String? unit_registration_number; +@override final String? unit_economical_number; +@override final String? unit_province; +@override final String? unit_city; +@override final String? unit_postal_code; +@override final String? unit_address; + +/// Create a copy of User +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$UserCopyWith<_User> get copyWith => __$UserCopyWithImpl<_User>(this, _$identity); + +@override +Map toJson() { + return _$UserToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _User&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.first_name, first_name) || other.first_name == first_name)&&(identical(other.last_name, last_name) || other.last_name == last_name)&&(identical(other.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)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@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); + +@override +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)'; +} + + +} + +/// @nodoc +abstract mixin class _$UserCopyWith<$Res> implements $UserCopyWith<$Res> { + factory _$UserCopyWith(_User value, $Res Function(_User) _then) = __$UserCopyWithImpl; +@override @useResult +$Res call({ + String? fullname, String? first_name, String? last_name, 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 +}); + + +@override $CityCopyWith<$Res>? get city; + +} +/// @nodoc +class __$UserCopyWithImpl<$Res> + implements _$UserCopyWith<$Res> { + __$UserCopyWithImpl(this._self, this._then); + + final _User _self; + final $Res Function(_User) _then; + +/// Create a copy of User +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? fullname = freezed,Object? 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,}) { + return _then(_User( +fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable +as String?,first_name: freezed == first_name ? _self.first_name : first_name // ignore: cast_nullable_to_non_nullable +as String?,last_name: freezed == last_name ? _self.last_name : last_name // ignore: cast_nullable_to_non_nullable +as String?,base_order: freezed == base_order ? _self.base_order : base_order // 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?,national_code: freezed == national_code ? _self.national_code : national_code // ignore: cast_nullable_to_non_nullable +as String?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as City?,unit_name: freezed == unit_name ? _self.unit_name : unit_name // 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?,unit_registration_number: freezed == unit_registration_number ? _self.unit_registration_number : unit_registration_number // 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?,unit_province: freezed == unit_province ? _self.unit_province : unit_province // 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?,unit_postal_code: freezed == unit_postal_code ? _self.unit_postal_code : unit_postal_code // 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?, + )); +} + +/// Create a copy of User +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$CityCopyWith<$Res>? get city { + if (_self.city == null) { + return null; + } + + return $CityCopyWith<$Res>(_self.city!, (value) { + return _then(_self.copyWith(city: value)); + }); +} +} + + +/// @nodoc +mixin _$City { + + int? get id; String? get key; String? get 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; +/// Create a copy of City +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$CityCopyWith get copyWith => _$CityCopyWithImpl(this as City, _$identity); + + /// Serializes this City to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is City&&(identical(other.id, id) || other.id == id)&&(identical(other.key, key) || other.key == key)&&(identical(other.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)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@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); + +@override +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)'; +} + + +} + +/// @nodoc +abstract mixin class $CityCopyWith<$Res> { + factory $CityCopyWith(City value, $Res Function(City) _then) = _$CityCopyWithImpl; +@useResult +$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 +}); + + + + +} +/// @nodoc +class _$CityCopyWithImpl<$Res> + implements $CityCopyWith<$Res> { + _$CityCopyWithImpl(this._self, this._then); + + final City _self; + final $Res Function(City) _then; + +/// Create a copy of City +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? key = freezed,Object? 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,}) { + return _then(_self.copyWith( +id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable +as int?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,create_date: freezed == create_date ? _self.create_date : create_date // ignore: cast_nullable_to_non_nullable +as String?,modify_date: freezed == modify_date ? _self.modify_date : modify_date // ignore: cast_nullable_to_non_nullable +as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable +as bool?,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 int?,city_id_key: freezed == city_id_key ? _self.city_id_key : city_id_key // 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 int?,province_center: freezed == province_center ? _self.province_center : province_center // ignore: cast_nullable_to_non_nullable +as bool?,city_number: freezed == city_number ? _self.city_number : city_number // ignore: cast_nullable_to_non_nullable +as int?,city_name: freezed == city_name ? _self.city_name : city_name // ignore: cast_nullable_to_non_nullable +as String?,province_number: freezed == province_number ? _self.province_number : province_number // ignore: cast_nullable_to_non_nullable +as int?,province_name: freezed == province_name ? _self.province_name : province_name // ignore: cast_nullable_to_non_nullable +as String?,created_by: freezed == created_by ? _self.created_by : created_by // ignore: cast_nullable_to_non_nullable +as String?,modified_by: freezed == modified_by ? _self.modified_by : modified_by // ignore: cast_nullable_to_non_nullable +as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as int?, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _City implements City { + const _City({this.id, this.key, this.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}); + factory _City.fromJson(Map json) => _$CityFromJson(json); + +@override final int? id; +@override final String? key; +@override final String? create_date; +@override final String? modify_date; +@override final bool? trash; +@override final int? province_id_foreign_key; +@override final int? city_id_key; +@override final String? name; +@override final int? product_price; +@override final bool? province_center; +@override final int? city_number; +@override final String? city_name; +@override final int? province_number; +@override final String? province_name; +@override final String? created_by; +@override final String? modified_by; +@override final int? province; + +/// Create a copy of City +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$CityCopyWith<_City> get copyWith => __$CityCopyWithImpl<_City>(this, _$identity); + +@override +Map toJson() { + return _$CityToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _City&&(identical(other.id, id) || other.id == id)&&(identical(other.key, key) || other.key == key)&&(identical(other.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)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@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); + +@override +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)'; +} + + +} + +/// @nodoc +abstract mixin class _$CityCopyWith<$Res> implements $CityCopyWith<$Res> { + factory _$CityCopyWith(_City value, $Res Function(_City) _then) = __$CityCopyWithImpl; +@override @useResult +$Res call({ + int? id, String? key, String? 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 +}); + + + + +} +/// @nodoc +class __$CityCopyWithImpl<$Res> + implements _$CityCopyWith<$Res> { + __$CityCopyWithImpl(this._self, this._then); + + final _City _self; + final $Res Function(_City) _then; + +/// Create a copy of City +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? key = freezed,Object? 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,}) { + return _then(_City( +id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable +as int?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,create_date: freezed == create_date ? _self.create_date : create_date // ignore: cast_nullable_to_non_nullable +as String?,modify_date: freezed == modify_date ? _self.modify_date : modify_date // ignore: cast_nullable_to_non_nullable +as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable +as bool?,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 int?,city_id_key: freezed == city_id_key ? _self.city_id_key : city_id_key // 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 int?,province_center: freezed == province_center ? _self.province_center : province_center // ignore: cast_nullable_to_non_nullable +as bool?,city_number: freezed == city_number ? _self.city_number : city_number // ignore: cast_nullable_to_non_nullable +as int?,city_name: freezed == city_name ? _self.city_name : city_name // ignore: cast_nullable_to_non_nullable +as String?,province_number: freezed == province_number ? _self.province_number : province_number // ignore: cast_nullable_to_non_nullable +as int?,province_name: freezed == province_name ? _self.province_name : province_name // ignore: cast_nullable_to_non_nullable +as String?,created_by: freezed == created_by ? _self.created_by : created_by // ignore: cast_nullable_to_non_nullable +as String?,modified_by: freezed == modified_by ? _self.modified_by : modified_by // ignore: cast_nullable_to_non_nullable +as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as int?, + )); +} + + +} + + +/// @nodoc +mixin _$Address { + + Province? get province; City? get city; String? get address; String? get postal_code; +/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$AddressCopyWith
get copyWith => _$AddressCopyWithImpl
(this as Address, _$identity); + + /// Serializes this Address to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is Address&&(identical(other.province, province) || other.province == province)&&(identical(other.city, city) || other.city == city)&&(identical(other.address, address) || other.address == address)&&(identical(other.postal_code, postal_code) || other.postal_code == postal_code)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,province,city,address,postal_code); + +@override +String toString() { + return 'Address(province: $province, city: $city, address: $address, postal_code: $postal_code)'; +} + + +} + +/// @nodoc +abstract mixin class $AddressCopyWith<$Res> { + factory $AddressCopyWith(Address value, $Res Function(Address) _then) = _$AddressCopyWithImpl; +@useResult +$Res call({ + Province? province, City? city, String? address, String? postal_code +}); + + +$ProvinceCopyWith<$Res>? get province;$CityCopyWith<$Res>? get city; + +} +/// @nodoc +class _$AddressCopyWithImpl<$Res> + implements $AddressCopyWith<$Res> { + _$AddressCopyWithImpl(this._self, this._then); + + final Address _self; + final $Res Function(Address) _then; + +/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? province = freezed,Object? city = freezed,Object? address = freezed,Object? postal_code = freezed,}) { + return _then(_self.copyWith( +province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as Province?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as City?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable +as String?,postal_code: freezed == postal_code ? _self.postal_code : postal_code // ignore: cast_nullable_to_non_nullable +as String?, + )); +} +/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ProvinceCopyWith<$Res>? get province { + if (_self.province == null) { + return null; + } + + return $ProvinceCopyWith<$Res>(_self.province!, (value) { + return _then(_self.copyWith(province: value)); + }); +}/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$CityCopyWith<$Res>? get city { + if (_self.city == null) { + return null; + } + + return $CityCopyWith<$Res>(_self.city!, (value) { + return _then(_self.copyWith(city: value)); + }); +} +} + + +/// @nodoc +@JsonSerializable() + +class _Address implements Address { + const _Address({this.province, this.city, this.address, this.postal_code}); + factory _Address.fromJson(Map json) => _$AddressFromJson(json); + +@override final Province? province; +@override final City? city; +@override final String? address; +@override final String? postal_code; + +/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$AddressCopyWith<_Address> get copyWith => __$AddressCopyWithImpl<_Address>(this, _$identity); + +@override +Map toJson() { + return _$AddressToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Address&&(identical(other.province, province) || other.province == province)&&(identical(other.city, city) || other.city == city)&&(identical(other.address, address) || other.address == address)&&(identical(other.postal_code, postal_code) || other.postal_code == postal_code)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,province,city,address,postal_code); + +@override +String toString() { + return 'Address(province: $province, city: $city, address: $address, postal_code: $postal_code)'; +} + + +} + +/// @nodoc +abstract mixin class _$AddressCopyWith<$Res> implements $AddressCopyWith<$Res> { + factory _$AddressCopyWith(_Address value, $Res Function(_Address) _then) = __$AddressCopyWithImpl; +@override @useResult +$Res call({ + Province? province, City? city, String? address, String? postal_code +}); + + +@override $ProvinceCopyWith<$Res>? get province;@override $CityCopyWith<$Res>? get city; + +} +/// @nodoc +class __$AddressCopyWithImpl<$Res> + implements _$AddressCopyWith<$Res> { + __$AddressCopyWithImpl(this._self, this._then); + + final _Address _self; + final $Res Function(_Address) _then; + +/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? province = freezed,Object? city = freezed,Object? address = freezed,Object? postal_code = freezed,}) { + return _then(_Address( +province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable +as Province?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable +as City?,address: freezed == address ? _self.address : address // ignore: cast_nullable_to_non_nullable +as String?,postal_code: freezed == postal_code ? _self.postal_code : postal_code // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$ProvinceCopyWith<$Res>? get province { + if (_self.province == null) { + return null; + } + + return $ProvinceCopyWith<$Res>(_self.province!, (value) { + return _then(_self.copyWith(province: value)); + }); +}/// Create a copy of Address +/// with the given fields replaced by the non-null parameter values. +@override +@pragma('vm:prefer-inline') +$CityCopyWith<$Res>? get city { + if (_self.city == null) { + return null; + } + + return $CityCopyWith<$Res>(_self.city!, (value) { + return _then(_self.copyWith(city: value)); + }); +} +} + + +/// @nodoc +mixin _$Province { + + String? get key; String? get name; +/// Create a copy of Province +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ProvinceCopyWith get copyWith => _$ProvinceCopyWithImpl(this as Province, _$identity); + + /// Serializes this Province to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is Province&&(identical(other.key, key) || other.key == key)&&(identical(other.name, name) || other.name == name)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,name); + +@override +String toString() { + return 'Province(key: $key, name: $name)'; +} + + +} + +/// @nodoc +abstract mixin class $ProvinceCopyWith<$Res> { + factory $ProvinceCopyWith(Province value, $Res Function(Province) _then) = _$ProvinceCopyWithImpl; +@useResult +$Res call({ + String? key, String? name +}); + + + + +} +/// @nodoc +class _$ProvinceCopyWithImpl<$Res> + implements $ProvinceCopyWith<$Res> { + _$ProvinceCopyWithImpl(this._self, this._then); + + final Province _self; + final $Res Function(Province) _then; + +/// Create a copy of Province +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? key = freezed,Object? name = freezed,}) { + return _then(_self.copyWith( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _Province implements Province { + const _Province({this.key, this.name}); + factory _Province.fromJson(Map json) => _$ProvinceFromJson(json); + +@override final String? key; +@override final String? name; + +/// Create a copy of Province +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ProvinceCopyWith<_Province> get copyWith => __$ProvinceCopyWithImpl<_Province>(this, _$identity); + +@override +Map toJson() { + return _$ProvinceToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Province&&(identical(other.key, key) || other.key == key)&&(identical(other.name, name) || other.name == name)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,name); + +@override +String toString() { + return 'Province(key: $key, name: $name)'; +} + + +} + +/// @nodoc +abstract mixin class _$ProvinceCopyWith<$Res> implements $ProvinceCopyWith<$Res> { + factory _$ProvinceCopyWith(_Province value, $Res Function(_Province) _then) = __$ProvinceCopyWithImpl; +@override @useResult +$Res call({ + String? key, String? name +}); + + + + +} +/// @nodoc +class __$ProvinceCopyWithImpl<$Res> + implements _$ProvinceCopyWith<$Res> { + __$ProvinceCopyWithImpl(this._self, this._then); + + final _Province _self; + final $Res Function(_Province) _then; + +/// Create a copy of Province +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? key = freezed,Object? name = freezed,}) { + return _then(_Province( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + + +/// @nodoc +mixin _$Product { + + String? get key; String? get name; +/// Create a copy of Product +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$ProductCopyWith get copyWith => _$ProductCopyWithImpl(this as Product, _$identity); + + /// Serializes this Product to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is Product&&(identical(other.key, key) || other.key == key)&&(identical(other.name, name) || other.name == name)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,name); + +@override +String toString() { + return 'Product(key: $key, name: $name)'; +} + + +} + +/// @nodoc +abstract mixin class $ProductCopyWith<$Res> { + factory $ProductCopyWith(Product value, $Res Function(Product) _then) = _$ProductCopyWithImpl; +@useResult +$Res call({ + String? key, String? name +}); + + + + +} +/// @nodoc +class _$ProductCopyWithImpl<$Res> + implements $ProductCopyWith<$Res> { + _$ProductCopyWithImpl(this._self, this._then); + + final Product _self; + final $Res Function(Product) _then; + +/// Create a copy of Product +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? key = freezed,Object? name = freezed,}) { + return _then(_self.copyWith( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _Product implements Product { + const _Product({this.key, this.name}); + factory _Product.fromJson(Map json) => _$ProductFromJson(json); + +@override final String? key; +@override final String? name; + +/// Create a copy of Product +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$ProductCopyWith<_Product> get copyWith => __$ProductCopyWithImpl<_Product>(this, _$identity); + +@override +Map toJson() { + return _$ProductToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Product&&(identical(other.key, key) || other.key == key)&&(identical(other.name, name) || other.name == name)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,key,name); + +@override +String toString() { + return 'Product(key: $key, name: $name)'; +} + + +} + +/// @nodoc +abstract mixin class _$ProductCopyWith<$Res> implements $ProductCopyWith<$Res> { + factory _$ProductCopyWith(_Product value, $Res Function(_Product) _then) = __$ProductCopyWithImpl; +@override @useResult +$Res call({ + String? key, String? name +}); + + + + +} +/// @nodoc +class __$ProductCopyWithImpl<$Res> + implements _$ProductCopyWith<$Res> { + __$ProductCopyWithImpl(this._self, this._then); + + final _Product _self; + final $Res Function(_Product) _then; + +/// Create a copy of Product +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? key = freezed,Object? name = freezed,}) { + return _then(_Product( +key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable +as String?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + +// dart format on diff --git a/packages/chicken/lib/data/models/response/steward_free_bar/steward_free_bar.g.dart b/packages/chicken/lib/data/models/response/steward_free_bar/steward_free_bar.g.dart new file mode 100644 index 0000000..3059d21 --- /dev/null +++ b/packages/chicken/lib/data/models/response/steward_free_bar/steward_free_bar.g.dart @@ -0,0 +1,233 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'steward_free_bar.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +_StewardFreeBar _$StewardFreeBarFromJson(Map json) => + _StewardFreeBar( + count: (json['count'] as num?)?.toInt(), + next: json['next'] as String?, + previous: json['previous'] as String?, + results: (json['results'] as List?) + ?.map((e) => Result.fromJson(e as Map)) + .toList(), + ); + +Map _$StewardFreeBarToJson(_StewardFreeBar instance) => + { + 'count': instance.count, + 'next': instance.next, + 'previous': instance.previous, + 'results': instance.results, + }; + +_Result _$ResultFromJson(Map json) => _Result( + id: (json['id'] as num?)?.toInt(), + steward: json['steward'] == null + ? null + : Steward.fromJson(json['steward'] as Map), + guild: json['guild'], + product: json['product'] == null + ? null + : Product.fromJson(json['product'] as Map), + key: json['key'] as String?, + create_date: json['create_date'] as String?, + modify_date: json['modify_date'] as String?, + trash: json['trash'] as bool?, + kill_house_name: json['kill_house_name'] as String?, + kill_house_mobile: json['kill_house_mobile'] as String?, + kill_house_vet_name: json['kill_house_vet_name'] as String?, + kill_house_vet_mobile: json['kill_house_vet_mobile'] as String?, + province: json['province'] as String?, + city: json['city'] as String?, + driver_name: json['driver_name'] as String?, + driver_mobile: json['driver_mobile'] as String?, + car: json['car'], + pelak: json['pelak'] as String?, + number_of_carcasses: (json['number_of_carcasses'] as num?)?.toInt(), + weight_of_carcasses: (json['weight_of_carcasses'] as num?)?.toInt(), + bar_image: json['bar_image'] as String?, + date: json['date'] as String?, + temporary_trash: json['temporary_trash'] as bool?, + temporary_deleted: json['temporary_deleted'] as bool?, + created_by: json['created_by'] as String?, + modified_by: json['modified_by'] as String?, +); + +Map _$ResultToJson(_Result instance) => { + 'id': instance.id, + 'steward': instance.steward, + 'guild': instance.guild, + 'product': instance.product, + 'key': instance.key, + 'create_date': instance.create_date, + 'modify_date': instance.modify_date, + 'trash': instance.trash, + 'kill_house_name': instance.kill_house_name, + 'kill_house_mobile': instance.kill_house_mobile, + 'kill_house_vet_name': instance.kill_house_vet_name, + 'kill_house_vet_mobile': instance.kill_house_vet_mobile, + 'province': instance.province, + 'city': instance.city, + 'driver_name': instance.driver_name, + 'driver_mobile': instance.driver_mobile, + 'car': instance.car, + 'pelak': instance.pelak, + 'number_of_carcasses': instance.number_of_carcasses, + 'weight_of_carcasses': instance.weight_of_carcasses, + 'bar_image': instance.bar_image, + 'date': instance.date, + 'temporary_trash': instance.temporary_trash, + 'temporary_deleted': instance.temporary_deleted, + 'created_by': instance.created_by, + 'modified_by': instance.modified_by, +}; + +_Steward _$StewardFromJson(Map json) => _Steward( + user: json['user'] == null + ? null + : User.fromJson(json['user'] as Map), + guilds_name: json['guilds_name'] as String?, + steward: json['steward'] as bool?, + allocation_limit: json['allocation_limit'], + address: json['address'] == null + ? null + : Address.fromJson(json['address'] as Map), + license_number: json['license_number'] as String?, + type_activity: json['type_activity'] as String?, + area_activity: json['area_activity'] as String?, + guilds_id: json['guilds_id'] as String?, + create_date: json['create_date'] as String?, +); + +Map _$StewardToJson(_Steward instance) => { + 'user': instance.user, + 'guilds_name': instance.guilds_name, + 'steward': instance.steward, + 'allocation_limit': instance.allocation_limit, + 'address': instance.address, + 'license_number': instance.license_number, + 'type_activity': instance.type_activity, + 'area_activity': instance.area_activity, + 'guilds_id': instance.guilds_id, + 'create_date': instance.create_date, +}; + +_User _$UserFromJson(Map json) => _User( + fullname: json['fullname'] as String?, + first_name: json['first_name'] as String?, + last_name: json['last_name'] as String?, + base_order: (json['base_order'] as num?)?.toInt(), + mobile: json['mobile'] as String?, + national_id: json['national_id'] as String?, + national_code: json['national_code'] as String?, + key: json['key'] as String?, + city: json['city'] == null + ? null + : City.fromJson(json['city'] as Map), + unit_name: json['unit_name'] as String?, + unit_national_id: json['unit_national_id'] as String?, + unit_registration_number: json['unit_registration_number'] as String?, + unit_economical_number: json['unit_economical_number'] as String?, + unit_province: json['unit_province'] as String?, + unit_city: json['unit_city'] as String?, + unit_postal_code: json['unit_postal_code'] as String?, + unit_address: json['unit_address'] as String?, +); + +Map _$UserToJson(_User instance) => { + 'fullname': instance.fullname, + 'first_name': instance.first_name, + 'last_name': instance.last_name, + 'base_order': instance.base_order, + 'mobile': instance.mobile, + 'national_id': instance.national_id, + 'national_code': instance.national_code, + 'key': instance.key, + 'city': instance.city, + 'unit_name': instance.unit_name, + 'unit_national_id': instance.unit_national_id, + 'unit_registration_number': instance.unit_registration_number, + 'unit_economical_number': instance.unit_economical_number, + 'unit_province': instance.unit_province, + 'unit_city': instance.unit_city, + 'unit_postal_code': instance.unit_postal_code, + 'unit_address': instance.unit_address, +}; + +_City _$CityFromJson(Map json) => _City( + id: (json['id'] as num?)?.toInt(), + key: json['key'] as String?, + create_date: json['create_date'] as String?, + modify_date: json['modify_date'] as String?, + trash: json['trash'] as bool?, + province_id_foreign_key: (json['province_id_foreign_key'] as num?)?.toInt(), + city_id_key: (json['city_id_key'] as num?)?.toInt(), + name: json['name'] as String?, + product_price: (json['product_price'] as num?)?.toInt(), + province_center: json['province_center'] as bool?, + city_number: (json['city_number'] as num?)?.toInt(), + city_name: json['city_name'] as String?, + province_number: (json['province_number'] as num?)?.toInt(), + province_name: json['province_name'] as String?, + created_by: json['created_by'] as String?, + modified_by: json['modified_by'] as String?, + province: (json['province'] as num?)?.toInt(), +); + +Map _$CityToJson(_City instance) => { + 'id': instance.id, + 'key': instance.key, + 'create_date': instance.create_date, + 'modify_date': instance.modify_date, + 'trash': instance.trash, + 'province_id_foreign_key': instance.province_id_foreign_key, + 'city_id_key': instance.city_id_key, + 'name': instance.name, + 'product_price': instance.product_price, + 'province_center': instance.province_center, + 'city_number': instance.city_number, + 'city_name': instance.city_name, + 'province_number': instance.province_number, + 'province_name': instance.province_name, + 'created_by': instance.created_by, + 'modified_by': instance.modified_by, + 'province': instance.province, +}; + +_Address _$AddressFromJson(Map json) => _Address( + province: json['province'] == null + ? null + : Province.fromJson(json['province'] as Map), + city: json['city'] == null + ? null + : City.fromJson(json['city'] as Map), + address: json['address'] as String?, + postal_code: json['postal_code'] as String?, +); + +Map _$AddressToJson(_Address instance) => { + 'province': instance.province, + 'city': instance.city, + 'address': instance.address, + 'postal_code': instance.postal_code, +}; + +_Province _$ProvinceFromJson(Map json) => + _Province(key: json['key'] as String?, name: json['name'] as String?); + +Map _$ProvinceToJson(_Province instance) => { + 'key': instance.key, + 'name': instance.name, +}; + +_Product _$ProductFromJson(Map json) => + _Product(key: json['key'] as String?, name: json['name'] as String?); + +Map _$ProductToJson(_Product instance) => { + 'key': instance.key, + 'name': instance.name, +}; diff --git a/packages/chicken/lib/data/models/response/steward_free_bar_dashboard/steward_free_bar_dashboard.freezed.dart b/packages/chicken/lib/data/models/response/steward_free_bar_dashboard/steward_free_bar_dashboard.freezed.dart new file mode 100644 index 0000000..bebb59d --- /dev/null +++ b/packages/chicken/lib/data/models/response/steward_free_bar_dashboard/steward_free_bar_dashboard.freezed.dart @@ -0,0 +1,157 @@ +// dart format width=80 +// coverage:ignore-file +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint +// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark + +part of 'steward_free_bar_dashboard.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; + +/// @nodoc +mixin _$StewardFreeBarDashboard { + + String? get product; int? get totalBars; double? get totalQuantity; double? get totalWeight; +/// Create a copy of StewardFreeBarDashboard +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$StewardFreeBarDashboardCopyWith get copyWith => _$StewardFreeBarDashboardCopyWithImpl(this as StewardFreeBarDashboard, _$identity); + + /// Serializes this StewardFreeBarDashboard to a JSON map. + Map toJson(); + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is StewardFreeBarDashboard&&(identical(other.product, product) || other.product == product)&&(identical(other.totalBars, totalBars) || other.totalBars == totalBars)&&(identical(other.totalQuantity, totalQuantity) || other.totalQuantity == totalQuantity)&&(identical(other.totalWeight, totalWeight) || other.totalWeight == totalWeight)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,product,totalBars,totalQuantity,totalWeight); + +@override +String toString() { + return 'StewardFreeBarDashboard(product: $product, totalBars: $totalBars, totalQuantity: $totalQuantity, totalWeight: $totalWeight)'; +} + + +} + +/// @nodoc +abstract mixin class $StewardFreeBarDashboardCopyWith<$Res> { + factory $StewardFreeBarDashboardCopyWith(StewardFreeBarDashboard value, $Res Function(StewardFreeBarDashboard) _then) = _$StewardFreeBarDashboardCopyWithImpl; +@useResult +$Res call({ + String? product, int? totalBars, double? totalQuantity, double? totalWeight +}); + + + + +} +/// @nodoc +class _$StewardFreeBarDashboardCopyWithImpl<$Res> + implements $StewardFreeBarDashboardCopyWith<$Res> { + _$StewardFreeBarDashboardCopyWithImpl(this._self, this._then); + + final StewardFreeBarDashboard _self; + final $Res Function(StewardFreeBarDashboard) _then; + +/// Create a copy of StewardFreeBarDashboard +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? product = freezed,Object? totalBars = freezed,Object? totalQuantity = freezed,Object? totalWeight = freezed,}) { + return _then(_self.copyWith( +product: freezed == product ? _self.product : product // ignore: cast_nullable_to_non_nullable +as String?,totalBars: freezed == totalBars ? _self.totalBars : totalBars // ignore: cast_nullable_to_non_nullable +as int?,totalQuantity: freezed == totalQuantity ? _self.totalQuantity : totalQuantity // ignore: cast_nullable_to_non_nullable +as double?,totalWeight: freezed == totalWeight ? _self.totalWeight : totalWeight // ignore: cast_nullable_to_non_nullable +as double?, + )); +} + +} + + +/// @nodoc +@JsonSerializable() + +class _StewardFreeBarDashboard implements StewardFreeBarDashboard { + const _StewardFreeBarDashboard({this.product, this.totalBars, this.totalQuantity, this.totalWeight}); + factory _StewardFreeBarDashboard.fromJson(Map json) => _$StewardFreeBarDashboardFromJson(json); + +@override final String? product; +@override final int? totalBars; +@override final double? totalQuantity; +@override final double? totalWeight; + +/// Create a copy of StewardFreeBarDashboard +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$StewardFreeBarDashboardCopyWith<_StewardFreeBarDashboard> get copyWith => __$StewardFreeBarDashboardCopyWithImpl<_StewardFreeBarDashboard>(this, _$identity); + +@override +Map toJson() { + return _$StewardFreeBarDashboardToJson(this, ); +} + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _StewardFreeBarDashboard&&(identical(other.product, product) || other.product == product)&&(identical(other.totalBars, totalBars) || other.totalBars == totalBars)&&(identical(other.totalQuantity, totalQuantity) || other.totalQuantity == totalQuantity)&&(identical(other.totalWeight, totalWeight) || other.totalWeight == totalWeight)); +} + +@JsonKey(includeFromJson: false, includeToJson: false) +@override +int get hashCode => Object.hash(runtimeType,product,totalBars,totalQuantity,totalWeight); + +@override +String toString() { + return 'StewardFreeBarDashboard(product: $product, totalBars: $totalBars, totalQuantity: $totalQuantity, totalWeight: $totalWeight)'; +} + + +} + +/// @nodoc +abstract mixin class _$StewardFreeBarDashboardCopyWith<$Res> implements $StewardFreeBarDashboardCopyWith<$Res> { + factory _$StewardFreeBarDashboardCopyWith(_StewardFreeBarDashboard value, $Res Function(_StewardFreeBarDashboard) _then) = __$StewardFreeBarDashboardCopyWithImpl; +@override @useResult +$Res call({ + String? product, int? totalBars, double? totalQuantity, double? totalWeight +}); + + + + +} +/// @nodoc +class __$StewardFreeBarDashboardCopyWithImpl<$Res> + implements _$StewardFreeBarDashboardCopyWith<$Res> { + __$StewardFreeBarDashboardCopyWithImpl(this._self, this._then); + + final _StewardFreeBarDashboard _self; + final $Res Function(_StewardFreeBarDashboard) _then; + +/// Create a copy of StewardFreeBarDashboard +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? product = freezed,Object? totalBars = freezed,Object? totalQuantity = freezed,Object? totalWeight = freezed,}) { + return _then(_StewardFreeBarDashboard( +product: freezed == product ? _self.product : product // ignore: cast_nullable_to_non_nullable +as String?,totalBars: freezed == totalBars ? _self.totalBars : totalBars // ignore: cast_nullable_to_non_nullable +as int?,totalQuantity: freezed == totalQuantity ? _self.totalQuantity : totalQuantity // ignore: cast_nullable_to_non_nullable +as double?,totalWeight: freezed == totalWeight ? _self.totalWeight : totalWeight // ignore: cast_nullable_to_non_nullable +as double?, + )); +} + + +} + +// dart format on diff --git a/packages/chicken/lib/data/models/response/steward_free_bar_dashboard/steward_free_bar_dashboard.g.dart b/packages/chicken/lib/data/models/response/steward_free_bar_dashboard/steward_free_bar_dashboard.g.dart new file mode 100644 index 0000000..075281b --- /dev/null +++ b/packages/chicken/lib/data/models/response/steward_free_bar_dashboard/steward_free_bar_dashboard.g.dart @@ -0,0 +1,25 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'steward_free_bar_dashboard.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +_StewardFreeBarDashboard _$StewardFreeBarDashboardFromJson( + Map json, +) => _StewardFreeBarDashboard( + product: json['product'] as String?, + totalBars: (json['total_bars'] as num?)?.toInt(), + totalQuantity: (json['total_quantity'] as num?)?.toDouble(), + totalWeight: (json['total_weight'] as num?)?.toDouble(), +); + +Map _$StewardFreeBarDashboardToJson( + _StewardFreeBarDashboard instance, +) => { + 'product': instance.product, + 'total_bars': instance.totalBars, + 'total_quantity': instance.totalQuantity, + 'total_weight': instance.totalWeight, +};