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

Method deserialise

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

Source from the content-addressed store, hash-verified

28216 return (void 0 !== i && (o.content = i), o)
28217 }
28218 deserialise(s) {
28219 if (!s.element)
28220 throw new Error('Given value is not an object containing an element name')
28221 const o = new (this.namespace.getElementClass(s.element))()
28222 ;(o.element !== s.element && (o.element = s.element),
28223 s.meta && this.deserialiseObject(s.meta, o.meta),
28224 s.attributes && this.deserialiseObject(s.attributes, o.attributes))
28225 const i = this.deserialiseContent(s.content)
28226 return ((void 0 === i && null !== o.content) || (o.content = i), o)
28227 }
28228 serialiseContent(s) {
28229 if (s instanceof this.namespace.elements.Element) return this.serialise(s)
28230 if (s instanceof this.namespace.KeyValuePair) {

Callers 3

deserialiseContentMethod · 0.95
deserialiseObjectMethod · 0.95
fromRefractMethod · 0.45

Calls 3

deserialiseObjectMethod · 0.95
deserialiseContentMethod · 0.95
getElementClassMethod · 0.80

Tested by

no test coverage detected