
Refactors the product data model to primarily store `id`, `barcode`, and `displayName`. This simplifies the product structure, focusing on essential attributes for inventory and scanning operations. Optimizes API calls for stock picking to fetch more relevant product details. Unnecessary fields are removed, and specific product attributes like `barcode` and `quantity` are now explicitly requested for stock moves. Moves `StockPickingRecordModel` to its own dedicated file for improved code organization and maintainability. Updates all affected UI components and scanner logic to align with the revised product model.
864 lines
29 KiB
Dart
864 lines
29 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 _$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
|