PublicAccessBlockConfiguration.fromXml constructor

PublicAccessBlockConfiguration.fromXml(
  1. XmlElement elem
)

Implementation

factory PublicAccessBlockConfiguration.fromXml(_s.XmlElement elem) {
  return PublicAccessBlockConfiguration(
    blockPublicAcls: _s.extractXmlBoolValue(elem, 'BlockPublicAcls'),
    blockPublicPolicy: _s.extractXmlBoolValue(elem, 'BlockPublicPolicy'),
    ignorePublicAcls: _s.extractXmlBoolValue(elem, 'IgnorePublicAcls'),
    restrictPublicBuckets:
        _s.extractXmlBoolValue(elem, 'RestrictPublicBuckets'),
  );
}