toXml method

XmlNode toXml()

Implementation

XmlNode toXml() {
  final builder = XmlBuilder();
  builder.element('LifecycleExpiration', nest: () {
    builder.element('Date', nest: date!.toIso8601String());
    builder.element('Days', nest: days.toString());
    builder.element('ExpiredObjectDeleteMarker',
        nest: expiredObjectDeleteMarker! ? 'TRUE' : 'FALSE');
  });
  return builder.buildDocument();
}