toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case SeverityRating.low:
      return 'LOW';
    case SeverityRating.medium:
      return 'MEDIUM';
    case SeverityRating.high:
      return 'HIGH';
    case SeverityRating.critical:
      return 'CRITICAL';
  }
}