// 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 'preferences_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'); PreferencesEntity _$PreferencesEntityFromJson(Map json) { return _PreferencesEntity.fromJson(json); } /// @nodoc mixin _$PreferencesEntity { LanguageLocale get language => throw _privateConstructorUsedError; IList get favoriteIndicators => throw _privateConstructorUsedError; IList get favoriteCountries => throw _privateConstructorUsedError; /// uses [CompetitivenessReportEntity].reportCode IList get favoriteReports => throw _privateConstructorUsedError; bool get doNotifyOnIndicatorUpdates => throw _privateConstructorUsedError; bool get doNotifyOnCompetitivenessReportsUpdates => throw _privateConstructorUsedError; bool get doNotifyOnCountryUpdates => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) $PreferencesEntityCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $PreferencesEntityCopyWith<$Res> { factory $PreferencesEntityCopyWith( PreferencesEntity value, $Res Function(PreferencesEntity) then) = _$PreferencesEntityCopyWithImpl<$Res, PreferencesEntity>; @useResult $Res call( {LanguageLocale language, IList favoriteIndicators, IList favoriteCountries, IList favoriteReports, bool doNotifyOnIndicatorUpdates, bool doNotifyOnCompetitivenessReportsUpdates, bool doNotifyOnCountryUpdates}); } /// @nodoc class _$PreferencesEntityCopyWithImpl<$Res, $Val extends PreferencesEntity> implements $PreferencesEntityCopyWith<$Res> { _$PreferencesEntityCopyWithImpl(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? language = null, Object? favoriteIndicators = null, Object? favoriteCountries = null, Object? favoriteReports = null, Object? doNotifyOnIndicatorUpdates = null, Object? doNotifyOnCompetitivenessReportsUpdates = null, Object? doNotifyOnCountryUpdates = null, }) { return _then(_value.copyWith( language: null == language ? _value.language : language // ignore: cast_nullable_to_non_nullable as LanguageLocale, favoriteIndicators: null == favoriteIndicators ? _value.favoriteIndicators : favoriteIndicators // ignore: cast_nullable_to_non_nullable as IList, favoriteCountries: null == favoriteCountries ? _value.favoriteCountries : favoriteCountries // ignore: cast_nullable_to_non_nullable as IList, favoriteReports: null == favoriteReports ? _value.favoriteReports : favoriteReports // ignore: cast_nullable_to_non_nullable as IList, doNotifyOnIndicatorUpdates: null == doNotifyOnIndicatorUpdates ? _value.doNotifyOnIndicatorUpdates : doNotifyOnIndicatorUpdates // ignore: cast_nullable_to_non_nullable as bool, doNotifyOnCompetitivenessReportsUpdates: null == doNotifyOnCompetitivenessReportsUpdates ? _value.doNotifyOnCompetitivenessReportsUpdates : doNotifyOnCompetitivenessReportsUpdates // ignore: cast_nullable_to_non_nullable as bool, doNotifyOnCountryUpdates: null == doNotifyOnCountryUpdates ? _value.doNotifyOnCountryUpdates : doNotifyOnCountryUpdates // ignore: cast_nullable_to_non_nullable as bool, ) as $Val); } } /// @nodoc abstract class _$$PreferencesEntityImplCopyWith<$Res> implements $PreferencesEntityCopyWith<$Res> { factory _$$PreferencesEntityImplCopyWith(_$PreferencesEntityImpl value, $Res Function(_$PreferencesEntityImpl) then) = __$$PreferencesEntityImplCopyWithImpl<$Res>; @override @useResult $Res call( {LanguageLocale language, IList favoriteIndicators, IList favoriteCountries, IList favoriteReports, bool doNotifyOnIndicatorUpdates, bool doNotifyOnCompetitivenessReportsUpdates, bool doNotifyOnCountryUpdates}); } /// @nodoc class __$$PreferencesEntityImplCopyWithImpl<$Res> extends _$PreferencesEntityCopyWithImpl<$Res, _$PreferencesEntityImpl> implements _$$PreferencesEntityImplCopyWith<$Res> { __$$PreferencesEntityImplCopyWithImpl(_$PreferencesEntityImpl _value, $Res Function(_$PreferencesEntityImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @override $Res call({ Object? language = null, Object? favoriteIndicators = null, Object? favoriteCountries = null, Object? favoriteReports = null, Object? doNotifyOnIndicatorUpdates = null, Object? doNotifyOnCompetitivenessReportsUpdates = null, Object? doNotifyOnCountryUpdates = null, }) { return _then(_$PreferencesEntityImpl( language: null == language ? _value.language : language // ignore: cast_nullable_to_non_nullable as LanguageLocale, favoriteIndicators: null == favoriteIndicators ? _value.favoriteIndicators : favoriteIndicators // ignore: cast_nullable_to_non_nullable as IList, favoriteCountries: null == favoriteCountries ? _value.favoriteCountries : favoriteCountries // ignore: cast_nullable_to_non_nullable as IList, favoriteReports: null == favoriteReports ? _value.favoriteReports : favoriteReports // ignore: cast_nullable_to_non_nullable as IList, doNotifyOnIndicatorUpdates: null == doNotifyOnIndicatorUpdates ? _value.doNotifyOnIndicatorUpdates : doNotifyOnIndicatorUpdates // ignore: cast_nullable_to_non_nullable as bool, doNotifyOnCompetitivenessReportsUpdates: null == doNotifyOnCompetitivenessReportsUpdates ? _value.doNotifyOnCompetitivenessReportsUpdates : doNotifyOnCompetitivenessReportsUpdates // ignore: cast_nullable_to_non_nullable as bool, doNotifyOnCountryUpdates: null == doNotifyOnCountryUpdates ? _value.doNotifyOnCountryUpdates : doNotifyOnCountryUpdates // ignore: cast_nullable_to_non_nullable as bool, )); } } /// @nodoc @JsonSerializable() class _$PreferencesEntityImpl implements _PreferencesEntity { const _$PreferencesEntityImpl( {required this.language, required this.favoriteIndicators, required this.favoriteCountries, required this.favoriteReports, required this.doNotifyOnIndicatorUpdates, required this.doNotifyOnCompetitivenessReportsUpdates, required this.doNotifyOnCountryUpdates}); factory _$PreferencesEntityImpl.fromJson(Map json) => _$$PreferencesEntityImplFromJson(json); @override final LanguageLocale language; @override final IList favoriteIndicators; @override final IList favoriteCountries; /// uses [CompetitivenessReportEntity].reportCode @override final IList favoriteReports; @override final bool doNotifyOnIndicatorUpdates; @override final bool doNotifyOnCompetitivenessReportsUpdates; @override final bool doNotifyOnCountryUpdates; @override String toString() { return 'PreferencesEntity(language: $language, favoriteIndicators: $favoriteIndicators, favoriteCountries: $favoriteCountries, favoriteReports: $favoriteReports, doNotifyOnIndicatorUpdates: $doNotifyOnIndicatorUpdates, doNotifyOnCompetitivenessReportsUpdates: $doNotifyOnCompetitivenessReportsUpdates, doNotifyOnCountryUpdates: $doNotifyOnCountryUpdates)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$PreferencesEntityImpl && (identical(other.language, language) || other.language == language) && const DeepCollectionEquality() .equals(other.favoriteIndicators, favoriteIndicators) && const DeepCollectionEquality() .equals(other.favoriteCountries, favoriteCountries) && const DeepCollectionEquality() .equals(other.favoriteReports, favoriteReports) && (identical(other.doNotifyOnIndicatorUpdates, doNotifyOnIndicatorUpdates) || other.doNotifyOnIndicatorUpdates == doNotifyOnIndicatorUpdates) && (identical(other.doNotifyOnCompetitivenessReportsUpdates, doNotifyOnCompetitivenessReportsUpdates) || other.doNotifyOnCompetitivenessReportsUpdates == doNotifyOnCompetitivenessReportsUpdates) && (identical( other.doNotifyOnCountryUpdates, doNotifyOnCountryUpdates) || other.doNotifyOnCountryUpdates == doNotifyOnCountryUpdates)); } @JsonKey(ignore: true) @override int get hashCode => Object.hash( runtimeType, language, const DeepCollectionEquality().hash(favoriteIndicators), const DeepCollectionEquality().hash(favoriteCountries), const DeepCollectionEquality().hash(favoriteReports), doNotifyOnIndicatorUpdates, doNotifyOnCompetitivenessReportsUpdates, doNotifyOnCountryUpdates); @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') _$$PreferencesEntityImplCopyWith<_$PreferencesEntityImpl> get copyWith => __$$PreferencesEntityImplCopyWithImpl<_$PreferencesEntityImpl>( this, _$identity); @override Map toJson() { return _$$PreferencesEntityImplToJson( this, ); } } abstract class _PreferencesEntity implements PreferencesEntity { const factory _PreferencesEntity( {required final LanguageLocale language, required final IList favoriteIndicators, required final IList favoriteCountries, required final IList favoriteReports, required final bool doNotifyOnIndicatorUpdates, required final bool doNotifyOnCompetitivenessReportsUpdates, required final bool doNotifyOnCountryUpdates}) = _$PreferencesEntityImpl; factory _PreferencesEntity.fromJson(Map json) = _$PreferencesEntityImpl.fromJson; @override LanguageLocale get language; @override IList get favoriteIndicators; @override IList get favoriteCountries; @override /// uses [CompetitivenessReportEntity].reportCode IList get favoriteReports; @override bool get doNotifyOnIndicatorUpdates; @override bool get doNotifyOnCompetitivenessReportsUpdates; @override bool get doNotifyOnCountryUpdates; @override @JsonKey(ignore: true) _$$PreferencesEntityImplCopyWith<_$PreferencesEntityImpl> get copyWith => throw _privateConstructorUsedError; }