toSeverityLevel method
Implementation
SeverityLevel toSeverityLevel() {
switch (this) {
case 'Low':
return SeverityLevel.low;
case 'Medium':
return SeverityLevel.medium;
case 'High':
return SeverityLevel.high;
}
throw Exception('$this is not known in enum SeverityLevel');
}