toXML method

  1. @override
String toXML()
override

Implementation

@override
String toXML() {
  return '''
  <?xml version="1.0" encoding="utf-8"?>
  <cupps xmlns="$xmlns" messageID="$messageID" messageName="$messageName" xmlns:xyzi="$xsi">
    <$messageName result="$result" deviceToken="$deviceToken">
        ${platformParameter.toXML()}
        ${applicationParameter.toXML()}
        <deviceList >
            ${deviceList.map((e) => e.toXML()).join()}
        </deviceList>
    </authenticateResponse>
  </cupps>'''
      .replaceAll("\n", "")
      .replaceAll("\t", "")
      .replaceAll("  ", "");
}