fromWire static method

GatewayErrorCode fromWire(
  1. String? value
)

Implementation

static GatewayErrorCode fromWire(String? value) {
  if (value == null) return GatewayErrorCode.unknown;
  for (final c in GatewayErrorCode.values) {
    if (c.wire == value) return c;
  }
  return GatewayErrorCode.unknown;
}