Constructor
new GeneralMetadata(infoopt, propertyInfoopt, tagsopt)
Constructor.
Parameters:
Name | Type | Attributes | 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 |
- Source
Methods
toJsonEncoding() → {string}
Get this object as a standard JSON encoded string value.
- Source
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:
Name | Type | Description |
---|---|---|
json | string | the JSON to parse |
- Source
Returns:
the metadata instance