주요 변경사항: - Company-Branch → 계층형 Company 구조 완전 마이그레이션 - Equipment 모델 필드명 표준화 (current_company_id → company_id) - DropdownButton assertion 오류 완전 해결 - 지점 추가 드롭다운 페이지네이션 문제 해결 (20개→55개 전체 표시) - Equipment 백엔드 API 데이터 활용도 40%→100% 달성 - 소프트 딜리트 시스템 안정성 향상 기술적 개선: - Branch 관련 deprecated 메서드 정리 - Equipment Status 유효성 검증 로직 추가 - Company 리스트 페이지네이션 최적화 - DTO 모델 Freezed 코드 생성 완료 - 테스트 파일 API 구조 변경 대응 성과: - Flutter 웹 빌드 성공 (컴파일 에러 0건) - 백엔드 API 호환성 95% 달성 - 시스템 안정성 및 사용자 경험 대폭 개선
226 lines
7.8 KiB
Dart
226 lines
7.8 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_out_request.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');
|
|
|
|
EquipmentOutRequest _$EquipmentOutRequestFromJson(Map<String, dynamic> json) {
|
|
return _EquipmentOutRequest.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$EquipmentOutRequest {
|
|
int get equipmentId => throw _privateConstructorUsedError;
|
|
int get quantity => throw _privateConstructorUsedError;
|
|
int get companyId => throw _privateConstructorUsedError;
|
|
String? get notes => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this EquipmentOutRequest to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of EquipmentOutRequest
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$EquipmentOutRequestCopyWith<EquipmentOutRequest> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $EquipmentOutRequestCopyWith<$Res> {
|
|
factory $EquipmentOutRequestCopyWith(
|
|
EquipmentOutRequest value, $Res Function(EquipmentOutRequest) then) =
|
|
_$EquipmentOutRequestCopyWithImpl<$Res, EquipmentOutRequest>;
|
|
@useResult
|
|
$Res call({int equipmentId, int quantity, int companyId, String? notes});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$EquipmentOutRequestCopyWithImpl<$Res, $Val extends EquipmentOutRequest>
|
|
implements $EquipmentOutRequestCopyWith<$Res> {
|
|
_$EquipmentOutRequestCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of EquipmentOutRequest
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? equipmentId = null,
|
|
Object? quantity = null,
|
|
Object? companyId = null,
|
|
Object? notes = freezed,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
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,
|
|
companyId: null == companyId
|
|
? _value.companyId
|
|
: companyId // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
notes: freezed == notes
|
|
? _value.notes
|
|
: notes // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$EquipmentOutRequestImplCopyWith<$Res>
|
|
implements $EquipmentOutRequestCopyWith<$Res> {
|
|
factory _$$EquipmentOutRequestImplCopyWith(_$EquipmentOutRequestImpl value,
|
|
$Res Function(_$EquipmentOutRequestImpl) then) =
|
|
__$$EquipmentOutRequestImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({int equipmentId, int quantity, int companyId, String? notes});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$EquipmentOutRequestImplCopyWithImpl<$Res>
|
|
extends _$EquipmentOutRequestCopyWithImpl<$Res, _$EquipmentOutRequestImpl>
|
|
implements _$$EquipmentOutRequestImplCopyWith<$Res> {
|
|
__$$EquipmentOutRequestImplCopyWithImpl(_$EquipmentOutRequestImpl _value,
|
|
$Res Function(_$EquipmentOutRequestImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of EquipmentOutRequest
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? equipmentId = null,
|
|
Object? quantity = null,
|
|
Object? companyId = null,
|
|
Object? notes = freezed,
|
|
}) {
|
|
return _then(_$EquipmentOutRequestImpl(
|
|
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,
|
|
companyId: null == companyId
|
|
? _value.companyId
|
|
: companyId // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
notes: freezed == notes
|
|
? _value.notes
|
|
: notes // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$EquipmentOutRequestImpl implements _EquipmentOutRequest {
|
|
const _$EquipmentOutRequestImpl(
|
|
{required this.equipmentId,
|
|
required this.quantity,
|
|
required this.companyId,
|
|
this.notes});
|
|
|
|
factory _$EquipmentOutRequestImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$EquipmentOutRequestImplFromJson(json);
|
|
|
|
@override
|
|
final int equipmentId;
|
|
@override
|
|
final int quantity;
|
|
@override
|
|
final int companyId;
|
|
@override
|
|
final String? notes;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'EquipmentOutRequest(equipmentId: $equipmentId, quantity: $quantity, companyId: $companyId, notes: $notes)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$EquipmentOutRequestImpl &&
|
|
(identical(other.equipmentId, equipmentId) ||
|
|
other.equipmentId == equipmentId) &&
|
|
(identical(other.quantity, quantity) ||
|
|
other.quantity == quantity) &&
|
|
(identical(other.companyId, companyId) ||
|
|
other.companyId == companyId) &&
|
|
(identical(other.notes, notes) || other.notes == notes));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode =>
|
|
Object.hash(runtimeType, equipmentId, quantity, companyId, notes);
|
|
|
|
/// Create a copy of EquipmentOutRequest
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$EquipmentOutRequestImplCopyWith<_$EquipmentOutRequestImpl> get copyWith =>
|
|
__$$EquipmentOutRequestImplCopyWithImpl<_$EquipmentOutRequestImpl>(
|
|
this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$EquipmentOutRequestImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _EquipmentOutRequest implements EquipmentOutRequest {
|
|
const factory _EquipmentOutRequest(
|
|
{required final int equipmentId,
|
|
required final int quantity,
|
|
required final int companyId,
|
|
final String? notes}) = _$EquipmentOutRequestImpl;
|
|
|
|
factory _EquipmentOutRequest.fromJson(Map<String, dynamic> json) =
|
|
_$EquipmentOutRequestImpl.fromJson;
|
|
|
|
@override
|
|
int get equipmentId;
|
|
@override
|
|
int get quantity;
|
|
@override
|
|
int get companyId;
|
|
@override
|
|
String? get notes;
|
|
|
|
/// Create a copy of EquipmentOutRequest
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$EquipmentOutRequestImplCopyWith<_$EquipmentOutRequestImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|