getReferrerUsers static method

Future<PagingResult<ReferralUser>> getReferrerUsers(
  1. PagingQuery<ReferralUsersQuery> pagingQuery
)

Returns list of users who are referrers for this user for a specific event.

pagingQuery Users query.

Implementation

static Future<PagingResult<ReferralUser>> getReferrerUsers(
    PagingQuery<ReferralUsersQuery> pagingQuery) {
  return NativeBridge.async(
          'Invites.getReferrerUsers', jsonEncode(pagingQuery.toJSON()))
      .then((value) => new PagingResult.fromJSON(jsonDecode(value),
          (Map<String, dynamic> raw) => ReferralUser.fromJSON(raw)));
}