S3Location.fromXml constructor

S3Location.fromXml(
  1. XmlElement? xml
)

Implementation

S3Location.fromXml(XmlElement? xml) {
  accessControlList = Grant.fromXml(getProp(xml, 'AccessControlList'));
  bucketName = getProp(xml, 'BucketName')?.text;
  cannedACL = getProp(xml, 'CannedACL')?.text;
  encryption = Encryption.fromXml(getProp(xml, 'Encryption'));
  prefix = getProp(xml, 'Prefix')?.text;
  storageClass = getProp(xml, 'StorageClass')?.text;
  tagging = Tagging.fromXml(getProp(xml, 'Tagging'));
  userMetadata = MetadataEntry.fromXml(getProp(xml, 'UserMetadata'));
}