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
-
toJsonEncoding()
-
Get this object as a standard JSON encoded string value.
Returns:
the JSON encoded string
- Type
- string