barcode_scanner/lib/backend/schema/stock_picking/stock_picking_model.freezed.dart
mandreshope 61345869e1 feat: Implements stock picking data fetching WIP1
Adds a new API call (`getAllStockPiking`) to retrieve stock picking records from the backend.

Refactors stock picking data models:
- Renames models for better clarity (e.g., `StockPickingResponse` to `StockPickingResponseModel`).
- Makes all model fields nullable to handle varying API responses gracefully.
- Introduces specific nested models (`StockPickingCompanyModel`, `StockPickingPartnerModel`, `StockPickingLocationModel`, `StockPickingTypeModel`) for related entities, enhancing type safety and data structure.

Integrates the new API call into `ReceptionPageModel` and introduces distinct loading states (`loadingUser`, `loadingReceptions`) for improved UI feedback.
2025-07-29 11:47:06 +03:00

1177 lines
56 KiB
Dart

// 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 'stock_picking_model.dart';
// **************************************************************************
// FreezedGenerator
// **************************************************************************
// dart format off
T _$identity<T>(T value) => value;
/// @nodoc
mixin _$StockPickingResponseModel {
String? get jsonrpc; int? get id; StockPickingResultModel? get result;
/// Create a copy of StockPickingResponseModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$StockPickingResponseModelCopyWith<StockPickingResponseModel> get copyWith => _$StockPickingResponseModelCopyWithImpl<StockPickingResponseModel>(this as StockPickingResponseModel, _$identity);
/// Serializes this StockPickingResponseModel to a JSON map.
Map<String, dynamic> toJson();
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is StockPickingResponseModel&&(identical(other.jsonrpc, jsonrpc) || other.jsonrpc == jsonrpc)&&(identical(other.id, id) || other.id == id)&&(identical(other.result, result) || other.result == result));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,jsonrpc,id,result);
@override
String toString() {
return 'StockPickingResponseModel(jsonrpc: $jsonrpc, id: $id, result: $result)';
}
}
/// @nodoc
abstract mixin class $StockPickingResponseModelCopyWith<$Res> {
factory $StockPickingResponseModelCopyWith(StockPickingResponseModel value, $Res Function(StockPickingResponseModel) _then) = _$StockPickingResponseModelCopyWithImpl;
@useResult
$Res call({
String? jsonrpc, int? id, StockPickingResultModel? result
});
$StockPickingResultModelCopyWith<$Res>? get result;
}
/// @nodoc
class _$StockPickingResponseModelCopyWithImpl<$Res>
implements $StockPickingResponseModelCopyWith<$Res> {
_$StockPickingResponseModelCopyWithImpl(this._self, this._then);
final StockPickingResponseModel _self;
final $Res Function(StockPickingResponseModel) _then;
/// Create a copy of StockPickingResponseModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? jsonrpc = freezed,Object? id = freezed,Object? result = freezed,}) {
return _then(_self.copyWith(
jsonrpc: freezed == jsonrpc ? _self.jsonrpc : jsonrpc // ignore: cast_nullable_to_non_nullable
as String?,id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
as int?,result: freezed == result ? _self.result : result // ignore: cast_nullable_to_non_nullable
as StockPickingResultModel?,
));
}
/// Create a copy of StockPickingResponseModel
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$StockPickingResultModelCopyWith<$Res>? get result {
if (_self.result == null) {
return null;
}
return $StockPickingResultModelCopyWith<$Res>(_self.result!, (value) {
return _then(_self.copyWith(result: value));
});
}
}
/// @nodoc
@JsonSerializable()
class _StockPickingResponseModel implements StockPickingResponseModel {
const _StockPickingResponseModel({this.jsonrpc, this.id, this.result});
factory _StockPickingResponseModel.fromJson(Map<String, dynamic> json) => _$StockPickingResponseModelFromJson(json);
@override final String? jsonrpc;
@override final int? id;
@override final StockPickingResultModel? result;
/// Create a copy of StockPickingResponseModel
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$StockPickingResponseModelCopyWith<_StockPickingResponseModel> get copyWith => __$StockPickingResponseModelCopyWithImpl<_StockPickingResponseModel>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$StockPickingResponseModelToJson(this, );
}
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is _StockPickingResponseModel&&(identical(other.jsonrpc, jsonrpc) || other.jsonrpc == jsonrpc)&&(identical(other.id, id) || other.id == id)&&(identical(other.result, result) || other.result == result));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,jsonrpc,id,result);
@override
String toString() {
return 'StockPickingResponseModel(jsonrpc: $jsonrpc, id: $id, result: $result)';
}
}
/// @nodoc
abstract mixin class _$StockPickingResponseModelCopyWith<$Res> implements $StockPickingResponseModelCopyWith<$Res> {
factory _$StockPickingResponseModelCopyWith(_StockPickingResponseModel value, $Res Function(_StockPickingResponseModel) _then) = __$StockPickingResponseModelCopyWithImpl;
@override @useResult
$Res call({
String? jsonrpc, int? id, StockPickingResultModel? result
});
@override $StockPickingResultModelCopyWith<$Res>? get result;
}
/// @nodoc
class __$StockPickingResponseModelCopyWithImpl<$Res>
implements _$StockPickingResponseModelCopyWith<$Res> {
__$StockPickingResponseModelCopyWithImpl(this._self, this._then);
final _StockPickingResponseModel _self;
final $Res Function(_StockPickingResponseModel) _then;
/// Create a copy of StockPickingResponseModel
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? jsonrpc = freezed,Object? id = freezed,Object? result = freezed,}) {
return _then(_StockPickingResponseModel(
jsonrpc: freezed == jsonrpc ? _self.jsonrpc : jsonrpc // ignore: cast_nullable_to_non_nullable
as String?,id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
as int?,result: freezed == result ? _self.result : result // ignore: cast_nullable_to_non_nullable
as StockPickingResultModel?,
));
}
/// Create a copy of StockPickingResponseModel
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$StockPickingResultModelCopyWith<$Res>? get result {
if (_self.result == null) {
return null;
}
return $StockPickingResultModelCopyWith<$Res>(_self.result!, (value) {
return _then(_self.copyWith(result: value));
});
}
}
/// @nodoc
mixin _$StockPickingResultModel {
int? get length; List<StockPickingRecordModel>? get records;
/// Create a copy of StockPickingResultModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$StockPickingResultModelCopyWith<StockPickingResultModel> get copyWith => _$StockPickingResultModelCopyWithImpl<StockPickingResultModel>(this as StockPickingResultModel, _$identity);
/// Serializes this StockPickingResultModel to a JSON map.
Map<String, dynamic> toJson();
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is StockPickingResultModel&&(identical(other.length, length) || other.length == length)&&const DeepCollectionEquality().equals(other.records, records));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,length,const DeepCollectionEquality().hash(records));
@override
String toString() {
return 'StockPickingResultModel(length: $length, records: $records)';
}
}
/// @nodoc
abstract mixin class $StockPickingResultModelCopyWith<$Res> {
factory $StockPickingResultModelCopyWith(StockPickingResultModel value, $Res Function(StockPickingResultModel) _then) = _$StockPickingResultModelCopyWithImpl;
@useResult
$Res call({
int? length, List<StockPickingRecordModel>? records
});
}
/// @nodoc
class _$StockPickingResultModelCopyWithImpl<$Res>
implements $StockPickingResultModelCopyWith<$Res> {
_$StockPickingResultModelCopyWithImpl(this._self, this._then);
final StockPickingResultModel _self;
final $Res Function(StockPickingResultModel) _then;
/// Create a copy of StockPickingResultModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? length = freezed,Object? records = freezed,}) {
return _then(_self.copyWith(
length: freezed == length ? _self.length : length // ignore: cast_nullable_to_non_nullable
as int?,records: freezed == records ? _self.records : records // ignore: cast_nullable_to_non_nullable
as List<StockPickingRecordModel>?,
));
}
}
/// @nodoc
@JsonSerializable()
class _StockPickingResultModel implements StockPickingResultModel {
const _StockPickingResultModel({this.length, final List<StockPickingRecordModel>? records}): _records = records;
factory _StockPickingResultModel.fromJson(Map<String, dynamic> json) => _$StockPickingResultModelFromJson(json);
@override final int? length;
final List<StockPickingRecordModel>? _records;
@override List<StockPickingRecordModel>? get records {
final value = _records;
if (value == null) return null;
if (_records is EqualUnmodifiableListView) return _records;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(value);
}
/// Create a copy of StockPickingResultModel
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$StockPickingResultModelCopyWith<_StockPickingResultModel> get copyWith => __$StockPickingResultModelCopyWithImpl<_StockPickingResultModel>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$StockPickingResultModelToJson(this, );
}
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is _StockPickingResultModel&&(identical(other.length, length) || other.length == length)&&const DeepCollectionEquality().equals(other._records, _records));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,length,const DeepCollectionEquality().hash(_records));
@override
String toString() {
return 'StockPickingResultModel(length: $length, records: $records)';
}
}
/// @nodoc
abstract mixin class _$StockPickingResultModelCopyWith<$Res> implements $StockPickingResultModelCopyWith<$Res> {
factory _$StockPickingResultModelCopyWith(_StockPickingResultModel value, $Res Function(_StockPickingResultModel) _then) = __$StockPickingResultModelCopyWithImpl;
@override @useResult
$Res call({
int? length, List<StockPickingRecordModel>? records
});
}
/// @nodoc
class __$StockPickingResultModelCopyWithImpl<$Res>
implements _$StockPickingResultModelCopyWith<$Res> {
__$StockPickingResultModelCopyWithImpl(this._self, this._then);
final _StockPickingResultModel _self;
final $Res Function(_StockPickingResultModel) _then;
/// Create a copy of StockPickingResultModel
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? length = freezed,Object? records = freezed,}) {
return _then(_StockPickingResultModel(
length: freezed == length ? _self.length : length // ignore: cast_nullable_to_non_nullable
as int?,records: freezed == records ? _self._records : records // ignore: cast_nullable_to_non_nullable
as List<StockPickingRecordModel>?,
));
}
}
/// @nodoc
mixin _$StockPickingRecordModel {
int? get id;@JsonKey(name: 'company_id') StockPickingCompanyModel? get companyId;@JsonKey(name: 'priority') String? get priority;@JsonKey(name: 'name') String? get name;@JsonKey(name: 'partner_id') StockPickingPartnerModel? get partnerId;@JsonKey(name: 'location_dest_id') StockPickingLocationModel? get locationDestId;@JsonKey(name: 'location_id') StockPickingLocationModel? get locationId;@JsonKey(name: 'user_id') dynamic get userId;@JsonKey(name: 'scheduled_date') String? get scheduledDate;@JsonKey(name: 'picking_type_code') String? get pickingTypeCode;@JsonKey(name: 'products_availability_state') dynamic get productsAvailabilityState;@JsonKey(name: 'products_availability') dynamic get productsAvailability;@JsonKey(name: 'date_deadline') String? get dateDeadline;@JsonKey(name: 'date_done') dynamic get dateDone;@JsonKey(name: 'origin') String? get origin;@JsonKey(name: 'backorder_id') dynamic get backorderId;@JsonKey(name: 'picking_type_id') StockPickingTypeModel? get pickingTypeId;@JsonKey(name: 'state') String? get state;@JsonKey(name: 'activity_exception_decoration') dynamic get activityExceptionDecoration;@JsonKey(name: 'activity_exception_icon') dynamic get activityExceptionIcon;@JsonKey(name: 'json_popover') dynamic get jsonPopover;
/// Create a copy of StockPickingRecordModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$StockPickingRecordModelCopyWith<StockPickingRecordModel> get copyWith => _$StockPickingRecordModelCopyWithImpl<StockPickingRecordModel>(this as StockPickingRecordModel, _$identity);
/// Serializes this StockPickingRecordModel to a JSON map.
Map<String, dynamic> toJson();
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is StockPickingRecordModel&&(identical(other.id, id) || other.id == id)&&(identical(other.companyId, companyId) || other.companyId == companyId)&&(identical(other.priority, priority) || other.priority == priority)&&(identical(other.name, name) || other.name == name)&&(identical(other.partnerId, partnerId) || other.partnerId == partnerId)&&(identical(other.locationDestId, locationDestId) || other.locationDestId == locationDestId)&&(identical(other.locationId, locationId) || other.locationId == locationId)&&const DeepCollectionEquality().equals(other.userId, userId)&&(identical(other.scheduledDate, scheduledDate) || other.scheduledDate == scheduledDate)&&(identical(other.pickingTypeCode, pickingTypeCode) || other.pickingTypeCode == pickingTypeCode)&&const DeepCollectionEquality().equals(other.productsAvailabilityState, productsAvailabilityState)&&const DeepCollectionEquality().equals(other.productsAvailability, productsAvailability)&&(identical(other.dateDeadline, dateDeadline) || other.dateDeadline == dateDeadline)&&const DeepCollectionEquality().equals(other.dateDone, dateDone)&&(identical(other.origin, origin) || other.origin == origin)&&const DeepCollectionEquality().equals(other.backorderId, backorderId)&&(identical(other.pickingTypeId, pickingTypeId) || other.pickingTypeId == pickingTypeId)&&(identical(other.state, state) || other.state == state)&&const DeepCollectionEquality().equals(other.activityExceptionDecoration, activityExceptionDecoration)&&const DeepCollectionEquality().equals(other.activityExceptionIcon, activityExceptionIcon)&&const DeepCollectionEquality().equals(other.jsonPopover, jsonPopover));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hashAll([runtimeType,id,companyId,priority,name,partnerId,locationDestId,locationId,const DeepCollectionEquality().hash(userId),scheduledDate,pickingTypeCode,const DeepCollectionEquality().hash(productsAvailabilityState),const DeepCollectionEquality().hash(productsAvailability),dateDeadline,const DeepCollectionEquality().hash(dateDone),origin,const DeepCollectionEquality().hash(backorderId),pickingTypeId,state,const DeepCollectionEquality().hash(activityExceptionDecoration),const DeepCollectionEquality().hash(activityExceptionIcon),const DeepCollectionEquality().hash(jsonPopover)]);
@override
String toString() {
return 'StockPickingRecordModel(id: $id, companyId: $companyId, priority: $priority, name: $name, partnerId: $partnerId, locationDestId: $locationDestId, locationId: $locationId, userId: $userId, scheduledDate: $scheduledDate, pickingTypeCode: $pickingTypeCode, productsAvailabilityState: $productsAvailabilityState, productsAvailability: $productsAvailability, dateDeadline: $dateDeadline, dateDone: $dateDone, origin: $origin, backorderId: $backorderId, pickingTypeId: $pickingTypeId, state: $state, activityExceptionDecoration: $activityExceptionDecoration, activityExceptionIcon: $activityExceptionIcon, jsonPopover: $jsonPopover)';
}
}
/// @nodoc
abstract mixin class $StockPickingRecordModelCopyWith<$Res> {
factory $StockPickingRecordModelCopyWith(StockPickingRecordModel value, $Res Function(StockPickingRecordModel) _then) = _$StockPickingRecordModelCopyWithImpl;
@useResult
$Res call({
int? id,@JsonKey(name: 'company_id') StockPickingCompanyModel? companyId,@JsonKey(name: 'priority') String? priority,@JsonKey(name: 'name') String? name,@JsonKey(name: 'partner_id') StockPickingPartnerModel? partnerId,@JsonKey(name: 'location_dest_id') StockPickingLocationModel? locationDestId,@JsonKey(name: 'location_id') StockPickingLocationModel? locationId,@JsonKey(name: 'user_id') dynamic userId,@JsonKey(name: 'scheduled_date') String? scheduledDate,@JsonKey(name: 'picking_type_code') String? pickingTypeCode,@JsonKey(name: 'products_availability_state') dynamic productsAvailabilityState,@JsonKey(name: 'products_availability') dynamic productsAvailability,@JsonKey(name: 'date_deadline') String? dateDeadline,@JsonKey(name: 'date_done') dynamic dateDone,@JsonKey(name: 'origin') String? origin,@JsonKey(name: 'backorder_id') dynamic backorderId,@JsonKey(name: 'picking_type_id') StockPickingTypeModel? pickingTypeId,@JsonKey(name: 'state') String? state,@JsonKey(name: 'activity_exception_decoration') dynamic activityExceptionDecoration,@JsonKey(name: 'activity_exception_icon') dynamic activityExceptionIcon,@JsonKey(name: 'json_popover') dynamic jsonPopover
});
$StockPickingCompanyModelCopyWith<$Res>? get companyId;$StockPickingPartnerModelCopyWith<$Res>? get partnerId;$StockPickingLocationModelCopyWith<$Res>? get locationDestId;$StockPickingLocationModelCopyWith<$Res>? get locationId;$StockPickingTypeModelCopyWith<$Res>? get pickingTypeId;
}
/// @nodoc
class _$StockPickingRecordModelCopyWithImpl<$Res>
implements $StockPickingRecordModelCopyWith<$Res> {
_$StockPickingRecordModelCopyWithImpl(this._self, this._then);
final StockPickingRecordModel _self;
final $Res Function(StockPickingRecordModel) _then;
/// Create a copy of StockPickingRecordModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? companyId = freezed,Object? priority = freezed,Object? name = freezed,Object? partnerId = freezed,Object? locationDestId = freezed,Object? locationId = freezed,Object? userId = freezed,Object? scheduledDate = freezed,Object? pickingTypeCode = freezed,Object? productsAvailabilityState = freezed,Object? productsAvailability = freezed,Object? dateDeadline = freezed,Object? dateDone = freezed,Object? origin = freezed,Object? backorderId = freezed,Object? pickingTypeId = freezed,Object? state = freezed,Object? activityExceptionDecoration = freezed,Object? activityExceptionIcon = freezed,Object? jsonPopover = freezed,}) {
return _then(_self.copyWith(
id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
as int?,companyId: freezed == companyId ? _self.companyId : companyId // ignore: cast_nullable_to_non_nullable
as StockPickingCompanyModel?,priority: freezed == priority ? _self.priority : priority // ignore: cast_nullable_to_non_nullable
as String?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable
as String?,partnerId: freezed == partnerId ? _self.partnerId : partnerId // ignore: cast_nullable_to_non_nullable
as StockPickingPartnerModel?,locationDestId: freezed == locationDestId ? _self.locationDestId : locationDestId // ignore: cast_nullable_to_non_nullable
as StockPickingLocationModel?,locationId: freezed == locationId ? _self.locationId : locationId // ignore: cast_nullable_to_non_nullable
as StockPickingLocationModel?,userId: freezed == userId ? _self.userId : userId // ignore: cast_nullable_to_non_nullable
as dynamic,scheduledDate: freezed == scheduledDate ? _self.scheduledDate : scheduledDate // ignore: cast_nullable_to_non_nullable
as String?,pickingTypeCode: freezed == pickingTypeCode ? _self.pickingTypeCode : pickingTypeCode // ignore: cast_nullable_to_non_nullable
as String?,productsAvailabilityState: freezed == productsAvailabilityState ? _self.productsAvailabilityState : productsAvailabilityState // ignore: cast_nullable_to_non_nullable
as dynamic,productsAvailability: freezed == productsAvailability ? _self.productsAvailability : productsAvailability // ignore: cast_nullable_to_non_nullable
as dynamic,dateDeadline: freezed == dateDeadline ? _self.dateDeadline : dateDeadline // ignore: cast_nullable_to_non_nullable
as String?,dateDone: freezed == dateDone ? _self.dateDone : dateDone // ignore: cast_nullable_to_non_nullable
as dynamic,origin: freezed == origin ? _self.origin : origin // ignore: cast_nullable_to_non_nullable
as String?,backorderId: freezed == backorderId ? _self.backorderId : backorderId // ignore: cast_nullable_to_non_nullable
as dynamic,pickingTypeId: freezed == pickingTypeId ? _self.pickingTypeId : pickingTypeId // ignore: cast_nullable_to_non_nullable
as StockPickingTypeModel?,state: freezed == state ? _self.state : state // ignore: cast_nullable_to_non_nullable
as String?,activityExceptionDecoration: freezed == activityExceptionDecoration ? _self.activityExceptionDecoration : activityExceptionDecoration // ignore: cast_nullable_to_non_nullable
as dynamic,activityExceptionIcon: freezed == activityExceptionIcon ? _self.activityExceptionIcon : activityExceptionIcon // ignore: cast_nullable_to_non_nullable
as dynamic,jsonPopover: freezed == jsonPopover ? _self.jsonPopover : jsonPopover // ignore: cast_nullable_to_non_nullable
as dynamic,
));
}
/// Create a copy of StockPickingRecordModel
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$StockPickingCompanyModelCopyWith<$Res>? get companyId {
if (_self.companyId == null) {
return null;
}
return $StockPickingCompanyModelCopyWith<$Res>(_self.companyId!, (value) {
return _then(_self.copyWith(companyId: value));
});
}/// Create a copy of StockPickingRecordModel
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$StockPickingPartnerModelCopyWith<$Res>? get partnerId {
if (_self.partnerId == null) {
return null;
}
return $StockPickingPartnerModelCopyWith<$Res>(_self.partnerId!, (value) {
return _then(_self.copyWith(partnerId: value));
});
}/// Create a copy of StockPickingRecordModel
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$StockPickingLocationModelCopyWith<$Res>? get locationDestId {
if (_self.locationDestId == null) {
return null;
}
return $StockPickingLocationModelCopyWith<$Res>(_self.locationDestId!, (value) {
return _then(_self.copyWith(locationDestId: value));
});
}/// Create a copy of StockPickingRecordModel
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$StockPickingLocationModelCopyWith<$Res>? get locationId {
if (_self.locationId == null) {
return null;
}
return $StockPickingLocationModelCopyWith<$Res>(_self.locationId!, (value) {
return _then(_self.copyWith(locationId: value));
});
}/// Create a copy of StockPickingRecordModel
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$StockPickingTypeModelCopyWith<$Res>? get pickingTypeId {
if (_self.pickingTypeId == null) {
return null;
}
return $StockPickingTypeModelCopyWith<$Res>(_self.pickingTypeId!, (value) {
return _then(_self.copyWith(pickingTypeId: value));
});
}
}
/// @nodoc
@JsonSerializable()
class _StockPickingRecordModel implements StockPickingRecordModel {
const _StockPickingRecordModel({this.id, @JsonKey(name: 'company_id') this.companyId, @JsonKey(name: 'priority') this.priority, @JsonKey(name: 'name') this.name, @JsonKey(name: 'partner_id') this.partnerId, @JsonKey(name: 'location_dest_id') this.locationDestId, @JsonKey(name: 'location_id') this.locationId, @JsonKey(name: 'user_id') this.userId, @JsonKey(name: 'scheduled_date') this.scheduledDate, @JsonKey(name: 'picking_type_code') this.pickingTypeCode, @JsonKey(name: 'products_availability_state') this.productsAvailabilityState, @JsonKey(name: 'products_availability') this.productsAvailability, @JsonKey(name: 'date_deadline') this.dateDeadline, @JsonKey(name: 'date_done') this.dateDone, @JsonKey(name: 'origin') this.origin, @JsonKey(name: 'backorder_id') this.backorderId, @JsonKey(name: 'picking_type_id') this.pickingTypeId, @JsonKey(name: 'state') this.state, @JsonKey(name: 'activity_exception_decoration') this.activityExceptionDecoration, @JsonKey(name: 'activity_exception_icon') this.activityExceptionIcon, @JsonKey(name: 'json_popover') this.jsonPopover});
factory _StockPickingRecordModel.fromJson(Map<String, dynamic> json) => _$StockPickingRecordModelFromJson(json);
@override final int? id;
@override@JsonKey(name: 'company_id') final StockPickingCompanyModel? companyId;
@override@JsonKey(name: 'priority') final String? priority;
@override@JsonKey(name: 'name') final String? name;
@override@JsonKey(name: 'partner_id') final StockPickingPartnerModel? partnerId;
@override@JsonKey(name: 'location_dest_id') final StockPickingLocationModel? locationDestId;
@override@JsonKey(name: 'location_id') final StockPickingLocationModel? locationId;
@override@JsonKey(name: 'user_id') final dynamic userId;
@override@JsonKey(name: 'scheduled_date') final String? scheduledDate;
@override@JsonKey(name: 'picking_type_code') final String? pickingTypeCode;
@override@JsonKey(name: 'products_availability_state') final dynamic productsAvailabilityState;
@override@JsonKey(name: 'products_availability') final dynamic productsAvailability;
@override@JsonKey(name: 'date_deadline') final String? dateDeadline;
@override@JsonKey(name: 'date_done') final dynamic dateDone;
@override@JsonKey(name: 'origin') final String? origin;
@override@JsonKey(name: 'backorder_id') final dynamic backorderId;
@override@JsonKey(name: 'picking_type_id') final StockPickingTypeModel? pickingTypeId;
@override@JsonKey(name: 'state') final String? state;
@override@JsonKey(name: 'activity_exception_decoration') final dynamic activityExceptionDecoration;
@override@JsonKey(name: 'activity_exception_icon') final dynamic activityExceptionIcon;
@override@JsonKey(name: 'json_popover') final dynamic jsonPopover;
/// Create a copy of StockPickingRecordModel
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$StockPickingRecordModelCopyWith<_StockPickingRecordModel> get copyWith => __$StockPickingRecordModelCopyWithImpl<_StockPickingRecordModel>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$StockPickingRecordModelToJson(this, );
}
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is _StockPickingRecordModel&&(identical(other.id, id) || other.id == id)&&(identical(other.companyId, companyId) || other.companyId == companyId)&&(identical(other.priority, priority) || other.priority == priority)&&(identical(other.name, name) || other.name == name)&&(identical(other.partnerId, partnerId) || other.partnerId == partnerId)&&(identical(other.locationDestId, locationDestId) || other.locationDestId == locationDestId)&&(identical(other.locationId, locationId) || other.locationId == locationId)&&const DeepCollectionEquality().equals(other.userId, userId)&&(identical(other.scheduledDate, scheduledDate) || other.scheduledDate == scheduledDate)&&(identical(other.pickingTypeCode, pickingTypeCode) || other.pickingTypeCode == pickingTypeCode)&&const DeepCollectionEquality().equals(other.productsAvailabilityState, productsAvailabilityState)&&const DeepCollectionEquality().equals(other.productsAvailability, productsAvailability)&&(identical(other.dateDeadline, dateDeadline) || other.dateDeadline == dateDeadline)&&const DeepCollectionEquality().equals(other.dateDone, dateDone)&&(identical(other.origin, origin) || other.origin == origin)&&const DeepCollectionEquality().equals(other.backorderId, backorderId)&&(identical(other.pickingTypeId, pickingTypeId) || other.pickingTypeId == pickingTypeId)&&(identical(other.state, state) || other.state == state)&&const DeepCollectionEquality().equals(other.activityExceptionDecoration, activityExceptionDecoration)&&const DeepCollectionEquality().equals(other.activityExceptionIcon, activityExceptionIcon)&&const DeepCollectionEquality().equals(other.jsonPopover, jsonPopover));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hashAll([runtimeType,id,companyId,priority,name,partnerId,locationDestId,locationId,const DeepCollectionEquality().hash(userId),scheduledDate,pickingTypeCode,const DeepCollectionEquality().hash(productsAvailabilityState),const DeepCollectionEquality().hash(productsAvailability),dateDeadline,const DeepCollectionEquality().hash(dateDone),origin,const DeepCollectionEquality().hash(backorderId),pickingTypeId,state,const DeepCollectionEquality().hash(activityExceptionDecoration),const DeepCollectionEquality().hash(activityExceptionIcon),const DeepCollectionEquality().hash(jsonPopover)]);
@override
String toString() {
return 'StockPickingRecordModel(id: $id, companyId: $companyId, priority: $priority, name: $name, partnerId: $partnerId, locationDestId: $locationDestId, locationId: $locationId, userId: $userId, scheduledDate: $scheduledDate, pickingTypeCode: $pickingTypeCode, productsAvailabilityState: $productsAvailabilityState, productsAvailability: $productsAvailability, dateDeadline: $dateDeadline, dateDone: $dateDone, origin: $origin, backorderId: $backorderId, pickingTypeId: $pickingTypeId, state: $state, activityExceptionDecoration: $activityExceptionDecoration, activityExceptionIcon: $activityExceptionIcon, jsonPopover: $jsonPopover)';
}
}
/// @nodoc
abstract mixin class _$StockPickingRecordModelCopyWith<$Res> implements $StockPickingRecordModelCopyWith<$Res> {
factory _$StockPickingRecordModelCopyWith(_StockPickingRecordModel value, $Res Function(_StockPickingRecordModel) _then) = __$StockPickingRecordModelCopyWithImpl;
@override @useResult
$Res call({
int? id,@JsonKey(name: 'company_id') StockPickingCompanyModel? companyId,@JsonKey(name: 'priority') String? priority,@JsonKey(name: 'name') String? name,@JsonKey(name: 'partner_id') StockPickingPartnerModel? partnerId,@JsonKey(name: 'location_dest_id') StockPickingLocationModel? locationDestId,@JsonKey(name: 'location_id') StockPickingLocationModel? locationId,@JsonKey(name: 'user_id') dynamic userId,@JsonKey(name: 'scheduled_date') String? scheduledDate,@JsonKey(name: 'picking_type_code') String? pickingTypeCode,@JsonKey(name: 'products_availability_state') dynamic productsAvailabilityState,@JsonKey(name: 'products_availability') dynamic productsAvailability,@JsonKey(name: 'date_deadline') String? dateDeadline,@JsonKey(name: 'date_done') dynamic dateDone,@JsonKey(name: 'origin') String? origin,@JsonKey(name: 'backorder_id') dynamic backorderId,@JsonKey(name: 'picking_type_id') StockPickingTypeModel? pickingTypeId,@JsonKey(name: 'state') String? state,@JsonKey(name: 'activity_exception_decoration') dynamic activityExceptionDecoration,@JsonKey(name: 'activity_exception_icon') dynamic activityExceptionIcon,@JsonKey(name: 'json_popover') dynamic jsonPopover
});
@override $StockPickingCompanyModelCopyWith<$Res>? get companyId;@override $StockPickingPartnerModelCopyWith<$Res>? get partnerId;@override $StockPickingLocationModelCopyWith<$Res>? get locationDestId;@override $StockPickingLocationModelCopyWith<$Res>? get locationId;@override $StockPickingTypeModelCopyWith<$Res>? get pickingTypeId;
}
/// @nodoc
class __$StockPickingRecordModelCopyWithImpl<$Res>
implements _$StockPickingRecordModelCopyWith<$Res> {
__$StockPickingRecordModelCopyWithImpl(this._self, this._then);
final _StockPickingRecordModel _self;
final $Res Function(_StockPickingRecordModel) _then;
/// Create a copy of StockPickingRecordModel
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? companyId = freezed,Object? priority = freezed,Object? name = freezed,Object? partnerId = freezed,Object? locationDestId = freezed,Object? locationId = freezed,Object? userId = freezed,Object? scheduledDate = freezed,Object? pickingTypeCode = freezed,Object? productsAvailabilityState = freezed,Object? productsAvailability = freezed,Object? dateDeadline = freezed,Object? dateDone = freezed,Object? origin = freezed,Object? backorderId = freezed,Object? pickingTypeId = freezed,Object? state = freezed,Object? activityExceptionDecoration = freezed,Object? activityExceptionIcon = freezed,Object? jsonPopover = freezed,}) {
return _then(_StockPickingRecordModel(
id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
as int?,companyId: freezed == companyId ? _self.companyId : companyId // ignore: cast_nullable_to_non_nullable
as StockPickingCompanyModel?,priority: freezed == priority ? _self.priority : priority // ignore: cast_nullable_to_non_nullable
as String?,name: freezed == name ? _self.name : name // ignore: cast_nullable_to_non_nullable
as String?,partnerId: freezed == partnerId ? _self.partnerId : partnerId // ignore: cast_nullable_to_non_nullable
as StockPickingPartnerModel?,locationDestId: freezed == locationDestId ? _self.locationDestId : locationDestId // ignore: cast_nullable_to_non_nullable
as StockPickingLocationModel?,locationId: freezed == locationId ? _self.locationId : locationId // ignore: cast_nullable_to_non_nullable
as StockPickingLocationModel?,userId: freezed == userId ? _self.userId : userId // ignore: cast_nullable_to_non_nullable
as dynamic,scheduledDate: freezed == scheduledDate ? _self.scheduledDate : scheduledDate // ignore: cast_nullable_to_non_nullable
as String?,pickingTypeCode: freezed == pickingTypeCode ? _self.pickingTypeCode : pickingTypeCode // ignore: cast_nullable_to_non_nullable
as String?,productsAvailabilityState: freezed == productsAvailabilityState ? _self.productsAvailabilityState : productsAvailabilityState // ignore: cast_nullable_to_non_nullable
as dynamic,productsAvailability: freezed == productsAvailability ? _self.productsAvailability : productsAvailability // ignore: cast_nullable_to_non_nullable
as dynamic,dateDeadline: freezed == dateDeadline ? _self.dateDeadline : dateDeadline // ignore: cast_nullable_to_non_nullable
as String?,dateDone: freezed == dateDone ? _self.dateDone : dateDone // ignore: cast_nullable_to_non_nullable
as dynamic,origin: freezed == origin ? _self.origin : origin // ignore: cast_nullable_to_non_nullable
as String?,backorderId: freezed == backorderId ? _self.backorderId : backorderId // ignore: cast_nullable_to_non_nullable
as dynamic,pickingTypeId: freezed == pickingTypeId ? _self.pickingTypeId : pickingTypeId // ignore: cast_nullable_to_non_nullable
as StockPickingTypeModel?,state: freezed == state ? _self.state : state // ignore: cast_nullable_to_non_nullable
as String?,activityExceptionDecoration: freezed == activityExceptionDecoration ? _self.activityExceptionDecoration : activityExceptionDecoration // ignore: cast_nullable_to_non_nullable
as dynamic,activityExceptionIcon: freezed == activityExceptionIcon ? _self.activityExceptionIcon : activityExceptionIcon // ignore: cast_nullable_to_non_nullable
as dynamic,jsonPopover: freezed == jsonPopover ? _self.jsonPopover : jsonPopover // ignore: cast_nullable_to_non_nullable
as dynamic,
));
}
/// Create a copy of StockPickingRecordModel
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$StockPickingCompanyModelCopyWith<$Res>? get companyId {
if (_self.companyId == null) {
return null;
}
return $StockPickingCompanyModelCopyWith<$Res>(_self.companyId!, (value) {
return _then(_self.copyWith(companyId: value));
});
}/// Create a copy of StockPickingRecordModel
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$StockPickingPartnerModelCopyWith<$Res>? get partnerId {
if (_self.partnerId == null) {
return null;
}
return $StockPickingPartnerModelCopyWith<$Res>(_self.partnerId!, (value) {
return _then(_self.copyWith(partnerId: value));
});
}/// Create a copy of StockPickingRecordModel
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$StockPickingLocationModelCopyWith<$Res>? get locationDestId {
if (_self.locationDestId == null) {
return null;
}
return $StockPickingLocationModelCopyWith<$Res>(_self.locationDestId!, (value) {
return _then(_self.copyWith(locationDestId: value));
});
}/// Create a copy of StockPickingRecordModel
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$StockPickingLocationModelCopyWith<$Res>? get locationId {
if (_self.locationId == null) {
return null;
}
return $StockPickingLocationModelCopyWith<$Res>(_self.locationId!, (value) {
return _then(_self.copyWith(locationId: value));
});
}/// Create a copy of StockPickingRecordModel
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$StockPickingTypeModelCopyWith<$Res>? get pickingTypeId {
if (_self.pickingTypeId == null) {
return null;
}
return $StockPickingTypeModelCopyWith<$Res>(_self.pickingTypeId!, (value) {
return _then(_self.copyWith(pickingTypeId: value));
});
}
}
/// @nodoc
mixin _$StockPickingCompanyModel {
@JsonKey(name: 'id') int? get id;
/// Create a copy of StockPickingCompanyModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$StockPickingCompanyModelCopyWith<StockPickingCompanyModel> get copyWith => _$StockPickingCompanyModelCopyWithImpl<StockPickingCompanyModel>(this as StockPickingCompanyModel, _$identity);
/// Serializes this StockPickingCompanyModel to a JSON map.
Map<String, dynamic> toJson();
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is StockPickingCompanyModel&&(identical(other.id, id) || other.id == id));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,id);
@override
String toString() {
return 'StockPickingCompanyModel(id: $id)';
}
}
/// @nodoc
abstract mixin class $StockPickingCompanyModelCopyWith<$Res> {
factory $StockPickingCompanyModelCopyWith(StockPickingCompanyModel value, $Res Function(StockPickingCompanyModel) _then) = _$StockPickingCompanyModelCopyWithImpl;
@useResult
$Res call({
@JsonKey(name: 'id') int? id
});
}
/// @nodoc
class _$StockPickingCompanyModelCopyWithImpl<$Res>
implements $StockPickingCompanyModelCopyWith<$Res> {
_$StockPickingCompanyModelCopyWithImpl(this._self, this._then);
final StockPickingCompanyModel _self;
final $Res Function(StockPickingCompanyModel) _then;
/// Create a copy of StockPickingCompanyModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,}) {
return _then(_self.copyWith(
id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
as int?,
));
}
}
/// @nodoc
@JsonSerializable()
class _StockPickingCompanyModel implements StockPickingCompanyModel {
const _StockPickingCompanyModel({@JsonKey(name: 'id') this.id});
factory _StockPickingCompanyModel.fromJson(Map<String, dynamic> json) => _$StockPickingCompanyModelFromJson(json);
@override@JsonKey(name: 'id') final int? id;
/// Create a copy of StockPickingCompanyModel
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$StockPickingCompanyModelCopyWith<_StockPickingCompanyModel> get copyWith => __$StockPickingCompanyModelCopyWithImpl<_StockPickingCompanyModel>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$StockPickingCompanyModelToJson(this, );
}
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is _StockPickingCompanyModel&&(identical(other.id, id) || other.id == id));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,id);
@override
String toString() {
return 'StockPickingCompanyModel(id: $id)';
}
}
/// @nodoc
abstract mixin class _$StockPickingCompanyModelCopyWith<$Res> implements $StockPickingCompanyModelCopyWith<$Res> {
factory _$StockPickingCompanyModelCopyWith(_StockPickingCompanyModel value, $Res Function(_StockPickingCompanyModel) _then) = __$StockPickingCompanyModelCopyWithImpl;
@override @useResult
$Res call({
@JsonKey(name: 'id') int? id
});
}
/// @nodoc
class __$StockPickingCompanyModelCopyWithImpl<$Res>
implements _$StockPickingCompanyModelCopyWith<$Res> {
__$StockPickingCompanyModelCopyWithImpl(this._self, this._then);
final _StockPickingCompanyModel _self;
final $Res Function(_StockPickingCompanyModel) _then;
/// Create a copy of StockPickingCompanyModel
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,}) {
return _then(_StockPickingCompanyModel(
id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
as int?,
));
}
}
/// @nodoc
mixin _$StockPickingPartnerModel {
int? get id;@JsonKey(name: 'display_name') String? get displayName;
/// Create a copy of StockPickingPartnerModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$StockPickingPartnerModelCopyWith<StockPickingPartnerModel> get copyWith => _$StockPickingPartnerModelCopyWithImpl<StockPickingPartnerModel>(this as StockPickingPartnerModel, _$identity);
/// Serializes this StockPickingPartnerModel to a JSON map.
Map<String, dynamic> toJson();
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is StockPickingPartnerModel&&(identical(other.id, id) || other.id == id)&&(identical(other.displayName, displayName) || other.displayName == displayName));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,id,displayName);
@override
String toString() {
return 'StockPickingPartnerModel(id: $id, displayName: $displayName)';
}
}
/// @nodoc
abstract mixin class $StockPickingPartnerModelCopyWith<$Res> {
factory $StockPickingPartnerModelCopyWith(StockPickingPartnerModel value, $Res Function(StockPickingPartnerModel) _then) = _$StockPickingPartnerModelCopyWithImpl;
@useResult
$Res call({
int? id,@JsonKey(name: 'display_name') String? displayName
});
}
/// @nodoc
class _$StockPickingPartnerModelCopyWithImpl<$Res>
implements $StockPickingPartnerModelCopyWith<$Res> {
_$StockPickingPartnerModelCopyWithImpl(this._self, this._then);
final StockPickingPartnerModel _self;
final $Res Function(StockPickingPartnerModel) _then;
/// Create a copy of StockPickingPartnerModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? displayName = freezed,}) {
return _then(_self.copyWith(
id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
as int?,displayName: freezed == displayName ? _self.displayName : displayName // ignore: cast_nullable_to_non_nullable
as String?,
));
}
}
/// @nodoc
@JsonSerializable()
class _StockPickingPartnerModel implements StockPickingPartnerModel {
const _StockPickingPartnerModel({this.id, @JsonKey(name: 'display_name') this.displayName});
factory _StockPickingPartnerModel.fromJson(Map<String, dynamic> json) => _$StockPickingPartnerModelFromJson(json);
@override final int? id;
@override@JsonKey(name: 'display_name') final String? displayName;
/// Create a copy of StockPickingPartnerModel
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$StockPickingPartnerModelCopyWith<_StockPickingPartnerModel> get copyWith => __$StockPickingPartnerModelCopyWithImpl<_StockPickingPartnerModel>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$StockPickingPartnerModelToJson(this, );
}
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is _StockPickingPartnerModel&&(identical(other.id, id) || other.id == id)&&(identical(other.displayName, displayName) || other.displayName == displayName));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,id,displayName);
@override
String toString() {
return 'StockPickingPartnerModel(id: $id, displayName: $displayName)';
}
}
/// @nodoc
abstract mixin class _$StockPickingPartnerModelCopyWith<$Res> implements $StockPickingPartnerModelCopyWith<$Res> {
factory _$StockPickingPartnerModelCopyWith(_StockPickingPartnerModel value, $Res Function(_StockPickingPartnerModel) _then) = __$StockPickingPartnerModelCopyWithImpl;
@override @useResult
$Res call({
int? id,@JsonKey(name: 'display_name') String? displayName
});
}
/// @nodoc
class __$StockPickingPartnerModelCopyWithImpl<$Res>
implements _$StockPickingPartnerModelCopyWith<$Res> {
__$StockPickingPartnerModelCopyWithImpl(this._self, this._then);
final _StockPickingPartnerModel _self;
final $Res Function(_StockPickingPartnerModel) _then;
/// Create a copy of StockPickingPartnerModel
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? displayName = freezed,}) {
return _then(_StockPickingPartnerModel(
id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
as int?,displayName: freezed == displayName ? _self.displayName : displayName // ignore: cast_nullable_to_non_nullable
as String?,
));
}
}
/// @nodoc
mixin _$StockPickingLocationModel {
int? get id;@JsonKey(name: 'complete_name') String? get completeName;
/// Create a copy of StockPickingLocationModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$StockPickingLocationModelCopyWith<StockPickingLocationModel> get copyWith => _$StockPickingLocationModelCopyWithImpl<StockPickingLocationModel>(this as StockPickingLocationModel, _$identity);
/// Serializes this StockPickingLocationModel to a JSON map.
Map<String, dynamic> toJson();
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is StockPickingLocationModel&&(identical(other.id, id) || other.id == id)&&(identical(other.completeName, completeName) || other.completeName == completeName));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,id,completeName);
@override
String toString() {
return 'StockPickingLocationModel(id: $id, completeName: $completeName)';
}
}
/// @nodoc
abstract mixin class $StockPickingLocationModelCopyWith<$Res> {
factory $StockPickingLocationModelCopyWith(StockPickingLocationModel value, $Res Function(StockPickingLocationModel) _then) = _$StockPickingLocationModelCopyWithImpl;
@useResult
$Res call({
int? id,@JsonKey(name: 'complete_name') String? completeName
});
}
/// @nodoc
class _$StockPickingLocationModelCopyWithImpl<$Res>
implements $StockPickingLocationModelCopyWith<$Res> {
_$StockPickingLocationModelCopyWithImpl(this._self, this._then);
final StockPickingLocationModel _self;
final $Res Function(StockPickingLocationModel) _then;
/// Create a copy of StockPickingLocationModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? completeName = freezed,}) {
return _then(_self.copyWith(
id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
as int?,completeName: freezed == completeName ? _self.completeName : completeName // ignore: cast_nullable_to_non_nullable
as String?,
));
}
}
/// @nodoc
@JsonSerializable()
class _StockPickingLocationModel implements StockPickingLocationModel {
const _StockPickingLocationModel({this.id, @JsonKey(name: 'complete_name') this.completeName});
factory _StockPickingLocationModel.fromJson(Map<String, dynamic> json) => _$StockPickingLocationModelFromJson(json);
@override final int? id;
@override@JsonKey(name: 'complete_name') final String? completeName;
/// Create a copy of StockPickingLocationModel
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$StockPickingLocationModelCopyWith<_StockPickingLocationModel> get copyWith => __$StockPickingLocationModelCopyWithImpl<_StockPickingLocationModel>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$StockPickingLocationModelToJson(this, );
}
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is _StockPickingLocationModel&&(identical(other.id, id) || other.id == id)&&(identical(other.completeName, completeName) || other.completeName == completeName));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,id,completeName);
@override
String toString() {
return 'StockPickingLocationModel(id: $id, completeName: $completeName)';
}
}
/// @nodoc
abstract mixin class _$StockPickingLocationModelCopyWith<$Res> implements $StockPickingLocationModelCopyWith<$Res> {
factory _$StockPickingLocationModelCopyWith(_StockPickingLocationModel value, $Res Function(_StockPickingLocationModel) _then) = __$StockPickingLocationModelCopyWithImpl;
@override @useResult
$Res call({
int? id,@JsonKey(name: 'complete_name') String? completeName
});
}
/// @nodoc
class __$StockPickingLocationModelCopyWithImpl<$Res>
implements _$StockPickingLocationModelCopyWith<$Res> {
__$StockPickingLocationModelCopyWithImpl(this._self, this._then);
final _StockPickingLocationModel _self;
final $Res Function(_StockPickingLocationModel) _then;
/// Create a copy of StockPickingLocationModel
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? completeName = freezed,}) {
return _then(_StockPickingLocationModel(
id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
as int?,completeName: freezed == completeName ? _self.completeName : completeName // ignore: cast_nullable_to_non_nullable
as String?,
));
}
}
/// @nodoc
mixin _$StockPickingTypeModel {
int? get id;@JsonKey(name: 'display_name') String? get displayName;
/// Create a copy of StockPickingTypeModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$StockPickingTypeModelCopyWith<StockPickingTypeModel> get copyWith => _$StockPickingTypeModelCopyWithImpl<StockPickingTypeModel>(this as StockPickingTypeModel, _$identity);
/// Serializes this StockPickingTypeModel to a JSON map.
Map<String, dynamic> toJson();
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is StockPickingTypeModel&&(identical(other.id, id) || other.id == id)&&(identical(other.displayName, displayName) || other.displayName == displayName));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,id,displayName);
@override
String toString() {
return 'StockPickingTypeModel(id: $id, displayName: $displayName)';
}
}
/// @nodoc
abstract mixin class $StockPickingTypeModelCopyWith<$Res> {
factory $StockPickingTypeModelCopyWith(StockPickingTypeModel value, $Res Function(StockPickingTypeModel) _then) = _$StockPickingTypeModelCopyWithImpl;
@useResult
$Res call({
int? id,@JsonKey(name: 'display_name') String? displayName
});
}
/// @nodoc
class _$StockPickingTypeModelCopyWithImpl<$Res>
implements $StockPickingTypeModelCopyWith<$Res> {
_$StockPickingTypeModelCopyWithImpl(this._self, this._then);
final StockPickingTypeModel _self;
final $Res Function(StockPickingTypeModel) _then;
/// Create a copy of StockPickingTypeModel
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? displayName = freezed,}) {
return _then(_self.copyWith(
id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
as int?,displayName: freezed == displayName ? _self.displayName : displayName // ignore: cast_nullable_to_non_nullable
as String?,
));
}
}
/// @nodoc
@JsonSerializable()
class _StockPickingTypeModel implements StockPickingTypeModel {
const _StockPickingTypeModel({this.id, @JsonKey(name: 'display_name') this.displayName});
factory _StockPickingTypeModel.fromJson(Map<String, dynamic> json) => _$StockPickingTypeModelFromJson(json);
@override final int? id;
@override@JsonKey(name: 'display_name') final String? displayName;
/// Create a copy of StockPickingTypeModel
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$StockPickingTypeModelCopyWith<_StockPickingTypeModel> get copyWith => __$StockPickingTypeModelCopyWithImpl<_StockPickingTypeModel>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$StockPickingTypeModelToJson(this, );
}
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is _StockPickingTypeModel&&(identical(other.id, id) || other.id == id)&&(identical(other.displayName, displayName) || other.displayName == displayName));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,id,displayName);
@override
String toString() {
return 'StockPickingTypeModel(id: $id, displayName: $displayName)';
}
}
/// @nodoc
abstract mixin class _$StockPickingTypeModelCopyWith<$Res> implements $StockPickingTypeModelCopyWith<$Res> {
factory _$StockPickingTypeModelCopyWith(_StockPickingTypeModel value, $Res Function(_StockPickingTypeModel) _then) = __$StockPickingTypeModelCopyWithImpl;
@override @useResult
$Res call({
int? id,@JsonKey(name: 'display_name') String? displayName
});
}
/// @nodoc
class __$StockPickingTypeModelCopyWithImpl<$Res>
implements _$StockPickingTypeModelCopyWith<$Res> {
__$StockPickingTypeModelCopyWithImpl(this._self, this._then);
final _StockPickingTypeModel _self;
final $Res Function(_StockPickingTypeModel) _then;
/// Create a copy of StockPickingTypeModel
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? displayName = freezed,}) {
return _then(_StockPickingTypeModel(
id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
as int?,displayName: freezed == displayName ? _self.displayName : displayName // ignore: cast_nullable_to_non_nullable
as String?,
));
}
}
// dart format on