1755 lines
51 KiB
Dart
1755 lines
51 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 'auth.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',
|
|
);
|
|
|
|
/// @nodoc
|
|
mixin _$CheckPhone {
|
|
CheckPhoneStatus get status => throw _privateConstructorUsedError;
|
|
String get message => throw _privateConstructorUsedError;
|
|
String get phoneNumber => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of CheckPhone
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$CheckPhoneCopyWith<CheckPhone> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $CheckPhoneCopyWith<$Res> {
|
|
factory $CheckPhoneCopyWith(
|
|
CheckPhone value,
|
|
$Res Function(CheckPhone) then,
|
|
) = _$CheckPhoneCopyWithImpl<$Res, CheckPhone>;
|
|
@useResult
|
|
$Res call({CheckPhoneStatus status, String message, String phoneNumber});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$CheckPhoneCopyWithImpl<$Res, $Val extends CheckPhone>
|
|
implements $CheckPhoneCopyWith<$Res> {
|
|
_$CheckPhoneCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of CheckPhone
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? status = null,
|
|
Object? message = null,
|
|
Object? phoneNumber = null,
|
|
}) {
|
|
return _then(
|
|
_value.copyWith(
|
|
status: null == status
|
|
? _value.status
|
|
: status // ignore: cast_nullable_to_non_nullable
|
|
as CheckPhoneStatus,
|
|
message: null == message
|
|
? _value.message
|
|
: message // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
phoneNumber: null == phoneNumber
|
|
? _value.phoneNumber
|
|
: phoneNumber // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
)
|
|
as $Val,
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$CheckPhoneImplCopyWith<$Res>
|
|
implements $CheckPhoneCopyWith<$Res> {
|
|
factory _$$CheckPhoneImplCopyWith(
|
|
_$CheckPhoneImpl value,
|
|
$Res Function(_$CheckPhoneImpl) then,
|
|
) = __$$CheckPhoneImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({CheckPhoneStatus status, String message, String phoneNumber});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$CheckPhoneImplCopyWithImpl<$Res>
|
|
extends _$CheckPhoneCopyWithImpl<$Res, _$CheckPhoneImpl>
|
|
implements _$$CheckPhoneImplCopyWith<$Res> {
|
|
__$$CheckPhoneImplCopyWithImpl(
|
|
_$CheckPhoneImpl _value,
|
|
$Res Function(_$CheckPhoneImpl) _then,
|
|
) : super(_value, _then);
|
|
|
|
/// Create a copy of CheckPhone
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? status = null,
|
|
Object? message = null,
|
|
Object? phoneNumber = null,
|
|
}) {
|
|
return _then(
|
|
_$CheckPhoneImpl(
|
|
status: null == status
|
|
? _value.status
|
|
: status // ignore: cast_nullable_to_non_nullable
|
|
as CheckPhoneStatus,
|
|
message: null == message
|
|
? _value.message
|
|
: message // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
phoneNumber: null == phoneNumber
|
|
? _value.phoneNumber
|
|
: phoneNumber // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$CheckPhoneImpl implements _CheckPhone {
|
|
const _$CheckPhoneImpl({
|
|
required this.status,
|
|
required this.message,
|
|
required this.phoneNumber,
|
|
});
|
|
|
|
@override
|
|
final CheckPhoneStatus status;
|
|
@override
|
|
final String message;
|
|
@override
|
|
final String phoneNumber;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'CheckPhone(status: $status, message: $message, phoneNumber: $phoneNumber)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$CheckPhoneImpl &&
|
|
(identical(other.status, status) || other.status == status) &&
|
|
(identical(other.message, message) || other.message == message) &&
|
|
(identical(other.phoneNumber, phoneNumber) ||
|
|
other.phoneNumber == phoneNumber));
|
|
}
|
|
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, status, message, phoneNumber);
|
|
|
|
/// Create a copy of CheckPhone
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$CheckPhoneImplCopyWith<_$CheckPhoneImpl> get copyWith =>
|
|
__$$CheckPhoneImplCopyWithImpl<_$CheckPhoneImpl>(this, _$identity);
|
|
}
|
|
|
|
abstract class _CheckPhone implements CheckPhone {
|
|
const factory _CheckPhone({
|
|
required final CheckPhoneStatus status,
|
|
required final String message,
|
|
required final String phoneNumber,
|
|
}) = _$CheckPhoneImpl;
|
|
|
|
@override
|
|
CheckPhoneStatus get status;
|
|
@override
|
|
String get message;
|
|
@override
|
|
String get phoneNumber;
|
|
|
|
/// Create a copy of CheckPhone
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$CheckPhoneImplCopyWith<_$CheckPhoneImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$Register {
|
|
String get status => throw _privateConstructorUsedError;
|
|
String get message => throw _privateConstructorUsedError;
|
|
String get registrationToken => throw _privateConstructorUsedError;
|
|
String get otpToken => throw _privateConstructorUsedError;
|
|
int get expiresIn => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of Register
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$RegisterCopyWith<Register> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $RegisterCopyWith<$Res> {
|
|
factory $RegisterCopyWith(Register value, $Res Function(Register) then) =
|
|
_$RegisterCopyWithImpl<$Res, Register>;
|
|
@useResult
|
|
$Res call({
|
|
String status,
|
|
String message,
|
|
String registrationToken,
|
|
String otpToken,
|
|
int expiresIn,
|
|
});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$RegisterCopyWithImpl<$Res, $Val extends Register>
|
|
implements $RegisterCopyWith<$Res> {
|
|
_$RegisterCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of Register
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? status = null,
|
|
Object? message = null,
|
|
Object? registrationToken = null,
|
|
Object? otpToken = null,
|
|
Object? expiresIn = null,
|
|
}) {
|
|
return _then(
|
|
_value.copyWith(
|
|
status: null == status
|
|
? _value.status
|
|
: status // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
message: null == message
|
|
? _value.message
|
|
: message // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
registrationToken: null == registrationToken
|
|
? _value.registrationToken
|
|
: registrationToken // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
otpToken: null == otpToken
|
|
? _value.otpToken
|
|
: otpToken // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
expiresIn: null == expiresIn
|
|
? _value.expiresIn
|
|
: expiresIn // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
)
|
|
as $Val,
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$RegisterImplCopyWith<$Res>
|
|
implements $RegisterCopyWith<$Res> {
|
|
factory _$$RegisterImplCopyWith(
|
|
_$RegisterImpl value,
|
|
$Res Function(_$RegisterImpl) then,
|
|
) = __$$RegisterImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({
|
|
String status,
|
|
String message,
|
|
String registrationToken,
|
|
String otpToken,
|
|
int expiresIn,
|
|
});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$RegisterImplCopyWithImpl<$Res>
|
|
extends _$RegisterCopyWithImpl<$Res, _$RegisterImpl>
|
|
implements _$$RegisterImplCopyWith<$Res> {
|
|
__$$RegisterImplCopyWithImpl(
|
|
_$RegisterImpl _value,
|
|
$Res Function(_$RegisterImpl) _then,
|
|
) : super(_value, _then);
|
|
|
|
/// Create a copy of Register
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? status = null,
|
|
Object? message = null,
|
|
Object? registrationToken = null,
|
|
Object? otpToken = null,
|
|
Object? expiresIn = null,
|
|
}) {
|
|
return _then(
|
|
_$RegisterImpl(
|
|
status: null == status
|
|
? _value.status
|
|
: status // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
message: null == message
|
|
? _value.message
|
|
: message // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
registrationToken: null == registrationToken
|
|
? _value.registrationToken
|
|
: registrationToken // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
otpToken: null == otpToken
|
|
? _value.otpToken
|
|
: otpToken // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
expiresIn: null == expiresIn
|
|
? _value.expiresIn
|
|
: expiresIn // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$RegisterImpl implements _Register {
|
|
const _$RegisterImpl({
|
|
required this.status,
|
|
required this.message,
|
|
required this.registrationToken,
|
|
required this.otpToken,
|
|
required this.expiresIn,
|
|
});
|
|
|
|
@override
|
|
final String status;
|
|
@override
|
|
final String message;
|
|
@override
|
|
final String registrationToken;
|
|
@override
|
|
final String otpToken;
|
|
@override
|
|
final int expiresIn;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'Register(status: $status, message: $message, registrationToken: $registrationToken, otpToken: $otpToken, expiresIn: $expiresIn)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$RegisterImpl &&
|
|
(identical(other.status, status) || other.status == status) &&
|
|
(identical(other.message, message) || other.message == message) &&
|
|
(identical(other.registrationToken, registrationToken) ||
|
|
other.registrationToken == registrationToken) &&
|
|
(identical(other.otpToken, otpToken) ||
|
|
other.otpToken == otpToken) &&
|
|
(identical(other.expiresIn, expiresIn) ||
|
|
other.expiresIn == expiresIn));
|
|
}
|
|
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
status,
|
|
message,
|
|
registrationToken,
|
|
otpToken,
|
|
expiresIn,
|
|
);
|
|
|
|
/// Create a copy of Register
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$RegisterImplCopyWith<_$RegisterImpl> get copyWith =>
|
|
__$$RegisterImplCopyWithImpl<_$RegisterImpl>(this, _$identity);
|
|
}
|
|
|
|
abstract class _Register implements Register {
|
|
const factory _Register({
|
|
required final String status,
|
|
required final String message,
|
|
required final String registrationToken,
|
|
required final String otpToken,
|
|
required final int expiresIn,
|
|
}) = _$RegisterImpl;
|
|
|
|
@override
|
|
String get status;
|
|
@override
|
|
String get message;
|
|
@override
|
|
String get registrationToken;
|
|
@override
|
|
String get otpToken;
|
|
@override
|
|
int get expiresIn;
|
|
|
|
/// Create a copy of Register
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$RegisterImplCopyWith<_$RegisterImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$Verify {
|
|
String get status => throw _privateConstructorUsedError;
|
|
String get message => throw _privateConstructorUsedError;
|
|
String get registrationToken => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of Verify
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$VerifyCopyWith<Verify> get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $VerifyCopyWith<$Res> {
|
|
factory $VerifyCopyWith(Verify value, $Res Function(Verify) then) =
|
|
_$VerifyCopyWithImpl<$Res, Verify>;
|
|
@useResult
|
|
$Res call({String status, String message, String registrationToken});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$VerifyCopyWithImpl<$Res, $Val extends Verify>
|
|
implements $VerifyCopyWith<$Res> {
|
|
_$VerifyCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of Verify
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? status = null,
|
|
Object? message = null,
|
|
Object? registrationToken = null,
|
|
}) {
|
|
return _then(
|
|
_value.copyWith(
|
|
status: null == status
|
|
? _value.status
|
|
: status // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
message: null == message
|
|
? _value.message
|
|
: message // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
registrationToken: null == registrationToken
|
|
? _value.registrationToken
|
|
: registrationToken // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
)
|
|
as $Val,
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$VerifyImplCopyWith<$Res> implements $VerifyCopyWith<$Res> {
|
|
factory _$$VerifyImplCopyWith(
|
|
_$VerifyImpl value,
|
|
$Res Function(_$VerifyImpl) then,
|
|
) = __$$VerifyImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({String status, String message, String registrationToken});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$VerifyImplCopyWithImpl<$Res>
|
|
extends _$VerifyCopyWithImpl<$Res, _$VerifyImpl>
|
|
implements _$$VerifyImplCopyWith<$Res> {
|
|
__$$VerifyImplCopyWithImpl(
|
|
_$VerifyImpl _value,
|
|
$Res Function(_$VerifyImpl) _then,
|
|
) : super(_value, _then);
|
|
|
|
/// Create a copy of Verify
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? status = null,
|
|
Object? message = null,
|
|
Object? registrationToken = null,
|
|
}) {
|
|
return _then(
|
|
_$VerifyImpl(
|
|
status: null == status
|
|
? _value.status
|
|
: status // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
message: null == message
|
|
? _value.message
|
|
: message // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
registrationToken: null == registrationToken
|
|
? _value.registrationToken
|
|
: registrationToken // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$VerifyImpl implements _Verify {
|
|
const _$VerifyImpl({
|
|
required this.status,
|
|
required this.message,
|
|
required this.registrationToken,
|
|
});
|
|
|
|
@override
|
|
final String status;
|
|
@override
|
|
final String message;
|
|
@override
|
|
final String registrationToken;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'Verify(status: $status, message: $message, registrationToken: $registrationToken)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$VerifyImpl &&
|
|
(identical(other.status, status) || other.status == status) &&
|
|
(identical(other.message, message) || other.message == message) &&
|
|
(identical(other.registrationToken, registrationToken) ||
|
|
other.registrationToken == registrationToken));
|
|
}
|
|
|
|
@override
|
|
int get hashCode =>
|
|
Object.hash(runtimeType, status, message, registrationToken);
|
|
|
|
/// Create a copy of Verify
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$VerifyImplCopyWith<_$VerifyImpl> get copyWith =>
|
|
__$$VerifyImplCopyWithImpl<_$VerifyImpl>(this, _$identity);
|
|
}
|
|
|
|
abstract class _Verify implements Verify {
|
|
const factory _Verify({
|
|
required final String status,
|
|
required final String message,
|
|
required final String registrationToken,
|
|
}) = _$VerifyImpl;
|
|
|
|
@override
|
|
String get status;
|
|
@override
|
|
String get message;
|
|
@override
|
|
String get registrationToken;
|
|
|
|
/// Create a copy of Verify
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$VerifyImplCopyWith<_$VerifyImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$Login {
|
|
String get status => throw _privateConstructorUsedError;
|
|
String get message => throw _privateConstructorUsedError;
|
|
String get accessToken => throw _privateConstructorUsedError;
|
|
String get refreshToken => throw _privateConstructorUsedError;
|
|
User get user => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of Login
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$LoginCopyWith<Login> get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $LoginCopyWith<$Res> {
|
|
factory $LoginCopyWith(Login value, $Res Function(Login) then) =
|
|
_$LoginCopyWithImpl<$Res, Login>;
|
|
@useResult
|
|
$Res call({
|
|
String status,
|
|
String message,
|
|
String accessToken,
|
|
String refreshToken,
|
|
User user,
|
|
});
|
|
|
|
$UserCopyWith<$Res> get user;
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$LoginCopyWithImpl<$Res, $Val extends Login>
|
|
implements $LoginCopyWith<$Res> {
|
|
_$LoginCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of Login
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? status = null,
|
|
Object? message = null,
|
|
Object? accessToken = null,
|
|
Object? refreshToken = null,
|
|
Object? user = null,
|
|
}) {
|
|
return _then(
|
|
_value.copyWith(
|
|
status: null == status
|
|
? _value.status
|
|
: status // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
message: null == message
|
|
? _value.message
|
|
: message // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
accessToken: null == accessToken
|
|
? _value.accessToken
|
|
: accessToken // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
refreshToken: null == refreshToken
|
|
? _value.refreshToken
|
|
: refreshToken // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
user: null == user
|
|
? _value.user
|
|
: user // ignore: cast_nullable_to_non_nullable
|
|
as User,
|
|
)
|
|
as $Val,
|
|
);
|
|
}
|
|
|
|
/// Create a copy of Login
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
$UserCopyWith<$Res> get user {
|
|
return $UserCopyWith<$Res>(_value.user, (value) {
|
|
return _then(_value.copyWith(user: value) as $Val);
|
|
});
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$LoginImplCopyWith<$Res> implements $LoginCopyWith<$Res> {
|
|
factory _$$LoginImplCopyWith(
|
|
_$LoginImpl value,
|
|
$Res Function(_$LoginImpl) then,
|
|
) = __$$LoginImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({
|
|
String status,
|
|
String message,
|
|
String accessToken,
|
|
String refreshToken,
|
|
User user,
|
|
});
|
|
|
|
@override
|
|
$UserCopyWith<$Res> get user;
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$LoginImplCopyWithImpl<$Res>
|
|
extends _$LoginCopyWithImpl<$Res, _$LoginImpl>
|
|
implements _$$LoginImplCopyWith<$Res> {
|
|
__$$LoginImplCopyWithImpl(
|
|
_$LoginImpl _value,
|
|
$Res Function(_$LoginImpl) _then,
|
|
) : super(_value, _then);
|
|
|
|
/// Create a copy of Login
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? status = null,
|
|
Object? message = null,
|
|
Object? accessToken = null,
|
|
Object? refreshToken = null,
|
|
Object? user = null,
|
|
}) {
|
|
return _then(
|
|
_$LoginImpl(
|
|
status: null == status
|
|
? _value.status
|
|
: status // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
message: null == message
|
|
? _value.message
|
|
: message // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
accessToken: null == accessToken
|
|
? _value.accessToken
|
|
: accessToken // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
refreshToken: null == refreshToken
|
|
? _value.refreshToken
|
|
: refreshToken // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
user: null == user
|
|
? _value.user
|
|
: user // ignore: cast_nullable_to_non_nullable
|
|
as User,
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$LoginImpl implements _Login {
|
|
const _$LoginImpl({
|
|
required this.status,
|
|
required this.message,
|
|
required this.accessToken,
|
|
required this.refreshToken,
|
|
required this.user,
|
|
});
|
|
|
|
@override
|
|
final String status;
|
|
@override
|
|
final String message;
|
|
@override
|
|
final String accessToken;
|
|
@override
|
|
final String refreshToken;
|
|
@override
|
|
final User user;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'Login(status: $status, message: $message, accessToken: $accessToken, refreshToken: $refreshToken, user: $user)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$LoginImpl &&
|
|
(identical(other.status, status) || other.status == status) &&
|
|
(identical(other.message, message) || other.message == message) &&
|
|
(identical(other.accessToken, accessToken) ||
|
|
other.accessToken == accessToken) &&
|
|
(identical(other.refreshToken, refreshToken) ||
|
|
other.refreshToken == refreshToken) &&
|
|
(identical(other.user, user) || other.user == user));
|
|
}
|
|
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
status,
|
|
message,
|
|
accessToken,
|
|
refreshToken,
|
|
user,
|
|
);
|
|
|
|
/// Create a copy of Login
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$LoginImplCopyWith<_$LoginImpl> get copyWith =>
|
|
__$$LoginImplCopyWithImpl<_$LoginImpl>(this, _$identity);
|
|
}
|
|
|
|
abstract class _Login implements Login {
|
|
const factory _Login({
|
|
required final String status,
|
|
required final String message,
|
|
required final String accessToken,
|
|
required final String refreshToken,
|
|
required final User user,
|
|
}) = _$LoginImpl;
|
|
|
|
@override
|
|
String get status;
|
|
@override
|
|
String get message;
|
|
@override
|
|
String get accessToken;
|
|
@override
|
|
String get refreshToken;
|
|
@override
|
|
User get user;
|
|
|
|
/// Create a copy of Login
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$LoginImplCopyWith<_$LoginImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$User {
|
|
String get id => throw _privateConstructorUsedError;
|
|
String get name => throw _privateConstructorUsedError;
|
|
String get phoneNumber => throw _privateConstructorUsedError;
|
|
String get birthDate => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of User
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$UserCopyWith<User> get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $UserCopyWith<$Res> {
|
|
factory $UserCopyWith(User value, $Res Function(User) then) =
|
|
_$UserCopyWithImpl<$Res, User>;
|
|
@useResult
|
|
$Res call({String id, String name, String phoneNumber, String birthDate});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$UserCopyWithImpl<$Res, $Val extends User>
|
|
implements $UserCopyWith<$Res> {
|
|
_$UserCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of User
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? name = null,
|
|
Object? phoneNumber = null,
|
|
Object? birthDate = null,
|
|
}) {
|
|
return _then(
|
|
_value.copyWith(
|
|
id: null == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
name: null == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
phoneNumber: null == phoneNumber
|
|
? _value.phoneNumber
|
|
: phoneNumber // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
birthDate: null == birthDate
|
|
? _value.birthDate
|
|
: birthDate // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
)
|
|
as $Val,
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$UserImplCopyWith<$Res> implements $UserCopyWith<$Res> {
|
|
factory _$$UserImplCopyWith(
|
|
_$UserImpl value,
|
|
$Res Function(_$UserImpl) then,
|
|
) = __$$UserImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({String id, String name, String phoneNumber, String birthDate});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$UserImplCopyWithImpl<$Res>
|
|
extends _$UserCopyWithImpl<$Res, _$UserImpl>
|
|
implements _$$UserImplCopyWith<$Res> {
|
|
__$$UserImplCopyWithImpl(_$UserImpl _value, $Res Function(_$UserImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of User
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? name = null,
|
|
Object? phoneNumber = null,
|
|
Object? birthDate = null,
|
|
}) {
|
|
return _then(
|
|
_$UserImpl(
|
|
id: null == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
name: null == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
phoneNumber: null == phoneNumber
|
|
? _value.phoneNumber
|
|
: phoneNumber // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
birthDate: null == birthDate
|
|
? _value.birthDate
|
|
: birthDate // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$UserImpl implements _User {
|
|
const _$UserImpl({
|
|
required this.id,
|
|
required this.name,
|
|
required this.phoneNumber,
|
|
required this.birthDate,
|
|
});
|
|
|
|
@override
|
|
final String id;
|
|
@override
|
|
final String name;
|
|
@override
|
|
final String phoneNumber;
|
|
@override
|
|
final String birthDate;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'User(id: $id, name: $name, phoneNumber: $phoneNumber, birthDate: $birthDate)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$UserImpl &&
|
|
(identical(other.id, id) || other.id == id) &&
|
|
(identical(other.name, name) || other.name == name) &&
|
|
(identical(other.phoneNumber, phoneNumber) ||
|
|
other.phoneNumber == phoneNumber) &&
|
|
(identical(other.birthDate, birthDate) ||
|
|
other.birthDate == birthDate));
|
|
}
|
|
|
|
@override
|
|
int get hashCode =>
|
|
Object.hash(runtimeType, id, name, phoneNumber, birthDate);
|
|
|
|
/// Create a copy of User
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$UserImplCopyWith<_$UserImpl> get copyWith =>
|
|
__$$UserImplCopyWithImpl<_$UserImpl>(this, _$identity);
|
|
}
|
|
|
|
abstract class _User implements User {
|
|
const factory _User({
|
|
required final String id,
|
|
required final String name,
|
|
required final String phoneNumber,
|
|
required final String birthDate,
|
|
}) = _$UserImpl;
|
|
|
|
@override
|
|
String get id;
|
|
@override
|
|
String get name;
|
|
@override
|
|
String get phoneNumber;
|
|
@override
|
|
String get birthDate;
|
|
|
|
/// Create a copy of User
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$UserImplCopyWith<_$UserImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$Resend {
|
|
ResendStatus get status => throw _privateConstructorUsedError;
|
|
String get message => throw _privateConstructorUsedError;
|
|
String get otpToken => throw _privateConstructorUsedError;
|
|
int get expiresIn => throw _privateConstructorUsedError;
|
|
int get nextResendIn => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of Resend
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$ResendCopyWith<Resend> get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $ResendCopyWith<$Res> {
|
|
factory $ResendCopyWith(Resend value, $Res Function(Resend) then) =
|
|
_$ResendCopyWithImpl<$Res, Resend>;
|
|
@useResult
|
|
$Res call({
|
|
ResendStatus status,
|
|
String message,
|
|
String otpToken,
|
|
int expiresIn,
|
|
int nextResendIn,
|
|
});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$ResendCopyWithImpl<$Res, $Val extends Resend>
|
|
implements $ResendCopyWith<$Res> {
|
|
_$ResendCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of Resend
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? status = null,
|
|
Object? message = null,
|
|
Object? otpToken = null,
|
|
Object? expiresIn = null,
|
|
Object? nextResendIn = null,
|
|
}) {
|
|
return _then(
|
|
_value.copyWith(
|
|
status: null == status
|
|
? _value.status
|
|
: status // ignore: cast_nullable_to_non_nullable
|
|
as ResendStatus,
|
|
message: null == message
|
|
? _value.message
|
|
: message // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
otpToken: null == otpToken
|
|
? _value.otpToken
|
|
: otpToken // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
expiresIn: null == expiresIn
|
|
? _value.expiresIn
|
|
: expiresIn // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
nextResendIn: null == nextResendIn
|
|
? _value.nextResendIn
|
|
: nextResendIn // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
)
|
|
as $Val,
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$ResendImplCopyWith<$Res> implements $ResendCopyWith<$Res> {
|
|
factory _$$ResendImplCopyWith(
|
|
_$ResendImpl value,
|
|
$Res Function(_$ResendImpl) then,
|
|
) = __$$ResendImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({
|
|
ResendStatus status,
|
|
String message,
|
|
String otpToken,
|
|
int expiresIn,
|
|
int nextResendIn,
|
|
});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$ResendImplCopyWithImpl<$Res>
|
|
extends _$ResendCopyWithImpl<$Res, _$ResendImpl>
|
|
implements _$$ResendImplCopyWith<$Res> {
|
|
__$$ResendImplCopyWithImpl(
|
|
_$ResendImpl _value,
|
|
$Res Function(_$ResendImpl) _then,
|
|
) : super(_value, _then);
|
|
|
|
/// Create a copy of Resend
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? status = null,
|
|
Object? message = null,
|
|
Object? otpToken = null,
|
|
Object? expiresIn = null,
|
|
Object? nextResendIn = null,
|
|
}) {
|
|
return _then(
|
|
_$ResendImpl(
|
|
status: null == status
|
|
? _value.status
|
|
: status // ignore: cast_nullable_to_non_nullable
|
|
as ResendStatus,
|
|
message: null == message
|
|
? _value.message
|
|
: message // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
otpToken: null == otpToken
|
|
? _value.otpToken
|
|
: otpToken // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
expiresIn: null == expiresIn
|
|
? _value.expiresIn
|
|
: expiresIn // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
nextResendIn: null == nextResendIn
|
|
? _value.nextResendIn
|
|
: nextResendIn // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$ResendImpl implements _Resend {
|
|
const _$ResendImpl({
|
|
required this.status,
|
|
required this.message,
|
|
required this.otpToken,
|
|
required this.expiresIn,
|
|
required this.nextResendIn,
|
|
});
|
|
|
|
@override
|
|
final ResendStatus status;
|
|
@override
|
|
final String message;
|
|
@override
|
|
final String otpToken;
|
|
@override
|
|
final int expiresIn;
|
|
@override
|
|
final int nextResendIn;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'Resend(status: $status, message: $message, otpToken: $otpToken, expiresIn: $expiresIn, nextResendIn: $nextResendIn)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$ResendImpl &&
|
|
(identical(other.status, status) || other.status == status) &&
|
|
(identical(other.message, message) || other.message == message) &&
|
|
(identical(other.otpToken, otpToken) ||
|
|
other.otpToken == otpToken) &&
|
|
(identical(other.expiresIn, expiresIn) ||
|
|
other.expiresIn == expiresIn) &&
|
|
(identical(other.nextResendIn, nextResendIn) ||
|
|
other.nextResendIn == nextResendIn));
|
|
}
|
|
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
status,
|
|
message,
|
|
otpToken,
|
|
expiresIn,
|
|
nextResendIn,
|
|
);
|
|
|
|
/// Create a copy of Resend
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$ResendImplCopyWith<_$ResendImpl> get copyWith =>
|
|
__$$ResendImplCopyWithImpl<_$ResendImpl>(this, _$identity);
|
|
}
|
|
|
|
abstract class _Resend implements Resend {
|
|
const factory _Resend({
|
|
required final ResendStatus status,
|
|
required final String message,
|
|
required final String otpToken,
|
|
required final int expiresIn,
|
|
required final int nextResendIn,
|
|
}) = _$ResendImpl;
|
|
|
|
@override
|
|
ResendStatus get status;
|
|
@override
|
|
String get message;
|
|
@override
|
|
String get otpToken;
|
|
@override
|
|
int get expiresIn;
|
|
@override
|
|
int get nextResendIn;
|
|
|
|
/// Create a copy of Resend
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$ResendImplCopyWith<_$ResendImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$AuthFailure {
|
|
@optionalTypeArgs
|
|
TResult when<TResult extends Object?>({
|
|
required TResult Function(ApiFailure failure) serverError,
|
|
required TResult Function() unexpectedError,
|
|
required TResult Function(String erroMessage) dynamicErrorMessage,
|
|
}) => throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
TResult? Function(ApiFailure failure)? serverError,
|
|
TResult? Function()? unexpectedError,
|
|
TResult? Function(String erroMessage)? dynamicErrorMessage,
|
|
}) => throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
TResult Function(ApiFailure failure)? serverError,
|
|
TResult Function()? unexpectedError,
|
|
TResult Function(String erroMessage)? dynamicErrorMessage,
|
|
required TResult orElse(),
|
|
}) => throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult map<TResult extends Object?>({
|
|
required TResult Function(_ServerError value) serverError,
|
|
required TResult Function(_UnexpectedError value) unexpectedError,
|
|
required TResult Function(_DynamicErrorMessage value) dynamicErrorMessage,
|
|
}) => throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
TResult? Function(_ServerError value)? serverError,
|
|
TResult? Function(_UnexpectedError value)? unexpectedError,
|
|
TResult? Function(_DynamicErrorMessage value)? dynamicErrorMessage,
|
|
}) => throw _privateConstructorUsedError;
|
|
@optionalTypeArgs
|
|
TResult maybeMap<TResult extends Object?>({
|
|
TResult Function(_ServerError value)? serverError,
|
|
TResult Function(_UnexpectedError value)? unexpectedError,
|
|
TResult Function(_DynamicErrorMessage value)? dynamicErrorMessage,
|
|
required TResult orElse(),
|
|
}) => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $AuthFailureCopyWith<$Res> {
|
|
factory $AuthFailureCopyWith(
|
|
AuthFailure value,
|
|
$Res Function(AuthFailure) then,
|
|
) = _$AuthFailureCopyWithImpl<$Res, AuthFailure>;
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$AuthFailureCopyWithImpl<$Res, $Val extends AuthFailure>
|
|
implements $AuthFailureCopyWith<$Res> {
|
|
_$AuthFailureCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of AuthFailure
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$ServerErrorImplCopyWith<$Res> {
|
|
factory _$$ServerErrorImplCopyWith(
|
|
_$ServerErrorImpl value,
|
|
$Res Function(_$ServerErrorImpl) then,
|
|
) = __$$ServerErrorImplCopyWithImpl<$Res>;
|
|
@useResult
|
|
$Res call({ApiFailure failure});
|
|
|
|
$ApiFailureCopyWith<$Res> get failure;
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$ServerErrorImplCopyWithImpl<$Res>
|
|
extends _$AuthFailureCopyWithImpl<$Res, _$ServerErrorImpl>
|
|
implements _$$ServerErrorImplCopyWith<$Res> {
|
|
__$$ServerErrorImplCopyWithImpl(
|
|
_$ServerErrorImpl _value,
|
|
$Res Function(_$ServerErrorImpl) _then,
|
|
) : super(_value, _then);
|
|
|
|
/// Create a copy of AuthFailure
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({Object? failure = null}) {
|
|
return _then(
|
|
_$ServerErrorImpl(
|
|
null == failure
|
|
? _value.failure
|
|
: failure // ignore: cast_nullable_to_non_nullable
|
|
as ApiFailure,
|
|
),
|
|
);
|
|
}
|
|
|
|
/// Create a copy of AuthFailure
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
$ApiFailureCopyWith<$Res> get failure {
|
|
return $ApiFailureCopyWith<$Res>(_value.failure, (value) {
|
|
return _then(_value.copyWith(failure: value));
|
|
});
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$ServerErrorImpl implements _ServerError {
|
|
const _$ServerErrorImpl(this.failure);
|
|
|
|
@override
|
|
final ApiFailure failure;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'AuthFailure.serverError(failure: $failure)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$ServerErrorImpl &&
|
|
(identical(other.failure, failure) || other.failure == failure));
|
|
}
|
|
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, failure);
|
|
|
|
/// Create a copy of AuthFailure
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$ServerErrorImplCopyWith<_$ServerErrorImpl> get copyWith =>
|
|
__$$ServerErrorImplCopyWithImpl<_$ServerErrorImpl>(this, _$identity);
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult when<TResult extends Object?>({
|
|
required TResult Function(ApiFailure failure) serverError,
|
|
required TResult Function() unexpectedError,
|
|
required TResult Function(String erroMessage) dynamicErrorMessage,
|
|
}) {
|
|
return serverError(failure);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
TResult? Function(ApiFailure failure)? serverError,
|
|
TResult? Function()? unexpectedError,
|
|
TResult? Function(String erroMessage)? dynamicErrorMessage,
|
|
}) {
|
|
return serverError?.call(failure);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
TResult Function(ApiFailure failure)? serverError,
|
|
TResult Function()? unexpectedError,
|
|
TResult Function(String erroMessage)? dynamicErrorMessage,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (serverError != null) {
|
|
return serverError(failure);
|
|
}
|
|
return orElse();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult map<TResult extends Object?>({
|
|
required TResult Function(_ServerError value) serverError,
|
|
required TResult Function(_UnexpectedError value) unexpectedError,
|
|
required TResult Function(_DynamicErrorMessage value) dynamicErrorMessage,
|
|
}) {
|
|
return serverError(this);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
TResult? Function(_ServerError value)? serverError,
|
|
TResult? Function(_UnexpectedError value)? unexpectedError,
|
|
TResult? Function(_DynamicErrorMessage value)? dynamicErrorMessage,
|
|
}) {
|
|
return serverError?.call(this);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeMap<TResult extends Object?>({
|
|
TResult Function(_ServerError value)? serverError,
|
|
TResult Function(_UnexpectedError value)? unexpectedError,
|
|
TResult Function(_DynamicErrorMessage value)? dynamicErrorMessage,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (serverError != null) {
|
|
return serverError(this);
|
|
}
|
|
return orElse();
|
|
}
|
|
}
|
|
|
|
abstract class _ServerError implements AuthFailure {
|
|
const factory _ServerError(final ApiFailure failure) = _$ServerErrorImpl;
|
|
|
|
ApiFailure get failure;
|
|
|
|
/// Create a copy of AuthFailure
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$ServerErrorImplCopyWith<_$ServerErrorImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$UnexpectedErrorImplCopyWith<$Res> {
|
|
factory _$$UnexpectedErrorImplCopyWith(
|
|
_$UnexpectedErrorImpl value,
|
|
$Res Function(_$UnexpectedErrorImpl) then,
|
|
) = __$$UnexpectedErrorImplCopyWithImpl<$Res>;
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$UnexpectedErrorImplCopyWithImpl<$Res>
|
|
extends _$AuthFailureCopyWithImpl<$Res, _$UnexpectedErrorImpl>
|
|
implements _$$UnexpectedErrorImplCopyWith<$Res> {
|
|
__$$UnexpectedErrorImplCopyWithImpl(
|
|
_$UnexpectedErrorImpl _value,
|
|
$Res Function(_$UnexpectedErrorImpl) _then,
|
|
) : super(_value, _then);
|
|
|
|
/// Create a copy of AuthFailure
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$UnexpectedErrorImpl implements _UnexpectedError {
|
|
const _$UnexpectedErrorImpl();
|
|
|
|
@override
|
|
String toString() {
|
|
return 'AuthFailure.unexpectedError()';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType && other is _$UnexpectedErrorImpl);
|
|
}
|
|
|
|
@override
|
|
int get hashCode => runtimeType.hashCode;
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult when<TResult extends Object?>({
|
|
required TResult Function(ApiFailure failure) serverError,
|
|
required TResult Function() unexpectedError,
|
|
required TResult Function(String erroMessage) dynamicErrorMessage,
|
|
}) {
|
|
return unexpectedError();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
TResult? Function(ApiFailure failure)? serverError,
|
|
TResult? Function()? unexpectedError,
|
|
TResult? Function(String erroMessage)? dynamicErrorMessage,
|
|
}) {
|
|
return unexpectedError?.call();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
TResult Function(ApiFailure failure)? serverError,
|
|
TResult Function()? unexpectedError,
|
|
TResult Function(String erroMessage)? dynamicErrorMessage,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (unexpectedError != null) {
|
|
return unexpectedError();
|
|
}
|
|
return orElse();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult map<TResult extends Object?>({
|
|
required TResult Function(_ServerError value) serverError,
|
|
required TResult Function(_UnexpectedError value) unexpectedError,
|
|
required TResult Function(_DynamicErrorMessage value) dynamicErrorMessage,
|
|
}) {
|
|
return unexpectedError(this);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
TResult? Function(_ServerError value)? serverError,
|
|
TResult? Function(_UnexpectedError value)? unexpectedError,
|
|
TResult? Function(_DynamicErrorMessage value)? dynamicErrorMessage,
|
|
}) {
|
|
return unexpectedError?.call(this);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeMap<TResult extends Object?>({
|
|
TResult Function(_ServerError value)? serverError,
|
|
TResult Function(_UnexpectedError value)? unexpectedError,
|
|
TResult Function(_DynamicErrorMessage value)? dynamicErrorMessage,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (unexpectedError != null) {
|
|
return unexpectedError(this);
|
|
}
|
|
return orElse();
|
|
}
|
|
}
|
|
|
|
abstract class _UnexpectedError implements AuthFailure {
|
|
const factory _UnexpectedError() = _$UnexpectedErrorImpl;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$DynamicErrorMessageImplCopyWith<$Res> {
|
|
factory _$$DynamicErrorMessageImplCopyWith(
|
|
_$DynamicErrorMessageImpl value,
|
|
$Res Function(_$DynamicErrorMessageImpl) then,
|
|
) = __$$DynamicErrorMessageImplCopyWithImpl<$Res>;
|
|
@useResult
|
|
$Res call({String erroMessage});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$DynamicErrorMessageImplCopyWithImpl<$Res>
|
|
extends _$AuthFailureCopyWithImpl<$Res, _$DynamicErrorMessageImpl>
|
|
implements _$$DynamicErrorMessageImplCopyWith<$Res> {
|
|
__$$DynamicErrorMessageImplCopyWithImpl(
|
|
_$DynamicErrorMessageImpl _value,
|
|
$Res Function(_$DynamicErrorMessageImpl) _then,
|
|
) : super(_value, _then);
|
|
|
|
/// Create a copy of AuthFailure
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({Object? erroMessage = null}) {
|
|
return _then(
|
|
_$DynamicErrorMessageImpl(
|
|
null == erroMessage
|
|
? _value.erroMessage
|
|
: erroMessage // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$DynamicErrorMessageImpl implements _DynamicErrorMessage {
|
|
const _$DynamicErrorMessageImpl(this.erroMessage);
|
|
|
|
@override
|
|
final String erroMessage;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'AuthFailure.dynamicErrorMessage(erroMessage: $erroMessage)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$DynamicErrorMessageImpl &&
|
|
(identical(other.erroMessage, erroMessage) ||
|
|
other.erroMessage == erroMessage));
|
|
}
|
|
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, erroMessage);
|
|
|
|
/// Create a copy of AuthFailure
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$DynamicErrorMessageImplCopyWith<_$DynamicErrorMessageImpl> get copyWith =>
|
|
__$$DynamicErrorMessageImplCopyWithImpl<_$DynamicErrorMessageImpl>(
|
|
this,
|
|
_$identity,
|
|
);
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult when<TResult extends Object?>({
|
|
required TResult Function(ApiFailure failure) serverError,
|
|
required TResult Function() unexpectedError,
|
|
required TResult Function(String erroMessage) dynamicErrorMessage,
|
|
}) {
|
|
return dynamicErrorMessage(erroMessage);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? whenOrNull<TResult extends Object?>({
|
|
TResult? Function(ApiFailure failure)? serverError,
|
|
TResult? Function()? unexpectedError,
|
|
TResult? Function(String erroMessage)? dynamicErrorMessage,
|
|
}) {
|
|
return dynamicErrorMessage?.call(erroMessage);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeWhen<TResult extends Object?>({
|
|
TResult Function(ApiFailure failure)? serverError,
|
|
TResult Function()? unexpectedError,
|
|
TResult Function(String erroMessage)? dynamicErrorMessage,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (dynamicErrorMessage != null) {
|
|
return dynamicErrorMessage(erroMessage);
|
|
}
|
|
return orElse();
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult map<TResult extends Object?>({
|
|
required TResult Function(_ServerError value) serverError,
|
|
required TResult Function(_UnexpectedError value) unexpectedError,
|
|
required TResult Function(_DynamicErrorMessage value) dynamicErrorMessage,
|
|
}) {
|
|
return dynamicErrorMessage(this);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult? mapOrNull<TResult extends Object?>({
|
|
TResult? Function(_ServerError value)? serverError,
|
|
TResult? Function(_UnexpectedError value)? unexpectedError,
|
|
TResult? Function(_DynamicErrorMessage value)? dynamicErrorMessage,
|
|
}) {
|
|
return dynamicErrorMessage?.call(this);
|
|
}
|
|
|
|
@override
|
|
@optionalTypeArgs
|
|
TResult maybeMap<TResult extends Object?>({
|
|
TResult Function(_ServerError value)? serverError,
|
|
TResult Function(_UnexpectedError value)? unexpectedError,
|
|
TResult Function(_DynamicErrorMessage value)? dynamicErrorMessage,
|
|
required TResult orElse(),
|
|
}) {
|
|
if (dynamicErrorMessage != null) {
|
|
return dynamicErrorMessage(this);
|
|
}
|
|
return orElse();
|
|
}
|
|
}
|
|
|
|
abstract class _DynamicErrorMessage implements AuthFailure {
|
|
const factory _DynamicErrorMessage(final String erroMessage) =
|
|
_$DynamicErrorMessageImpl;
|
|
|
|
String get erroMessage;
|
|
|
|
/// Create a copy of AuthFailure
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$DynamicErrorMessageImplCopyWith<_$DynamicErrorMessageImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|