toXml method

XmlNode toXml()

Implementation

XmlNode toXml() {
  final builder = XmlBuilder();
  builder.element(
    'Initiator',
    nest: () {
      builder.element('DisplayName', nest: displayName);
      builder.element('ID', nest: iD);
    },
  );
  return builder.buildDocument();
}