toXml method

XmlNode toXml()

Implementation

XmlNode toXml() {
  final builder = XmlBuilder();
  builder.element('ErrorDocument', nest: () {
    builder.element('Key', nest: key);
  });
  return builder.buildDocument();
}