src/domain/generalMetadata.js
/**
     * Parse a JSON string into a {@link module:domain~GeneralMetadata} instance.
     * 
     * The JSON must be encoded the same way {@link module:domain~GeneralMetadata#toJsonEncoding} does.
     * 
     * @param {string} json the JSON to parse
     * @returns {module:domain~GeneralMetadata} the metadata instance 
     */
Parse a JSON string into a  module:domain~GeneralMetadata instance.

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

@param {string} json the JSON to parse
@returns {module:domain~GeneralMetadata} the metadata instance
Parse a JSON string into a module : domain~GeneralMetadata instance . The JSON must be encoded the same way module : domain~GeneralMetadata#toJsonEncoding does . @param { string } json the JSON to parse @returns { module : domain~GeneralMetadata } the metadata instance
static fromJsonEncoding(json) {
        let m, pm, t;
        if ( json ) {
            const obj = JSON.parse(json);
            m = (obj['m'] ? objectToStringMap(obj['m']) : null);
            pm = (obj['pm'] ? objectToStringMap(obj['pm']) : null);
            t = (Array.isArray(obj['t']) ? new Set(obj['t']) : null);
        }
        return new GeneralMetadata(m, pm, t);
    }
static fromJsonEncoding ( json ) { let m , pm , t ; if ( json ) { const obj = JSON . parse ( json ) ; m = ( obj [ 'm' ] ? objectToStringMap ( obj [ 'm' ] ) : null ) ; pm = ( obj [ 'pm' ] ? objectToStringMap ( obj [ 'pm' ] ) : null ) ; t = ( Array . isArray ( obj [ 't' ] ) ? new Set ( obj [ 't' ] ) : null ) ; } return new GeneralMetadata ( m , pm , t ) ; }
Parse a JSON string into a {@link module:domain~GeneralMetadata} instance.
Parse a JSON string into a { @link module : domain~GeneralMetadata } instance .