UserSymptomsLogs.fromJson constructor
UserSymptomsLogs.fromJson(
- Map<String, dynamic> json
)
Implementation
UserSymptomsLogs.fromJson(Map<String, dynamic> json) {
meditationTime = json['meditationTime'];
sleepTime = json['sleepTime'];
waterValue = json['waterValue'];
bodyTemperatureUnit = json['bodyTemperatureUnit'];
waterUnit = json['waterUnit'];
weightUnit = json['weightUnit'];
notes = json['notes'];
weight = json['weight'];
logDate = json['logDate'];
logDate = json['logDate'];
isCustomLog = json['isCustomLog'];
createdDate = json['createdDate'];
bodyTemperature = json['bodyTemperature'];
if (json['symptomData'] != null) {
symptomData = <SymptomsData>[];
json['symptomData'].forEach((v) {
symptomData!.add(SymptomsData.fromJson(v));
});
}
}