Converts JsonValue to JsonRpcError.
JsonValue
JsonRpcError
x.convert converts a value x of type T to type U
x.convert
x
T
U