toAuditFindingSeverity method
Implementation
AuditFindingSeverity toAuditFindingSeverity() {
switch (this) {
case 'CRITICAL':
return AuditFindingSeverity.critical;
case 'HIGH':
return AuditFindingSeverity.high;
case 'MEDIUM':
return AuditFindingSeverity.medium;
case 'LOW':
return AuditFindingSeverity.low;
}
throw Exception('$this is not known in enum AuditFindingSeverity');
}