toXmlCDATAValue method

XmlCDATA? toXmlCDATAValue()

Returns an XmlCDATA corresponding to the value of the object being represented or null if this object is not of type XmlCDATA.

Implementation

XmlCDATA? toXmlCDATAValue() {
  if (type?.isXmlAnnotationXmlCDATA == true) {
    return XmlCDATA();
  }

  return null;
}