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

Method toJSON

projects/JavaScript/proto/test.js:6332–6403  ·  view source on GitHub ↗

* Convert struct to JSON * @this {!StructOptional} * @returns {!object} Struct value for JSON

()

Source from the content-addressed store, hash-verified

6330 * @returns {!object} Struct value for JSON
6331 */
6332 toJSON () {
6333 let parent = super.toJSON()
6334 let current = {
6335 f100: ((this.f100 != null) ? this.f100 : null),
6336 f101: ((this.f101 != null) ? this.f101 : null),
6337 f102: ((this.f102 != null) ? this.f102 : null),
6338 f103: ((this.f103 != null) ? this.f103 : null),
6339 f104: ((this.f104 != null) ? this.f104 : null),
6340 f105: ((this.f105 != null) ? this.f105 : null),
6341 f106: ((this.f106 != null) ? this.f106.charCodeAt(0) : null),
6342 f107: ((this.f107 != null) ? this.f107.charCodeAt(0) : null),
6343 f108: ((this.f108 != null) ? this.f108.charCodeAt(0) : null),
6344 f109: ((this.f109 != null) ? this.f109.charCodeAt(0) : null),
6345 f110: ((this.f110 != null) ? this.f110.charCodeAt(0) : null),
6346 f111: ((this.f111 != null) ? this.f111.charCodeAt(0) : null),
6347 f112: ((this.f112 != null) ? this.f112 : null),
6348 f113: ((this.f113 != null) ? this.f113 : null),
6349 f114: ((this.f114 != null) ? this.f114 : null),
6350 f115: ((this.f115 != null) ? this.f115 : null),
6351 f116: ((this.f116 != null) ? this.f116 : null),
6352 f117: ((this.f117 != null) ? this.f117 : null),
6353 f118: ((this.f118 != null) ? this.f118 : null),
6354 f119: ((this.f119 != null) ? this.f119 : null),
6355 f120: ((this.f120 != null) ? this.f120 : null),
6356 f121: ((this.f121 != null) ? this.f121 : null),
6357 f122: ((this.f122 != null) ? this.f122 : null),
6358 f123: ((this.f123 != null) ? this.f123 : null),
6359 f124: ((this.f124 != null) ? this.f124 : null),
6360 f125: ((this.f125 != null) ? this.f125 : null),
6361 f126: ((this.f126 != null) ? this.f126 : null),
6362 f127: ((this.f127 != null) ? this.f127 : null),
6363 f128: ((this.f128 != null) ? this.f128 : null),
6364 f129: ((this.f129 != null) ? this.f129 : null),
6365 f130: ((this.f130 != null) ? this.f130.toNumber() : null),
6366 f131: ((this.f131 != null) ? this.f131.toNumber() : null),
6367 f132: ((this.f132 != null) ? this.f132.toNumber() : null),
6368 f133: ((this.f133 != null) ? this.f133.toNumber() : null),
6369 f134: ((this.f134 != null) ? this.f134.toNumber() : null),
6370 f135: ((this.f135 != null) ? this.f135.toNumber() : null),
6371 f136: ((this.f136 != null) ? this.f136 : null),
6372 f137: ((this.f137 != null) ? this.f137 : null),
6373 f138: ((this.f138 != null) ? this.f138 : null),
6374 f139: ((this.f139 != null) ? this.f139 : null),
6375 f140: ((this.f140 != null) ? this.f140 : null),
6376 f141: ((this.f141 != null) ? this.f141 : null),
6377 f142: ((this.f142 != null) ? this.f142.toFixed() : null),
6378 f143: ((this.f143 != null) ? this.f143.toFixed() : null),
6379 f144: ((this.f144 != null) ? this.f144.toFixed() : null),
6380 f145: ((this.f145 != null) ? this.f145 : null),
6381 f146: ((this.f146 != null) ? this.f146 : null),
6382 f147: ((this.f147 != null) ? this.f147 : null),
6383 f148: ((this.f148 != null) ? (this.f148.getTime() * 1000000) : null),
6384 f149: ((this.f149 != null) ? (this.f149.getTime() * 1000000) : null),
6385 f150: ((this.f150 != null) ? (this.f150.getTime() * 1000000) : null),
6386 f151: ((this.f151 != null) ? this.f151.toString() : null),
6387 f152: ((this.f152 != null) ? this.f152.toString() : null),
6388 f153: ((this.f153 != null) ? this.f153.toString() : null),
6389 f154: ((this.f154 != null) ? this.f154 : null),

Callers

nothing calls this directly

Calls 3

toJSONMethod · 0.45
toNumberMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected