toAc3BitstreamMode method

Ac3BitstreamMode toAc3BitstreamMode()

Implementation

Ac3BitstreamMode toAc3BitstreamMode() {
  switch (this) {
    case 'COMPLETE_MAIN':
      return Ac3BitstreamMode.completeMain;
    case 'COMMENTARY':
      return Ac3BitstreamMode.commentary;
    case 'DIALOGUE':
      return Ac3BitstreamMode.dialogue;
    case 'EMERGENCY':
      return Ac3BitstreamMode.emergency;
    case 'HEARING_IMPAIRED':
      return Ac3BitstreamMode.hearingImpaired;
    case 'MUSIC_AND_EFFECTS':
      return Ac3BitstreamMode.musicAndEffects;
    case 'VISUALLY_IMPAIRED':
      return Ac3BitstreamMode.visuallyImpaired;
    case 'VOICE_OVER':
      return Ac3BitstreamMode.voiceOver;
  }
  throw Exception('$this is not known in enum Ac3BitstreamMode');
}