사용하지 않는 파일 정리 전 백업 (Phase 10 완료 후 상태)
This commit is contained in:
@@ -22,13 +22,10 @@ EquipmentResponse _$EquipmentResponseFromJson(Map<String, dynamic> json) {
|
||||
mixin _$EquipmentResponse {
|
||||
int get id => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'equipment_number')
|
||||
String get equipmentNumber => throw _privateConstructorUsedError;
|
||||
String? get category1 => throw _privateConstructorUsedError;
|
||||
String? get category2 => throw _privateConstructorUsedError;
|
||||
String? get category3 => throw _privateConstructorUsedError;
|
||||
String get manufacturer => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'model_name')
|
||||
String? get modelName => throw _privateConstructorUsedError;
|
||||
String get equipmentNumber =>
|
||||
throw _privateConstructorUsedError; // Sprint 3: Replaced category1/2/3, manufacturer, modelName with models_id and model
|
||||
@JsonKey(name: 'models_id')
|
||||
int? get modelsId => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'serial_number')
|
||||
String? get serialNumber => throw _privateConstructorUsedError;
|
||||
String? get barcode => throw _privateConstructorUsedError;
|
||||
@@ -55,7 +52,9 @@ mixin _$EquipmentResponse {
|
||||
@JsonKey(name: 'company_name')
|
||||
String? get companyName => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'warehouse_name')
|
||||
String? get warehouseName => throw _privateConstructorUsedError;
|
||||
String? get warehouseName =>
|
||||
throw _privateConstructorUsedError; // Sprint 3: Added model relationship (includes vendor info)
|
||||
ModelDto? get model => throw _privateConstructorUsedError;
|
||||
|
||||
/// Serializes this EquipmentResponse to a JSON map.
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
@@ -76,11 +75,7 @@ abstract class $EquipmentResponseCopyWith<$Res> {
|
||||
$Res call(
|
||||
{int id,
|
||||
@JsonKey(name: 'equipment_number') String equipmentNumber,
|
||||
String? category1,
|
||||
String? category2,
|
||||
String? category3,
|
||||
String manufacturer,
|
||||
@JsonKey(name: 'model_name') String? modelName,
|
||||
@JsonKey(name: 'models_id') int? modelsId,
|
||||
@JsonKey(name: 'serial_number') String? serialNumber,
|
||||
String? barcode,
|
||||
@JsonKey(name: 'purchase_date') DateTime? purchaseDate,
|
||||
@@ -94,7 +89,10 @@ abstract class $EquipmentResponseCopyWith<$Res> {
|
||||
@JsonKey(name: 'created_at') DateTime createdAt,
|
||||
@JsonKey(name: 'updated_at') DateTime updatedAt,
|
||||
@JsonKey(name: 'company_name') String? companyName,
|
||||
@JsonKey(name: 'warehouse_name') String? warehouseName});
|
||||
@JsonKey(name: 'warehouse_name') String? warehouseName,
|
||||
ModelDto? model});
|
||||
|
||||
$ModelDtoCopyWith<$Res>? get model;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -114,11 +112,7 @@ class _$EquipmentResponseCopyWithImpl<$Res, $Val extends EquipmentResponse>
|
||||
$Res call({
|
||||
Object? id = null,
|
||||
Object? equipmentNumber = null,
|
||||
Object? category1 = freezed,
|
||||
Object? category2 = freezed,
|
||||
Object? category3 = freezed,
|
||||
Object? manufacturer = null,
|
||||
Object? modelName = freezed,
|
||||
Object? modelsId = freezed,
|
||||
Object? serialNumber = freezed,
|
||||
Object? barcode = freezed,
|
||||
Object? purchaseDate = freezed,
|
||||
@@ -133,6 +127,7 @@ class _$EquipmentResponseCopyWithImpl<$Res, $Val extends EquipmentResponse>
|
||||
Object? updatedAt = null,
|
||||
Object? companyName = freezed,
|
||||
Object? warehouseName = freezed,
|
||||
Object? model = freezed,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
id: null == id
|
||||
@@ -143,26 +138,10 @@ class _$EquipmentResponseCopyWithImpl<$Res, $Val extends EquipmentResponse>
|
||||
? _value.equipmentNumber
|
||||
: equipmentNumber // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
category1: freezed == category1
|
||||
? _value.category1
|
||||
: category1 // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
category2: freezed == category2
|
||||
? _value.category2
|
||||
: category2 // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
category3: freezed == category3
|
||||
? _value.category3
|
||||
: category3 // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
manufacturer: null == manufacturer
|
||||
? _value.manufacturer
|
||||
: manufacturer // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
modelName: freezed == modelName
|
||||
? _value.modelName
|
||||
: modelName // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
modelsId: freezed == modelsId
|
||||
? _value.modelsId
|
||||
: modelsId // ignore: cast_nullable_to_non_nullable
|
||||
as int?,
|
||||
serialNumber: freezed == serialNumber
|
||||
? _value.serialNumber
|
||||
: serialNumber // ignore: cast_nullable_to_non_nullable
|
||||
@@ -219,8 +198,26 @@ class _$EquipmentResponseCopyWithImpl<$Res, $Val extends EquipmentResponse>
|
||||
? _value.warehouseName
|
||||
: warehouseName // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
model: freezed == model
|
||||
? _value.model
|
||||
: model // ignore: cast_nullable_to_non_nullable
|
||||
as ModelDto?,
|
||||
) as $Val);
|
||||
}
|
||||
|
||||
/// Create a copy of EquipmentResponse
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
$ModelDtoCopyWith<$Res>? get model {
|
||||
if (_value.model == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $ModelDtoCopyWith<$Res>(_value.model!, (value) {
|
||||
return _then(_value.copyWith(model: value) as $Val);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -234,11 +231,7 @@ abstract class _$$EquipmentResponseImplCopyWith<$Res>
|
||||
$Res call(
|
||||
{int id,
|
||||
@JsonKey(name: 'equipment_number') String equipmentNumber,
|
||||
String? category1,
|
||||
String? category2,
|
||||
String? category3,
|
||||
String manufacturer,
|
||||
@JsonKey(name: 'model_name') String? modelName,
|
||||
@JsonKey(name: 'models_id') int? modelsId,
|
||||
@JsonKey(name: 'serial_number') String? serialNumber,
|
||||
String? barcode,
|
||||
@JsonKey(name: 'purchase_date') DateTime? purchaseDate,
|
||||
@@ -252,7 +245,11 @@ abstract class _$$EquipmentResponseImplCopyWith<$Res>
|
||||
@JsonKey(name: 'created_at') DateTime createdAt,
|
||||
@JsonKey(name: 'updated_at') DateTime updatedAt,
|
||||
@JsonKey(name: 'company_name') String? companyName,
|
||||
@JsonKey(name: 'warehouse_name') String? warehouseName});
|
||||
@JsonKey(name: 'warehouse_name') String? warehouseName,
|
||||
ModelDto? model});
|
||||
|
||||
@override
|
||||
$ModelDtoCopyWith<$Res>? get model;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -270,11 +267,7 @@ class __$$EquipmentResponseImplCopyWithImpl<$Res>
|
||||
$Res call({
|
||||
Object? id = null,
|
||||
Object? equipmentNumber = null,
|
||||
Object? category1 = freezed,
|
||||
Object? category2 = freezed,
|
||||
Object? category3 = freezed,
|
||||
Object? manufacturer = null,
|
||||
Object? modelName = freezed,
|
||||
Object? modelsId = freezed,
|
||||
Object? serialNumber = freezed,
|
||||
Object? barcode = freezed,
|
||||
Object? purchaseDate = freezed,
|
||||
@@ -289,6 +282,7 @@ class __$$EquipmentResponseImplCopyWithImpl<$Res>
|
||||
Object? updatedAt = null,
|
||||
Object? companyName = freezed,
|
||||
Object? warehouseName = freezed,
|
||||
Object? model = freezed,
|
||||
}) {
|
||||
return _then(_$EquipmentResponseImpl(
|
||||
id: null == id
|
||||
@@ -299,26 +293,10 @@ class __$$EquipmentResponseImplCopyWithImpl<$Res>
|
||||
? _value.equipmentNumber
|
||||
: equipmentNumber // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
category1: freezed == category1
|
||||
? _value.category1
|
||||
: category1 // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
category2: freezed == category2
|
||||
? _value.category2
|
||||
: category2 // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
category3: freezed == category3
|
||||
? _value.category3
|
||||
: category3 // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
manufacturer: null == manufacturer
|
||||
? _value.manufacturer
|
||||
: manufacturer // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
modelName: freezed == modelName
|
||||
? _value.modelName
|
||||
: modelName // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
modelsId: freezed == modelsId
|
||||
? _value.modelsId
|
||||
: modelsId // ignore: cast_nullable_to_non_nullable
|
||||
as int?,
|
||||
serialNumber: freezed == serialNumber
|
||||
? _value.serialNumber
|
||||
: serialNumber // ignore: cast_nullable_to_non_nullable
|
||||
@@ -375,6 +353,10 @@ class __$$EquipmentResponseImplCopyWithImpl<$Res>
|
||||
? _value.warehouseName
|
||||
: warehouseName // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
model: freezed == model
|
||||
? _value.model
|
||||
: model // ignore: cast_nullable_to_non_nullable
|
||||
as ModelDto?,
|
||||
));
|
||||
}
|
||||
}
|
||||
@@ -385,11 +367,7 @@ class _$EquipmentResponseImpl implements _EquipmentResponse {
|
||||
const _$EquipmentResponseImpl(
|
||||
{required this.id,
|
||||
@JsonKey(name: 'equipment_number') required this.equipmentNumber,
|
||||
this.category1,
|
||||
this.category2,
|
||||
this.category3,
|
||||
required this.manufacturer,
|
||||
@JsonKey(name: 'model_name') this.modelName,
|
||||
@JsonKey(name: 'models_id') this.modelsId,
|
||||
@JsonKey(name: 'serial_number') this.serialNumber,
|
||||
this.barcode,
|
||||
@JsonKey(name: 'purchase_date') this.purchaseDate,
|
||||
@@ -403,7 +381,8 @@ class _$EquipmentResponseImpl implements _EquipmentResponse {
|
||||
@JsonKey(name: 'created_at') required this.createdAt,
|
||||
@JsonKey(name: 'updated_at') required this.updatedAt,
|
||||
@JsonKey(name: 'company_name') this.companyName,
|
||||
@JsonKey(name: 'warehouse_name') this.warehouseName});
|
||||
@JsonKey(name: 'warehouse_name') this.warehouseName,
|
||||
this.model});
|
||||
|
||||
factory _$EquipmentResponseImpl.fromJson(Map<String, dynamic> json) =>
|
||||
_$$EquipmentResponseImplFromJson(json);
|
||||
@@ -413,17 +392,10 @@ class _$EquipmentResponseImpl implements _EquipmentResponse {
|
||||
@override
|
||||
@JsonKey(name: 'equipment_number')
|
||||
final String equipmentNumber;
|
||||
// Sprint 3: Replaced category1/2/3, manufacturer, modelName with models_id and model
|
||||
@override
|
||||
final String? category1;
|
||||
@override
|
||||
final String? category2;
|
||||
@override
|
||||
final String? category3;
|
||||
@override
|
||||
final String manufacturer;
|
||||
@override
|
||||
@JsonKey(name: 'model_name')
|
||||
final String? modelName;
|
||||
@JsonKey(name: 'models_id')
|
||||
final int? modelsId;
|
||||
@override
|
||||
@JsonKey(name: 'serial_number')
|
||||
final String? serialNumber;
|
||||
@@ -465,10 +437,13 @@ class _$EquipmentResponseImpl implements _EquipmentResponse {
|
||||
@override
|
||||
@JsonKey(name: 'warehouse_name')
|
||||
final String? warehouseName;
|
||||
// Sprint 3: Added model relationship (includes vendor info)
|
||||
@override
|
||||
final ModelDto? model;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'EquipmentResponse(id: $id, equipmentNumber: $equipmentNumber, category1: $category1, category2: $category2, category3: $category3, manufacturer: $manufacturer, modelName: $modelName, serialNumber: $serialNumber, barcode: $barcode, purchaseDate: $purchaseDate, purchasePrice: $purchasePrice, status: $status, companyId: $companyId, warehouseLocationId: $warehouseLocationId, lastInspectionDate: $lastInspectionDate, nextInspectionDate: $nextInspectionDate, remark: $remark, createdAt: $createdAt, updatedAt: $updatedAt, companyName: $companyName, warehouseName: $warehouseName)';
|
||||
return 'EquipmentResponse(id: $id, equipmentNumber: $equipmentNumber, modelsId: $modelsId, serialNumber: $serialNumber, barcode: $barcode, purchaseDate: $purchaseDate, purchasePrice: $purchasePrice, status: $status, companyId: $companyId, warehouseLocationId: $warehouseLocationId, lastInspectionDate: $lastInspectionDate, nextInspectionDate: $nextInspectionDate, remark: $remark, createdAt: $createdAt, updatedAt: $updatedAt, companyName: $companyName, warehouseName: $warehouseName, model: $model)';
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -479,16 +454,8 @@ class _$EquipmentResponseImpl implements _EquipmentResponse {
|
||||
(identical(other.id, id) || other.id == id) &&
|
||||
(identical(other.equipmentNumber, equipmentNumber) ||
|
||||
other.equipmentNumber == equipmentNumber) &&
|
||||
(identical(other.category1, category1) ||
|
||||
other.category1 == category1) &&
|
||||
(identical(other.category2, category2) ||
|
||||
other.category2 == category2) &&
|
||||
(identical(other.category3, category3) ||
|
||||
other.category3 == category3) &&
|
||||
(identical(other.manufacturer, manufacturer) ||
|
||||
other.manufacturer == manufacturer) &&
|
||||
(identical(other.modelName, modelName) ||
|
||||
other.modelName == modelName) &&
|
||||
(identical(other.modelsId, modelsId) ||
|
||||
other.modelsId == modelsId) &&
|
||||
(identical(other.serialNumber, serialNumber) ||
|
||||
other.serialNumber == serialNumber) &&
|
||||
(identical(other.barcode, barcode) || other.barcode == barcode) &&
|
||||
@@ -513,35 +480,32 @@ class _$EquipmentResponseImpl implements _EquipmentResponse {
|
||||
(identical(other.companyName, companyName) ||
|
||||
other.companyName == companyName) &&
|
||||
(identical(other.warehouseName, warehouseName) ||
|
||||
other.warehouseName == warehouseName));
|
||||
other.warehouseName == warehouseName) &&
|
||||
(identical(other.model, model) || other.model == model));
|
||||
}
|
||||
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode => Object.hashAll([
|
||||
runtimeType,
|
||||
id,
|
||||
equipmentNumber,
|
||||
category1,
|
||||
category2,
|
||||
category3,
|
||||
manufacturer,
|
||||
modelName,
|
||||
serialNumber,
|
||||
barcode,
|
||||
purchaseDate,
|
||||
purchasePrice,
|
||||
status,
|
||||
companyId,
|
||||
warehouseLocationId,
|
||||
lastInspectionDate,
|
||||
nextInspectionDate,
|
||||
remark,
|
||||
createdAt,
|
||||
updatedAt,
|
||||
companyName,
|
||||
warehouseName
|
||||
]);
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType,
|
||||
id,
|
||||
equipmentNumber,
|
||||
modelsId,
|
||||
serialNumber,
|
||||
barcode,
|
||||
purchaseDate,
|
||||
purchasePrice,
|
||||
status,
|
||||
companyId,
|
||||
warehouseLocationId,
|
||||
lastInspectionDate,
|
||||
nextInspectionDate,
|
||||
remark,
|
||||
createdAt,
|
||||
updatedAt,
|
||||
companyName,
|
||||
warehouseName,
|
||||
model);
|
||||
|
||||
/// Create a copy of EquipmentResponse
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@@ -564,11 +528,7 @@ abstract class _EquipmentResponse implements EquipmentResponse {
|
||||
const factory _EquipmentResponse(
|
||||
{required final int id,
|
||||
@JsonKey(name: 'equipment_number') required final String equipmentNumber,
|
||||
final String? category1,
|
||||
final String? category2,
|
||||
final String? category3,
|
||||
required final String manufacturer,
|
||||
@JsonKey(name: 'model_name') final String? modelName,
|
||||
@JsonKey(name: 'models_id') final int? modelsId,
|
||||
@JsonKey(name: 'serial_number') final String? serialNumber,
|
||||
final String? barcode,
|
||||
@JsonKey(name: 'purchase_date') final DateTime? purchaseDate,
|
||||
@@ -582,8 +542,8 @@ abstract class _EquipmentResponse implements EquipmentResponse {
|
||||
@JsonKey(name: 'created_at') required final DateTime createdAt,
|
||||
@JsonKey(name: 'updated_at') required final DateTime updatedAt,
|
||||
@JsonKey(name: 'company_name') final String? companyName,
|
||||
@JsonKey(name: 'warehouse_name')
|
||||
final String? warehouseName}) = _$EquipmentResponseImpl;
|
||||
@JsonKey(name: 'warehouse_name') final String? warehouseName,
|
||||
final ModelDto? model}) = _$EquipmentResponseImpl;
|
||||
|
||||
factory _EquipmentResponse.fromJson(Map<String, dynamic> json) =
|
||||
_$EquipmentResponseImpl.fromJson;
|
||||
@@ -592,18 +552,11 @@ abstract class _EquipmentResponse implements EquipmentResponse {
|
||||
int get id;
|
||||
@override
|
||||
@JsonKey(name: 'equipment_number')
|
||||
String get equipmentNumber;
|
||||
String
|
||||
get equipmentNumber; // Sprint 3: Replaced category1/2/3, manufacturer, modelName with models_id and model
|
||||
@override
|
||||
String? get category1;
|
||||
@override
|
||||
String? get category2;
|
||||
@override
|
||||
String? get category3;
|
||||
@override
|
||||
String get manufacturer;
|
||||
@override
|
||||
@JsonKey(name: 'model_name')
|
||||
String? get modelName;
|
||||
@JsonKey(name: 'models_id')
|
||||
int? get modelsId;
|
||||
@override
|
||||
@JsonKey(name: 'serial_number')
|
||||
String? get serialNumber;
|
||||
@@ -643,7 +596,10 @@ abstract class _EquipmentResponse implements EquipmentResponse {
|
||||
String? get companyName;
|
||||
@override
|
||||
@JsonKey(name: 'warehouse_name')
|
||||
String? get warehouseName;
|
||||
String?
|
||||
get warehouseName; // Sprint 3: Added model relationship (includes vendor info)
|
||||
@override
|
||||
ModelDto? get model;
|
||||
|
||||
/// Create a copy of EquipmentResponse
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
|
||||
Reference in New Issue
Block a user