MCPcopy Create free account
hub / github.com/cryptii/cryptii / serialize

Method serialize

src/Encoder.js:162–168  ·  view source on GitHub ↗

* Serializes brick to a JSON serializable value. * @return {mixed} Serialized data

()

Source from the content-addressed store, hash-verified

160 * @return {mixed} Serialized data
161 */
162 serialize () {
163 const object = super.serialize()
164 if (this.isReverse()) {
165 object.reverse = true
166 }
167 return object
168 }
169
170 /**
171 * Creates a copy of this brick.

Callers

nothing calls this directly

Calls 1

isReverseMethod · 0.95

Tested by

no test coverage detected