toSeverity method

Severity toSeverity()

Implementation

Severity toSeverity() {
  switch (this) {
    case 'Low':
      return Severity.low;
    case 'Medium':
      return Severity.medium;
    case 'High':
      return Severity.high;
    case 'Informational':
      return Severity.informational;
    case 'Undefined':
      return Severity.undefined;
  }
  throw Exception('$this is not known in enum Severity');
}