InventoryS3BucketDestination.fromXml constructor

InventoryS3BucketDestination.fromXml(
  1. XmlElement elem
)

Implementation

factory InventoryS3BucketDestination.fromXml(_s.XmlElement elem) {
  return InventoryS3BucketDestination(
    bucket: _s.extractXmlStringValue(elem, 'Bucket')!,
    format: _s.extractXmlStringValue(elem, 'Format')!.toInventoryFormat(),
    accountId: _s.extractXmlStringValue(elem, 'AccountId'),
    encryption: _s
        .extractXmlChild(elem, 'Encryption')
        ?.let((e) => InventoryEncryption.fromXml(e)),
    prefix: _s.extractXmlStringValue(elem, 'Prefix'),
  );
}