fromMethodName static method
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()},
),
);
}