toXml method

XmlNode toXml()

Implementation

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