MCPcopy Create free account
hub / github.com/breck7/scroll / _toObjectForSerialization

Method _toObjectForSerialization

external/.scrollLibs.js:16122–16131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16120 return JSON.stringify(this.toObject(), null, " ")
16121 }
16122 _toObjectForSerialization() {
16123 return this.length
16124 ? {
16125 atoms: this.atoms,
16126 subparticles: this.map(subparticle => subparticle._toObjectForSerialization())
16127 }
16128 : {
16129 atoms: this.atoms
16130 }
16131 }
16132 get asSExpression() {
16133 return this._toSExpression()
16134 }

Callers 1

asJsonMethod · 0.80

Calls 1

mapMethod · 0.95

Tested by

no test coverage detected