toXml method
XmlElement
toXml()
Implementation
XmlElement toXml() {
final builder = XmlBuilder();
builder.element(
'Object',
nest: () {
builder.element('Key', nest: key);
if (versionId != null) {
builder.element('VersionId', nest: versionId);
}
},
);
return builder.buildDocument().rootElement;
}