toXml method

XmlNode toXml()

Implementation

XmlNode toXml() {
  final builder = XmlBuilder();
  builder.element('LoggingEnabled', nest: () {
    builder.element('TargetBucket', nest: targetBucket);
    builder.element('TargetGrants', nest: targetGrants!.toXml());
    builder.element('TargetPrefix', nest: targetPrefix);
  });
  return builder.buildDocument();
}