foundation-comms.serializer.deserialize
Home > @genesislcap/foundation-comms > Serializer > deserialize
Serializer.deserialize() method
Warning: This API is now obsolete.
- Use
deserializefromJSONSerializerfrom@genesislcap/foundation-utilsinstead.
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.