stringToSeverity function

Severity stringToSeverity(
  1. String severity
)

Implementation

Severity stringToSeverity(String severity) {
  return Severity.values.firstWhere((e) => e.toString().split('.').last == severity);
}