fromValue static method

InstanceType fromValue(
  1. String value
)

Implementation

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