Skip to content

[I] XmlSerializationOptions

For Xml serialization. The name/itemsName will come from explicit setting of @encodedName("application/xml", "NAME") or @xml.Name("NAME") or original model/property name. Other properties come from @xml.attribute, @xml.ns, @xml.unwrapped. The itemsName and itemsNs are used for array items. If unwrapped is true, itemsName should always be same as the name. If unwrapped is false, itemsName could have different name.

PropertyType
attribute?boolean
itemsName?string
itemsNs?object
itemsNs.namespacestring
itemsNs.prefixstring
namestring
ns?object
ns.namespacestring
ns.prefixstring
unwrapped?boolean