ReferenceRange.fromJSON constructor

ReferenceRange.fromJSON(
  1. Map<String, dynamic> data
)

Implementation

factory ReferenceRange.fromJSON(Map<String, dynamic> data) {
	return ReferenceRange(
		low: (data["low"] as num?)?.toDouble(),
		high: (data["high"] as num?)?.toDouble(),
		stringValue: (data["stringValue"] as String?),
		tags: (data["tags"] as List<dynamic>).map((x0) => CodeStub.fromJSON(x0) ).toList(),
		codes: (data["codes"] as List<dynamic>).map((x0) => CodeStub.fromJSON(x0) ).toList(),
		notes: (data["notes"] as List<dynamic>).map((x0) => Annotation.fromJSON(x0) ).toList(),
		age: data["age"] == null ? null : Range.fromJSON(data["age"])
	);
}