사용하지 않는 파일 정리 전 백업 (Phase 10 완료 후 상태)
This commit is contained in:
@@ -21,7 +21,8 @@ AuthUser _$AuthUserFromJson(Map<String, dynamic> json) {
|
||||
/// @nodoc
|
||||
mixin _$AuthUser {
|
||||
int get id => throw _privateConstructorUsedError;
|
||||
String get username => throw _privateConstructorUsedError;
|
||||
String? get username =>
|
||||
throw _privateConstructorUsedError; // API doesn't return username
|
||||
String get email => throw _privateConstructorUsedError;
|
||||
String get name => throw _privateConstructorUsedError;
|
||||
String get role => throw _privateConstructorUsedError;
|
||||
@@ -41,7 +42,7 @@ abstract class $AuthUserCopyWith<$Res> {
|
||||
factory $AuthUserCopyWith(AuthUser value, $Res Function(AuthUser) then) =
|
||||
_$AuthUserCopyWithImpl<$Res, AuthUser>;
|
||||
@useResult
|
||||
$Res call({int id, String username, String email, String name, String role});
|
||||
$Res call({int id, String? username, String email, String name, String role});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -60,7 +61,7 @@ class _$AuthUserCopyWithImpl<$Res, $Val extends AuthUser>
|
||||
@override
|
||||
$Res call({
|
||||
Object? id = null,
|
||||
Object? username = null,
|
||||
Object? username = freezed,
|
||||
Object? email = null,
|
||||
Object? name = null,
|
||||
Object? role = null,
|
||||
@@ -70,10 +71,10 @@ class _$AuthUserCopyWithImpl<$Res, $Val extends AuthUser>
|
||||
? _value.id
|
||||
: id // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
username: null == username
|
||||
username: freezed == username
|
||||
? _value.username
|
||||
: username // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
as String?,
|
||||
email: null == email
|
||||
? _value.email
|
||||
: email // ignore: cast_nullable_to_non_nullable
|
||||
@@ -98,7 +99,7 @@ abstract class _$$AuthUserImplCopyWith<$Res>
|
||||
__$$AuthUserImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call({int id, String username, String email, String name, String role});
|
||||
$Res call({int id, String? username, String email, String name, String role});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -115,7 +116,7 @@ class __$$AuthUserImplCopyWithImpl<$Res>
|
||||
@override
|
||||
$Res call({
|
||||
Object? id = null,
|
||||
Object? username = null,
|
||||
Object? username = freezed,
|
||||
Object? email = null,
|
||||
Object? name = null,
|
||||
Object? role = null,
|
||||
@@ -125,10 +126,10 @@ class __$$AuthUserImplCopyWithImpl<$Res>
|
||||
? _value.id
|
||||
: id // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
username: null == username
|
||||
username: freezed == username
|
||||
? _value.username
|
||||
: username // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
as String?,
|
||||
email: null == email
|
||||
? _value.email
|
||||
: email // ignore: cast_nullable_to_non_nullable
|
||||
@@ -150,10 +151,10 @@ class __$$AuthUserImplCopyWithImpl<$Res>
|
||||
class _$AuthUserImpl implements _AuthUser {
|
||||
const _$AuthUserImpl(
|
||||
{required this.id,
|
||||
required this.username,
|
||||
this.username,
|
||||
required this.email,
|
||||
required this.name,
|
||||
required this.role});
|
||||
this.role = 'admin'});
|
||||
|
||||
factory _$AuthUserImpl.fromJson(Map<String, dynamic> json) =>
|
||||
_$$AuthUserImplFromJson(json);
|
||||
@@ -161,12 +162,14 @@ class _$AuthUserImpl implements _AuthUser {
|
||||
@override
|
||||
final int id;
|
||||
@override
|
||||
final String username;
|
||||
final String? username;
|
||||
// API doesn't return username
|
||||
@override
|
||||
final String email;
|
||||
@override
|
||||
final String name;
|
||||
@override
|
||||
@JsonKey()
|
||||
final String role;
|
||||
|
||||
@override
|
||||
@@ -210,10 +213,10 @@ class _$AuthUserImpl implements _AuthUser {
|
||||
abstract class _AuthUser implements AuthUser {
|
||||
const factory _AuthUser(
|
||||
{required final int id,
|
||||
required final String username,
|
||||
final String? username,
|
||||
required final String email,
|
||||
required final String name,
|
||||
required final String role}) = _$AuthUserImpl;
|
||||
final String role}) = _$AuthUserImpl;
|
||||
|
||||
factory _AuthUser.fromJson(Map<String, dynamic> json) =
|
||||
_$AuthUserImpl.fromJson;
|
||||
@@ -221,7 +224,7 @@ abstract class _AuthUser implements AuthUser {
|
||||
@override
|
||||
int get id;
|
||||
@override
|
||||
String get username;
|
||||
String? get username; // API doesn't return username
|
||||
@override
|
||||
String get email;
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user