toXml method
XmlElement
toXml(
- String elemName, {
- List<XmlAttribute>? attributes,
})
Implementation
_s.XmlElement toXml(String elemName, {List<_s.XmlAttribute>? attributes}) {
final accountId = this.accountId;
final arn = this.arn;
final format = this.format;
final outputSchemaVersion = this.outputSchemaVersion;
final encryption = this.encryption;
final prefix = this.prefix;
final $children = <_s.XmlNode>[
_s.encodeXmlStringValue('Format', format.toValue()),
_s.encodeXmlStringValue(
'OutputSchemaVersion', outputSchemaVersion.toValue()),
_s.encodeXmlStringValue('AccountId', accountId),
_s.encodeXmlStringValue('Arn', arn),
if (prefix != null) _s.encodeXmlStringValue('Prefix', prefix),
if (encryption != null) encryption.toXml('Encryption'),
];
final $attributes = <_s.XmlAttribute>[
...?attributes,
];
return _s.XmlElement(
_s.XmlName(elemName),
$attributes,
$children,
);
}