Files
eatvio_app/lib/features/feed/models/recipes_pagination_model.freezed.dart
2025-03-18 14:33:51 +07:00

191 lines
6.3 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 'recipes_pagination_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',
);
RecipesPagination _$RecipesPaginationFromJson(Map<String, dynamic> json) {
return _RecipesPagination.fromJson(json);
}
/// @nodoc
mixin _$RecipesPagination {
@JsonKey(name: 'data')
List<Recipe> get recipesList => throw _privateConstructorUsedError;
/// Serializes this RecipesPagination to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
/// Create a copy of RecipesPagination
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$RecipesPaginationCopyWith<RecipesPagination> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $RecipesPaginationCopyWith<$Res> {
factory $RecipesPaginationCopyWith(
RecipesPagination value,
$Res Function(RecipesPagination) then,
) = _$RecipesPaginationCopyWithImpl<$Res, RecipesPagination>;
@useResult
$Res call({@JsonKey(name: 'data') List<Recipe> recipesList});
}
/// @nodoc
class _$RecipesPaginationCopyWithImpl<$Res, $Val extends RecipesPagination>
implements $RecipesPaginationCopyWith<$Res> {
_$RecipesPaginationCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of RecipesPagination
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({Object? recipesList = null}) {
return _then(
_value.copyWith(
recipesList:
null == recipesList
? _value.recipesList
: recipesList // ignore: cast_nullable_to_non_nullable
as List<Recipe>,
)
as $Val,
);
}
}
/// @nodoc
abstract class _$$RecipesPaginationImplCopyWith<$Res>
implements $RecipesPaginationCopyWith<$Res> {
factory _$$RecipesPaginationImplCopyWith(
_$RecipesPaginationImpl value,
$Res Function(_$RecipesPaginationImpl) then,
) = __$$RecipesPaginationImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({@JsonKey(name: 'data') List<Recipe> recipesList});
}
/// @nodoc
class __$$RecipesPaginationImplCopyWithImpl<$Res>
extends _$RecipesPaginationCopyWithImpl<$Res, _$RecipesPaginationImpl>
implements _$$RecipesPaginationImplCopyWith<$Res> {
__$$RecipesPaginationImplCopyWithImpl(
_$RecipesPaginationImpl _value,
$Res Function(_$RecipesPaginationImpl) _then,
) : super(_value, _then);
/// Create a copy of RecipesPagination
/// with the given fields replaced by the non-null parameter values.
@pragma('vm:prefer-inline')
@override
$Res call({Object? recipesList = null}) {
return _then(
_$RecipesPaginationImpl(
recipesList:
null == recipesList
? _value._recipesList
: recipesList // ignore: cast_nullable_to_non_nullable
as List<Recipe>,
),
);
}
}
/// @nodoc
@JsonSerializable()
class _$RecipesPaginationImpl implements _RecipesPagination {
const _$RecipesPaginationImpl({
@JsonKey(name: 'data') required final List<Recipe> recipesList,
}) : _recipesList = recipesList;
factory _$RecipesPaginationImpl.fromJson(Map<String, dynamic> json) =>
_$$RecipesPaginationImplFromJson(json);
final List<Recipe> _recipesList;
@override
@JsonKey(name: 'data')
List<Recipe> get recipesList {
if (_recipesList is EqualUnmodifiableListView) return _recipesList;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_recipesList);
}
@override
String toString() {
return 'RecipesPagination(recipesList: $recipesList)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$RecipesPaginationImpl &&
const DeepCollectionEquality().equals(
other._recipesList,
_recipesList,
));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(
runtimeType,
const DeepCollectionEquality().hash(_recipesList),
);
/// Create a copy of RecipesPagination
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$RecipesPaginationImplCopyWith<_$RecipesPaginationImpl> get copyWith =>
__$$RecipesPaginationImplCopyWithImpl<_$RecipesPaginationImpl>(
this,
_$identity,
);
@override
Map<String, dynamic> toJson() {
return _$$RecipesPaginationImplToJson(this);
}
}
abstract class _RecipesPagination implements RecipesPagination {
const factory _RecipesPagination({
@JsonKey(name: 'data') required final List<Recipe> recipesList,
}) = _$RecipesPaginationImpl;
factory _RecipesPagination.fromJson(Map<String, dynamic> json) =
_$RecipesPaginationImpl.fromJson;
@override
@JsonKey(name: 'data')
List<Recipe> get recipesList;
/// Create a copy of RecipesPagination
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$RecipesPaginationImplCopyWith<_$RecipesPaginationImpl> get copyWith =>
throw _privateConstructorUsedError;
}