fromWire static method

CommandStatus fromWire(
  1. String v
)

Implementation

static CommandStatus fromWire(String v) => values.firstWhere(
      (s) => s.wire == v,
      orElse: () => throw FormatException('unknown command status: $v'),
    );