Files
eatvio_app/lib/features/create_recipe/entities/recipe_create_entity.freezed.dart
2025-02-17 14:40:31 +07:00

603 lines
21 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_create_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');
/// @nodoc
mixin _$RecipeCreateEntity {
String? get title => throw _privateConstructorUsedError;
TypeOfRecipe? get typeOfRecipe => throw _privateConstructorUsedError;
int? get countOfPortions => throw _privateConstructorUsedError;
double? get energyInOnePortion => throw _privateConstructorUsedError;
int? get totalCookHours => throw _privateConstructorUsedError;
int? get totalCookMinutes => throw _privateConstructorUsedError;
int? get activeCookHours => throw _privateConstructorUsedError;
int? get activeCookMinutes => throw _privateConstructorUsedError;
String? get description => throw _privateConstructorUsedError;
File? get image => throw _privateConstructorUsedError;
String? get videoUrl => throw _privateConstructorUsedError;
List<Ingredient> get ingredients => throw _privateConstructorUsedError;
List<StepEntity> get steps => throw _privateConstructorUsedError;
List<String> get tags => throw _privateConstructorUsedError;
/// Create a copy of RecipeCreateEntity
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$RecipeCreateEntityCopyWith<RecipeCreateEntity> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $RecipeCreateEntityCopyWith<$Res> {
factory $RecipeCreateEntityCopyWith(
RecipeCreateEntity value, $Res Function(RecipeCreateEntity) then) =
_$RecipeCreateEntityCopyWithImpl<$Res, RecipeCreateEntity>;
@useResult
$Res call(
{String? title,
TypeOfRecipe? typeOfRecipe,
int? countOfPortions,
double? energyInOnePortion,
int? totalCookHours,
int? totalCookMinutes,
int? activeCookHours,
int? activeCookMinutes,
String? description,
File? image,
String? videoUrl,
List<Ingredient> ingredients,
List<StepEntity> steps,
List<String> tags});
}
/// @nodoc
class _$RecipeCreateEntityCopyWithImpl<$Res, $Val extends RecipeCreateEntity>
implements $RecipeCreateEntityCopyWith<$Res> {
_$RecipeCreateEntityCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of RecipeCreateEntity
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? title = freezed,
Object? typeOfRecipe = freezed,
Object? countOfPortions = freezed,
Object? energyInOnePortion = freezed,
Object? totalCookHours = freezed,
Object? totalCookMinutes = freezed,
Object? activeCookHours = freezed,
Object? activeCookMinutes = freezed,
Object? description = freezed,
Object? image = freezed,
Object? videoUrl = freezed,
Object? ingredients = null,
Object? steps = null,
Object? tags = null,
}) {
return _then(_value.copyWith(
title: freezed == title
? _value.title
: title // ignore: cast_nullable_to_non_nullable
as String?,
typeOfRecipe: freezed == typeOfRecipe
? _value.typeOfRecipe
: typeOfRecipe // ignore: cast_nullable_to_non_nullable
as TypeOfRecipe?,
countOfPortions: freezed == countOfPortions
? _value.countOfPortions
: countOfPortions // ignore: cast_nullable_to_non_nullable
as int?,
energyInOnePortion: freezed == energyInOnePortion
? _value.energyInOnePortion
: energyInOnePortion // ignore: cast_nullable_to_non_nullable
as double?,
totalCookHours: freezed == totalCookHours
? _value.totalCookHours
: totalCookHours // ignore: cast_nullable_to_non_nullable
as int?,
totalCookMinutes: freezed == totalCookMinutes
? _value.totalCookMinutes
: totalCookMinutes // ignore: cast_nullable_to_non_nullable
as int?,
activeCookHours: freezed == activeCookHours
? _value.activeCookHours
: activeCookHours // ignore: cast_nullable_to_non_nullable
as int?,
activeCookMinutes: freezed == activeCookMinutes
? _value.activeCookMinutes
: activeCookMinutes // ignore: cast_nullable_to_non_nullable
as int?,
description: freezed == description
? _value.description
: description // ignore: cast_nullable_to_non_nullable
as String?,
image: freezed == image
? _value.image
: image // ignore: cast_nullable_to_non_nullable
as File?,
videoUrl: freezed == videoUrl
? _value.videoUrl
: videoUrl // ignore: cast_nullable_to_non_nullable
as String?,
ingredients: null == ingredients
? _value.ingredients
: ingredients // ignore: cast_nullable_to_non_nullable
as List<Ingredient>,
steps: null == steps
? _value.steps
: steps // ignore: cast_nullable_to_non_nullable
as List<StepEntity>,
tags: null == tags
? _value.tags
: tags // ignore: cast_nullable_to_non_nullable
as List<String>,
) as $Val);
}
}
/// @nodoc
abstract class _$$RecipeCreateEntityImplCopyWith<$Res>
implements $RecipeCreateEntityCopyWith<$Res> {
factory _$$RecipeCreateEntityImplCopyWith(_$RecipeCreateEntityImpl value,
$Res Function(_$RecipeCreateEntityImpl) then) =
__$$RecipeCreateEntityImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
{String? title,
TypeOfRecipe? typeOfRecipe,
int? countOfPortions,
double? energyInOnePortion,
int? totalCookHours,
int? totalCookMinutes,
int? activeCookHours,
int? activeCookMinutes,
String? description,
File? image,
String? videoUrl,
List<Ingredient> ingredients,
List<StepEntity> steps,
List<String> tags});
}
/// @nodoc
class __$$RecipeCreateEntityImplCopyWithImpl<$Res>
extends _$RecipeCreateEntityCopyWithImpl<$Res, _$RecipeCreateEntityImpl>
implements _$$RecipeCreateEntityImplCopyWith<$Res> {
__$$RecipeCreateEntityImplCopyWithImpl(_$RecipeCreateEntityImpl _value,
$Res Function(_$RecipeCreateEntityImpl) _then)
: super(_value, _then);
/// Create a copy of RecipeCreateEntity
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? title = freezed,
Object? typeOfRecipe = freezed,
Object? countOfPortions = freezed,
Object? energyInOnePortion = freezed,
Object? totalCookHours = freezed,
Object? totalCookMinutes = freezed,
Object? activeCookHours = freezed,
Object? activeCookMinutes = freezed,
Object? description = freezed,
Object? image = freezed,
Object? videoUrl = freezed,
Object? ingredients = null,
Object? steps = null,
Object? tags = null,
}) {
return _then(_$RecipeCreateEntityImpl(
title: freezed == title
? _value.title
: title // ignore: cast_nullable_to_non_nullable
as String?,
typeOfRecipe: freezed == typeOfRecipe
? _value.typeOfRecipe
: typeOfRecipe // ignore: cast_nullable_to_non_nullable
as TypeOfRecipe?,
countOfPortions: freezed == countOfPortions
? _value.countOfPortions
: countOfPortions // ignore: cast_nullable_to_non_nullable
as int?,
energyInOnePortion: freezed == energyInOnePortion
? _value.energyInOnePortion
: energyInOnePortion // ignore: cast_nullable_to_non_nullable
as double?,
totalCookHours: freezed == totalCookHours
? _value.totalCookHours
: totalCookHours // ignore: cast_nullable_to_non_nullable
as int?,
totalCookMinutes: freezed == totalCookMinutes
? _value.totalCookMinutes
: totalCookMinutes // ignore: cast_nullable_to_non_nullable
as int?,
activeCookHours: freezed == activeCookHours
? _value.activeCookHours
: activeCookHours // ignore: cast_nullable_to_non_nullable
as int?,
activeCookMinutes: freezed == activeCookMinutes
? _value.activeCookMinutes
: activeCookMinutes // ignore: cast_nullable_to_non_nullable
as int?,
description: freezed == description
? _value.description
: description // ignore: cast_nullable_to_non_nullable
as String?,
image: freezed == image
? _value.image
: image // ignore: cast_nullable_to_non_nullable
as File?,
videoUrl: freezed == videoUrl
? _value.videoUrl
: videoUrl // ignore: cast_nullable_to_non_nullable
as String?,
ingredients: null == ingredients
? _value._ingredients
: ingredients // ignore: cast_nullable_to_non_nullable
as List<Ingredient>,
steps: null == steps
? _value._steps
: steps // ignore: cast_nullable_to_non_nullable
as List<StepEntity>,
tags: null == tags
? _value._tags
: tags // ignore: cast_nullable_to_non_nullable
as List<String>,
));
}
}
/// @nodoc
class _$RecipeCreateEntityImpl extends _RecipeCreateEntity {
const _$RecipeCreateEntityImpl(
{this.title,
this.typeOfRecipe,
this.countOfPortions,
this.energyInOnePortion,
this.totalCookHours,
this.totalCookMinutes,
this.activeCookHours,
this.activeCookMinutes,
this.description,
this.image,
this.videoUrl,
required final List<Ingredient> ingredients,
required final List<StepEntity> steps,
required final List<String> tags})
: _ingredients = ingredients,
_steps = steps,
_tags = tags,
super._();
@override
final String? title;
@override
final TypeOfRecipe? typeOfRecipe;
@override
final int? countOfPortions;
@override
final double? energyInOnePortion;
@override
final int? totalCookHours;
@override
final int? totalCookMinutes;
@override
final int? activeCookHours;
@override
final int? activeCookMinutes;
@override
final String? description;
@override
final File? image;
@override
final String? videoUrl;
final List<Ingredient> _ingredients;
@override
List<Ingredient> get ingredients {
if (_ingredients is EqualUnmodifiableListView) return _ingredients;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_ingredients);
}
final List<StepEntity> _steps;
@override
List<StepEntity> get steps {
if (_steps is EqualUnmodifiableListView) return _steps;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_steps);
}
final List<String> _tags;
@override
List<String> get tags {
if (_tags is EqualUnmodifiableListView) return _tags;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_tags);
}
@override
String toString() {
return 'RecipeCreateEntity(title: $title, typeOfRecipe: $typeOfRecipe, countOfPortions: $countOfPortions, energyInOnePortion: $energyInOnePortion, totalCookHours: $totalCookHours, totalCookMinutes: $totalCookMinutes, activeCookHours: $activeCookHours, activeCookMinutes: $activeCookMinutes, description: $description, image: $image, videoUrl: $videoUrl, ingredients: $ingredients, steps: $steps, tags: $tags)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$RecipeCreateEntityImpl &&
(identical(other.title, title) || other.title == title) &&
(identical(other.typeOfRecipe, typeOfRecipe) ||
other.typeOfRecipe == typeOfRecipe) &&
(identical(other.countOfPortions, countOfPortions) ||
other.countOfPortions == countOfPortions) &&
(identical(other.energyInOnePortion, energyInOnePortion) ||
other.energyInOnePortion == energyInOnePortion) &&
(identical(other.totalCookHours, totalCookHours) ||
other.totalCookHours == totalCookHours) &&
(identical(other.totalCookMinutes, totalCookMinutes) ||
other.totalCookMinutes == totalCookMinutes) &&
(identical(other.activeCookHours, activeCookHours) ||
other.activeCookHours == activeCookHours) &&
(identical(other.activeCookMinutes, activeCookMinutes) ||
other.activeCookMinutes == activeCookMinutes) &&
(identical(other.description, description) ||
other.description == description) &&
(identical(other.image, image) || other.image == image) &&
(identical(other.videoUrl, videoUrl) ||
other.videoUrl == videoUrl) &&
const DeepCollectionEquality()
.equals(other._ingredients, _ingredients) &&
const DeepCollectionEquality().equals(other._steps, _steps) &&
const DeepCollectionEquality().equals(other._tags, _tags));
}
@override
int get hashCode => Object.hash(
runtimeType,
title,
typeOfRecipe,
countOfPortions,
energyInOnePortion,
totalCookHours,
totalCookMinutes,
activeCookHours,
activeCookMinutes,
description,
image,
videoUrl,
const DeepCollectionEquality().hash(_ingredients),
const DeepCollectionEquality().hash(_steps),
const DeepCollectionEquality().hash(_tags));
/// Create a copy of RecipeCreateEntity
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$RecipeCreateEntityImplCopyWith<_$RecipeCreateEntityImpl> get copyWith =>
__$$RecipeCreateEntityImplCopyWithImpl<_$RecipeCreateEntityImpl>(
this, _$identity);
}
abstract class _RecipeCreateEntity extends RecipeCreateEntity {
const factory _RecipeCreateEntity(
{final String? title,
final TypeOfRecipe? typeOfRecipe,
final int? countOfPortions,
final double? energyInOnePortion,
final int? totalCookHours,
final int? totalCookMinutes,
final int? activeCookHours,
final int? activeCookMinutes,
final String? description,
final File? image,
final String? videoUrl,
required final List<Ingredient> ingredients,
required final List<StepEntity> steps,
required final List<String> tags}) = _$RecipeCreateEntityImpl;
const _RecipeCreateEntity._() : super._();
@override
String? get title;
@override
TypeOfRecipe? get typeOfRecipe;
@override
int? get countOfPortions;
@override
double? get energyInOnePortion;
@override
int? get totalCookHours;
@override
int? get totalCookMinutes;
@override
int? get activeCookHours;
@override
int? get activeCookMinutes;
@override
String? get description;
@override
File? get image;
@override
String? get videoUrl;
@override
List<Ingredient> get ingredients;
@override
List<StepEntity> get steps;
@override
List<String> get tags;
/// Create a copy of RecipeCreateEntity
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$RecipeCreateEntityImplCopyWith<_$RecipeCreateEntityImpl> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
mixin _$StepEntity {
String? get description => throw _privateConstructorUsedError;
File? get image => throw _privateConstructorUsedError;
/// Create a copy of StepEntity
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$StepEntityCopyWith<StepEntity> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $StepEntityCopyWith<$Res> {
factory $StepEntityCopyWith(
StepEntity value, $Res Function(StepEntity) then) =
_$StepEntityCopyWithImpl<$Res, StepEntity>;
@useResult
$Res call({String? description, File? image});
}
/// @nodoc
class _$StepEntityCopyWithImpl<$Res, $Val extends StepEntity>
implements $StepEntityCopyWith<$Res> {
_$StepEntityCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of StepEntity
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? description = freezed,
Object? image = freezed,
}) {
return _then(_value.copyWith(
description: freezed == description
? _value.description
: description // ignore: cast_nullable_to_non_nullable
as String?,
image: freezed == image
? _value.image
: image // ignore: cast_nullable_to_non_nullable
as File?,
) as $Val);
}
}
/// @nodoc
abstract class _$$StepEntityImplCopyWith<$Res>
implements $StepEntityCopyWith<$Res> {
factory _$$StepEntityImplCopyWith(
_$StepEntityImpl value, $Res Function(_$StepEntityImpl) then) =
__$$StepEntityImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({String? description, File? image});
}
/// @nodoc
class __$$StepEntityImplCopyWithImpl<$Res>
extends _$StepEntityCopyWithImpl<$Res, _$StepEntityImpl>
implements _$$StepEntityImplCopyWith<$Res> {
__$$StepEntityImplCopyWithImpl(
_$StepEntityImpl _value, $Res Function(_$StepEntityImpl) _then)
: super(_value, _then);
/// Create a copy of StepEntity
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? description = freezed,
Object? image = freezed,
}) {
return _then(_$StepEntityImpl(
description: freezed == description
? _value.description
: description // ignore: cast_nullable_to_non_nullable
as String?,
image: freezed == image
? _value.image
: image // ignore: cast_nullable_to_non_nullable
as File?,
));
}
}
/// @nodoc
class _$StepEntityImpl extends _StepEntity {
const _$StepEntityImpl({this.description, this.image}) : super._();
@override
final String? description;
@override
final File? image;
@override
String toString() {
return 'StepEntity(description: $description, image: $image)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$StepEntityImpl &&
(identical(other.description, description) ||
other.description == description) &&
(identical(other.image, image) || other.image == image));
}
@override
int get hashCode => Object.hash(runtimeType, description, image);
/// Create a copy of StepEntity
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$StepEntityImplCopyWith<_$StepEntityImpl> get copyWith =>
__$$StepEntityImplCopyWithImpl<_$StepEntityImpl>(this, _$identity);
}
abstract class _StepEntity extends StepEntity {
const factory _StepEntity({final String? description, final File? image}) =
_$StepEntityImpl;
const _StepEntity._() : super._();
@override
String? get description;
@override
File? get image;
/// Create a copy of StepEntity
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$StepEntityImplCopyWith<_$StepEntityImpl> get copyWith =>
throw _privateConstructorUsedError;
}