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: 15 March, 2024