Function to convert Dart rpc map into JS rpc map.
dynamic convertRpc(Map<int, String> rpcMap) => jsify(rpcMap);