queryConversationList method

Future<Map> queryConversationList(
  1. dynamic config,
  2. dynamic option
)

Implementation

Future<Map<dynamic, dynamic>> queryConversationList(
    dynamic config, dynamic option) async {
  Object _config = mapToJSObj(config);
  Object _option = mapToJSObj(option);
  final result = await promiseToFuture(
          ZIM.getInstance()!.queryConversationList(_config, _option))
      .catchError((e) {
    throw PlatformException(code: e.code.toString(), message: e.message);
  });

  Map resultMap = jsObjectToMap(result);

  return resultMap;
}