Files
superport/lib/data/models/lookups/lookup_data.freezed.dart
JiWoong Sul c141c0b914 feat: Equipment DTO 호환성 수정 전 백업 커밋
- Equipment DTO 필드명 변경 (name → equipment_number 등) 완료
- Phase 1-7 파생 수정사항 체계적 진행 예정
- 통합 모델 정리, Controller 동기화, UI 업데이트 예정

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-21 19:17:43 +09:00

1300 lines
42 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 'lookup_data.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');
LookupData _$LookupDataFromJson(Map<String, dynamic> json) {
return _LookupData.fromJson(json);
}
/// @nodoc
mixin _$LookupData {
@JsonKey(name: 'manufacturers', defaultValue: [])
List<LookupItem> get manufacturers => throw _privateConstructorUsedError;
@JsonKey(name: 'equipment_names', defaultValue: [])
List<EquipmentNameItem> get equipmentNames =>
throw _privateConstructorUsedError;
@JsonKey(name: 'equipment_categories', defaultValue: [])
List<CategoryCombinationItem> get equipmentCategories =>
throw _privateConstructorUsedError;
@JsonKey(name: 'equipment_statuses', defaultValue: [])
List<StatusItem> get equipmentStatuses => throw _privateConstructorUsedError;
@JsonKey(name: 'companies', defaultValue: [])
List<LookupItem> get companies => throw _privateConstructorUsedError;
@JsonKey(name: 'warehouses', defaultValue: [])
List<LookupItem> get warehouses => throw _privateConstructorUsedError;
/// Serializes this LookupData to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
/// Create a copy of LookupData
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$LookupDataCopyWith<LookupData> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $LookupDataCopyWith<$Res> {
factory $LookupDataCopyWith(
LookupData value, $Res Function(LookupData) then) =
_$LookupDataCopyWithImpl<$Res, LookupData>;
@useResult
$Res call(
{@JsonKey(name: 'manufacturers', defaultValue: [])
List<LookupItem> manufacturers,
@JsonKey(name: 'equipment_names', defaultValue: [])
List<EquipmentNameItem> equipmentNames,
@JsonKey(name: 'equipment_categories', defaultValue: [])
List<CategoryCombinationItem> equipmentCategories,
@JsonKey(name: 'equipment_statuses', defaultValue: [])
List<StatusItem> equipmentStatuses,
@JsonKey(name: 'companies', defaultValue: []) List<LookupItem> companies,
@JsonKey(name: 'warehouses', defaultValue: [])
List<LookupItem> warehouses});
}
/// @nodoc
class _$LookupDataCopyWithImpl<$Res, $Val extends LookupData>
implements $LookupDataCopyWith<$Res> {
_$LookupDataCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of LookupData
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? manufacturers = null,
Object? equipmentNames = null,
Object? equipmentCategories = null,
Object? equipmentStatuses = null,
Object? companies = null,
Object? warehouses = null,
}) {
return _then(_value.copyWith(
manufacturers: null == manufacturers
? _value.manufacturers
: manufacturers // ignore: cast_nullable_to_non_nullable
as List<LookupItem>,
equipmentNames: null == equipmentNames
? _value.equipmentNames
: equipmentNames // ignore: cast_nullable_to_non_nullable
as List<EquipmentNameItem>,
equipmentCategories: null == equipmentCategories
? _value.equipmentCategories
: equipmentCategories // ignore: cast_nullable_to_non_nullable
as List<CategoryCombinationItem>,
equipmentStatuses: null == equipmentStatuses
? _value.equipmentStatuses
: equipmentStatuses // ignore: cast_nullable_to_non_nullable
as List<StatusItem>,
companies: null == companies
? _value.companies
: companies // ignore: cast_nullable_to_non_nullable
as List<LookupItem>,
warehouses: null == warehouses
? _value.warehouses
: warehouses // ignore: cast_nullable_to_non_nullable
as List<LookupItem>,
) as $Val);
}
}
/// @nodoc
abstract class _$$LookupDataImplCopyWith<$Res>
implements $LookupDataCopyWith<$Res> {
factory _$$LookupDataImplCopyWith(
_$LookupDataImpl value, $Res Function(_$LookupDataImpl) then) =
__$$LookupDataImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
{@JsonKey(name: 'manufacturers', defaultValue: [])
List<LookupItem> manufacturers,
@JsonKey(name: 'equipment_names', defaultValue: [])
List<EquipmentNameItem> equipmentNames,
@JsonKey(name: 'equipment_categories', defaultValue: [])
List<CategoryCombinationItem> equipmentCategories,
@JsonKey(name: 'equipment_statuses', defaultValue: [])
List<StatusItem> equipmentStatuses,
@JsonKey(name: 'companies', defaultValue: []) List<LookupItem> companies,
@JsonKey(name: 'warehouses', defaultValue: [])
List<LookupItem> warehouses});
}
/// @nodoc
class __$$LookupDataImplCopyWithImpl<$Res>
extends _$LookupDataCopyWithImpl<$Res, _$LookupDataImpl>
implements _$$LookupDataImplCopyWith<$Res> {
__$$LookupDataImplCopyWithImpl(
_$LookupDataImpl _value, $Res Function(_$LookupDataImpl) _then)
: super(_value, _then);
/// Create a copy of LookupData
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? manufacturers = null,
Object? equipmentNames = null,
Object? equipmentCategories = null,
Object? equipmentStatuses = null,
Object? companies = null,
Object? warehouses = null,
}) {
return _then(_$LookupDataImpl(
manufacturers: null == manufacturers
? _value._manufacturers
: manufacturers // ignore: cast_nullable_to_non_nullable
as List<LookupItem>,
equipmentNames: null == equipmentNames
? _value._equipmentNames
: equipmentNames // ignore: cast_nullable_to_non_nullable
as List<EquipmentNameItem>,
equipmentCategories: null == equipmentCategories
? _value._equipmentCategories
: equipmentCategories // ignore: cast_nullable_to_non_nullable
as List<CategoryCombinationItem>,
equipmentStatuses: null == equipmentStatuses
? _value._equipmentStatuses
: equipmentStatuses // ignore: cast_nullable_to_non_nullable
as List<StatusItem>,
companies: null == companies
? _value._companies
: companies // ignore: cast_nullable_to_non_nullable
as List<LookupItem>,
warehouses: null == warehouses
? _value._warehouses
: warehouses // ignore: cast_nullable_to_non_nullable
as List<LookupItem>,
));
}
}
/// @nodoc
@JsonSerializable()
class _$LookupDataImpl implements _LookupData {
const _$LookupDataImpl(
{@JsonKey(name: 'manufacturers', defaultValue: [])
required final List<LookupItem> manufacturers,
@JsonKey(name: 'equipment_names', defaultValue: [])
required final List<EquipmentNameItem> equipmentNames,
@JsonKey(name: 'equipment_categories', defaultValue: [])
required final List<CategoryCombinationItem> equipmentCategories,
@JsonKey(name: 'equipment_statuses', defaultValue: [])
required final List<StatusItem> equipmentStatuses,
@JsonKey(name: 'companies', defaultValue: [])
required final List<LookupItem> companies,
@JsonKey(name: 'warehouses', defaultValue: [])
required final List<LookupItem> warehouses})
: _manufacturers = manufacturers,
_equipmentNames = equipmentNames,
_equipmentCategories = equipmentCategories,
_equipmentStatuses = equipmentStatuses,
_companies = companies,
_warehouses = warehouses;
factory _$LookupDataImpl.fromJson(Map<String, dynamic> json) =>
_$$LookupDataImplFromJson(json);
final List<LookupItem> _manufacturers;
@override
@JsonKey(name: 'manufacturers', defaultValue: [])
List<LookupItem> get manufacturers {
if (_manufacturers is EqualUnmodifiableListView) return _manufacturers;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_manufacturers);
}
final List<EquipmentNameItem> _equipmentNames;
@override
@JsonKey(name: 'equipment_names', defaultValue: [])
List<EquipmentNameItem> get equipmentNames {
if (_equipmentNames is EqualUnmodifiableListView) return _equipmentNames;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_equipmentNames);
}
final List<CategoryCombinationItem> _equipmentCategories;
@override
@JsonKey(name: 'equipment_categories', defaultValue: [])
List<CategoryCombinationItem> get equipmentCategories {
if (_equipmentCategories is EqualUnmodifiableListView)
return _equipmentCategories;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_equipmentCategories);
}
final List<StatusItem> _equipmentStatuses;
@override
@JsonKey(name: 'equipment_statuses', defaultValue: [])
List<StatusItem> get equipmentStatuses {
if (_equipmentStatuses is EqualUnmodifiableListView)
return _equipmentStatuses;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_equipmentStatuses);
}
final List<LookupItem> _companies;
@override
@JsonKey(name: 'companies', defaultValue: [])
List<LookupItem> get companies {
if (_companies is EqualUnmodifiableListView) return _companies;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_companies);
}
final List<LookupItem> _warehouses;
@override
@JsonKey(name: 'warehouses', defaultValue: [])
List<LookupItem> get warehouses {
if (_warehouses is EqualUnmodifiableListView) return _warehouses;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_warehouses);
}
@override
String toString() {
return 'LookupData(manufacturers: $manufacturers, equipmentNames: $equipmentNames, equipmentCategories: $equipmentCategories, equipmentStatuses: $equipmentStatuses, companies: $companies, warehouses: $warehouses)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$LookupDataImpl &&
const DeepCollectionEquality()
.equals(other._manufacturers, _manufacturers) &&
const DeepCollectionEquality()
.equals(other._equipmentNames, _equipmentNames) &&
const DeepCollectionEquality()
.equals(other._equipmentCategories, _equipmentCategories) &&
const DeepCollectionEquality()
.equals(other._equipmentStatuses, _equipmentStatuses) &&
const DeepCollectionEquality()
.equals(other._companies, _companies) &&
const DeepCollectionEquality()
.equals(other._warehouses, _warehouses));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(
runtimeType,
const DeepCollectionEquality().hash(_manufacturers),
const DeepCollectionEquality().hash(_equipmentNames),
const DeepCollectionEquality().hash(_equipmentCategories),
const DeepCollectionEquality().hash(_equipmentStatuses),
const DeepCollectionEquality().hash(_companies),
const DeepCollectionEquality().hash(_warehouses));
/// Create a copy of LookupData
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$LookupDataImplCopyWith<_$LookupDataImpl> get copyWith =>
__$$LookupDataImplCopyWithImpl<_$LookupDataImpl>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$LookupDataImplToJson(
this,
);
}
}
abstract class _LookupData implements LookupData {
const factory _LookupData(
{@JsonKey(name: 'manufacturers', defaultValue: [])
required final List<LookupItem> manufacturers,
@JsonKey(name: 'equipment_names', defaultValue: [])
required final List<EquipmentNameItem> equipmentNames,
@JsonKey(name: 'equipment_categories', defaultValue: [])
required final List<CategoryCombinationItem> equipmentCategories,
@JsonKey(name: 'equipment_statuses', defaultValue: [])
required final List<StatusItem> equipmentStatuses,
@JsonKey(name: 'companies', defaultValue: [])
required final List<LookupItem> companies,
@JsonKey(name: 'warehouses', defaultValue: [])
required final List<LookupItem> warehouses}) = _$LookupDataImpl;
factory _LookupData.fromJson(Map<String, dynamic> json) =
_$LookupDataImpl.fromJson;
@override
@JsonKey(name: 'manufacturers', defaultValue: [])
List<LookupItem> get manufacturers;
@override
@JsonKey(name: 'equipment_names', defaultValue: [])
List<EquipmentNameItem> get equipmentNames;
@override
@JsonKey(name: 'equipment_categories', defaultValue: [])
List<CategoryCombinationItem> get equipmentCategories;
@override
@JsonKey(name: 'equipment_statuses', defaultValue: [])
List<StatusItem> get equipmentStatuses;
@override
@JsonKey(name: 'companies', defaultValue: [])
List<LookupItem> get companies;
@override
@JsonKey(name: 'warehouses', defaultValue: [])
List<LookupItem> get warehouses;
/// Create a copy of LookupData
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$LookupDataImplCopyWith<_$LookupDataImpl> get copyWith =>
throw _privateConstructorUsedError;
}
LookupItem _$LookupItemFromJson(Map<String, dynamic> json) {
return _LookupItem.fromJson(json);
}
/// @nodoc
mixin _$LookupItem {
int? get id => throw _privateConstructorUsedError;
String get name => throw _privateConstructorUsedError;
/// Serializes this LookupItem to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
/// Create a copy of LookupItem
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$LookupItemCopyWith<LookupItem> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $LookupItemCopyWith<$Res> {
factory $LookupItemCopyWith(
LookupItem value, $Res Function(LookupItem) then) =
_$LookupItemCopyWithImpl<$Res, LookupItem>;
@useResult
$Res call({int? id, String name});
}
/// @nodoc
class _$LookupItemCopyWithImpl<$Res, $Val extends LookupItem>
implements $LookupItemCopyWith<$Res> {
_$LookupItemCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of LookupItem
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? id = freezed,
Object? name = null,
}) {
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,
) as $Val);
}
}
/// @nodoc
abstract class _$$LookupItemImplCopyWith<$Res>
implements $LookupItemCopyWith<$Res> {
factory _$$LookupItemImplCopyWith(
_$LookupItemImpl value, $Res Function(_$LookupItemImpl) then) =
__$$LookupItemImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({int? id, String name});
}
/// @nodoc
class __$$LookupItemImplCopyWithImpl<$Res>
extends _$LookupItemCopyWithImpl<$Res, _$LookupItemImpl>
implements _$$LookupItemImplCopyWith<$Res> {
__$$LookupItemImplCopyWithImpl(
_$LookupItemImpl _value, $Res Function(_$LookupItemImpl) _then)
: super(_value, _then);
/// Create a copy of LookupItem
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? id = freezed,
Object? name = null,
}) {
return _then(_$LookupItemImpl(
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,
));
}
}
/// @nodoc
@JsonSerializable()
class _$LookupItemImpl implements _LookupItem {
const _$LookupItemImpl({this.id, required this.name});
factory _$LookupItemImpl.fromJson(Map<String, dynamic> json) =>
_$$LookupItemImplFromJson(json);
@override
final int? id;
@override
final String name;
@override
String toString() {
return 'LookupItem(id: $id, name: $name)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$LookupItemImpl &&
(identical(other.id, id) || other.id == id) &&
(identical(other.name, name) || other.name == name));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType, id, name);
/// Create a copy of LookupItem
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$LookupItemImplCopyWith<_$LookupItemImpl> get copyWith =>
__$$LookupItemImplCopyWithImpl<_$LookupItemImpl>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$LookupItemImplToJson(
this,
);
}
}
abstract class _LookupItem implements LookupItem {
const factory _LookupItem({final int? id, required final String name}) =
_$LookupItemImpl;
factory _LookupItem.fromJson(Map<String, dynamic> json) =
_$LookupItemImpl.fromJson;
@override
int? get id;
@override
String get name;
/// Create a copy of LookupItem
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$LookupItemImplCopyWith<_$LookupItemImpl> get copyWith =>
throw _privateConstructorUsedError;
}
EquipmentNameItem _$EquipmentNameItemFromJson(Map<String, dynamic> json) {
return _EquipmentNameItem.fromJson(json);
}
/// @nodoc
mixin _$EquipmentNameItem {
int? get id => throw _privateConstructorUsedError;
String get name => throw _privateConstructorUsedError;
@JsonKey(name: 'model_number')
String? get modelNumber => throw _privateConstructorUsedError;
/// Serializes this EquipmentNameItem to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
/// Create a copy of EquipmentNameItem
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$EquipmentNameItemCopyWith<EquipmentNameItem> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $EquipmentNameItemCopyWith<$Res> {
factory $EquipmentNameItemCopyWith(
EquipmentNameItem value, $Res Function(EquipmentNameItem) then) =
_$EquipmentNameItemCopyWithImpl<$Res, EquipmentNameItem>;
@useResult
$Res call(
{int? id,
String name,
@JsonKey(name: 'model_number') String? modelNumber});
}
/// @nodoc
class _$EquipmentNameItemCopyWithImpl<$Res, $Val extends EquipmentNameItem>
implements $EquipmentNameItemCopyWith<$Res> {
_$EquipmentNameItemCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of EquipmentNameItem
/// 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? modelNumber = 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,
modelNumber: freezed == modelNumber
? _value.modelNumber
: modelNumber // ignore: cast_nullable_to_non_nullable
as String?,
) as $Val);
}
}
/// @nodoc
abstract class _$$EquipmentNameItemImplCopyWith<$Res>
implements $EquipmentNameItemCopyWith<$Res> {
factory _$$EquipmentNameItemImplCopyWith(_$EquipmentNameItemImpl value,
$Res Function(_$EquipmentNameItemImpl) then) =
__$$EquipmentNameItemImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
{int? id,
String name,
@JsonKey(name: 'model_number') String? modelNumber});
}
/// @nodoc
class __$$EquipmentNameItemImplCopyWithImpl<$Res>
extends _$EquipmentNameItemCopyWithImpl<$Res, _$EquipmentNameItemImpl>
implements _$$EquipmentNameItemImplCopyWith<$Res> {
__$$EquipmentNameItemImplCopyWithImpl(_$EquipmentNameItemImpl _value,
$Res Function(_$EquipmentNameItemImpl) _then)
: super(_value, _then);
/// Create a copy of EquipmentNameItem
/// 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? modelNumber = freezed,
}) {
return _then(_$EquipmentNameItemImpl(
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,
modelNumber: freezed == modelNumber
? _value.modelNumber
: modelNumber // ignore: cast_nullable_to_non_nullable
as String?,
));
}
}
/// @nodoc
@JsonSerializable()
class _$EquipmentNameItemImpl implements _EquipmentNameItem {
const _$EquipmentNameItemImpl(
{this.id,
required this.name,
@JsonKey(name: 'model_number') this.modelNumber});
factory _$EquipmentNameItemImpl.fromJson(Map<String, dynamic> json) =>
_$$EquipmentNameItemImplFromJson(json);
@override
final int? id;
@override
final String name;
@override
@JsonKey(name: 'model_number')
final String? modelNumber;
@override
String toString() {
return 'EquipmentNameItem(id: $id, name: $name, modelNumber: $modelNumber)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$EquipmentNameItemImpl &&
(identical(other.id, id) || other.id == id) &&
(identical(other.name, name) || other.name == name) &&
(identical(other.modelNumber, modelNumber) ||
other.modelNumber == modelNumber));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType, id, name, modelNumber);
/// Create a copy of EquipmentNameItem
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$EquipmentNameItemImplCopyWith<_$EquipmentNameItemImpl> get copyWith =>
__$$EquipmentNameItemImplCopyWithImpl<_$EquipmentNameItemImpl>(
this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$EquipmentNameItemImplToJson(
this,
);
}
}
abstract class _EquipmentNameItem implements EquipmentNameItem {
const factory _EquipmentNameItem(
{final int? id,
required final String name,
@JsonKey(name: 'model_number') final String? modelNumber}) =
_$EquipmentNameItemImpl;
factory _EquipmentNameItem.fromJson(Map<String, dynamic> json) =
_$EquipmentNameItemImpl.fromJson;
@override
int? get id;
@override
String get name;
@override
@JsonKey(name: 'model_number')
String? get modelNumber;
/// Create a copy of EquipmentNameItem
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$EquipmentNameItemImplCopyWith<_$EquipmentNameItemImpl> get copyWith =>
throw _privateConstructorUsedError;
}
CategoryCombinationItem _$CategoryCombinationItemFromJson(
Map<String, dynamic> json) {
return _CategoryCombinationItem.fromJson(json);
}
/// @nodoc
mixin _$CategoryCombinationItem {
String get category1 => throw _privateConstructorUsedError;
String get category2 => throw _privateConstructorUsedError;
String get category3 => throw _privateConstructorUsedError;
/// Serializes this CategoryCombinationItem to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
/// Create a copy of CategoryCombinationItem
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$CategoryCombinationItemCopyWith<CategoryCombinationItem> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $CategoryCombinationItemCopyWith<$Res> {
factory $CategoryCombinationItemCopyWith(CategoryCombinationItem value,
$Res Function(CategoryCombinationItem) then) =
_$CategoryCombinationItemCopyWithImpl<$Res, CategoryCombinationItem>;
@useResult
$Res call({String category1, String category2, String category3});
}
/// @nodoc
class _$CategoryCombinationItemCopyWithImpl<$Res,
$Val extends CategoryCombinationItem>
implements $CategoryCombinationItemCopyWith<$Res> {
_$CategoryCombinationItemCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of CategoryCombinationItem
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? category1 = null,
Object? category2 = null,
Object? category3 = null,
}) {
return _then(_value.copyWith(
category1: null == category1
? _value.category1
: category1 // ignore: cast_nullable_to_non_nullable
as String,
category2: null == category2
? _value.category2
: category2 // ignore: cast_nullable_to_non_nullable
as String,
category3: null == category3
? _value.category3
: category3 // ignore: cast_nullable_to_non_nullable
as String,
) as $Val);
}
}
/// @nodoc
abstract class _$$CategoryCombinationItemImplCopyWith<$Res>
implements $CategoryCombinationItemCopyWith<$Res> {
factory _$$CategoryCombinationItemImplCopyWith(
_$CategoryCombinationItemImpl value,
$Res Function(_$CategoryCombinationItemImpl) then) =
__$$CategoryCombinationItemImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({String category1, String category2, String category3});
}
/// @nodoc
class __$$CategoryCombinationItemImplCopyWithImpl<$Res>
extends _$CategoryCombinationItemCopyWithImpl<$Res,
_$CategoryCombinationItemImpl>
implements _$$CategoryCombinationItemImplCopyWith<$Res> {
__$$CategoryCombinationItemImplCopyWithImpl(
_$CategoryCombinationItemImpl _value,
$Res Function(_$CategoryCombinationItemImpl) _then)
: super(_value, _then);
/// Create a copy of CategoryCombinationItem
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? category1 = null,
Object? category2 = null,
Object? category3 = null,
}) {
return _then(_$CategoryCombinationItemImpl(
category1: null == category1
? _value.category1
: category1 // ignore: cast_nullable_to_non_nullable
as String,
category2: null == category2
? _value.category2
: category2 // ignore: cast_nullable_to_non_nullable
as String,
category3: null == category3
? _value.category3
: category3 // ignore: cast_nullable_to_non_nullable
as String,
));
}
}
/// @nodoc
@JsonSerializable()
class _$CategoryCombinationItemImpl implements _CategoryCombinationItem {
const _$CategoryCombinationItemImpl(
{required this.category1,
required this.category2,
required this.category3});
factory _$CategoryCombinationItemImpl.fromJson(Map<String, dynamic> json) =>
_$$CategoryCombinationItemImplFromJson(json);
@override
final String category1;
@override
final String category2;
@override
final String category3;
@override
String toString() {
return 'CategoryCombinationItem(category1: $category1, category2: $category2, category3: $category3)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$CategoryCombinationItemImpl &&
(identical(other.category1, category1) ||
other.category1 == category1) &&
(identical(other.category2, category2) ||
other.category2 == category2) &&
(identical(other.category3, category3) ||
other.category3 == category3));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType, category1, category2, category3);
/// Create a copy of CategoryCombinationItem
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$CategoryCombinationItemImplCopyWith<_$CategoryCombinationItemImpl>
get copyWith => __$$CategoryCombinationItemImplCopyWithImpl<
_$CategoryCombinationItemImpl>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$CategoryCombinationItemImplToJson(
this,
);
}
}
abstract class _CategoryCombinationItem implements CategoryCombinationItem {
const factory _CategoryCombinationItem(
{required final String category1,
required final String category2,
required final String category3}) = _$CategoryCombinationItemImpl;
factory _CategoryCombinationItem.fromJson(Map<String, dynamic> json) =
_$CategoryCombinationItemImpl.fromJson;
@override
String get category1;
@override
String get category2;
@override
String get category3;
/// Create a copy of CategoryCombinationItem
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$CategoryCombinationItemImplCopyWith<_$CategoryCombinationItemImpl>
get copyWith => throw _privateConstructorUsedError;
}
CategoryItem _$CategoryItemFromJson(Map<String, dynamic> json) {
return _CategoryItem.fromJson(json);
}
/// @nodoc
mixin _$CategoryItem {
String get id => throw _privateConstructorUsedError;
String get name => throw _privateConstructorUsedError;
String? get description => throw _privateConstructorUsedError;
/// Serializes this CategoryItem to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
/// Create a copy of CategoryItem
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$CategoryItemCopyWith<CategoryItem> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $CategoryItemCopyWith<$Res> {
factory $CategoryItemCopyWith(
CategoryItem value, $Res Function(CategoryItem) then) =
_$CategoryItemCopyWithImpl<$Res, CategoryItem>;
@useResult
$Res call({String id, String name, String? description});
}
/// @nodoc
class _$CategoryItemCopyWithImpl<$Res, $Val extends CategoryItem>
implements $CategoryItemCopyWith<$Res> {
_$CategoryItemCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of CategoryItem
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? id = null,
Object? name = null,
Object? description = freezed,
}) {
return _then(_value.copyWith(
id: null == id
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as String,
name: null == name
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String,
description: freezed == description
? _value.description
: description // ignore: cast_nullable_to_non_nullable
as String?,
) as $Val);
}
}
/// @nodoc
abstract class _$$CategoryItemImplCopyWith<$Res>
implements $CategoryItemCopyWith<$Res> {
factory _$$CategoryItemImplCopyWith(
_$CategoryItemImpl value, $Res Function(_$CategoryItemImpl) then) =
__$$CategoryItemImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({String id, String name, String? description});
}
/// @nodoc
class __$$CategoryItemImplCopyWithImpl<$Res>
extends _$CategoryItemCopyWithImpl<$Res, _$CategoryItemImpl>
implements _$$CategoryItemImplCopyWith<$Res> {
__$$CategoryItemImplCopyWithImpl(
_$CategoryItemImpl _value, $Res Function(_$CategoryItemImpl) _then)
: super(_value, _then);
/// Create a copy of CategoryItem
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? id = null,
Object? name = null,
Object? description = freezed,
}) {
return _then(_$CategoryItemImpl(
id: null == id
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as String,
name: null == name
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String,
description: freezed == description
? _value.description
: description // ignore: cast_nullable_to_non_nullable
as String?,
));
}
}
/// @nodoc
@JsonSerializable()
class _$CategoryItemImpl implements _CategoryItem {
const _$CategoryItemImpl(
{required this.id, required this.name, this.description});
factory _$CategoryItemImpl.fromJson(Map<String, dynamic> json) =>
_$$CategoryItemImplFromJson(json);
@override
final String id;
@override
final String name;
@override
final String? description;
@override
String toString() {
return 'CategoryItem(id: $id, name: $name, description: $description)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$CategoryItemImpl &&
(identical(other.id, id) || other.id == id) &&
(identical(other.name, name) || other.name == name) &&
(identical(other.description, description) ||
other.description == description));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType, id, name, description);
/// Create a copy of CategoryItem
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$CategoryItemImplCopyWith<_$CategoryItemImpl> get copyWith =>
__$$CategoryItemImplCopyWithImpl<_$CategoryItemImpl>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$CategoryItemImplToJson(
this,
);
}
}
abstract class _CategoryItem implements CategoryItem {
const factory _CategoryItem(
{required final String id,
required final String name,
final String? description}) = _$CategoryItemImpl;
factory _CategoryItem.fromJson(Map<String, dynamic> json) =
_$CategoryItemImpl.fromJson;
@override
String get id;
@override
String get name;
@override
String? get description;
/// Create a copy of CategoryItem
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$CategoryItemImplCopyWith<_$CategoryItemImpl> get copyWith =>
throw _privateConstructorUsedError;
}
StatusItem _$StatusItemFromJson(Map<String, dynamic> json) {
return _StatusItem.fromJson(json);
}
/// @nodoc
mixin _$StatusItem {
String get id => throw _privateConstructorUsedError;
String get name => throw _privateConstructorUsedError;
String? get description => throw _privateConstructorUsedError;
/// Serializes this StatusItem to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
/// Create a copy of StatusItem
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$StatusItemCopyWith<StatusItem> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $StatusItemCopyWith<$Res> {
factory $StatusItemCopyWith(
StatusItem value, $Res Function(StatusItem) then) =
_$StatusItemCopyWithImpl<$Res, StatusItem>;
@useResult
$Res call({String id, String name, String? description});
}
/// @nodoc
class _$StatusItemCopyWithImpl<$Res, $Val extends StatusItem>
implements $StatusItemCopyWith<$Res> {
_$StatusItemCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of StatusItem
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? id = null,
Object? name = null,
Object? description = freezed,
}) {
return _then(_value.copyWith(
id: null == id
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as String,
name: null == name
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String,
description: freezed == description
? _value.description
: description // ignore: cast_nullable_to_non_nullable
as String?,
) as $Val);
}
}
/// @nodoc
abstract class _$$StatusItemImplCopyWith<$Res>
implements $StatusItemCopyWith<$Res> {
factory _$$StatusItemImplCopyWith(
_$StatusItemImpl value, $Res Function(_$StatusItemImpl) then) =
__$$StatusItemImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({String id, String name, String? description});
}
/// @nodoc
class __$$StatusItemImplCopyWithImpl<$Res>
extends _$StatusItemCopyWithImpl<$Res, _$StatusItemImpl>
implements _$$StatusItemImplCopyWith<$Res> {
__$$StatusItemImplCopyWithImpl(
_$StatusItemImpl _value, $Res Function(_$StatusItemImpl) _then)
: super(_value, _then);
/// Create a copy of StatusItem
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? id = null,
Object? name = null,
Object? description = freezed,
}) {
return _then(_$StatusItemImpl(
id: null == id
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as String,
name: null == name
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String,
description: freezed == description
? _value.description
: description // ignore: cast_nullable_to_non_nullable
as String?,
));
}
}
/// @nodoc
@JsonSerializable()
class _$StatusItemImpl implements _StatusItem {
const _$StatusItemImpl(
{required this.id, required this.name, this.description});
factory _$StatusItemImpl.fromJson(Map<String, dynamic> json) =>
_$$StatusItemImplFromJson(json);
@override
final String id;
@override
final String name;
@override
final String? description;
@override
String toString() {
return 'StatusItem(id: $id, name: $name, description: $description)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$StatusItemImpl &&
(identical(other.id, id) || other.id == id) &&
(identical(other.name, name) || other.name == name) &&
(identical(other.description, description) ||
other.description == description));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType, id, name, description);
/// Create a copy of StatusItem
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$StatusItemImplCopyWith<_$StatusItemImpl> get copyWith =>
__$$StatusItemImplCopyWithImpl<_$StatusItemImpl>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$StatusItemImplToJson(
this,
);
}
}
abstract class _StatusItem implements StatusItem {
const factory _StatusItem(
{required final String id,
required final String name,
final String? description}) = _$StatusItemImpl;
factory _StatusItem.fromJson(Map<String, dynamic> json) =
_$StatusItemImpl.fromJson;
@override
String get id;
@override
String get name;
@override
String? get description;
/// Create a copy of StatusItem
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$StatusItemImplCopyWith<_$StatusItemImpl> get copyWith =>
throw _privateConstructorUsedError;
}