backup: 사용하지 않는 파일 삭제 전 복구 지점
- 전체 371개 파일 중 82개 미사용 파일 식별 - Phase 1: 33개 파일 삭제 예정 (100% 안전) - Phase 2: 30개 파일 삭제 검토 예정 - Phase 3: 19개 파일 수동 검토 예정 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -11,6 +11,8 @@ class AuthUser with _$AuthUser {
|
||||
required String email,
|
||||
required String name,
|
||||
@Default('admin') String role, // Default to 'admin' if not provided
|
||||
String? phone, // Added for /auth/me API
|
||||
String? mobile, // Added for /auth/me API
|
||||
}) = _AuthUser;
|
||||
|
||||
factory AuthUser.fromJson(Map<String, dynamic> json) =>
|
||||
|
||||
@@ -25,7 +25,11 @@ mixin _$AuthUser {
|
||||
throw _privateConstructorUsedError; // API doesn't return username
|
||||
String get email => throw _privateConstructorUsedError;
|
||||
String get name => throw _privateConstructorUsedError;
|
||||
String get role => throw _privateConstructorUsedError;
|
||||
String get role =>
|
||||
throw _privateConstructorUsedError; // Default to 'admin' if not provided
|
||||
String? get phone =>
|
||||
throw _privateConstructorUsedError; // Added for /auth/me API
|
||||
String? get mobile => throw _privateConstructorUsedError;
|
||||
|
||||
/// Serializes this AuthUser to a JSON map.
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
@@ -42,7 +46,14 @@ 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,
|
||||
String? phone,
|
||||
String? mobile});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -65,6 +76,8 @@ class _$AuthUserCopyWithImpl<$Res, $Val extends AuthUser>
|
||||
Object? email = null,
|
||||
Object? name = null,
|
||||
Object? role = null,
|
||||
Object? phone = freezed,
|
||||
Object? mobile = freezed,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
id: null == id
|
||||
@@ -87,6 +100,14 @@ class _$AuthUserCopyWithImpl<$Res, $Val extends AuthUser>
|
||||
? _value.role
|
||||
: role // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
phone: freezed == phone
|
||||
? _value.phone
|
||||
: phone // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
mobile: freezed == mobile
|
||||
? _value.mobile
|
||||
: mobile // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
) as $Val);
|
||||
}
|
||||
}
|
||||
@@ -99,7 +120,14 @@ 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,
|
||||
String? phone,
|
||||
String? mobile});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -120,6 +148,8 @@ class __$$AuthUserImplCopyWithImpl<$Res>
|
||||
Object? email = null,
|
||||
Object? name = null,
|
||||
Object? role = null,
|
||||
Object? phone = freezed,
|
||||
Object? mobile = freezed,
|
||||
}) {
|
||||
return _then(_$AuthUserImpl(
|
||||
id: null == id
|
||||
@@ -142,6 +172,14 @@ class __$$AuthUserImplCopyWithImpl<$Res>
|
||||
? _value.role
|
||||
: role // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
phone: freezed == phone
|
||||
? _value.phone
|
||||
: phone // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
mobile: freezed == mobile
|
||||
? _value.mobile
|
||||
: mobile // ignore: cast_nullable_to_non_nullable
|
||||
as String?,
|
||||
));
|
||||
}
|
||||
}
|
||||
@@ -154,7 +192,9 @@ class _$AuthUserImpl implements _AuthUser {
|
||||
this.username,
|
||||
required this.email,
|
||||
required this.name,
|
||||
this.role = 'admin'});
|
||||
this.role = 'admin',
|
||||
this.phone,
|
||||
this.mobile});
|
||||
|
||||
factory _$AuthUserImpl.fromJson(Map<String, dynamic> json) =>
|
||||
_$$AuthUserImplFromJson(json);
|
||||
@@ -171,10 +211,16 @@ class _$AuthUserImpl implements _AuthUser {
|
||||
@override
|
||||
@JsonKey()
|
||||
final String role;
|
||||
// Default to 'admin' if not provided
|
||||
@override
|
||||
final String? phone;
|
||||
// Added for /auth/me API
|
||||
@override
|
||||
final String? mobile;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'AuthUser(id: $id, username: $username, email: $email, name: $name, role: $role)';
|
||||
return 'AuthUser(id: $id, username: $username, email: $email, name: $name, role: $role, phone: $phone, mobile: $mobile)';
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -187,12 +233,15 @@ class _$AuthUserImpl implements _AuthUser {
|
||||
other.username == username) &&
|
||||
(identical(other.email, email) || other.email == email) &&
|
||||
(identical(other.name, name) || other.name == name) &&
|
||||
(identical(other.role, role) || other.role == role));
|
||||
(identical(other.role, role) || other.role == role) &&
|
||||
(identical(other.phone, phone) || other.phone == phone) &&
|
||||
(identical(other.mobile, mobile) || other.mobile == mobile));
|
||||
}
|
||||
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, id, username, email, name, role);
|
||||
int get hashCode =>
|
||||
Object.hash(runtimeType, id, username, email, name, role, phone, mobile);
|
||||
|
||||
/// Create a copy of AuthUser
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@@ -216,7 +265,9 @@ abstract class _AuthUser implements AuthUser {
|
||||
final String? username,
|
||||
required final String email,
|
||||
required final String name,
|
||||
final String role}) = _$AuthUserImpl;
|
||||
final String role,
|
||||
final String? phone,
|
||||
final String? mobile}) = _$AuthUserImpl;
|
||||
|
||||
factory _AuthUser.fromJson(Map<String, dynamic> json) =
|
||||
_$AuthUserImpl.fromJson;
|
||||
@@ -230,7 +281,11 @@ abstract class _AuthUser implements AuthUser {
|
||||
@override
|
||||
String get name;
|
||||
@override
|
||||
String get role;
|
||||
String get role; // Default to 'admin' if not provided
|
||||
@override
|
||||
String? get phone; // Added for /auth/me API
|
||||
@override
|
||||
String? get mobile;
|
||||
|
||||
/// Create a copy of AuthUser
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
|
||||
@@ -13,6 +13,8 @@ _$AuthUserImpl _$$AuthUserImplFromJson(Map<String, dynamic> json) =>
|
||||
email: json['email'] as String,
|
||||
name: json['name'] as String,
|
||||
role: json['role'] as String? ?? 'admin',
|
||||
phone: json['phone'] as String?,
|
||||
mobile: json['mobile'] as String?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$AuthUserImplToJson(_$AuthUserImpl instance) =>
|
||||
@@ -22,4 +24,6 @@ Map<String, dynamic> _$$AuthUserImplToJson(_$AuthUserImpl instance) =>
|
||||
'email': instance.email,
|
||||
'name': instance.name,
|
||||
'role': instance.role,
|
||||
'phone': instance.phone,
|
||||
'mobile': instance.mobile,
|
||||
};
|
||||
|
||||
15
lib/data/models/auth/change_password_request.dart
Normal file
15
lib/data/models/auth/change_password_request.dart
Normal file
@@ -0,0 +1,15 @@
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
|
||||
part 'change_password_request.freezed.dart';
|
||||
part 'change_password_request.g.dart';
|
||||
|
||||
@freezed
|
||||
class ChangePasswordRequest with _$ChangePasswordRequest {
|
||||
const factory ChangePasswordRequest({
|
||||
@JsonKey(name: 'old_password') required String oldPassword,
|
||||
@JsonKey(name: 'new_password') required String newPassword,
|
||||
}) = _ChangePasswordRequest;
|
||||
|
||||
factory ChangePasswordRequest.fromJson(Map<String, dynamic> json) =>
|
||||
_$ChangePasswordRequestFromJson(json);
|
||||
}
|
||||
202
lib/data/models/auth/change_password_request.freezed.dart
Normal file
202
lib/data/models/auth/change_password_request.freezed.dart
Normal file
@@ -0,0 +1,202 @@
|
||||
// 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 'change_password_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');
|
||||
|
||||
ChangePasswordRequest _$ChangePasswordRequestFromJson(
|
||||
Map<String, dynamic> json) {
|
||||
return _ChangePasswordRequest.fromJson(json);
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
mixin _$ChangePasswordRequest {
|
||||
@JsonKey(name: 'old_password')
|
||||
String get oldPassword => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: 'new_password')
|
||||
String get newPassword => throw _privateConstructorUsedError;
|
||||
|
||||
/// Serializes this ChangePasswordRequest to a JSON map.
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
|
||||
/// Create a copy of ChangePasswordRequest
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$ChangePasswordRequestCopyWith<ChangePasswordRequest> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $ChangePasswordRequestCopyWith<$Res> {
|
||||
factory $ChangePasswordRequestCopyWith(ChangePasswordRequest value,
|
||||
$Res Function(ChangePasswordRequest) then) =
|
||||
_$ChangePasswordRequestCopyWithImpl<$Res, ChangePasswordRequest>;
|
||||
@useResult
|
||||
$Res call(
|
||||
{@JsonKey(name: 'old_password') String oldPassword,
|
||||
@JsonKey(name: 'new_password') String newPassword});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$ChangePasswordRequestCopyWithImpl<$Res,
|
||||
$Val extends ChangePasswordRequest>
|
||||
implements $ChangePasswordRequestCopyWith<$Res> {
|
||||
_$ChangePasswordRequestCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of ChangePasswordRequest
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? oldPassword = null,
|
||||
Object? newPassword = null,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
oldPassword: null == oldPassword
|
||||
? _value.oldPassword
|
||||
: oldPassword // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
newPassword: null == newPassword
|
||||
? _value.newPassword
|
||||
: newPassword // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
) as $Val);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$ChangePasswordRequestImplCopyWith<$Res>
|
||||
implements $ChangePasswordRequestCopyWith<$Res> {
|
||||
factory _$$ChangePasswordRequestImplCopyWith(
|
||||
_$ChangePasswordRequestImpl value,
|
||||
$Res Function(_$ChangePasswordRequestImpl) then) =
|
||||
__$$ChangePasswordRequestImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
{@JsonKey(name: 'old_password') String oldPassword,
|
||||
@JsonKey(name: 'new_password') String newPassword});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$ChangePasswordRequestImplCopyWithImpl<$Res>
|
||||
extends _$ChangePasswordRequestCopyWithImpl<$Res,
|
||||
_$ChangePasswordRequestImpl>
|
||||
implements _$$ChangePasswordRequestImplCopyWith<$Res> {
|
||||
__$$ChangePasswordRequestImplCopyWithImpl(_$ChangePasswordRequestImpl _value,
|
||||
$Res Function(_$ChangePasswordRequestImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
/// Create a copy of ChangePasswordRequest
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? oldPassword = null,
|
||||
Object? newPassword = null,
|
||||
}) {
|
||||
return _then(_$ChangePasswordRequestImpl(
|
||||
oldPassword: null == oldPassword
|
||||
? _value.oldPassword
|
||||
: oldPassword // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
newPassword: null == newPassword
|
||||
? _value.newPassword
|
||||
: newPassword // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@JsonSerializable()
|
||||
class _$ChangePasswordRequestImpl implements _ChangePasswordRequest {
|
||||
const _$ChangePasswordRequestImpl(
|
||||
{@JsonKey(name: 'old_password') required this.oldPassword,
|
||||
@JsonKey(name: 'new_password') required this.newPassword});
|
||||
|
||||
factory _$ChangePasswordRequestImpl.fromJson(Map<String, dynamic> json) =>
|
||||
_$$ChangePasswordRequestImplFromJson(json);
|
||||
|
||||
@override
|
||||
@JsonKey(name: 'old_password')
|
||||
final String oldPassword;
|
||||
@override
|
||||
@JsonKey(name: 'new_password')
|
||||
final String newPassword;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'ChangePasswordRequest(oldPassword: $oldPassword, newPassword: $newPassword)';
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$ChangePasswordRequestImpl &&
|
||||
(identical(other.oldPassword, oldPassword) ||
|
||||
other.oldPassword == oldPassword) &&
|
||||
(identical(other.newPassword, newPassword) ||
|
||||
other.newPassword == newPassword));
|
||||
}
|
||||
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, oldPassword, newPassword);
|
||||
|
||||
/// Create a copy of ChangePasswordRequest
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$ChangePasswordRequestImplCopyWith<_$ChangePasswordRequestImpl>
|
||||
get copyWith => __$$ChangePasswordRequestImplCopyWithImpl<
|
||||
_$ChangePasswordRequestImpl>(this, _$identity);
|
||||
|
||||
@override
|
||||
Map<String, dynamic> toJson() {
|
||||
return _$$ChangePasswordRequestImplToJson(
|
||||
this,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _ChangePasswordRequest implements ChangePasswordRequest {
|
||||
const factory _ChangePasswordRequest(
|
||||
{@JsonKey(name: 'old_password') required final String oldPassword,
|
||||
@JsonKey(name: 'new_password') required final String newPassword}) =
|
||||
_$ChangePasswordRequestImpl;
|
||||
|
||||
factory _ChangePasswordRequest.fromJson(Map<String, dynamic> json) =
|
||||
_$ChangePasswordRequestImpl.fromJson;
|
||||
|
||||
@override
|
||||
@JsonKey(name: 'old_password')
|
||||
String get oldPassword;
|
||||
@override
|
||||
@JsonKey(name: 'new_password')
|
||||
String get newPassword;
|
||||
|
||||
/// Create a copy of ChangePasswordRequest
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$ChangePasswordRequestImplCopyWith<_$ChangePasswordRequestImpl>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
21
lib/data/models/auth/change_password_request.g.dart
Normal file
21
lib/data/models/auth/change_password_request.g.dart
Normal file
@@ -0,0 +1,21 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'change_password_request.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
_$ChangePasswordRequestImpl _$$ChangePasswordRequestImplFromJson(
|
||||
Map<String, dynamic> json) =>
|
||||
_$ChangePasswordRequestImpl(
|
||||
oldPassword: json['old_password'] as String,
|
||||
newPassword: json['new_password'] as String,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$ChangePasswordRequestImplToJson(
|
||||
_$ChangePasswordRequestImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'old_password': instance.oldPassword,
|
||||
'new_password': instance.newPassword,
|
||||
};
|
||||
14
lib/data/models/auth/message_response.dart
Normal file
14
lib/data/models/auth/message_response.dart
Normal file
@@ -0,0 +1,14 @@
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
|
||||
part 'message_response.freezed.dart';
|
||||
part 'message_response.g.dart';
|
||||
|
||||
@freezed
|
||||
class MessageResponse with _$MessageResponse {
|
||||
const factory MessageResponse({
|
||||
required String message,
|
||||
}) = _MessageResponse;
|
||||
|
||||
factory MessageResponse.fromJson(Map<String, dynamic> json) =>
|
||||
_$MessageResponseFromJson(json);
|
||||
}
|
||||
166
lib/data/models/auth/message_response.freezed.dart
Normal file
166
lib/data/models/auth/message_response.freezed.dart
Normal file
@@ -0,0 +1,166 @@
|
||||
// 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 'message_response.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');
|
||||
|
||||
MessageResponse _$MessageResponseFromJson(Map<String, dynamic> json) {
|
||||
return _MessageResponse.fromJson(json);
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
mixin _$MessageResponse {
|
||||
String get message => throw _privateConstructorUsedError;
|
||||
|
||||
/// Serializes this MessageResponse to a JSON map.
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
|
||||
/// Create a copy of MessageResponse
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$MessageResponseCopyWith<MessageResponse> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $MessageResponseCopyWith<$Res> {
|
||||
factory $MessageResponseCopyWith(
|
||||
MessageResponse value, $Res Function(MessageResponse) then) =
|
||||
_$MessageResponseCopyWithImpl<$Res, MessageResponse>;
|
||||
@useResult
|
||||
$Res call({String message});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$MessageResponseCopyWithImpl<$Res, $Val extends MessageResponse>
|
||||
implements $MessageResponseCopyWith<$Res> {
|
||||
_$MessageResponseCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of MessageResponse
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? message = null,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
message: null == message
|
||||
? _value.message
|
||||
: message // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
) as $Val);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$MessageResponseImplCopyWith<$Res>
|
||||
implements $MessageResponseCopyWith<$Res> {
|
||||
factory _$$MessageResponseImplCopyWith(_$MessageResponseImpl value,
|
||||
$Res Function(_$MessageResponseImpl) then) =
|
||||
__$$MessageResponseImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call({String message});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$MessageResponseImplCopyWithImpl<$Res>
|
||||
extends _$MessageResponseCopyWithImpl<$Res, _$MessageResponseImpl>
|
||||
implements _$$MessageResponseImplCopyWith<$Res> {
|
||||
__$$MessageResponseImplCopyWithImpl(
|
||||
_$MessageResponseImpl _value, $Res Function(_$MessageResponseImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
/// Create a copy of MessageResponse
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? message = null,
|
||||
}) {
|
||||
return _then(_$MessageResponseImpl(
|
||||
message: null == message
|
||||
? _value.message
|
||||
: message // ignore: cast_nullable_to_non_nullable
|
||||
as String,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@JsonSerializable()
|
||||
class _$MessageResponseImpl implements _MessageResponse {
|
||||
const _$MessageResponseImpl({required this.message});
|
||||
|
||||
factory _$MessageResponseImpl.fromJson(Map<String, dynamic> json) =>
|
||||
_$$MessageResponseImplFromJson(json);
|
||||
|
||||
@override
|
||||
final String message;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'MessageResponse(message: $message)';
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$MessageResponseImpl &&
|
||||
(identical(other.message, message) || other.message == message));
|
||||
}
|
||||
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, message);
|
||||
|
||||
/// Create a copy of MessageResponse
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$MessageResponseImplCopyWith<_$MessageResponseImpl> get copyWith =>
|
||||
__$$MessageResponseImplCopyWithImpl<_$MessageResponseImpl>(
|
||||
this, _$identity);
|
||||
|
||||
@override
|
||||
Map<String, dynamic> toJson() {
|
||||
return _$$MessageResponseImplToJson(
|
||||
this,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _MessageResponse implements MessageResponse {
|
||||
const factory _MessageResponse({required final String message}) =
|
||||
_$MessageResponseImpl;
|
||||
|
||||
factory _MessageResponse.fromJson(Map<String, dynamic> json) =
|
||||
_$MessageResponseImpl.fromJson;
|
||||
|
||||
@override
|
||||
String get message;
|
||||
|
||||
/// Create a copy of MessageResponse
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$MessageResponseImplCopyWith<_$MessageResponseImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
19
lib/data/models/auth/message_response.g.dart
Normal file
19
lib/data/models/auth/message_response.g.dart
Normal file
@@ -0,0 +1,19 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'message_response.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
_$MessageResponseImpl _$$MessageResponseImplFromJson(
|
||||
Map<String, dynamic> json) =>
|
||||
_$MessageResponseImpl(
|
||||
message: json['message'] as String,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$MessageResponseImplToJson(
|
||||
_$MessageResponseImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'message': instance.message,
|
||||
};
|
||||
Reference in New Issue
Block a user