Files
superport/lib/data/models/warehouse/warehouse_dto.freezed.dart

1995 lines
67 KiB
Dart

// 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 'warehouse_dto.dart';
// **************************************************************************
// FreezedGenerator
// **************************************************************************
T _$identity<T>(T value) => value;
final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
WarehouseDto _$WarehouseDtoFromJson(Map<String, dynamic> json) {
return _WarehouseDto.fromJson(json);
}
/// @nodoc
mixin _$WarehouseDto {
@JsonKey(name: 'id')
int? get id => throw _privateConstructorUsedError;
@JsonKey(name: 'name')
String get name => throw _privateConstructorUsedError;
@JsonKey(name: 'zipcodes_zipcode')
String? get zipcodesZipcode => throw _privateConstructorUsedError;
@JsonKey(name: 'zipcode_address')
String? get zipcodeAddress => throw _privateConstructorUsedError;
@JsonKey(name: 'remark')
String? get remark => throw _privateConstructorUsedError;
@JsonKey(name: 'is_deleted')
bool get isDeleted => throw _privateConstructorUsedError;
@JsonKey(name: 'registered_at')
DateTime? get registeredAt => throw _privateConstructorUsedError;
@JsonKey(name: 'updated_at')
DateTime? get updatedAt =>
throw _privateConstructorUsedError; // Nested data (optional, populated in GET requests)
@JsonKey(name: 'zipcode')
ZipcodeDto? get zipcode => throw _privateConstructorUsedError;
/// Serializes this WarehouseDto to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
/// Create a copy of WarehouseDto
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$WarehouseDtoCopyWith<WarehouseDto> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $WarehouseDtoCopyWith<$Res> {
factory $WarehouseDtoCopyWith(
WarehouseDto value, $Res Function(WarehouseDto) then) =
_$WarehouseDtoCopyWithImpl<$Res, WarehouseDto>;
@useResult
$Res call(
{@JsonKey(name: 'id') int? id,
@JsonKey(name: 'name') String name,
@JsonKey(name: 'zipcodes_zipcode') String? zipcodesZipcode,
@JsonKey(name: 'zipcode_address') String? zipcodeAddress,
@JsonKey(name: 'remark') String? remark,
@JsonKey(name: 'is_deleted') bool isDeleted,
@JsonKey(name: 'registered_at') DateTime? registeredAt,
@JsonKey(name: 'updated_at') DateTime? updatedAt,
@JsonKey(name: 'zipcode') ZipcodeDto? zipcode});
$ZipcodeDtoCopyWith<$Res>? get zipcode;
}
/// @nodoc
class _$WarehouseDtoCopyWithImpl<$Res, $Val extends WarehouseDto>
implements $WarehouseDtoCopyWith<$Res> {
_$WarehouseDtoCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of WarehouseDto
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? id = freezed,
Object? name = null,
Object? zipcodesZipcode = freezed,
Object? zipcodeAddress = freezed,
Object? remark = freezed,
Object? isDeleted = null,
Object? registeredAt = freezed,
Object? updatedAt = freezed,
Object? zipcode = freezed,
}) {
return _then(_value.copyWith(
id: freezed == id
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as int?,
name: null == name
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String,
zipcodesZipcode: freezed == zipcodesZipcode
? _value.zipcodesZipcode
: zipcodesZipcode // ignore: cast_nullable_to_non_nullable
as String?,
zipcodeAddress: freezed == zipcodeAddress
? _value.zipcodeAddress
: zipcodeAddress // ignore: cast_nullable_to_non_nullable
as String?,
remark: freezed == remark
? _value.remark
: remark // ignore: cast_nullable_to_non_nullable
as String?,
isDeleted: null == isDeleted
? _value.isDeleted
: isDeleted // ignore: cast_nullable_to_non_nullable
as bool,
registeredAt: freezed == registeredAt
? _value.registeredAt
: registeredAt // ignore: cast_nullable_to_non_nullable
as DateTime?,
updatedAt: freezed == updatedAt
? _value.updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as DateTime?,
zipcode: freezed == zipcode
? _value.zipcode
: zipcode // ignore: cast_nullable_to_non_nullable
as ZipcodeDto?,
) as $Val);
}
/// Create a copy of WarehouseDto
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$ZipcodeDtoCopyWith<$Res>? get zipcode {
if (_value.zipcode == null) {
return null;
}
return $ZipcodeDtoCopyWith<$Res>(_value.zipcode!, (value) {
return _then(_value.copyWith(zipcode: value) as $Val);
});
}
}
/// @nodoc
abstract class _$$WarehouseDtoImplCopyWith<$Res>
implements $WarehouseDtoCopyWith<$Res> {
factory _$$WarehouseDtoImplCopyWith(
_$WarehouseDtoImpl value, $Res Function(_$WarehouseDtoImpl) then) =
__$$WarehouseDtoImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
{@JsonKey(name: 'id') int? id,
@JsonKey(name: 'name') String name,
@JsonKey(name: 'zipcodes_zipcode') String? zipcodesZipcode,
@JsonKey(name: 'zipcode_address') String? zipcodeAddress,
@JsonKey(name: 'remark') String? remark,
@JsonKey(name: 'is_deleted') bool isDeleted,
@JsonKey(name: 'registered_at') DateTime? registeredAt,
@JsonKey(name: 'updated_at') DateTime? updatedAt,
@JsonKey(name: 'zipcode') ZipcodeDto? zipcode});
@override
$ZipcodeDtoCopyWith<$Res>? get zipcode;
}
/// @nodoc
class __$$WarehouseDtoImplCopyWithImpl<$Res>
extends _$WarehouseDtoCopyWithImpl<$Res, _$WarehouseDtoImpl>
implements _$$WarehouseDtoImplCopyWith<$Res> {
__$$WarehouseDtoImplCopyWithImpl(
_$WarehouseDtoImpl _value, $Res Function(_$WarehouseDtoImpl) _then)
: super(_value, _then);
/// Create a copy of WarehouseDto
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? id = freezed,
Object? name = null,
Object? zipcodesZipcode = freezed,
Object? zipcodeAddress = freezed,
Object? remark = freezed,
Object? isDeleted = null,
Object? registeredAt = freezed,
Object? updatedAt = freezed,
Object? zipcode = freezed,
}) {
return _then(_$WarehouseDtoImpl(
id: freezed == id
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as int?,
name: null == name
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String,
zipcodesZipcode: freezed == zipcodesZipcode
? _value.zipcodesZipcode
: zipcodesZipcode // ignore: cast_nullable_to_non_nullable
as String?,
zipcodeAddress: freezed == zipcodeAddress
? _value.zipcodeAddress
: zipcodeAddress // ignore: cast_nullable_to_non_nullable
as String?,
remark: freezed == remark
? _value.remark
: remark // ignore: cast_nullable_to_non_nullable
as String?,
isDeleted: null == isDeleted
? _value.isDeleted
: isDeleted // ignore: cast_nullable_to_non_nullable
as bool,
registeredAt: freezed == registeredAt
? _value.registeredAt
: registeredAt // ignore: cast_nullable_to_non_nullable
as DateTime?,
updatedAt: freezed == updatedAt
? _value.updatedAt
: updatedAt // ignore: cast_nullable_to_non_nullable
as DateTime?,
zipcode: freezed == zipcode
? _value.zipcode
: zipcode // ignore: cast_nullable_to_non_nullable
as ZipcodeDto?,
));
}
}
/// @nodoc
@JsonSerializable()
class _$WarehouseDtoImpl extends _WarehouseDto {
const _$WarehouseDtoImpl(
{@JsonKey(name: 'id') this.id,
@JsonKey(name: 'name') required this.name,
@JsonKey(name: 'zipcodes_zipcode') this.zipcodesZipcode,
@JsonKey(name: 'zipcode_address') this.zipcodeAddress,
@JsonKey(name: 'remark') this.remark,
@JsonKey(name: 'is_deleted') this.isDeleted = false,
@JsonKey(name: 'registered_at') this.registeredAt,
@JsonKey(name: 'updated_at') this.updatedAt,
@JsonKey(name: 'zipcode') this.zipcode})
: super._();
factory _$WarehouseDtoImpl.fromJson(Map<String, dynamic> json) =>
_$$WarehouseDtoImplFromJson(json);
@override
@JsonKey(name: 'id')
final int? id;
@override
@JsonKey(name: 'name')
final String name;
@override
@JsonKey(name: 'zipcodes_zipcode')
final String? zipcodesZipcode;
@override
@JsonKey(name: 'zipcode_address')
final String? zipcodeAddress;
@override
@JsonKey(name: 'remark')
final String? remark;
@override
@JsonKey(name: 'is_deleted')
final bool isDeleted;
@override
@JsonKey(name: 'registered_at')
final DateTime? registeredAt;
@override
@JsonKey(name: 'updated_at')
final DateTime? updatedAt;
// Nested data (optional, populated in GET requests)
@override
@JsonKey(name: 'zipcode')
final ZipcodeDto? zipcode;
@override
String toString() {
return 'WarehouseDto(id: $id, name: $name, zipcodesZipcode: $zipcodesZipcode, zipcodeAddress: $zipcodeAddress, remark: $remark, isDeleted: $isDeleted, registeredAt: $registeredAt, updatedAt: $updatedAt, zipcode: $zipcode)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$WarehouseDtoImpl &&
(identical(other.id, id) || other.id == id) &&
(identical(other.name, name) || other.name == name) &&
(identical(other.zipcodesZipcode, zipcodesZipcode) ||
other.zipcodesZipcode == zipcodesZipcode) &&
(identical(other.zipcodeAddress, zipcodeAddress) ||
other.zipcodeAddress == zipcodeAddress) &&
(identical(other.remark, remark) || other.remark == remark) &&
(identical(other.isDeleted, isDeleted) ||
other.isDeleted == isDeleted) &&
(identical(other.registeredAt, registeredAt) ||
other.registeredAt == registeredAt) &&
(identical(other.updatedAt, updatedAt) ||
other.updatedAt == updatedAt) &&
(identical(other.zipcode, zipcode) || other.zipcode == zipcode));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType, id, name, zipcodesZipcode,
zipcodeAddress, remark, isDeleted, registeredAt, updatedAt, zipcode);
/// Create a copy of WarehouseDto
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$WarehouseDtoImplCopyWith<_$WarehouseDtoImpl> get copyWith =>
__$$WarehouseDtoImplCopyWithImpl<_$WarehouseDtoImpl>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$WarehouseDtoImplToJson(
this,
);
}
}
abstract class _WarehouseDto extends WarehouseDto {
const factory _WarehouseDto(
{@JsonKey(name: 'id') final int? id,
@JsonKey(name: 'name') required final String name,
@JsonKey(name: 'zipcodes_zipcode') final String? zipcodesZipcode,
@JsonKey(name: 'zipcode_address') final String? zipcodeAddress,
@JsonKey(name: 'remark') final String? remark,
@JsonKey(name: 'is_deleted') final bool isDeleted,
@JsonKey(name: 'registered_at') final DateTime? registeredAt,
@JsonKey(name: 'updated_at') final DateTime? updatedAt,
@JsonKey(name: 'zipcode') final ZipcodeDto? zipcode}) =
_$WarehouseDtoImpl;
const _WarehouseDto._() : super._();
factory _WarehouseDto.fromJson(Map<String, dynamic> json) =
_$WarehouseDtoImpl.fromJson;
@override
@JsonKey(name: 'id')
int? get id;
@override
@JsonKey(name: 'name')
String get name;
@override
@JsonKey(name: 'zipcodes_zipcode')
String? get zipcodesZipcode;
@override
@JsonKey(name: 'zipcode_address')
String? get zipcodeAddress;
@override
@JsonKey(name: 'remark')
String? get remark;
@override
@JsonKey(name: 'is_deleted')
bool get isDeleted;
@override
@JsonKey(name: 'registered_at')
DateTime? get registeredAt;
@override
@JsonKey(name: 'updated_at')
DateTime? get updatedAt; // Nested data (optional, populated in GET requests)
@override
@JsonKey(name: 'zipcode')
ZipcodeDto? get zipcode;
/// Create a copy of WarehouseDto
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$WarehouseDtoImplCopyWith<_$WarehouseDtoImpl> get copyWith =>
throw _privateConstructorUsedError;
}
WarehouseRequestDto _$WarehouseRequestDtoFromJson(Map<String, dynamic> json) {
return _WarehouseRequestDto.fromJson(json);
}
/// @nodoc
mixin _$WarehouseRequestDto {
@JsonKey(name: 'Name')
String get name => throw _privateConstructorUsedError;
@JsonKey(name: 'zipcodes_zipcode')
String? get zipcodesZipcode => throw _privateConstructorUsedError;
@JsonKey(name: 'Remark')
String? get remark => throw _privateConstructorUsedError;
/// Serializes this WarehouseRequestDto to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
/// Create a copy of WarehouseRequestDto
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$WarehouseRequestDtoCopyWith<WarehouseRequestDto> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $WarehouseRequestDtoCopyWith<$Res> {
factory $WarehouseRequestDtoCopyWith(
WarehouseRequestDto value, $Res Function(WarehouseRequestDto) then) =
_$WarehouseRequestDtoCopyWithImpl<$Res, WarehouseRequestDto>;
@useResult
$Res call(
{@JsonKey(name: 'Name') String name,
@JsonKey(name: 'zipcodes_zipcode') String? zipcodesZipcode,
@JsonKey(name: 'Remark') String? remark});
}
/// @nodoc
class _$WarehouseRequestDtoCopyWithImpl<$Res, $Val extends WarehouseRequestDto>
implements $WarehouseRequestDtoCopyWith<$Res> {
_$WarehouseRequestDtoCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of WarehouseRequestDto
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? name = null,
Object? zipcodesZipcode = freezed,
Object? remark = freezed,
}) {
return _then(_value.copyWith(
name: null == name
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String,
zipcodesZipcode: freezed == zipcodesZipcode
? _value.zipcodesZipcode
: zipcodesZipcode // ignore: cast_nullable_to_non_nullable
as String?,
remark: freezed == remark
? _value.remark
: remark // ignore: cast_nullable_to_non_nullable
as String?,
) as $Val);
}
}
/// @nodoc
abstract class _$$WarehouseRequestDtoImplCopyWith<$Res>
implements $WarehouseRequestDtoCopyWith<$Res> {
factory _$$WarehouseRequestDtoImplCopyWith(_$WarehouseRequestDtoImpl value,
$Res Function(_$WarehouseRequestDtoImpl) then) =
__$$WarehouseRequestDtoImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
{@JsonKey(name: 'Name') String name,
@JsonKey(name: 'zipcodes_zipcode') String? zipcodesZipcode,
@JsonKey(name: 'Remark') String? remark});
}
/// @nodoc
class __$$WarehouseRequestDtoImplCopyWithImpl<$Res>
extends _$WarehouseRequestDtoCopyWithImpl<$Res, _$WarehouseRequestDtoImpl>
implements _$$WarehouseRequestDtoImplCopyWith<$Res> {
__$$WarehouseRequestDtoImplCopyWithImpl(_$WarehouseRequestDtoImpl _value,
$Res Function(_$WarehouseRequestDtoImpl) _then)
: super(_value, _then);
/// Create a copy of WarehouseRequestDto
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? name = null,
Object? zipcodesZipcode = freezed,
Object? remark = freezed,
}) {
return _then(_$WarehouseRequestDtoImpl(
name: null == name
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String,
zipcodesZipcode: freezed == zipcodesZipcode
? _value.zipcodesZipcode
: zipcodesZipcode // ignore: cast_nullable_to_non_nullable
as String?,
remark: freezed == remark
? _value.remark
: remark // ignore: cast_nullable_to_non_nullable
as String?,
));
}
}
/// @nodoc
@JsonSerializable()
class _$WarehouseRequestDtoImpl implements _WarehouseRequestDto {
const _$WarehouseRequestDtoImpl(
{@JsonKey(name: 'Name') required this.name,
@JsonKey(name: 'zipcodes_zipcode') this.zipcodesZipcode,
@JsonKey(name: 'Remark') this.remark});
factory _$WarehouseRequestDtoImpl.fromJson(Map<String, dynamic> json) =>
_$$WarehouseRequestDtoImplFromJson(json);
@override
@JsonKey(name: 'Name')
final String name;
@override
@JsonKey(name: 'zipcodes_zipcode')
final String? zipcodesZipcode;
@override
@JsonKey(name: 'Remark')
final String? remark;
@override
String toString() {
return 'WarehouseRequestDto(name: $name, zipcodesZipcode: $zipcodesZipcode, remark: $remark)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$WarehouseRequestDtoImpl &&
(identical(other.name, name) || other.name == name) &&
(identical(other.zipcodesZipcode, zipcodesZipcode) ||
other.zipcodesZipcode == zipcodesZipcode) &&
(identical(other.remark, remark) || other.remark == remark));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType, name, zipcodesZipcode, remark);
/// Create a copy of WarehouseRequestDto
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$WarehouseRequestDtoImplCopyWith<_$WarehouseRequestDtoImpl> get copyWith =>
__$$WarehouseRequestDtoImplCopyWithImpl<_$WarehouseRequestDtoImpl>(
this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$WarehouseRequestDtoImplToJson(
this,
);
}
}
abstract class _WarehouseRequestDto implements WarehouseRequestDto {
const factory _WarehouseRequestDto(
{@JsonKey(name: 'Name') required final String name,
@JsonKey(name: 'zipcodes_zipcode') final String? zipcodesZipcode,
@JsonKey(name: 'Remark') final String? remark}) =
_$WarehouseRequestDtoImpl;
factory _WarehouseRequestDto.fromJson(Map<String, dynamic> json) =
_$WarehouseRequestDtoImpl.fromJson;
@override
@JsonKey(name: 'Name')
String get name;
@override
@JsonKey(name: 'zipcodes_zipcode')
String? get zipcodesZipcode;
@override
@JsonKey(name: 'Remark')
String? get remark;
/// Create a copy of WarehouseRequestDto
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$WarehouseRequestDtoImplCopyWith<_$WarehouseRequestDtoImpl> get copyWith =>
throw _privateConstructorUsedError;
}
WarehouseUpdateRequestDto _$WarehouseUpdateRequestDtoFromJson(
Map<String, dynamic> json) {
return _WarehouseUpdateRequestDto.fromJson(json);
}
/// @nodoc
mixin _$WarehouseUpdateRequestDto {
@JsonKey(name: 'Name')
String? get name => throw _privateConstructorUsedError;
@JsonKey(name: 'zipcodes_zipcode')
String? get zipcodesZipcode => throw _privateConstructorUsedError;
@JsonKey(name: 'Remark')
String? get remark => throw _privateConstructorUsedError;
/// Serializes this WarehouseUpdateRequestDto to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
/// Create a copy of WarehouseUpdateRequestDto
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$WarehouseUpdateRequestDtoCopyWith<WarehouseUpdateRequestDto> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $WarehouseUpdateRequestDtoCopyWith<$Res> {
factory $WarehouseUpdateRequestDtoCopyWith(WarehouseUpdateRequestDto value,
$Res Function(WarehouseUpdateRequestDto) then) =
_$WarehouseUpdateRequestDtoCopyWithImpl<$Res, WarehouseUpdateRequestDto>;
@useResult
$Res call(
{@JsonKey(name: 'Name') String? name,
@JsonKey(name: 'zipcodes_zipcode') String? zipcodesZipcode,
@JsonKey(name: 'Remark') String? remark});
}
/// @nodoc
class _$WarehouseUpdateRequestDtoCopyWithImpl<$Res,
$Val extends WarehouseUpdateRequestDto>
implements $WarehouseUpdateRequestDtoCopyWith<$Res> {
_$WarehouseUpdateRequestDtoCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of WarehouseUpdateRequestDto
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? name = freezed,
Object? zipcodesZipcode = freezed,
Object? remark = freezed,
}) {
return _then(_value.copyWith(
name: freezed == name
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String?,
zipcodesZipcode: freezed == zipcodesZipcode
? _value.zipcodesZipcode
: zipcodesZipcode // ignore: cast_nullable_to_non_nullable
as String?,
remark: freezed == remark
? _value.remark
: remark // ignore: cast_nullable_to_non_nullable
as String?,
) as $Val);
}
}
/// @nodoc
abstract class _$$WarehouseUpdateRequestDtoImplCopyWith<$Res>
implements $WarehouseUpdateRequestDtoCopyWith<$Res> {
factory _$$WarehouseUpdateRequestDtoImplCopyWith(
_$WarehouseUpdateRequestDtoImpl value,
$Res Function(_$WarehouseUpdateRequestDtoImpl) then) =
__$$WarehouseUpdateRequestDtoImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
{@JsonKey(name: 'Name') String? name,
@JsonKey(name: 'zipcodes_zipcode') String? zipcodesZipcode,
@JsonKey(name: 'Remark') String? remark});
}
/// @nodoc
class __$$WarehouseUpdateRequestDtoImplCopyWithImpl<$Res>
extends _$WarehouseUpdateRequestDtoCopyWithImpl<$Res,
_$WarehouseUpdateRequestDtoImpl>
implements _$$WarehouseUpdateRequestDtoImplCopyWith<$Res> {
__$$WarehouseUpdateRequestDtoImplCopyWithImpl(
_$WarehouseUpdateRequestDtoImpl _value,
$Res Function(_$WarehouseUpdateRequestDtoImpl) _then)
: super(_value, _then);
/// Create a copy of WarehouseUpdateRequestDto
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? name = freezed,
Object? zipcodesZipcode = freezed,
Object? remark = freezed,
}) {
return _then(_$WarehouseUpdateRequestDtoImpl(
name: freezed == name
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String?,
zipcodesZipcode: freezed == zipcodesZipcode
? _value.zipcodesZipcode
: zipcodesZipcode // ignore: cast_nullable_to_non_nullable
as String?,
remark: freezed == remark
? _value.remark
: remark // ignore: cast_nullable_to_non_nullable
as String?,
));
}
}
/// @nodoc
@JsonSerializable()
class _$WarehouseUpdateRequestDtoImpl implements _WarehouseUpdateRequestDto {
const _$WarehouseUpdateRequestDtoImpl(
{@JsonKey(name: 'Name') this.name,
@JsonKey(name: 'zipcodes_zipcode') this.zipcodesZipcode,
@JsonKey(name: 'Remark') this.remark});
factory _$WarehouseUpdateRequestDtoImpl.fromJson(Map<String, dynamic> json) =>
_$$WarehouseUpdateRequestDtoImplFromJson(json);
@override
@JsonKey(name: 'Name')
final String? name;
@override
@JsonKey(name: 'zipcodes_zipcode')
final String? zipcodesZipcode;
@override
@JsonKey(name: 'Remark')
final String? remark;
@override
String toString() {
return 'WarehouseUpdateRequestDto(name: $name, zipcodesZipcode: $zipcodesZipcode, remark: $remark)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$WarehouseUpdateRequestDtoImpl &&
(identical(other.name, name) || other.name == name) &&
(identical(other.zipcodesZipcode, zipcodesZipcode) ||
other.zipcodesZipcode == zipcodesZipcode) &&
(identical(other.remark, remark) || other.remark == remark));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType, name, zipcodesZipcode, remark);
/// Create a copy of WarehouseUpdateRequestDto
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$WarehouseUpdateRequestDtoImplCopyWith<_$WarehouseUpdateRequestDtoImpl>
get copyWith => __$$WarehouseUpdateRequestDtoImplCopyWithImpl<
_$WarehouseUpdateRequestDtoImpl>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$WarehouseUpdateRequestDtoImplToJson(
this,
);
}
}
abstract class _WarehouseUpdateRequestDto implements WarehouseUpdateRequestDto {
const factory _WarehouseUpdateRequestDto(
{@JsonKey(name: 'Name') final String? name,
@JsonKey(name: 'zipcodes_zipcode') final String? zipcodesZipcode,
@JsonKey(name: 'Remark') final String? remark}) =
_$WarehouseUpdateRequestDtoImpl;
factory _WarehouseUpdateRequestDto.fromJson(Map<String, dynamic> json) =
_$WarehouseUpdateRequestDtoImpl.fromJson;
@override
@JsonKey(name: 'Name')
String? get name;
@override
@JsonKey(name: 'zipcodes_zipcode')
String? get zipcodesZipcode;
@override
@JsonKey(name: 'Remark')
String? get remark;
/// Create a copy of WarehouseUpdateRequestDto
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$WarehouseUpdateRequestDtoImplCopyWith<_$WarehouseUpdateRequestDtoImpl>
get copyWith => throw _privateConstructorUsedError;
}
WarehouseListResponse _$WarehouseListResponseFromJson(
Map<String, dynamic> json) {
return _WarehouseListResponse.fromJson(json);
}
/// @nodoc
mixin _$WarehouseListResponse {
@JsonKey(name: 'data')
List<WarehouseDto> get items => throw _privateConstructorUsedError;
@JsonKey(name: 'total')
int get totalCount => throw _privateConstructorUsedError;
@JsonKey(name: 'page')
int get currentPage => throw _privateConstructorUsedError;
@JsonKey(name: 'total_pages')
int get totalPages => throw _privateConstructorUsedError;
@JsonKey(name: 'page_size')
int? get pageSize => throw _privateConstructorUsedError;
/// Serializes this WarehouseListResponse to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
/// Create a copy of WarehouseListResponse
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$WarehouseListResponseCopyWith<WarehouseListResponse> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $WarehouseListResponseCopyWith<$Res> {
factory $WarehouseListResponseCopyWith(WarehouseListResponse value,
$Res Function(WarehouseListResponse) then) =
_$WarehouseListResponseCopyWithImpl<$Res, WarehouseListResponse>;
@useResult
$Res call(
{@JsonKey(name: 'data') List<WarehouseDto> items,
@JsonKey(name: 'total') int totalCount,
@JsonKey(name: 'page') int currentPage,
@JsonKey(name: 'total_pages') int totalPages,
@JsonKey(name: 'page_size') int? pageSize});
}
/// @nodoc
class _$WarehouseListResponseCopyWithImpl<$Res,
$Val extends WarehouseListResponse>
implements $WarehouseListResponseCopyWith<$Res> {
_$WarehouseListResponseCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of WarehouseListResponse
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? items = null,
Object? totalCount = null,
Object? currentPage = null,
Object? totalPages = null,
Object? pageSize = freezed,
}) {
return _then(_value.copyWith(
items: null == items
? _value.items
: items // ignore: cast_nullable_to_non_nullable
as List<WarehouseDto>,
totalCount: null == totalCount
? _value.totalCount
: totalCount // ignore: cast_nullable_to_non_nullable
as int,
currentPage: null == currentPage
? _value.currentPage
: currentPage // ignore: cast_nullable_to_non_nullable
as int,
totalPages: null == totalPages
? _value.totalPages
: totalPages // ignore: cast_nullable_to_non_nullable
as int,
pageSize: freezed == pageSize
? _value.pageSize
: pageSize // ignore: cast_nullable_to_non_nullable
as int?,
) as $Val);
}
}
/// @nodoc
abstract class _$$WarehouseListResponseImplCopyWith<$Res>
implements $WarehouseListResponseCopyWith<$Res> {
factory _$$WarehouseListResponseImplCopyWith(
_$WarehouseListResponseImpl value,
$Res Function(_$WarehouseListResponseImpl) then) =
__$$WarehouseListResponseImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
{@JsonKey(name: 'data') List<WarehouseDto> items,
@JsonKey(name: 'total') int totalCount,
@JsonKey(name: 'page') int currentPage,
@JsonKey(name: 'total_pages') int totalPages,
@JsonKey(name: 'page_size') int? pageSize});
}
/// @nodoc
class __$$WarehouseListResponseImplCopyWithImpl<$Res>
extends _$WarehouseListResponseCopyWithImpl<$Res,
_$WarehouseListResponseImpl>
implements _$$WarehouseListResponseImplCopyWith<$Res> {
__$$WarehouseListResponseImplCopyWithImpl(_$WarehouseListResponseImpl _value,
$Res Function(_$WarehouseListResponseImpl) _then)
: super(_value, _then);
/// Create a copy of WarehouseListResponse
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? items = null,
Object? totalCount = null,
Object? currentPage = null,
Object? totalPages = null,
Object? pageSize = freezed,
}) {
return _then(_$WarehouseListResponseImpl(
items: null == items
? _value._items
: items // ignore: cast_nullable_to_non_nullable
as List<WarehouseDto>,
totalCount: null == totalCount
? _value.totalCount
: totalCount // ignore: cast_nullable_to_non_nullable
as int,
currentPage: null == currentPage
? _value.currentPage
: currentPage // ignore: cast_nullable_to_non_nullable
as int,
totalPages: null == totalPages
? _value.totalPages
: totalPages // ignore: cast_nullable_to_non_nullable
as int,
pageSize: freezed == pageSize
? _value.pageSize
: pageSize // ignore: cast_nullable_to_non_nullable
as int?,
));
}
}
/// @nodoc
@JsonSerializable()
class _$WarehouseListResponseImpl implements _WarehouseListResponse {
const _$WarehouseListResponseImpl(
{@JsonKey(name: 'data') required final List<WarehouseDto> items,
@JsonKey(name: 'total') required this.totalCount,
@JsonKey(name: 'page') required this.currentPage,
@JsonKey(name: 'total_pages') required this.totalPages,
@JsonKey(name: 'page_size') this.pageSize})
: _items = items;
factory _$WarehouseListResponseImpl.fromJson(Map<String, dynamic> json) =>
_$$WarehouseListResponseImplFromJson(json);
final List<WarehouseDto> _items;
@override
@JsonKey(name: 'data')
List<WarehouseDto> get items {
if (_items is EqualUnmodifiableListView) return _items;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_items);
}
@override
@JsonKey(name: 'total')
final int totalCount;
@override
@JsonKey(name: 'page')
final int currentPage;
@override
@JsonKey(name: 'total_pages')
final int totalPages;
@override
@JsonKey(name: 'page_size')
final int? pageSize;
@override
String toString() {
return 'WarehouseListResponse(items: $items, totalCount: $totalCount, currentPage: $currentPage, totalPages: $totalPages, pageSize: $pageSize)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$WarehouseListResponseImpl &&
const DeepCollectionEquality().equals(other._items, _items) &&
(identical(other.totalCount, totalCount) ||
other.totalCount == totalCount) &&
(identical(other.currentPage, currentPage) ||
other.currentPage == currentPage) &&
(identical(other.totalPages, totalPages) ||
other.totalPages == totalPages) &&
(identical(other.pageSize, pageSize) ||
other.pageSize == pageSize));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(
runtimeType,
const DeepCollectionEquality().hash(_items),
totalCount,
currentPage,
totalPages,
pageSize);
/// Create a copy of WarehouseListResponse
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$WarehouseListResponseImplCopyWith<_$WarehouseListResponseImpl>
get copyWith => __$$WarehouseListResponseImplCopyWithImpl<
_$WarehouseListResponseImpl>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$WarehouseListResponseImplToJson(
this,
);
}
}
abstract class _WarehouseListResponse implements WarehouseListResponse {
const factory _WarehouseListResponse(
{@JsonKey(name: 'data') required final List<WarehouseDto> items,
@JsonKey(name: 'total') required final int totalCount,
@JsonKey(name: 'page') required final int currentPage,
@JsonKey(name: 'total_pages') required final int totalPages,
@JsonKey(name: 'page_size') final int? pageSize}) =
_$WarehouseListResponseImpl;
factory _WarehouseListResponse.fromJson(Map<String, dynamic> json) =
_$WarehouseListResponseImpl.fromJson;
@override
@JsonKey(name: 'data')
List<WarehouseDto> get items;
@override
@JsonKey(name: 'total')
int get totalCount;
@override
@JsonKey(name: 'page')
int get currentPage;
@override
@JsonKey(name: 'total_pages')
int get totalPages;
@override
@JsonKey(name: 'page_size')
int? get pageSize;
/// Create a copy of WarehouseListResponse
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$WarehouseListResponseImplCopyWith<_$WarehouseListResponseImpl>
get copyWith => throw _privateConstructorUsedError;
}
WarehouseLocationListDto _$WarehouseLocationListDtoFromJson(
Map<String, dynamic> json) {
return _WarehouseLocationListDto.fromJson(json);
}
/// @nodoc
mixin _$WarehouseLocationListDto {
@JsonKey(name: 'items')
List<WarehouseDto> get items => throw _privateConstructorUsedError;
@JsonKey(name: 'total')
int get total => throw _privateConstructorUsedError;
@JsonKey(name: 'page')
int get page => throw _privateConstructorUsedError;
@JsonKey(name: 'per_page')
int get perPage => throw _privateConstructorUsedError;
@JsonKey(name: 'total_pages')
int get totalPages => throw _privateConstructorUsedError;
/// Serializes this WarehouseLocationListDto to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
/// Create a copy of WarehouseLocationListDto
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$WarehouseLocationListDtoCopyWith<WarehouseLocationListDto> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $WarehouseLocationListDtoCopyWith<$Res> {
factory $WarehouseLocationListDtoCopyWith(WarehouseLocationListDto value,
$Res Function(WarehouseLocationListDto) then) =
_$WarehouseLocationListDtoCopyWithImpl<$Res, WarehouseLocationListDto>;
@useResult
$Res call(
{@JsonKey(name: 'items') List<WarehouseDto> items,
@JsonKey(name: 'total') int total,
@JsonKey(name: 'page') int page,
@JsonKey(name: 'per_page') int perPage,
@JsonKey(name: 'total_pages') int totalPages});
}
/// @nodoc
class _$WarehouseLocationListDtoCopyWithImpl<$Res,
$Val extends WarehouseLocationListDto>
implements $WarehouseLocationListDtoCopyWith<$Res> {
_$WarehouseLocationListDtoCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of WarehouseLocationListDto
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? items = null,
Object? total = null,
Object? page = null,
Object? perPage = null,
Object? totalPages = null,
}) {
return _then(_value.copyWith(
items: null == items
? _value.items
: items // ignore: cast_nullable_to_non_nullable
as List<WarehouseDto>,
total: null == total
? _value.total
: total // ignore: cast_nullable_to_non_nullable
as int,
page: null == page
? _value.page
: page // ignore: cast_nullable_to_non_nullable
as int,
perPage: null == perPage
? _value.perPage
: perPage // ignore: cast_nullable_to_non_nullable
as int,
totalPages: null == totalPages
? _value.totalPages
: totalPages // ignore: cast_nullable_to_non_nullable
as int,
) as $Val);
}
}
/// @nodoc
abstract class _$$WarehouseLocationListDtoImplCopyWith<$Res>
implements $WarehouseLocationListDtoCopyWith<$Res> {
factory _$$WarehouseLocationListDtoImplCopyWith(
_$WarehouseLocationListDtoImpl value,
$Res Function(_$WarehouseLocationListDtoImpl) then) =
__$$WarehouseLocationListDtoImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
{@JsonKey(name: 'items') List<WarehouseDto> items,
@JsonKey(name: 'total') int total,
@JsonKey(name: 'page') int page,
@JsonKey(name: 'per_page') int perPage,
@JsonKey(name: 'total_pages') int totalPages});
}
/// @nodoc
class __$$WarehouseLocationListDtoImplCopyWithImpl<$Res>
extends _$WarehouseLocationListDtoCopyWithImpl<$Res,
_$WarehouseLocationListDtoImpl>
implements _$$WarehouseLocationListDtoImplCopyWith<$Res> {
__$$WarehouseLocationListDtoImplCopyWithImpl(
_$WarehouseLocationListDtoImpl _value,
$Res Function(_$WarehouseLocationListDtoImpl) _then)
: super(_value, _then);
/// Create a copy of WarehouseLocationListDto
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? items = null,
Object? total = null,
Object? page = null,
Object? perPage = null,
Object? totalPages = null,
}) {
return _then(_$WarehouseLocationListDtoImpl(
items: null == items
? _value._items
: items // ignore: cast_nullable_to_non_nullable
as List<WarehouseDto>,
total: null == total
? _value.total
: total // ignore: cast_nullable_to_non_nullable
as int,
page: null == page
? _value.page
: page // ignore: cast_nullable_to_non_nullable
as int,
perPage: null == perPage
? _value.perPage
: perPage // ignore: cast_nullable_to_non_nullable
as int,
totalPages: null == totalPages
? _value.totalPages
: totalPages // ignore: cast_nullable_to_non_nullable
as int,
));
}
}
/// @nodoc
@JsonSerializable()
class _$WarehouseLocationListDtoImpl implements _WarehouseLocationListDto {
const _$WarehouseLocationListDtoImpl(
{@JsonKey(name: 'items') required final List<WarehouseDto> items,
@JsonKey(name: 'total') required this.total,
@JsonKey(name: 'page') required this.page,
@JsonKey(name: 'per_page') required this.perPage,
@JsonKey(name: 'total_pages') required this.totalPages})
: _items = items;
factory _$WarehouseLocationListDtoImpl.fromJson(Map<String, dynamic> json) =>
_$$WarehouseLocationListDtoImplFromJson(json);
final List<WarehouseDto> _items;
@override
@JsonKey(name: 'items')
List<WarehouseDto> get items {
if (_items is EqualUnmodifiableListView) return _items;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_items);
}
@override
@JsonKey(name: 'total')
final int total;
@override
@JsonKey(name: 'page')
final int page;
@override
@JsonKey(name: 'per_page')
final int perPage;
@override
@JsonKey(name: 'total_pages')
final int totalPages;
@override
String toString() {
return 'WarehouseLocationListDto(items: $items, total: $total, page: $page, perPage: $perPage, totalPages: $totalPages)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$WarehouseLocationListDtoImpl &&
const DeepCollectionEquality().equals(other._items, _items) &&
(identical(other.total, total) || other.total == total) &&
(identical(other.page, page) || other.page == page) &&
(identical(other.perPage, perPage) || other.perPage == perPage) &&
(identical(other.totalPages, totalPages) ||
other.totalPages == totalPages));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(
runtimeType,
const DeepCollectionEquality().hash(_items),
total,
page,
perPage,
totalPages);
/// Create a copy of WarehouseLocationListDto
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$WarehouseLocationListDtoImplCopyWith<_$WarehouseLocationListDtoImpl>
get copyWith => __$$WarehouseLocationListDtoImplCopyWithImpl<
_$WarehouseLocationListDtoImpl>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$WarehouseLocationListDtoImplToJson(
this,
);
}
}
abstract class _WarehouseLocationListDto implements WarehouseLocationListDto {
const factory _WarehouseLocationListDto(
{@JsonKey(name: 'items') required final List<WarehouseDto> items,
@JsonKey(name: 'total') required final int total,
@JsonKey(name: 'page') required final int page,
@JsonKey(name: 'per_page') required final int perPage,
@JsonKey(name: 'total_pages') required final int totalPages}) =
_$WarehouseLocationListDtoImpl;
factory _WarehouseLocationListDto.fromJson(Map<String, dynamic> json) =
_$WarehouseLocationListDtoImpl.fromJson;
@override
@JsonKey(name: 'items')
List<WarehouseDto> get items;
@override
@JsonKey(name: 'total')
int get total;
@override
@JsonKey(name: 'page')
int get page;
@override
@JsonKey(name: 'per_page')
int get perPage;
@override
@JsonKey(name: 'total_pages')
int get totalPages;
/// Create a copy of WarehouseLocationListDto
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$WarehouseLocationListDtoImplCopyWith<_$WarehouseLocationListDtoImpl>
get copyWith => throw _privateConstructorUsedError;
}
WarehouseCapacityInfo _$WarehouseCapacityInfoFromJson(
Map<String, dynamic> json) {
return _WarehouseCapacityInfo.fromJson(json);
}
/// @nodoc
mixin _$WarehouseCapacityInfo {
@JsonKey(name: 'total_capacity')
int? get totalCapacity => throw _privateConstructorUsedError;
@JsonKey(name: 'used_capacity')
int? get usedCapacity => throw _privateConstructorUsedError;
@JsonKey(name: 'available_capacity')
int? get availableCapacity => throw _privateConstructorUsedError;
/// Serializes this WarehouseCapacityInfo to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
/// Create a copy of WarehouseCapacityInfo
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$WarehouseCapacityInfoCopyWith<WarehouseCapacityInfo> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $WarehouseCapacityInfoCopyWith<$Res> {
factory $WarehouseCapacityInfoCopyWith(WarehouseCapacityInfo value,
$Res Function(WarehouseCapacityInfo) then) =
_$WarehouseCapacityInfoCopyWithImpl<$Res, WarehouseCapacityInfo>;
@useResult
$Res call(
{@JsonKey(name: 'total_capacity') int? totalCapacity,
@JsonKey(name: 'used_capacity') int? usedCapacity,
@JsonKey(name: 'available_capacity') int? availableCapacity});
}
/// @nodoc
class _$WarehouseCapacityInfoCopyWithImpl<$Res,
$Val extends WarehouseCapacityInfo>
implements $WarehouseCapacityInfoCopyWith<$Res> {
_$WarehouseCapacityInfoCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of WarehouseCapacityInfo
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? totalCapacity = freezed,
Object? usedCapacity = freezed,
Object? availableCapacity = freezed,
}) {
return _then(_value.copyWith(
totalCapacity: freezed == totalCapacity
? _value.totalCapacity
: totalCapacity // ignore: cast_nullable_to_non_nullable
as int?,
usedCapacity: freezed == usedCapacity
? _value.usedCapacity
: usedCapacity // ignore: cast_nullable_to_non_nullable
as int?,
availableCapacity: freezed == availableCapacity
? _value.availableCapacity
: availableCapacity // ignore: cast_nullable_to_non_nullable
as int?,
) as $Val);
}
}
/// @nodoc
abstract class _$$WarehouseCapacityInfoImplCopyWith<$Res>
implements $WarehouseCapacityInfoCopyWith<$Res> {
factory _$$WarehouseCapacityInfoImplCopyWith(
_$WarehouseCapacityInfoImpl value,
$Res Function(_$WarehouseCapacityInfoImpl) then) =
__$$WarehouseCapacityInfoImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
{@JsonKey(name: 'total_capacity') int? totalCapacity,
@JsonKey(name: 'used_capacity') int? usedCapacity,
@JsonKey(name: 'available_capacity') int? availableCapacity});
}
/// @nodoc
class __$$WarehouseCapacityInfoImplCopyWithImpl<$Res>
extends _$WarehouseCapacityInfoCopyWithImpl<$Res,
_$WarehouseCapacityInfoImpl>
implements _$$WarehouseCapacityInfoImplCopyWith<$Res> {
__$$WarehouseCapacityInfoImplCopyWithImpl(_$WarehouseCapacityInfoImpl _value,
$Res Function(_$WarehouseCapacityInfoImpl) _then)
: super(_value, _then);
/// Create a copy of WarehouseCapacityInfo
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? totalCapacity = freezed,
Object? usedCapacity = freezed,
Object? availableCapacity = freezed,
}) {
return _then(_$WarehouseCapacityInfoImpl(
totalCapacity: freezed == totalCapacity
? _value.totalCapacity
: totalCapacity // ignore: cast_nullable_to_non_nullable
as int?,
usedCapacity: freezed == usedCapacity
? _value.usedCapacity
: usedCapacity // ignore: cast_nullable_to_non_nullable
as int?,
availableCapacity: freezed == availableCapacity
? _value.availableCapacity
: availableCapacity // ignore: cast_nullable_to_non_nullable
as int?,
));
}
}
/// @nodoc
@JsonSerializable()
class _$WarehouseCapacityInfoImpl implements _WarehouseCapacityInfo {
const _$WarehouseCapacityInfoImpl(
{@JsonKey(name: 'total_capacity') this.totalCapacity,
@JsonKey(name: 'used_capacity') this.usedCapacity,
@JsonKey(name: 'available_capacity') this.availableCapacity});
factory _$WarehouseCapacityInfoImpl.fromJson(Map<String, dynamic> json) =>
_$$WarehouseCapacityInfoImplFromJson(json);
@override
@JsonKey(name: 'total_capacity')
final int? totalCapacity;
@override
@JsonKey(name: 'used_capacity')
final int? usedCapacity;
@override
@JsonKey(name: 'available_capacity')
final int? availableCapacity;
@override
String toString() {
return 'WarehouseCapacityInfo(totalCapacity: $totalCapacity, usedCapacity: $usedCapacity, availableCapacity: $availableCapacity)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$WarehouseCapacityInfoImpl &&
(identical(other.totalCapacity, totalCapacity) ||
other.totalCapacity == totalCapacity) &&
(identical(other.usedCapacity, usedCapacity) ||
other.usedCapacity == usedCapacity) &&
(identical(other.availableCapacity, availableCapacity) ||
other.availableCapacity == availableCapacity));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode =>
Object.hash(runtimeType, totalCapacity, usedCapacity, availableCapacity);
/// Create a copy of WarehouseCapacityInfo
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$WarehouseCapacityInfoImplCopyWith<_$WarehouseCapacityInfoImpl>
get copyWith => __$$WarehouseCapacityInfoImplCopyWithImpl<
_$WarehouseCapacityInfoImpl>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$WarehouseCapacityInfoImplToJson(
this,
);
}
}
abstract class _WarehouseCapacityInfo implements WarehouseCapacityInfo {
const factory _WarehouseCapacityInfo(
{@JsonKey(name: 'total_capacity') final int? totalCapacity,
@JsonKey(name: 'used_capacity') final int? usedCapacity,
@JsonKey(name: 'available_capacity') final int? availableCapacity}) =
_$WarehouseCapacityInfoImpl;
factory _WarehouseCapacityInfo.fromJson(Map<String, dynamic> json) =
_$WarehouseCapacityInfoImpl.fromJson;
@override
@JsonKey(name: 'total_capacity')
int? get totalCapacity;
@override
@JsonKey(name: 'used_capacity')
int? get usedCapacity;
@override
@JsonKey(name: 'available_capacity')
int? get availableCapacity;
/// Create a copy of WarehouseCapacityInfo
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$WarehouseCapacityInfoImplCopyWith<_$WarehouseCapacityInfoImpl>
get copyWith => throw _privateConstructorUsedError;
}
WarehouseEquipmentListDto _$WarehouseEquipmentListDtoFromJson(
Map<String, dynamic> json) {
return _WarehouseEquipmentListDto.fromJson(json);
}
/// @nodoc
mixin _$WarehouseEquipmentListDto {
@JsonKey(name: 'items')
List<WarehouseEquipmentDto> get items => throw _privateConstructorUsedError;
@JsonKey(name: 'total')
int get total => throw _privateConstructorUsedError;
/// Serializes this WarehouseEquipmentListDto to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
/// Create a copy of WarehouseEquipmentListDto
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$WarehouseEquipmentListDtoCopyWith<WarehouseEquipmentListDto> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $WarehouseEquipmentListDtoCopyWith<$Res> {
factory $WarehouseEquipmentListDtoCopyWith(WarehouseEquipmentListDto value,
$Res Function(WarehouseEquipmentListDto) then) =
_$WarehouseEquipmentListDtoCopyWithImpl<$Res, WarehouseEquipmentListDto>;
@useResult
$Res call(
{@JsonKey(name: 'items') List<WarehouseEquipmentDto> items,
@JsonKey(name: 'total') int total});
}
/// @nodoc
class _$WarehouseEquipmentListDtoCopyWithImpl<$Res,
$Val extends WarehouseEquipmentListDto>
implements $WarehouseEquipmentListDtoCopyWith<$Res> {
_$WarehouseEquipmentListDtoCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of WarehouseEquipmentListDto
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? items = null,
Object? total = null,
}) {
return _then(_value.copyWith(
items: null == items
? _value.items
: items // ignore: cast_nullable_to_non_nullable
as List<WarehouseEquipmentDto>,
total: null == total
? _value.total
: total // ignore: cast_nullable_to_non_nullable
as int,
) as $Val);
}
}
/// @nodoc
abstract class _$$WarehouseEquipmentListDtoImplCopyWith<$Res>
implements $WarehouseEquipmentListDtoCopyWith<$Res> {
factory _$$WarehouseEquipmentListDtoImplCopyWith(
_$WarehouseEquipmentListDtoImpl value,
$Res Function(_$WarehouseEquipmentListDtoImpl) then) =
__$$WarehouseEquipmentListDtoImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
{@JsonKey(name: 'items') List<WarehouseEquipmentDto> items,
@JsonKey(name: 'total') int total});
}
/// @nodoc
class __$$WarehouseEquipmentListDtoImplCopyWithImpl<$Res>
extends _$WarehouseEquipmentListDtoCopyWithImpl<$Res,
_$WarehouseEquipmentListDtoImpl>
implements _$$WarehouseEquipmentListDtoImplCopyWith<$Res> {
__$$WarehouseEquipmentListDtoImplCopyWithImpl(
_$WarehouseEquipmentListDtoImpl _value,
$Res Function(_$WarehouseEquipmentListDtoImpl) _then)
: super(_value, _then);
/// Create a copy of WarehouseEquipmentListDto
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? items = null,
Object? total = null,
}) {
return _then(_$WarehouseEquipmentListDtoImpl(
items: null == items
? _value._items
: items // ignore: cast_nullable_to_non_nullable
as List<WarehouseEquipmentDto>,
total: null == total
? _value.total
: total // ignore: cast_nullable_to_non_nullable
as int,
));
}
}
/// @nodoc
@JsonSerializable()
class _$WarehouseEquipmentListDtoImpl implements _WarehouseEquipmentListDto {
const _$WarehouseEquipmentListDtoImpl(
{@JsonKey(name: 'items') required final List<WarehouseEquipmentDto> items,
@JsonKey(name: 'total') required this.total})
: _items = items;
factory _$WarehouseEquipmentListDtoImpl.fromJson(Map<String, dynamic> json) =>
_$$WarehouseEquipmentListDtoImplFromJson(json);
final List<WarehouseEquipmentDto> _items;
@override
@JsonKey(name: 'items')
List<WarehouseEquipmentDto> get items {
if (_items is EqualUnmodifiableListView) return _items;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_items);
}
@override
@JsonKey(name: 'total')
final int total;
@override
String toString() {
return 'WarehouseEquipmentListDto(items: $items, total: $total)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$WarehouseEquipmentListDtoImpl &&
const DeepCollectionEquality().equals(other._items, _items) &&
(identical(other.total, total) || other.total == total));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(
runtimeType, const DeepCollectionEquality().hash(_items), total);
/// Create a copy of WarehouseEquipmentListDto
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$WarehouseEquipmentListDtoImplCopyWith<_$WarehouseEquipmentListDtoImpl>
get copyWith => __$$WarehouseEquipmentListDtoImplCopyWithImpl<
_$WarehouseEquipmentListDtoImpl>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$WarehouseEquipmentListDtoImplToJson(
this,
);
}
}
abstract class _WarehouseEquipmentListDto implements WarehouseEquipmentListDto {
const factory _WarehouseEquipmentListDto(
{@JsonKey(name: 'items') required final List<WarehouseEquipmentDto> items,
@JsonKey(name: 'total')
required final int total}) = _$WarehouseEquipmentListDtoImpl;
factory _WarehouseEquipmentListDto.fromJson(Map<String, dynamic> json) =
_$WarehouseEquipmentListDtoImpl.fromJson;
@override
@JsonKey(name: 'items')
List<WarehouseEquipmentDto> get items;
@override
@JsonKey(name: 'total')
int get total;
/// Create a copy of WarehouseEquipmentListDto
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$WarehouseEquipmentListDtoImplCopyWith<_$WarehouseEquipmentListDtoImpl>
get copyWith => throw _privateConstructorUsedError;
}
WarehouseEquipmentDto _$WarehouseEquipmentDtoFromJson(
Map<String, dynamic> json) {
return _WarehouseEquipmentDto.fromJson(json);
}
/// @nodoc
mixin _$WarehouseEquipmentDto {
int? get id => throw _privateConstructorUsedError;
@JsonKey(name: 'equipment_id')
int? get equipmentId => throw _privateConstructorUsedError;
@JsonKey(name: 'warehouse_id')
int? get warehouseId => throw _privateConstructorUsedError;
String? get name => throw _privateConstructorUsedError;
int? get quantity => throw _privateConstructorUsedError;
/// Serializes this WarehouseEquipmentDto to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
/// Create a copy of WarehouseEquipmentDto
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$WarehouseEquipmentDtoCopyWith<WarehouseEquipmentDto> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $WarehouseEquipmentDtoCopyWith<$Res> {
factory $WarehouseEquipmentDtoCopyWith(WarehouseEquipmentDto value,
$Res Function(WarehouseEquipmentDto) then) =
_$WarehouseEquipmentDtoCopyWithImpl<$Res, WarehouseEquipmentDto>;
@useResult
$Res call(
{int? id,
@JsonKey(name: 'equipment_id') int? equipmentId,
@JsonKey(name: 'warehouse_id') int? warehouseId,
String? name,
int? quantity});
}
/// @nodoc
class _$WarehouseEquipmentDtoCopyWithImpl<$Res,
$Val extends WarehouseEquipmentDto>
implements $WarehouseEquipmentDtoCopyWith<$Res> {
_$WarehouseEquipmentDtoCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of WarehouseEquipmentDto
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? id = freezed,
Object? equipmentId = freezed,
Object? warehouseId = freezed,
Object? name = freezed,
Object? quantity = freezed,
}) {
return _then(_value.copyWith(
id: freezed == id
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as int?,
equipmentId: freezed == equipmentId
? _value.equipmentId
: equipmentId // ignore: cast_nullable_to_non_nullable
as int?,
warehouseId: freezed == warehouseId
? _value.warehouseId
: warehouseId // ignore: cast_nullable_to_non_nullable
as int?,
name: freezed == name
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String?,
quantity: freezed == quantity
? _value.quantity
: quantity // ignore: cast_nullable_to_non_nullable
as int?,
) as $Val);
}
}
/// @nodoc
abstract class _$$WarehouseEquipmentDtoImplCopyWith<$Res>
implements $WarehouseEquipmentDtoCopyWith<$Res> {
factory _$$WarehouseEquipmentDtoImplCopyWith(
_$WarehouseEquipmentDtoImpl value,
$Res Function(_$WarehouseEquipmentDtoImpl) then) =
__$$WarehouseEquipmentDtoImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
{int? id,
@JsonKey(name: 'equipment_id') int? equipmentId,
@JsonKey(name: 'warehouse_id') int? warehouseId,
String? name,
int? quantity});
}
/// @nodoc
class __$$WarehouseEquipmentDtoImplCopyWithImpl<$Res>
extends _$WarehouseEquipmentDtoCopyWithImpl<$Res,
_$WarehouseEquipmentDtoImpl>
implements _$$WarehouseEquipmentDtoImplCopyWith<$Res> {
__$$WarehouseEquipmentDtoImplCopyWithImpl(_$WarehouseEquipmentDtoImpl _value,
$Res Function(_$WarehouseEquipmentDtoImpl) _then)
: super(_value, _then);
/// Create a copy of WarehouseEquipmentDto
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? id = freezed,
Object? equipmentId = freezed,
Object? warehouseId = freezed,
Object? name = freezed,
Object? quantity = freezed,
}) {
return _then(_$WarehouseEquipmentDtoImpl(
id: freezed == id
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as int?,
equipmentId: freezed == equipmentId
? _value.equipmentId
: equipmentId // ignore: cast_nullable_to_non_nullable
as int?,
warehouseId: freezed == warehouseId
? _value.warehouseId
: warehouseId // ignore: cast_nullable_to_non_nullable
as int?,
name: freezed == name
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String?,
quantity: freezed == quantity
? _value.quantity
: quantity // ignore: cast_nullable_to_non_nullable
as int?,
));
}
}
/// @nodoc
@JsonSerializable()
class _$WarehouseEquipmentDtoImpl implements _WarehouseEquipmentDto {
const _$WarehouseEquipmentDtoImpl(
{this.id,
@JsonKey(name: 'equipment_id') this.equipmentId,
@JsonKey(name: 'warehouse_id') this.warehouseId,
this.name,
this.quantity});
factory _$WarehouseEquipmentDtoImpl.fromJson(Map<String, dynamic> json) =>
_$$WarehouseEquipmentDtoImplFromJson(json);
@override
final int? id;
@override
@JsonKey(name: 'equipment_id')
final int? equipmentId;
@override
@JsonKey(name: 'warehouse_id')
final int? warehouseId;
@override
final String? name;
@override
final int? quantity;
@override
String toString() {
return 'WarehouseEquipmentDto(id: $id, equipmentId: $equipmentId, warehouseId: $warehouseId, name: $name, quantity: $quantity)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$WarehouseEquipmentDtoImpl &&
(identical(other.id, id) || other.id == id) &&
(identical(other.equipmentId, equipmentId) ||
other.equipmentId == equipmentId) &&
(identical(other.warehouseId, warehouseId) ||
other.warehouseId == warehouseId) &&
(identical(other.name, name) || other.name == name) &&
(identical(other.quantity, quantity) ||
other.quantity == quantity));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode =>
Object.hash(runtimeType, id, equipmentId, warehouseId, name, quantity);
/// Create a copy of WarehouseEquipmentDto
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$WarehouseEquipmentDtoImplCopyWith<_$WarehouseEquipmentDtoImpl>
get copyWith => __$$WarehouseEquipmentDtoImplCopyWithImpl<
_$WarehouseEquipmentDtoImpl>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$WarehouseEquipmentDtoImplToJson(
this,
);
}
}
abstract class _WarehouseEquipmentDto implements WarehouseEquipmentDto {
const factory _WarehouseEquipmentDto(
{final int? id,
@JsonKey(name: 'equipment_id') final int? equipmentId,
@JsonKey(name: 'warehouse_id') final int? warehouseId,
final String? name,
final int? quantity}) = _$WarehouseEquipmentDtoImpl;
factory _WarehouseEquipmentDto.fromJson(Map<String, dynamic> json) =
_$WarehouseEquipmentDtoImpl.fromJson;
@override
int? get id;
@override
@JsonKey(name: 'equipment_id')
int? get equipmentId;
@override
@JsonKey(name: 'warehouse_id')
int? get warehouseId;
@override
String? get name;
@override
int? get quantity;
/// Create a copy of WarehouseEquipmentDto
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$WarehouseEquipmentDtoImplCopyWith<_$WarehouseEquipmentDtoImpl>
get copyWith => throw _privateConstructorUsedError;
}