some change
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,233 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'steward_free_bar.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
_StewardFreeBar _$StewardFreeBarFromJson(Map<String, dynamic> json) =>
|
||||
_StewardFreeBar(
|
||||
count: (json['count'] as num?)?.toInt(),
|
||||
next: json['next'] as String?,
|
||||
previous: json['previous'] as String?,
|
||||
results: (json['results'] as List<dynamic>?)
|
||||
?.map((e) => Result.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$StewardFreeBarToJson(_StewardFreeBar instance) =>
|
||||
<String, dynamic>{
|
||||
'count': instance.count,
|
||||
'next': instance.next,
|
||||
'previous': instance.previous,
|
||||
'results': instance.results,
|
||||
};
|
||||
|
||||
_Result _$ResultFromJson(Map<String, dynamic> json) => _Result(
|
||||
id: (json['id'] as num?)?.toInt(),
|
||||
steward: json['steward'] == null
|
||||
? null
|
||||
: Steward.fromJson(json['steward'] as Map<String, dynamic>),
|
||||
guild: json['guild'],
|
||||
product: json['product'] == null
|
||||
? null
|
||||
: Product.fromJson(json['product'] as Map<String, dynamic>),
|
||||
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<String, dynamic> _$ResultToJson(_Result instance) => <String, dynamic>{
|
||||
'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<String, dynamic> json) => _Steward(
|
||||
user: json['user'] == null
|
||||
? null
|
||||
: User.fromJson(json['user'] as Map<String, dynamic>),
|
||||
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<String, dynamic>),
|
||||
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<String, dynamic> _$StewardToJson(_Steward instance) => <String, dynamic>{
|
||||
'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<String, dynamic> 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<String, dynamic>),
|
||||
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<String, dynamic> _$UserToJson(_User instance) => <String, dynamic>{
|
||||
'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<String, dynamic> 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<String, dynamic> _$CityToJson(_City instance) => <String, dynamic>{
|
||||
'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<String, dynamic> json) => _Address(
|
||||
province: json['province'] == null
|
||||
? null
|
||||
: Province.fromJson(json['province'] as Map<String, dynamic>),
|
||||
city: json['city'] == null
|
||||
? null
|
||||
: City.fromJson(json['city'] as Map<String, dynamic>),
|
||||
address: json['address'] as String?,
|
||||
postal_code: json['postal_code'] as String?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$AddressToJson(_Address instance) => <String, dynamic>{
|
||||
'province': instance.province,
|
||||
'city': instance.city,
|
||||
'address': instance.address,
|
||||
'postal_code': instance.postal_code,
|
||||
};
|
||||
|
||||
_Province _$ProvinceFromJson(Map<String, dynamic> json) =>
|
||||
_Province(key: json['key'] as String?, name: json['name'] as String?);
|
||||
|
||||
Map<String, dynamic> _$ProvinceToJson(_Province instance) => <String, dynamic>{
|
||||
'key': instance.key,
|
||||
'name': instance.name,
|
||||
};
|
||||
|
||||
_Product _$ProductFromJson(Map<String, dynamic> json) =>
|
||||
_Product(key: json['key'] as String?, name: json['name'] as String?);
|
||||
|
||||
Map<String, dynamic> _$ProductToJson(_Product instance) => <String, dynamic>{
|
||||
'key': instance.key,
|
||||
'name': instance.name,
|
||||
};
|
||||
@@ -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>(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<StewardFreeBarDashboard> get copyWith => _$StewardFreeBarDashboardCopyWithImpl<StewardFreeBarDashboard>(this as StewardFreeBarDashboard, _$identity);
|
||||
|
||||
/// Serializes this StewardFreeBarDashboard to a JSON map.
|
||||
Map<String, dynamic> 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<String, dynamic> 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<String, dynamic> 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
|
||||
@@ -0,0 +1,25 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'steward_free_bar_dashboard.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
_StewardFreeBarDashboard _$StewardFreeBarDashboardFromJson(
|
||||
Map<String, dynamic> 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<String, dynamic> _$StewardFreeBarDashboardToJson(
|
||||
_StewardFreeBarDashboard instance,
|
||||
) => <String, dynamic>{
|
||||
'product': instance.product,
|
||||
'total_bars': instance.totalBars,
|
||||
'total_quantity': instance.totalQuantity,
|
||||
'total_weight': instance.totalWeight,
|
||||
};
|
||||
Reference in New Issue
Block a user