toAuditFrequency method

AuditFrequency toAuditFrequency()

Implementation

AuditFrequency toAuditFrequency() {
  switch (this) {
    case 'DAILY':
      return AuditFrequency.daily;
    case 'WEEKLY':
      return AuditFrequency.weekly;
    case 'BIWEEKLY':
      return AuditFrequency.biweekly;
    case 'MONTHLY':
      return AuditFrequency.monthly;
  }
  throw Exception('$this is not known in enum AuditFrequency');
}