toOutputFormat method

OutputFormat toOutputFormat()

Implementation

OutputFormat toOutputFormat() {
  switch (this) {
    case 'json':
      return OutputFormat.json;
    case 'mp3':
      return OutputFormat.mp3;
    case 'ogg_vorbis':
      return OutputFormat.oggVorbis;
    case 'pcm':
      return OutputFormat.pcm;
  }
  throw Exception('$this is not known in enum OutputFormat');
}