buildXml method

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

Implementation

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

      if (scheduleToken != null) {
        ReferenceToken(scheduleToken!)
            .buildXml(builder, tag: 'ScheduleToken', namespace: Xmlns.trc);
      }

      ReferenceToken(recordingToken)
          .buildXml(builder, tag: 'RecordingToken', namespace: Xmlns.trc);

      _$RecordingJobConfigurationModeEnumMap[mode]!
          .buildXml(builder, tag: 'Mode', namespace: Xmlns.trc);

      priority
          .toString()
          .buildXml(builder, tag: 'Priority', namespace: Xmlns.trc);

      source?.buildXml(builder);

      eventFilter?.buildXml(builder);
    });