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