FhirDateTime.fromYaml constructor

FhirDateTime.fromYaml(
  1. String yaml, [
  2. DateTimePrecision? precision
])

Implementation

factory FhirDateTime.fromYaml(String yaml, [DateTimePrecision? precision]) =>
    FhirDateTime(jsonDecode(jsonEncode(yaml)), precision);