fromWireName static method

ReferenceParseErrorCode fromWireName(
  1. String value
)

Resolves a legacy string code to its typed equivalent.

Implementation

static ReferenceParseErrorCode fromWireName(String value) {
  for (final code in values) {
    if (code.wireName == value) return code;
  }
  return unknown;
}