queryConversation method

Future<Map> queryConversation(
  1. String conversationID,
  2. dynamic conversationType
)

Implementation

Future<Map<dynamic, dynamic>> queryConversation(
    String conversationID, dynamic conversationType) async {
  final result = await promiseToFuture(ZIM
          .getInstance()!
          .queryConversation(conversationID, conversationType))
      .catchError((e) {
    throw PlatformException(code: e.code.toString(), message: e.message);
  });

  final resultMap = jsObjectToMap(result);

  return resultMap;
}