toXml method

XmlNode toXml()

Implementation

XmlNode toXml() {
  final builder = XmlBuilder();
  builder.element('TargetGrant', nest: () {
    builder.element('Grantee', nest: grantee!.toXml());
    builder.element('Permission', nest: permission);
  });
  return builder.buildDocument();
}