| 26181 | return this.serialiseObject(o) |
| 26182 | } |
| 26183 | enumSerialiseContent(s) { |
| 26184 | if (s._attributes) { |
| 26185 | const o = s.attributes.get('enumerations') |
| 26186 | if (o && o.length > 0) |
| 26187 | return o.content.map((s) => { |
| 26188 | const o = s.clone() |
| 26189 | return (o.attributes.remove('typeAttributes'), this.serialise(o)) |
| 26190 | }) |
| 26191 | } |
| 26192 | if (s.content) { |
| 26193 | const o = s.content.clone() |
| 26194 | return (o.attributes.remove('typeAttributes'), [this.serialise(o)]) |
| 26195 | } |
| 26196 | return [] |
| 26197 | } |
| 26198 | deserialise(s) { |
| 26199 | if ('string' == typeof s) return new this.namespace.elements.String(s) |
| 26200 | if ('number' == typeof s) return new this.namespace.elements.Number(s) |