getLabels static method

Future<PagingResult<Label>> getLabels(
  1. PagingQuery<LabelsQuery> pagingQuery
)

Get labels matching query.

pagingQuery Query parameters.

Implementation

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