byName static method

QueryType? byName(
  1. String wireName
)

The value whose name is wireName, or null when this version names none (absent) — how a file that names a value is read.

Implementation

static QueryType? byName(String wireName) {
  for (final value in values) {
    if (value.name == wireName) return value;
  }
  return null;
}