SymptomsData.fromJson constructor

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

Implementation

SymptomsData.fromJson(Map<String, dynamic> json) {
  symptomName = json['symptomName'];
  isSelected = json['isSelected'];
  symptomId = json['symptomId'];
  phaseIds = json['phaseIds'];
  phaseIds = (json['phaseIds'] != null) ? json['phaseIds'].cast<int>() : [];
}