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 View implements Serializable { private static final long serialVersionUID = 2293426984233236997L; @SerializedName("view_id") private String viewId; @SerializedName("view_title") private String viewTitle; @SerializedName("view_type") private String viewType; public static View fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, View.class); } public String toJson() { return WxCpGsonBuilder.create().toJson(this); } }