DBClusterSnapshot.fromXml constructor
DBClusterSnapshot.fromXml(
- XmlElement elem
Implementation
factory DBClusterSnapshot.fromXml(_s.XmlElement elem) {
return DBClusterSnapshot(
allocatedStorage: _s.extractXmlIntValue(elem, 'AllocatedStorage'),
availabilityZones: _s.extractXmlChild(elem, 'AvailabilityZones')?.let(
(elem) => _s.extractXmlStringListValues(elem, 'AvailabilityZone')),
clusterCreateTime: _s.extractXmlDateTimeValue(elem, 'ClusterCreateTime'),
dBClusterIdentifier:
_s.extractXmlStringValue(elem, 'DBClusterIdentifier'),
dBClusterSnapshotArn:
_s.extractXmlStringValue(elem, 'DBClusterSnapshotArn'),
dBClusterSnapshotIdentifier:
_s.extractXmlStringValue(elem, 'DBClusterSnapshotIdentifier'),
engine: _s.extractXmlStringValue(elem, 'Engine'),
engineVersion: _s.extractXmlStringValue(elem, 'EngineVersion'),
iAMDatabaseAuthenticationEnabled:
_s.extractXmlBoolValue(elem, 'IAMDatabaseAuthenticationEnabled'),
kmsKeyId: _s.extractXmlStringValue(elem, 'KmsKeyId'),
licenseModel: _s.extractXmlStringValue(elem, 'LicenseModel'),
masterUsername: _s.extractXmlStringValue(elem, 'MasterUsername'),
percentProgress: _s.extractXmlIntValue(elem, 'PercentProgress'),
port: _s.extractXmlIntValue(elem, 'Port'),
snapshotCreateTime:
_s.extractXmlDateTimeValue(elem, 'SnapshotCreateTime'),
snapshotType: _s.extractXmlStringValue(elem, 'SnapshotType'),
sourceDBClusterSnapshotArn:
_s.extractXmlStringValue(elem, 'SourceDBClusterSnapshotArn'),
status: _s.extractXmlStringValue(elem, 'Status'),
storageEncrypted: _s.extractXmlBoolValue(elem, 'StorageEncrypted'),
tagList: _s.extractXmlChild(elem, 'TagList')?.let((elem) =>
elem.findElements('Tag').map((c) => Tag.fromXml(c)).toList()),
vpcId: _s.extractXmlStringValue(elem, 'VpcId'),
);
}