Destination.fromXml constructor

Destination.fromXml(
  1. XmlElement? xml
)

Implementation

Destination.fromXml(XmlElement? xml) {
  accessControlTranslation = AccessControlTranslation.fromXml(
    getProp(xml, 'AccessControlTranslation'),
  );
  account = getProp(xml, 'Account')?.innerText;
  bucket = getProp(xml, 'Bucket')?.innerText;
  encryptionConfiguration = EncryptionConfiguration.fromXml(
    getProp(xml, 'EncryptionConfiguration'),
  );
  metrics = Metrics.fromXml(getProp(xml, 'Metrics'));
  replicationTime = ReplicationTime.fromXml(getProp(xml, 'ReplicationTime'));
  storageClass = getProp(xml, 'StorageClass')?.innerText;
}