package me.zhengjie.modules.weixin.cp.bean.smartsheet.sheet; import com.google.gson.annotations.SerializedName; import lombok.Data; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; import java.io.Serializable; @Data public class SheetProperties implements Serializable { private static final long serialVersionUID = 3000460472715119581L; /** * 智能表 ID,创建子表时生成的 6 位随机 ID */ @SerializedName("sheet_id") private String sheetId; /** * 智能表标题 */ @SerializedName("title") private String title; /** * 智能表下标 */ @SerializedName("index") private Integer index; /** * 子表是否可见 */ @SerializedName("is_visible") private Boolean isVisible; /** * 子表类型。"dashboard" 仪表盘。"external" 说明页,"smartsheet" 智能表 */ @SerializedName("type") private String type; public static SheetProperties fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, SheetProperties.class); } public String toJson() { return WxCpGsonBuilder.create().toJson(this); } }