refactor : rename files and update routes for poultry actions

feat : poultry kill registration and poultry OrderList

** Made With Nima **
This commit is contained in:
2025-09-16 15:47:35 +03:30
parent 87a0955697
commit e933d22f8f
81 changed files with 22780 additions and 192 deletions

View File

@@ -0,0 +1,35 @@
import 'package:freezed_annotation/freezed_annotation.dart';
part 'kill_registration.freezed.dart';
part 'kill_registration.g.dart';
@freezed
abstract class KillRegistrationRequest with _$KillRegistrationRequest {
const factory KillRegistrationRequest({
bool? approvedPrice,
bool? market,
String? killReqKey,
String? operatorKey,
String? poultryHatchingKey,
int? quantity,
String? sendDate,
String? chickenBreed,
@JsonKey(name: "Index_weight") double? indexWeight,
String? losses,
List<dynamic>? auctionList,
bool? freezing,
bool? export,
bool? cash,
bool? credit,
List<dynamic>? killHouseList,
String? role,
String? poultryKey,
int? amount,
String? financialOperation,
bool? freeSaleInProvince,
String? confirmPoultryMobile,
}) = _KillRegistrationRequest;
factory KillRegistrationRequest.fromJson(Map<String, dynamic> json) =>
_$KillRegistrationRequestFromJson(json);
}

View File

