toXml method

XmlNode toXml()

Implementation

XmlNode toXml() {
  final builder = XmlBuilder();
  builder.element(
    'CreateBucketConfiguration',
    nest: () {
      if (locationConstraint != null) {
        builder.element('LocationConstraint', nest: locationConstraint);
      }
    },
  );
  return builder.buildDocument();
}