fromValue static method

NetworkConfigModesItem fromValue(
  1. String value
)

Implementation

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