toDateRangeUnit method

DateRangeUnit toDateRangeUnit()

Implementation

DateRangeUnit toDateRangeUnit() {
  switch (this) {
    case 'DAYS':
      return DateRangeUnit.days;
  }
  throw Exception('$this is not known in enum DateRangeUnit');
}