// 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 'user.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', ); User _$UserFromJson(Map json) { return _User.fromJson(json); } /// @nodoc mixin _$User { /// The user's name. String get name => throw _privateConstructorUsedError; /// The user's picture URL. String get picture => throw _privateConstructorUsedError; /// Serializes this User to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of User /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $UserCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $UserCopyWith<$Res> { factory $UserCopyWith(User value, $Res Function(User) then) = _$UserCopyWithImpl<$Res, User>; @useResult $Res call({String name, String picture}); } /// @nodoc class _$UserCopyWithImpl<$Res, $Val extends User> implements $UserCopyWith<$Res> { _$UserCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of User /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? name = null, Object? picture = null}) { return _then( _value.copyWith( name: null == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String, picture: null == picture ? _value.picture : picture // ignore: cast_nullable_to_non_nullable as String, ) as $Val, ); } } /// @nodoc abstract class _$$UserImplCopyWith<$Res> implements $UserCopyWith<$Res> { factory _$$UserImplCopyWith( _$UserImpl value, $Res Function(_$UserImpl) then, ) = __$$UserImplCopyWithImpl<$Res>; @override @useResult $Res call({String name, String picture}); } /// @nodoc class __$$UserImplCopyWithImpl<$Res> extends _$UserCopyWithImpl<$Res, _$UserImpl> implements _$$UserImplCopyWith<$Res> { __$$UserImplCopyWithImpl(_$UserImpl _value, $Res Function(_$UserImpl) _then) : super(_value, _then); /// Create a copy of User /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({Object? name = null, Object? picture = null}) { return _then( _$UserImpl( name: null == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String, picture: null == picture ? _value.picture : picture // ignore: cast_nullable_to_non_nullable as String, ), ); } } /// @nodoc @JsonSerializable() class _$UserImpl implements _User { const _$UserImpl({required this.name, required this.picture}); factory _$UserImpl.fromJson(Map json) => _$$UserImplFromJson(json); /// The user's name. @override final String name; /// The user's picture URL. @override final String picture; @override String toString() { return 'User(name: $name, picture: $picture)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$UserImpl && (identical(other.name, name) || other.name == name) && (identical(other.picture, picture) || other.picture == picture)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, name, picture); /// Create a copy of User /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$UserImplCopyWith<_$UserImpl> get copyWith => __$$UserImplCopyWithImpl<_$UserImpl>(this, _$identity); @override Map toJson() { return _$$UserImplToJson(this); } } abstract class _User implements User { const factory _User({ required final String name, required final String picture, }) = _$UserImpl; factory _User.fromJson(Map json) = _$UserImpl.fromJson; /// The user's name. @override String get name; /// The user's picture URL. @override String get picture; /// Create a copy of User /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$UserImplCopyWith<_$UserImpl> get copyWith => throw _privateConstructorUsedError; }