(s)
| 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) { |
no test coverage detected