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