DefaultRetention.fromXml constructor

DefaultRetention.fromXml(
  1. XmlElement? xml
)

Implementation

DefaultRetention.fromXml(XmlElement? xml) {
  days = int.tryParse(getProp(xml, 'Days')!.text);
  mode = getProp(xml, 'Mode')?.text;
  years = int.tryParse(getProp(xml, 'Years')!.text);
}