serialize #
Serializes the KuzzleRequest
object into a pair of POJOs that can be sent across the network, and then used to rebuild another equivalent KuzzleRequest
object.
Arguments #
serialize(): { data: JSONObject, options: JSONObject };
Example #
const { data, options } = request.serialize();
const otherRequest = new KuzzleRequest(data, options);
Edit this page on Github(opens new window)