toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case RecipeOutputFormat.json:
      return 'JSON';
    case RecipeOutputFormat.yaml:
      return 'YAML';
  }
}