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 CreatedTimeFieldProperty implements Serializable { private static final long serialVersionUID = -5289717479666769182L; /** * 设置日期格式:yyyy"年"m"月"d"日"、yyyy-mm-dd、yyyy/m/d、m"月"d"日"、yyyy"年"m"月"d"日" dddd、 * "yyyy"年"m"月"d"日" hh:mm、yyyy-mm-dd hh:mm、m/d/yyyy、d/m/yyyy */ @SerializedName("format") private String format; public static CreatedTimeFieldProperty fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, CreatedTimeFieldProperty.class); } public String toJson() { return WxCpGsonBuilder.create().toJson(this); } }