DefaultRetention.fromXml constructor

DefaultRetention.fromXml(
  1. XmlElement elem
)

Implementation

factory DefaultRetention.fromXml(_s.XmlElement elem) {
  return DefaultRetention(
    days: _s.extractXmlIntValue(elem, 'Days'),
    mode: _s.extractXmlStringValue(elem, 'Mode')?.toObjectLockRetentionMode(),
    years: _s.extractXmlIntValue(elem, 'Years'),
  );
}