tryFrom static method

CorrelationType? tryFrom(
  1. String identifier
)

The from exception handling

Implementation

static CorrelationType? tryFrom(String identifier) {
  try {
    return from(identifier);
  } on InvalidValueException {
    return null;
  }
}