Skip to main content

ContentType

Upgather SDK


Upgather SDK / ContentType

Class: ContentType

Represents a dynamic content type with a name and fields.

Remarks​

This class defines the structure of a content type as provided by the backend.

Constructors​

new ContentType()​

new ContentType(name, fields?): ContentType

Creates an instance of ContentType.

Parameters​

name​

string

The name of the content type.

fields?​

(Optional) A map of field names to their definitions.

Returns​

ContentType

Properties​

fields​

fields: object

A map of field names to their types or definitions.

Index Signature​

[key: string]: string


name​

name: string

The name of the content type.