Map<String, dynamic> toJson() => {'stocktakes': [for (final s in stocktakes) s.toJson()], 'nextCursor': nextCursor};