uaestats_fe/lib/domain/entities/preferences_entity.freezed.dart
2026-05-16 11:31:32 +05:30

307 lines
12 KiB
Dart
Executable File

// 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>(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<String, dynamic> json) {
return _PreferencesEntity.fromJson(json);
}
/// @nodoc
mixin _$PreferencesEntity {
LanguageLocale get language => throw _privateConstructorUsedError;
IList<IndicatorEnum> get favoriteIndicators =>
throw _privateConstructorUsedError;
IList<ISOCountry> get favoriteCountries => throw _privateConstructorUsedError;
/// uses [CompetitivenessReportEntity].reportCode
IList<String> get favoriteReports => throw _privateConstructorUsedError;
bool get doNotifyOnIndicatorUpdates => throw _privateConstructorUsedError;
bool get doNotifyOnCompetitivenessReportsUpdates =>
throw _privateConstructorUsedError;
bool get doNotifyOnCountryUpdates => throw _privateConstructorUsedError;
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
@JsonKey(ignore: true)
$PreferencesEntityCopyWith<PreferencesEntity> 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<IndicatorEnum> favoriteIndicators,
IList<ISOCountry> favoriteCountries,
IList<String> 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<IndicatorEnum>,
favoriteCountries: null == favoriteCountries
? _value.favoriteCountries
: favoriteCountries // ignore: cast_nullable_to_non_nullable
as IList<ISOCountry>,
favoriteReports: null == favoriteReports
? _value.favoriteReports
: favoriteReports // ignore: cast_nullable_to_non_nullable
as IList<String>,
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<IndicatorEnum> favoriteIndicators,
IList<ISOCountry> favoriteCountries,
IList<String> 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<IndicatorEnum>,
favoriteCountries: null == favoriteCountries
? _value.favoriteCountries
: favoriteCountries // ignore: cast_nullable_to_non_nullable
as IList<ISOCountry>,
favoriteReports: null == favoriteReports
? _value.favoriteReports
: favoriteReports // ignore: cast_nullable_to_non_nullable
as IList<String>,
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<String, dynamic> json) =>
_$$PreferencesEntityImplFromJson(json);
@override
final LanguageLocale language;
@override
final IList<IndicatorEnum> favoriteIndicators;
@override
final IList<ISOCountry> favoriteCountries;
/// uses [CompetitivenessReportEntity].reportCode
@override
final IList<String> 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<String, dynamic> toJson() {
return _$$PreferencesEntityImplToJson(
this,
);
}
}
abstract class _PreferencesEntity implements PreferencesEntity {
const factory _PreferencesEntity(
{required final LanguageLocale language,
required final IList<IndicatorEnum> favoriteIndicators,
required final IList<ISOCountry> favoriteCountries,
required final IList<String> favoriteReports,
required final bool doNotifyOnIndicatorUpdates,
required final bool doNotifyOnCompetitivenessReportsUpdates,
required final bool doNotifyOnCountryUpdates}) = _$PreferencesEntityImpl;
factory _PreferencesEntity.fromJson(Map<String, dynamic> json) =
_$PreferencesEntityImpl.fromJson;
@override
LanguageLocale get language;
@override
IList<IndicatorEnum> get favoriteIndicators;
@override
IList<ISOCountry> get favoriteCountries;
@override
/// uses [CompetitivenessReportEntity].reportCode
IList<String> get favoriteReports;
@override
bool get doNotifyOnIndicatorUpdates;
@override
bool get doNotifyOnCompetitivenessReportsUpdates;
@override
bool get doNotifyOnCountryUpdates;
@override
@JsonKey(ignore: true)
_$$PreferencesEntityImplCopyWith<_$PreferencesEntityImpl> get copyWith =>
throw _privateConstructorUsedError;
}