PaginationResponse constructor

PaginationResponse({
  1. String? nextCursor,
  2. bool? hasMore,
  3. int? totalCount,
})

Implementation

factory PaginationResponse({
  $core.String? nextCursor,
  $core.bool? hasMore,
  $core.int? totalCount,
}) {
  final result = create();
  if (nextCursor != null) result.nextCursor = nextCursor;
  if (hasMore != null) result.hasMore = hasMore;
  if (totalCount != null) result.totalCount = totalCount;
  return result;
}