Skip to main content

foundation-comms.serializer

Home > @genesislcap/foundation-comms > Serializer

Serializer interface

A Serializer interface for serializing and deserializing objects.

Signature:

export interface Serializer 

Methods

Method

Description

deserialize(response)

Deserialize a Response object into the expected type T.

deserialize(event)

Deserialize a MessageEvent object into the expected type T.

deserialize(text)

Deserialize a string into the expected type T.

serialize(object)

Serialize the given object into a string.