getNotifications method

  1. @override
Future<Result<InAppNotifications>> getNotifications(
  1. String? cursor
)
override

Implementation

@override
Future<Result<InAppNotifications>> getNotifications(String? cursor) {
  const path = 'v1/notifications';
  return http.get(
    uri: Uri.parse('$baseUrl/$path').toString(),
    queryParameters: {'after': cursor},
    success: (json) => InAppNotifications.fromJson(json),
  );
}