fromValue static method

PubsubConfigState fromValue(
  1. String value
)

Implementation

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