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