package me.zhengjie.modules.weixin.cp.bean.smartsheet.view;
|
|
import com.google.gson.annotations.SerializedName;
|
import lombok.Data;
|
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
|
|
import java.io.Serializable;
|
|
@Data
|
public class ViewSpecInfo implements Serializable {
|
|
private static final long serialVersionUID = 5735012013638234658L;
|
|
/**
|
* 字段id
|
*/
|
@SerializedName("field_id")
|
private String fieldId;
|
|
/**
|
* 是否降序
|
*/
|
@SerializedName("desc")
|
private Boolean desc;
|
|
public static ViewSpecInfo fromJson(String json) {
|
return WxCpGsonBuilder.create().fromJson(json, ViewSpecInfo.class);
|
}
|
|
public String toJson() {
|
return WxCpGsonBuilder.create().toJson(this);
|
}
|
}
|