Symptoms.fromJson constructor

Symptoms.fromJson(
  1. Map<String, dynamic> json
)

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));
    });
  }
}