createSimpleCustomMessage static method

dynamic createSimpleCustomMessage(
  1. String data,
  2. String desc,
  3. String extension
)

Implementation

static createSimpleCustomMessage(String data, String desc, String extension) {
  return {
    "elemType": 2,
    "type": "custom",
    "customElem": {"data": data, "desc": desc, "extension": extension}
  };
}