toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ServiceUpdateSeverity.critical:
      return 'critical';
    case ServiceUpdateSeverity.important:
      return 'important';
    case ServiceUpdateSeverity.medium:
      return 'medium';
    case ServiceUpdateSeverity.low:
      return 'low';
  }
}