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