domain~ GeneralMetadata

General metadata with a basic structure.

This metadata can be associated with a variety of objects within SolarNetwork, such as users, nodes, and datum.

Constructor

new GeneralMetadata(infoopt, propertyInfoopt, tagsopt)

Constructor.

Parameters:
NameTypeAttributesDescription
infoMap.<string, *><optional>

the general metadata map

propertyInfoMap.<string, Map.<string, *>><optional>

the property metadata map

tagsSet.<string><optional>

the tags

Methods

toJsonEncoding() → {string}

Get this object as a standard JSON encoded string value.

Returns:

the JSON encoded string

Type: 
string

(static) fromJsonEncoding(json) → {module:domain~GeneralMetadata}

Parse a JSON string into a module:domain~GeneralMetadata instance.

The JSON must be encoded the same way module:domain~GeneralMetadata#toJsonEncoding does.

Parameters:
NameTypeDescription
jsonstring

the JSON to parse

Returns:

the metadata instance

Type: 
module:domain~GeneralMetadata