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 ?? "0");
  expiredObjectDeleteMarker =
      getProp(xml, 'ExpiredObjectDeleteMarker')?.text.toUpperCase() == 'TRUE';
}