toMaximumExecutionFrequency method

MaximumExecutionFrequency toMaximumExecutionFrequency()

Implementation

MaximumExecutionFrequency toMaximumExecutionFrequency() {
  switch (this) {
    case 'One_Hour':
      return MaximumExecutionFrequency.oneHour;
    case 'Three_Hours':
      return MaximumExecutionFrequency.threeHours;
    case 'Six_Hours':
      return MaximumExecutionFrequency.sixHours;
    case 'Twelve_Hours':
      return MaximumExecutionFrequency.twelveHours;
    case 'TwentyFour_Hours':
      return MaximumExecutionFrequency.twentyFourHours;
  }
  throw Exception('$this is not known in enum MaximumExecutionFrequency');
}