setConversationExtras method

Future<JMConversationInfo> setConversationExtras ({dynamic type, Map extras })

Implementation

Future<JMConversationInfo> setConversationExtras({
  dynamic type,/// (JMSingle | JMGroup | JMChatRoom)
  Map<dynamic, dynamic> extras
}) async {
  var param = type.toJson();
  param['extras'] = extras;
  Map resMap = await _channel.invokeMethod('setConversationExtras', param..removeWhere((key,value) => value == null));
  var res = JMConversationInfo.fromJson(resMap);
  return res; // {id: string; filePath: string}
}