Converts a JSON RPC response of type T to JSON.
typedef JsonRpcClientDecoder<T> = Converter<T, FutureOr<dynamic>>;