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