S3AccessControlPolicy.fromXml constructor

S3AccessControlPolicy.fromXml(
  1. XmlElement elem
)

Implementation

factory S3AccessControlPolicy.fromXml(_s.XmlElement elem) {
  return S3AccessControlPolicy(
    accessControlList: _s
        .extractXmlChild(elem, 'AccessControlList')
        ?.let((e) => S3AccessControlList.fromXml(e)),
    cannedAccessControlList: _s
        .extractXmlStringValue(elem, 'CannedAccessControlList')
        ?.toS3CannedAccessControlList(),
  );
}