@@ -0,0 +1,356 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
// coverage:ignore-file
// ignore_for_file: type=lint
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark
part of 'kill_registration.dart';
// **************************************************************************
// FreezedGenerator
// **************************************************************************
// dart format off
T _$identity<T>(T value) => value;
/// @nodoc
mixin _$KillRegistrationRequest {
bool? get approvedPrice; bool? get market; String? get killReqKey; String? get operatorKey; String? get poultryHatchingKey; int? get quantity; String? get sendDate; String? get chickenBreed;@JsonKey(name: "Index_weight") double? get indexWeight; String? get losses; List<dynamic>? get auctionList; bool? get freezing; bool? get export; bool? get cash; bool? get credit; List<dynamic>? get killHouseList; String? get role; String? get poultryKey; int? get amount; String? get financialOperation; bool? get freeSaleInProvince; String? get confirmPoultryMobile;
/// Create a copy of KillRegistrationRequest
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$KillRegistrationRequestCopyWith<KillRegistrationRequest> get copyWith => _$KillRegistrationRequestCopyWithImpl<KillRegistrationRequest>(this as KillRegistrationRequest, _$identity);
/// Serializes this KillRegistrationRequest to a JSON map.
Map<String, dynamic> toJson();
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is KillRegistrationRequest&&(identical(other.approvedPrice, approvedPrice) || other.approvedPrice == approvedPrice)&&(identical(other.market, market) || other.market == market)&&(identical(other.killReqKey, killReqKey) || other.killReqKey == killReqKey)&&(identical(other.operatorKey, operatorKey) || other.operatorKey == operatorKey)&&(identical(other.poultryHatchingKey, poultryHatchingKey) || other.poultryHatchingKey == poultryHatchingKey)&&(identical(other.quantity, quantity) || other.quantity == quantity)&&(identical(other.sendDate, sendDate) || other.sendDate == sendDate)&&(identical(other.chickenBreed, chickenBreed) || other.chickenBreed == chickenBreed)&&(identical(other.indexWeight, indexWeight) || other.indexWeight == indexWeight)&&(identical(other.losses, losses) || other.losses == losses)&&const DeepCollectionEquality().equals(other.auctionList, auctionList)&&(identical(other.freezing, freezing) || other.freezing == freezing)&&(identical(other.export, export) || other.export == export)&&(identical(other.cash, cash) || other.cash == cash)&&(identical(other.credit, credit) || other.credit == credit)&&const DeepCollectionEquality().equals(other.killHouseList, killHouseList)&&(identical(other.role, role) || other.role == role)&&(identical(other.poultryKey, poultryKey) || other.poultryKey == poultryKey)&&(identical(other.amount, amount) || other.amount == amount)&&(identical(other.financialOperation, financialOperation) || other.financialOperation == financialOperation)&&(identical(other.freeSaleInProvince, freeSaleInProvince) || other.freeSaleInProvince == freeSaleInProvince)&&(identical(other.confirmPoultryMobile, confirmPoultryMobile) || other.confirmPoultryMobile == confirmPoultryMobile));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hashAll([runtimeType,approvedPrice,market,killReqKey,operatorKey,poultryHatchingKey,quantity,sendDate,chickenBreed,indexWeight,losses,const DeepCollectionEquality().hash(auctionList),freezing,export,cash,credit,const DeepCollectionEquality().hash(killHouseList),role,poultryKey,amount,financialOperation,freeSaleInProvince,confirmPoultryMobile]);
@override
String toString() {
return 'KillRegistrationRequest(approvedPrice: $approvedPrice, market: $market, killReqKey: $killReqKey, operatorKey: $operatorKey, poultryHatchingKey: $poultryHatchingKey, quantity: $quantity, sendDate: $sendDate, chickenBreed: $chickenBreed, indexWeight: $indexWeight, losses: $losses, auctionList: $auctionList, freezing: $freezing, export: $export, cash: $cash, credit: $credit, killHouseList: $killHouseList, role: $role, poultryKey: $poultryKey, amount: $amount, financialOperation: $financialOperation, freeSaleInProvince: $freeSaleInProvince, confirmPoultryMobile: $confirmPoultryMobile)';
}
}
/// @nodoc
abstract mixin class $KillRegistrationRequestCopyWith<$Res> {
factory $KillRegistrationRequestCopyWith(KillRegistrationRequest value, $Res Function(KillRegistrationRequest) _then) = _$KillRegistrationRequestCopyWithImpl;
@useResult
$Res call({
bool? approvedPrice, bool? market, String? killReqKey, String? operatorKey, String? poultryHatchingKey, int? quantity, String? sendDate, String? chickenBreed,@JsonKey(name: "Index_weight") double? indexWeight, String? losses, List<dynamic>? auctionList, bool? freezing, bool? export, bool? cash, bool? credit, List<dynamic>? killHouseList, String? role, String? poultryKey, int? amount, String? financialOperation, bool? freeSaleInProvince, String? confirmPoultryMobile
});
}
/// @nodoc
class _$KillRegistrationRequestCopyWithImpl<$Res>
implements $KillRegistrationRequestCopyWith<$Res> {
_$KillRegistrationRequestCopyWithImpl(this._self, this._then);
final KillRegistrationRequest _self;
final $Res Function(KillRegistrationRequest) _then;
/// Create a copy of KillRegistrationRequest
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? approvedPrice = freezed,Object? market = freezed,Object? killReqKey = freezed,Object? operatorKey = freezed,Object? poultryHatchingKey = freezed,Object? quantity = freezed,Object? sendDate = freezed,Object? chickenBreed = freezed,Object? indexWeight = freezed,Object? losses = freezed,Object? auctionList = freezed,Object? freezing = freezed,Object? export = freezed,Object? cash = freezed,Object? credit = freezed,Object? killHouseList = freezed,Object? role = freezed,Object? poultryKey = freezed,Object? amount = freezed,Object? financialOperation = freezed,Object? freeSaleInProvince = freezed,Object? confirmPoultryMobile = freezed,}) {
return _then(_self.copyWith(
approvedPrice: freezed == approvedPrice ? _self.approvedPrice : approvedPrice // ignore: cast_nullable_to_non_nullable
as bool?,market: freezed == market ? _self.market : market // ignore: cast_nullable_to_non_nullable
as bool?,killReqKey: freezed == killReqKey ? _self.killReqKey : killReqKey // ignore: cast_nullable_to_non_nullable
as String?,operatorKey: freezed == operatorKey ? _self.operatorKey : operatorKey // ignore: cast_nullable_to_non_nullable
as String?,poultryHatchingKey: freezed == poultryHatchingKey ? _self.poultryHatchingKey : poultryHatchingKey // ignore: cast_nullable_to_non_nullable
as String?,quantity: freezed == quantity ? _self.quantity : quantity // ignore: cast_nullable_to_non_nullable
as int?,sendDate: freezed == sendDate ? _self.sendDate : sendDate // ignore: cast_nullable_to_non_nullable
as String?,chickenBreed: freezed == chickenBreed ? _self.chickenBreed : chickenBreed // ignore: cast_nullable_to_non_nullable
as String?,indexWeight: freezed == indexWeight ? _self.indexWeight : indexWeight // ignore: cast_nullable_to_non_nullable
as double?,losses: freezed == losses ? _self.losses : losses // ignore: cast_nullable_to_non_nullable
as String?,auctionList: freezed == auctionList ? _self.auctionList : auctionList // ignore: cast_nullable_to_non_nullable
as List<dynamic>?,freezing: freezed == freezing ? _self.freezing : freezing // ignore: cast_nullable_to_non_nullable
as bool?,export: freezed == export ? _self.export : export // ignore: cast_nullable_to_non_nullable
as bool?,cash: freezed == cash ? _self.cash : cash // ignore: cast_nullable_to_non_nullable
as bool?,credit: freezed == credit ? _self.credit : credit // ignore: cast_nullable_to_non_nullable
as bool?,killHouseList: freezed == killHouseList ? _self.killHouseList : killHouseList // ignore: cast_nullable_to_non_nullable
as List<dynamic>?,role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable
as String?,poultryKey: freezed == poultryKey ? _self.poultryKey : poultryKey // ignore: cast_nullable_to_non_nullable
as String?,amount: freezed == amount ? _self.amount : amount // ignore: cast_nullable_to_non_nullable
as int?,financialOperation: freezed == financialOperation ? _self.financialOperation : financialOperation // ignore: cast_nullable_to_non_nullable
as String?,freeSaleInProvince: freezed == freeSaleInProvince ? _self.freeSaleInProvince : freeSaleInProvince // ignore: cast_nullable_to_non_nullable
as bool?,confirmPoultryMobile: freezed == confirmPoultryMobile ? _self.confirmPoultryMobile : confirmPoultryMobile // ignore: cast_nullable_to_non_nullable
as String?,
));
}
}
/// Adds pattern-matching-related methods to [KillRegistrationRequest].
extension KillRegistrationRequestPatterns on KillRegistrationRequest {
/// A variant of `map` that fallback to returning `orElse`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _KillRegistrationRequest value)? $default,{required TResult orElse(),}){
final _that = this;
switch (_that) {
case _KillRegistrationRequest() when $default != null:
return $default(_that);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// Callbacks receives the raw object, upcasted.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case final Subclass2 value:
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _KillRegistrationRequest value) $default,){
final _that = this;
switch (_that) {
case _KillRegistrationRequest():
return $default(_that);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `map` that fallback to returning `null`.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case final Subclass value:
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _KillRegistrationRequest value)? $default,){
final _that = this;
switch (_that) {
case _KillRegistrationRequest() when $default != null:
return $default(_that);case _:
return null;
}
}
/// A variant of `when` that fallback to an `orElse` callback.
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return orElse();
/// }
/// ```
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( bool? approvedPrice, bool? market, String? killReqKey, String? operatorKey, String? poultryHatchingKey, int? quantity, String? sendDate, String? chickenBreed, @JsonKey(name: "Index_weight") double? indexWeight, String? losses, List<dynamic>? auctionList, bool? freezing, bool? export, bool? cash, bool? credit, List<dynamic>? killHouseList, String? role, String? poultryKey, int? amount, String? financialOperation, bool? freeSaleInProvince, String? confirmPoultryMobile)? $default,{required TResult orElse(),}) {final _that = this;
switch (_that) {
case _KillRegistrationRequest() when $default != null:
return $default(_that.approvedPrice,_that.market,_that.killReqKey,_that.operatorKey,_that.poultryHatchingKey,_that.quantity,_that.sendDate,_that.chickenBreed,_that.indexWeight,_that.losses,_that.auctionList,_that.freezing,_that.export,_that.cash,_that.credit,_that.killHouseList,_that.role,_that.poultryKey,_that.amount,_that.financialOperation,_that.freeSaleInProvince,_that.confirmPoultryMobile);case _:
return orElse();
}
}
/// A `switch`-like method, using callbacks.
///
/// As opposed to `map`, this offers destructuring.
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case Subclass2(:final field2):
/// return ...;
/// }
/// ```
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( bool? approvedPrice, bool? market, String? killReqKey, String? operatorKey, String? poultryHatchingKey, int? quantity, String? sendDate, String? chickenBreed, @JsonKey(name: "Index_weight") double? indexWeight, String? losses, List<dynamic>? auctionList, bool? freezing, bool? export, bool? cash, bool? credit, List<dynamic>? killHouseList, String? role, String? poultryKey, int? amount, String? financialOperation, bool? freeSaleInProvince, String? confirmPoultryMobile) $default,) {final _that = this;
switch (_that) {
case _KillRegistrationRequest():
return $default(_that.approvedPrice,_that.market,_that.killReqKey,_that.operatorKey,_that.poultryHatchingKey,_that.quantity,_that.sendDate,_that.chickenBreed,_that.indexWeight,_that.losses,_that.auctionList,_that.freezing,_that.export,_that.cash,_that.credit,_that.killHouseList,_that.role,_that.poultryKey,_that.amount,_that.financialOperation,_that.freeSaleInProvince,_that.confirmPoultryMobile);case _:
throw StateError('Unexpected subclass');
}
}
/// A variant of `when` that fallback to returning `null`
///
/// It is equivalent to doing:
/// ```dart
/// switch (sealedClass) {
/// case Subclass(:final field):
/// return ...;
/// case _:
/// return null;
/// }
/// ```
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( bool? approvedPrice, bool? market, String? killReqKey, String? operatorKey, String? poultryHatchingKey, int? quantity, String? sendDate, String? chickenBreed, @JsonKey(name: "Index_weight") double? indexWeight, String? losses, List<dynamic>? auctionList, bool? freezing, bool? export, bool? cash, bool? credit, List<dynamic>? killHouseList, String? role, String? poultryKey, int? amount, String? financialOperation, bool? freeSaleInProvince, String? confirmPoultryMobile)? $default,) {final _that = this;
switch (_that) {
case _KillRegistrationRequest() when $default != null:
return $default(_that.approvedPrice,_that.market,_that.killReqKey,_that.operatorKey,_that.poultryHatchingKey,_that.quantity,_that.sendDate,_that.chickenBreed,_that.indexWeight,_that.losses,_that.auctionList,_that.freezing,_that.export,_that.cash,_that.credit,_that.killHouseList,_that.role,_that.poultryKey,_that.amount,_that.financialOperation,_that.freeSaleInProvince,_that.confirmPoultryMobile);case _:
return null;
}
}
}
/// @nodoc
@JsonSerializable()
class _KillRegistrationRequest implements KillRegistrationRequest {
const _KillRegistrationRequest({this.approvedPrice, this.market, this.killReqKey, this.operatorKey, this.poultryHatchingKey, this.quantity, this.sendDate, this.chickenBreed, @JsonKey(name: "Index_weight") this.indexWeight, this.losses, final List<dynamic>? auctionList, this.freezing, this.export, this.cash, this.credit, final List<dynamic>? killHouseList, this.role, this.poultryKey, this.amount, this.financialOperation, this.freeSaleInProvince, this.confirmPoultryMobile}): _auctionList = auctionList,_killHouseList = killHouseList;
factory _KillRegistrationRequest.fromJson(Map<String, dynamic> json) => _$KillRegistrationRequestFromJson(json);
@override final bool? approvedPrice;
@override final bool? market;
@override final String? killReqKey;
@override final String? operatorKey;
@override final String? poultryHatchingKey;
@override final int? quantity;
@override final String? sendDate;
@override final String? chickenBreed;
@override@JsonKey(name: "Index_weight") final double? indexWeight;
@override final String? losses;
final List<dynamic>? _auctionList;
@override List<dynamic>? get auctionList {
final value = _auctionList;
if (value == null) return null;
if (_auctionList is EqualUnmodifiableListView) return _auctionList;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(value);
}
@override final bool? freezing;
@override final bool? export;
@override final bool? cash;
@override final bool? credit;
final List<dynamic>? _killHouseList;
@override List<dynamic>? get killHouseList {
final value = _killHouseList;
if (value == null) return null;
if (_killHouseList is EqualUnmodifiableListView) return _killHouseList;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(value);
}
@override final String? role;
@override final String? poultryKey;
@override final int? amount;
@override final String? financialOperation;
@override final bool? freeSaleInProvince;
@override final String? confirmPoultryMobile;
/// Create a copy of KillRegistrationRequest
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$KillRegistrationRequestCopyWith<_KillRegistrationRequest> get copyWith => __$KillRegistrationRequestCopyWithImpl<_KillRegistrationRequest>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$KillRegistrationRequestToJson(this, );
}
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is _KillRegistrationRequest&&(identical(other.approvedPrice, approvedPrice) || other.approvedPrice == approvedPrice)&&(identical(other.market, market) || other.market == market)&&(identical(other.killReqKey, killReqKey) || other.killReqKey == killReqKey)&&(identical(other.operatorKey, operatorKey) || other.operatorKey == operatorKey)&&(identical(other.poultryHatchingKey, poultryHatchingKey) || other.poultryHatchingKey == poultryHatchingKey)&&(identical(other.quantity, quantity) || other.quantity == quantity)&&(identical(other.sendDate, sendDate) || other.sendDate == sendDate)&&(identical(other.chickenBreed, chickenBreed) || other.chickenBreed == chickenBreed)&&(identical(other.indexWeight, indexWeight) || other.indexWeight == indexWeight)&&(identical(other.losses, losses) || other.losses == losses)&&const DeepCollectionEquality().equals(other._auctionList, _auctionList)&&(identical(other.freezing, freezing) || other.freezing == freezing)&&(identical(other.export, export) || other.export == export)&&(identical(other.cash, cash) || other.cash == cash)&&(identical(other.credit, credit) || other.credit == credit)&&const DeepCollectionEquality().equals(other._killHouseList, _killHouseList)&&(identical(other.role, role) || other.role == role)&&(identical(other.poultryKey, poultryKey) || other.poultryKey == poultryKey)&&(identical(other.amount, amount) || other.amount == amount)&&(identical(other.financialOperation, financialOperation) || other.financialOperation == financialOperation)&&(identical(other.freeSaleInProvince, freeSaleInProvince) || other.freeSaleInProvince == freeSaleInProvince)&&(identical(other.confirmPoultryMobile, confirmPoultryMobile) || other.confirmPoultryMobile == confirmPoultryMobile));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hashAll([runtimeType,approvedPrice,market,killReqKey,operatorKey,poultryHatchingKey,quantity,sendDate,chickenBreed,indexWeight,losses,const DeepCollectionEquality().hash(_auctionList),freezing,export,cash,credit,const DeepCollectionEquality().hash(_killHouseList),role,poultryKey,amount,financialOperation,freeSaleInProvince,confirmPoultryMobile]);
@override
String toString() {
return 'KillRegistrationRequest(approvedPrice: $approvedPrice, market: $market, killReqKey: $killReqKey, operatorKey: $operatorKey, poultryHatchingKey: $poultryHatchingKey, quantity: $quantity, sendDate: $sendDate, chickenBreed: $chickenBreed, indexWeight: $indexWeight, losses: $losses, auctionList: $auctionList, freezing: $freezing, export: $export, cash: $cash, credit: $credit, killHouseList: $killHouseList, role: $role, poultryKey: $poultryKey, amount: $amount, financialOperation: $financialOperation, freeSaleInProvince: $freeSaleInProvince, confirmPoultryMobile: $confirmPoultryMobile)';
}
}
/// @nodoc
abstract mixin class _$KillRegistrationRequestCopyWith<$Res> implements $KillRegistrationRequestCopyWith<$Res> {
factory _$KillRegistrationRequestCopyWith(_KillRegistrationRequest value, $Res Function(_KillRegistrationRequest) _then) = __$KillRegistrationRequestCopyWithImpl;
@override @useResult
$Res call({
bool? approvedPrice, bool? market, String? killReqKey, String? operatorKey, String? poultryHatchingKey, int? quantity, String? sendDate, String? chickenBreed,@JsonKey(name: "Index_weight") double? indexWeight, String? losses, List<dynamic>? auctionList, bool? freezing, bool? export, bool? cash, bool? credit, List<dynamic>? killHouseList, String? role, String? poultryKey, int? amount, String? financialOperation, bool? freeSaleInProvince, String? confirmPoultryMobile
});
}
/// @nodoc
class __$KillRegistrationRequestCopyWithImpl<$Res>
implements _$KillRegistrationRequestCopyWith<$Res> {
__$KillRegistrationRequestCopyWithImpl(this._self, this._then);
final _KillRegistrationRequest _self;
final $Res Function(_KillRegistrationRequest) _then;
/// Create a copy of KillRegistrationRequest
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? approvedPrice = freezed,Object? market = freezed,Object? killReqKey = freezed,Object? operatorKey = freezed,Object? poultryHatchingKey = freezed,Object? quantity = freezed,Object? sendDate = freezed,Object? chickenBreed = freezed,Object? indexWeight = freezed,Object? losses = freezed,Object? auctionList = freezed,Object? freezing = freezed,Object? export = freezed,Object? cash = freezed,Object? credit = freezed,Object? killHouseList = freezed,Object? role = freezed,Object? poultryKey = freezed,Object? amount = freezed,Object? financialOperation = freezed,Object? freeSaleInProvince = freezed,Object? confirmPoultryMobile = freezed,}) {
return _then(_KillRegistrationRequest(
approvedPrice: freezed == approvedPrice ? _self.approvedPrice : approvedPrice // ignore: cast_nullable_to_non_nullable
as bool?,market: freezed == market ? _self.market : market // ignore: cast_nullable_to_non_nullable
as bool?,killReqKey: freezed == killReqKey ? _self.killReqKey : killReqKey // ignore: cast_nullable_to_non_nullable
as String?,operatorKey: freezed == operatorKey ? _self.operatorKey : operatorKey // ignore: cast_nullable_to_non_nullable
as String?,poultryHatchingKey: freezed == poultryHatchingKey ? _self.poultryHatchingKey : poultryHatchingKey // ignore: cast_nullable_to_non_nullable
as String?,quantity: freezed == quantity ? _self.quantity : quantity // ignore: cast_nullable_to_non_nullable
as int?,sendDate: freezed == sendDate ? _self.sendDate : sendDate // ignore: cast_nullable_to_non_nullable
as String?,chickenBreed: freezed == chickenBreed ? _self.chickenBreed : chickenBreed // ignore: cast_nullable_to_non_nullable
as String?,indexWeight: freezed == indexWeight ? _self.indexWeight : indexWeight // ignore: cast_nullable_to_non_nullable
as double?,losses: freezed == losses ? _self.losses : losses // ignore: cast_nullable_to_non_nullable
as String?,auctionList: freezed == auctionList ? _self._auctionList : auctionList // ignore: cast_nullable_to_non_nullable
as List<dynamic>?,freezing: freezed == freezing ? _self.freezing : freezing // ignore: cast_nullable_to_non_nullable
as bool?,export: freezed == export ? _self.export : export // ignore: cast_nullable_to_non_nullable
as bool?,cash: freezed == cash ? _self.cash : cash // ignore: cast_nullable_to_non_nullable
as bool?,credit: freezed == credit ? _self.credit : credit // ignore: cast_nullable_to_non_nullable
as bool?,killHouseList: freezed == killHouseList ? _self._killHouseList : killHouseList // ignore: cast_nullable_to_non_nullable
as List<dynamic>?,role: freezed == role ? _self.role : role // ignore: cast_nullable_to_non_nullable
as String?,poultryKey: freezed == poultryKey ? _self.poultryKey : poultryKey // ignore: cast_nullable_to_non_nullable
as String?,amount: freezed == amount ? _self.amount : amount // ignore: cast_nullable_to_non_nullable
as int?,financialOperation: freezed == financialOperation ? _self.financialOperation : financialOperation // ignore: cast_nullable_to_non_nullable
as String?,freeSaleInProvince: freezed == freeSaleInProvince ? _self.freeSaleInProvince : freeSaleInProvince // ignore: cast_nullable_to_non_nullable
as bool?,confirmPoultryMobile: freezed == confirmPoultryMobile ? _self.confirmPoultryMobile : confirmPoultryMobile // ignore: cast_nullable_to_non_nullable
as String?,
));
}
}
// dart format on

