SchemaObject

Wrapper around a schema object.

Constructors

this
this(string type)

Creates a new schema object.

Members

Functions

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.

Properties

isRoot
bool isRoot [@property getter]

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

Variables

_isChild
bool _isChild;

Boolean determining whether the object is a child or not.

Meta