toValue method
Implementation
String toValue() {
switch (this) {
case Severity.low:
return 'Low';
case Severity.medium:
return 'Medium';
case Severity.high:
return 'High';
case Severity.informational:
return 'Informational';
case Severity.undefined:
return 'Undefined';
}
}