- 자동 로그인 구현: 앱 시작 시 토큰 확인 후 적절한 화면으로 라우팅 - AuthInterceptor 개선: AuthService와 통합하여 토큰 관리 일원화 - 로그아웃 기능 개선: AuthService를 사용한 API 로그아웃 처리 - 대시보드 API 연동: MockDataService에서 실제 API로 완전 전환 - Dashboard DTO 모델 생성 (OverviewStats, RecentActivity 등) - DashboardRemoteDataSource 및 DashboardService 구현 - OverviewController를 ChangeNotifier 패턴으로 개선 - OverviewScreenRedesign에 Provider 패턴 적용 - API 통합 진행 상황 문서 업데이트
247 lines
8.5 KiB
Dart
247 lines
8.5 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_status_distribution.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');
|
|
|
|
EquipmentStatusDistribution _$EquipmentStatusDistributionFromJson(
|
|
Map<String, dynamic> json) {
|
|
return _EquipmentStatusDistribution.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$EquipmentStatusDistribution {
|
|
int get available => throw _privateConstructorUsedError;
|
|
@JsonKey(name: 'in_use')
|
|
int get inUse => throw _privateConstructorUsedError;
|
|
int get maintenance => throw _privateConstructorUsedError;
|
|
int get disposed => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this EquipmentStatusDistribution to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of EquipmentStatusDistribution
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$EquipmentStatusDistributionCopyWith<EquipmentStatusDistribution>
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $EquipmentStatusDistributionCopyWith<$Res> {
|
|
factory $EquipmentStatusDistributionCopyWith(
|
|
EquipmentStatusDistribution value,
|
|
$Res Function(EquipmentStatusDistribution) then) =
|
|
_$EquipmentStatusDistributionCopyWithImpl<$Res,
|
|
EquipmentStatusDistribution>;
|
|
@useResult
|
|
$Res call(
|
|
{int available,
|
|
@JsonKey(name: 'in_use') int inUse,
|
|
int maintenance,
|
|
int disposed});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$EquipmentStatusDistributionCopyWithImpl<$Res,
|
|
$Val extends EquipmentStatusDistribution>
|
|
implements $EquipmentStatusDistributionCopyWith<$Res> {
|
|
_$EquipmentStatusDistributionCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of EquipmentStatusDistribution
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? available = null,
|
|
Object? inUse = null,
|
|
Object? maintenance = null,
|
|
Object? disposed = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
available: null == available
|
|
? _value.available
|
|
: available // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
inUse: null == inUse
|
|
? _value.inUse
|
|
: inUse // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
maintenance: null == maintenance
|
|
? _value.maintenance
|
|
: maintenance // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
disposed: null == disposed
|
|
? _value.disposed
|
|
: disposed // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$EquipmentStatusDistributionImplCopyWith<$Res>
|
|
implements $EquipmentStatusDistributionCopyWith<$Res> {
|
|
factory _$$EquipmentStatusDistributionImplCopyWith(
|
|
_$EquipmentStatusDistributionImpl value,
|
|
$Res Function(_$EquipmentStatusDistributionImpl) then) =
|
|
__$$EquipmentStatusDistributionImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{int available,
|
|
@JsonKey(name: 'in_use') int inUse,
|
|
int maintenance,
|
|
int disposed});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$EquipmentStatusDistributionImplCopyWithImpl<$Res>
|
|
extends _$EquipmentStatusDistributionCopyWithImpl<$Res,
|
|
_$EquipmentStatusDistributionImpl>
|
|
implements _$$EquipmentStatusDistributionImplCopyWith<$Res> {
|
|
__$$EquipmentStatusDistributionImplCopyWithImpl(
|
|
_$EquipmentStatusDistributionImpl _value,
|
|
$Res Function(_$EquipmentStatusDistributionImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of EquipmentStatusDistribution
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? available = null,
|
|
Object? inUse = null,
|
|
Object? maintenance = null,
|
|
Object? disposed = null,
|
|
}) {
|
|
return _then(_$EquipmentStatusDistributionImpl(
|
|
available: null == available
|
|
? _value.available
|
|
: available // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
inUse: null == inUse
|
|
? _value.inUse
|
|
: inUse // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
maintenance: null == maintenance
|
|
? _value.maintenance
|
|
: maintenance // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
disposed: null == disposed
|
|
? _value.disposed
|
|
: disposed // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$EquipmentStatusDistributionImpl
|
|
implements _EquipmentStatusDistribution {
|
|
const _$EquipmentStatusDistributionImpl(
|
|
{required this.available,
|
|
@JsonKey(name: 'in_use') required this.inUse,
|
|
required this.maintenance,
|
|
required this.disposed});
|
|
|
|
factory _$EquipmentStatusDistributionImpl.fromJson(
|
|
Map<String, dynamic> json) =>
|
|
_$$EquipmentStatusDistributionImplFromJson(json);
|
|
|
|
@override
|
|
final int available;
|
|
@override
|
|
@JsonKey(name: 'in_use')
|
|
final int inUse;
|
|
@override
|
|
final int maintenance;
|
|
@override
|
|
final int disposed;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'EquipmentStatusDistribution(available: $available, inUse: $inUse, maintenance: $maintenance, disposed: $disposed)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$EquipmentStatusDistributionImpl &&
|
|
(identical(other.available, available) ||
|
|
other.available == available) &&
|
|
(identical(other.inUse, inUse) || other.inUse == inUse) &&
|
|
(identical(other.maintenance, maintenance) ||
|
|
other.maintenance == maintenance) &&
|
|
(identical(other.disposed, disposed) ||
|
|
other.disposed == disposed));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode =>
|
|
Object.hash(runtimeType, available, inUse, maintenance, disposed);
|
|
|
|
/// Create a copy of EquipmentStatusDistribution
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$EquipmentStatusDistributionImplCopyWith<_$EquipmentStatusDistributionImpl>
|
|
get copyWith => __$$EquipmentStatusDistributionImplCopyWithImpl<
|
|
_$EquipmentStatusDistributionImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$EquipmentStatusDistributionImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _EquipmentStatusDistribution
|
|
implements EquipmentStatusDistribution {
|
|
const factory _EquipmentStatusDistribution(
|
|
{required final int available,
|
|
@JsonKey(name: 'in_use') required final int inUse,
|
|
required final int maintenance,
|
|
required final int disposed}) = _$EquipmentStatusDistributionImpl;
|
|
|
|
factory _EquipmentStatusDistribution.fromJson(Map<String, dynamic> json) =
|
|
_$EquipmentStatusDistributionImpl.fromJson;
|
|
|
|
@override
|
|
int get available;
|
|
@override
|
|
@JsonKey(name: 'in_use')
|
|
int get inUse;
|
|
@override
|
|
int get maintenance;
|
|
@override
|
|
int get disposed;
|
|
|
|
/// Create a copy of EquipmentStatusDistribution
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$EquipmentStatusDistributionImplCopyWith<_$EquipmentStatusDistributionImpl>
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
}
|