from static method

CorrelationType from(
  1. String identifier
)

Implementation

static CorrelationType from(String identifier) {
  for (final type in CorrelationType.values) {
    if (type.identifier == identifier) {
      return type;
    }
  }
  throw InvalidValueException('Unknown identifier: $identifier');
}