buildXml method

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

Implementation

@override
void buildXml(
  XmlBuilder builder, {
  String tag = 'Source',
  String? namespace = Xmlns.trc,
}) =>
    builder.element(tag, nest: () {
      builder.namespace(namespace!);

      sourceToken?.buildXml(builder);

      if (autoCreateReceiver != null) {
        builder.element('AutoCreateReceiver', nest: () {
          builder.namespace(Xmlns.trc);
          builder.text(autoCreateReceiver! ? 'true' : 'false');
        });
      }
    });