toXml method
XmlElement
toXml(
- String elemName, {
- List<XmlAttribute>? attributes,
})
Implementation
_s.XmlElement toXml(String elemName, {List<_s.XmlAttribute>? attributes}) {
final contentType = this.contentType;
final format = this.format;
final profileId = this.profileId;
final $children = <_s.XmlNode>[
_s.encodeXmlStringValue('Format', format.toValue()),
if (profileId != null) _s.encodeXmlStringValue('ProfileId', profileId),
_s.encodeXmlStringValue('ContentType', contentType),
];
final $attributes = <_s.XmlAttribute>[
...?attributes,
];
return _s.XmlElement(
_s.XmlName(elemName),
$attributes,
$children,
);
}