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