Map<String, Object?> toJson() { final nextBatch = this.nextBatch; return { 'count': count, 'joined': joined.map((v) => v).toList(), if (nextBatch != null) 'next_batch': nextBatch, }; }