toXml method

XmlElement toXml(
  1. String elemName, {
  2. 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,
  );
}