parse static method

SmfHookProtocolPhase parse(
  1. String value
)

Parses one exact wire value.

Implementation

static SmfHookProtocolPhase parse(String value) {
  for (final phase in values) {
    if (phase.value == value) return phase;
  }
  throw FormatException('Unsupported SMF hook phase "$value".');
}