toAuditTaskType method

AuditTaskType toAuditTaskType()

Implementation

AuditTaskType toAuditTaskType() {
  switch (this) {
    case 'ON_DEMAND_AUDIT_TASK':
      return AuditTaskType.onDemandAuditTask;
    case 'SCHEDULED_AUDIT_TASK':
      return AuditTaskType.scheduledAuditTask;
  }
  throw Exception('$this is not known in enum AuditTaskType');
}