245 lines
7.4 KiB
Dart
245 lines
7.4 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_dtos.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',
|
||
|
|
);
|
||
|
|
|
||
|
|
AuthDto _$AuthDtoFromJson(Map<String, dynamic> json) {
|
||
|
|
return _AuthDto.fromJson(json);
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
mixin _$AuthDto {
|
||
|
|
@JsonKey(name: 'token')
|
||
|
|
String? get token => throw _privateConstructorUsedError;
|
||
|
|
@JsonKey(name: 'expires_at')
|
||
|
|
String? get expiresAt => throw _privateConstructorUsedError;
|
||
|
|
@JsonKey(name: 'user')
|
||
|
|
UserDto? get user => throw _privateConstructorUsedError;
|
||
|
|
|
||
|
|
/// Serializes this AuthDto to a JSON map.
|
||
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||
|
|
|
||
|
|
/// Create a copy of AuthDto
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
||
|
|
$AuthDtoCopyWith<AuthDto> get copyWith => throw _privateConstructorUsedError;
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
abstract class $AuthDtoCopyWith<$Res> {
|
||
|
|
factory $AuthDtoCopyWith(AuthDto value, $Res Function(AuthDto) then) =
|
||
|
|
_$AuthDtoCopyWithImpl<$Res, AuthDto>;
|
||
|
|
@useResult
|
||
|
|
$Res call({
|
||
|
|
@JsonKey(name: 'token') String? token,
|
||
|
|
@JsonKey(name: 'expires_at') String? expiresAt,
|
||
|
|
@JsonKey(name: 'user') UserDto? user,
|
||
|
|
});
|
||
|
|
|
||
|
|
$UserDtoCopyWith<$Res>? get user;
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
class _$AuthDtoCopyWithImpl<$Res, $Val extends AuthDto>
|
||
|
|
implements $AuthDtoCopyWith<$Res> {
|
||
|
|
_$AuthDtoCopyWithImpl(this._value, this._then);
|
||
|
|
|
||
|
|
// ignore: unused_field
|
||
|
|
final $Val _value;
|
||
|
|
// ignore: unused_field
|
||
|
|
final $Res Function($Val) _then;
|
||
|
|
|
||
|
|
/// Create a copy of AuthDto
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
@pragma('vm:prefer-inline')
|
||
|
|
@override
|
||
|
|
$Res call({
|
||
|
|
Object? token = freezed,
|
||
|
|
Object? expiresAt = freezed,
|
||
|
|
Object? user = freezed,
|
||
|
|
}) {
|
||
|
|
return _then(
|
||
|
|
_value.copyWith(
|
||
|
|
token: freezed == token
|
||
|
|
? _value.token
|
||
|
|
: token // ignore: cast_nullable_to_non_nullable
|
||
|
|
as String?,
|
||
|
|
expiresAt: freezed == expiresAt
|
||
|
|
? _value.expiresAt
|
||
|
|
: expiresAt // ignore: cast_nullable_to_non_nullable
|
||
|
|
as String?,
|
||
|
|
user: freezed == user
|
||
|
|
? _value.user
|
||
|
|
: user // ignore: cast_nullable_to_non_nullable
|
||
|
|
as UserDto?,
|
||
|
|
)
|
||
|
|
as $Val,
|
||
|
|
);
|
||
|
|
}
|
||
|
|
|
||
|
|
/// Create a copy of AuthDto
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
@override
|
||
|
|
@pragma('vm:prefer-inline')
|
||
|
|
$UserDtoCopyWith<$Res>? get user {
|
||
|
|
if (_value.user == null) {
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
|
||
|
|
return $UserDtoCopyWith<$Res>(_value.user!, (value) {
|
||
|
|
return _then(_value.copyWith(user: value) as $Val);
|
||
|
|
});
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
abstract class _$$AuthDtoImplCopyWith<$Res> implements $AuthDtoCopyWith<$Res> {
|
||
|
|
factory _$$AuthDtoImplCopyWith(
|
||
|
|
_$AuthDtoImpl value,
|
||
|
|
$Res Function(_$AuthDtoImpl) then,
|
||
|
|
) = __$$AuthDtoImplCopyWithImpl<$Res>;
|
||
|
|
@override
|
||
|
|
@useResult
|
||
|
|
$Res call({
|
||
|
|
@JsonKey(name: 'token') String? token,
|
||
|
|
@JsonKey(name: 'expires_at') String? expiresAt,
|
||
|
|
@JsonKey(name: 'user') UserDto? user,
|
||
|
|
});
|
||
|
|
|
||
|
|
@override
|
||
|
|
$UserDtoCopyWith<$Res>? get user;
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
class __$$AuthDtoImplCopyWithImpl<$Res>
|
||
|
|
extends _$AuthDtoCopyWithImpl<$Res, _$AuthDtoImpl>
|
||
|
|
implements _$$AuthDtoImplCopyWith<$Res> {
|
||
|
|
__$$AuthDtoImplCopyWithImpl(
|
||
|
|
_$AuthDtoImpl _value,
|
||
|
|
$Res Function(_$AuthDtoImpl) _then,
|
||
|
|
) : super(_value, _then);
|
||
|
|
|
||
|
|
/// Create a copy of AuthDto
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
@pragma('vm:prefer-inline')
|
||
|
|
@override
|
||
|
|
$Res call({
|
||
|
|
Object? token = freezed,
|
||
|
|
Object? expiresAt = freezed,
|
||
|
|
Object? user = freezed,
|
||
|
|
}) {
|
||
|
|
return _then(
|
||
|
|
_$AuthDtoImpl(
|
||
|
|
token: freezed == token
|
||
|
|
? _value.token
|
||
|
|
: token // ignore: cast_nullable_to_non_nullable
|
||
|
|
as String?,
|
||
|
|
expiresAt: freezed == expiresAt
|
||
|
|
? _value.expiresAt
|
||
|
|
: expiresAt // ignore: cast_nullable_to_non_nullable
|
||
|
|
as String?,
|
||
|
|
user: freezed == user
|
||
|
|
? _value.user
|
||
|
|
: user // ignore: cast_nullable_to_non_nullable
|
||
|
|
as UserDto?,
|
||
|
|
),
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
@JsonSerializable()
|
||
|
|
class _$AuthDtoImpl extends _AuthDto {
|
||
|
|
const _$AuthDtoImpl({
|
||
|
|
@JsonKey(name: 'token') this.token,
|
||
|
|
@JsonKey(name: 'expires_at') this.expiresAt,
|
||
|
|
@JsonKey(name: 'user') this.user,
|
||
|
|
}) : super._();
|
||
|
|
|
||
|
|
factory _$AuthDtoImpl.fromJson(Map<String, dynamic> json) =>
|
||
|
|
_$$AuthDtoImplFromJson(json);
|
||
|
|
|
||
|
|
@override
|
||
|
|
@JsonKey(name: 'token')
|
||
|
|
final String? token;
|
||
|
|
@override
|
||
|
|
@JsonKey(name: 'expires_at')
|
||
|
|
final String? expiresAt;
|
||
|
|
@override
|
||
|
|
@JsonKey(name: 'user')
|
||
|
|
final UserDto? user;
|
||
|
|
|
||
|
|
@override
|
||
|
|
String toString() {
|
||
|
|
return 'AuthDto(token: $token, expiresAt: $expiresAt, user: $user)';
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
bool operator ==(Object other) {
|
||
|
|
return identical(this, other) ||
|
||
|
|
(other.runtimeType == runtimeType &&
|
||
|
|
other is _$AuthDtoImpl &&
|
||
|
|
(identical(other.token, token) || other.token == token) &&
|
||
|
|
(identical(other.expiresAt, expiresAt) ||
|
||
|
|
other.expiresAt == expiresAt) &&
|
||
|
|
(identical(other.user, user) || other.user == user));
|
||
|
|
}
|
||
|
|
|
||
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
||
|
|
@override
|
||
|
|
int get hashCode => Object.hash(runtimeType, token, expiresAt, user);
|
||
|
|
|
||
|
|
/// Create a copy of AuthDto
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
||
|
|
@override
|
||
|
|
@pragma('vm:prefer-inline')
|
||
|
|
_$$AuthDtoImplCopyWith<_$AuthDtoImpl> get copyWith =>
|
||
|
|
__$$AuthDtoImplCopyWithImpl<_$AuthDtoImpl>(this, _$identity);
|
||
|
|
|
||
|
|
@override
|
||
|
|
Map<String, dynamic> toJson() {
|
||
|
|
return _$$AuthDtoImplToJson(this);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
abstract class _AuthDto extends AuthDto {
|
||
|
|
const factory _AuthDto({
|
||
|
|
@JsonKey(name: 'token') final String? token,
|
||
|
|
@JsonKey(name: 'expires_at') final String? expiresAt,
|
||
|
|
@JsonKey(name: 'user') final UserDto? user,
|
||
|
|
}) = _$AuthDtoImpl;
|
||
|
|
const _AuthDto._() : super._();
|
||
|
|
|
||
|
|
factory _AuthDto.fromJson(Map<String, dynamic> json) = _$AuthDtoImpl.fromJson;
|
||
|
|
|
||
|
|
@override
|
||
|
|
@JsonKey(name: 'token')
|
||
|
|
String? get token;
|
||
|
|
@override
|
||
|
|
@JsonKey(name: 'expires_at')
|
||
|
|
String? get expiresAt;
|
||
|
|
@override
|
||
|
|
@JsonKey(name: 'user')
|
||
|
|
UserDto? get user;
|
||
|
|
|
||
|
|
/// Create a copy of AuthDto
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
@override
|
||
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
||
|
|
_$$AuthDtoImplCopyWith<_$AuthDtoImpl> get copyWith =>
|
||
|
|
throw _privateConstructorUsedError;
|
||
|
|
}
|