toXml method

XmlNode toXml()

Implementation

XmlNode toXml() {
  final builder = XmlBuilder();
  builder.element(
    'JSONInput',
    nest: () {
      if (type != null) {
        builder.element('Type', nest: type);
      }
    },
  );
  return builder.buildDocument();
}