Progress.fromXml constructor

Progress.fromXml(
  1. XmlElement? xml
)

Implementation

Progress.fromXml(XmlElement? xml) {
  bytesProcessed = int.tryParse(getProp(xml, 'BytesProcessed')!.text);
  bytesReturned = int.tryParse(getProp(xml, 'BytesReturned')!.text);
  bytesScanned = int.tryParse(getProp(xml, 'BytesScanned')!.text);
}