DataTransferProgress.fromXml constructor

DataTransferProgress.fromXml(
  1. XmlElement elem
)

Implementation

factory DataTransferProgress.fromXml(_s.XmlElement elem) {
  return DataTransferProgress(
    currentRateInMegaBytesPerSecond:
        _s.extractXmlDoubleValue(elem, 'CurrentRateInMegaBytesPerSecond'),
    dataTransferredInMegaBytes:
        _s.extractXmlIntValue(elem, 'DataTransferredInMegaBytes'),
    elapsedTimeInSeconds: _s.extractXmlIntValue(elem, 'ElapsedTimeInSeconds'),
    estimatedTimeToCompletionInSeconds:
        _s.extractXmlIntValue(elem, 'EstimatedTimeToCompletionInSeconds'),
    status: _s.extractXmlStringValue(elem, 'Status'),
    totalDataInMegaBytes: _s.extractXmlIntValue(elem, 'TotalDataInMegaBytes'),
  );
}