toXml method

XmlNode toXml()

Implementation

XmlNode toXml() {
  final builder = XmlBuilder();
  builder.element(
    'SelectParameters',
    nest: () {
      builder.element('Expression', nest: expression);
      builder.element('ExpressionType', nest: expressionType);
      builder.element(
        'InputSerialization',
        nest: inputSerialization!.toXml(),
      );
      builder.element(
        'OutputSerialization',
        nest: outputSerialization!.toXml(),
      );
    },
  );
  return builder.buildDocument();
}