forked from eatvio/eatvio_app
2139 lines
65 KiB
Dart
2139 lines
65 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 'diets_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');
|
|
|
|
DietsPagination _$DietsPaginationFromJson(Map<String, dynamic> json) {
|
|
return _DietsPagination.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$DietsPagination {
|
|
@JsonKey(name: "data")
|
|
List<Datum> get data => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "links")
|
|
Links get links => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "meta")
|
|
Meta get meta => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this DietsPagination to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of DietsPagination
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$DietsPaginationCopyWith<DietsPagination> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $DietsPaginationCopyWith<$Res> {
|
|
factory $DietsPaginationCopyWith(
|
|
DietsPagination value, $Res Function(DietsPagination) then) =
|
|
_$DietsPaginationCopyWithImpl<$Res, DietsPagination>;
|
|
@useResult
|
|
$Res call(
|
|
{@JsonKey(name: "data") List<Datum> data,
|
|
@JsonKey(name: "links") Links links,
|
|
@JsonKey(name: "meta") Meta meta});
|
|
|
|
$LinksCopyWith<$Res> get links;
|
|
$MetaCopyWith<$Res> get meta;
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$DietsPaginationCopyWithImpl<$Res, $Val extends DietsPagination>
|
|
implements $DietsPaginationCopyWith<$Res> {
|
|
_$DietsPaginationCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of DietsPagination
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? data = null,
|
|
Object? links = null,
|
|
Object? meta = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
data: null == data
|
|
? _value.data
|
|
: data // ignore: cast_nullable_to_non_nullable
|
|
as List<Datum>,
|
|
links: null == links
|
|
? _value.links
|
|
: links // ignore: cast_nullable_to_non_nullable
|
|
as Links,
|
|
meta: null == meta
|
|
? _value.meta
|
|
: meta // ignore: cast_nullable_to_non_nullable
|
|
as Meta,
|
|
) as $Val);
|
|
}
|
|
|
|
/// Create a copy of DietsPagination
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
$LinksCopyWith<$Res> get links {
|
|
return $LinksCopyWith<$Res>(_value.links, (value) {
|
|
return _then(_value.copyWith(links: value) as $Val);
|
|
});
|
|
}
|
|
|
|
/// Create a copy of DietsPagination
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
$MetaCopyWith<$Res> get meta {
|
|
return $MetaCopyWith<$Res>(_value.meta, (value) {
|
|
return _then(_value.copyWith(meta: value) as $Val);
|
|
});
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$DietsPaginationImplCopyWith<$Res>
|
|
implements $DietsPaginationCopyWith<$Res> {
|
|
factory _$$DietsPaginationImplCopyWith(_$DietsPaginationImpl value,
|
|
$Res Function(_$DietsPaginationImpl) then) =
|
|
__$$DietsPaginationImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{@JsonKey(name: "data") List<Datum> data,
|
|
@JsonKey(name: "links") Links links,
|
|
@JsonKey(name: "meta") Meta meta});
|
|
|
|
@override
|
|
$LinksCopyWith<$Res> get links;
|
|
@override
|
|
$MetaCopyWith<$Res> get meta;
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$DietsPaginationImplCopyWithImpl<$Res>
|
|
extends _$DietsPaginationCopyWithImpl<$Res, _$DietsPaginationImpl>
|
|
implements _$$DietsPaginationImplCopyWith<$Res> {
|
|
__$$DietsPaginationImplCopyWithImpl(
|
|
_$DietsPaginationImpl _value, $Res Function(_$DietsPaginationImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of DietsPagination
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? data = null,
|
|
Object? links = null,
|
|
Object? meta = null,
|
|
}) {
|
|
return _then(_$DietsPaginationImpl(
|
|
data: null == data
|
|
? _value._data
|
|
: data // ignore: cast_nullable_to_non_nullable
|
|
as List<Datum>,
|
|
links: null == links
|
|
? _value.links
|
|
: links // ignore: cast_nullable_to_non_nullable
|
|
as Links,
|
|
meta: null == meta
|
|
? _value.meta
|
|
: meta // ignore: cast_nullable_to_non_nullable
|
|
as Meta,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$DietsPaginationImpl implements _DietsPagination {
|
|
const _$DietsPaginationImpl(
|
|
{@JsonKey(name: "data") required final List<Datum> data,
|
|
@JsonKey(name: "links") required this.links,
|
|
@JsonKey(name: "meta") required this.meta})
|
|
: _data = data;
|
|
|
|
factory _$DietsPaginationImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$DietsPaginationImplFromJson(json);
|
|
|
|
final List<Datum> _data;
|
|
@override
|
|
@JsonKey(name: "data")
|
|
List<Datum> get data {
|
|
if (_data is EqualUnmodifiableListView) return _data;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(_data);
|
|
}
|
|
|
|
@override
|
|
@JsonKey(name: "links")
|
|
final Links links;
|
|
@override
|
|
@JsonKey(name: "meta")
|
|
final Meta meta;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'DietsPagination(data: $data, links: $links, meta: $meta)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$DietsPaginationImpl &&
|
|
const DeepCollectionEquality().equals(other._data, _data) &&
|
|
(identical(other.links, links) || other.links == links) &&
|
|
(identical(other.meta, meta) || other.meta == meta));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType, const DeepCollectionEquality().hash(_data), links, meta);
|
|
|
|
/// Create a copy of DietsPagination
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$DietsPaginationImplCopyWith<_$DietsPaginationImpl> get copyWith =>
|
|
__$$DietsPaginationImplCopyWithImpl<_$DietsPaginationImpl>(
|
|
this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$DietsPaginationImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _DietsPagination implements DietsPagination {
|
|
const factory _DietsPagination(
|
|
{@JsonKey(name: "data") required final List<Datum> data,
|
|
@JsonKey(name: "links") required final Links links,
|
|
@JsonKey(name: "meta") required final Meta meta}) = _$DietsPaginationImpl;
|
|
|
|
factory _DietsPagination.fromJson(Map<String, dynamic> json) =
|
|
_$DietsPaginationImpl.fromJson;
|
|
|
|
@override
|
|
@JsonKey(name: "data")
|
|
List<Datum> get data;
|
|
@override
|
|
@JsonKey(name: "links")
|
|
Links get links;
|
|
@override
|
|
@JsonKey(name: "meta")
|
|
Meta get meta;
|
|
|
|
/// Create a copy of DietsPagination
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$DietsPaginationImplCopyWith<_$DietsPaginationImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
Datum _$DatumFromJson(Map<String, dynamic> json) {
|
|
return _Datum.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$Datum {
|
|
@JsonKey(name: "id")
|
|
int get id => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "name")
|
|
String get name => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "image")
|
|
String get image => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "duration")
|
|
int get duration => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "state")
|
|
String get state => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "type")
|
|
Type get type => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "details")
|
|
String get details => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "daily_schedule")
|
|
List<List<List<DailySchedule>>> get dailySchedule =>
|
|
throw _privateConstructorUsedError;
|
|
@JsonKey(name: "author")
|
|
Author get author => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "total_likes")
|
|
int get totalLikes => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "total_views")
|
|
int get totalViews => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "total_comments")
|
|
int get totalComments => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this Datum to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of Datum
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$DatumCopyWith<Datum> get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $DatumCopyWith<$Res> {
|
|
factory $DatumCopyWith(Datum value, $Res Function(Datum) then) =
|
|
_$DatumCopyWithImpl<$Res, Datum>;
|
|
@useResult
|
|
$Res call(
|
|
{@JsonKey(name: "id") int id,
|
|
@JsonKey(name: "name") String name,
|
|
@JsonKey(name: "image") String image,
|
|
@JsonKey(name: "duration") int duration,
|
|
@JsonKey(name: "state") String state,
|
|
@JsonKey(name: "type") Type type,
|
|
@JsonKey(name: "details") String details,
|
|
@JsonKey(name: "daily_schedule")
|
|
List<List<List<DailySchedule>>> dailySchedule,
|
|
@JsonKey(name: "author") Author author,
|
|
@JsonKey(name: "total_likes") int totalLikes,
|
|
@JsonKey(name: "total_views") int totalViews,
|
|
@JsonKey(name: "total_comments") int totalComments});
|
|
|
|
$TypeCopyWith<$Res> get type;
|
|
$AuthorCopyWith<$Res> get author;
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$DatumCopyWithImpl<$Res, $Val extends Datum>
|
|
implements $DatumCopyWith<$Res> {
|
|
_$DatumCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of Datum
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? name = null,
|
|
Object? image = null,
|
|
Object? duration = null,
|
|
Object? state = null,
|
|
Object? type = null,
|
|
Object? details = null,
|
|
Object? dailySchedule = null,
|
|
Object? author = null,
|
|
Object? totalLikes = null,
|
|
Object? totalViews = null,
|
|
Object? totalComments = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
id: null == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
name: null == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
image: null == image
|
|
? _value.image
|
|
: image // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
duration: null == duration
|
|
? _value.duration
|
|
: duration // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
state: null == state
|
|
? _value.state
|
|
: state // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
type: null == type
|
|
? _value.type
|
|
: type // ignore: cast_nullable_to_non_nullable
|
|
as Type,
|
|
details: null == details
|
|
? _value.details
|
|
: details // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
dailySchedule: null == dailySchedule
|
|
? _value.dailySchedule
|
|
: dailySchedule // ignore: cast_nullable_to_non_nullable
|
|
as List<List<List<DailySchedule>>>,
|
|
author: null == author
|
|
? _value.author
|
|
: author // ignore: cast_nullable_to_non_nullable
|
|
as Author,
|
|
totalLikes: null == totalLikes
|
|
? _value.totalLikes
|
|
: totalLikes // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
totalViews: null == totalViews
|
|
? _value.totalViews
|
|
: totalViews // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
totalComments: null == totalComments
|
|
? _value.totalComments
|
|
: totalComments // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
) as $Val);
|
|
}
|
|
|
|
/// Create a copy of Datum
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
$TypeCopyWith<$Res> get type {
|
|
return $TypeCopyWith<$Res>(_value.type, (value) {
|
|
return _then(_value.copyWith(type: value) as $Val);
|
|
});
|
|
}
|
|
|
|
/// Create a copy of Datum
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
$AuthorCopyWith<$Res> get author {
|
|
return $AuthorCopyWith<$Res>(_value.author, (value) {
|
|
return _then(_value.copyWith(author: value) as $Val);
|
|
});
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$DatumImplCopyWith<$Res> implements $DatumCopyWith<$Res> {
|
|
factory _$$DatumImplCopyWith(
|
|
_$DatumImpl value, $Res Function(_$DatumImpl) then) =
|
|
__$$DatumImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{@JsonKey(name: "id") int id,
|
|
@JsonKey(name: "name") String name,
|
|
@JsonKey(name: "image") String image,
|
|
@JsonKey(name: "duration") int duration,
|
|
@JsonKey(name: "state") String state,
|
|
@JsonKey(name: "type") Type type,
|
|
@JsonKey(name: "details") String details,
|
|
@JsonKey(name: "daily_schedule")
|
|
List<List<List<DailySchedule>>> dailySchedule,
|
|
@JsonKey(name: "author") Author author,
|
|
@JsonKey(name: "total_likes") int totalLikes,
|
|
@JsonKey(name: "total_views") int totalViews,
|
|
@JsonKey(name: "total_comments") int totalComments});
|
|
|
|
@override
|
|
$TypeCopyWith<$Res> get type;
|
|
@override
|
|
$AuthorCopyWith<$Res> get author;
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$DatumImplCopyWithImpl<$Res>
|
|
extends _$DatumCopyWithImpl<$Res, _$DatumImpl>
|
|
implements _$$DatumImplCopyWith<$Res> {
|
|
__$$DatumImplCopyWithImpl(
|
|
_$DatumImpl _value, $Res Function(_$DatumImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of Datum
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? name = null,
|
|
Object? image = null,
|
|
Object? duration = null,
|
|
Object? state = null,
|
|
Object? type = null,
|
|
Object? details = null,
|
|
Object? dailySchedule = null,
|
|
Object? author = null,
|
|
Object? totalLikes = null,
|
|
Object? totalViews = null,
|
|
Object? totalComments = null,
|
|
}) {
|
|
return _then(_$DatumImpl(
|
|
id: null == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
name: null == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
image: null == image
|
|
? _value.image
|
|
: image // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
duration: null == duration
|
|
? _value.duration
|
|
: duration // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
state: null == state
|
|
? _value.state
|
|
: state // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
type: null == type
|
|
? _value.type
|
|
: type // ignore: cast_nullable_to_non_nullable
|
|
as Type,
|
|
details: null == details
|
|
? _value.details
|
|
: details // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
dailySchedule: null == dailySchedule
|
|
? _value._dailySchedule
|
|
: dailySchedule // ignore: cast_nullable_to_non_nullable
|
|
as List<List<List<DailySchedule>>>,
|
|
author: null == author
|
|
? _value.author
|
|
: author // ignore: cast_nullable_to_non_nullable
|
|
as Author,
|
|
totalLikes: null == totalLikes
|
|
? _value.totalLikes
|
|
: totalLikes // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
totalViews: null == totalViews
|
|
? _value.totalViews
|
|
: totalViews // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
totalComments: null == totalComments
|
|
? _value.totalComments
|
|
: totalComments // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$DatumImpl implements _Datum {
|
|
const _$DatumImpl(
|
|
{@JsonKey(name: "id") required this.id,
|
|
@JsonKey(name: "name") required this.name,
|
|
@JsonKey(name: "image") required this.image,
|
|
@JsonKey(name: "duration") required this.duration,
|
|
@JsonKey(name: "state") required this.state,
|
|
@JsonKey(name: "type") required this.type,
|
|
@JsonKey(name: "details") required this.details,
|
|
@JsonKey(name: "daily_schedule")
|
|
required final List<List<List<DailySchedule>>> dailySchedule,
|
|
@JsonKey(name: "author") required this.author,
|
|
@JsonKey(name: "total_likes") required this.totalLikes,
|
|
@JsonKey(name: "total_views") required this.totalViews,
|
|
@JsonKey(name: "total_comments") required this.totalComments})
|
|
: _dailySchedule = dailySchedule;
|
|
|
|
factory _$DatumImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$DatumImplFromJson(json);
|
|
|
|
@override
|
|
@JsonKey(name: "id")
|
|
final int id;
|
|
@override
|
|
@JsonKey(name: "name")
|
|
final String name;
|
|
@override
|
|
@JsonKey(name: "image")
|
|
final String image;
|
|
@override
|
|
@JsonKey(name: "duration")
|
|
final int duration;
|
|
@override
|
|
@JsonKey(name: "state")
|
|
final String state;
|
|
@override
|
|
@JsonKey(name: "type")
|
|
final Type type;
|
|
@override
|
|
@JsonKey(name: "details")
|
|
final String details;
|
|
final List<List<List<DailySchedule>>> _dailySchedule;
|
|
@override
|
|
@JsonKey(name: "daily_schedule")
|
|
List<List<List<DailySchedule>>> get dailySchedule {
|
|
if (_dailySchedule is EqualUnmodifiableListView) return _dailySchedule;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(_dailySchedule);
|
|
}
|
|
|
|
@override
|
|
@JsonKey(name: "author")
|
|
final Author author;
|
|
@override
|
|
@JsonKey(name: "total_likes")
|
|
final int totalLikes;
|
|
@override
|
|
@JsonKey(name: "total_views")
|
|
final int totalViews;
|
|
@override
|
|
@JsonKey(name: "total_comments")
|
|
final int totalComments;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'Datum(id: $id, name: $name, image: $image, duration: $duration, state: $state, type: $type, details: $details, dailySchedule: $dailySchedule, author: $author, totalLikes: $totalLikes, totalViews: $totalViews, totalComments: $totalComments)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$DatumImpl &&
|
|
(identical(other.id, id) || other.id == id) &&
|
|
(identical(other.name, name) || other.name == name) &&
|
|
(identical(other.image, image) || other.image == image) &&
|
|
(identical(other.duration, duration) ||
|
|
other.duration == duration) &&
|
|
(identical(other.state, state) || other.state == state) &&
|
|
(identical(other.type, type) || other.type == type) &&
|
|
(identical(other.details, details) || other.details == details) &&
|
|
const DeepCollectionEquality()
|
|
.equals(other._dailySchedule, _dailySchedule) &&
|
|
(identical(other.author, author) || other.author == author) &&
|
|
(identical(other.totalLikes, totalLikes) ||
|
|
other.totalLikes == totalLikes) &&
|
|
(identical(other.totalViews, totalViews) ||
|
|
other.totalViews == totalViews) &&
|
|
(identical(other.totalComments, totalComments) ||
|
|
other.totalComments == totalComments));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
id,
|
|
name,
|
|
image,
|
|
duration,
|
|
state,
|
|
type,
|
|
details,
|
|
const DeepCollectionEquality().hash(_dailySchedule),
|
|
author,
|
|
totalLikes,
|
|
totalViews,
|
|
totalComments);
|
|
|
|
/// Create a copy of Datum
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$DatumImplCopyWith<_$DatumImpl> get copyWith =>
|
|
__$$DatumImplCopyWithImpl<_$DatumImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$DatumImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _Datum implements Datum {
|
|
const factory _Datum(
|
|
{@JsonKey(name: "id") required final int id,
|
|
@JsonKey(name: "name") required final String name,
|
|
@JsonKey(name: "image") required final String image,
|
|
@JsonKey(name: "duration") required final int duration,
|
|
@JsonKey(name: "state") required final String state,
|
|
@JsonKey(name: "type") required final Type type,
|
|
@JsonKey(name: "details") required final String details,
|
|
@JsonKey(name: "daily_schedule")
|
|
required final List<List<List<DailySchedule>>> dailySchedule,
|
|
@JsonKey(name: "author") required final Author author,
|
|
@JsonKey(name: "total_likes") required final int totalLikes,
|
|
@JsonKey(name: "total_views") required final int totalViews,
|
|
@JsonKey(name: "total_comments") required final int totalComments}) =
|
|
_$DatumImpl;
|
|
|
|
factory _Datum.fromJson(Map<String, dynamic> json) = _$DatumImpl.fromJson;
|
|
|
|
@override
|
|
@JsonKey(name: "id")
|
|
int get id;
|
|
@override
|
|
@JsonKey(name: "name")
|
|
String get name;
|
|
@override
|
|
@JsonKey(name: "image")
|
|
String get image;
|
|
@override
|
|
@JsonKey(name: "duration")
|
|
int get duration;
|
|
@override
|
|
@JsonKey(name: "state")
|
|
String get state;
|
|
@override
|
|
@JsonKey(name: "type")
|
|
Type get type;
|
|
@override
|
|
@JsonKey(name: "details")
|
|
String get details;
|
|
@override
|
|
@JsonKey(name: "daily_schedule")
|
|
List<List<List<DailySchedule>>> get dailySchedule;
|
|
@override
|
|
@JsonKey(name: "author")
|
|
Author get author;
|
|
@override
|
|
@JsonKey(name: "total_likes")
|
|
int get totalLikes;
|
|
@override
|
|
@JsonKey(name: "total_views")
|
|
int get totalViews;
|
|
@override
|
|
@JsonKey(name: "total_comments")
|
|
int get totalComments;
|
|
|
|
/// Create a copy of Datum
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$DatumImplCopyWith<_$DatumImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
Author _$AuthorFromJson(Map<String, dynamic> json) {
|
|
return _Author.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$Author {
|
|
@JsonKey(name: "author_slug")
|
|
String get authorSlug => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "author_name")
|
|
String get authorName => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "author_profile_icon")
|
|
String get authorProfileIcon => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "author_is_me")
|
|
bool get authorIsMe => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this Author to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of Author
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$AuthorCopyWith<Author> get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $AuthorCopyWith<$Res> {
|
|
factory $AuthorCopyWith(Author value, $Res Function(Author) then) =
|
|
_$AuthorCopyWithImpl<$Res, Author>;
|
|
@useResult
|
|
$Res call(
|
|
{@JsonKey(name: "author_slug") String authorSlug,
|
|
@JsonKey(name: "author_name") String authorName,
|
|
@JsonKey(name: "author_profile_icon") String authorProfileIcon,
|
|
@JsonKey(name: "author_is_me") bool authorIsMe});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$AuthorCopyWithImpl<$Res, $Val extends Author>
|
|
implements $AuthorCopyWith<$Res> {
|
|
_$AuthorCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of Author
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? authorSlug = null,
|
|
Object? authorName = null,
|
|
Object? authorProfileIcon = null,
|
|
Object? authorIsMe = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
authorSlug: null == authorSlug
|
|
? _value.authorSlug
|
|
: authorSlug // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
authorName: null == authorName
|
|
? _value.authorName
|
|
: authorName // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
authorProfileIcon: null == authorProfileIcon
|
|
? _value.authorProfileIcon
|
|
: authorProfileIcon // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
authorIsMe: null == authorIsMe
|
|
? _value.authorIsMe
|
|
: authorIsMe // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$AuthorImplCopyWith<$Res> implements $AuthorCopyWith<$Res> {
|
|
factory _$$AuthorImplCopyWith(
|
|
_$AuthorImpl value, $Res Function(_$AuthorImpl) then) =
|
|
__$$AuthorImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{@JsonKey(name: "author_slug") String authorSlug,
|
|
@JsonKey(name: "author_name") String authorName,
|
|
@JsonKey(name: "author_profile_icon") String authorProfileIcon,
|
|
@JsonKey(name: "author_is_me") bool authorIsMe});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$AuthorImplCopyWithImpl<$Res>
|
|
extends _$AuthorCopyWithImpl<$Res, _$AuthorImpl>
|
|
implements _$$AuthorImplCopyWith<$Res> {
|
|
__$$AuthorImplCopyWithImpl(
|
|
_$AuthorImpl _value, $Res Function(_$AuthorImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of Author
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? authorSlug = null,
|
|
Object? authorName = null,
|
|
Object? authorProfileIcon = null,
|
|
Object? authorIsMe = null,
|
|
}) {
|
|
return _then(_$AuthorImpl(
|
|
authorSlug: null == authorSlug
|
|
? _value.authorSlug
|
|
: authorSlug // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
authorName: null == authorName
|
|
? _value.authorName
|
|
: authorName // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
authorProfileIcon: null == authorProfileIcon
|
|
? _value.authorProfileIcon
|
|
: authorProfileIcon // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
authorIsMe: null == authorIsMe
|
|
? _value.authorIsMe
|
|
: authorIsMe // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$AuthorImpl implements _Author {
|
|
const _$AuthorImpl(
|
|
{@JsonKey(name: "author_slug") required this.authorSlug,
|
|
@JsonKey(name: "author_name") required this.authorName,
|
|
@JsonKey(name: "author_profile_icon") required this.authorProfileIcon,
|
|
@JsonKey(name: "author_is_me") required this.authorIsMe});
|
|
|
|
factory _$AuthorImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$AuthorImplFromJson(json);
|
|
|
|
@override
|
|
@JsonKey(name: "author_slug")
|
|
final String authorSlug;
|
|
@override
|
|
@JsonKey(name: "author_name")
|
|
final String authorName;
|
|
@override
|
|
@JsonKey(name: "author_profile_icon")
|
|
final String authorProfileIcon;
|
|
@override
|
|
@JsonKey(name: "author_is_me")
|
|
final bool authorIsMe;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'Author(authorSlug: $authorSlug, authorName: $authorName, authorProfileIcon: $authorProfileIcon, authorIsMe: $authorIsMe)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$AuthorImpl &&
|
|
(identical(other.authorSlug, authorSlug) ||
|
|
other.authorSlug == authorSlug) &&
|
|
(identical(other.authorName, authorName) ||
|
|
other.authorName == authorName) &&
|
|
(identical(other.authorProfileIcon, authorProfileIcon) ||
|
|
other.authorProfileIcon == authorProfileIcon) &&
|
|
(identical(other.authorIsMe, authorIsMe) ||
|
|
other.authorIsMe == authorIsMe));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType, authorSlug, authorName, authorProfileIcon, authorIsMe);
|
|
|
|
/// Create a copy of Author
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$AuthorImplCopyWith<_$AuthorImpl> get copyWith =>
|
|
__$$AuthorImplCopyWithImpl<_$AuthorImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$AuthorImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _Author implements Author {
|
|
const factory _Author(
|
|
{@JsonKey(name: "author_slug") required final String authorSlug,
|
|
@JsonKey(name: "author_name") required final String authorName,
|
|
@JsonKey(name: "author_profile_icon")
|
|
required final String authorProfileIcon,
|
|
@JsonKey(name: "author_is_me") required final bool authorIsMe}) =
|
|
_$AuthorImpl;
|
|
|
|
factory _Author.fromJson(Map<String, dynamic> json) = _$AuthorImpl.fromJson;
|
|
|
|
@override
|
|
@JsonKey(name: "author_slug")
|
|
String get authorSlug;
|
|
@override
|
|
@JsonKey(name: "author_name")
|
|
String get authorName;
|
|
@override
|
|
@JsonKey(name: "author_profile_icon")
|
|
String get authorProfileIcon;
|
|
@override
|
|
@JsonKey(name: "author_is_me")
|
|
bool get authorIsMe;
|
|
|
|
/// Create a copy of Author
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$AuthorImplCopyWith<_$AuthorImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
DailySchedule _$DailyScheduleFromJson(Map<String, dynamic> json) {
|
|
return _DailySchedule.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$DailySchedule {
|
|
@JsonKey(name: "name")
|
|
String get name => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "uniq")
|
|
String get uniq => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "portion")
|
|
Portion get portion => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "quantity")
|
|
int get quantity => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this DailySchedule to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of DailySchedule
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$DailyScheduleCopyWith<DailySchedule> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $DailyScheduleCopyWith<$Res> {
|
|
factory $DailyScheduleCopyWith(
|
|
DailySchedule value, $Res Function(DailySchedule) then) =
|
|
_$DailyScheduleCopyWithImpl<$Res, DailySchedule>;
|
|
@useResult
|
|
$Res call(
|
|
{@JsonKey(name: "name") String name,
|
|
@JsonKey(name: "uniq") String uniq,
|
|
@JsonKey(name: "portion") Portion portion,
|
|
@JsonKey(name: "quantity") int quantity});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$DailyScheduleCopyWithImpl<$Res, $Val extends DailySchedule>
|
|
implements $DailyScheduleCopyWith<$Res> {
|
|
_$DailyScheduleCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of DailySchedule
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? name = null,
|
|
Object? uniq = null,
|
|
Object? portion = null,
|
|
Object? quantity = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
name: null == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
uniq: null == uniq
|
|
? _value.uniq
|
|
: uniq // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
portion: null == portion
|
|
? _value.portion
|
|
: portion // ignore: cast_nullable_to_non_nullable
|
|
as Portion,
|
|
quantity: null == quantity
|
|
? _value.quantity
|
|
: quantity // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$DailyScheduleImplCopyWith<$Res>
|
|
implements $DailyScheduleCopyWith<$Res> {
|
|
factory _$$DailyScheduleImplCopyWith(
|
|
_$DailyScheduleImpl value, $Res Function(_$DailyScheduleImpl) then) =
|
|
__$$DailyScheduleImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{@JsonKey(name: "name") String name,
|
|
@JsonKey(name: "uniq") String uniq,
|
|
@JsonKey(name: "portion") Portion portion,
|
|
@JsonKey(name: "quantity") int quantity});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$DailyScheduleImplCopyWithImpl<$Res>
|
|
extends _$DailyScheduleCopyWithImpl<$Res, _$DailyScheduleImpl>
|
|
implements _$$DailyScheduleImplCopyWith<$Res> {
|
|
__$$DailyScheduleImplCopyWithImpl(
|
|
_$DailyScheduleImpl _value, $Res Function(_$DailyScheduleImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of DailySchedule
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? name = null,
|
|
Object? uniq = null,
|
|
Object? portion = null,
|
|
Object? quantity = null,
|
|
}) {
|
|
return _then(_$DailyScheduleImpl(
|
|
name: null == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
uniq: null == uniq
|
|
? _value.uniq
|
|
: uniq // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
portion: null == portion
|
|
? _value.portion
|
|
: portion // ignore: cast_nullable_to_non_nullable
|
|
as Portion,
|
|
quantity: null == quantity
|
|
? _value.quantity
|
|
: quantity // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$DailyScheduleImpl implements _DailySchedule {
|
|
const _$DailyScheduleImpl(
|
|
{@JsonKey(name: "name") required this.name,
|
|
@JsonKey(name: "uniq") required this.uniq,
|
|
@JsonKey(name: "portion") required this.portion,
|
|
@JsonKey(name: "quantity") required this.quantity});
|
|
|
|
factory _$DailyScheduleImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$DailyScheduleImplFromJson(json);
|
|
|
|
@override
|
|
@JsonKey(name: "name")
|
|
final String name;
|
|
@override
|
|
@JsonKey(name: "uniq")
|
|
final String uniq;
|
|
@override
|
|
@JsonKey(name: "portion")
|
|
final Portion portion;
|
|
@override
|
|
@JsonKey(name: "quantity")
|
|
final int quantity;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'DailySchedule(name: $name, uniq: $uniq, portion: $portion, quantity: $quantity)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$DailyScheduleImpl &&
|
|
(identical(other.name, name) || other.name == name) &&
|
|
(identical(other.uniq, uniq) || other.uniq == uniq) &&
|
|
(identical(other.portion, portion) || other.portion == portion) &&
|
|
(identical(other.quantity, quantity) ||
|
|
other.quantity == quantity));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, name, uniq, portion, quantity);
|
|
|
|
/// Create a copy of DailySchedule
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$DailyScheduleImplCopyWith<_$DailyScheduleImpl> get copyWith =>
|
|
__$$DailyScheduleImplCopyWithImpl<_$DailyScheduleImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$DailyScheduleImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _DailySchedule implements DailySchedule {
|
|
const factory _DailySchedule(
|
|
{@JsonKey(name: "name") required final String name,
|
|
@JsonKey(name: "uniq") required final String uniq,
|
|
@JsonKey(name: "portion") required final Portion portion,
|
|
@JsonKey(name: "quantity") required final int quantity}) =
|
|
_$DailyScheduleImpl;
|
|
|
|
factory _DailySchedule.fromJson(Map<String, dynamic> json) =
|
|
_$DailyScheduleImpl.fromJson;
|
|
|
|
@override
|
|
@JsonKey(name: "name")
|
|
String get name;
|
|
@override
|
|
@JsonKey(name: "uniq")
|
|
String get uniq;
|
|
@override
|
|
@JsonKey(name: "portion")
|
|
Portion get portion;
|
|
@override
|
|
@JsonKey(name: "quantity")
|
|
int get quantity;
|
|
|
|
/// Create a copy of DailySchedule
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$DailyScheduleImplCopyWith<_$DailyScheduleImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
Type _$TypeFromJson(Map<String, dynamic> json) {
|
|
return _Type.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$Type {
|
|
@JsonKey(name: "alko")
|
|
bool? get alko => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "veg")
|
|
bool? get veg => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "corb")
|
|
bool? get corb => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "meat")
|
|
bool? get meat => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this Type to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of Type
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$TypeCopyWith<Type> get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $TypeCopyWith<$Res> {
|
|
factory $TypeCopyWith(Type value, $Res Function(Type) then) =
|
|
_$TypeCopyWithImpl<$Res, Type>;
|
|
@useResult
|
|
$Res call(
|
|
{@JsonKey(name: "alko") bool? alko,
|
|
@JsonKey(name: "veg") bool? veg,
|
|
@JsonKey(name: "corb") bool? corb,
|
|
@JsonKey(name: "meat") bool? meat});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$TypeCopyWithImpl<$Res, $Val extends Type>
|
|
implements $TypeCopyWith<$Res> {
|
|
_$TypeCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of Type
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? alko = freezed,
|
|
Object? veg = freezed,
|
|
Object? corb = freezed,
|
|
Object? meat = freezed,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
alko: freezed == alko
|
|
? _value.alko
|
|
: alko // ignore: cast_nullable_to_non_nullable
|
|
as bool?,
|
|
veg: freezed == veg
|
|
? _value.veg
|
|
: veg // ignore: cast_nullable_to_non_nullable
|
|
as bool?,
|
|
corb: freezed == corb
|
|
? _value.corb
|
|
: corb // ignore: cast_nullable_to_non_nullable
|
|
as bool?,
|
|
meat: freezed == meat
|
|
? _value.meat
|
|
: meat // ignore: cast_nullable_to_non_nullable
|
|
as bool?,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$TypeImplCopyWith<$Res> implements $TypeCopyWith<$Res> {
|
|
factory _$$TypeImplCopyWith(
|
|
_$TypeImpl value, $Res Function(_$TypeImpl) then) =
|
|
__$$TypeImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{@JsonKey(name: "alko") bool? alko,
|
|
@JsonKey(name: "veg") bool? veg,
|
|
@JsonKey(name: "corb") bool? corb,
|
|
@JsonKey(name: "meat") bool? meat});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$TypeImplCopyWithImpl<$Res>
|
|
extends _$TypeCopyWithImpl<$Res, _$TypeImpl>
|
|
implements _$$TypeImplCopyWith<$Res> {
|
|
__$$TypeImplCopyWithImpl(_$TypeImpl _value, $Res Function(_$TypeImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of Type
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? alko = freezed,
|
|
Object? veg = freezed,
|
|
Object? corb = freezed,
|
|
Object? meat = freezed,
|
|
}) {
|
|
return _then(_$TypeImpl(
|
|
alko: freezed == alko
|
|
? _value.alko
|
|
: alko // ignore: cast_nullable_to_non_nullable
|
|
as bool?,
|
|
veg: freezed == veg
|
|
? _value.veg
|
|
: veg // ignore: cast_nullable_to_non_nullable
|
|
as bool?,
|
|
corb: freezed == corb
|
|
? _value.corb
|
|
: corb // ignore: cast_nullable_to_non_nullable
|
|
as bool?,
|
|
meat: freezed == meat
|
|
? _value.meat
|
|
: meat // ignore: cast_nullable_to_non_nullable
|
|
as bool?,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$TypeImpl implements _Type {
|
|
const _$TypeImpl(
|
|
{@JsonKey(name: "alko") this.alko,
|
|
@JsonKey(name: "veg") this.veg,
|
|
@JsonKey(name: "corb") this.corb,
|
|
@JsonKey(name: "meat") this.meat});
|
|
|
|
factory _$TypeImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$TypeImplFromJson(json);
|
|
|
|
@override
|
|
@JsonKey(name: "alko")
|
|
final bool? alko;
|
|
@override
|
|
@JsonKey(name: "veg")
|
|
final bool? veg;
|
|
@override
|
|
@JsonKey(name: "corb")
|
|
final bool? corb;
|
|
@override
|
|
@JsonKey(name: "meat")
|
|
final bool? meat;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'Type(alko: $alko, veg: $veg, corb: $corb, meat: $meat)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$TypeImpl &&
|
|
(identical(other.alko, alko) || other.alko == alko) &&
|
|
(identical(other.veg, veg) || other.veg == veg) &&
|
|
(identical(other.corb, corb) || other.corb == corb) &&
|
|
(identical(other.meat, meat) || other.meat == meat));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, alko, veg, corb, meat);
|
|
|
|
/// Create a copy of Type
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$TypeImplCopyWith<_$TypeImpl> get copyWith =>
|
|
__$$TypeImplCopyWithImpl<_$TypeImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$TypeImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _Type implements Type {
|
|
const factory _Type(
|
|
{@JsonKey(name: "alko") final bool? alko,
|
|
@JsonKey(name: "veg") final bool? veg,
|
|
@JsonKey(name: "corb") final bool? corb,
|
|
@JsonKey(name: "meat") final bool? meat}) = _$TypeImpl;
|
|
|
|
factory _Type.fromJson(Map<String, dynamic> json) = _$TypeImpl.fromJson;
|
|
|
|
@override
|
|
@JsonKey(name: "alko")
|
|
bool? get alko;
|
|
@override
|
|
@JsonKey(name: "veg")
|
|
bool? get veg;
|
|
@override
|
|
@JsonKey(name: "corb")
|
|
bool? get corb;
|
|
@override
|
|
@JsonKey(name: "meat")
|
|
bool? get meat;
|
|
|
|
/// Create a copy of Type
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$TypeImplCopyWith<_$TypeImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
Links _$LinksFromJson(Map<String, dynamic> json) {
|
|
return _Links.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$Links {
|
|
@JsonKey(name: "first")
|
|
String get first => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "last")
|
|
String get last => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "prev")
|
|
dynamic get prev => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "next")
|
|
dynamic get next => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this Links to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of Links
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$LinksCopyWith<Links> get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $LinksCopyWith<$Res> {
|
|
factory $LinksCopyWith(Links value, $Res Function(Links) then) =
|
|
_$LinksCopyWithImpl<$Res, Links>;
|
|
@useResult
|
|
$Res call(
|
|
{@JsonKey(name: "first") String first,
|
|
@JsonKey(name: "last") String last,
|
|
@JsonKey(name: "prev") dynamic prev,
|
|
@JsonKey(name: "next") dynamic next});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$LinksCopyWithImpl<$Res, $Val extends Links>
|
|
implements $LinksCopyWith<$Res> {
|
|
_$LinksCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of Links
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? first = null,
|
|
Object? last = null,
|
|
Object? prev = freezed,
|
|
Object? next = freezed,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
first: null == first
|
|
? _value.first
|
|
: first // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
last: null == last
|
|
? _value.last
|
|
: last // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
prev: freezed == prev
|
|
? _value.prev
|
|
: prev // ignore: cast_nullable_to_non_nullable
|
|
as dynamic,
|
|
next: freezed == next
|
|
? _value.next
|
|
: next // ignore: cast_nullable_to_non_nullable
|
|
as dynamic,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$LinksImplCopyWith<$Res> implements $LinksCopyWith<$Res> {
|
|
factory _$$LinksImplCopyWith(
|
|
_$LinksImpl value, $Res Function(_$LinksImpl) then) =
|
|
__$$LinksImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{@JsonKey(name: "first") String first,
|
|
@JsonKey(name: "last") String last,
|
|
@JsonKey(name: "prev") dynamic prev,
|
|
@JsonKey(name: "next") dynamic next});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$LinksImplCopyWithImpl<$Res>
|
|
extends _$LinksCopyWithImpl<$Res, _$LinksImpl>
|
|
implements _$$LinksImplCopyWith<$Res> {
|
|
__$$LinksImplCopyWithImpl(
|
|
_$LinksImpl _value, $Res Function(_$LinksImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of Links
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? first = null,
|
|
Object? last = null,
|
|
Object? prev = freezed,
|
|
Object? next = freezed,
|
|
}) {
|
|
return _then(_$LinksImpl(
|
|
first: null == first
|
|
? _value.first
|
|
: first // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
last: null == last
|
|
? _value.last
|
|
: last // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
prev: freezed == prev
|
|
? _value.prev
|
|
: prev // ignore: cast_nullable_to_non_nullable
|
|
as dynamic,
|
|
next: freezed == next
|
|
? _value.next
|
|
: next // ignore: cast_nullable_to_non_nullable
|
|
as dynamic,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$LinksImpl implements _Links {
|
|
const _$LinksImpl(
|
|
{@JsonKey(name: "first") required this.first,
|
|
@JsonKey(name: "last") required this.last,
|
|
@JsonKey(name: "prev") required this.prev,
|
|
@JsonKey(name: "next") required this.next});
|
|
|
|
factory _$LinksImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$LinksImplFromJson(json);
|
|
|
|
@override
|
|
@JsonKey(name: "first")
|
|
final String first;
|
|
@override
|
|
@JsonKey(name: "last")
|
|
final String last;
|
|
@override
|
|
@JsonKey(name: "prev")
|
|
final dynamic prev;
|
|
@override
|
|
@JsonKey(name: "next")
|
|
final dynamic next;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'Links(first: $first, last: $last, prev: $prev, next: $next)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$LinksImpl &&
|
|
(identical(other.first, first) || other.first == first) &&
|
|
(identical(other.last, last) || other.last == last) &&
|
|
const DeepCollectionEquality().equals(other.prev, prev) &&
|
|
const DeepCollectionEquality().equals(other.next, next));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
first,
|
|
last,
|
|
const DeepCollectionEquality().hash(prev),
|
|
const DeepCollectionEquality().hash(next));
|
|
|
|
/// Create a copy of Links
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$LinksImplCopyWith<_$LinksImpl> get copyWith =>
|
|
__$$LinksImplCopyWithImpl<_$LinksImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$LinksImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _Links implements Links {
|
|
const factory _Links(
|
|
{@JsonKey(name: "first") required final String first,
|
|
@JsonKey(name: "last") required final String last,
|
|
@JsonKey(name: "prev") required final dynamic prev,
|
|
@JsonKey(name: "next") required final dynamic next}) = _$LinksImpl;
|
|
|
|
factory _Links.fromJson(Map<String, dynamic> json) = _$LinksImpl.fromJson;
|
|
|
|
@override
|
|
@JsonKey(name: "first")
|
|
String get first;
|
|
@override
|
|
@JsonKey(name: "last")
|
|
String get last;
|
|
@override
|
|
@JsonKey(name: "prev")
|
|
dynamic get prev;
|
|
@override
|
|
@JsonKey(name: "next")
|
|
dynamic get next;
|
|
|
|
/// Create a copy of Links
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$LinksImplCopyWith<_$LinksImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
Meta _$MetaFromJson(Map<String, dynamic> json) {
|
|
return _Meta.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$Meta {
|
|
@JsonKey(name: "current_page")
|
|
int get currentPage => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "from")
|
|
int get from => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "last_page")
|
|
int get lastPage => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "links")
|
|
List<Link> get links => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "path")
|
|
String get path => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "per_page")
|
|
int get perPage => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "to")
|
|
int get to => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "total")
|
|
int get total => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this Meta to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of Meta
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$MetaCopyWith<Meta> get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $MetaCopyWith<$Res> {
|
|
factory $MetaCopyWith(Meta value, $Res Function(Meta) then) =
|
|
_$MetaCopyWithImpl<$Res, Meta>;
|
|
@useResult
|
|
$Res call(
|
|
{@JsonKey(name: "current_page") int currentPage,
|
|
@JsonKey(name: "from") int from,
|
|
@JsonKey(name: "last_page") int lastPage,
|
|
@JsonKey(name: "links") List<Link> links,
|
|
@JsonKey(name: "path") String path,
|
|
@JsonKey(name: "per_page") int perPage,
|
|
@JsonKey(name: "to") int to,
|
|
@JsonKey(name: "total") int total});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$MetaCopyWithImpl<$Res, $Val extends Meta>
|
|
implements $MetaCopyWith<$Res> {
|
|
_$MetaCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of Meta
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? currentPage = null,
|
|
Object? from = null,
|
|
Object? lastPage = null,
|
|
Object? links = null,
|
|
Object? path = null,
|
|
Object? perPage = null,
|
|
Object? to = null,
|
|
Object? total = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
currentPage: null == currentPage
|
|
? _value.currentPage
|
|
: currentPage // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
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,
|
|
links: null == links
|
|
? _value.links
|
|
: links // ignore: cast_nullable_to_non_nullable
|
|
as List<Link>,
|
|
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,
|
|
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 _$$MetaImplCopyWith<$Res> implements $MetaCopyWith<$Res> {
|
|
factory _$$MetaImplCopyWith(
|
|
_$MetaImpl value, $Res Function(_$MetaImpl) then) =
|
|
__$$MetaImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{@JsonKey(name: "current_page") int currentPage,
|
|
@JsonKey(name: "from") int from,
|
|
@JsonKey(name: "last_page") int lastPage,
|
|
@JsonKey(name: "links") List<Link> links,
|
|
@JsonKey(name: "path") String path,
|
|
@JsonKey(name: "per_page") int perPage,
|
|
@JsonKey(name: "to") int to,
|
|
@JsonKey(name: "total") int total});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$MetaImplCopyWithImpl<$Res>
|
|
extends _$MetaCopyWithImpl<$Res, _$MetaImpl>
|
|
implements _$$MetaImplCopyWith<$Res> {
|
|
__$$MetaImplCopyWithImpl(_$MetaImpl _value, $Res Function(_$MetaImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of Meta
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? currentPage = null,
|
|
Object? from = null,
|
|
Object? lastPage = null,
|
|
Object? links = null,
|
|
Object? path = null,
|
|
Object? perPage = null,
|
|
Object? to = null,
|
|
Object? total = null,
|
|
}) {
|
|
return _then(_$MetaImpl(
|
|
currentPage: null == currentPage
|
|
? _value.currentPage
|
|
: currentPage // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
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,
|
|
links: null == links
|
|
? _value._links
|
|
: links // ignore: cast_nullable_to_non_nullable
|
|
as List<Link>,
|
|
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,
|
|
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 _$MetaImpl implements _Meta {
|
|
const _$MetaImpl(
|
|
{@JsonKey(name: "current_page") required this.currentPage,
|
|
@JsonKey(name: "from") required this.from,
|
|
@JsonKey(name: "last_page") required this.lastPage,
|
|
@JsonKey(name: "links") required final List<Link> links,
|
|
@JsonKey(name: "path") required this.path,
|
|
@JsonKey(name: "per_page") required this.perPage,
|
|
@JsonKey(name: "to") required this.to,
|
|
@JsonKey(name: "total") required this.total})
|
|
: _links = links;
|
|
|
|
factory _$MetaImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$MetaImplFromJson(json);
|
|
|
|
@override
|
|
@JsonKey(name: "current_page")
|
|
final int currentPage;
|
|
@override
|
|
@JsonKey(name: "from")
|
|
final int from;
|
|
@override
|
|
@JsonKey(name: "last_page")
|
|
final int lastPage;
|
|
final List<Link> _links;
|
|
@override
|
|
@JsonKey(name: "links")
|
|
List<Link> get links {
|
|
if (_links is EqualUnmodifiableListView) return _links;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(_links);
|
|
}
|
|
|
|
@override
|
|
@JsonKey(name: "path")
|
|
final String path;
|
|
@override
|
|
@JsonKey(name: "per_page")
|
|
final int perPage;
|
|
@override
|
|
@JsonKey(name: "to")
|
|
final int to;
|
|
@override
|
|
@JsonKey(name: "total")
|
|
final int total;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'Meta(currentPage: $currentPage, from: $from, lastPage: $lastPage, links: $links, path: $path, perPage: $perPage, to: $to, total: $total)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$MetaImpl &&
|
|
(identical(other.currentPage, currentPage) ||
|
|
other.currentPage == currentPage) &&
|
|
(identical(other.from, from) || other.from == from) &&
|
|
(identical(other.lastPage, lastPage) ||
|
|
other.lastPage == lastPage) &&
|
|
const DeepCollectionEquality().equals(other._links, _links) &&
|
|
(identical(other.path, path) || other.path == path) &&
|
|
(identical(other.perPage, perPage) || other.perPage == perPage) &&
|
|
(identical(other.to, to) || other.to == to) &&
|
|
(identical(other.total, total) || other.total == total));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, currentPage, from, lastPage,
|
|
const DeepCollectionEquality().hash(_links), path, perPage, to, total);
|
|
|
|
/// Create a copy of Meta
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$MetaImplCopyWith<_$MetaImpl> get copyWith =>
|
|
__$$MetaImplCopyWithImpl<_$MetaImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$MetaImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _Meta implements Meta {
|
|
const factory _Meta(
|
|
{@JsonKey(name: "current_page") required final int currentPage,
|
|
@JsonKey(name: "from") required final int from,
|
|
@JsonKey(name: "last_page") required final int lastPage,
|
|
@JsonKey(name: "links") required final List<Link> links,
|
|
@JsonKey(name: "path") required final String path,
|
|
@JsonKey(name: "per_page") required final int perPage,
|
|
@JsonKey(name: "to") required final int to,
|
|
@JsonKey(name: "total") required final int total}) = _$MetaImpl;
|
|
|
|
factory _Meta.fromJson(Map<String, dynamic> json) = _$MetaImpl.fromJson;
|
|
|
|
@override
|
|
@JsonKey(name: "current_page")
|
|
int get currentPage;
|
|
@override
|
|
@JsonKey(name: "from")
|
|
int get from;
|
|
@override
|
|
@JsonKey(name: "last_page")
|
|
int get lastPage;
|
|
@override
|
|
@JsonKey(name: "links")
|
|
List<Link> get links;
|
|
@override
|
|
@JsonKey(name: "path")
|
|
String get path;
|
|
@override
|
|
@JsonKey(name: "per_page")
|
|
int get perPage;
|
|
@override
|
|
@JsonKey(name: "to")
|
|
int get to;
|
|
@override
|
|
@JsonKey(name: "total")
|
|
int get total;
|
|
|
|
/// Create a copy of Meta
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$MetaImplCopyWith<_$MetaImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
Link _$LinkFromJson(Map<String, dynamic> json) {
|
|
return _Link.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$Link {
|
|
@JsonKey(name: "url")
|
|
String? get url => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "label")
|
|
String get label => throw _privateConstructorUsedError;
|
|
@JsonKey(name: "active")
|
|
bool get active => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this Link to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of Link
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$LinkCopyWith<Link> get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $LinkCopyWith<$Res> {
|
|
factory $LinkCopyWith(Link value, $Res Function(Link) then) =
|
|
_$LinkCopyWithImpl<$Res, Link>;
|
|
@useResult
|
|
$Res call(
|
|
{@JsonKey(name: "url") String? url,
|
|
@JsonKey(name: "label") String label,
|
|
@JsonKey(name: "active") bool active});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$LinkCopyWithImpl<$Res, $Val extends Link>
|
|
implements $LinkCopyWith<$Res> {
|
|
_$LinkCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of Link
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? url = freezed,
|
|
Object? label = null,
|
|
Object? active = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
url: freezed == url
|
|
? _value.url
|
|
: url // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
label: null == label
|
|
? _value.label
|
|
: label // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
active: null == active
|
|
? _value.active
|
|
: active // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$LinkImplCopyWith<$Res> implements $LinkCopyWith<$Res> {
|
|
factory _$$LinkImplCopyWith(
|
|
_$LinkImpl value, $Res Function(_$LinkImpl) then) =
|
|
__$$LinkImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{@JsonKey(name: "url") String? url,
|
|
@JsonKey(name: "label") String label,
|
|
@JsonKey(name: "active") bool active});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$LinkImplCopyWithImpl<$Res>
|
|
extends _$LinkCopyWithImpl<$Res, _$LinkImpl>
|
|
implements _$$LinkImplCopyWith<$Res> {
|
|
__$$LinkImplCopyWithImpl(_$LinkImpl _value, $Res Function(_$LinkImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of Link
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? url = freezed,
|
|
Object? label = null,
|
|
Object? active = null,
|
|
}) {
|
|
return _then(_$LinkImpl(
|
|
url: freezed == url
|
|
? _value.url
|
|
: url // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
label: null == label
|
|
? _value.label
|
|
: label // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
active: null == active
|
|
? _value.active
|
|
: active // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$LinkImpl implements _Link {
|
|
const _$LinkImpl(
|
|
{@JsonKey(name: "url") required this.url,
|
|
@JsonKey(name: "label") required this.label,
|
|
@JsonKey(name: "active") required this.active});
|
|
|
|
factory _$LinkImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$LinkImplFromJson(json);
|
|
|
|
@override
|
|
@JsonKey(name: "url")
|
|
final String? url;
|
|
@override
|
|
@JsonKey(name: "label")
|
|
final String label;
|
|
@override
|
|
@JsonKey(name: "active")
|
|
final bool active;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'Link(url: $url, label: $label, active: $active)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$LinkImpl &&
|
|
(identical(other.url, url) || other.url == url) &&
|
|
(identical(other.label, label) || other.label == label) &&
|
|
(identical(other.active, active) || other.active == active));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, url, label, active);
|
|
|
|
/// Create a copy of Link
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$LinkImplCopyWith<_$LinkImpl> get copyWith =>
|
|
__$$LinkImplCopyWithImpl<_$LinkImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$LinkImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _Link implements Link {
|
|
const factory _Link(
|
|
{@JsonKey(name: "url") required final String? url,
|
|
@JsonKey(name: "label") required final String label,
|
|
@JsonKey(name: "active") required final bool active}) = _$LinkImpl;
|
|
|
|
factory _Link.fromJson(Map<String, dynamic> json) = _$LinkImpl.fromJson;
|
|
|
|
@override
|
|
@JsonKey(name: "url")
|
|
String? get url;
|
|
@override
|
|
@JsonKey(name: "label")
|
|
String get label;
|
|
@override
|
|
@JsonKey(name: "active")
|
|
bool get active;
|
|
|
|
/// Create a copy of Link
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$LinkImplCopyWith<_$LinkImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|