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

Method enumSerialiseContent

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

Source from the content-addressed store, hash-verified

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)

Callers 1

serialiseMethod · 0.95

Calls 5

serialiseMethod · 0.95
getMethod · 0.65
removeMethod · 0.65
mapMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected