2020-04-13 17:23:23 +03:00

34 lines
683 B
Java

package com.baeldung.jsonparam;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown = true)
public class ParamObjectDTO {
private String type;
private String color;
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getColor() {
return color;
}
public void setColor(String color) {
this.color = color;
}
@Override
public String toString() {
return "ParamObjectDTO{" +
"type='" + type + '\'' +
", color='" + color + '\'' +
'}';
}
}