toXml method
XmlElement
toXml(
- String elemName, {
- List<XmlAttribute>? attributes,
})
Implementation
_s.XmlElement toXml(String elemName, {List<_s.XmlAttribute>? attributes}) {
final lambdaFunctionConfigurations = this.lambdaFunctionConfigurations;
final queueConfigurations = this.queueConfigurations;
final topicConfigurations = this.topicConfigurations;
final $children = <_s.XmlNode>[
if (topicConfigurations != null)
...topicConfigurations.map((e) => e.toXml('TopicConfiguration')),
if (queueConfigurations != null)
...queueConfigurations.map((e) => e.toXml('QueueConfiguration')),
if (lambdaFunctionConfigurations != null)
...lambdaFunctionConfigurations
.map((e) => e.toXml('CloudFunctionConfiguration')),
];
final $attributes = <_s.XmlAttribute>[
...?attributes,
];
return _s.XmlElement(
_s.XmlName(elemName),
$attributes,
$children,
);
}