dc-delivery-sdk-js
    Preparing search index...

    Class ContentItem<T>

    Class representing Content returned from the Content Delivery Service. The body property will contain the properties specified by the JSON schema content type. Any linked content items will be included inline in the body.

    Type Parameters

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    body: T

    Body of the content item. This object will contain the properties specified by the JSON schema content type. Any linked content items will be included inline in the body.

    Methods

    • Returns a plain JSON version of the content body, removing helper properties and functions. This should be used if your application needs to serialize the content body, e.g. in an API response.

      Returns any