toXml method
XmlNode
toXml()
Implementation
XmlNode toXml() {
final builder = XmlBuilder();
builder.element('Rule', nest: () {
builder.element('AbortIncompleteMultipartUpload',
nest: abortIncompleteMultipartUpload!.toXml());
builder.element('Expiration', nest: expiration!.toXml());
builder.element('ID', nest: iD);
builder.element('NoncurrentVersionExpiration',
nest: noncurrentVersionExpiration!.toXml());
builder.element('NoncurrentVersionTransition',
nest: noncurrentVersionTransition!.toXml());
builder.element('Prefix', nest: prefix);
builder.element('Status', nest: status);
builder.element('Transition', nest: transition!.toXml());
});
return builder.buildDocument();
}