get static method

Get the list of current user's notifications.

pagingQuery Query to filter notifications.

Implementation

static Future<PagingResult<GetSocialNotification>> get(
    PagingQuery<NotificationsQuery> pagingQuery) {
  return NativeBridge.async(
          'Notifications.get', jsonEncode(pagingQuery.toJSON()))
      .then((value) => new PagingResult.fromJSON(jsonDecode(value),
          (Map<String, dynamic> raw) => GetSocialNotification.fromJSON(raw)));
}