toTimeUnit method

TimeUnit toTimeUnit()

Implementation

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