buildXml method

  1. @override
void buildXml(
  1. XmlBuilder builder, {
  2. String tag = 'Header',
  3. String? namespace = Xmlns.s,
})
override

Implementation

@override
void buildXml(
  XmlBuilder builder, {
  String tag = 'Header',
  String? namespace = Xmlns.s,
}) {
  builder.element(
    tag,
    namespace: namespace,
    nest: () {
      security?.buildXml(builder);

      appSequence?.buildXml(builder);

      messageID?.buildXml(
        builder,
        tag: 'MessageID',
      );

      relatesTo?.buildXml(
        builder,
        tag: 'RelatesTo',
      );

      to?.buildXml(
        builder,
        tag: 'To',
      );

      action?.buildXml(
        builder,
        tag: 'Action',
      );
    },
  );
}