queryConversationTotalUnreadMessageCount method

Future<Map> queryConversationTotalUnreadMessageCount(
  1. dynamic config
)

Implementation

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