toXml method
XmlElement
toXml(
- String elemName, {
- List<XmlAttribute>? attributes,
})
Implementation
_s.XmlElement toXml(String elemName, {List<_s.XmlAttribute>? attributes}) {
final buckets = this.buckets;
final regions = this.regions;
final $children = <_s.XmlNode>[
if (buckets != null)
_s.XmlElement(_s.XmlName('Buckets'), [],
buckets.map((e) => _s.encodeXmlStringValue('Arn', e))),
if (regions != null)
_s.XmlElement(_s.XmlName('Regions'), [],
regions.map((e) => _s.encodeXmlStringValue('Region', e))),
];
final $attributes = <_s.XmlAttribute>[
...?attributes,
];
return _s.XmlElement(
_s.XmlName(elemName),
$attributes,
$children,
);
}