// 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 'login_response.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', ); LoginResponse _$LoginResponseFromJson(Map json) { return _LoginResponse.fromJson(json); } /// @nodoc mixin _$LoginResponse { /// The token to be used for authentication. String get token => throw _privateConstructorUsedError; /// The user id. String get userId => throw _privateConstructorUsedError; /// Serializes this LoginResponse to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of LoginResponse /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $LoginResponseCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $LoginResponseCopyWith<$Res> { factory $LoginResponseCopyWith( LoginResponse value, $Res Function(LoginResponse) then, ) = _$LoginResponseCopyWithImpl<$Res, LoginResponse>; @useResult $Res call({String token, String userId}); } /// @nodoc class _$LoginResponseCopyWithImpl<$Res, $Val extends LoginResponse> implements $LoginResponseCopyWith<$Res> { _$LoginResponseCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of LoginResponse /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? token = null, Object? userId = null}) { return _then( _value.copyWith( token: null == token ? _value.token : token // ignore: cast_nullable_to_non_nullable as String, userId: null == userId ? _value.userId : userId // ignore: cast_nullable_to_non_nullable as String, ) as $Val, ); } } /// @nodoc abstract class _$$LoginResponseImplCopyWith<$Res> implements $LoginResponseCopyWith<$Res> { factory _$$LoginResponseImplCopyWith( _$LoginResponseImpl value, $Res Function(_$LoginResponseImpl) then, ) = __$$LoginResponseImplCopyWithImpl<$Res>; @override @useResult $Res call({String token, String userId}); } /// @nodoc class __$$LoginResponseImplCopyWithImpl<$Res> extends _$LoginResponseCopyWithImpl<$Res, _$LoginResponseImpl> implements _$$LoginResponseImplCopyWith<$Res> { __$$LoginResponseImplCopyWithImpl( _$LoginResponseImpl _value, $Res Function(_$LoginResponseImpl) _then, ) : super(_value, _then); /// Create a copy of LoginResponse /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? token = null, Object? userId = null}) { return _then( _$LoginResponseImpl( token: null == token ? _value.token : token // ignore: cast_nullable_to_non_nullable as String, userId: null == userId ? _value.userId : userId // ignore: cast_nullable_to_non_nullable as String, ), ); } } /// @nodoc @JsonSerializable() class _$LoginResponseImpl implements _LoginResponse { const _$LoginResponseImpl({required this.token, required this.userId}); factory _$LoginResponseImpl.fromJson(Map json) => _$$LoginResponseImplFromJson(json); /// The token to be used for authentication. @override final String token; /// The user id. @override final String userId; @override String toString() { return 'LoginResponse(token: $token, userId: $userId)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$LoginResponseImpl && (identical(other.token, token) || other.token == token) && (identical(other.userId, userId) || other.userId == userId)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, token, userId); /// Create a copy of LoginResponse /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$LoginResponseImplCopyWith<_$LoginResponseImpl> get copyWith => __$$LoginResponseImplCopyWithImpl<_$LoginResponseImpl>(this, _$identity); @override Map toJson() { return _$$LoginResponseImplToJson(this); } } abstract class _LoginResponse implements LoginResponse { const factory _LoginResponse({ required final String token, required final String userId, }) = _$LoginResponseImpl; factory _LoginResponse.fromJson(Map json) = _$LoginResponseImpl.fromJson; /// The token to be used for authentication. @override String get token; /// The user id. @override String get userId; /// Create a copy of LoginResponse /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$LoginResponseImplCopyWith<_$LoginResponseImpl> get copyWith => throw _privateConstructorUsedError; }