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