forked from eatvio/eatvio_app
220 lines
8.0 KiB
Dart
220 lines
8.0 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 'calendar_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');
|
|
|
|
CalendarModel _$CalendarModelFromJson(Map<String, dynamic> json) {
|
|
return _CalendarModel.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$CalendarModel {
|
|
String get date => throw _privateConstructorUsedError;
|
|
@JsonKey(name: 'is_current_day_included_in_the_chosen_diet_progression')
|
|
bool get isCurrentDayIncludedInTheChosenDietProgression =>
|
|
throw _privateConstructorUsedError;
|
|
Object? get diary => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this CalendarModel to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of CalendarModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$CalendarModelCopyWith<CalendarModel> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $CalendarModelCopyWith<$Res> {
|
|
factory $CalendarModelCopyWith(
|
|
CalendarModel value, $Res Function(CalendarModel) then) =
|
|
_$CalendarModelCopyWithImpl<$Res, CalendarModel>;
|
|
@useResult
|
|
$Res call(
|
|
{String date,
|
|
@JsonKey(name: 'is_current_day_included_in_the_chosen_diet_progression')
|
|
bool isCurrentDayIncludedInTheChosenDietProgression,
|
|
Object? diary});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$CalendarModelCopyWithImpl<$Res, $Val extends CalendarModel>
|
|
implements $CalendarModelCopyWith<$Res> {
|
|
_$CalendarModelCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of CalendarModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? date = null,
|
|
Object? isCurrentDayIncludedInTheChosenDietProgression = null,
|
|
Object? diary = freezed,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
date: null == date
|
|
? _value.date
|
|
: date // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
isCurrentDayIncludedInTheChosenDietProgression: null ==
|
|
isCurrentDayIncludedInTheChosenDietProgression
|
|
? _value.isCurrentDayIncludedInTheChosenDietProgression
|
|
: isCurrentDayIncludedInTheChosenDietProgression // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
diary: freezed == diary ? _value.diary : diary,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$CalendarModelImplCopyWith<$Res>
|
|
implements $CalendarModelCopyWith<$Res> {
|
|
factory _$$CalendarModelImplCopyWith(
|
|
_$CalendarModelImpl value, $Res Function(_$CalendarModelImpl) then) =
|
|
__$$CalendarModelImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{String date,
|
|
@JsonKey(name: 'is_current_day_included_in_the_chosen_diet_progression')
|
|
bool isCurrentDayIncludedInTheChosenDietProgression,
|
|
Object? diary});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$CalendarModelImplCopyWithImpl<$Res>
|
|
extends _$CalendarModelCopyWithImpl<$Res, _$CalendarModelImpl>
|
|
implements _$$CalendarModelImplCopyWith<$Res> {
|
|
__$$CalendarModelImplCopyWithImpl(
|
|
_$CalendarModelImpl _value, $Res Function(_$CalendarModelImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of CalendarModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? date = null,
|
|
Object? isCurrentDayIncludedInTheChosenDietProgression = null,
|
|
Object? diary = freezed,
|
|
}) {
|
|
return _then(_$CalendarModelImpl(
|
|
date: null == date
|
|
? _value.date
|
|
: date // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
isCurrentDayIncludedInTheChosenDietProgression: null ==
|
|
isCurrentDayIncludedInTheChosenDietProgression
|
|
? _value.isCurrentDayIncludedInTheChosenDietProgression
|
|
: isCurrentDayIncludedInTheChosenDietProgression // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
diary: freezed == diary ? _value.diary : diary,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$CalendarModelImpl implements _CalendarModel {
|
|
const _$CalendarModelImpl(
|
|
{required this.date,
|
|
@JsonKey(name: 'is_current_day_included_in_the_chosen_diet_progression')
|
|
required this.isCurrentDayIncludedInTheChosenDietProgression,
|
|
this.diary});
|
|
|
|
factory _$CalendarModelImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$CalendarModelImplFromJson(json);
|
|
|
|
@override
|
|
final String date;
|
|
@override
|
|
@JsonKey(name: 'is_current_day_included_in_the_chosen_diet_progression')
|
|
final bool isCurrentDayIncludedInTheChosenDietProgression;
|
|
@override
|
|
final Object? diary;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'CalendarModel(date: $date, isCurrentDayIncludedInTheChosenDietProgression: $isCurrentDayIncludedInTheChosenDietProgression, diary: $diary)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$CalendarModelImpl &&
|
|
(identical(other.date, date) || other.date == date) &&
|
|
(identical(other.isCurrentDayIncludedInTheChosenDietProgression,
|
|
isCurrentDayIncludedInTheChosenDietProgression) ||
|
|
other.isCurrentDayIncludedInTheChosenDietProgression ==
|
|
isCurrentDayIncludedInTheChosenDietProgression) &&
|
|
const DeepCollectionEquality().equals(other.diary, diary));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
date,
|
|
isCurrentDayIncludedInTheChosenDietProgression,
|
|
const DeepCollectionEquality().hash(diary));
|
|
|
|
/// Create a copy of CalendarModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$CalendarModelImplCopyWith<_$CalendarModelImpl> get copyWith =>
|
|
__$$CalendarModelImplCopyWithImpl<_$CalendarModelImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$CalendarModelImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _CalendarModel implements CalendarModel {
|
|
const factory _CalendarModel(
|
|
{required final String date,
|
|
@JsonKey(name: 'is_current_day_included_in_the_chosen_diet_progression')
|
|
required final bool isCurrentDayIncludedInTheChosenDietProgression,
|
|
final Object? diary}) = _$CalendarModelImpl;
|
|
|
|
factory _CalendarModel.fromJson(Map<String, dynamic> json) =
|
|
_$CalendarModelImpl.fromJson;
|
|
|
|
@override
|
|
String get date;
|
|
@override
|
|
@JsonKey(name: 'is_current_day_included_in_the_chosen_diet_progression')
|
|
bool get isCurrentDayIncludedInTheChosenDietProgression;
|
|
@override
|
|
Object? get diary;
|
|
|
|
/// Create a copy of CalendarModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$CalendarModelImplCopyWith<_$CalendarModelImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|