Files
eatvio_app/lib/features/recipes/entities/recipe_create_entity.freezed.dart
2024-12-18 11:56:20 +03:00

723 lines
24 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;
String? get totalCookTime => throw _privateConstructorUsedError; // hh:mm
String? get activeCookTime => throw _privateConstructorUsedError; // hh:mm
String? get description => throw _privateConstructorUsedError;
File? get image => throw _privateConstructorUsedError;
String? get videoUrl => throw _privateConstructorUsedError;
List<IngredientEntity> 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,
String? totalCookTime,
String? activeCookTime,
String? description,
File? image,
String? videoUrl,
List<IngredientEntity> 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? totalCookTime = freezed,
Object? activeCookTime = 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?,
totalCookTime: freezed == totalCookTime
? _value.totalCookTime
: totalCookTime // ignore: cast_nullable_to_non_nullable
as String?,
activeCookTime: freezed == activeCookTime
? _value.activeCookTime
: activeCookTime // ignore: cast_nullable_to_non_nullable
as String?,
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<IngredientEntity>,
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,
String? totalCookTime,
String? activeCookTime,
String? description,
File? image,
String? videoUrl,
List<IngredientEntity> 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? totalCookTime = freezed,
Object? activeCookTime = 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?,
totalCookTime: freezed == totalCookTime
? _value.totalCookTime
: totalCookTime // ignore: cast_nullable_to_non_nullable
as String?,
activeCookTime: freezed == activeCookTime
? _value.activeCookTime
: activeCookTime // ignore: cast_nullable_to_non_nullable
as String?,
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<IngredientEntity>,
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 implements _RecipeCreateEntity {
const _$RecipeCreateEntityImpl(
{this.title,
this.typeOfRecipe,
this.countOfPortions,
this.energyInOnePortion,
this.totalCookTime,
this.activeCookTime,
this.description,
this.image,
this.videoUrl,
required final List<IngredientEntity> ingredients,
required final List<StepEntity> steps,
required final List<String> tags})
: _ingredients = ingredients,
_steps = steps,
_tags = tags;
@override
final String? title;
@override
final TypeOfRecipe? typeOfRecipe;
@override
final int? countOfPortions;
@override
final double? energyInOnePortion;
@override
final String? totalCookTime;
// hh:mm
@override
final String? activeCookTime;
// hh:mm
@override
final String? description;
@override
final File? image;
@override
final String? videoUrl;
final List<IngredientEntity> _ingredients;
@override
List<IngredientEntity> 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, totalCookTime: $totalCookTime, activeCookTime: $activeCookTime, 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.totalCookTime, totalCookTime) ||
other.totalCookTime == totalCookTime) &&
(identical(other.activeCookTime, activeCookTime) ||
other.activeCookTime == activeCookTime) &&
(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,
totalCookTime,
activeCookTime,
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 implements RecipeCreateEntity {
const factory _RecipeCreateEntity(
{final String? title,
final TypeOfRecipe? typeOfRecipe,
final int? countOfPortions,
final double? energyInOnePortion,
final String? totalCookTime,
final String? activeCookTime,
final String? description,
final File? image,
final String? videoUrl,
required final List<IngredientEntity> ingredients,
required final List<StepEntity> steps,
required final List<String> tags}) = _$RecipeCreateEntityImpl;
@override
String? get title;
@override
TypeOfRecipe? get typeOfRecipe;
@override
int? get countOfPortions;
@override
double? get energyInOnePortion;
@override
String? get totalCookTime; // hh:mm
@override
String? get activeCookTime; // hh:mm
@override
String? get description;
@override
File? get image;
@override
String? get videoUrl;
@override
List<IngredientEntity> 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 _$IngredientEntity {
String get name => throw _privateConstructorUsedError;
String get unit => throw _privateConstructorUsedError;
String get portion => throw _privateConstructorUsedError;
/// Create a copy of IngredientEntity
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$IngredientEntityCopyWith<IngredientEntity> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $IngredientEntityCopyWith<$Res> {
factory $IngredientEntityCopyWith(
IngredientEntity value, $Res Function(IngredientEntity) then) =
_$IngredientEntityCopyWithImpl<$Res, IngredientEntity>;
@useResult
$Res call({String name, String unit, String portion});
}
/// @nodoc
class _$IngredientEntityCopyWithImpl<$Res, $Val extends IngredientEntity>
implements $IngredientEntityCopyWith<$Res> {
_$IngredientEntityCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of IngredientEntity
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? name = null,
Object? unit = null,
Object? portion = null,
}) {
return _then(_value.copyWith(
name: null == name
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String,
unit: null == unit
? _value.unit
: unit // ignore: cast_nullable_to_non_nullable
as String,
portion: null == portion
? _value.portion
: portion // ignore: cast_nullable_to_non_nullable
as String,
) as $Val);
}
}
/// @nodoc
abstract class _$$IngredientEntityImplCopyWith<$Res>
implements $IngredientEntityCopyWith<$Res> {
factory _$$IngredientEntityImplCopyWith(_$IngredientEntityImpl value,
$Res Function(_$IngredientEntityImpl) then) =
__$$IngredientEntityImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({String name, String unit, String portion});
}
/// @nodoc
class __$$IngredientEntityImplCopyWithImpl<$Res>
extends _$IngredientEntityCopyWithImpl<$Res, _$IngredientEntityImpl>
implements _$$IngredientEntityImplCopyWith<$Res> {
__$$IngredientEntityImplCopyWithImpl(_$IngredientEntityImpl _value,
$Res Function(_$IngredientEntityImpl) _then)
: super(_value, _then);
/// Create a copy of IngredientEntity
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({
Object? name = null,
Object? unit = null,
Object? portion = null,
}) {
return _then(_$IngredientEntityImpl(
name: null == name
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String,
unit: null == unit
? _value.unit
: unit // ignore: cast_nullable_to_non_nullable
as String,
portion: null == portion
? _value.portion
: portion // ignore: cast_nullable_to_non_nullable
as String,
));
}
}
/// @nodoc
class _$IngredientEntityImpl implements _IngredientEntity {
const _$IngredientEntityImpl(
{required this.name, required this.unit, required this.portion});
@override
final String name;
@override
final String unit;
@override
final String portion;
@override
String toString() {
return 'IngredientEntity(name: $name, unit: $unit, portion: $portion)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$IngredientEntityImpl &&
(identical(other.name, name) || other.name == name) &&
(identical(other.unit, unit) || other.unit == unit) &&
(identical(other.portion, portion) || other.portion == portion));
}
@override
int get hashCode => Object.hash(runtimeType, name, unit, portion);
/// Create a copy of IngredientEntity
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$IngredientEntityImplCopyWith<_$IngredientEntityImpl> get copyWith =>
__$$IngredientEntityImplCopyWithImpl<_$IngredientEntityImpl>(
this, _$identity);
}
abstract class _IngredientEntity implements IngredientEntity {
const factory _IngredientEntity(
{required final String name,
required final String unit,
required final String portion}) = _$IngredientEntityImpl;
@override
String get name;
@override
String get unit;
@override
String get portion;
/// Create a copy of IngredientEntity
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$IngredientEntityImplCopyWith<_$IngredientEntityImpl> 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 implements _StepEntity {
const _$StepEntityImpl({this.description, this.image});
@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 implements StepEntity {
const factory _StepEntity({final String? description, final File? image}) =
_$StepEntityImpl;
@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;
}