fromValue static method

IndexApiScope fromValue(
  1. String value
)

Implementation

static IndexApiScope fromValue(String value) {
  for (final item in IndexApiScope.values) {
    if (item.wireValue == value) {
      return item;
    }
  }
  throw ArgumentError('Unknown IndexApiScope value: $value');
}