FhirUnsignedInt.fromYaml constructor

FhirUnsignedInt.fromYaml(
  1. dynamic yaml
)

Implementation

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