// 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_entity.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'); UserEntity _$UserEntityFromJson(Map json) { return _UserEntity.fromJson(json); } /// @nodoc mixin _$UserEntity { String get id => throw _privateConstructorUsedError; String get name => throw _privateConstructorUsedError; String? get imgUrl => throw _privateConstructorUsedError; String get email => throw _privateConstructorUsedError; PreferencesEntity get preferences => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) $UserEntityCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $UserEntityCopyWith<$Res> { factory $UserEntityCopyWith( UserEntity value, $Res Function(UserEntity) then) = _$UserEntityCopyWithImpl<$Res, UserEntity>; @useResult $Res call( {String id, String name, String? imgUrl, String email, PreferencesEntity preferences}); $PreferencesEntityCopyWith<$Res> get preferences; } /// @nodoc class _$UserEntityCopyWithImpl<$Res, $Val extends UserEntity> implements $UserEntityCopyWith<$Res> { _$UserEntityCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? name = null, Object? imgUrl = freezed, Object? email = null, Object? preferences = null, }) { return _then(_value.copyWith( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as String, name: null == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String, imgUrl: freezed == imgUrl ? _value.imgUrl : imgUrl // ignore: cast_nullable_to_non_nullable as String?, email: null == email ? _value.email : email // ignore: cast_nullable_to_non_nullable as String, preferences: null == preferences ? _value.preferences : preferences // ignore: cast_nullable_to_non_nullable as PreferencesEntity, ) as $Val); } @override @pragma('vm:prefer-inline') $PreferencesEntityCopyWith<$Res> get preferences { return $PreferencesEntityCopyWith<$Res>(_value.preferences, (value) { return _then(_value.copyWith(preferences: value) as $Val); }); } } /// @nodoc abstract class _$$UserEntityImplCopyWith<$Res> implements $UserEntityCopyWith<$Res> { factory _$$UserEntityImplCopyWith( _$UserEntityImpl value, $Res Function(_$UserEntityImpl) then) = __$$UserEntityImplCopyWithImpl<$Res>; @override @useResult $Res call( {String id, String name, String? imgUrl, String email, PreferencesEntity preferences}); @override $PreferencesEntityCopyWith<$Res> get preferences; } /// @nodoc class __$$UserEntityImplCopyWithImpl<$Res> extends _$UserEntityCopyWithImpl<$Res, _$UserEntityImpl> implements _$$UserEntityImplCopyWith<$Res> { __$$UserEntityImplCopyWithImpl( _$UserEntityImpl _value, $Res Function(_$UserEntityImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? name = null, Object? imgUrl = freezed, Object? email = null, Object? preferences = null, }) { return _then(_$UserEntityImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as String, name: null == name ? _value.name : name // ignore: cast_nullable_to_non_nullable as String, imgUrl: freezed == imgUrl ? _value.imgUrl : imgUrl // ignore: cast_nullable_to_non_nullable as String?, email: null == email ? _value.email : email // ignore: cast_nullable_to_non_nullable as String, preferences: null == preferences ? _value.preferences : preferences // ignore: cast_nullable_to_non_nullable as PreferencesEntity, )); } } /// @nodoc @JsonSerializable() class _$UserEntityImpl with DiagnosticableTreeMixin implements _UserEntity { const _$UserEntityImpl( {required this.id, required this.name, required this.imgUrl, required this.email, required this.preferences}); factory _$UserEntityImpl.fromJson(Map json) => _$$UserEntityImplFromJson(json); @override final String id; @override final String name; @override final String? imgUrl; @override final String email; @override final PreferencesEntity preferences; @override String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { return 'UserEntity(id: $id, name: $name, imgUrl: $imgUrl, email: $email, preferences: $preferences)'; } @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { super.debugFillProperties(properties); properties ..add(DiagnosticsProperty('type', 'UserEntity')) ..add(DiagnosticsProperty('id', id)) ..add(DiagnosticsProperty('name', name)) ..add(DiagnosticsProperty('imgUrl', imgUrl)) ..add(DiagnosticsProperty('email', email)) ..add(DiagnosticsProperty('preferences', preferences)); } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$UserEntityImpl && (identical(other.id, id) || other.id == id) && (identical(other.name, name) || other.name == name) && (identical(other.imgUrl, imgUrl) || other.imgUrl == imgUrl) && (identical(other.email, email) || other.email == email) && (identical(other.preferences, preferences) || other.preferences == preferences)); } @JsonKey(ignore: true) @override int get hashCode => Object.hash(runtimeType, id, name, imgUrl, email, preferences); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$UserEntityImplCopyWith<_$UserEntityImpl> get copyWith => __$$UserEntityImplCopyWithImpl<_$UserEntityImpl>(this, _$identity); @override Map toJson() { return _$$UserEntityImplToJson( this, ); } } abstract class _UserEntity implements UserEntity { const factory _UserEntity( {required final String id, required final String name, required final String? imgUrl, required final String email, required final PreferencesEntity preferences}) = _$UserEntityImpl; factory _UserEntity.fromJson(Map json) = _$UserEntityImpl.fromJson; @override String get id; @override String get name; @override String? get imgUrl; @override String get email; @override PreferencesEntity get preferences; @override @JsonKey(ignore: true) _$$UserEntityImplCopyWith<_$UserEntityImpl> get copyWith => throw _privateConstructorUsedError; }