httpMethodFrom function

HttpMethod? httpMethodFrom(
  1. String? name
)

Implementation

HttpMethod? httpMethodFrom(String? name) {
  if (name == null) return null;
  return HttpMethod.values.firstWhere((e) => e.method == name);
}