package me.zhengjie.modules.weixin.cp.bean.smartsheet.field; import com.google.gson.annotations.SerializedName; import lombok.Data; import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; import java.io.Serializable; @Data public class UrlFieldProperty implements Serializable { private static final long serialVersionUID = -7106696821360341960L; /** * 超链接展示样式:LINK_TYPE_PURE_TEXT-文字;LINK_TYPE_ICON_TEXT-图标文字; */ @SerializedName("type") private String type; public static UrlFieldProperty fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, UrlFieldProperty.class); } public String toJson() { return WxCpGsonBuilder.create().toJson(this); } }