toValidationSeverity method

ValidationSeverity toValidationSeverity()

Implementation

ValidationSeverity toValidationSeverity() {
  switch (this) {
    case 'error':
      return ValidationSeverity.error;
    case 'warning':
      return ValidationSeverity.warning;
  }
  throw Exception('$this is not known in enum ValidationSeverity');
}