DecryptedContent.fromJSON constructor
DecryptedContent.fromJSON(
- Map<String, dynamic> data
)
Implementation
factory DecryptedContent.fromJSON(Map<String, dynamic> data) {
return DecryptedContent(
stringValue: (data["stringValue"] as String?),
numberValue: (data["numberValue"] as num?)?.toDouble(),
booleanValue: (data["booleanValue"] as bool?),
instantValue: data["instantValue"] == null ? null : DateTime.fromMillisecondsSinceEpoch(data["instantValue"] as int),
fuzzyDateValue: (data["fuzzyDateValue"] as int?),
binaryValue: data["binaryValue"] == null ? null : base64Decode(data["binaryValue"] as String),
documentId: (data["documentId"] as String?),
measureValue: data["measureValue"] == null ? null : Measure.fromJSON(data["measureValue"]),
medicationValue: data["medicationValue"] == null ? null : Medication.fromJSON(data["medicationValue"]),
timeSeries: data["timeSeries"] == null ? null : TimeSeries.fromJSON(data["timeSeries"]),
compoundValue: (data["compoundValue"] as List<dynamic>?)?.map((x0) => DecryptedService.fromJSON(x0) ).toList(),
ratio: (data["ratio"] as List<dynamic>?)?.map((x0) => Measure.fromJSON(x0) ).toList(),
range: (data["range"] as List<dynamic>?)?.map((x0) => Measure.fromJSON(x0) ).toList()
);
}