toXml method

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

Implementation

_s.XmlElement toXml(String elemName, {List<_s.XmlAttribute>? attributes}) {
  final bucket = this.bucket;
  final enabled = this.enabled;
  final includeCookies = this.includeCookies;
  final prefix = this.prefix;
  final $children = <_s.XmlNode>[
    _s.encodeXmlBoolValue('Enabled', enabled),
    _s.encodeXmlBoolValue('IncludeCookies', includeCookies),
    _s.encodeXmlStringValue('Bucket', bucket),
    _s.encodeXmlStringValue('Prefix', prefix),
  ];
  final $attributes = <_s.XmlAttribute>[
    ...?attributes,
  ];
  return _s.XmlElement(
    _s.XmlName(elemName),
    $attributes,
    $children,
  );
}