Map<String, dynamic> toJson() { return { 'data': data.map((e) => e.toJson()).toList(), 'nextCursor': nextCursor, 'hasNextPage': hasNextPage, }; }