toXml method

XmlNode toXml()

Implementation

XmlNode toXml() {
  final builder = XmlBuilder();
  builder.element('LifecycleRule', nest: () {
    builder.element('AbortIncompleteMultipartUpload',
        nest: abortIncompleteMultipartUpload!.toXml());
    builder.element('Expiration', nest: expiration!.toXml());
    builder.element('Filter', nest: filter!.toXml());
    builder.element('ID', nest: iD);
    builder.element('NoncurrentVersionExpiration',
        nest: noncurrentVersionExpiration!.toXml());
    builder.element('NoncurrentVersionTransitions',
        nest: noncurrentVersionTransitions!.toXml());
    builder.element('Prefix', nest: prefix);
    builder.element('Status', nest: status);
    builder.element('Transitions', nest: transitions!.toXml());
  });
  return builder.buildDocument();
}