tryFromString static method
tryFromString.
Implementation
static JsonRpcMethod? tryFromString(String? method) {
if (method == null) return null;
for (final e in JsonRpcMethod.values) {
if (e.value.toLowerCase() == method.toLowerCase()) return e;
}
return null;
}