Content Class
A data structure that contains the Descriptor and a list of Item objects which are based on that descriptor.
Methods
Name | Description | |
---|---|---|
constructor(descriptor: Descriptor, items: Item[]): Content | Create a new Content instance | |
toJSON(): ContentJSON | Serialize this object to JSON | |
fromJSON(json: undefined | string | ContentJSON): undefined | Content Static | Deserialize Content from JSON |
Properties
Name | Type | Description | |
---|---|---|---|
contentSet Readonly | Item[] | Content items | |
descriptor Readonly | Descriptor | Descriptor used to create the content |
Defined in
Last Updated: 16 April, 2024
Found something wrong, missing, or unclear on this page?
Raise an issue in our repo.