Skip to content

Serializer

Represents a serializer interface that defines methods for serializing and deserializing data.

Methods

deserialize()?

optional deserialize(body, options?): unknown

Deserialize the given data.

Parameters

body: Record<string, unknown>

The data to be deserialized, represented as a record of string keys and unknown values.

options?: Record<string, unknown>

(Optional) Additional options to be used during deserialization.

Returns

unknown

The deserialized data, which may be of any type.

Source

types.ts:210


serialize()?

optional serialize(...args): unknown

Serialize the given data.

Parameters

• …args: unknown[]

The data to be serialized, represented as a record of string keys and unknown values.

Returns

unknown

The serialized data, which may be of any type.

Source

types.ts:220