RecommendationData.fromJson constructor
RecommendationData.fromJson(
- Map<String, dynamic> json
)
Implementation
factory RecommendationData.fromJson(Map<String, dynamic> json) {
return RecommendationData(
lab: json['lab'] != null ? RecommendationLab.fromJson(json['lab']) :null ,
drug: json['drug'] != null ?RecommendationDrug.fromJson(json['drug']):null ,
icd10: json['icd10'] != null ?RecommendationICD10.fromJson(json['icd10']):null ,
followUp: json['followUp'] != null ?(json['followUp'] as List<dynamic>)
.map((item) => RecommendationFollowUp.fromJson(item))
.toList():null ,
doctorReferral: json['doctorReferral'] != null ?RecommendationDoctorReferral.fromJson(json['doctorReferral']):null ,
postCallAnswer: json['postCallAnswer'] != null ?(json['postCallAnswer'] as List<dynamic>)
.map((item) => RecommendationPostCallAnswer.fromJson(item))
.toList(): null ,
);
}