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