toXml method
XmlElement
toXml(
- String elemName, {
- List<XmlAttribute>? attributes,
})
Implementation
_s.XmlElement toXml(String elemName, {List<_s.XmlAttribute>? attributes}) {
final eventType = this.eventType;
final lambdaFunctionARN = this.lambdaFunctionARN;
final $children = <_s.XmlNode>[
if (lambdaFunctionARN != null)
_s.encodeXmlStringValue('LambdaFunctionARN', lambdaFunctionARN),
if (eventType != null)
_s.encodeXmlStringValue('EventType', eventType.toValue()),
];
final $attributes = <_s.XmlAttribute>[
...?attributes,
];
return _s.XmlElement(
_s.XmlName(elemName),
$attributes,
$children,
);
}