toXml method

XmlNode toXml()

Implementation

XmlNode toXml() {
  final builder = XmlBuilder();
  builder.element('Transition', nest: () {
    builder.element('Date', nest: date!.toIso8601String());
    builder.element('Days', nest: days.toString());
    builder.element('StorageClass', nest: storageClass);
  });
  return builder.buildDocument();
}