toXml method
XmlElement
toXml(
- String elemName, {
- List<XmlAttribute>? attributes,
})
Implementation
_s.XmlElement toXml(String elemName, {List<_s.XmlAttribute>? attributes}) {
final accountId = this.accountId;
final manifest = this.manifest;
final operation = this.operation;
final priority = this.priority;
final report = this.report;
final roleArn = this.roleArn;
final clientRequestToken = this.clientRequestToken;
final confirmationRequired = this.confirmationRequired;
final description = this.description;
final tags = this.tags;
final $children = <_s.XmlNode>[
if (confirmationRequired != null)
_s.encodeXmlBoolValue('ConfirmationRequired', confirmationRequired),
operation.toXml('Operation'),
report.toXml('Report'),
if (clientRequestToken != null)
_s.encodeXmlStringValue('ClientRequestToken', clientRequestToken),
manifest.toXml('Manifest'),
if (description != null)
_s.encodeXmlStringValue('Description', description),
_s.encodeXmlIntValue('Priority', priority),
_s.encodeXmlStringValue('RoleArn', roleArn),
if (tags != null)
_s.XmlElement(
_s.XmlName('Tags'), [], tags.map((e) => e.toXml('member'))),
];
final $attributes = <_s.XmlAttribute>[
...?attributes,
];
return _s.XmlElement(
_s.XmlName(elemName),
$attributes,
$children,
);
}