toServiceUpdateSeverity method

ServiceUpdateSeverity toServiceUpdateSeverity()

Implementation

ServiceUpdateSeverity toServiceUpdateSeverity() {
  switch (this) {
    case 'critical':
      return ServiceUpdateSeverity.critical;
    case 'important':
      return ServiceUpdateSeverity.important;
    case 'medium':
      return ServiceUpdateSeverity.medium;
    case 'low':
      return ServiceUpdateSeverity.low;
  }
  throw Exception('$this is not known in enum ServiceUpdateSeverity');
}