只需要在类中get方法上加一个注释。
@JSONField(name = "DATA_TYPE")
public String getDATA_TYPE() {
return DATA_TYPE;
}
public void setDATA_TYPE(String DATA_TYPE) {
this.DATA_TYPE = DATA_TYPE;
}
@JSONField(name = "PLANE_ID")
public String getPLANE_ID() {
return PLANE_ID;
}
public void setPLANE_ID(String PLANE_ID) {
this.PLANE_ID = PLANE_ID;
}