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