LifecycleExpiration.fromXml constructor

LifecycleExpiration.fromXml(
  1. XmlElement? xml
)

Implementation

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