toXml method
XmlElement
toXml(
- String elemName, {
- List<XmlAttribute>? attributes,
})
Implementation
_s.XmlElement toXml(String elemName, {List<_s.XmlAttribute>? attributes}) {
final encryptionType = this.encryptionType;
final kMSContext = this.kMSContext;
final kMSKeyId = this.kMSKeyId;
final $children = <_s.XmlNode>[
_s.encodeXmlStringValue('EncryptionType', encryptionType.toValue()),
if (kMSKeyId != null) _s.encodeXmlStringValue('KMSKeyId', kMSKeyId),
if (kMSContext != null) _s.encodeXmlStringValue('KMSContext', kMSContext),
];
final $attributes = <_s.XmlAttribute>[
...?attributes,
];
return _s.XmlElement(
_s.XmlName(elemName),
$attributes,
$children,
);
}