fromValue static method

InstanceNicType fromValue(
  1. String value
)

Implementation

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