Files
eatvio_app/lib/features/feed/models/recipes_pagination_model.freezed.dart
2024-08-02 11:52:10 +03:00

423 lines
14 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<Recipes> get recipesList => throw _privateConstructorUsedError;
@JsonKey(name: "current_page")
int get currentPage => throw _privateConstructorUsedError;
@JsonKey(name: "first_page_url")
String get firstPageUrl => throw _privateConstructorUsedError;
int get from => throw _privateConstructorUsedError;
@JsonKey(name: "last_page")
int get lastPage => throw _privateConstructorUsedError;
@JsonKey(name: "last_page_url")
String get lastPageUrl => throw _privateConstructorUsedError;
@JsonKey(name: "next_page_url")
String get nextPageUrl => throw _privateConstructorUsedError;
String get path => throw _privateConstructorUsedError;
@JsonKey(name: "per_page")
int get perPage => throw _privateConstructorUsedError;
@JsonKey(name: "prev_page_url")
dynamic get prevPageUrl => throw _privateConstructorUsedError;
int get to => throw _privateConstructorUsedError;
int get total => throw _privateConstructorUsedError;
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
@JsonKey(ignore: true)
$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<Recipes> recipesList,
@JsonKey(name: "current_page") int currentPage,
@JsonKey(name: "first_page_url") String firstPageUrl,
int from,
@JsonKey(name: "last_page") int lastPage,
@JsonKey(name: "last_page_url") String lastPageUrl,
@JsonKey(name: "next_page_url") String nextPageUrl,
String path,
@JsonKey(name: "per_page") int perPage,
@JsonKey(name: "prev_page_url") dynamic prevPageUrl,
int to,
int total});
}
/// @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;
@pragma('vm:prefer-inline')
@override
$Res call({
Object? recipesList = null,
Object? currentPage = null,
Object? firstPageUrl = null,
Object? from = null,
Object? lastPage = null,
Object? lastPageUrl = null,
Object? nextPageUrl = null,
Object? path = null,
Object? perPage = null,
Object? prevPageUrl = freezed,
Object? to = null,
Object? total = null,
}) {
return _then(_value.copyWith(
recipesList: null == recipesList
? _value.recipesList
: recipesList // ignore: cast_nullable_to_non_nullable
as List<Recipes>,
currentPage: null == currentPage
? _value.currentPage
: currentPage // ignore: cast_nullable_to_non_nullable
as int,
firstPageUrl: null == firstPageUrl
? _value.firstPageUrl
: firstPageUrl // ignore: cast_nullable_to_non_nullable
as String,
from: null == from
? _value.from
: from // ignore: cast_nullable_to_non_nullable
as int,
lastPage: null == lastPage
? _value.lastPage
: lastPage // ignore: cast_nullable_to_non_nullable
as int,
lastPageUrl: null == lastPageUrl
? _value.lastPageUrl
: lastPageUrl // ignore: cast_nullable_to_non_nullable
as String,
nextPageUrl: null == nextPageUrl
? _value.nextPageUrl
: nextPageUrl // ignore: cast_nullable_to_non_nullable
as String,
path: null == path
? _value.path
: path // ignore: cast_nullable_to_non_nullable
as String,
perPage: null == perPage
? _value.perPage
: perPage // ignore: cast_nullable_to_non_nullable
as int,
prevPageUrl: freezed == prevPageUrl
? _value.prevPageUrl
: prevPageUrl // ignore: cast_nullable_to_non_nullable
as dynamic,
to: null == to
? _value.to
: to // ignore: cast_nullable_to_non_nullable
as int,
total: null == total
? _value.total
: total // ignore: cast_nullable_to_non_nullable
as int,
) 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<Recipes> recipesList,
@JsonKey(name: "current_page") int currentPage,
@JsonKey(name: "first_page_url") String firstPageUrl,
int from,
@JsonKey(name: "last_page") int lastPage,
@JsonKey(name: "last_page_url") String lastPageUrl,
@JsonKey(name: "next_page_url") String nextPageUrl,
String path,
@JsonKey(name: "per_page") int perPage,
@JsonKey(name: "prev_page_url") dynamic prevPageUrl,
int to,
int total});
}
/// @nodoc
class __$$RecipesPaginationImplCopyWithImpl<$Res> extends _$RecipesPaginationCopyWithImpl<$Res, _$RecipesPaginationImpl>
implements _$$RecipesPaginationImplCopyWith<$Res> {
__$$RecipesPaginationImplCopyWithImpl(_$RecipesPaginationImpl _value, $Res Function(_$RecipesPaginationImpl) _then) : super(_value, _then);
@pragma('vm:prefer-inline')
@override
$Res call({
Object? recipesList = null,
Object? currentPage = null,
Object? firstPageUrl = null,
Object? from = null,
Object? lastPage = null,
Object? lastPageUrl = null,
Object? nextPageUrl = null,
Object? path = null,
Object? perPage = null,
Object? prevPageUrl = freezed,
Object? to = null,
Object? total = null,
}) {
return _then(_$RecipesPaginationImpl(
recipesList: null == recipesList
? _value._recipesList
: recipesList // ignore: cast_nullable_to_non_nullable
as List<Recipes>,
currentPage: null == currentPage
? _value.currentPage
: currentPage // ignore: cast_nullable_to_non_nullable
as int,
firstPageUrl: null == firstPageUrl
? _value.firstPageUrl
: firstPageUrl // ignore: cast_nullable_to_non_nullable
as String,
from: null == from
? _value.from
: from // ignore: cast_nullable_to_non_nullable
as int,
lastPage: null == lastPage
? _value.lastPage
: lastPage // ignore: cast_nullable_to_non_nullable
as int,
lastPageUrl: null == lastPageUrl
? _value.lastPageUrl
: lastPageUrl // ignore: cast_nullable_to_non_nullable
as String,
nextPageUrl: null == nextPageUrl
? _value.nextPageUrl
: nextPageUrl // ignore: cast_nullable_to_non_nullable
as String,
path: null == path
? _value.path
: path // ignore: cast_nullable_to_non_nullable
as String,
perPage: null == perPage
? _value.perPage
: perPage // ignore: cast_nullable_to_non_nullable
as int,
prevPageUrl: freezed == prevPageUrl
? _value.prevPageUrl
: prevPageUrl // ignore: cast_nullable_to_non_nullable
as dynamic,
to: null == to
? _value.to
: to // ignore: cast_nullable_to_non_nullable
as int,
total: null == total
? _value.total
: total // ignore: cast_nullable_to_non_nullable
as int,
));
}
}
/// @nodoc
@JsonSerializable()
class _$RecipesPaginationImpl implements _RecipesPagination {
const _$RecipesPaginationImpl(
{@JsonKey(name: 'data') required final List<Recipes> recipesList,
@JsonKey(name: "current_page") required this.currentPage,
@JsonKey(name: "first_page_url") required this.firstPageUrl,
required this.from,
@JsonKey(name: "last_page") required this.lastPage,
@JsonKey(name: "last_page_url") required this.lastPageUrl,
@JsonKey(name: "next_page_url") required this.nextPageUrl,
required this.path,
@JsonKey(name: "per_page") required this.perPage,
@JsonKey(name: "prev_page_url") required this.prevPageUrl,
required this.to,
required this.total})
: _recipesList = recipesList;
factory _$RecipesPaginationImpl.fromJson(Map<String, dynamic> json) => _$$RecipesPaginationImplFromJson(json);
final List<Recipes> _recipesList;
@override
@JsonKey(name: 'data')
List<Recipes> get recipesList {
if (_recipesList is EqualUnmodifiableListView) return _recipesList;
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_recipesList);
}
@override
@JsonKey(name: "current_page")
final int currentPage;
@override
@JsonKey(name: "first_page_url")
final String firstPageUrl;
@override
final int from;
@override
@JsonKey(name: "last_page")
final int lastPage;
@override
@JsonKey(name: "last_page_url")
final String lastPageUrl;
@override
@JsonKey(name: "next_page_url")
final String nextPageUrl;
@override
final String path;
@override
@JsonKey(name: "per_page")
final int perPage;
@override
@JsonKey(name: "prev_page_url")
final dynamic prevPageUrl;
@override
final int to;
@override
final int total;
@override
String toString() {
return 'RecipesPagination(recipesList: $recipesList, currentPage: $currentPage, firstPageUrl: $firstPageUrl, from: $from, lastPage: $lastPage, lastPageUrl: $lastPageUrl, nextPageUrl: $nextPageUrl, path: $path, perPage: $perPage, prevPageUrl: $prevPageUrl, to: $to, total: $total)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$RecipesPaginationImpl &&
const DeepCollectionEquality().equals(other._recipesList, _recipesList) &&
(identical(other.currentPage, currentPage) || other.currentPage == currentPage) &&
(identical(other.firstPageUrl, firstPageUrl) || other.firstPageUrl == firstPageUrl) &&
(identical(other.from, from) || other.from == from) &&
(identical(other.lastPage, lastPage) || other.lastPage == lastPage) &&
(identical(other.lastPageUrl, lastPageUrl) || other.lastPageUrl == lastPageUrl) &&
(identical(other.nextPageUrl, nextPageUrl) || other.nextPageUrl == nextPageUrl) &&
(identical(other.path, path) || other.path == path) &&
(identical(other.perPage, perPage) || other.perPage == perPage) &&
const DeepCollectionEquality().equals(other.prevPageUrl, prevPageUrl) &&
(identical(other.to, to) || other.to == to) &&
(identical(other.total, total) || other.total == total));
}
@JsonKey(ignore: true)
@override
int get hashCode => Object.hash(runtimeType, const DeepCollectionEquality().hash(_recipesList), currentPage, firstPageUrl, from, lastPage, lastPageUrl,
nextPageUrl, path, perPage, const DeepCollectionEquality().hash(prevPageUrl), to, total);
@JsonKey(ignore: true)
@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<Recipes> recipesList,
@JsonKey(name: "current_page") required final int currentPage,
@JsonKey(name: "first_page_url") required final String firstPageUrl,
required final int from,
@JsonKey(name: "last_page") required final int lastPage,
@JsonKey(name: "last_page_url") required final String lastPageUrl,
@JsonKey(name: "next_page_url") required final String nextPageUrl,
required final String path,
@JsonKey(name: "per_page") required final int perPage,
@JsonKey(name: "prev_page_url") required final dynamic prevPageUrl,
required final int to,
required final int total}) = _$RecipesPaginationImpl;
factory _RecipesPagination.fromJson(Map<String, dynamic> json) = _$RecipesPaginationImpl.fromJson;
@override
@JsonKey(name: 'data')
List<Recipes> get recipesList;
@override
@JsonKey(name: "current_page")
int get currentPage;
@override
@JsonKey(name: "first_page_url")
String get firstPageUrl;
@override
int get from;
@override
@JsonKey(name: "last_page")
int get lastPage;
@override
@JsonKey(name: "last_page_url")
String get lastPageUrl;
@override
@JsonKey(name: "next_page_url")
String get nextPageUrl;
@override
String get path;
@override
@JsonKey(name: "per_page")
int get perPage;
@override
@JsonKey(name: "prev_page_url")
dynamic get prevPageUrl;
@override
int get to;
@override
int get total;
@override
@JsonKey(ignore: true)
_$$RecipesPaginationImplCopyWith<_$RecipesPaginationImpl> get copyWith => throw _privateConstructorUsedError;
}