getChats static method

Implementation

static Future<PagingResult<Chat>> getChats(PagingQuery query) {
  return NativeBridge.async(
          'Communities.getChats', jsonEncode(query.toJSON()))
      .then((result) => new PagingResult.fromJSON(jsonDecode(result),
          (Map<String, dynamic> raw) => Chat.fromJSON(raw)));
}