toM2tsSegmentationMarkers method

M2tsSegmentationMarkers toM2tsSegmentationMarkers()

Implementation

M2tsSegmentationMarkers toM2tsSegmentationMarkers() {
  switch (this) {
    case 'NONE':
      return M2tsSegmentationMarkers.none;
    case 'RAI_SEGSTART':
      return M2tsSegmentationMarkers.raiSegstart;
    case 'RAI_ADAPT':
      return M2tsSegmentationMarkers.raiAdapt;
    case 'PSI_SEGSTART':
      return M2tsSegmentationMarkers.psiSegstart;
    case 'EBP':
      return M2tsSegmentationMarkers.ebp;
    case 'EBP_LEGACY':
      return M2tsSegmentationMarkers.ebpLegacy;
  }
  throw Exception('$this is not known in enum M2tsSegmentationMarkers');
}