// 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 'session.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', ); Session _$SessionFromJson(Map json) { return _Session.fromJson(json); } /// @nodoc mixin _$Session { String get token => throw _privateConstructorUsedError; String get refreshToken => throw _privateConstructorUsedError; DateTime get expiresAt => throw _privateConstructorUsedError; String get did => throw _privateConstructorUsedError; /// Serializes this Session to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of Session /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $SessionCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $SessionCopyWith<$Res> { factory $SessionCopyWith(Session value, $Res Function(Session) then) = _$SessionCopyWithImpl<$Res, Session>; @useResult $Res call({ String token, String refreshToken, DateTime expiresAt, String did, }); } /// @nodoc class _$SessionCopyWithImpl<$Res, $Val extends Session> implements $SessionCopyWith<$Res> { _$SessionCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of Session /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? token = null, Object? refreshToken = null, Object? expiresAt = null, Object? did = 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, expiresAt: null == expiresAt ? _value.expiresAt : expiresAt // ignore: cast_nullable_to_non_nullable as DateTime, did: null == did ? _value.did : did // ignore: cast_nullable_to_non_nullable as String, ) as $Val, ); } } /// @nodoc abstract class _$$SessionImplCopyWith<$Res> implements $SessionCopyWith<$Res> { factory _$$SessionImplCopyWith( _$SessionImpl value, $Res Function(_$SessionImpl) then, ) = __$$SessionImplCopyWithImpl<$Res>; @override @useResult $Res call({ String token, String refreshToken, DateTime expiresAt, String did, }); } /// @nodoc class __$$SessionImplCopyWithImpl<$Res> extends _$SessionCopyWithImpl<$Res, _$SessionImpl> implements _$$SessionImplCopyWith<$Res> { __$$SessionImplCopyWithImpl( _$SessionImpl _value, $Res Function(_$SessionImpl) _then, ) : super(_value, _then); /// Create a copy of Session /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? token = null, Object? refreshToken = null, Object? expiresAt = null, Object? did = null, }) { return _then( _$SessionImpl( 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, expiresAt: null == expiresAt ? _value.expiresAt : expiresAt // ignore: cast_nullable_to_non_nullable as DateTime, did: null == did ? _value.did : did // ignore: cast_nullable_to_non_nullable as String, ), ); } } /// @nodoc @JsonSerializable() class _$SessionImpl implements _Session { const _$SessionImpl({ required this.token, required this.refreshToken, required this.expiresAt, required this.did, }); factory _$SessionImpl.fromJson(Map json) => _$$SessionImplFromJson(json); @override final String token; @override final String refreshToken; @override final DateTime expiresAt; @override final String did; @override String toString() { return 'Session(token: $token, refreshToken: $refreshToken, expiresAt: $expiresAt, did: $did)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$SessionImpl && (identical(other.token, token) || other.token == token) && (identical(other.refreshToken, refreshToken) || other.refreshToken == refreshToken) && (identical(other.expiresAt, expiresAt) || other.expiresAt == expiresAt) && (identical(other.did, did) || other.did == did)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, token, refreshToken, expiresAt, did); /// Create a copy of Session /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$SessionImplCopyWith<_$SessionImpl> get copyWith => __$$SessionImplCopyWithImpl<_$SessionImpl>(this, _$identity); @override Map toJson() { return _$$SessionImplToJson(this); } } abstract class _Session implements Session { const factory _Session({ required final String token, required final String refreshToken, required final DateTime expiresAt, required final String did, }) = _$SessionImpl; factory _Session.fromJson(Map json) = _$SessionImpl.fromJson; @override String get token; @override String get refreshToken; @override DateTime get expiresAt; @override String get did; /// Create a copy of Session /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$SessionImplCopyWith<_$SessionImpl> get copyWith => throw _privateConstructorUsedError; }