toXml method
XmlNode
toXml()
Implementation
XmlNode toXml() {
final builder = XmlBuilder();
builder.element(
'NotificationConfigurationDeprecated',
nest: () {
if (cloudFunctionConfiguration != null) {
builder.element(
'CloudFunctionConfiguration',
nest: (cloudFunctionConfiguration!.toXml() as XmlDocument)
.rootElement
.children,
);
}
if (queueConfiguration != null) {
builder.element(
'QueueConfiguration',
nest: (queueConfiguration!.toXml() as XmlDocument)
.rootElement
.children,
);
}
if (topicConfiguration != null) {
builder.element(
'TopicConfiguration',
nest: (topicConfiguration!.toXml() as XmlDocument)
.rootElement
.children,
);
}
},
);
return builder.buildDocument();
}