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