ContentType
Upgather SDK / ContentType
Class: ContentType
Defined in: lib/schema/ContentType.ts:7
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
Defined in: lib/schema/ContentType.ts:19
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
Properties
fields
fields:
object
Defined in: lib/schema/ContentType.ts:11
A map of field names to their types or definitions.
Index Signature
[key: string]: string
name
name:
string
Defined in: lib/schema/ContentType.ts:9
The name of the content type.