toXml method

XmlNode toXml()

Implementation

XmlNode toXml() {
  final builder = XmlBuilder();
  builder.element('RedirectAllRequestsTo', nest: () {
    builder.element('HostName', nest: hostName);
    builder.element('Protocol', nest: protocol);
  });
  return builder.buildDocument();
}