toRecipeOutputFormat method

RecipeOutputFormat toRecipeOutputFormat()

Implementation

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