toOutputFormat method
Implementation
OutputFormat toOutputFormat() {
switch (this) {
case 'JSON':
return OutputFormat.json;
case 'YAML':
return OutputFormat.yaml;
}
throw Exception('$this is not known in enum OutputFormat');
}