toUsageLimitPeriod method

UsageLimitPeriod toUsageLimitPeriod()

Implementation

UsageLimitPeriod toUsageLimitPeriod() {
  switch (this) {
    case 'daily':
      return UsageLimitPeriod.daily;
    case 'weekly':
      return UsageLimitPeriod.weekly;
    case 'monthly':
      return UsageLimitPeriod.monthly;
  }
  throw Exception('$this is not known in enum UsageLimitPeriod');
}