fromString static method
Converts the human readable severity
string into a Severity value.
Implementation
static Severity? fromString(String? severity) => severity != null
? values.firstWhere(
(value) => value._value == severity.toLowerCase(),
orElse: () => Severity.none,
)
: null;