MCPcopy Index your code
hub / github.com/dataease/SQLBot / serialiseContent

Method serialiseContent

frontend/public/swagger-ui-bundle.js:26246–26253  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

26244 return i
26245 }
26246 serialiseContent(s) {
26247 if (s instanceof this.namespace.elements.Element) return this.serialise(s)
26248 if (s instanceof this.namespace.KeyValuePair) {
26249 const o = { key: this.serialise(s.key) }
26250 return (s.value && (o.value = this.serialise(s.value)), o)
26251 }
26252 return s && s.map ? s.map(this.serialise, this) : s
26253 }
26254 deserialiseContent(s) {
26255 if (s) {
26256 if (s.element) return this.deserialise(s)

Callers 2

serialiseMethod · 0.95

Calls 2

serialiseMethod · 0.95
mapMethod · 0.45

Tested by

no test coverage detected