feat : buyer in sale out of the province

This commit is contained in:
2025-06-23 16:49:12 +03:30
parent 1e3614ed58
commit 078fe9a022
13 changed files with 2268 additions and 198 deletions

View File

@@ -0,0 +1,60 @@
import 'package:freezed_annotation/freezed_annotation.dart';
part 'out_province_carcasses_buyer.freezed.dart';
part 'out_province_carcasses_buyer.g.dart';
@freezed
abstract class OutProvinceCarcassesBuyer with _$OutProvinceCarcassesBuyer {
const factory OutProvinceCarcassesBuyer({
Buyer? buyer,
RequestsInfo? requestsInfo,
String? key,
bool? trash,
String? fullname,
String? firstName,
String? lastName,
String? mobile,
String? unitName,
String? city,
String? province,
String? role,
bool? active,
String? typeActivity,
dynamic killHouse,
int? steward,
}) = _OutProvinceCarcassesBuyer;
factory OutProvinceCarcassesBuyer.fromJson(Map<String, dynamic> json) =>
_$OutProvinceCarcassesBuyerFromJson(json);
}
@freezed
abstract class Buyer with _$Buyer {
const factory Buyer({
String? key,
bool? trash,
String? fullname,
String? firstName,
String? lastName,
String? mobile,
String? unitName,
String? city,
String? province,
bool? active,
int? user,
}) = _Buyer;
factory Buyer.fromJson(Map<String, dynamic> json) => _$BuyerFromJson(json);
}
@freezed
abstract class RequestsInfo with _$RequestsInfo {
const factory RequestsInfo({
int? numberOfRequests,
int? totalQuantity,
double? totalWeight,
}) = _RequestsInfo;
factory RequestsInfo.fromJson(Map<String, dynamic> json) =>
_$RequestsInfoFromJson(json);
}

View File

