Map<String, Object?> toJson() { return { 'hasNextPage': hasNextPage, 'hasPreviousPage': hasPreviousPage, 'startCursor': startCursor, 'endCursor': endCursor, }; }