toFindingSeverity method
Implementation
FindingSeverity toFindingSeverity() {
switch (this) {
case 'INFORMATIONAL':
return FindingSeverity.informational;
case 'LOW':
return FindingSeverity.low;
case 'MEDIUM':
return FindingSeverity.medium;
case 'HIGH':
return FindingSeverity.high;
case 'CRITICAL':
return FindingSeverity.critical;
case 'UNDEFINED':
return FindingSeverity.undefined;
}
throw Exception('$this is not known in enum FindingSeverity');
}