toXml method

XmlDocumentFragment toXml(
  1. XmlBuilder builder
)

Implementation

XmlDocumentFragment toXml(XmlBuilder builder) {
  builder.element(
    'AppSequence',
    namespaces: {Xmlns.ws: 'ws'},
    nest: () {
      builder.attribute(
        'MessageNumber',
        messageNumber,
      );

      builder.attribute(
        'InstanceId',
        instanceId,
      );
    },
  );

  return builder.buildFragment();
}