EvidenceVariableCategory.fromYaml constructor
EvidenceVariableCategory.fromYaml(
- dynamic yaml
Deserialize EvidenceVariableCategory
from a String or YamlMap object
Implementation
factory EvidenceVariableCategory.fromYaml(
dynamic yaml,
) {
if (yaml is String) {
return EvidenceVariableCategory.fromJson(
yamlToJson(yaml),
);
} else if (yaml is YamlMap) {
return EvidenceVariableCategory.fromJson(
yamlMapToJson(yaml),
);
} else {
throw ArgumentError(
'EvidenceVariableCategory '
'cannot be constructed from the provided input. '
'It must be a YAML string or YAML map.',
);
}
}