getTopics static method

Future<PagingResult<Topic>> getTopics(
  1. PagingQuery<TopicsQuery> pagingQuery
)

Find topics.

pagingQuery Query parameter.

Implementation

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