MCPcopy
hub / github.com/Doorman11991/smallcode / toJSON

Method toJSON

src/session/contract.js:161–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

159 }
160
161 toJSON() {
162 return {
163 id: this.id,
164 title: this.title,
165 created_at: this.created_at,
166 status: this.status,
167 brief: this.brief,
168 assertions: this.assertions,
169 features: this.features,
170 };
171 }
172
173 pending() { return this.assertions.filter((a) => a.state === STATES.PENDING); }
174 failed() { return this.assertions.filter((a) => a.state === STATES.FAILED); }

Callers 1

saveMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected