fromWireValue static method

IncomingAcceptStrategy fromWireValue(
  1. String raw
)

Parses raw. Returns openImmediately for unknown or empty values.

Implementation

static IncomingAcceptStrategy fromWireValue(String raw) {
  for (final value in IncomingAcceptStrategy.values) {
    if (value.wireValue == raw) {
      return value;
    }
  }
  return IncomingAcceptStrategy.openImmediately;
}