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