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