getConversation method

Future<JMConversationInfo> getConversation ({@required dynamic target })

Implementation

Future<JMConversationInfo> getConversation({
  @required dynamic target, //(JMSingle | JMGroup | JMChatRoom)
}) async {

  Map param = target.toJson();
  Map resJson = await _channel.invokeMethod('getConversation',
  param..removeWhere((key, value) => value == null));

  return JMConversationInfo.fromJson(resJson);
}