toXml method

void toXml()

Implementation

void toXml() {
  Transport.builder.element('Source', nest: () {
    Transport.builder.namespace(Xmlns.tt);

    Transport.builder.element('SourceId', nest: () {
      Transport.builder.namespace(Xmlns.tt);
      Transport.builder.text(sourceId);
    });

    Transport.builder.element('Name', nest: () {
      Transport.builder.namespace(Xmlns.tt);
      Transport.builder.text(name);
    });

    Transport.builder.element('Location', nest: () {
      Transport.builder.namespace(Xmlns.tt);
      Transport.builder.text(location);
    });

    Transport.builder.element('Description', nest: () {
      Transport.builder.namespace(Xmlns.tt);
      Transport.builder.text(description);
    });

    Transport.builder.element('Address', nest: () {
      Transport.builder.namespace(Xmlns.tt);
      Transport.builder.text(address);
    });
  });
}