getSuggestedFriends static method

Future<PagingResult<SuggestedFriend>> getSuggestedFriends(
  1. PagingQuery<Encodable> pagingQuery
)

Get a list of suggested friends of current user.

pagingQuery Query parameter.

Implementation

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