toXml method
XmlElement
toXml(
- String elemName, {
- List<XmlAttribute>? attributes,
})
Implementation
_s.XmlElement toXml(String elemName, {List<_s.XmlAttribute>? attributes}) {
final bucket = this.bucket;
final format = this.format;
final bucketAccountId = this.bucketAccountId;
final prefix = this.prefix;
final $children = <_s.XmlNode>[
_s.encodeXmlStringValue('Format', format.toValue()),
if (bucketAccountId != null)
_s.encodeXmlStringValue('BucketAccountId', bucketAccountId),
_s.encodeXmlStringValue('Bucket', bucket),
if (prefix != null) _s.encodeXmlStringValue('Prefix', prefix),
];
final $attributes = <_s.XmlAttribute>[
...?attributes,
];
return _s.XmlElement(
_s.XmlName(elemName),
$attributes,
$children,
);
}