toXml method

XmlNode toXml()

Implementation

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