MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / toJSON

Method toJSON

src/lib/fileList.js:612–623  ·  view source on GitHub ↗

* To tree object to json * @returns {TreeJson}

()

Source from the content-addressed store, hash-verified

610 * @returns {TreeJson}
611 */
612 toJSON() {
613 return {
614 name: this.#name,
615 url: this.#url,
616 path: this.#path,
617 parent: this.#parent?.url,
618 mime: this.mime,
619 size: this.size,
620 modifiedDate: this.modifiedDate,
621 isDirectory: !!this.#children,
622 };
623 }
624
625 /**
626 * Create a tree from json

Callers 3

restoreThemeFunction · 0.45
SettingsClass · 0.45
initMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected