Skip to main content

foundation-utils.jsonserializer.deserialize

Home > @genesislcap/foundation-utils > JSONSerializer > deserialize

JSONSerializer.deserialize() method

Deserializes a response object from a HTTP request to a JavaScript object.

Signature:

deserialize<T = any>(response: Response): Promise<T>;

Parameters

Parameter

Type

Description

response

Response

The HTTP response object.

Returns:

Promise<T>

A promise that resolves to the deserialized JavaScript object.