forked from eatvio/eatvio_app
fix: plans loading
This commit is contained in:
@@ -27,7 +27,7 @@ class PlanModel with _$PlanModel {
|
||||
@JsonKey(name: "duration") required int duration,
|
||||
@JsonKey(name: "state") required String state,
|
||||
@JsonKey(name: "type", fromJson: planTypeFromJson) required PlanType type,
|
||||
@JsonKey(name: "details") required String details,
|
||||
@JsonKey(name: "description_md") required String details,
|
||||
@JsonKey(name: "packets_count") required int packetsCount,
|
||||
@JsonKey(name: "packet1_options") PacketOptions? packet1Options,
|
||||
@JsonKey(name: "packet2_options") PacketOptions? packet2Options,
|
||||
|
||||
@@ -287,7 +287,7 @@ mixin _$PlanModel {
|
||||
String get state => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: "type", fromJson: planTypeFromJson)
|
||||
PlanType get type => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: "details")
|
||||
@JsonKey(name: "description_md")
|
||||
String get details => throw _privateConstructorUsedError;
|
||||
@JsonKey(name: "packets_count")
|
||||
int get packetsCount => throw _privateConstructorUsedError;
|
||||
@@ -337,7 +337,7 @@ abstract class $PlanModelCopyWith<$Res> {
|
||||
@JsonKey(name: "duration") int duration,
|
||||
@JsonKey(name: "state") String state,
|
||||
@JsonKey(name: "type", fromJson: planTypeFromJson) PlanType type,
|
||||
@JsonKey(name: "details") String details,
|
||||
@JsonKey(name: "description_md") String details,
|
||||
@JsonKey(name: "packets_count") int packetsCount,
|
||||
@JsonKey(name: "packet1_options") PacketOptions? packet1Options,
|
||||
@JsonKey(name: "packet2_options") PacketOptions? packet2Options,
|
||||
@@ -582,7 +582,7 @@ abstract class _$$PlanModelImplCopyWith<$Res>
|
||||
@JsonKey(name: "duration") int duration,
|
||||
@JsonKey(name: "state") String state,
|
||||
@JsonKey(name: "type", fromJson: planTypeFromJson) PlanType type,
|
||||
@JsonKey(name: "details") String details,
|
||||
@JsonKey(name: "description_md") String details,
|
||||
@JsonKey(name: "packets_count") int packetsCount,
|
||||
@JsonKey(name: "packet1_options") PacketOptions? packet1Options,
|
||||
@JsonKey(name: "packet2_options") PacketOptions? packet2Options,
|
||||
@@ -762,7 +762,7 @@ class _$PlanModelImpl implements _PlanModel {
|
||||
@JsonKey(name: "duration") required this.duration,
|
||||
@JsonKey(name: "state") required this.state,
|
||||
@JsonKey(name: "type", fromJson: planTypeFromJson) required this.type,
|
||||
@JsonKey(name: "details") required this.details,
|
||||
@JsonKey(name: "description_md") required this.details,
|
||||
@JsonKey(name: "packets_count") required this.packetsCount,
|
||||
@JsonKey(name: "packet1_options") this.packet1Options,
|
||||
@JsonKey(name: "packet2_options") this.packet2Options,
|
||||
@@ -802,7 +802,7 @@ class _$PlanModelImpl implements _PlanModel {
|
||||
@JsonKey(name: "type", fromJson: planTypeFromJson)
|
||||
final PlanType type;
|
||||
@override
|
||||
@JsonKey(name: "details")
|
||||
@JsonKey(name: "description_md")
|
||||
final String details;
|
||||
@override
|
||||
@JsonKey(name: "packets_count")
|
||||
@@ -935,7 +935,7 @@ abstract class _PlanModel implements PlanModel {
|
||||
@JsonKey(name: "state") required final String state,
|
||||
@JsonKey(name: "type", fromJson: planTypeFromJson)
|
||||
required final PlanType type,
|
||||
@JsonKey(name: "details") required final String details,
|
||||
@JsonKey(name: "description_md") required final String details,
|
||||
@JsonKey(name: "packets_count") required final int packetsCount,
|
||||
@JsonKey(name: "packet1_options") final PacketOptions? packet1Options,
|
||||
@JsonKey(name: "packet2_options") final PacketOptions? packet2Options,
|
||||
@@ -977,7 +977,7 @@ abstract class _PlanModel implements PlanModel {
|
||||
@JsonKey(name: "type", fromJson: planTypeFromJson)
|
||||
PlanType get type;
|
||||
@override
|
||||
@JsonKey(name: "details")
|
||||
@JsonKey(name: "description_md")
|
||||
String get details;
|
||||
@override
|
||||
@JsonKey(name: "packets_count")
|
||||
|
||||
@@ -34,7 +34,7 @@ _$PlanModelImpl _$$PlanModelImplFromJson(Map<String, dynamic> json) =>
|
||||
duration: (json['duration'] as num).toInt(),
|
||||
state: json['state'] as String,
|
||||
type: planTypeFromJson(json['type']),
|
||||
details: json['details'] as String,
|
||||
details: json['description_md'] as String,
|
||||
packetsCount: (json['packets_count'] as num).toInt(),
|
||||
packet1Options:
|
||||
json['packet1_options'] == null
|
||||
@@ -73,7 +73,7 @@ Map<String, dynamic> _$$PlanModelImplToJson(_$PlanModelImpl instance) =>
|
||||
'duration': instance.duration,
|
||||
'state': instance.state,
|
||||
'type': instance.type,
|
||||
'details': instance.details,
|
||||
'description_md': instance.details,
|
||||
'packets_count': instance.packetsCount,
|
||||
'packet1_options': instance.packet1Options,
|
||||
'packet2_options': instance.packet2Options,
|
||||
|
||||
Reference in New Issue
Block a user