toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'totalItems': totalItems,
    'currentPage': currentPage,
    'pageSize': pageSize,
    'totalPages': totalPages,
    'nextPage': nextPage,
    'prevPage': prevPage,
    'nextCursor': nextCursor,
  };
}