barcode_scanner/lib/backend/schema/stock_picking/stock_picking_model.freezed.dart
mandreshope 40ef71a28b refactor: Standardizes data model naming convention
Renames `AuthStruct` to `AuthModel` and `ProductStruct` to `ProductModel` to align with a consistent data model naming convention.

Updates all relevant imports, type declarations, and method signatures across the application to reflect these changes, improving codebase clarity and maintainability.

Includes minor code style improvements and refactorings in other components.
2025-07-29 10:09:03 +03:00

827 lines
39 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 _$StockPickingResponse {
String get jsonrpc; int get id; StockPickingResult get result;
/// Create a copy of StockPickingResponse
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$StockPickingResponseCopyWith<StockPickingResponse> get copyWith => _$StockPickingResponseCopyWithImpl<StockPickingResponse>(this as StockPickingResponse, _$identity);
/// Serializes this StockPickingResponse to a JSON map.
Map<String, dynamic> toJson();
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is StockPickingResponse&&(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 'StockPickingResponse(jsonrpc: $jsonrpc, id: $id, result: $result)';
}
}
/// @nodoc
abstract mixin class $StockPickingResponseCopyWith<$Res> {
factory $StockPickingResponseCopyWith(StockPickingResponse value, $Res Function(StockPickingResponse) _then) = _$StockPickingResponseCopyWithImpl;
@useResult
$Res call({
String jsonrpc, int id, StockPickingResult result
});
$StockPickingResultCopyWith<$Res> get result;
}
/// @nodoc
class _$StockPickingResponseCopyWithImpl<$Res>
implements $StockPickingResponseCopyWith<$Res> {
_$StockPickingResponseCopyWithImpl(this._self, this._then);
final StockPickingResponse _self;
final $Res Function(StockPickingResponse) _then;
/// Create a copy of StockPickingResponse
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? jsonrpc = null,Object? id = null,Object? result = null,}) {
return _then(_self.copyWith(
jsonrpc: null == jsonrpc ? _self.jsonrpc : jsonrpc // ignore: cast_nullable_to_non_nullable
as String,id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
as int,result: null == result ? _self.result : result // ignore: cast_nullable_to_non_nullable
as StockPickingResult,
));
}
/// Create a copy of StockPickingResponse
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$StockPickingResultCopyWith<$Res> get result {
return $StockPickingResultCopyWith<$Res>(_self.result, (value) {
return _then(_self.copyWith(result: value));
});
}
}
/// @nodoc
@JsonSerializable()
class _StockPickingResponse implements StockPickingResponse {
const _StockPickingResponse({required this.jsonrpc, required this.id, required this.result});
factory _StockPickingResponse.fromJson(Map<String, dynamic> json) => _$StockPickingResponseFromJson(json);
@override final String jsonrpc;
@override final int id;
@override final StockPickingResult result;
/// Create a copy of StockPickingResponse
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$StockPickingResponseCopyWith<_StockPickingResponse> get copyWith => __$StockPickingResponseCopyWithImpl<_StockPickingResponse>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$StockPickingResponseToJson(this, );
}
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is _StockPickingResponse&&(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 'StockPickingResponse(jsonrpc: $jsonrpc, id: $id, result: $result)';
}
}
/// @nodoc
abstract mixin class _$StockPickingResponseCopyWith<$Res> implements $StockPickingResponseCopyWith<$Res> {
factory _$StockPickingResponseCopyWith(_StockPickingResponse value, $Res Function(_StockPickingResponse) _then) = __$StockPickingResponseCopyWithImpl;
@override @useResult
$Res call({
String jsonrpc, int id, StockPickingResult result
});
@override $StockPickingResultCopyWith<$Res> get result;
}
/// @nodoc
class __$StockPickingResponseCopyWithImpl<$Res>
implements _$StockPickingResponseCopyWith<$Res> {
__$StockPickingResponseCopyWithImpl(this._self, this._then);
final _StockPickingResponse _self;
final $Res Function(_StockPickingResponse) _then;
/// Create a copy of StockPickingResponse
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? jsonrpc = null,Object? id = null,Object? result = null,}) {
return _then(_StockPickingResponse(
jsonrpc: null == jsonrpc ? _self.jsonrpc : jsonrpc // ignore: cast_nullable_to_non_nullable
as String,id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
as int,result: null == result ? _self.result : result // ignore: cast_nullable_to_non_nullable
as StockPickingResult,
));
}
/// Create a copy of StockPickingResponse
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$StockPickingResultCopyWith<$Res> get result {
return $StockPickingResultCopyWith<$Res>(_self.result, (value) {
return _then(_self.copyWith(result: value));
});
}
}
/// @nodoc
mixin _$StockPickingResult {
int get length; List<StockPickingRecord> get records;
/// Create a copy of StockPickingResult
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$StockPickingResultCopyWith<StockPickingResult> get copyWith => _$StockPickingResultCopyWithImpl<StockPickingResult>(this as StockPickingResult, _$identity);
/// Serializes this StockPickingResult to a JSON map.
Map<String, dynamic> toJson();
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is StockPickingResult&&(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 'StockPickingResult(length: $length, records: $records)';
}
}
/// @nodoc
abstract mixin class $StockPickingResultCopyWith<$Res> {
factory $StockPickingResultCopyWith(StockPickingResult value, $Res Function(StockPickingResult) _then) = _$StockPickingResultCopyWithImpl;
@useResult
$Res call({
int length, List<StockPickingRecord> records
});
}
/// @nodoc
class _$StockPickingResultCopyWithImpl<$Res>
implements $StockPickingResultCopyWith<$Res> {
_$StockPickingResultCopyWithImpl(this._self, this._then);
final StockPickingResult _self;
final $Res Function(StockPickingResult) _then;
/// Create a copy of StockPickingResult
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? length = null,Object? records = null,}) {
return _then(_self.copyWith(
length: null == length ? _self.length : length // ignore: cast_nullable_to_non_nullable
as int,records: null == records ? _self.records : records // ignore: cast_nullable_to_non_nullable
as List<StockPickingRecord>,
));
}
}
/// @nodoc
@JsonSerializable()
class _StockPickingResult implements StockPickingResult {
const _StockPickingResult({required this.length, required final List<StockPickingRecord> records}): _records = records;
factory _StockPickingResult.fromJson(Map<String, dynamic> json) => _$StockPickingResultFromJson(json);
@override final int length;
final List<StockPickingRecord> _records;
@override List<StockPickingRecord> get records {
if (_records is EqualUnmodifiableListView) return _records;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_records);
}
/// Create a copy of StockPickingResult
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$StockPickingResultCopyWith<_StockPickingResult> get copyWith => __$StockPickingResultCopyWithImpl<_StockPickingResult>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$StockPickingResultToJson(this, );
}
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is _StockPickingResult&&(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 'StockPickingResult(length: $length, records: $records)';
}
}
/// @nodoc
abstract mixin class _$StockPickingResultCopyWith<$Res> implements $StockPickingResultCopyWith<$Res> {
factory _$StockPickingResultCopyWith(_StockPickingResult value, $Res Function(_StockPickingResult) _then) = __$StockPickingResultCopyWithImpl;
@override @useResult
$Res call({
int length, List<StockPickingRecord> records
});
}
/// @nodoc
class __$StockPickingResultCopyWithImpl<$Res>
implements _$StockPickingResultCopyWith<$Res> {
__$StockPickingResultCopyWithImpl(this._self, this._then);
final _StockPickingResult _self;
final $Res Function(_StockPickingResult) _then;
/// Create a copy of StockPickingResult
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? length = null,Object? records = null,}) {
return _then(_StockPickingResult(
length: null == length ? _self.length : length // ignore: cast_nullable_to_non_nullable
as int,records: null == records ? _self._records : records // ignore: cast_nullable_to_non_nullable
as List<StockPickingRecord>,
));
}
}
/// @nodoc
mixin _$StockPickingRecord {
int get id;@JsonKey(name: 'company_id') IdOnly get companyId; String get priority; String get name;@JsonKey(name: 'partner_id') DisplayNameId get partnerId;@JsonKey(name: 'user_id') dynamic get userId;// peut être false ou null
@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; String get origin;@JsonKey(name: 'backorder_id') dynamic get backorderId;@JsonKey(name: 'picking_type_id') DisplayNameId get pickingTypeId; 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 StockPickingRecord
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$StockPickingRecordCopyWith<StockPickingRecord> get copyWith => _$StockPickingRecordCopyWithImpl<StockPickingRecord>(this as StockPickingRecord, _$identity);
/// Serializes this StockPickingRecord to a JSON map.
Map<String, dynamic> toJson();
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is StockPickingRecord&&(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)&&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,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 'StockPickingRecord(id: $id, companyId: $companyId, priority: $priority, name: $name, partnerId: $partnerId, 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 $StockPickingRecordCopyWith<$Res> {
factory $StockPickingRecordCopyWith(StockPickingRecord value, $Res Function(StockPickingRecord) _then) = _$StockPickingRecordCopyWithImpl;
@useResult
$Res call({
int id,@JsonKey(name: 'company_id') IdOnly companyId, String priority, String name,@JsonKey(name: 'partner_id') DisplayNameId partnerId,@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, String origin,@JsonKey(name: 'backorder_id') dynamic backorderId,@JsonKey(name: 'picking_type_id') DisplayNameId pickingTypeId, String state,@JsonKey(name: 'activity_exception_decoration') dynamic activityExceptionDecoration,@JsonKey(name: 'activity_exception_icon') dynamic activityExceptionIcon,@JsonKey(name: 'json_popover') dynamic jsonPopover
});
$IdOnlyCopyWith<$Res> get companyId;$DisplayNameIdCopyWith<$Res> get partnerId;$DisplayNameIdCopyWith<$Res> get pickingTypeId;
}
/// @nodoc
class _$StockPickingRecordCopyWithImpl<$Res>
implements $StockPickingRecordCopyWith<$Res> {
_$StockPickingRecordCopyWithImpl(this._self, this._then);
final StockPickingRecord _self;
final $Res Function(StockPickingRecord) _then;
/// Create a copy of StockPickingRecord
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? id = null,Object? companyId = null,Object? priority = null,Object? name = null,Object? partnerId = null,Object? userId = freezed,Object? scheduledDate = null,Object? pickingTypeCode = null,Object? productsAvailabilityState = freezed,Object? productsAvailability = freezed,Object? dateDeadline = null,Object? dateDone = freezed,Object? origin = null,Object? backorderId = freezed,Object? pickingTypeId = null,Object? state = null,Object? activityExceptionDecoration = freezed,Object? activityExceptionIcon = freezed,Object? jsonPopover = freezed,}) {
return _then(_self.copyWith(
id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
as int,companyId: null == companyId ? _self.companyId : companyId // ignore: cast_nullable_to_non_nullable
as IdOnly,priority: null == priority ? _self.priority : priority // ignore: cast_nullable_to_non_nullable
as String,name: null == name ? _self.name : name // ignore: cast_nullable_to_non_nullable
as String,partnerId: null == partnerId ? _self.partnerId : partnerId // ignore: cast_nullable_to_non_nullable
as DisplayNameId,userId: freezed == userId ? _self.userId : userId // ignore: cast_nullable_to_non_nullable
as dynamic,scheduledDate: null == scheduledDate ? _self.scheduledDate : scheduledDate // ignore: cast_nullable_to_non_nullable
as String,pickingTypeCode: null == 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: null == 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: null == 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: null == pickingTypeId ? _self.pickingTypeId : pickingTypeId // ignore: cast_nullable_to_non_nullable
as DisplayNameId,state: null == 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 StockPickingRecord
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$IdOnlyCopyWith<$Res> get companyId {
return $IdOnlyCopyWith<$Res>(_self.companyId, (value) {
return _then(_self.copyWith(companyId: value));
});
}/// Create a copy of StockPickingRecord
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$DisplayNameIdCopyWith<$Res> get partnerId {
return $DisplayNameIdCopyWith<$Res>(_self.partnerId, (value) {
return _then(_self.copyWith(partnerId: value));
});
}/// Create a copy of StockPickingRecord
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$DisplayNameIdCopyWith<$Res> get pickingTypeId {
return $DisplayNameIdCopyWith<$Res>(_self.pickingTypeId, (value) {
return _then(_self.copyWith(pickingTypeId: value));
});
}
}
/// @nodoc
@JsonSerializable()
class _StockPickingRecord implements StockPickingRecord {
const _StockPickingRecord({required this.id, @JsonKey(name: 'company_id') required this.companyId, required this.priority, required this.name, @JsonKey(name: 'partner_id') required this.partnerId, @JsonKey(name: 'user_id') this.userId, @JsonKey(name: 'scheduled_date') required this.scheduledDate, @JsonKey(name: 'picking_type_code') required this.pickingTypeCode, @JsonKey(name: 'products_availability_state') this.productsAvailabilityState, @JsonKey(name: 'products_availability') this.productsAvailability, @JsonKey(name: 'date_deadline') required this.dateDeadline, @JsonKey(name: 'date_done') this.dateDone, required this.origin, @JsonKey(name: 'backorder_id') this.backorderId, @JsonKey(name: 'picking_type_id') required this.pickingTypeId, required this.state, @JsonKey(name: 'activity_exception_decoration') this.activityExceptionDecoration, @JsonKey(name: 'activity_exception_icon') this.activityExceptionIcon, @JsonKey(name: 'json_popover') this.jsonPopover});
factory _StockPickingRecord.fromJson(Map<String, dynamic> json) => _$StockPickingRecordFromJson(json);
@override final int id;
@override@JsonKey(name: 'company_id') final IdOnly companyId;
@override final String priority;
@override final String name;
@override@JsonKey(name: 'partner_id') final DisplayNameId partnerId;
@override@JsonKey(name: 'user_id') final dynamic userId;
// peut être false ou null
@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 final String origin;
@override@JsonKey(name: 'backorder_id') final dynamic backorderId;
@override@JsonKey(name: 'picking_type_id') final DisplayNameId pickingTypeId;
@override 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 StockPickingRecord
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$StockPickingRecordCopyWith<_StockPickingRecord> get copyWith => __$StockPickingRecordCopyWithImpl<_StockPickingRecord>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$StockPickingRecordToJson(this, );
}
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is _StockPickingRecord&&(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)&&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,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 'StockPickingRecord(id: $id, companyId: $companyId, priority: $priority, name: $name, partnerId: $partnerId, 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 _$StockPickingRecordCopyWith<$Res> implements $StockPickingRecordCopyWith<$Res> {
factory _$StockPickingRecordCopyWith(_StockPickingRecord value, $Res Function(_StockPickingRecord) _then) = __$StockPickingRecordCopyWithImpl;
@override @useResult
$Res call({
int id,@JsonKey(name: 'company_id') IdOnly companyId, String priority, String name,@JsonKey(name: 'partner_id') DisplayNameId partnerId,@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, String origin,@JsonKey(name: 'backorder_id') dynamic backorderId,@JsonKey(name: 'picking_type_id') DisplayNameId pickingTypeId, String state,@JsonKey(name: 'activity_exception_decoration') dynamic activityExceptionDecoration,@JsonKey(name: 'activity_exception_icon') dynamic activityExceptionIcon,@JsonKey(name: 'json_popover') dynamic jsonPopover
});
@override $IdOnlyCopyWith<$Res> get companyId;@override $DisplayNameIdCopyWith<$Res> get partnerId;@override $DisplayNameIdCopyWith<$Res> get pickingTypeId;
}
/// @nodoc
class __$StockPickingRecordCopyWithImpl<$Res>
implements _$StockPickingRecordCopyWith<$Res> {
__$StockPickingRecordCopyWithImpl(this._self, this._then);
final _StockPickingRecord _self;
final $Res Function(_StockPickingRecord) _then;
/// Create a copy of StockPickingRecord
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? id = null,Object? companyId = null,Object? priority = null,Object? name = null,Object? partnerId = null,Object? userId = freezed,Object? scheduledDate = null,Object? pickingTypeCode = null,Object? productsAvailabilityState = freezed,Object? productsAvailability = freezed,Object? dateDeadline = null,Object? dateDone = freezed,Object? origin = null,Object? backorderId = freezed,Object? pickingTypeId = null,Object? state = null,Object? activityExceptionDecoration = freezed,Object? activityExceptionIcon = freezed,Object? jsonPopover = freezed,}) {
return _then(_StockPickingRecord(
id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
as int,companyId: null == companyId ? _self.companyId : companyId // ignore: cast_nullable_to_non_nullable
as IdOnly,priority: null == priority ? _self.priority : priority // ignore: cast_nullable_to_non_nullable
as String,name: null == name ? _self.name : name // ignore: cast_nullable_to_non_nullable
as String,partnerId: null == partnerId ? _self.partnerId : partnerId // ignore: cast_nullable_to_non_nullable
as DisplayNameId,userId: freezed == userId ? _self.userId : userId // ignore: cast_nullable_to_non_nullable
as dynamic,scheduledDate: null == scheduledDate ? _self.scheduledDate : scheduledDate // ignore: cast_nullable_to_non_nullable
as String,pickingTypeCode: null == 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: null == 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: null == 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: null == pickingTypeId ? _self.pickingTypeId : pickingTypeId // ignore: cast_nullable_to_non_nullable
as DisplayNameId,state: null == 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 StockPickingRecord
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$IdOnlyCopyWith<$Res> get companyId {
return $IdOnlyCopyWith<$Res>(_self.companyId, (value) {
return _then(_self.copyWith(companyId: value));
});
}/// Create a copy of StockPickingRecord
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$DisplayNameIdCopyWith<$Res> get partnerId {
return $DisplayNameIdCopyWith<$Res>(_self.partnerId, (value) {
return _then(_self.copyWith(partnerId: value));
});
}/// Create a copy of StockPickingRecord
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$DisplayNameIdCopyWith<$Res> get pickingTypeId {
return $DisplayNameIdCopyWith<$Res>(_self.pickingTypeId, (value) {
return _then(_self.copyWith(pickingTypeId: value));
});
}
}
/// @nodoc
mixin _$IdOnly {
int get id;
/// Create a copy of IdOnly
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$IdOnlyCopyWith<IdOnly> get copyWith => _$IdOnlyCopyWithImpl<IdOnly>(this as IdOnly, _$identity);
/// Serializes this IdOnly to a JSON map.
Map<String, dynamic> toJson();
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is IdOnly&&(identical(other.id, id) || other.id == id));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,id);
@override
String toString() {
return 'IdOnly(id: $id)';
}
}
/// @nodoc
abstract mixin class $IdOnlyCopyWith<$Res> {
factory $IdOnlyCopyWith(IdOnly value, $Res Function(IdOnly) _then) = _$IdOnlyCopyWithImpl;
@useResult
$Res call({
int id
});
}
/// @nodoc
class _$IdOnlyCopyWithImpl<$Res>
implements $IdOnlyCopyWith<$Res> {
_$IdOnlyCopyWithImpl(this._self, this._then);
final IdOnly _self;
final $Res Function(IdOnly) _then;
/// Create a copy of IdOnly
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? id = null,}) {
return _then(_self.copyWith(
id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
as int,
));
}
}
/// @nodoc
@JsonSerializable()
class _IdOnly implements IdOnly {
const _IdOnly({required this.id});
factory _IdOnly.fromJson(Map<String, dynamic> json) => _$IdOnlyFromJson(json);
@override final int id;
/// Create a copy of IdOnly
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$IdOnlyCopyWith<_IdOnly> get copyWith => __$IdOnlyCopyWithImpl<_IdOnly>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$IdOnlyToJson(this, );
}
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is _IdOnly&&(identical(other.id, id) || other.id == id));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType,id);
@override
String toString() {
return 'IdOnly(id: $id)';
}
}
/// @nodoc
abstract mixin class _$IdOnlyCopyWith<$Res> implements $IdOnlyCopyWith<$Res> {
factory _$IdOnlyCopyWith(_IdOnly value, $Res Function(_IdOnly) _then) = __$IdOnlyCopyWithImpl;
@override @useResult
$Res call({
int id
});
}
/// @nodoc
class __$IdOnlyCopyWithImpl<$Res>
implements _$IdOnlyCopyWith<$Res> {
__$IdOnlyCopyWithImpl(this._self, this._then);
final _IdOnly _self;
final $Res Function(_IdOnly) _then;
/// Create a copy of IdOnly
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? id = null,}) {
return _then(_IdOnly(
id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
as int,
));
}
}
/// @nodoc
mixin _$DisplayNameId {
int get id;@JsonKey(name: 'display_name') String get displayName;
/// Create a copy of DisplayNameId
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
$DisplayNameIdCopyWith<DisplayNameId> get copyWith => _$DisplayNameIdCopyWithImpl<DisplayNameId>(this as DisplayNameId, _$identity);
/// Serializes this DisplayNameId to a JSON map.
Map<String, dynamic> toJson();
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is DisplayNameId&&(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 'DisplayNameId(id: $id, displayName: $displayName)';
}
}
/// @nodoc
abstract mixin class $DisplayNameIdCopyWith<$Res> {
factory $DisplayNameIdCopyWith(DisplayNameId value, $Res Function(DisplayNameId) _then) = _$DisplayNameIdCopyWithImpl;
@useResult
$Res call({
int id,@JsonKey(name: 'display_name') String displayName
});
}
/// @nodoc
class _$DisplayNameIdCopyWithImpl<$Res>
implements $DisplayNameIdCopyWith<$Res> {
_$DisplayNameIdCopyWithImpl(this._self, this._then);
final DisplayNameId _self;
final $Res Function(DisplayNameId) _then;
/// Create a copy of DisplayNameId
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline') @override $Res call({Object? id = null,Object? displayName = null,}) {
return _then(_self.copyWith(
id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
as int,displayName: null == displayName ? _self.displayName : displayName // ignore: cast_nullable_to_non_nullable
as String,
));
}
}
/// @nodoc
@JsonSerializable()
class _DisplayNameId implements DisplayNameId {
const _DisplayNameId({required this.id, @JsonKey(name: 'display_name') required this.displayName});
factory _DisplayNameId.fromJson(Map<String, dynamic> json) => _$DisplayNameIdFromJson(json);
@override final int id;
@override@JsonKey(name: 'display_name') final String displayName;
/// Create a copy of DisplayNameId
/// with the given fields replaced by the non-null parameter values.
@override @JsonKey(includeFromJson: false, includeToJson: false)
@pragma('vm:prefer-inline')
_$DisplayNameIdCopyWith<_DisplayNameId> get copyWith => __$DisplayNameIdCopyWithImpl<_DisplayNameId>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$DisplayNameIdToJson(this, );
}
@override
bool operator ==(Object other) {
return identical(this, other) || (other.runtimeType == runtimeType&&other is _DisplayNameId&&(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 'DisplayNameId(id: $id, displayName: $displayName)';
}
}
/// @nodoc
abstract mixin class _$DisplayNameIdCopyWith<$Res> implements $DisplayNameIdCopyWith<$Res> {
factory _$DisplayNameIdCopyWith(_DisplayNameId value, $Res Function(_DisplayNameId) _then) = __$DisplayNameIdCopyWithImpl;
@override @useResult
$Res call({
int id,@JsonKey(name: 'display_name') String displayName
});
}
/// @nodoc
class __$DisplayNameIdCopyWithImpl<$Res>
implements _$DisplayNameIdCopyWith<$Res> {
__$DisplayNameIdCopyWithImpl(this._self, this._then);
final _DisplayNameId _self;
final $Res Function(_DisplayNameId) _then;
/// Create a copy of DisplayNameId
/// with the given fields replaced by the non-null parameter values.
@override @pragma('vm:prefer-inline') $Res call({Object? id = null,Object? displayName = null,}) {
return _then(_DisplayNameId(
id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
as int,displayName: null == displayName ? _self.displayName : displayName // ignore: cast_nullable_to_non_nullable
as String,
));
}
}
// dart format on