toSegmentType method

SegmentType toSegmentType()

Implementation

SegmentType toSegmentType() {
  switch (this) {
    case 'DIMENSIONAL':
      return SegmentType.dimensional;
    case 'IMPORT':
      return SegmentType.import;
  }
  throw Exception('$this is not known in enum SegmentType');
}