Product

static if(isWeb)
class Product : SchemaObject {}

Constructors

this
this()

Creates a new product.

this
this(string productType)

Creates a new product.

Inherited Members

From SchemaObject

_isChild
bool _isChild;

Boolean determining whether the object is a child or not.

isRoot
bool isRoot [@property getter]

Gets a boolean determining whether the schema object is a root object or not.

addField
void addField(string key, T schemaObject)

Adds a schema object field to the schema object.

addField
void addField(string key, T[] values)

Adds an array of schema objects to the schema object.

addField
void addField(string key, T value)

Adds a field to the schema object.

removeField
void removeField(string key)

Removes a field from the schema object.

toString
string toString()

Converts the schema object to a string that represent a JSON-LD object.

Meta