Progress.fromXml constructor

Progress.fromXml(
  1. XmlElement? xml
)

Implementation

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