feat(profile): add profile charts models, requests. Max length of description in posts, recipes, diets = 200

This commit is contained in:
mso7nueh
2024-09-13 14:22:57 +03:00
parent a826cba866
commit c800d35663
111 changed files with 5760 additions and 3215 deletions

View File

@@ -22,10 +22,8 @@ PlanPaginationModel _$PlanPaginationModelFromJson(Map<String, dynamic> json) {
mixin _$PlanPaginationModel {
@JsonKey(name: "data")
List<PlanModel> get data => throw _privateConstructorUsedError;
@JsonKey(name: "links")
Links get links => throw _privateConstructorUsedError;
@JsonKey(name: "meta")
Meta get meta => throw _privateConstructorUsedError;
@@ -35,29 +33,32 @@ mixin _$PlanPaginationModel {
/// Create a copy of PlanPaginationModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$PlanPaginationModelCopyWith<PlanPaginationModel> get copyWith => throw _privateConstructorUsedError;
$PlanPaginationModelCopyWith<PlanPaginationModel> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $PlanPaginationModelCopyWith<$Res> {
factory $PlanPaginationModelCopyWith(PlanPaginationModel value, $Res Function(PlanPaginationModel) then) =
factory $PlanPaginationModelCopyWith(
PlanPaginationModel value, $Res Function(PlanPaginationModel) then) =
_$PlanPaginationModelCopyWithImpl<$Res, PlanPaginationModel>;
@useResult
$Res call({@JsonKey(name: "data") List<PlanModel> data, @JsonKey(name: "links") Links links, @JsonKey(name: "meta") Meta meta});
$Res call(
{@JsonKey(name: "data") List<PlanModel> data,
@JsonKey(name: "links") Links links,
@JsonKey(name: "meta") Meta meta});
$LinksCopyWith<$Res> get links;
$MetaCopyWith<$Res> get meta;
}
/// @nodoc
class _$PlanPaginationModelCopyWithImpl<$Res, $Val extends PlanPaginationModel> implements $PlanPaginationModelCopyWith<$Res> {
class _$PlanPaginationModelCopyWithImpl<$Res, $Val extends PlanPaginationModel>
implements $PlanPaginationModelCopyWith<$Res> {
_$PlanPaginationModelCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
@@ -108,25 +109,31 @@ class _$PlanPaginationModelCopyWithImpl<$Res, $Val extends PlanPaginationModel>
}
/// @nodoc
abstract class _$$PlanPaginationModelImplCopyWith<$Res> implements $PlanPaginationModelCopyWith<$Res> {
factory _$$PlanPaginationModelImplCopyWith(_$PlanPaginationModelImpl value, $Res Function(_$PlanPaginationModelImpl) then) =
abstract class _$$PlanPaginationModelImplCopyWith<$Res>
implements $PlanPaginationModelCopyWith<$Res> {
factory _$$PlanPaginationModelImplCopyWith(_$PlanPaginationModelImpl value,
$Res Function(_$PlanPaginationModelImpl) then) =
__$$PlanPaginationModelImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({@JsonKey(name: "data") List<PlanModel> data, @JsonKey(name: "links") Links links, @JsonKey(name: "meta") Meta meta});
$Res call(
{@JsonKey(name: "data") List<PlanModel> data,
@JsonKey(name: "links") Links links,
@JsonKey(name: "meta") Meta meta});
@override
$LinksCopyWith<$Res> get links;
@override
$MetaCopyWith<$Res> get meta;
}
/// @nodoc
class __$$PlanPaginationModelImplCopyWithImpl<$Res> extends _$PlanPaginationModelCopyWithImpl<$Res, _$PlanPaginationModelImpl>
class __$$PlanPaginationModelImplCopyWithImpl<$Res>
extends _$PlanPaginationModelCopyWithImpl<$Res, _$PlanPaginationModelImpl>
implements _$$PlanPaginationModelImplCopyWith<$Res> {
__$$PlanPaginationModelImplCopyWithImpl(_$PlanPaginationModelImpl _value, $Res Function(_$PlanPaginationModelImpl) _then) : super(_value, _then);
__$$PlanPaginationModelImplCopyWithImpl(_$PlanPaginationModelImpl _value,
$Res Function(_$PlanPaginationModelImpl) _then)
: super(_value, _then);
/// Create a copy of PlanPaginationModel
/// with the given fields replaced by the non-null parameter values.
@@ -158,13 +165,15 @@ class __$$PlanPaginationModelImplCopyWithImpl<$Res> extends _$PlanPaginationMode
@JsonSerializable()
class _$PlanPaginationModelImpl implements _PlanPaginationModel {
const _$PlanPaginationModelImpl(
{@JsonKey(name: "data") required final List<PlanModel> data, @JsonKey(name: "links") required this.links, @JsonKey(name: "meta") required this.meta})
{@JsonKey(name: "data") required final List<PlanModel> data,
@JsonKey(name: "links") required this.links,
@JsonKey(name: "meta") required this.meta})
: _data = data;
factory _$PlanPaginationModelImpl.fromJson(Map<String, dynamic> json) => _$$PlanPaginationModelImplFromJson(json);
factory _$PlanPaginationModelImpl.fromJson(Map<String, dynamic> json) =>
_$$PlanPaginationModelImplFromJson(json);
final List<PlanModel> _data;
@override
@JsonKey(name: "data")
List<PlanModel> get data {
@@ -197,7 +206,8 @@ class _$PlanPaginationModelImpl implements _PlanPaginationModel {
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType, const DeepCollectionEquality().hash(_data), links, meta);
int get hashCode => Object.hash(
runtimeType, const DeepCollectionEquality().hash(_data), links, meta);
/// Create a copy of PlanPaginationModel
/// with the given fields replaced by the non-null parameter values.
@@ -205,7 +215,8 @@ class _$PlanPaginationModelImpl implements _PlanPaginationModel {
@override
@pragma('vm:prefer-inline')
_$$PlanPaginationModelImplCopyWith<_$PlanPaginationModelImpl> get copyWith =>
__$$PlanPaginationModelImplCopyWithImpl<_$PlanPaginationModelImpl>(this, _$identity);
__$$PlanPaginationModelImplCopyWithImpl<_$PlanPaginationModelImpl>(
this, _$identity);
@override
Map<String, dynamic> toJson() {
@@ -217,20 +228,20 @@ class _$PlanPaginationModelImpl implements _PlanPaginationModel {
abstract class _PlanPaginationModel implements PlanPaginationModel {
const factory _PlanPaginationModel(
{@JsonKey(name: "data") required final List<PlanModel> data,
@JsonKey(name: "links") required final Links links,
@JsonKey(name: "meta") required final Meta meta}) = _$PlanPaginationModelImpl;
{@JsonKey(name: "data") required final List<PlanModel> data,
@JsonKey(name: "links") required final Links links,
@JsonKey(name: "meta") required final Meta meta}) =
_$PlanPaginationModelImpl;
factory _PlanPaginationModel.fromJson(Map<String, dynamic> json) = _$PlanPaginationModelImpl.fromJson;
factory _PlanPaginationModel.fromJson(Map<String, dynamic> json) =
_$PlanPaginationModelImpl.fromJson;
@override
@JsonKey(name: "data")
List<PlanModel> get data;
@override
@JsonKey(name: "links")
Links get links;
@override
@JsonKey(name: "meta")
Meta get meta;
@@ -239,7 +250,8 @@ abstract class _PlanPaginationModel implements PlanPaginationModel {
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$PlanPaginationModelImplCopyWith<_$PlanPaginationModelImpl> get copyWith => throw _privateConstructorUsedError;
_$$PlanPaginationModelImplCopyWith<_$PlanPaginationModelImpl> get copyWith =>
throw _privateConstructorUsedError;
}
PlanModel _$PlanModelFromJson(Map<String, dynamic> json) {
@@ -250,46 +262,32 @@ PlanModel _$PlanModelFromJson(Map<String, dynamic> json) {
mixin _$PlanModel {
@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")
PlanType get type => throw _privateConstructorUsedError;
@JsonKey(name: "details")
String get details => throw _privateConstructorUsedError;
@JsonKey(name: "packets_count")
int get packetsCount => throw _privateConstructorUsedError;
@JsonKey(name: "packet1_options")
dynamic get packet1Options => throw _privateConstructorUsedError;
@JsonKey(name: "packet2_options")
dynamic get packet2Options => throw _privateConstructorUsedError;
@JsonKey(name: "packet3_options")
dynamic get packet3Options => 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;
@@ -299,13 +297,14 @@ mixin _$PlanModel {
/// Create a copy of PlanModel
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$PlanModelCopyWith<PlanModel> get copyWith => throw _privateConstructorUsedError;
$PlanModelCopyWith<PlanModel> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $PlanModelCopyWith<$Res> {
factory $PlanModelCopyWith(PlanModel value, $Res Function(PlanModel) then) = _$PlanModelCopyWithImpl<$Res, PlanModel>;
factory $PlanModelCopyWith(PlanModel value, $Res Function(PlanModel) then) =
_$PlanModelCopyWithImpl<$Res, PlanModel>;
@useResult
$Res call(
{@JsonKey(name: "id") int id,
@@ -325,17 +324,16 @@ abstract class $PlanModelCopyWith<$Res> {
@JsonKey(name: "total_comments") int totalComments});
$PlanTypeCopyWith<$Res> get type;
$AuthorCopyWith<$Res> get author;
}
/// @nodoc
class _$PlanModelCopyWithImpl<$Res, $Val extends PlanModel> implements $PlanModelCopyWith<$Res> {
class _$PlanModelCopyWithImpl<$Res, $Val extends PlanModel>
implements $PlanModelCopyWith<$Res> {
_$PlanModelCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
@@ -446,9 +444,11 @@ class _$PlanModelCopyWithImpl<$Res, $Val extends PlanModel> implements $PlanMode
}
/// @nodoc
abstract class _$$PlanModelImplCopyWith<$Res> implements $PlanModelCopyWith<$Res> {
factory _$$PlanModelImplCopyWith(_$PlanModelImpl value, $Res Function(_$PlanModelImpl) then) = __$$PlanModelImplCopyWithImpl<$Res>;
abstract class _$$PlanModelImplCopyWith<$Res>
implements $PlanModelCopyWith<$Res> {
factory _$$PlanModelImplCopyWith(
_$PlanModelImpl value, $Res Function(_$PlanModelImpl) then) =
__$$PlanModelImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
@@ -470,14 +470,17 @@ abstract class _$$PlanModelImplCopyWith<$Res> implements $PlanModelCopyWith<$Res
@override
$PlanTypeCopyWith<$Res> get type;
@override
$AuthorCopyWith<$Res> get author;
}
/// @nodoc
class __$$PlanModelImplCopyWithImpl<$Res> extends _$PlanModelCopyWithImpl<$Res, _$PlanModelImpl> implements _$$PlanModelImplCopyWith<$Res> {
__$$PlanModelImplCopyWithImpl(_$PlanModelImpl _value, $Res Function(_$PlanModelImpl) _then) : super(_value, _then);
class __$$PlanModelImplCopyWithImpl<$Res>
extends _$PlanModelCopyWithImpl<$Res, _$PlanModelImpl>
implements _$$PlanModelImplCopyWith<$Res> {
__$$PlanModelImplCopyWithImpl(
_$PlanModelImpl _value, $Res Function(_$PlanModelImpl) _then)
: super(_value, _then);
/// Create a copy of PlanModel
/// with the given fields replaced by the non-null parameter values.
@@ -585,7 +588,8 @@ class _$PlanModelImpl implements _PlanModel {
@JsonKey(name: "total_views") required this.totalViews,
@JsonKey(name: "total_comments") required this.totalComments});
factory _$PlanModelImpl.fromJson(Map<String, dynamic> json) => _$$PlanModelImplFromJson(json);
factory _$PlanModelImpl.fromJson(Map<String, dynamic> json) =>
_$$PlanModelImplFromJson(json);
@override
@JsonKey(name: "id")
@@ -646,18 +650,26 @@ class _$PlanModelImpl implements _PlanModel {
(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.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) &&
(identical(other.packetsCount, packetsCount) || other.packetsCount == packetsCount) &&
const DeepCollectionEquality().equals(other.packet1Options, packet1Options) &&
const DeepCollectionEquality().equals(other.packet2Options, packet2Options) &&
const DeepCollectionEquality().equals(other.packet3Options, packet3Options) &&
(identical(other.packetsCount, packetsCount) ||
other.packetsCount == packetsCount) &&
const DeepCollectionEquality()
.equals(other.packet1Options, packet1Options) &&
const DeepCollectionEquality()
.equals(other.packet2Options, packet2Options) &&
const DeepCollectionEquality()
.equals(other.packet3Options, packet3Options) &&
(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));
(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)
@@ -685,7 +697,8 @@ class _$PlanModelImpl implements _PlanModel {
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$PlanModelImplCopyWith<_$PlanModelImpl> get copyWith => __$$PlanModelImplCopyWithImpl<_$PlanModelImpl>(this, _$identity);
_$$PlanModelImplCopyWith<_$PlanModelImpl> get copyWith =>
__$$PlanModelImplCopyWithImpl<_$PlanModelImpl>(this, _$identity);
@override
Map<String, dynamic> toJson() {
@@ -697,80 +710,68 @@ class _$PlanModelImpl implements _PlanModel {
abstract class _PlanModel implements PlanModel {
const factory _PlanModel(
{@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 PlanType type,
@JsonKey(name: "details") required final String details,
@JsonKey(name: "packets_count") required final int packetsCount,
@JsonKey(name: "packet1_options") final dynamic packet1Options,
@JsonKey(name: "packet2_options") final dynamic packet2Options,
@JsonKey(name: "packet3_options") final dynamic packet3Options,
@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}) = _$PlanModelImpl;
{@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 PlanType type,
@JsonKey(name: "details") required final String details,
@JsonKey(name: "packets_count") required final int packetsCount,
@JsonKey(name: "packet1_options") final dynamic packet1Options,
@JsonKey(name: "packet2_options") final dynamic packet2Options,
@JsonKey(name: "packet3_options") final dynamic packet3Options,
@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}) =
_$PlanModelImpl;
factory _PlanModel.fromJson(Map<String, dynamic> json) = _$PlanModelImpl.fromJson;
factory _PlanModel.fromJson(Map<String, dynamic> json) =
_$PlanModelImpl.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")
PlanType get type;
@override
@JsonKey(name: "details")
String get details;
@override
@JsonKey(name: "packets_count")
int get packetsCount;
@override
@JsonKey(name: "packet1_options")
dynamic get packet1Options;
@override
@JsonKey(name: "packet2_options")
dynamic get packet2Options;
@override
@JsonKey(name: "packet3_options")
dynamic get packet3Options;
@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;
@@ -779,7 +780,8 @@ abstract class _PlanModel implements PlanModel {
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$PlanModelImplCopyWith<_$PlanModelImpl> get copyWith => throw _privateConstructorUsedError;
_$$PlanModelImplCopyWith<_$PlanModelImpl> get copyWith =>
throw _privateConstructorUsedError;
}
PacketOptions _$PacketOptionsFromJson(Map<String, dynamic> json) {
@@ -790,13 +792,10 @@ PacketOptions _$PacketOptionsFromJson(Map<String, dynamic> json) {
mixin _$PacketOptions {
@JsonKey(name: "items")
List<String> get items => throw _privateConstructorUsedError;
@JsonKey(name: "price")
dynamic get price => throw _privateConstructorUsedError;
@JsonKey(name: "short")
String get short => throw _privateConstructorUsedError;
@JsonKey(name: "description")
String get description => throw _privateConstructorUsedError;
@@ -806,13 +805,15 @@ mixin _$PacketOptions {
/// Create a copy of PacketOptions
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$PacketOptionsCopyWith<PacketOptions> get copyWith => throw _privateConstructorUsedError;
$PacketOptionsCopyWith<PacketOptions> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $PacketOptionsCopyWith<$Res> {
factory $PacketOptionsCopyWith(PacketOptions value, $Res Function(PacketOptions) then) = _$PacketOptionsCopyWithImpl<$Res, PacketOptions>;
factory $PacketOptionsCopyWith(
PacketOptions value, $Res Function(PacketOptions) then) =
_$PacketOptionsCopyWithImpl<$Res, PacketOptions>;
@useResult
$Res call(
{@JsonKey(name: "items") List<String> items,
@@ -822,12 +823,12 @@ abstract class $PacketOptionsCopyWith<$Res> {
}
/// @nodoc
class _$PacketOptionsCopyWithImpl<$Res, $Val extends PacketOptions> implements $PacketOptionsCopyWith<$Res> {
class _$PacketOptionsCopyWithImpl<$Res, $Val extends PacketOptions>
implements $PacketOptionsCopyWith<$Res> {
_$PacketOptionsCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
@@ -863,9 +864,11 @@ class _$PacketOptionsCopyWithImpl<$Res, $Val extends PacketOptions> implements $
}
/// @nodoc
abstract class _$$PacketOptionsImplCopyWith<$Res> implements $PacketOptionsCopyWith<$Res> {
factory _$$PacketOptionsImplCopyWith(_$PacketOptionsImpl value, $Res Function(_$PacketOptionsImpl) then) = __$$PacketOptionsImplCopyWithImpl<$Res>;
abstract class _$$PacketOptionsImplCopyWith<$Res>
implements $PacketOptionsCopyWith<$Res> {
factory _$$PacketOptionsImplCopyWith(
_$PacketOptionsImpl value, $Res Function(_$PacketOptionsImpl) then) =
__$$PacketOptionsImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
@@ -876,8 +879,12 @@ abstract class _$$PacketOptionsImplCopyWith<$Res> implements $PacketOptionsCopyW
}
/// @nodoc
class __$$PacketOptionsImplCopyWithImpl<$Res> extends _$PacketOptionsCopyWithImpl<$Res, _$PacketOptionsImpl> implements _$$PacketOptionsImplCopyWith<$Res> {
__$$PacketOptionsImplCopyWithImpl(_$PacketOptionsImpl _value, $Res Function(_$PacketOptionsImpl) _then) : super(_value, _then);
class __$$PacketOptionsImplCopyWithImpl<$Res>
extends _$PacketOptionsCopyWithImpl<$Res, _$PacketOptionsImpl>
implements _$$PacketOptionsImplCopyWith<$Res> {
__$$PacketOptionsImplCopyWithImpl(
_$PacketOptionsImpl _value, $Res Function(_$PacketOptionsImpl) _then)
: super(_value, _then);
/// Create a copy of PacketOptions
/// with the given fields replaced by the non-null parameter values.
@@ -920,10 +927,10 @@ class _$PacketOptionsImpl implements _PacketOptions {
@JsonKey(name: "description") required this.description})
: _items = items;
factory _$PacketOptionsImpl.fromJson(Map<String, dynamic> json) => _$$PacketOptionsImplFromJson(json);
factory _$PacketOptionsImpl.fromJson(Map<String, dynamic> json) =>
_$$PacketOptionsImplFromJson(json);
final List<String> _items;
@override
@JsonKey(name: "items")
List<String> get items {
@@ -955,19 +962,26 @@ class _$PacketOptionsImpl implements _PacketOptions {
const DeepCollectionEquality().equals(other._items, _items) &&
const DeepCollectionEquality().equals(other.price, price) &&
(identical(other.short, short) || other.short == short) &&
(identical(other.description, description) || other.description == description));
(identical(other.description, description) ||
other.description == description));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(runtimeType, const DeepCollectionEquality().hash(_items), const DeepCollectionEquality().hash(price), short, description);
int get hashCode => Object.hash(
runtimeType,
const DeepCollectionEquality().hash(_items),
const DeepCollectionEquality().hash(price),
short,
description);
/// Create a copy of PacketOptions
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$PacketOptionsImplCopyWith<_$PacketOptionsImpl> get copyWith => __$$PacketOptionsImplCopyWithImpl<_$PacketOptionsImpl>(this, _$identity);
_$$PacketOptionsImplCopyWith<_$PacketOptionsImpl> get copyWith =>
__$$PacketOptionsImplCopyWithImpl<_$PacketOptionsImpl>(this, _$identity);
@override
Map<String, dynamic> toJson() {
@@ -979,25 +993,24 @@ class _$PacketOptionsImpl implements _PacketOptions {
abstract class _PacketOptions implements PacketOptions {
const factory _PacketOptions(
{@JsonKey(name: "items") required final List<String> items,
@JsonKey(name: "price") required final dynamic price,
@JsonKey(name: "short") required final String short,
@JsonKey(name: "description") required final String description}) = _$PacketOptionsImpl;
{@JsonKey(name: "items") required final List<String> items,
@JsonKey(name: "price") required final dynamic price,
@JsonKey(name: "short") required final String short,
@JsonKey(name: "description") required final String description}) =
_$PacketOptionsImpl;
factory _PacketOptions.fromJson(Map<String, dynamic> json) = _$PacketOptionsImpl.fromJson;
factory _PacketOptions.fromJson(Map<String, dynamic> json) =
_$PacketOptionsImpl.fromJson;
@override
@JsonKey(name: "items")
List<String> get items;
@override
@JsonKey(name: "price")
dynamic get price;
@override
@JsonKey(name: "short")
String get short;
@override
@JsonKey(name: "description")
String get description;
@@ -1006,7 +1019,8 @@ abstract class _PacketOptions implements PacketOptions {
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$PacketOptionsImplCopyWith<_$PacketOptionsImpl> get copyWith => throw _privateConstructorUsedError;
_$$PacketOptionsImplCopyWith<_$PacketOptionsImpl> get copyWith =>
throw _privateConstructorUsedError;
}
PlanType _$PlanTypeFromJson(Map<String, dynamic> json) {
@@ -1017,13 +1031,10 @@ PlanType _$PlanTypeFromJson(Map<String, dynamic> json) {
mixin _$PlanType {
@JsonKey(name: "fit")
bool get fit => throw _privateConstructorUsedError;
@JsonKey(name: "slim")
bool get slim => throw _privateConstructorUsedError;
@JsonKey(name: "behavior")
bool get behavior => throw _privateConstructorUsedError;
@JsonKey(name: "wellness")
bool get wellness => throw _privateConstructorUsedError;
@@ -1033,25 +1044,29 @@ mixin _$PlanType {
/// Create a copy of PlanType
/// with the given fields replaced by the non-null parameter values.
@JsonKey(includeFromJson: false, includeToJson: false)
$PlanTypeCopyWith<PlanType> get copyWith => throw _privateConstructorUsedError;
$PlanTypeCopyWith<PlanType> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $PlanTypeCopyWith<$Res> {
factory $PlanTypeCopyWith(PlanType value, $Res Function(PlanType) then) = _$PlanTypeCopyWithImpl<$Res, PlanType>;
factory $PlanTypeCopyWith(PlanType value, $Res Function(PlanType) then) =
_$PlanTypeCopyWithImpl<$Res, PlanType>;
@useResult
$Res call(
{@JsonKey(name: "fit") bool fit, @JsonKey(name: "slim") bool slim, @JsonKey(name: "behavior") bool behavior, @JsonKey(name: "wellness") bool wellness});
{@JsonKey(name: "fit") bool fit,
@JsonKey(name: "slim") bool slim,
@JsonKey(name: "behavior") bool behavior,
@JsonKey(name: "wellness") bool wellness});
}
/// @nodoc
class _$PlanTypeCopyWithImpl<$Res, $Val extends PlanType> implements $PlanTypeCopyWith<$Res> {
class _$PlanTypeCopyWithImpl<$Res, $Val extends PlanType>
implements $PlanTypeCopyWith<$Res> {
_$PlanTypeCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
@@ -1087,18 +1102,27 @@ class _$PlanTypeCopyWithImpl<$Res, $Val extends PlanType> implements $PlanTypeCo
}
/// @nodoc
abstract class _$$PlanTypeImplCopyWith<$Res> implements $PlanTypeCopyWith<$Res> {
factory _$$PlanTypeImplCopyWith(_$PlanTypeImpl value, $Res Function(_$PlanTypeImpl) then) = __$$PlanTypeImplCopyWithImpl<$Res>;
abstract class _$$PlanTypeImplCopyWith<$Res>
implements $PlanTypeCopyWith<$Res> {
factory _$$PlanTypeImplCopyWith(
_$PlanTypeImpl value, $Res Function(_$PlanTypeImpl) then) =
__$$PlanTypeImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
{@JsonKey(name: "fit") bool fit, @JsonKey(name: "slim") bool slim, @JsonKey(name: "behavior") bool behavior, @JsonKey(name: "wellness") bool wellness});
{@JsonKey(name: "fit") bool fit,
@JsonKey(name: "slim") bool slim,
@JsonKey(name: "behavior") bool behavior,
@JsonKey(name: "wellness") bool wellness});
}
/// @nodoc
class __$$PlanTypeImplCopyWithImpl<$Res> extends _$PlanTypeCopyWithImpl<$Res, _$PlanTypeImpl> implements _$$PlanTypeImplCopyWith<$Res> {
__$$PlanTypeImplCopyWithImpl(_$PlanTypeImpl _value, $Res Function(_$PlanTypeImpl) _then) : super(_value, _then);
class __$$PlanTypeImplCopyWithImpl<$Res>
extends _$PlanTypeCopyWithImpl<$Res, _$PlanTypeImpl>
implements _$$PlanTypeImplCopyWith<$Res> {
__$$PlanTypeImplCopyWithImpl(
_$PlanTypeImpl _value, $Res Function(_$PlanTypeImpl) _then)
: super(_value, _then);
/// Create a copy of PlanType
/// with the given fields replaced by the non-null parameter values.
@@ -1140,7 +1164,8 @@ class _$PlanTypeImpl implements _PlanType {
@JsonKey(name: "behavior") required this.behavior,
@JsonKey(name: "wellness") required this.wellness});
factory _$PlanTypeImpl.fromJson(Map<String, dynamic> json) => _$$PlanTypeImplFromJson(json);
factory _$PlanTypeImpl.fromJson(Map<String, dynamic> json) =>
_$$PlanTypeImplFromJson(json);
@override
@JsonKey(name: "fit")
@@ -1167,8 +1192,10 @@ class _$PlanTypeImpl implements _PlanType {
other is _$PlanTypeImpl &&
(identical(other.fit, fit) || other.fit == fit) &&
(identical(other.slim, slim) || other.slim == slim) &&
(identical(other.behavior, behavior) || other.behavior == behavior) &&
(identical(other.wellness, wellness) || other.wellness == wellness));
(identical(other.behavior, behavior) ||
other.behavior == behavior) &&
(identical(other.wellness, wellness) ||
other.wellness == wellness));
}
@JsonKey(includeFromJson: false, includeToJson: false)
@@ -1180,7 +1207,8 @@ class _$PlanTypeImpl implements _PlanType {
@JsonKey(includeFromJson: false, includeToJson: false)
@override
@pragma('vm:prefer-inline')
_$$PlanTypeImplCopyWith<_$PlanTypeImpl> get copyWith => __$$PlanTypeImplCopyWithImpl<_$PlanTypeImpl>(this, _$identity);
_$$PlanTypeImplCopyWith<_$PlanTypeImpl> get copyWith =>
__$$PlanTypeImplCopyWithImpl<_$PlanTypeImpl>(this, _$identity);
@override
Map<String, dynamic> toJson() {
@@ -1192,25 +1220,24 @@ class _$PlanTypeImpl implements _PlanType {
abstract class _PlanType implements PlanType {
const factory _PlanType(
{@JsonKey(name: "fit") required final bool fit,
@JsonKey(name: "slim") required final bool slim,
@JsonKey(name: "behavior") required final bool behavior,
@JsonKey(name: "wellness") required final bool wellness}) = _$PlanTypeImpl;
{@JsonKey(name: "fit") required final bool fit,
@JsonKey(name: "slim") required final bool slim,
@JsonKey(name: "behavior") required final bool behavior,
@JsonKey(name: "wellness") required final bool wellness}) =
_$PlanTypeImpl;
factory _PlanType.fromJson(Map<String, dynamic> json) = _$PlanTypeImpl.fromJson;
factory _PlanType.fromJson(Map<String, dynamic> json) =
_$PlanTypeImpl.fromJson;
@override
@JsonKey(name: "fit")
bool get fit;
@override
@JsonKey(name: "slim")
bool get slim;
@override
@JsonKey(name: "behavior")
bool get behavior;
@override
@JsonKey(name: "wellness")
bool get wellness;
@@ -1219,5 +1246,6 @@ abstract class _PlanType implements PlanType {
/// with the given fields replaced by the non-null parameter values.
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$PlanTypeImplCopyWith<_$PlanTypeImpl> get copyWith => throw _privateConstructorUsedError;
_$$PlanTypeImplCopyWith<_$PlanTypeImpl> get copyWith =>
throw _privateConstructorUsedError;
}

View File

@@ -6,19 +6,26 @@ part of 'plan_pagination_model.dart';
// JsonSerializableGenerator
// **************************************************************************
_$PlanPaginationModelImpl _$$PlanPaginationModelImplFromJson(Map<String, dynamic> json) => _$PlanPaginationModelImpl(
data: (json['data'] as List<dynamic>).map((e) => PlanModel.fromJson(e as Map<String, dynamic>)).toList(),
_$PlanPaginationModelImpl _$$PlanPaginationModelImplFromJson(
Map<String, dynamic> json) =>
_$PlanPaginationModelImpl(
data: (json['data'] as List<dynamic>)
.map((e) => PlanModel.fromJson(e as Map<String, dynamic>))
.toList(),
links: Links.fromJson(json['links'] as Map<String, dynamic>),
meta: Meta.fromJson(json['meta'] as Map<String, dynamic>),
);
Map<String, dynamic> _$$PlanPaginationModelImplToJson(_$PlanPaginationModelImpl instance) => <String, dynamic>{
Map<String, dynamic> _$$PlanPaginationModelImplToJson(
_$PlanPaginationModelImpl instance) =>
<String, dynamic>{
'data': instance.data,
'links': instance.links,
'meta': instance.meta,
};
_$PlanModelImpl _$$PlanModelImplFromJson(Map<String, dynamic> json) => _$PlanModelImpl(
_$PlanModelImpl _$$PlanModelImplFromJson(Map<String, dynamic> json) =>
_$PlanModelImpl(
id: (json['id'] as num).toInt(),
name: json['name'] as String,
image: json['image'] as String,
@@ -36,7 +43,8 @@ _$PlanModelImpl _$$PlanModelImplFromJson(Map<String, dynamic> json) => _$PlanMod
totalComments: (json['total_comments'] as num).toInt(),
);
Map<String, dynamic> _$$PlanModelImplToJson(_$PlanModelImpl instance) => <String, dynamic>{
Map<String, dynamic> _$$PlanModelImplToJson(_$PlanModelImpl instance) =>
<String, dynamic>{
'id': instance.id,
'name': instance.name,
'image': instance.image,
@@ -54,28 +62,32 @@ Map<String, dynamic> _$$PlanModelImplToJson(_$PlanModelImpl instance) => <String
'total_comments': instance.totalComments,
};
_$PacketOptionsImpl _$$PacketOptionsImplFromJson(Map<String, dynamic> json) => _$PacketOptionsImpl(
_$PacketOptionsImpl _$$PacketOptionsImplFromJson(Map<String, dynamic> json) =>
_$PacketOptionsImpl(
items: (json['items'] as List<dynamic>).map((e) => e as String).toList(),
price: json['price'],
short: json['short'] as String,
description: json['description'] as String,
);
Map<String, dynamic> _$$PacketOptionsImplToJson(_$PacketOptionsImpl instance) => <String, dynamic>{
Map<String, dynamic> _$$PacketOptionsImplToJson(_$PacketOptionsImpl instance) =>
<String, dynamic>{
'items': instance.items,
'price': instance.price,
'short': instance.short,
'description': instance.description,
};
_$PlanTypeImpl _$$PlanTypeImplFromJson(Map<String, dynamic> json) => _$PlanTypeImpl(
_$PlanTypeImpl _$$PlanTypeImplFromJson(Map<String, dynamic> json) =>
_$PlanTypeImpl(
fit: json['fit'] as bool,
slim: json['slim'] as bool,
behavior: json['behavior'] as bool,
wellness: json['wellness'] as bool,
);
Map<String, dynamic> _$$PlanTypeImplToJson(_$PlanTypeImpl instance) => <String, dynamic>{
Map<String, dynamic> _$$PlanTypeImplToJson(_$PlanTypeImpl instance) =>
<String, dynamic>{
'fit': instance.fit,
'slim': instance.slim,
'behavior': instance.behavior,