- Equipment 관련 DTO 모델 생성 (Request/Response/List/History/In/Out/IO) - EquipmentRemoteDataSource 구현 (10개 API 엔드포인트) - EquipmentService 비즈니스 로직 구현 - Controller를 ChangeNotifier 패턴으로 개선 - 장비 목록 화면에 Provider 패턴 및 무한 스크롤 적용 - 장비 입고 화면 API 연동 및 비동기 처리 - DI 컨테이너에 Equipment 관련 의존성 등록 - API/Mock 데이터 소스 전환 가능 (Feature Flag) - API 통합 진행 상황 문서 업데이트
296 lines
10 KiB
Dart
296 lines
10 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 'equipment_io_response.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');
|
|
|
|
EquipmentIoResponse _$EquipmentIoResponseFromJson(Map<String, dynamic> json) {
|
|
return _EquipmentIoResponse.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$EquipmentIoResponse {
|
|
bool get success => throw _privateConstructorUsedError;
|
|
String get message => throw _privateConstructorUsedError;
|
|
int get transactionId => throw _privateConstructorUsedError;
|
|
int get equipmentId => throw _privateConstructorUsedError;
|
|
int get quantity => throw _privateConstructorUsedError;
|
|
String get transactionType => throw _privateConstructorUsedError;
|
|
DateTime get transactionDate => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this EquipmentIoResponse to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of EquipmentIoResponse
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$EquipmentIoResponseCopyWith<EquipmentIoResponse> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $EquipmentIoResponseCopyWith<$Res> {
|
|
factory $EquipmentIoResponseCopyWith(
|
|
EquipmentIoResponse value, $Res Function(EquipmentIoResponse) then) =
|
|
_$EquipmentIoResponseCopyWithImpl<$Res, EquipmentIoResponse>;
|
|
@useResult
|
|
$Res call(
|
|
{bool success,
|
|
String message,
|
|
int transactionId,
|
|
int equipmentId,
|
|
int quantity,
|
|
String transactionType,
|
|
DateTime transactionDate});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$EquipmentIoResponseCopyWithImpl<$Res, $Val extends EquipmentIoResponse>
|
|
implements $EquipmentIoResponseCopyWith<$Res> {
|
|
_$EquipmentIoResponseCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of EquipmentIoResponse
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? success = null,
|
|
Object? message = null,
|
|
Object? transactionId = null,
|
|
Object? equipmentId = null,
|
|
Object? quantity = null,
|
|
Object? transactionType = null,
|
|
Object? transactionDate = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
success: null == success
|
|
? _value.success
|
|
: success // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
message: null == message
|
|
? _value.message
|
|
: message // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
transactionId: null == transactionId
|
|
? _value.transactionId
|
|
: transactionId // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
equipmentId: null == equipmentId
|
|
? _value.equipmentId
|
|
: equipmentId // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
quantity: null == quantity
|
|
? _value.quantity
|
|
: quantity // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
transactionType: null == transactionType
|
|
? _value.transactionType
|
|
: transactionType // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
transactionDate: null == transactionDate
|
|
? _value.transactionDate
|
|
: transactionDate // ignore: cast_nullable_to_non_nullable
|
|
as DateTime,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$EquipmentIoResponseImplCopyWith<$Res>
|
|
implements $EquipmentIoResponseCopyWith<$Res> {
|
|
factory _$$EquipmentIoResponseImplCopyWith(_$EquipmentIoResponseImpl value,
|
|
$Res Function(_$EquipmentIoResponseImpl) then) =
|
|
__$$EquipmentIoResponseImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{bool success,
|
|
String message,
|
|
int transactionId,
|
|
int equipmentId,
|
|
int quantity,
|
|
String transactionType,
|
|
DateTime transactionDate});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$EquipmentIoResponseImplCopyWithImpl<$Res>
|
|
extends _$EquipmentIoResponseCopyWithImpl<$Res, _$EquipmentIoResponseImpl>
|
|
implements _$$EquipmentIoResponseImplCopyWith<$Res> {
|
|
__$$EquipmentIoResponseImplCopyWithImpl(_$EquipmentIoResponseImpl _value,
|
|
$Res Function(_$EquipmentIoResponseImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of EquipmentIoResponse
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? success = null,
|
|
Object? message = null,
|
|
Object? transactionId = null,
|
|
Object? equipmentId = null,
|
|
Object? quantity = null,
|
|
Object? transactionType = null,
|
|
Object? transactionDate = null,
|
|
}) {
|
|
return _then(_$EquipmentIoResponseImpl(
|
|
success: null == success
|
|
? _value.success
|
|
: success // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
message: null == message
|
|
? _value.message
|
|
: message // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
transactionId: null == transactionId
|
|
? _value.transactionId
|
|
: transactionId // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
equipmentId: null == equipmentId
|
|
? _value.equipmentId
|
|
: equipmentId // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
quantity: null == quantity
|
|
? _value.quantity
|
|
: quantity // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
transactionType: null == transactionType
|
|
? _value.transactionType
|
|
: transactionType // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
transactionDate: null == transactionDate
|
|
? _value.transactionDate
|
|
: transactionDate // ignore: cast_nullable_to_non_nullable
|
|
as DateTime,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$EquipmentIoResponseImpl implements _EquipmentIoResponse {
|
|
const _$EquipmentIoResponseImpl(
|
|
{required this.success,
|
|
required this.message,
|
|
required this.transactionId,
|
|
required this.equipmentId,
|
|
required this.quantity,
|
|
required this.transactionType,
|
|
required this.transactionDate});
|
|
|
|
factory _$EquipmentIoResponseImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$EquipmentIoResponseImplFromJson(json);
|
|
|
|
@override
|
|
final bool success;
|
|
@override
|
|
final String message;
|
|
@override
|
|
final int transactionId;
|
|
@override
|
|
final int equipmentId;
|
|
@override
|
|
final int quantity;
|
|
@override
|
|
final String transactionType;
|
|
@override
|
|
final DateTime transactionDate;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'EquipmentIoResponse(success: $success, message: $message, transactionId: $transactionId, equipmentId: $equipmentId, quantity: $quantity, transactionType: $transactionType, transactionDate: $transactionDate)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$EquipmentIoResponseImpl &&
|
|
(identical(other.success, success) || other.success == success) &&
|
|
(identical(other.message, message) || other.message == message) &&
|
|
(identical(other.transactionId, transactionId) ||
|
|
other.transactionId == transactionId) &&
|
|
(identical(other.equipmentId, equipmentId) ||
|
|
other.equipmentId == equipmentId) &&
|
|
(identical(other.quantity, quantity) ||
|
|
other.quantity == quantity) &&
|
|
(identical(other.transactionType, transactionType) ||
|
|
other.transactionType == transactionType) &&
|
|
(identical(other.transactionDate, transactionDate) ||
|
|
other.transactionDate == transactionDate));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, success, message, transactionId,
|
|
equipmentId, quantity, transactionType, transactionDate);
|
|
|
|
/// Create a copy of EquipmentIoResponse
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$EquipmentIoResponseImplCopyWith<_$EquipmentIoResponseImpl> get copyWith =>
|
|
__$$EquipmentIoResponseImplCopyWithImpl<_$EquipmentIoResponseImpl>(
|
|
this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$EquipmentIoResponseImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _EquipmentIoResponse implements EquipmentIoResponse {
|
|
const factory _EquipmentIoResponse(
|
|
{required final bool success,
|
|
required final String message,
|
|
required final int transactionId,
|
|
required final int equipmentId,
|
|
required final int quantity,
|
|
required final String transactionType,
|
|
required final DateTime transactionDate}) = _$EquipmentIoResponseImpl;
|
|
|
|
factory _EquipmentIoResponse.fromJson(Map<String, dynamic> json) =
|
|
_$EquipmentIoResponseImpl.fromJson;
|
|
|
|
@override
|
|
bool get success;
|
|
@override
|
|
String get message;
|
|
@override
|
|
int get transactionId;
|
|
@override
|
|
int get equipmentId;
|
|
@override
|
|
int get quantity;
|
|
@override
|
|
String get transactionType;
|
|
@override
|
|
DateTime get transactionDate;
|
|
|
|
/// Create a copy of EquipmentIoResponse
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$EquipmentIoResponseImplCopyWith<_$EquipmentIoResponseImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|