Snapshot.fromXml constructor
Snapshot.fromXml(
- XmlElement elem
Implementation
factory Snapshot.fromXml(_s.XmlElement elem) {
return Snapshot(
accountsWithRestoreAccess: _s
.extractXmlChild(elem, 'AccountsWithRestoreAccess')
?.let((elem) => elem
.findElements('AccountWithRestoreAccess')
.map((c) => AccountWithRestoreAccess.fromXml(c))
.toList()),
actualIncrementalBackupSizeInMegaBytes: _s.extractXmlDoubleValue(
elem, 'ActualIncrementalBackupSizeInMegaBytes'),
availabilityZone: _s.extractXmlStringValue(elem, 'AvailabilityZone'),
backupProgressInMegaBytes:
_s.extractXmlDoubleValue(elem, 'BackupProgressInMegaBytes'),
clusterCreateTime: _s.extractXmlDateTimeValue(elem, 'ClusterCreateTime'),
clusterIdentifier: _s.extractXmlStringValue(elem, 'ClusterIdentifier'),
clusterVersion: _s.extractXmlStringValue(elem, 'ClusterVersion'),
currentBackupRateInMegaBytesPerSecond: _s.extractXmlDoubleValue(
elem, 'CurrentBackupRateInMegaBytesPerSecond'),
dBName: _s.extractXmlStringValue(elem, 'DBName'),
elapsedTimeInSeconds: _s.extractXmlIntValue(elem, 'ElapsedTimeInSeconds'),
encrypted: _s.extractXmlBoolValue(elem, 'Encrypted'),
encryptedWithHSM: _s.extractXmlBoolValue(elem, 'EncryptedWithHSM'),
engineFullVersion: _s.extractXmlStringValue(elem, 'EngineFullVersion'),
enhancedVpcRouting: _s.extractXmlBoolValue(elem, 'EnhancedVpcRouting'),
estimatedSecondsToCompletion:
_s.extractXmlIntValue(elem, 'EstimatedSecondsToCompletion'),
kmsKeyId: _s.extractXmlStringValue(elem, 'KmsKeyId'),
maintenanceTrackName:
_s.extractXmlStringValue(elem, 'MaintenanceTrackName'),
manualSnapshotRemainingDays:
_s.extractXmlIntValue(elem, 'ManualSnapshotRemainingDays'),
manualSnapshotRetentionPeriod:
_s.extractXmlIntValue(elem, 'ManualSnapshotRetentionPeriod'),
masterUsername: _s.extractXmlStringValue(elem, 'MasterUsername'),
nodeType: _s.extractXmlStringValue(elem, 'NodeType'),
numberOfNodes: _s.extractXmlIntValue(elem, 'NumberOfNodes'),
ownerAccount: _s.extractXmlStringValue(elem, 'OwnerAccount'),
port: _s.extractXmlIntValue(elem, 'Port'),
restorableNodeTypes: _s
.extractXmlChild(elem, 'RestorableNodeTypes')
?.let((elem) => _s.extractXmlStringListValues(elem, 'NodeType')),
snapshotCreateTime:
_s.extractXmlDateTimeValue(elem, 'SnapshotCreateTime'),
snapshotIdentifier: _s.extractXmlStringValue(elem, 'SnapshotIdentifier'),
snapshotRetentionStartTime:
_s.extractXmlDateTimeValue(elem, 'SnapshotRetentionStartTime'),
snapshotType: _s.extractXmlStringValue(elem, 'SnapshotType'),
sourceRegion: _s.extractXmlStringValue(elem, 'SourceRegion'),
status: _s.extractXmlStringValue(elem, 'Status'),
tags: _s.extractXmlChild(elem, 'Tags')?.let((elem) =>
elem.findElements('Tag').map((c) => Tag.fromXml(c)).toList()),
totalBackupSizeInMegaBytes:
_s.extractXmlDoubleValue(elem, 'TotalBackupSizeInMegaBytes'),
vpcId: _s.extractXmlStringValue(elem, 'VpcId'),
);
}