mirror of
https://github.com/bettercoding-dev/flutter-jwt-auth.git
synced 2025-08-06 17:28:17 +08:00
167 lines
5.6 KiB
Dart
167 lines
5.6 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 'refresh_token_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');
|
|
|
|
RefreshTokenRequest _$RefreshTokenRequestFromJson(Map<String, dynamic> json) {
|
|
return _RefreshTokenRequest.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$RefreshTokenRequest {
|
|
String get token => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this RefreshTokenRequest to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of RefreshTokenRequest
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$RefreshTokenRequestCopyWith<RefreshTokenRequest> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $RefreshTokenRequestCopyWith<$Res> {
|
|
factory $RefreshTokenRequestCopyWith(
|
|
RefreshTokenRequest value, $Res Function(RefreshTokenRequest) then) =
|
|
_$RefreshTokenRequestCopyWithImpl<$Res, RefreshTokenRequest>;
|
|
@useResult
|
|
$Res call({String token});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$RefreshTokenRequestCopyWithImpl<$Res, $Val extends RefreshTokenRequest>
|
|
implements $RefreshTokenRequestCopyWith<$Res> {
|
|
_$RefreshTokenRequestCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of RefreshTokenRequest
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? token = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
token: null == token
|
|
? _value.token
|
|
: token // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$RefreshTokenRequestImplCopyWith<$Res>
|
|
implements $RefreshTokenRequestCopyWith<$Res> {
|
|
factory _$$RefreshTokenRequestImplCopyWith(_$RefreshTokenRequestImpl value,
|
|
$Res Function(_$RefreshTokenRequestImpl) then) =
|
|
__$$RefreshTokenRequestImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({String token});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$RefreshTokenRequestImplCopyWithImpl<$Res>
|
|
extends _$RefreshTokenRequestCopyWithImpl<$Res, _$RefreshTokenRequestImpl>
|
|
implements _$$RefreshTokenRequestImplCopyWith<$Res> {
|
|
__$$RefreshTokenRequestImplCopyWithImpl(_$RefreshTokenRequestImpl _value,
|
|
$Res Function(_$RefreshTokenRequestImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of RefreshTokenRequest
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? token = null,
|
|
}) {
|
|
return _then(_$RefreshTokenRequestImpl(
|
|
token: null == token
|
|
? _value.token
|
|
: token // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$RefreshTokenRequestImpl implements _RefreshTokenRequest {
|
|
const _$RefreshTokenRequestImpl({required this.token});
|
|
|
|
factory _$RefreshTokenRequestImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$RefreshTokenRequestImplFromJson(json);
|
|
|
|
@override
|
|
final String token;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'RefreshTokenRequest(token: $token)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$RefreshTokenRequestImpl &&
|
|
(identical(other.token, token) || other.token == token));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, token);
|
|
|
|
/// Create a copy of RefreshTokenRequest
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$RefreshTokenRequestImplCopyWith<_$RefreshTokenRequestImpl> get copyWith =>
|
|
__$$RefreshTokenRequestImplCopyWithImpl<_$RefreshTokenRequestImpl>(
|
|
this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$RefreshTokenRequestImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _RefreshTokenRequest implements RefreshTokenRequest {
|
|
const factory _RefreshTokenRequest({required final String token}) =
|
|
_$RefreshTokenRequestImpl;
|
|
|
|
factory _RefreshTokenRequest.fromJson(Map<String, dynamic> json) =
|
|
_$RefreshTokenRequestImpl.fromJson;
|
|
|
|
@override
|
|
String get token;
|
|
|
|
/// Create a copy of RefreshTokenRequest
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$RefreshTokenRequestImplCopyWith<_$RefreshTokenRequestImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|