Destination.fromXml constructor

Destination.fromXml(
  1. XmlElement? xml
)

Implementation

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