@@ -0,0 +1,543 @@
// 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 'out_province_carcasses_buyer.dart';
// **************************************************************************
// FreezedGenerator
// **************************************************************************
// dart format off
T _$identity<T>(T value) => value;
/// @nodoc
mixin _$OutProvinceCarcassesBuyer {
Buyer? get buyer; RequestsInfo? get requestsInfo; String? get key; bool? get trash; String? get fullname; String? get firstName; String? get lastName; String? get mobile; String? get unitName; String? get city; String? get province; String? get role; bool? get active; String? get typeActivity; dynamic get killHouse; int? get steward;
/// Create a copy of OutProvinceCarcassesBuyer
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$OutProvinceCarcassesBuyerCopyWith<OutProvinceCarcassesBuyer> get copyWith => _$OutProvinceCarcassesBuyerCopyWithImpl<OutProvinceCarcassesBuyer>(this as OutProvinceCarcassesBuyer, _$identity);
/// Serializes this OutProvinceCarcassesBuyer to a JSON map.
Map<String, dynamic> toJson();
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is OutProvinceCarcassesBuyer&&(identical(other.buyer, buyer) || other.buyer == buyer)&&(identical(other.requestsInfo, requestsInfo) || other.requestsInfo == requestsInfo)&&(identical(other.key, key) || other.key == key)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.city, city) || other.city == city)&&(identical(other.province, province) || other.province == province)&&(identical(other.role, role) || other.role == role)&&(identical(other.active, active) || other.active == active)&&(identical(other.typeActivity, typeActivity) || other.typeActivity == typeActivity)&&const DeepCollectionEquality().equals(other.killHouse, killHouse)&&(identical(other.steward, steward) || other.steward == steward));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,buyer,requestsInfo,key,trash,fullname,firstName,lastName,mobile,unitName,city,province,role,active,typeActivity,const DeepCollectionEquality().hash(killHouse),steward);
@override
String toString() {
return 'OutProvinceCarcassesBuyer(buyer: $buyer, requestsInfo: $requestsInfo, key: $key, trash: $trash, fullname: $fullname, firstName: $firstName, lastName: $lastName, mobile: $mobile, unitName: $unitName, city: $city, province: $province, role: $role, active: $active, typeActivity: $typeActivity, killHouse: $killHouse, steward: $steward)';
}
}
/// @nodoc
abstract mixin class $OutProvinceCarcassesBuyerCopyWith<$Res> {
factory $OutProvinceCarcassesBuyerCopyWith(OutProvinceCarcassesBuyer value, $Res Function(OutProvinceCarcassesBuyer) _then) = _$OutProvinceCarcassesBuyerCopyWithImpl;
@useResult
$Res call({
Buyer? buyer, RequestsInfo? requestsInfo, String? key, bool? trash, String? fullname, String? firstName, String? lastName, String? mobile, String? unitName, String? city, String? province, String? role, bool? active, String? typeActivity, dynamic killHouse, int? steward
});
$BuyerCopyWith<$Res>? get buyer;$RequestsInfoCopyWith<$Res>? get requestsInfo;
}
/// @nodoc
class _$OutProvinceCarcassesBuyerCopyWithImpl<$Res>
implements $OutProvinceCarcassesBuyerCopyWith<$Res> {
_$OutProvinceCarcassesBuyerCopyWithImpl(this._self, this._then);
final OutProvinceCarcassesBuyer _self;
final $Res Function(OutProvinceCarcassesBuyer) _then;
/// Create a copy of OutProvinceCarcassesBuyer
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? buyer = freezed,Object? requestsInfo = freezed,Object? key = freezed,Object? trash = freezed,Object? fullname = freezed,Object? firstName = freezed,Object? lastName = freezed,Object? mobile = freezed,Object? unitName = freezed,Object? city = freezed,Object? province = freezed,Object? role = freezed,Object? active = freezed,Object? typeActivity = freezed,Object? killHouse = freezed,Object? steward = freezed,}) {
return _then(_self.copyWith(
buyer: freezed == buyer ? _self.buyer : buyer // ignore: cast_nullable_to_non_nullable
as Buyer?,requestsInfo: freezed == requestsInfo ? _self.requestsInfo : requestsInfo // ignore: cast_nullable_to_non_nullable
as RequestsInfo?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable
as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable
as bool?,fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable
as String?,firstName: freezed == firstName ? _self.firstName : firstName // ignore: cast_nullable_to_non_nullable
as String?,lastName: freezed == lastName ? _self.lastName : lastName // ignore: cast_nullable_to_non_nullable
as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable
as String?,unitName: freezed == unitName ? _self.unitName : unitName // ignore: cast_nullable_to_non_nullable
as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable
as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable
as String?,role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable
as String?,active: freezed == active ? _self.active : active // ignore: cast_nullable_to_non_nullable
as bool?,typeActivity: freezed == typeActivity ? _self.typeActivity : typeActivity // ignore: cast_nullable_to_non_nullable
as String?,killHouse: freezed == killHouse ? _self.killHouse : killHouse // ignore: cast_nullable_to_non_nullable
as dynamic,steward: freezed == steward ? _self.steward : steward // ignore: cast_nullable_to_non_nullable
as int?,
));
}
/// Create a copy of OutProvinceCarcassesBuyer
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$BuyerCopyWith<$Res>? get buyer {
if (_self.buyer == null) {
return null;
}
return $BuyerCopyWith<$Res>(_self.buyer!, (value) {
return _then(_self.copyWith(buyer: value));
});
}/// Create a copy of OutProvinceCarcassesBuyer
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$RequestsInfoCopyWith<$Res>? get requestsInfo {
if (_self.requestsInfo == null) {
return null;
}
return $RequestsInfoCopyWith<$Res>(_self.requestsInfo!, (value) {
return _then(_self.copyWith(requestsInfo: value));
});
}
}
/// @nodoc
@JsonSerializable()
class _OutProvinceCarcassesBuyer implements OutProvinceCarcassesBuyer {
const _OutProvinceCarcassesBuyer({this.buyer, this.requestsInfo, this.key, this.trash, this.fullname, this.firstName, this.lastName, this.mobile, this.unitName, this.city, this.province, this.role, this.active, this.typeActivity, this.killHouse, this.steward});
factory _OutProvinceCarcassesBuyer.fromJson(Map<String, dynamic> json) => _$OutProvinceCarcassesBuyerFromJson(json);
@override final Buyer? buyer;
@override final RequestsInfo? requestsInfo;
@override final String? key;
@override final bool? trash;
@override final String? fullname;
@override final String? firstName;
@override final String? lastName;
@override final String? mobile;
@override final String? unitName;
@override final String? city;
@override final String? province;
@override final String? role;
@override final bool? active;
@override final String? typeActivity;
@override final dynamic killHouse;
@override final int? steward;
/// Create a copy of OutProvinceCarcassesBuyer
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$OutProvinceCarcassesBuyerCopyWith<_OutProvinceCarcassesBuyer> get copyWith => __$OutProvinceCarcassesBuyerCopyWithImpl<_OutProvinceCarcassesBuyer>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$OutProvinceCarcassesBuyerToJson(this, );
}
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is _OutProvinceCarcassesBuyer&&(identical(other.buyer, buyer) || other.buyer == buyer)&&(identical(other.requestsInfo, requestsInfo) || other.requestsInfo == requestsInfo)&&(identical(other.key, key) || other.key == key)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.city, city) || other.city == city)&&(identical(other.province, province) || other.province == province)&&(identical(other.role, role) || other.role == role)&&(identical(other.active, active) || other.active == active)&&(identical(other.typeActivity, typeActivity) || other.typeActivity == typeActivity)&&const DeepCollectionEquality().equals(other.killHouse, killHouse)&&(identical(other.steward, steward) || other.steward == steward));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,buyer,requestsInfo,key,trash,fullname,firstName,lastName,mobile,unitName,city,province,role,active,typeActivity,const DeepCollectionEquality().hash(killHouse),steward);
@override
String toString() {
return 'OutProvinceCarcassesBuyer(buyer: $buyer, requestsInfo: $requestsInfo, key: $key, trash: $trash, fullname: $fullname, firstName: $firstName, lastName: $lastName, mobile: $mobile, unitName: $unitName, city: $city, province: $province, role: $role, active: $active, typeActivity: $typeActivity, killHouse: $killHouse, steward: $steward)';
}
}
/// @nodoc
abstract mixin class _$OutProvinceCarcassesBuyerCopyWith<$Res> implements $OutProvinceCarcassesBuyerCopyWith<$Res> {
factory _$OutProvinceCarcassesBuyerCopyWith(_OutProvinceCarcassesBuyer value, $Res Function(_OutProvinceCarcassesBuyer) _then) = __$OutProvinceCarcassesBuyerCopyWithImpl;
@override @useResult
$Res call({
Buyer? buyer, RequestsInfo? requestsInfo, String? key, bool? trash, String? fullname, String? firstName, String? lastName, String? mobile, String? unitName, String? city, String? province, String? role, bool? active, String? typeActivity, dynamic killHouse, int? steward
});
@override $BuyerCopyWith<$Res>? get buyer;@override $RequestsInfoCopyWith<$Res>? get requestsInfo;
}
/// @nodoc
class __$OutProvinceCarcassesBuyerCopyWithImpl<$Res>
implements _$OutProvinceCarcassesBuyerCopyWith<$Res> {
__$OutProvinceCarcassesBuyerCopyWithImpl(this._self, this._then);
final _OutProvinceCarcassesBuyer _self;
final $Res Function(_OutProvinceCarcassesBuyer) _then;
/// Create a copy of OutProvinceCarcassesBuyer
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? buyer = freezed,Object? requestsInfo = freezed,Object? key = freezed,Object? trash = freezed,Object? fullname = freezed,Object? firstName = freezed,Object? lastName = freezed,Object? mobile = freezed,Object? unitName = freezed,Object? city = freezed,Object? province = freezed,Object? role = freezed,Object? active = freezed,Object? typeActivity = freezed,Object? killHouse = freezed,Object? steward = freezed,}) {
return _then(_OutProvinceCarcassesBuyer(
buyer: freezed == buyer ? _self.buyer : buyer // ignore: cast_nullable_to_non_nullable
as Buyer?,requestsInfo: freezed == requestsInfo ? _self.requestsInfo : requestsInfo // ignore: cast_nullable_to_non_nullable
as RequestsInfo?,key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable
as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable
as bool?,fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable
as String?,firstName: freezed == firstName ? _self.firstName : firstName // ignore: cast_nullable_to_non_nullable
as String?,lastName: freezed == lastName ? _self.lastName : lastName // ignore: cast_nullable_to_non_nullable
as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable
as String?,unitName: freezed == unitName ? _self.unitName : unitName // ignore: cast_nullable_to_non_nullable
as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable
as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable
as String?,role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable
as String?,active: freezed == active ? _self.active : active // ignore: cast_nullable_to_non_nullable
as bool?,typeActivity: freezed == typeActivity ? _self.typeActivity : typeActivity // ignore: cast_nullable_to_non_nullable
as String?,killHouse: freezed == killHouse ? _self.killHouse : killHouse // ignore: cast_nullable_to_non_nullable
as dynamic,steward: freezed == steward ? _self.steward : steward // ignore: cast_nullable_to_non_nullable
as int?,
));
}
/// Create a copy of OutProvinceCarcassesBuyer
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$BuyerCopyWith<$Res>? get buyer {
if (_self.buyer == null) {
return null;
}
return $BuyerCopyWith<$Res>(_self.buyer!, (value) {
return _then(_self.copyWith(buyer: value));
});
}/// Create a copy of OutProvinceCarcassesBuyer
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$RequestsInfoCopyWith<$Res>? get requestsInfo {
if (_self.requestsInfo == null) {
return null;
}
return $RequestsInfoCopyWith<$Res>(_self.requestsInfo!, (value) {
return _then(_self.copyWith(requestsInfo: value));
});
}
}
/// @nodoc
mixin _$Buyer {
String? get key; bool? get trash; String? get fullname; String? get firstName; String? get lastName; String? get mobile; String? get unitName; String? get city; String? get province; bool? get active; int? get user;
/// Create a copy of Buyer
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$BuyerCopyWith<Buyer> get copyWith => _$BuyerCopyWithImpl<Buyer>(this as Buyer, _$identity);
/// Serializes this Buyer to a JSON map.
Map<String, dynamic> toJson();
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is Buyer&&(identical(other.key, key) || other.key == key)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.city, city) || other.city == city)&&(identical(other.province, province) || other.province == province)&&(identical(other.active, active) || other.active == active)&&(identical(other.user, user) || other.user == user));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,key,trash,fullname,firstName,lastName,mobile,unitName,city,province,active,user);
@override
String toString() {
return 'Buyer(key: $key, trash: $trash, fullname: $fullname, firstName: $firstName, lastName: $lastName, mobile: $mobile, unitName: $unitName, city: $city, province: $province, active: $active, user: $user)';
}
}
/// @nodoc
abstract mixin class $BuyerCopyWith<$Res> {
factory $BuyerCopyWith(Buyer value, $Res Function(Buyer) _then) = _$BuyerCopyWithImpl;
@useResult
$Res call({
String? key, bool? trash, String? fullname, String? firstName, String? lastName, String? mobile, String? unitName, String? city, String? province, bool? active, int? user
});
}
/// @nodoc
class _$BuyerCopyWithImpl<$Res>
implements $BuyerCopyWith<$Res> {
_$BuyerCopyWithImpl(this._self, this._then);
final Buyer _self;
final $Res Function(Buyer) _then;
/// Create a copy of Buyer
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? key = freezed,Object? trash = freezed,Object? fullname = freezed,Object? firstName = freezed,Object? lastName = freezed,Object? mobile = freezed,Object? unitName = freezed,Object? city = freezed,Object? province = freezed,Object? active = freezed,Object? user = freezed,}) {
return _then(_self.copyWith(
key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable
as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable
as bool?,fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable
as String?,firstName: freezed == firstName ? _self.firstName : firstName // ignore: cast_nullable_to_non_nullable
as String?,lastName: freezed == lastName ? _self.lastName : lastName // ignore: cast_nullable_to_non_nullable
as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable
as String?,unitName: freezed == unitName ? _self.unitName : unitName // ignore: cast_nullable_to_non_nullable
as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable
as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable
as String?,active: freezed == active ? _self.active : active // ignore: cast_nullable_to_non_nullable
as bool?,user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable
as int?,
));
}
}
/// @nodoc
@JsonSerializable()
class _Buyer implements Buyer {
const _Buyer({this.key, this.trash, this.fullname, this.firstName, this.lastName, this.mobile, this.unitName, this.city, this.province, this.active, this.user});
factory _Buyer.fromJson(Map<String, dynamic> json) => _$BuyerFromJson(json);
@override final String? key;
@override final bool? trash;
@override final String? fullname;
@override final String? firstName;
@override final String? lastName;
@override final String? mobile;
@override final String? unitName;
@override final String? city;
@override final String? province;
@override final bool? active;
@override final int? user;
/// Create a copy of Buyer
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$BuyerCopyWith<_Buyer> get copyWith => __$BuyerCopyWithImpl<_Buyer>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$BuyerToJson(this, );
}
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is _Buyer&&(identical(other.key, key) || other.key == key)&&(identical(other.trash, trash) || other.trash == trash)&&(identical(other.fullname, fullname) || other.fullname == fullname)&&(identical(other.firstName, firstName) || other.firstName == firstName)&&(identical(other.lastName, lastName) || other.lastName == lastName)&&(identical(other.mobile, mobile) || other.mobile == mobile)&&(identical(other.unitName, unitName) || other.unitName == unitName)&&(identical(other.city, city) || other.city == city)&&(identical(other.province, province) || other.province == province)&&(identical(other.active, active) || other.active == active)&&(identical(other.user, user) || other.user == user));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,key,trash,fullname,firstName,lastName,mobile,unitName,city,province,active,user);
@override
String toString() {
return 'Buyer(key: $key, trash: $trash, fullname: $fullname, firstName: $firstName, lastName: $lastName, mobile: $mobile, unitName: $unitName, city: $city, province: $province, active: $active, user: $user)';
}
}
/// @nodoc
abstract mixin class _$BuyerCopyWith<$Res> implements $BuyerCopyWith<$Res> {
factory _$BuyerCopyWith(_Buyer value, $Res Function(_Buyer) _then) = __$BuyerCopyWithImpl;
@override @useResult
$Res call({
String? key, bool? trash, String? fullname, String? firstName, String? lastName, String? mobile, String? unitName, String? city, String? province, bool? active, int? user
});
}
/// @nodoc
class __$BuyerCopyWithImpl<$Res>
implements _$BuyerCopyWith<$Res> {
__$BuyerCopyWithImpl(this._self, this._then);
final _Buyer _self;
final $Res Function(_Buyer) _then;
/// Create a copy of Buyer
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? key = freezed,Object? trash = freezed,Object? fullname = freezed,Object? firstName = freezed,Object? lastName = freezed,Object? mobile = freezed,Object? unitName = freezed,Object? city = freezed,Object? province = freezed,Object? active = freezed,Object? user = freezed,}) {
return _then(_Buyer(
key: freezed == key ? _self.key : key // ignore: cast_nullable_to_non_nullable
as String?,trash: freezed == trash ? _self.trash : trash // ignore: cast_nullable_to_non_nullable
as bool?,fullname: freezed == fullname ? _self.fullname : fullname // ignore: cast_nullable_to_non_nullable
as String?,firstName: freezed == firstName ? _self.firstName : firstName // ignore: cast_nullable_to_non_nullable
as String?,lastName: freezed == lastName ? _self.lastName : lastName // ignore: cast_nullable_to_non_nullable
as String?,mobile: freezed == mobile ? _self.mobile : mobile // ignore: cast_nullable_to_non_nullable
as String?,unitName: freezed == unitName ? _self.unitName : unitName // ignore: cast_nullable_to_non_nullable
as String?,city: freezed == city ? _self.city : city // ignore: cast_nullable_to_non_nullable
as String?,province: freezed == province ? _self.province : province // ignore: cast_nullable_to_non_nullable
as String?,active: freezed == active ? _self.active : active // ignore: cast_nullable_to_non_nullable
as bool?,user: freezed == user ? _self.user : user // ignore: cast_nullable_to_non_nullable
as int?,
));
}
}
/// @nodoc
mixin _$RequestsInfo {
int? get numberOfRequests; int? get totalQuantity; double? get totalWeight;
/// Create a copy of RequestsInfo
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$RequestsInfoCopyWith<RequestsInfo> get copyWith => _$RequestsInfoCopyWithImpl<RequestsInfo>(this as RequestsInfo, _$identity);
/// Serializes this RequestsInfo to a JSON map.
Map<String, dynamic> toJson();
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is RequestsInfo&&(identical(other.numberOfRequests, numberOfRequests) || other.numberOfRequests == numberOfRequests)&&(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,numberOfRequests,totalQuantity,totalWeight);
@override
String toString() {
return 'RequestsInfo(numberOfRequests: $numberOfRequests, totalQuantity: $totalQuantity, totalWeight: $totalWeight)';
}
}
/// @nodoc
abstract mixin class $RequestsInfoCopyWith<$Res> {
factory $RequestsInfoCopyWith(RequestsInfo value, $Res Function(RequestsInfo) _then) = _$RequestsInfoCopyWithImpl;
@useResult
$Res call({
int? numberOfRequests, int? totalQuantity, double? totalWeight
});
}
/// @nodoc
class _$RequestsInfoCopyWithImpl<$Res>
implements $RequestsInfoCopyWith<$Res> {
_$RequestsInfoCopyWithImpl(this._self, this._then);
final RequestsInfo _self;
final $Res Function(RequestsInfo) _then;
/// Create a copy of RequestsInfo
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? numberOfRequests = freezed,Object? totalQuantity = freezed,Object? totalWeight = freezed,}) {
return _then(_self.copyWith(
numberOfRequests: freezed == numberOfRequests ? _self.numberOfRequests : numberOfRequests // ignore: cast_nullable_to_non_nullable
as int?,totalQuantity: freezed == totalQuantity ? _self.totalQuantity : totalQuantity // ignore: cast_nullable_to_non_nullable
as int?,totalWeight: freezed == totalWeight ? _self.totalWeight : totalWeight // ignore: cast_nullable_to_non_nullable
as double?,
));
}
}
/// @nodoc
@JsonSerializable()
class _RequestsInfo implements RequestsInfo {
const _RequestsInfo({this.numberOfRequests, this.totalQuantity, this.totalWeight});
factory _RequestsInfo.fromJson(Map<String, dynamic> json) => _$RequestsInfoFromJson(json);
@override final int? numberOfRequests;
@override final int? totalQuantity;
@override final double? totalWeight;
/// Create a copy of RequestsInfo
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$RequestsInfoCopyWith<_RequestsInfo> get copyWith => __$RequestsInfoCopyWithImpl<_RequestsInfo>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$RequestsInfoToJson(this, );
}
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is _RequestsInfo&&(identical(other.numberOfRequests, numberOfRequests) || other.numberOfRequests == numberOfRequests)&&(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,numberOfRequests,totalQuantity,totalWeight);
@override
String toString() {
return 'RequestsInfo(numberOfRequests: $numberOfRequests, totalQuantity: $totalQuantity, totalWeight: $totalWeight)';
}
}
/// @nodoc
abstract mixin class _$RequestsInfoCopyWith<$Res> implements $RequestsInfoCopyWith<$Res> {
factory _$RequestsInfoCopyWith(_RequestsInfo value, $Res Function(_RequestsInfo) _then) = __$RequestsInfoCopyWithImpl;
@override @useResult
$Res call({
int? numberOfRequests, int? totalQuantity, double? totalWeight
});
}
/// @nodoc
class __$RequestsInfoCopyWithImpl<$Res>
implements _$RequestsInfoCopyWith<$Res> {
__$RequestsInfoCopyWithImpl(this._self, this._then);
final _RequestsInfo _self;
final $Res Function(_RequestsInfo) _then;
/// Create a copy of RequestsInfo
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? numberOfRequests = freezed,Object? totalQuantity = freezed,Object? totalWeight = freezed,}) {
return _then(_RequestsInfo(
numberOfRequests: freezed == numberOfRequests ? _self.numberOfRequests : numberOfRequests // ignore: cast_nullable_to_non_nullable
as int?,totalQuantity: freezed == totalQuantity ? _self.totalQuantity : totalQuantity // ignore: cast_nullable_to_non_nullable
as int?,totalWeight: freezed == totalWeight ? _self.totalWeight : totalWeight // ignore: cast_nullable_to_non_nullable
as double?,
));
}
}
// dart format on

