Files
eatvio_app/lib/features/feed/models/diets_pagination_model.freezed.dart
2024-09-11 16:39:15 +03:00

1344 lines
43 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<Diet> 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<Diet> 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<Diet>,
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<Diet> 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<Diet>,
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<Diet> 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<Diet> _data;
@override
@JsonKey(name: "data")
List<Diet> 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<Diet> 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<Diet> 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;
}
Diet _$DietFromJson(Map<String, dynamic> json) {
return _Diet.fromJson(json);
}
/// @nodoc
mixin _$Diet {
@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")
DietType 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 Diet to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
/// Create a copy of Diet
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$DietCopyWith<Diet> get copyWith => throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $DietCopyWith<$Res> {
factory $DietCopyWith(Diet value, $Res Function(Diet) then) = _$DietCopyWithImpl<$Res, Diet>;
@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") DietType 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});
$DietTypeCopyWith<$Res> get type;
$AuthorCopyWith<$Res> get author;
}
/// @nodoc
class _$DietCopyWithImpl<$Res, $Val extends Diet> implements $DietCopyWith<$Res> {
_$DietCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of Diet
/// 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 DietType,
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 Diet
/// with the given fields replaced by the non-null parameter values.
@override
@pragma('vm:prefer-inline')
$DietTypeCopyWith<$Res> get type {
return $DietTypeCopyWith<$Res>(_value.type, (value) {
return _then(_value.copyWith(type: value) as $Val);
});
}
/// Create a copy of Diet
/// 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 _$$DietImplCopyWith<$Res> implements $DietCopyWith<$Res> {
factory _$$DietImplCopyWith(_$DietImpl value, $Res Function(_$DietImpl) then) = __$$DietImplCopyWithImpl<$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") DietType 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
$DietTypeCopyWith<$Res> get type;
@override
$AuthorCopyWith<$Res> get author;
}
/// @nodoc
class __$$DietImplCopyWithImpl<$Res> extends _$DietCopyWithImpl<$Res, _$DietImpl> implements _$$DietImplCopyWith<$Res> {
__$$DietImplCopyWithImpl(_$DietImpl _value, $Res Function(_$DietImpl) _then) : super(_value, _then);
/// Create a copy of Diet
/// 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(_$DietImpl(
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 DietType,
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 _$DietImpl implements _Diet {
const _$DietImpl(
{@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 _$DietImpl.fromJson(Map<String, dynamic> json) => _$$DietImplFromJson(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 DietType 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 'Diet(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 _$DietImpl &&
(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 Diet
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$DietImplCopyWith<_$DietImpl> get copyWith => __$$DietImplCopyWithImpl<_$DietImpl>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$DietImplToJson(
this,
);
}
}
abstract class _Diet implements Diet {
const factory _Diet(
{@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 DietType 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}) = _$DietImpl;
factory _Diet.fromJson(Map<String, dynamic> json) = _$DietImpl.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")
DietType 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 Diet
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$DietImplCopyWith<_$DietImpl> 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;
}
DietType _$DietTypeFromJson(Map<String, dynamic> json) {
return _DietType.fromJson(json);
}
/// @nodoc
mixin _$DietType {
@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 DietType to a JSON map.
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
/// Create a copy of DietType
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$DietTypeCopyWith<DietType> get copyWith => throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $DietTypeCopyWith<$Res> {
factory $DietTypeCopyWith(DietType value, $Res Function(DietType) then) = _$DietTypeCopyWithImpl<$Res, DietType>;
@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 _$DietTypeCopyWithImpl<$Res, $Val extends DietType> implements $DietTypeCopyWith<$Res> {
_$DietTypeCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
/// Create a copy of DietType
/// 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 _$$DietTypeImplCopyWith<$Res> implements $DietTypeCopyWith<$Res> {
factory _$$DietTypeImplCopyWith(_$DietTypeImpl value, $Res Function(_$DietTypeImpl) then) = __$$DietTypeImplCopyWithImpl<$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 __$$DietTypeImplCopyWithImpl<$Res> extends _$DietTypeCopyWithImpl<$Res, _$DietTypeImpl> implements _$$DietTypeImplCopyWith<$Res> {
__$$DietTypeImplCopyWithImpl(_$DietTypeImpl _value, $Res Function(_$DietTypeImpl) _then) : super(_value, _then);
/// Create a copy of DietType
/// 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(_$DietTypeImpl(
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 _$DietTypeImpl implements _DietType {
const _$DietTypeImpl({@JsonKey(name: "alko") this.alko, @JsonKey(name: "veg") this.veg, @JsonKey(name: "corb") this.corb, @JsonKey(name: "meat") this.meat});
factory _$DietTypeImpl.fromJson(Map<String, dynamic> json) => _$$DietTypeImplFromJson(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 'DietType(alko: $alko, veg: $veg, corb: $corb, meat: $meat)';
}
@override
bool operator ==(Object other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$DietTypeImpl &&
(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 DietType
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$DietTypeImplCopyWith<_$DietTypeImpl> get copyWith => __$$DietTypeImplCopyWithImpl<_$DietTypeImpl>(this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$DietTypeImplToJson(
this,
);
}
}
abstract class _DietType implements DietType {
const factory _DietType(
{@JsonKey(name: "alko") final bool? alko,
@JsonKey(name: "veg") final bool? veg,
@JsonKey(name: "corb") final bool? corb,
@JsonKey(name: "meat") final bool? meat}) = _$DietTypeImpl;
factory _DietType.fromJson(Map<String, dynamic> json) = _$DietTypeImpl.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 DietType
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$DietTypeImplCopyWith<_$DietTypeImpl> get copyWith => throw _privateConstructorUsedError;
}