MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / fromJSON

Method fromJSON

projects/JavaScript/proto/enums.js:3201–3203  ·  view source on GitHub ↗

* Convert JSON to struct * @param {!string} json JSON string * @returns {!object} Struct value for JSON

(json)

Source from the content-addressed store, hash-verified

3199 * @returns {!object} Struct value for JSON
3200 */
3201 static fromJSON (json) {
3202 return Enums.fromObject(JSON.parse(json))
3203 }
3204
3205 /**
3206 * Create struct from object value

Calls 2

fromObjectMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected