// 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_data.dart'; // ************************************************************************** // FreezedGenerator // ************************************************************************** T _$identity(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'); AuthData _$AuthDataFromJson(Map json) { return _AuthData.fromJson(json); } /// @nodoc mixin _$AuthData { String get token => throw _privateConstructorUsedError; String get refreshToken => throw _privateConstructorUsedError; /// Serializes this AuthData to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of AuthData /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $AuthDataCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $AuthDataCopyWith<$Res> { factory $AuthDataCopyWith(AuthData value, $Res Function(AuthData) then) = _$AuthDataCopyWithImpl<$Res, AuthData>; @useResult $Res call({String token, String refreshToken}); } /// @nodoc class _$AuthDataCopyWithImpl<$Res, $Val extends AuthData> implements $AuthDataCopyWith<$Res> { _$AuthDataCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of AuthData /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? token = null, Object? refreshToken = null, }) { return _then(_value.copyWith( token: null == token ? _value.token : token // ignore: cast_nullable_to_non_nullable as String, refreshToken: null == refreshToken ? _value.refreshToken : refreshToken // ignore: cast_nullable_to_non_nullable as String, ) as $Val); } } /// @nodoc abstract class _$$AuthDataImplCopyWith<$Res> implements $AuthDataCopyWith<$Res> { factory _$$AuthDataImplCopyWith( _$AuthDataImpl value, $Res Function(_$AuthDataImpl) then) = __$$AuthDataImplCopyWithImpl<$Res>; @override @useResult $Res call({String token, String refreshToken}); } /// @nodoc class __$$AuthDataImplCopyWithImpl<$Res> extends _$AuthDataCopyWithImpl<$Res, _$AuthDataImpl> implements _$$AuthDataImplCopyWith<$Res> { __$$AuthDataImplCopyWithImpl( _$AuthDataImpl _value, $Res Function(_$AuthDataImpl) _then) : super(_value, _then); /// Create a copy of AuthData /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? token = null, Object? refreshToken = null, }) { return _then(_$AuthDataImpl( token: null == token ? _value.token : token // ignore: cast_nullable_to_non_nullable as String, refreshToken: null == refreshToken ? _value.refreshToken : refreshToken // ignore: cast_nullable_to_non_nullable as String, )); } } /// @nodoc @JsonSerializable() class _$AuthDataImpl with DiagnosticableTreeMixin implements _AuthData { const _$AuthDataImpl({required this.token, required this.refreshToken}); factory _$AuthDataImpl.fromJson(Map json) => _$$AuthDataImplFromJson(json); @override final String token; @override final String refreshToken; @override String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { return 'AuthData(token: $token, refreshToken: $refreshToken)'; } @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { super.debugFillProperties(properties); properties ..add(DiagnosticsProperty('type', 'AuthData')) ..add(DiagnosticsProperty('token', token)) ..add(DiagnosticsProperty('refreshToken', refreshToken)); } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$AuthDataImpl && (identical(other.token, token) || other.token == token) && (identical(other.refreshToken, refreshToken) || other.refreshToken == refreshToken)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, token, refreshToken); /// Create a copy of AuthData /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$AuthDataImplCopyWith<_$AuthDataImpl> get copyWith => __$$AuthDataImplCopyWithImpl<_$AuthDataImpl>(this, _$identity); @override Map toJson() { return _$$AuthDataImplToJson( this, ); } } abstract class _AuthData implements AuthData { const factory _AuthData( {required final String token, required final String refreshToken}) = _$AuthDataImpl; factory _AuthData.fromJson(Map json) = _$AuthDataImpl.fromJson; @override String get token; @override String get refreshToken; /// Create a copy of AuthData /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$AuthDataImplCopyWith<_$AuthDataImpl> get copyWith => throw _privateConstructorUsedError; }