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