toIntervalUnitValues method

IntervalUnitValues toIntervalUnitValues()

Implementation

IntervalUnitValues toIntervalUnitValues() {
  switch (this) {
    case 'HOURS':
      return IntervalUnitValues.hours;
  }
  throw Exception('$this is not known in enum IntervalUnitValues');
}