ResizeProgressMessage.fromXml constructor
ResizeProgressMessage.fromXml(
- XmlElement elem
Implementation
factory ResizeProgressMessage.fromXml(_s.XmlElement elem) {
return ResizeProgressMessage(
avgResizeRateInMegaBytesPerSecond:
_s.extractXmlDoubleValue(elem, 'AvgResizeRateInMegaBytesPerSecond'),
dataTransferProgressPercent:
_s.extractXmlDoubleValue(elem, 'DataTransferProgressPercent'),
elapsedTimeInSeconds: _s.extractXmlIntValue(elem, 'ElapsedTimeInSeconds'),
estimatedTimeToCompletionInSeconds:
_s.extractXmlIntValue(elem, 'EstimatedTimeToCompletionInSeconds'),
importTablesCompleted: _s
.extractXmlChild(elem, 'ImportTablesCompleted')
?.let((elem) => _s.extractXmlStringListValues(elem, 'member')),
importTablesInProgress: _s
.extractXmlChild(elem, 'ImportTablesInProgress')
?.let((elem) => _s.extractXmlStringListValues(elem, 'member')),
importTablesNotStarted: _s
.extractXmlChild(elem, 'ImportTablesNotStarted')
?.let((elem) => _s.extractXmlStringListValues(elem, 'member')),
message: _s.extractXmlStringValue(elem, 'Message'),
progressInMegaBytes: _s.extractXmlIntValue(elem, 'ProgressInMegaBytes'),
resizeType: _s.extractXmlStringValue(elem, 'ResizeType'),
status: _s.extractXmlStringValue(elem, 'Status'),
targetClusterType: _s.extractXmlStringValue(elem, 'TargetClusterType'),
targetEncryptionType:
_s.extractXmlStringValue(elem, 'TargetEncryptionType'),
targetNodeType: _s.extractXmlStringValue(elem, 'TargetNodeType'),
targetNumberOfNodes: _s.extractXmlIntValue(elem, 'TargetNumberOfNodes'),
totalResizeDataInMegaBytes:
_s.extractXmlIntValue(elem, 'TotalResizeDataInMegaBytes'),
);
}