toBusinessReportInterval method

BusinessReportInterval toBusinessReportInterval()

Implementation

BusinessReportInterval toBusinessReportInterval() {
  switch (this) {
    case 'ONE_DAY':
      return BusinessReportInterval.oneDay;
    case 'ONE_WEEK':
      return BusinessReportInterval.oneWeek;
    case 'THIRTY_DAYS':
      return BusinessReportInterval.thirtyDays;
  }
  throw Exception('$this is not known in enum BusinessReportInterval');
}