Parses error, warning or info.
error
warning
info
static Severity parse(String value) => Severity.values.firstWhere((s) => s.name == value);