Destination.fromXml constructor

Destination.fromXml(
  1. XmlElement elem
)

Implementation

factory Destination.fromXml(_s.XmlElement elem) {
  return Destination(
    bucket: _s.extractXmlStringValue(elem, 'Bucket')!,
    accessControlTranslation: _s
        .extractXmlChild(elem, 'AccessControlTranslation')
        ?.let((e) => AccessControlTranslation.fromXml(e)),
    account: _s.extractXmlStringValue(elem, 'Account'),
    encryptionConfiguration: _s
        .extractXmlChild(elem, 'EncryptionConfiguration')
        ?.let((e) => EncryptionConfiguration.fromXml(e)),
    metrics:
        _s.extractXmlChild(elem, 'Metrics')?.let((e) => Metrics.fromXml(e)),
    replicationTime: _s
        .extractXmlChild(elem, 'ReplicationTime')
        ?.let((e) => ReplicationTime.fromXml(e)),
    storageClass:
        _s.extractXmlStringValue(elem, 'StorageClass')?.toStorageClass(),
  );
}