toXmlElementValue method
XmlElement?
toXmlElementValue()
Returns an XmlElement
corresponding to the value of the object being represented or null
if this object is not of type XmlElement
.
Implementation
XmlElement? toXmlElementValue() {
if (type?.isXmlAnnotationXmlElement == true) {
return XmlElement(
name: getField('name')?.toStringValue(),
namespace: getField('namespace')?.toStringValue(),
isSelfClosing: getField('isSelfClosing')?.toBoolValue(),
includeIfNull: getField('includeIfNull')?.toBoolValue(),
);
}
return null;
}