fromMethodName static method

RequestMethod fromMethodName(
  1. String? name
)

Implementation

static RequestMethod fromMethodName(String? name) {
  return values.firstWhere(
    (e) => e.name == name,
    orElse:
        () =>
            throw BuError(
              DefaultErrorType.notFound,
              "No matching RequestMethod found for the given value. $name",
              details: {"name": "RequestMethod", "value": name?.toString()},
            ),
  );
}