MCPcopy Create free account
hub / github.com/chieapp/chie / serialize

Method serialize

src/model/web-service.ts:66–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64 }
65
66 serialize() {
67 const data: WebServiceData = {
68 name: this.name,
69 api: this.api.credential.id,
70 };
71 if (this.icon)
72 data.icon = this.icon.getChieURL();
73 if (!isEmptyObject(this.api.params))
74 data.apiParams = nonNullAssign({}, this.api.params);
75 if (!isEmptyObject(this.params))
76 data.params = nonNullAssign({}, this.params);
77 return data;
78 }
79
80 destructor() {
81 // Nothing to destructor by default.

Callers

nothing calls this directly

Calls 3

isEmptyObjectFunction · 0.90
nonNullAssignFunction · 0.90
getChieURLMethod · 0.80

Tested by

no test coverage detected