fromValue static method

LocationPolicyTargetShape fromValue(
  1. String value
)

Implementation

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