createMereMessage static method
Implementation
static Object createMereMessage(
{required String userID,
required List<dynamic> messageList,
required String title,
required List<String> abstractList,
required String compatibleText,
bool needReadReceipt = false,
String cloudCustomData = '',
String convType = 'C2C',
int priority = 0}) {
final params = {
"to": userID,
"conversationType": convType,
"cloudCustomData": cloudCustomData,
"needReadReceipt": needReadReceipt,
"priority": MessagePriorityWeb.convertMsgPriorityToWeb(priority),
"payload": mapToJSObj({
"messageList": messageList,
"title": title,
"abstractList": abstractList,
"compatibleText": compatibleText
}),
};
return mapToJSObj(params);
}