DataTransferProgress.fromXml constructor
DataTransferProgress.fromXml(
- 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'),
);
}