toCaptionDestinationType method

CaptionDestinationType toCaptionDestinationType()

Implementation

CaptionDestinationType toCaptionDestinationType() {
  switch (this) {
    case 'BURN_IN':
      return CaptionDestinationType.burnIn;
    case 'DVB_SUB':
      return CaptionDestinationType.dvbSub;
    case 'EMBEDDED':
      return CaptionDestinationType.embedded;
    case 'EMBEDDED_PLUS_SCTE20':
      return CaptionDestinationType.embeddedPlusScte20;
    case 'IMSC':
      return CaptionDestinationType.imsc;
    case 'SCTE20_PLUS_EMBEDDED':
      return CaptionDestinationType.scte20PlusEmbedded;
    case 'SCC':
      return CaptionDestinationType.scc;
    case 'SRT':
      return CaptionDestinationType.srt;
    case 'SMI':
      return CaptionDestinationType.smi;
    case 'TELETEXT':
      return CaptionDestinationType.teletext;
    case 'TTML':
      return CaptionDestinationType.ttml;
    case 'WEBVTT':
      return CaptionDestinationType.webvtt;
  }
  throw Exception('$this is not known in enum CaptionDestinationType');
}