getDialogsCount method

Future<int?> getDialogsCount({
  1. QBFilter? qbFilter,
  2. int? limit,
  3. int? skip,
})

Implementation

Future<int?> getDialogsCount({QBFilter? qbFilter, int? limit, int? skip}) async {
  Map<String, Object> data = Map();

  if (qbFilter != null) {
    data["filter"] = QBFilterMapper.filterToMap(qbFilter)!;
  }
  if (limit != null) {
    data["limit"] = limit;
  }
  if (skip != null) {
    data["skip"] = skip;
  }

  return await _chatModule.invokeMethod(GET_DIALOGS_COUNT_METHOD, data);
}