Transition.fromXml constructor

Transition.fromXml(
  1. XmlElement? xml
)

Implementation

Transition.fromXml(XmlElement? xml) {
  date = DateTime.parse(getProp(xml, 'Date')!.innerText);
  days = int.tryParse(getProp(xml, 'Days')!.innerText);
  storageClass = getProp(xml, 'StorageClass')?.innerText;
}