// 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 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 json) { return _RecipeModel.fromJson(json); } /// @nodoc mixin _$RecipeModel { List? get ingredients => throw _privateConstructorUsedError; List? get steps => throw _privateConstructorUsedError; List? get tags => 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 totalCookingTime => throw _privateConstructorUsedError; int? get activeCookTime => throw _privateConstructorUsedError; int? get servings => throw _privateConstructorUsedError; int? get energyPerServing => throw _privateConstructorUsedError; /// Serializes this RecipeModel to a JSON map. Map 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 get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $RecipeModelCopyWith<$Res> { factory $RecipeModelCopyWith( RecipeModel value, $Res Function(RecipeModel) then) = _$RecipeModelCopyWithImpl<$Res, RecipeModel>; @useResult $Res call( {List? ingredients, List? steps, List? tags, String? type, String? state, String? title, String? description, String? video_url, String? image, int? totalCookingTime, int? activeCookTime, int? servings, int? energyPerServing}); } /// @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? tags = freezed, Object? type = freezed, Object? state = freezed, Object? title = freezed, Object? description = freezed, Object? video_url = freezed, Object? image = freezed, Object? totalCookingTime = freezed, Object? activeCookTime = freezed, Object? servings = freezed, Object? energyPerServing = freezed, }) { return _then(_value.copyWith( ingredients: freezed == ingredients ? _value.ingredients : ingredients // ignore: cast_nullable_to_non_nullable as List?, steps: freezed == steps ? _value.steps : steps // ignore: cast_nullable_to_non_nullable as List?, tags: freezed == tags ? _value.tags : tags // ignore: cast_nullable_to_non_nullable as List?, 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?, totalCookingTime: freezed == totalCookingTime ? _value.totalCookingTime : totalCookingTime // ignore: cast_nullable_to_non_nullable as int?, activeCookTime: freezed == activeCookTime ? _value.activeCookTime : activeCookTime // ignore: cast_nullable_to_non_nullable as int?, servings: freezed == servings ? _value.servings : servings // ignore: cast_nullable_to_non_nullable as int?, energyPerServing: freezed == energyPerServing ? _value.energyPerServing : energyPerServing // 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? ingredients, List? steps, List? tags, String? type, String? state, String? title, String? description, String? video_url, String? image, int? totalCookingTime, int? activeCookTime, int? servings, int? energyPerServing}); } /// @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? tags = freezed, Object? type = freezed, Object? state = freezed, Object? title = freezed, Object? description = freezed, Object? video_url = freezed, Object? image = freezed, Object? totalCookingTime = freezed, Object? activeCookTime = freezed, Object? servings = freezed, Object? energyPerServing = freezed, }) { return _then(_$RecipeModelImpl( ingredients: freezed == ingredients ? _value._ingredients : ingredients // ignore: cast_nullable_to_non_nullable as List?, steps: freezed == steps ? _value._steps : steps // ignore: cast_nullable_to_non_nullable as List?, tags: freezed == tags ? _value._tags : tags // ignore: cast_nullable_to_non_nullable as List?, 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?, totalCookingTime: freezed == totalCookingTime ? _value.totalCookingTime : totalCookingTime // ignore: cast_nullable_to_non_nullable as int?, activeCookTime: freezed == activeCookTime ? _value.activeCookTime : activeCookTime // ignore: cast_nullable_to_non_nullable as int?, servings: freezed == servings ? _value.servings : servings // ignore: cast_nullable_to_non_nullable as int?, energyPerServing: freezed == energyPerServing ? _value.energyPerServing : energyPerServing // ignore: cast_nullable_to_non_nullable as int?, )); } } /// @nodoc @JsonSerializable() class _$RecipeModelImpl implements _RecipeModel { const _$RecipeModelImpl( {final List? ingredients, final List? steps, final List? tags, this.type, this.state, this.title, this.description, this.video_url, this.image, this.totalCookingTime, this.activeCookTime, this.servings, this.energyPerServing}) : _ingredients = ingredients, _steps = steps, _tags = tags; factory _$RecipeModelImpl.fromJson(Map json) => _$$RecipeModelImplFromJson(json); final List? _ingredients; @override List? 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? _steps; @override List? get steps { final value = _steps; if (value == null) return null; if (_steps is EqualUnmodifiableListView) return _steps; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(value); } final List? _tags; @override List? get tags { final value = _tags; if (value == null) return null; if (_tags is EqualUnmodifiableListView) return _tags; // 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? totalCookingTime; @override final int? activeCookTime; @override final int? servings; @override final int? energyPerServing; @override String toString() { return 'RecipeModel(ingredients: $ingredients, steps: $steps, tags: $tags, type: $type, state: $state, title: $title, description: $description, video_url: $video_url, image: $image, totalCookingTime: $totalCookingTime, activeCookTime: $activeCookTime, servings: $servings, energyPerServing: $energyPerServing)'; } @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) && const DeepCollectionEquality().equals(other._tags, _tags) && (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.totalCookingTime, totalCookingTime) || other.totalCookingTime == totalCookingTime) && (identical(other.activeCookTime, activeCookTime) || other.activeCookTime == activeCookTime) && (identical(other.servings, servings) || other.servings == servings) && (identical(other.energyPerServing, energyPerServing) || other.energyPerServing == energyPerServing)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, const DeepCollectionEquality().hash(_ingredients), const DeepCollectionEquality().hash(_steps), const DeepCollectionEquality().hash(_tags), type, state, title, description, video_url, image, totalCookingTime, activeCookTime, servings, energyPerServing); /// 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 toJson() { return _$$RecipeModelImplToJson( this, ); } } abstract class _RecipeModel implements RecipeModel { const factory _RecipeModel( {final List? ingredients, final List? steps, final List? tags, final String? type, final String? state, final String? title, final String? description, final String? video_url, final String? image, final int? totalCookingTime, final int? activeCookTime, final int? servings, final int? energyPerServing}) = _$RecipeModelImpl; factory _RecipeModel.fromJson(Map json) = _$RecipeModelImpl.fromJson; @override List? get ingredients; @override List? get steps; @override List? get tags; @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 totalCookingTime; @override int? get activeCookTime; @override int? get servings; @override int? get energyPerServing; /// 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; }