package com.hk.NumericalCollection.dto; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.AllArgsConstructor; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import java.util.List; @EqualsAndHashCode(callSuper = true) @Data @AllArgsConstructor @NoArgsConstructor public class ApiResponse extends BaseApiResponse { private List list; private int total; @JsonProperty("data") // Use this annotation if the JSON field name differs from the variable name private String data; // Add this field to match the response }