toXml method

XmlElement toXml(
  1. String elemName, {
  2. List<XmlAttribute>? attributes,
})

Implementation

_s.XmlElement toXml(String elemName, {List<_s.XmlAttribute>? attributes}) {
  final marker = this.marker;
  final maxItems = this.maxItems;
  final realtimeLogConfigArn = this.realtimeLogConfigArn;
  final realtimeLogConfigName = this.realtimeLogConfigName;
  final $children = <_s.XmlNode>[
    if (marker != null) _s.encodeXmlStringValue('Marker', marker),
    if (maxItems != null) _s.encodeXmlStringValue('MaxItems', maxItems),
    if (realtimeLogConfigName != null)
      _s.encodeXmlStringValue('RealtimeLogConfigName', realtimeLogConfigName),
    if (realtimeLogConfigArn != null)
      _s.encodeXmlStringValue('RealtimeLogConfigArn', realtimeLogConfigArn),
  ];
  final $attributes = <_s.XmlAttribute>[
    ...?attributes,
  ];
  return _s.XmlElement(
    _s.XmlName(elemName),
    $attributes,
    $children,
  );
}