LifecycleExpiration.fromXml constructor

LifecycleExpiration.fromXml(
  1. XmlElement? xml
)

Implementation

LifecycleExpiration.fromXml(XmlElement? xml) {
  date = DateTime.parse(getProp(xml, 'Date')!.innerText);
  days = int.tryParse(getProp(xml, 'Days')!.innerText);
  expiredObjectDeleteMarker =
      getProp(xml, 'ExpiredObjectDeleteMarker')?.innerText.toUpperCase() ==
          'TRUE';
}