View File

@@ -0,0 +1,95 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'out_province_carcasses_buyer.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
_OutProvinceCarcassesBuyer _$OutProvinceCarcassesBuyerFromJson(
Map<String, dynamic> json,
) => _OutProvinceCarcassesBuyer(
buyer: json['buyer'] == null
? null
: Buyer.fromJson(json['buyer'] as Map<String, dynamic>),
requestsInfo: json['requests_info'] == null
? null
: RequestsInfo.fromJson(json['requests_info'] as Map<String, dynamic>),
key: json['key'] as String?,
trash: json['trash'] as bool?,
fullname: json['fullname'] as String?,
firstName: json['first_name'] as String?,
lastName: json['last_name'] as String?,
mobile: json['mobile'] as String?,
unitName: json['unit_name'] as String?,
city: json['city'] as String?,
province: json['province'] as String?,
role: json['role'] as String?,
active: json['active'] as bool?,
typeActivity: json['type_activity'] as String?,
killHouse: json['kill_house'],
steward: (json['steward'] as num?)?.toInt(),
);
Map<String, dynamic> _$OutProvinceCarcassesBuyerToJson(
_OutProvinceCarcassesBuyer instance,
) => <String, dynamic>{
'buyer': instance.buyer,
'requests_info': instance.requestsInfo,
'key': instance.key,
'trash': instance.trash,
'fullname': instance.fullname,
'first_name': instance.firstName,
'last_name': instance.lastName,
'mobile': instance.mobile,
'unit_name': instance.unitName,
'city': instance.city,
'province': instance.province,
'role': instance.role,
'active': instance.active,
'type_activity': instance.typeActivity,
'kill_house': instance.killHouse,
'steward': instance.steward,
};
_Buyer _$BuyerFromJson(Map<String, dynamic> json) => _Buyer(
key: json['key'] as String?,
trash: json['trash'] as bool?,
fullname: json['fullname'] as String?,
firstName: json['first_name'] as String?,
lastName: json['last_name'] as String?,
mobile: json['mobile'] as String?,
unitName: json['unit_name'] as String?,
city: json['city'] as String?,
province: json['province'] as String?,
active: json['active'] as bool?,
user: (json['user'] as num?)?.toInt(),
);
Map<String, dynamic> _$BuyerToJson(_Buyer instance) => <String, dynamic>{
'key': instance.key,
'trash': instance.trash,
'fullname': instance.fullname,
'first_name': instance.firstName,
'last_name': instance.lastName,
'mobile': instance.mobile,
'unit_name': instance.unitName,
'city': instance.city,
'province': instance.province,
'active': instance.active,
'user': instance.user,
};
_RequestsInfo _$RequestsInfoFromJson(Map<String, dynamic> json) =>
_RequestsInfo(
numberOfRequests: (json['number_of_requests'] as num?)?.toInt(),
totalQuantity: (json['total_quantity'] as num?)?.toInt(),
totalWeight: (json['total_weight'] as num?)?.toDouble(),
);
Map<String, dynamic> _$RequestsInfoToJson(_RequestsInfo instance) =>
<String, dynamic>{
'number_of_requests': instance.numberOfRequests,
'total_quantity': instance.totalQuantity,
'total_weight': instance.totalWeight,
};