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