createCustomMessage static method
Implementation
static Object createCustomMessage(
{required String userID,
required String customData,
int priority = 0,
String convType = 'C2C',
String description = '',
String cloudCustomData = '',
bool needReadReceipt = false,
String extension = ''}) {
final customParams = {
"to": userID,
"conversationType": convType,
"cloudCustomData": cloudCustomData,
"needReadReceipt": needReadReceipt,
"priority": MessagePriorityWeb.convertMsgPriorityToWeb(priority),
"payload": mapToJSObj({
"data": customData,
"description": description,
"extension": extension
})
};
return mapToJSObj(customParams);
}