View File

@@ -0,0 +1,61 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'kill_registration.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
_KillRegistrationRequest _$KillRegistrationRequestFromJson(
Map<String, dynamic> json,
) => _KillRegistrationRequest(
approvedPrice: json['approved_price'] as bool?,
market: json['market'] as bool?,
killReqKey: json['kill_req_key'] as String?,
operatorKey: json['operator_key'] as String?,
poultryHatchingKey: json['poultry_hatching_key'] as String?,
quantity: (json['quantity'] as num?)?.toInt(),
sendDate: json['send_date'] as String?,
chickenBreed: json['chicken_breed'] as String?,
indexWeight: (json['Index_weight'] as num?)?.toDouble(),
losses: json['losses'] as String?,
auctionList: json['auction_list'] as List<dynamic>?,
freezing: json['freezing'] as bool?,
export: json['export'] as bool?,
cash: json['cash'] as bool?,
credit: json['credit'] as bool?,
killHouseList: json['kill_house_list'] as List<dynamic>?,
role: json['role'] as String?,
poultryKey: json['poultry_key'] as String?,
amount: (json['amount'] as num?)?.toInt(),
financialOperation: json['financial_operation'] as String?,
freeSaleInProvince: json['free_sale_in_province'] as bool?,
confirmPoultryMobile: json['confirm_poultry_mobile'] as String?,
);
Map<String, dynamic> _$KillRegistrationRequestToJson(
_KillRegistrationRequest instance,
) => <String, dynamic>{
'approved_price': instance.approvedPrice,
'market': instance.market,
'kill_req_key': instance.killReqKey,
'operator_key': instance.operatorKey,
'poultry_hatching_key': instance.poultryHatchingKey,
'quantity': instance.quantity,
'send_date': instance.sendDate,
'chicken_breed': instance.chickenBreed,
'Index_weight': instance.indexWeight,
'losses': instance.losses,
'auction_list': instance.auctionList,
'freezing': instance.freezing,
'export': instance.export,
'cash': instance.cash,
'credit': instance.credit,
'kill_house_list': instance.killHouseList,
'role': instance.role,
'poultry_key': instance.poultryKey,
'amount': instance.amount,
'financial_operation': instance.financialOperation,
'free_sale_in_province': instance.freeSaleInProvince,
'confirm_poultry_mobile': instance.confirmPoultryMobile,
};