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