toSeverityLabel method

SeverityLabel toSeverityLabel()

Implementation

SeverityLabel toSeverityLabel() {
  switch (this) {
    case 'INFORMATIONAL':
      return SeverityLabel.informational;
    case 'LOW':
      return SeverityLabel.low;
    case 'MEDIUM':
      return SeverityLabel.medium;
    case 'HIGH':
      return SeverityLabel.high;
    case 'CRITICAL':
      return SeverityLabel.critical;
  }
  throw Exception('$this is not known in enum SeverityLabel');
}