forked from eatvio/eatvio_app
72 lines
2.5 KiB
Dart
72 lines
2.5 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'consultant_review_model.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
_$ConsultantReviewModelImpl _$$ConsultantReviewModelImplFromJson(
|
|
Map<String, dynamic> json) =>
|
|
_$ConsultantReviewModelImpl(
|
|
planName: json['planName'] as String,
|
|
planDuration: (json['planDuration'] as num).toInt(),
|
|
currentPlanDay: (json['currentPlanDay'] as num).toInt(),
|
|
consultantComments: ConsultantComments.fromJson(
|
|
json['consultantComments'] as Map<String, dynamic>),
|
|
);
|
|
|
|
Map<String, dynamic> _$$ConsultantReviewModelImplToJson(
|
|
_$ConsultantReviewModelImpl instance) =>
|
|
<String, dynamic>{
|
|
'planName': instance.planName,
|
|
'planDuration': instance.planDuration,
|
|
'currentPlanDay': instance.currentPlanDay,
|
|
'consultantComments': instance.consultantComments,
|
|
};
|
|
|
|
_$ConsultantCommentsImpl _$$ConsultantCommentsImplFromJson(
|
|
Map<String, dynamic> json) =>
|
|
_$ConsultantCommentsImpl(
|
|
dayComment: json['dayComment'] as String?,
|
|
mealsComments: (json['mealsComments'] as List<dynamic>)
|
|
.map((e) => MealComment.fromJson(e as Map<String, dynamic>))
|
|
.toList(),
|
|
portionsComments: (json['portionsComments'] as List<dynamic>)
|
|
.map((e) => PortionComment.fromJson(e as Map<String, dynamic>))
|
|
.toList(),
|
|
);
|
|
|
|
Map<String, dynamic> _$$ConsultantCommentsImplToJson(
|
|
_$ConsultantCommentsImpl instance) =>
|
|
<String, dynamic>{
|
|
'dayComment': instance.dayComment,
|
|
'mealsComments': instance.mealsComments,
|
|
'portionsComments': instance.portionsComments,
|
|
};
|
|
|
|
_$MealCommentImpl _$$MealCommentImplFromJson(Map<String, dynamic> json) =>
|
|
_$MealCommentImpl(
|
|
comment: json['comment'] as String,
|
|
typeNo: (json['typeNo'] as num).toInt(),
|
|
);
|
|
|
|
Map<String, dynamic> _$$MealCommentImplToJson(_$MealCommentImpl instance) =>
|
|
<String, dynamic>{
|
|
'comment': instance.comment,
|
|
'typeNo': instance.typeNo,
|
|
};
|
|
|
|
_$PortionCommentImpl _$$PortionCommentImplFromJson(Map<String, dynamic> json) =>
|
|
_$PortionCommentImpl(
|
|
portionId: (json['id'] as num).toInt(),
|
|
comment: json['comment'] as String,
|
|
);
|
|
|
|
Map<String, dynamic> _$$PortionCommentImplToJson(
|
|
_$PortionCommentImpl instance) =>
|
|
<String, dynamic>{
|
|
'id': instance.portionId,
|
|
'comment': instance.comment,
|
|
};
|