As a workaround its possible to add the attached extension method to the IClient type which will enable usage which looks like:
var payload = new Dictionary<string, string>
{
{"foo", "bar"}
};
try
{
var rpcResponse = await _client.RpcAsyncPost(HttpKey, RpcId, payload.ToJson());
Debug.LogFormat("rpcResponse: {0}", rpcResponse);
}
catch (ApiResponseException e)
{
Debug.LogException(e);
}
A proper fix should be implemented in the code generator for the client sdk to handle this special case logic.
RpcHttpKeyExtensions.cs.txt
As a workaround its possible to add the attached extension method to the
IClienttype which will enable usage which looks like:A proper fix should be implemented in the code generator for the client sdk to handle this special case logic.
RpcHttpKeyExtensions.cs.txt