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