Class: GeneralMetadata

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.


new GeneralMetadata( [info] [, propertyInfo] [, tags])

Constructor.

Parameters:
Name Type Argument Description
info Map.<string, *> <optional>

the general metadata map

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

the property metadata map

tags Set.<string> <optional>

the tags

Methods


<static> fromJsonEncoding(json)

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

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

Parameters:
Name Type Description
json string

the JSON to parse

Returns:

the metadata instance

Type
module:domain~GeneralMetadata

toJsonEncoding()

Get this object as a standard JSON encoded string value.

Returns:

the JSON encoded string

Type
string