getGroups static method

Implementation

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