serializr
    Preparing search index...

    Function serialize

    • Serializes an object (graph) into json using the provided model schema. The model schema can be omitted if the object type has a default model schema associated with it. If a list of objects is provided, they should have an uniform type.

      Type Parameters

      • T

      Parameters

      Returns any

      serialized representation of the object

    • Serializes an object (graph) into json using the provided model schema. The model schema can be omitted if the object type has a default model schema associated with it. If a list of objects is provided, they should have an uniform type.

      Type Parameters

      • T

      Parameters

      • instance: T

      Returns any

      serialized representation of the object

    • Serializes an object (graph) into json using the provided model schema. The model schema can be omitted if the object type has a default model schema associated with it. If a list of objects is provided, they should have an uniform type.

      Type Parameters

      • T

      Parameters

      Returns any

      serialized representation of the object

    • Serializes an object (graph) into json using the provided model schema. The model schema can be omitted if the object type has a default model schema associated with it. If a list of objects is provided, they should have an uniform type.

      Type Parameters

      • T

      Parameters

      • instance: T[]

      Returns any

      serialized representation of the object