Symptoms.fromJson constructor
Implementation
Symptoms.fromJson(Map<String, dynamic> json) {
categoryId = json['categoryId'];
isVisibleCategory = json['isVisibleCategory'];
categoryName = json['categoryName'];
categoryColor = json['categoryColor'];
isCustomType = json['isCustomType'];
if (json['symptomsData'] != null) {
symptomsData = <SymptomsData>[];
json['symptomsData'].forEach((v) {
symptomsData!.add(SymptomsData.fromJson(v));
});
}
}