Skip to main content

foundation-comms.serializer.deserialize

Home > @genesislcap/foundation-comms > Serializer > deserialize

Serializer.deserialize() method

Warning: This API is now obsolete.

  • Use deserialize from JSONSerializer from @genesislcap/foundation-utils instead.

Deserialize a Response object into the expected type T.

Signature:

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

Parameters

Parameter

Type

Description

response

Response

The Response object to deserialize.

Returns:

Promise<T>

A promise that resolves to the deserialized object of type T.