toXml method

XmlNode toXml()

Implementation

XmlNode toXml() {
  final builder = XmlBuilder();
  builder.element(
    'OutputLocation',
    nest: () {
      if (s3 != null) {
        builder.element(
          'S3',
          nest: (s3!.toXml() as XmlDocument).rootElement.children,
        );
      }
    },
  );
  return builder.buildDocument();
}