Map<String, dynamic> toMap() { return { "total": total, "sessions": sessions.map((p) => p.toMap()).toList(), }; }