forked from eatvio/eatvio_app
288 lines
11 KiB
Dart
288 lines
11 KiB
Dart
// 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 'profile_settings_model.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');
|
|
|
|
ProfileSettingsModel _$ProfileSettingsModelFromJson(Map<String, dynamic> json) {
|
|
return _ProfileSettingsModel.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$ProfileSettingsModel {
|
|
@JsonKey(name: "new_updates_notifications")
|
|
dynamic get newUpdatesNotifications => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "diary_reminder_notifications")
|
|
dynamic get diaryReminderNotifications => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "is_mood_fillable")
|
|
bool get isMoodFillable => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "is_bedtime_fillable")
|
|
bool get isBedtimeFillable => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "is_public_profile")
|
|
bool get isPublicProfile => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this ProfileSettingsModel to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of ProfileSettingsModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$ProfileSettingsModelCopyWith<ProfileSettingsModel> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $ProfileSettingsModelCopyWith<$Res> {
|
|
factory $ProfileSettingsModelCopyWith(ProfileSettingsModel value,
|
|
$Res Function(ProfileSettingsModel) then) =
|
|
_$ProfileSettingsModelCopyWithImpl<$Res, ProfileSettingsModel>;
|
|
@useResult
|
|
$Res call(
|
|
{@JsonKey(name: "new_updates_notifications")
|
|
dynamic newUpdatesNotifications,
|
|
@JsonKey(name: "diary_reminder_notifications")
|
|
dynamic diaryReminderNotifications,
|
|
@JsonKey(name: "is_mood_fillable") bool isMoodFillable,
|
|
@JsonKey(name: "is_bedtime_fillable") bool isBedtimeFillable,
|
|
@JsonKey(name: "is_public_profile") bool isPublicProfile});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$ProfileSettingsModelCopyWithImpl<$Res,
|
|
$Val extends ProfileSettingsModel>
|
|
implements $ProfileSettingsModelCopyWith<$Res> {
|
|
_$ProfileSettingsModelCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of ProfileSettingsModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? newUpdatesNotifications = freezed,
|
|
Object? diaryReminderNotifications = freezed,
|
|
Object? isMoodFillable = null,
|
|
Object? isBedtimeFillable = null,
|
|
Object? isPublicProfile = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
newUpdatesNotifications: freezed == newUpdatesNotifications
|
|
? _value.newUpdatesNotifications
|
|
: newUpdatesNotifications // ignore: cast_nullable_to_non_nullable
|
|
as dynamic,
|
|
diaryReminderNotifications: freezed == diaryReminderNotifications
|
|
? _value.diaryReminderNotifications
|
|
: diaryReminderNotifications // ignore: cast_nullable_to_non_nullable
|
|
as dynamic,
|
|
isMoodFillable: null == isMoodFillable
|
|
? _value.isMoodFillable
|
|
: isMoodFillable // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
isBedtimeFillable: null == isBedtimeFillable
|
|
? _value.isBedtimeFillable
|
|
: isBedtimeFillable // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
isPublicProfile: null == isPublicProfile
|
|
? _value.isPublicProfile
|
|
: isPublicProfile // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$ProfileSettingsModelImplCopyWith<$Res>
|
|
implements $ProfileSettingsModelCopyWith<$Res> {
|
|
factory _$$ProfileSettingsModelImplCopyWith(_$ProfileSettingsModelImpl value,
|
|
$Res Function(_$ProfileSettingsModelImpl) then) =
|
|
__$$ProfileSettingsModelImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{@JsonKey(name: "new_updates_notifications")
|
|
dynamic newUpdatesNotifications,
|
|
@JsonKey(name: "diary_reminder_notifications")
|
|
dynamic diaryReminderNotifications,
|
|
@JsonKey(name: "is_mood_fillable") bool isMoodFillable,
|
|
@JsonKey(name: "is_bedtime_fillable") bool isBedtimeFillable,
|
|
@JsonKey(name: "is_public_profile") bool isPublicProfile});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$ProfileSettingsModelImplCopyWithImpl<$Res>
|
|
extends _$ProfileSettingsModelCopyWithImpl<$Res, _$ProfileSettingsModelImpl>
|
|
implements _$$ProfileSettingsModelImplCopyWith<$Res> {
|
|
__$$ProfileSettingsModelImplCopyWithImpl(_$ProfileSettingsModelImpl _value,
|
|
$Res Function(_$ProfileSettingsModelImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of ProfileSettingsModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? newUpdatesNotifications = freezed,
|
|
Object? diaryReminderNotifications = freezed,
|
|
Object? isMoodFillable = null,
|
|
Object? isBedtimeFillable = null,
|
|
Object? isPublicProfile = null,
|
|
}) {
|
|
return _then(_$ProfileSettingsModelImpl(
|
|
newUpdatesNotifications: freezed == newUpdatesNotifications
|
|
? _value.newUpdatesNotifications
|
|
: newUpdatesNotifications // ignore: cast_nullable_to_non_nullable
|
|
as dynamic,
|
|
diaryReminderNotifications: freezed == diaryReminderNotifications
|
|
? _value.diaryReminderNotifications
|
|
: diaryReminderNotifications // ignore: cast_nullable_to_non_nullable
|
|
as dynamic,
|
|
isMoodFillable: null == isMoodFillable
|
|
? _value.isMoodFillable
|
|
: isMoodFillable // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
isBedtimeFillable: null == isBedtimeFillable
|
|
? _value.isBedtimeFillable
|
|
: isBedtimeFillable // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
isPublicProfile: null == isPublicProfile
|
|
? _value.isPublicProfile
|
|
: isPublicProfile // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$ProfileSettingsModelImpl implements _ProfileSettingsModel {
|
|
const _$ProfileSettingsModelImpl(
|
|
{@JsonKey(name: "new_updates_notifications")
|
|
required this.newUpdatesNotifications,
|
|
@JsonKey(name: "diary_reminder_notifications")
|
|
required this.diaryReminderNotifications,
|
|
@JsonKey(name: "is_mood_fillable") required this.isMoodFillable,
|
|
@JsonKey(name: "is_bedtime_fillable") required this.isBedtimeFillable,
|
|
@JsonKey(name: "is_public_profile") required this.isPublicProfile});
|
|
|
|
factory _$ProfileSettingsModelImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$ProfileSettingsModelImplFromJson(json);
|
|
|
|
@override
|
|
@JsonKey(name: "new_updates_notifications")
|
|
final dynamic newUpdatesNotifications;
|
|
@override
|
|
@JsonKey(name: "diary_reminder_notifications")
|
|
final dynamic diaryReminderNotifications;
|
|
@override
|
|
@JsonKey(name: "is_mood_fillable")
|
|
final bool isMoodFillable;
|
|
@override
|
|
@JsonKey(name: "is_bedtime_fillable")
|
|
final bool isBedtimeFillable;
|
|
@override
|
|
@JsonKey(name: "is_public_profile")
|
|
final bool isPublicProfile;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'ProfileSettingsModel(newUpdatesNotifications: $newUpdatesNotifications, diaryReminderNotifications: $diaryReminderNotifications, isMoodFillable: $isMoodFillable, isBedtimeFillable: $isBedtimeFillable, isPublicProfile: $isPublicProfile)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$ProfileSettingsModelImpl &&
|
|
const DeepCollectionEquality().equals(
|
|
other.newUpdatesNotifications, newUpdatesNotifications) &&
|
|
const DeepCollectionEquality().equals(
|
|
other.diaryReminderNotifications, diaryReminderNotifications) &&
|
|
(identical(other.isMoodFillable, isMoodFillable) ||
|
|
other.isMoodFillable == isMoodFillable) &&
|
|
(identical(other.isBedtimeFillable, isBedtimeFillable) ||
|
|
other.isBedtimeFillable == isBedtimeFillable) &&
|
|
(identical(other.isPublicProfile, isPublicProfile) ||
|
|
other.isPublicProfile == isPublicProfile));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
const DeepCollectionEquality().hash(newUpdatesNotifications),
|
|
const DeepCollectionEquality().hash(diaryReminderNotifications),
|
|
isMoodFillable,
|
|
isBedtimeFillable,
|
|
isPublicProfile);
|
|
|
|
/// Create a copy of ProfileSettingsModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$ProfileSettingsModelImplCopyWith<_$ProfileSettingsModelImpl>
|
|
get copyWith =>
|
|
__$$ProfileSettingsModelImplCopyWithImpl<_$ProfileSettingsModelImpl>(
|
|
this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$ProfileSettingsModelImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _ProfileSettingsModel implements ProfileSettingsModel {
|
|
const factory _ProfileSettingsModel(
|
|
{@JsonKey(name: "new_updates_notifications")
|
|
required final dynamic newUpdatesNotifications,
|
|
@JsonKey(name: "diary_reminder_notifications")
|
|
required final dynamic diaryReminderNotifications,
|
|
@JsonKey(name: "is_mood_fillable") required final bool isMoodFillable,
|
|
@JsonKey(name: "is_bedtime_fillable")
|
|
required final bool isBedtimeFillable,
|
|
@JsonKey(name: "is_public_profile")
|
|
required final bool isPublicProfile}) = _$ProfileSettingsModelImpl;
|
|
|
|
factory _ProfileSettingsModel.fromJson(Map<String, dynamic> json) =
|
|
_$ProfileSettingsModelImpl.fromJson;
|
|
|
|
@override
|
|
@JsonKey(name: "new_updates_notifications")
|
|
dynamic get newUpdatesNotifications;
|
|
@override
|
|
@JsonKey(name: "diary_reminder_notifications")
|
|
dynamic get diaryReminderNotifications;
|
|
@override
|
|
@JsonKey(name: "is_mood_fillable")
|
|
bool get isMoodFillable;
|
|
@override
|
|
@JsonKey(name: "is_bedtime_fillable")
|
|
bool get isBedtimeFillable;
|
|
@override
|
|
@JsonKey(name: "is_public_profile")
|
|
bool get isPublicProfile;
|
|
|
|
/// Create a copy of ProfileSettingsModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$ProfileSettingsModelImplCopyWith<_$ProfileSettingsModelImpl>
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
}
|