toXml method

XmlNode toXml()

Implementation

XmlNode toXml() {
  final builder = XmlBuilder();
  builder.element('PublicAccessBlockConfiguration', nest: () {
    builder.element('BlockPublicAcls',
        nest: blockPublicAcls! ? 'TRUE' : 'FALSE');
    builder.element('BlockPublicPolicy',
        nest: blockPublicPolicy! ? 'TRUE' : 'FALSE');
    builder.element('IgnorePublicAcls',
        nest: ignorePublicAcls! ? 'TRUE' : 'FALSE');
    builder.element('RestrictPublicBuckets',
        nest: restrictPublicBuckets! ? 'TRUE' : 'FALSE');
  });
  return builder.buildDocument();
}