Transition.fromXml constructor

Transition.fromXml(
  1. XmlElement? xml
)

Implementation

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