Map<String, dynamic> toMap() { return <String, dynamic>{ 'category': category, 'replies': replies.map((DriveReply x) => x.toMap()).toList(), 'nextCursor': nextCursor, }; }