forked from eatvio/eatvio_app
361 lines
12 KiB
Dart
361 lines
12 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 'recipe_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');
|
|
|
|
RecipeModel _$RecipeModelFromJson(Map<String, dynamic> json) {
|
|
return _RecipeModel.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$RecipeModel {
|
|
List<Ingredient?>? get ingredients => throw _privateConstructorUsedError;
|
|
List<Step?>? get steps => throw _privateConstructorUsedError;
|
|
String? get type => throw _privateConstructorUsedError;
|
|
String? get state => throw _privateConstructorUsedError;
|
|
String? get title => throw _privateConstructorUsedError;
|
|
String? get description => throw _privateConstructorUsedError;
|
|
String? get video_url => throw _privateConstructorUsedError;
|
|
String? get image => throw _privateConstructorUsedError;
|
|
int? get cooking_time => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this RecipeModel to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of RecipeModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$RecipeModelCopyWith<RecipeModel> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $RecipeModelCopyWith<$Res> {
|
|
factory $RecipeModelCopyWith(
|
|
RecipeModel value, $Res Function(RecipeModel) then) =
|
|
_$RecipeModelCopyWithImpl<$Res, RecipeModel>;
|
|
@useResult
|
|
$Res call(
|
|
{List<Ingredient?>? ingredients,
|
|
List<Step?>? steps,
|
|
String? type,
|
|
String? state,
|
|
String? title,
|
|
String? description,
|
|
String? video_url,
|
|
String? image,
|
|
int? cooking_time});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$RecipeModelCopyWithImpl<$Res, $Val extends RecipeModel>
|
|
implements $RecipeModelCopyWith<$Res> {
|
|
_$RecipeModelCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of RecipeModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? ingredients = freezed,
|
|
Object? steps = freezed,
|
|
Object? type = freezed,
|
|
Object? state = freezed,
|
|
Object? title = freezed,
|
|
Object? description = freezed,
|
|
Object? video_url = freezed,
|
|
Object? image = freezed,
|
|
Object? cooking_time = freezed,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
ingredients: freezed == ingredients
|
|
? _value.ingredients
|
|
: ingredients // ignore: cast_nullable_to_non_nullable
|
|
as List<Ingredient?>?,
|
|
steps: freezed == steps
|
|
? _value.steps
|
|
: steps // ignore: cast_nullable_to_non_nullable
|
|
as List<Step?>?,
|
|
type: freezed == type
|
|
? _value.type
|
|
: type // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
state: freezed == state
|
|
? _value.state
|
|
: state // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
title: freezed == title
|
|
? _value.title
|
|
: title // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
description: freezed == description
|
|
? _value.description
|
|
: description // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
video_url: freezed == video_url
|
|
? _value.video_url
|
|
: video_url // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
image: freezed == image
|
|
? _value.image
|
|
: image // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
cooking_time: freezed == cooking_time
|
|
? _value.cooking_time
|
|
: cooking_time // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$RecipeModelImplCopyWith<$Res>
|
|
implements $RecipeModelCopyWith<$Res> {
|
|
factory _$$RecipeModelImplCopyWith(
|
|
_$RecipeModelImpl value, $Res Function(_$RecipeModelImpl) then) =
|
|
__$$RecipeModelImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{List<Ingredient?>? ingredients,
|
|
List<Step?>? steps,
|
|
String? type,
|
|
String? state,
|
|
String? title,
|
|
String? description,
|
|
String? video_url,
|
|
String? image,
|
|
int? cooking_time});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$RecipeModelImplCopyWithImpl<$Res>
|
|
extends _$RecipeModelCopyWithImpl<$Res, _$RecipeModelImpl>
|
|
implements _$$RecipeModelImplCopyWith<$Res> {
|
|
__$$RecipeModelImplCopyWithImpl(
|
|
_$RecipeModelImpl _value, $Res Function(_$RecipeModelImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of RecipeModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? ingredients = freezed,
|
|
Object? steps = freezed,
|
|
Object? type = freezed,
|
|
Object? state = freezed,
|
|
Object? title = freezed,
|
|
Object? description = freezed,
|
|
Object? video_url = freezed,
|
|
Object? image = freezed,
|
|
Object? cooking_time = freezed,
|
|
}) {
|
|
return _then(_$RecipeModelImpl(
|
|
ingredients: freezed == ingredients
|
|
? _value._ingredients
|
|
: ingredients // ignore: cast_nullable_to_non_nullable
|
|
as List<Ingredient?>?,
|
|
steps: freezed == steps
|
|
? _value._steps
|
|
: steps // ignore: cast_nullable_to_non_nullable
|
|
as List<Step?>?,
|
|
type: freezed == type
|
|
? _value.type
|
|
: type // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
state: freezed == state
|
|
? _value.state
|
|
: state // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
title: freezed == title
|
|
? _value.title
|
|
: title // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
description: freezed == description
|
|
? _value.description
|
|
: description // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
video_url: freezed == video_url
|
|
? _value.video_url
|
|
: video_url // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
image: freezed == image
|
|
? _value.image
|
|
: image // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
cooking_time: freezed == cooking_time
|
|
? _value.cooking_time
|
|
: cooking_time // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$RecipeModelImpl implements _RecipeModel {
|
|
const _$RecipeModelImpl(
|
|
{final List<Ingredient?>? ingredients,
|
|
final List<Step?>? steps,
|
|
this.type,
|
|
this.state,
|
|
this.title,
|
|
this.description,
|
|
this.video_url,
|
|
this.image,
|
|
this.cooking_time})
|
|
: _ingredients = ingredients,
|
|
_steps = steps;
|
|
|
|
factory _$RecipeModelImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$RecipeModelImplFromJson(json);
|
|
|
|
final List<Ingredient?>? _ingredients;
|
|
@override
|
|
List<Ingredient?>? get ingredients {
|
|
final value = _ingredients;
|
|
if (value == null) return null;
|
|
if (_ingredients is EqualUnmodifiableListView) return _ingredients;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(value);
|
|
}
|
|
|
|
final List<Step?>? _steps;
|
|
@override
|
|
List<Step?>? get steps {
|
|
final value = _steps;
|
|
if (value == null) return null;
|
|
if (_steps is EqualUnmodifiableListView) return _steps;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(value);
|
|
}
|
|
|
|
@override
|
|
final String? type;
|
|
@override
|
|
final String? state;
|
|
@override
|
|
final String? title;
|
|
@override
|
|
final String? description;
|
|
@override
|
|
final String? video_url;
|
|
@override
|
|
final String? image;
|
|
@override
|
|
final int? cooking_time;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'RecipeModel(ingredients: $ingredients, steps: $steps, type: $type, state: $state, title: $title, description: $description, video_url: $video_url, image: $image, cooking_time: $cooking_time)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$RecipeModelImpl &&
|
|
const DeepCollectionEquality()
|
|
.equals(other._ingredients, _ingredients) &&
|
|
const DeepCollectionEquality().equals(other._steps, _steps) &&
|
|
(identical(other.type, type) || other.type == type) &&
|
|
(identical(other.state, state) || other.state == state) &&
|
|
(identical(other.title, title) || other.title == title) &&
|
|
(identical(other.description, description) ||
|
|
other.description == description) &&
|
|
(identical(other.video_url, video_url) ||
|
|
other.video_url == video_url) &&
|
|
(identical(other.image, image) || other.image == image) &&
|
|
(identical(other.cooking_time, cooking_time) ||
|
|
other.cooking_time == cooking_time));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
const DeepCollectionEquality().hash(_ingredients),
|
|
const DeepCollectionEquality().hash(_steps),
|
|
type,
|
|
state,
|
|
title,
|
|
description,
|
|
video_url,
|
|
image,
|
|
cooking_time);
|
|
|
|
/// Create a copy of RecipeModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$RecipeModelImplCopyWith<_$RecipeModelImpl> get copyWith =>
|
|
__$$RecipeModelImplCopyWithImpl<_$RecipeModelImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$RecipeModelImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _RecipeModel implements RecipeModel {
|
|
const factory _RecipeModel(
|
|
{final List<Ingredient?>? ingredients,
|
|
final List<Step?>? steps,
|
|
final String? type,
|
|
final String? state,
|
|
final String? title,
|
|
final String? description,
|
|
final String? video_url,
|
|
final String? image,
|
|
final int? cooking_time}) = _$RecipeModelImpl;
|
|
|
|
factory _RecipeModel.fromJson(Map<String, dynamic> json) =
|
|
_$RecipeModelImpl.fromJson;
|
|
|
|
@override
|
|
List<Ingredient?>? get ingredients;
|
|
@override
|
|
List<Step?>? get steps;
|
|
@override
|
|
String? get type;
|
|
@override
|
|
String? get state;
|
|
@override
|
|
String? get title;
|
|
@override
|
|
String? get description;
|
|
@override
|
|
String? get video_url;
|
|
@override
|
|
String? get image;
|
|
@override
|
|
int? get cooking_time;
|
|
|
|
/// Create a copy of RecipeModel
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$RecipeModelImplCopyWith<_$RecipeModelImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|