fromValue static method

HttpTargetHttpMethod fromValue(
  1. String value
)

Implementation

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