Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Serializer

The Serializer interfaces defines the set of methods for serializing and deserializing objects.

Hierarchy

  • Serializer

Index

Properties

Methods

Properties

Readonly format

format: string

The serializer format.

Methods

deserialize

  • deserialize(value: any): any
  • Deserializes and returns a new Javascript object.

    Parameters

    • value: any

      The object to be deserialized.

    Returns any

    The deserialized object.

serialize

  • serialize(obj: any): Buffer
  • Serializes the specified object and returns the {@link Buffer} containing the serialized data.

    Parameters

    • obj: any

      the object to be serialized

    Returns Buffer

    the {@link Buffer} containing the serialized data.