Files
superport/lib/data/models/dashboard/recent_activity.freezed.dart
JiWoong Sul a13c485302 feat: API 통합 2차 작업 완료
- 자동 로그인 구현: 앱 시작 시 토큰 확인 후 적절한 화면으로 라우팅
- AuthInterceptor 개선: AuthService와 통합하여 토큰 관리 일원화
- 로그아웃 기능 개선: AuthService를 사용한 API 로그아웃 처리
- 대시보드 API 연동: MockDataService에서 실제 API로 완전 전환
  - Dashboard DTO 모델 생성 (OverviewStats, RecentActivity 등)
  - DashboardRemoteDataSource 및 DashboardService 구현
  - OverviewController를 ChangeNotifier 패턴으로 개선
  - OverviewScreenRedesign에 Provider 패턴 적용
- API 통합 진행 상황 문서 업데이트
2025-07-24 15:55:05 +09:00

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 'recent_activity.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');
RecentActivity _$RecentActivityFromJson(Map<String, dynamic> json) {
return _RecentActivity.fromJson(json);
}
/// @nodoc
mixin _$RecentActivity {
int get id => throw _privateConstructorUsedError;
@JsonKey(name: 'activity_type')
String get activityType => throw _privateConstructorUsedError;
String get description => throw _privateConstructorUsedError;
@JsonKey(name: 'user_name')
String get userName => throw _privateConstructorUsedError;
@JsonKey(name: 'created_at')
DateTime get createdAt => throw _privateConstructorUsedError;
Map<String, dynamic>? get metadata => throw _privateConstructorUsedError;
/// Serializes this RecentActivity to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
/// Create a copy of RecentActivity
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$RecentActivityCopyWith<RecentActivity> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $RecentActivityCopyWith<$Res> {
factory $RecentActivityCopyWith(
RecentActivity value, $Res Function(RecentActivity) then) =
_$RecentActivityCopyWithImpl<$Res, RecentActivity>;
@useResult
$Res call(
{int id,
@JsonKey(name: 'activity_type') String activityType,
String description,
@JsonKey(name: 'user_name') String userName,
@JsonKey(name: 'created_at') DateTime createdAt,
Map<String, dynamic>? metadata});
}
/// @nodoc
class _$RecentActivityCopyWithImpl<$Res, $Val extends RecentActivity>
implements $RecentActivityCopyWith<$Res> {
_$RecentActivityCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of RecentActivity
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? id = null,
Object? activityType = null,
Object? description = null,
Object? userName = null,
Object? createdAt = null,
Object? metadata = freezed,
}) {
return _then(_value.copyWith(
id: null == id
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as int,
activityType: null == activityType
? _value.activityType
: activityType // ignore: cast_nullable_to_non_nullable
as String,
description: null == description
? _value.description
: description // ignore: cast_nullable_to_non_nullable
as String,
userName: null == userName
? _value.userName
: userName // ignore: cast_nullable_to_non_nullable
as String,
createdAt: null == createdAt
? _value.createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as DateTime,
metadata: freezed == metadata
? _value.metadata
: metadata // ignore: cast_nullable_to_non_nullable
as Map<String, dynamic>?,
) as $Val);
}
}
/// @nodoc
abstract class _$$RecentActivityImplCopyWith<$Res>
implements $RecentActivityCopyWith<$Res> {
factory _$$RecentActivityImplCopyWith(_$RecentActivityImpl value,
$Res Function(_$RecentActivityImpl) then) =
__$$RecentActivityImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
{int id,
@JsonKey(name: 'activity_type') String activityType,
String description,
@JsonKey(name: 'user_name') String userName,
@JsonKey(name: 'created_at') DateTime createdAt,
Map<String, dynamic>? metadata});
}
/// @nodoc
class __$$RecentActivityImplCopyWithImpl<$Res>
extends _$RecentActivityCopyWithImpl<$Res, _$RecentActivityImpl>
implements _$$RecentActivityImplCopyWith<$Res> {
__$$RecentActivityImplCopyWithImpl(
_$RecentActivityImpl _value, $Res Function(_$RecentActivityImpl) _then)
: super(_value, _then);
/// Create a copy of RecentActivity
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? id = null,
Object? activityType = null,
Object? description = null,
Object? userName = null,
Object? createdAt = null,
Object? metadata = freezed,
}) {
return _then(_$RecentActivityImpl(
id: null == id
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as int,
activityType: null == activityType
? _value.activityType
: activityType // ignore: cast_nullable_to_non_nullable
as String,
description: null == description
? _value.description
: description // ignore: cast_nullable_to_non_nullable
as String,
userName: null == userName
? _value.userName
: userName // ignore: cast_nullable_to_non_nullable
as String,
createdAt: null == createdAt
? _value.createdAt
: createdAt // ignore: cast_nullable_to_non_nullable
as DateTime,
metadata: freezed == metadata
? _value._metadata
: metadata // ignore: cast_nullable_to_non_nullable
as Map<String, dynamic>?,
));
}
}
/// @nodoc
@JsonSerializable()
class _$RecentActivityImpl implements _RecentActivity {
const _$RecentActivityImpl(
{required this.id,
@JsonKey(name: 'activity_type') required this.activityType,
required this.description,
@JsonKey(name: 'user_name') required this.userName,
@JsonKey(name: 'created_at') required this.createdAt,
final Map<String, dynamic>? metadata})
: _metadata = metadata;
factory _$RecentActivityImpl.fromJson(Map<String, dynamic> json) =>
_$$RecentActivityImplFromJson(json);
@override
final int id;
@override
@JsonKey(name: 'activity_type')
final String activityType;
@override
final String description;
@override
@JsonKey(name: 'user_name')
final String userName;
@override
@JsonKey(name: 'created_at')
final DateTime createdAt;
final Map<String, dynamic>? _metadata;
@override
Map<String, dynamic>? get metadata {
final value = _metadata;
if (value == null) return null;
if (_metadata is EqualUnmodifiableMapView) return _metadata;
// ignore: implicit_dynamic_type
return EqualUnmodifiableMapView(value);
}
@override
String toString() {
return 'RecentActivity(id: $id, activityType: $activityType, description: $description, userName: $userName, createdAt: $createdAt, metadata: $metadata)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$RecentActivityImpl &&
(identical(other.id, id) || other.id == id) &&
(identical(other.activityType, activityType) ||
other.activityType == activityType) &&
(identical(other.description, description) ||
other.description == description) &&
(identical(other.userName, userName) ||
other.userName == userName) &&
(identical(other.createdAt, createdAt) ||
other.createdAt == createdAt) &&
const DeepCollectionEquality().equals(other._metadata, _metadata));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType, id, activityType, description,
userName, createdAt, const DeepCollectionEquality().hash(_metadata));
/// Create a copy of RecentActivity
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$RecentActivityImplCopyWith<_$RecentActivityImpl> get copyWith =>
__$$RecentActivityImplCopyWithImpl<_$RecentActivityImpl>(
this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$RecentActivityImplToJson(
this,
);
}
}
abstract class _RecentActivity implements RecentActivity {
const factory _RecentActivity(
{required final int id,
@JsonKey(name: 'activity_type') required final String activityType,
required final String description,
@JsonKey(name: 'user_name') required final String userName,
@JsonKey(name: 'created_at') required final DateTime createdAt,
final Map<String, dynamic>? metadata}) = _$RecentActivityImpl;
factory _RecentActivity.fromJson(Map<String, dynamic> json) =
_$RecentActivityImpl.fromJson;
@override
int get id;
@override
@JsonKey(name: 'activity_type')
String get activityType;
@override
String get description;
@override
@JsonKey(name: 'user_name')
String get userName;
@override
@JsonKey(name: 'created_at')
DateTime get createdAt;
@override
Map<String, dynamic>? get metadata;
/// Create a copy of RecentActivity
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$RecentActivityImplCopyWith<_$RecentActivityImpl> get copyWith =>
throw _privateConstructorUsedError;
}