DBClusterSnapshot.fromXml constructor

DBClusterSnapshot.fromXml(
  1. XmlElement elem
)

Implementation

factory DBClusterSnapshot.fromXml(_s.XmlElement elem) {
  return DBClusterSnapshot(
    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'),
    kmsKeyId: _s.extractXmlStringValue(elem, 'KmsKeyId'),
    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'),
    vpcId: _s.extractXmlStringValue(elem, 'VpcId'),
  );
}