forked from eatvio/eatvio_app
diet creation scrren is done
This commit is contained in:
@@ -798,6 +798,159 @@ abstract class _Diet implements Diet {
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
CreatedDiet _$CreatedDietFromJson(Map<String, dynamic> json) {
|
||||
return _CreatedDiet.fromJson(json);
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
mixin _$CreatedDiet {
|
||||
@JsonKey(name: "id")
|
||||
int get id => throw _privateConstructorUsedError;
|
||||
|
||||
/// Serializes this CreatedDiet to a JSON map.
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
|
||||
/// Create a copy of CreatedDiet
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$CreatedDietCopyWith<CreatedDiet> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class $CreatedDietCopyWith<$Res> {
|
||||
factory $CreatedDietCopyWith(
|
||||
CreatedDiet value, $Res Function(CreatedDiet) then) =
|
||||
_$CreatedDietCopyWithImpl<$Res, CreatedDiet>;
|
||||
@useResult
|
||||
$Res call({@JsonKey(name: "id") int id});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$CreatedDietCopyWithImpl<$Res, $Val extends CreatedDiet>
|
||||
implements $CreatedDietCopyWith<$Res> {
|
||||
_$CreatedDietCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of CreatedDiet
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? id = null,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
id: null == id
|
||||
? _value.id
|
||||
: id // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
) as $Val);
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$CreatedDietImplCopyWith<$Res>
|
||||
implements $CreatedDietCopyWith<$Res> {
|
||||
factory _$$CreatedDietImplCopyWith(
|
||||
_$CreatedDietImpl value, $Res Function(_$CreatedDietImpl) then) =
|
||||
__$$CreatedDietImplCopyWithImpl<$Res>;
|
||||
@override
|
||||
@useResult
|
||||
$Res call({@JsonKey(name: "id") int id});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$CreatedDietImplCopyWithImpl<$Res>
|
||||
extends _$CreatedDietCopyWithImpl<$Res, _$CreatedDietImpl>
|
||||
implements _$$CreatedDietImplCopyWith<$Res> {
|
||||
__$$CreatedDietImplCopyWithImpl(
|
||||
_$CreatedDietImpl _value, $Res Function(_$CreatedDietImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
/// Create a copy of CreatedDiet
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
Object? id = null,
|
||||
}) {
|
||||
return _then(_$CreatedDietImpl(
|
||||
id: null == id
|
||||
? _value.id
|
||||
: id // ignore: cast_nullable_to_non_nullable
|
||||
as int,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@JsonSerializable()
|
||||
class _$CreatedDietImpl implements _CreatedDiet {
|
||||
const _$CreatedDietImpl({@JsonKey(name: "id") required this.id});
|
||||
|
||||
factory _$CreatedDietImpl.fromJson(Map<String, dynamic> json) =>
|
||||
_$$CreatedDietImplFromJson(json);
|
||||
|
||||
@override
|
||||
@JsonKey(name: "id")
|
||||
final int id;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'CreatedDiet(id: $id)';
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$CreatedDietImpl &&
|
||||
(identical(other.id, id) || other.id == id));
|
||||
}
|
||||
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, id);
|
||||
|
||||
/// Create a copy of CreatedDiet
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$CreatedDietImplCopyWith<_$CreatedDietImpl> get copyWith =>
|
||||
__$$CreatedDietImplCopyWithImpl<_$CreatedDietImpl>(this, _$identity);
|
||||
|
||||
@override
|
||||
Map<String, dynamic> toJson() {
|
||||
return _$$CreatedDietImplToJson(
|
||||
this,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _CreatedDiet implements CreatedDiet {
|
||||
const factory _CreatedDiet({@JsonKey(name: "id") required final int id}) =
|
||||
_$CreatedDietImpl;
|
||||
|
||||
factory _CreatedDiet.fromJson(Map<String, dynamic> json) =
|
||||
_$CreatedDietImpl.fromJson;
|
||||
|
||||
@override
|
||||
@JsonKey(name: "id")
|
||||
int get id;
|
||||
|
||||
/// Create a copy of CreatedDiet
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$CreatedDietImplCopyWith<_$CreatedDietImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
Author _$AuthorFromJson(Map<String, dynamic> json) {
|
||||
return _Author.fromJson(json);
|
||||
}
|
||||
@@ -813,7 +966,9 @@ mixin _$Author {
|
||||
@JsonKey(name: "author_is_me")
|
||||
bool get authorIsMe => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: "is_entity_subscribed_by_me")
|
||||
bool get isEntitySubscribedByMe => throw _privateConstructorUsedError;
|
||||
bool? get isEntitySubscribedByMe => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: "author_place_in_rating")
|
||||
int? get authorPlaceInRating => throw _privateConstructorUsedError;
|
||||
|
||||
/// Serializes this Author to a JSON map.
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
@@ -834,8 +989,8 @@ abstract class $AuthorCopyWith<$Res> {
|
||||
@JsonKey(name: "author_name") String authorName,
|
||||
@JsonKey(name: "author_profile_icon") String authorProfileIcon,
|
||||
@JsonKey(name: "author_is_me") bool authorIsMe,
|
||||
@JsonKey(name: "is_entity_subscribed_by_me")
|
||||
bool isEntitySubscribedByMe});
|
||||
@JsonKey(name: "is_entity_subscribed_by_me") bool? isEntitySubscribedByMe,
|
||||
@JsonKey(name: "author_place_in_rating") int? authorPlaceInRating});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -857,7 +1012,8 @@ class _$AuthorCopyWithImpl<$Res, $Val extends Author>
|
||||
Object? authorName = null,
|
||||
Object? authorProfileIcon = null,
|
||||
Object? authorIsMe = null,
|
||||
Object? isEntitySubscribedByMe = null,
|
||||
Object? isEntitySubscribedByMe = freezed,
|
||||
Object? authorPlaceInRating = freezed,
|
||||
}) {
|
||||
return _then(_value.copyWith(
|
||||
authorSlug: null == authorSlug
|
||||
@@ -876,10 +1032,14 @@ class _$AuthorCopyWithImpl<$Res, $Val extends Author>
|
||||
? _value.authorIsMe
|
||||
: authorIsMe // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
isEntitySubscribedByMe: null == isEntitySubscribedByMe
|
||||
isEntitySubscribedByMe: freezed == isEntitySubscribedByMe
|
||||
? _value.isEntitySubscribedByMe
|
||||
: isEntitySubscribedByMe // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
as bool?,
|
||||
authorPlaceInRating: freezed == authorPlaceInRating
|
||||
? _value.authorPlaceInRating
|
||||
: authorPlaceInRating // ignore: cast_nullable_to_non_nullable
|
||||
as int?,
|
||||
) as $Val);
|
||||
}
|
||||
}
|
||||
@@ -896,8 +1056,8 @@ abstract class _$$AuthorImplCopyWith<$Res> implements $AuthorCopyWith<$Res> {
|
||||
@JsonKey(name: "author_name") String authorName,
|
||||
@JsonKey(name: "author_profile_icon") String authorProfileIcon,
|
||||
@JsonKey(name: "author_is_me") bool authorIsMe,
|
||||
@JsonKey(name: "is_entity_subscribed_by_me")
|
||||
bool isEntitySubscribedByMe});
|
||||
@JsonKey(name: "is_entity_subscribed_by_me") bool? isEntitySubscribedByMe,
|
||||
@JsonKey(name: "author_place_in_rating") int? authorPlaceInRating});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -917,7 +1077,8 @@ class __$$AuthorImplCopyWithImpl<$Res>
|
||||
Object? authorName = null,
|
||||
Object? authorProfileIcon = null,
|
||||
Object? authorIsMe = null,
|
||||
Object? isEntitySubscribedByMe = null,
|
||||
Object? isEntitySubscribedByMe = freezed,
|
||||
Object? authorPlaceInRating = freezed,
|
||||
}) {
|
||||
return _then(_$AuthorImpl(
|
||||
authorSlug: null == authorSlug
|
||||
@@ -936,10 +1097,14 @@ class __$$AuthorImplCopyWithImpl<$Res>
|
||||
? _value.authorIsMe
|
||||
: authorIsMe // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
isEntitySubscribedByMe: null == isEntitySubscribedByMe
|
||||
isEntitySubscribedByMe: freezed == isEntitySubscribedByMe
|
||||
? _value.isEntitySubscribedByMe
|
||||
: isEntitySubscribedByMe // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
as bool?,
|
||||
authorPlaceInRating: freezed == authorPlaceInRating
|
||||
? _value.authorPlaceInRating
|
||||
: authorPlaceInRating // ignore: cast_nullable_to_non_nullable
|
||||
as int?,
|
||||
));
|
||||
}
|
||||
}
|
||||
@@ -952,8 +1117,8 @@ class _$AuthorImpl implements _Author {
|
||||
@JsonKey(name: "author_name") required this.authorName,
|
||||
@JsonKey(name: "author_profile_icon") required this.authorProfileIcon,
|
||||
@JsonKey(name: "author_is_me") required this.authorIsMe,
|
||||
@JsonKey(name: "is_entity_subscribed_by_me")
|
||||
required this.isEntitySubscribedByMe});
|
||||
@JsonKey(name: "is_entity_subscribed_by_me") this.isEntitySubscribedByMe,
|
||||
@JsonKey(name: "author_place_in_rating") this.authorPlaceInRating});
|
||||
|
||||
factory _$AuthorImpl.fromJson(Map<String, dynamic> json) =>
|
||||
_$$AuthorImplFromJson(json);
|
||||
@@ -972,11 +1137,14 @@ class _$AuthorImpl implements _Author {
|
||||
final bool authorIsMe;
|
||||
@override
|
||||
@JsonKey(name: "is_entity_subscribed_by_me")
|
||||
final bool isEntitySubscribedByMe;
|
||||
final bool? isEntitySubscribedByMe;
|
||||
@override
|
||||
@JsonKey(name: "author_place_in_rating")
|
||||
final int? authorPlaceInRating;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'Author(authorSlug: $authorSlug, authorName: $authorName, authorProfileIcon: $authorProfileIcon, authorIsMe: $authorIsMe, isEntitySubscribedByMe: $isEntitySubscribedByMe)';
|
||||
return 'Author(authorSlug: $authorSlug, authorName: $authorName, authorProfileIcon: $authorProfileIcon, authorIsMe: $authorIsMe, isEntitySubscribedByMe: $isEntitySubscribedByMe, authorPlaceInRating: $authorPlaceInRating)';
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -993,13 +1161,21 @@ class _$AuthorImpl implements _Author {
|
||||
(identical(other.authorIsMe, authorIsMe) ||
|
||||
other.authorIsMe == authorIsMe) &&
|
||||
(identical(other.isEntitySubscribedByMe, isEntitySubscribedByMe) ||
|
||||
other.isEntitySubscribedByMe == isEntitySubscribedByMe));
|
||||
other.isEntitySubscribedByMe == isEntitySubscribedByMe) &&
|
||||
(identical(other.authorPlaceInRating, authorPlaceInRating) ||
|
||||
other.authorPlaceInRating == authorPlaceInRating));
|
||||
}
|
||||
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, authorSlug, authorName,
|
||||
authorProfileIcon, authorIsMe, isEntitySubscribedByMe);
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType,
|
||||
authorSlug,
|
||||
authorName,
|
||||
authorProfileIcon,
|
||||
authorIsMe,
|
||||
isEntitySubscribedByMe,
|
||||
authorPlaceInRating);
|
||||
|
||||
/// Create a copy of Author
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@@ -1025,7 +1201,9 @@ abstract class _Author implements Author {
|
||||
required final String authorProfileIcon,
|
||||
@JsonKey(name: "author_is_me") required final bool authorIsMe,
|
||||
@JsonKey(name: "is_entity_subscribed_by_me")
|
||||
required final bool isEntitySubscribedByMe}) = _$AuthorImpl;
|
||||
final bool? isEntitySubscribedByMe,
|
||||
@JsonKey(name: "author_place_in_rating")
|
||||
final int? authorPlaceInRating}) = _$AuthorImpl;
|
||||
|
||||
factory _Author.fromJson(Map<String, dynamic> json) = _$AuthorImpl.fromJson;
|
||||
|
||||
@@ -1043,7 +1221,10 @@ abstract class _Author implements Author {
|
||||
bool get authorIsMe;
|
||||
@override
|
||||
@JsonKey(name: "is_entity_subscribed_by_me")
|
||||
bool get isEntitySubscribedByMe;
|
||||
bool? get isEntitySubscribedByMe;
|
||||
@override
|
||||
@JsonKey(name: "author_place_in_rating")
|
||||
int? get authorPlaceInRating;
|
||||
|
||||
/// Create a copy of Author
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@@ -1071,6 +1252,7 @@ mixin _$DailySchedule {
|
||||
DailyNutrition? get dailyNutrition => throw _privateConstructorUsedError;
|
||||
@JsonKey(
|
||||
name: 'product_nutritional_value_id',
|
||||
includeToJson: true,
|
||||
includeFromJson: false,
|
||||
includeIfNull: false)
|
||||
String? get productNutritionalValueId => throw _privateConstructorUsedError;
|
||||
@@ -1100,6 +1282,7 @@ abstract class $DailyScheduleCopyWith<$Res> {
|
||||
DailyNutrition? dailyNutrition,
|
||||
@JsonKey(
|
||||
name: 'product_nutritional_value_id',
|
||||
includeToJson: true,
|
||||
includeFromJson: false,
|
||||
includeIfNull: false)
|
||||
String? productNutritionalValueId});
|
||||
@@ -1189,6 +1372,7 @@ abstract class _$$DailyScheduleImplCopyWith<$Res>
|
||||
DailyNutrition? dailyNutrition,
|
||||
@JsonKey(
|
||||
name: 'product_nutritional_value_id',
|
||||
includeToJson: true,
|
||||
includeFromJson: false,
|
||||
includeIfNull: false)
|
||||
String? productNutritionalValueId});
|
||||
@@ -1258,6 +1442,7 @@ class _$DailyScheduleImpl implements _DailySchedule {
|
||||
this.dailyNutrition,
|
||||
@JsonKey(
|
||||
name: 'product_nutritional_value_id',
|
||||
includeToJson: true,
|
||||
includeFromJson: false,
|
||||
includeIfNull: false)
|
||||
this.productNutritionalValueId});
|
||||
@@ -1283,6 +1468,7 @@ class _$DailyScheduleImpl implements _DailySchedule {
|
||||
@override
|
||||
@JsonKey(
|
||||
name: 'product_nutritional_value_id',
|
||||
includeToJson: true,
|
||||
includeFromJson: false,
|
||||
includeIfNull: false)
|
||||
final String? productNutritionalValueId;
|
||||
@@ -1340,6 +1526,7 @@ abstract class _DailySchedule implements DailySchedule {
|
||||
final DailyNutrition? dailyNutrition,
|
||||
@JsonKey(
|
||||
name: 'product_nutritional_value_id',
|
||||
includeToJson: true,
|
||||
includeFromJson: false,
|
||||
includeIfNull: false)
|
||||
final String? productNutritionalValueId}) = _$DailyScheduleImpl;
|
||||
@@ -1365,6 +1552,7 @@ abstract class _DailySchedule implements DailySchedule {
|
||||
@override
|
||||
@JsonKey(
|
||||
name: 'product_nutritional_value_id',
|
||||
includeToJson: true,
|
||||
includeFromJson: false,
|
||||
includeIfNull: false)
|
||||
String? get productNutritionalValueId;
|
||||
@@ -1511,12 +1699,13 @@ class __$$DietTypeImplCopyWithImpl<$Res>
|
||||
|
||||
/// @nodoc
|
||||
@JsonSerializable()
|
||||
class _$DietTypeImpl implements _DietType {
|
||||
class _$DietTypeImpl extends _DietType {
|
||||
const _$DietTypeImpl(
|
||||
{@JsonKey(name: "light") this.light,
|
||||
@JsonKey(name: "veg") this.veg,
|
||||
@JsonKey(name: "carb") this.carb,
|
||||
@JsonKey(name: "meat") this.meat});
|
||||
@JsonKey(name: "meat") this.meat})
|
||||
: super._();
|
||||
|
||||
factory _$DietTypeImpl.fromJson(Map<String, dynamic> json) =>
|
||||
_$$DietTypeImplFromJson(json);
|
||||
@@ -1570,12 +1759,13 @@ class _$DietTypeImpl implements _DietType {
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _DietType implements DietType {
|
||||
abstract class _DietType extends DietType {
|
||||
const factory _DietType(
|
||||
{@JsonKey(name: "light") final bool? light,
|
||||
@JsonKey(name: "veg") final bool? veg,
|
||||
@JsonKey(name: "carb") final bool? carb,
|
||||
@JsonKey(name: "meat") final bool? meat}) = _$DietTypeImpl;
|
||||
const _DietType._() : super._();
|
||||
|
||||
factory _DietType.fromJson(Map<String, dynamic> json) =
|
||||
_$DietTypeImpl.fromJson;
|
||||
|
||||
Reference in New Issue
Block a user