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 accountId = this.accountId;
final encryption = this.encryption;
final prefix = this.prefix;
final $children = <_s.XmlNode>[
if (accountId != null) _s.encodeXmlStringValue('AccountId', accountId),
_s.encodeXmlStringValue('Bucket', bucket),
_s.encodeXmlStringValue('Format', format.toValue()),
if (prefix != null) _s.encodeXmlStringValue('Prefix', prefix),
if (encryption != null) encryption.toXml('Encryption'),
];
final $attributes = <_s.XmlAttribute>[
...?attributes,
];
return _s.XmlElement(
_s.XmlName(elemName),
$attributes,
$children,
);
}