FhirDecimal.fromYaml constructor
FhirDecimal.fromYaml(
- dynamic yaml
Implementation
factory FhirDecimal.fromYaml(dynamic yaml) => yaml is String
? FhirDecimal.fromJson(jsonDecode(jsonEncode(loadYaml(yaml))))
: yaml is YamlMap
? FhirDecimal.fromJson(jsonDecode(jsonEncode(yaml)))
: throw YamlFormatException<FhirDecimal>(
'FormatException: "$json" is not a valid Yaml string or YamlMap.');