toSegmentTemplateFormat method

SegmentTemplateFormat toSegmentTemplateFormat()

Implementation

SegmentTemplateFormat toSegmentTemplateFormat() {
  switch (this) {
    case 'NUMBER_WITH_TIMELINE':
      return SegmentTemplateFormat.numberWithTimeline;
    case 'TIME_WITH_TIMELINE':
      return SegmentTemplateFormat.timeWithTimeline;
    case 'NUMBER_WITH_DURATION':
      return SegmentTemplateFormat.numberWithDuration;
  }
  throw Exception('$this is not known in enum SegmentTemplateFormat');
}