forked from eatvio/eatvio_app
352 lines
11 KiB
Dart
352 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 'create_diet_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',
|
|
);
|
|
|
|
/// @nodoc
|
|
mixin _$CreateDietModel {
|
|
String? get imageUrl => throw _privateConstructorUsedError;
|
|
String? get name => throw _privateConstructorUsedError;
|
|
String? get details => throw _privateConstructorUsedError;
|
|
DietState? get state => throw _privateConstructorUsedError;
|
|
int? get duration => throw _privateConstructorUsedError;
|
|
Map<String, bool> get type => throw _privateConstructorUsedError;
|
|
XFile? get image => throw _privateConstructorUsedError;
|
|
List<List<List<DailySchedule>>>? get dailySchedule =>
|
|
throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of CreateDietModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$CreateDietModelCopyWith<CreateDietModel> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $CreateDietModelCopyWith<$Res> {
|
|
factory $CreateDietModelCopyWith(
|
|
CreateDietModel value,
|
|
$Res Function(CreateDietModel) then,
|
|
) = _$CreateDietModelCopyWithImpl<$Res, CreateDietModel>;
|
|
@useResult
|
|
$Res call({
|
|
String? imageUrl,
|
|
String? name,
|
|
String? details,
|
|
DietState? state,
|
|
int? duration,
|
|
Map<String, bool> type,
|
|
XFile? image,
|
|
List<List<List<DailySchedule>>>? dailySchedule,
|
|
});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$CreateDietModelCopyWithImpl<$Res, $Val extends CreateDietModel>
|
|
implements $CreateDietModelCopyWith<$Res> {
|
|
_$CreateDietModelCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of CreateDietModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? imageUrl = freezed,
|
|
Object? name = freezed,
|
|
Object? details = freezed,
|
|
Object? state = freezed,
|
|
Object? duration = freezed,
|
|
Object? type = null,
|
|
Object? image = freezed,
|
|
Object? dailySchedule = freezed,
|
|
}) {
|
|
return _then(
|
|
_value.copyWith(
|
|
imageUrl:
|
|
freezed == imageUrl
|
|
? _value.imageUrl
|
|
: imageUrl // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
name:
|
|
freezed == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
details:
|
|
freezed == details
|
|
? _value.details
|
|
: details // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
state:
|
|
freezed == state
|
|
? _value.state
|
|
: state // ignore: cast_nullable_to_non_nullable
|
|
as DietState?,
|
|
duration:
|
|
freezed == duration
|
|
? _value.duration
|
|
: duration // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
type:
|
|
null == type
|
|
? _value.type
|
|
: type // ignore: cast_nullable_to_non_nullable
|
|
as Map<String, bool>,
|
|
image:
|
|
freezed == image
|
|
? _value.image
|
|
: image // ignore: cast_nullable_to_non_nullable
|
|
as XFile?,
|
|
dailySchedule:
|
|
freezed == dailySchedule
|
|
? _value.dailySchedule
|
|
: dailySchedule // ignore: cast_nullable_to_non_nullable
|
|
as List<List<List<DailySchedule>>>?,
|
|
)
|
|
as $Val,
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$CreateDietModelImplCopyWith<$Res>
|
|
implements $CreateDietModelCopyWith<$Res> {
|
|
factory _$$CreateDietModelImplCopyWith(
|
|
_$CreateDietModelImpl value,
|
|
$Res Function(_$CreateDietModelImpl) then,
|
|
) = __$$CreateDietModelImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({
|
|
String? imageUrl,
|
|
String? name,
|
|
String? details,
|
|
DietState? state,
|
|
int? duration,
|
|
Map<String, bool> type,
|
|
XFile? image,
|
|
List<List<List<DailySchedule>>>? dailySchedule,
|
|
});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$CreateDietModelImplCopyWithImpl<$Res>
|
|
extends _$CreateDietModelCopyWithImpl<$Res, _$CreateDietModelImpl>
|
|
implements _$$CreateDietModelImplCopyWith<$Res> {
|
|
__$$CreateDietModelImplCopyWithImpl(
|
|
_$CreateDietModelImpl _value,
|
|
$Res Function(_$CreateDietModelImpl) _then,
|
|
) : super(_value, _then);
|
|
|
|
/// Create a copy of CreateDietModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? imageUrl = freezed,
|
|
Object? name = freezed,
|
|
Object? details = freezed,
|
|
Object? state = freezed,
|
|
Object? duration = freezed,
|
|
Object? type = null,
|
|
Object? image = freezed,
|
|
Object? dailySchedule = freezed,
|
|
}) {
|
|
return _then(
|
|
_$CreateDietModelImpl(
|
|
imageUrl:
|
|
freezed == imageUrl
|
|
? _value.imageUrl
|
|
: imageUrl // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
name:
|
|
freezed == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
details:
|
|
freezed == details
|
|
? _value.details
|
|
: details // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
state:
|
|
freezed == state
|
|
? _value.state
|
|
: state // ignore: cast_nullable_to_non_nullable
|
|
as DietState?,
|
|
duration:
|
|
freezed == duration
|
|
? _value.duration
|
|
: duration // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
type:
|
|
null == type
|
|
? _value._type
|
|
: type // ignore: cast_nullable_to_non_nullable
|
|
as Map<String, bool>,
|
|
image:
|
|
freezed == image
|
|
? _value.image
|
|
: image // ignore: cast_nullable_to_non_nullable
|
|
as XFile?,
|
|
dailySchedule:
|
|
freezed == dailySchedule
|
|
? _value._dailySchedule
|
|
: dailySchedule // ignore: cast_nullable_to_non_nullable
|
|
as List<List<List<DailySchedule>>>?,
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
|
|
class _$CreateDietModelImpl extends _CreateDietModel {
|
|
const _$CreateDietModelImpl({
|
|
this.imageUrl,
|
|
this.name,
|
|
this.details,
|
|
this.state,
|
|
this.duration,
|
|
required final Map<String, bool> type,
|
|
this.image,
|
|
final List<List<List<DailySchedule>>>? dailySchedule,
|
|
}) : _type = type,
|
|
_dailySchedule = dailySchedule,
|
|
super._();
|
|
|
|
@override
|
|
final String? imageUrl;
|
|
@override
|
|
final String? name;
|
|
@override
|
|
final String? details;
|
|
@override
|
|
final DietState? state;
|
|
@override
|
|
final int? duration;
|
|
final Map<String, bool> _type;
|
|
@override
|
|
Map<String, bool> get type {
|
|
if (_type is EqualUnmodifiableMapView) return _type;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableMapView(_type);
|
|
}
|
|
|
|
@override
|
|
final XFile? image;
|
|
final List<List<List<DailySchedule>>>? _dailySchedule;
|
|
@override
|
|
List<List<List<DailySchedule>>>? get dailySchedule {
|
|
final value = _dailySchedule;
|
|
if (value == null) return null;
|
|
if (_dailySchedule is EqualUnmodifiableListView) return _dailySchedule;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(value);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return 'CreateDietModel(imageUrl: $imageUrl, name: $name, details: $details, state: $state, duration: $duration, type: $type, image: $image, dailySchedule: $dailySchedule)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$CreateDietModelImpl &&
|
|
(identical(other.imageUrl, imageUrl) ||
|
|
other.imageUrl == imageUrl) &&
|
|
(identical(other.name, name) || other.name == name) &&
|
|
(identical(other.details, details) || other.details == details) &&
|
|
(identical(other.state, state) || other.state == state) &&
|
|
(identical(other.duration, duration) ||
|
|
other.duration == duration) &&
|
|
const DeepCollectionEquality().equals(other._type, _type) &&
|
|
(identical(other.image, image) || other.image == image) &&
|
|
const DeepCollectionEquality().equals(
|
|
other._dailySchedule,
|
|
_dailySchedule,
|
|
));
|
|
}
|
|
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
imageUrl,
|
|
name,
|
|
details,
|
|
state,
|
|
duration,
|
|
const DeepCollectionEquality().hash(_type),
|
|
image,
|
|
const DeepCollectionEquality().hash(_dailySchedule),
|
|
);
|
|
|
|
/// Create a copy of CreateDietModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$CreateDietModelImplCopyWith<_$CreateDietModelImpl> get copyWith =>
|
|
__$$CreateDietModelImplCopyWithImpl<_$CreateDietModelImpl>(
|
|
this,
|
|
_$identity,
|
|
);
|
|
}
|
|
|
|
abstract class _CreateDietModel extends CreateDietModel {
|
|
const factory _CreateDietModel({
|
|
final String? imageUrl,
|
|
final String? name,
|
|
final String? details,
|
|
final DietState? state,
|
|
final int? duration,
|
|
required final Map<String, bool> type,
|
|
final XFile? image,
|
|
final List<List<List<DailySchedule>>>? dailySchedule,
|
|
}) = _$CreateDietModelImpl;
|
|
const _CreateDietModel._() : super._();
|
|
|
|
@override
|
|
String? get imageUrl;
|
|
@override
|
|
String? get name;
|
|
@override
|
|
String? get details;
|
|
@override
|
|
DietState? get state;
|
|
@override
|
|
int? get duration;
|
|
@override
|
|
Map<String, bool> get type;
|
|
@override
|
|
XFile? get image;
|
|
@override
|
|
List<List<List<DailySchedule>>>? get dailySchedule;
|
|
|
|
/// Create a copy of CreateDietModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$CreateDietModelImplCopyWith<_$CreateDietModelImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|