toXml method
XmlElement
toXml(
- String elemName, {
- List<XmlAttribute>? attributes,
})
Implementation
_s.XmlElement toXml(String elemName, {List<_s.XmlAttribute>? attributes}) {
final applyServerSideEncryptionByDefault =
this.applyServerSideEncryptionByDefault;
final bucketKeyEnabled = this.bucketKeyEnabled;
final $children = <_s.XmlNode>[
if (applyServerSideEncryptionByDefault != null)
applyServerSideEncryptionByDefault
.toXml('ApplyServerSideEncryptionByDefault'),
if (bucketKeyEnabled != null)
_s.encodeXmlBoolValue('BucketKeyEnabled', bucketKeyEnabled),
];
final $attributes = <_s.XmlAttribute>[
...?attributes,
];
return _s.XmlElement(
_s.XmlName(elemName),
$attributes,
$children,
);
}