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