Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Serializer

Controls the serialization of entities sent to and received from the server.

Hierarchy

  • Serializer

Implemented by

Index

Properties

Readonly supportedMediaTypes

supportedMediaTypes: string[]

A list of MIME types this serializer supports.

Methods

deserialize

  • deserialize<T>(text: string): T
  • Deserializes an entity.

    Type parameters

    • T

      The type of entity to deserialize.

    Parameters

    • text: string

      The string to deserialize into an entity.

    Returns T

serialize

  • serialize<T>(entity: T): string
  • Serializes an entity.

    Type parameters

    • T

      The type of entity to serialize.

    Parameters

    • entity: T

      The entity to serialize.

    Returns string

Generated using TypeDoc