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; import java.util.List; @Data public class AutoNumberFieldProperty implements Serializable { private static final long serialVersionUID = 8264989322286868003L; /** * 输入类型:NUMBER_TYPE_INCR-自增数字类型;NUMBER_TYPE_CUSTOM-自定义类型; */ @SerializedName("type") private String type; /** * 自定义规则 */ @SerializedName("rules") private List rules; /** * 是否应用于已有编号 */ @SerializedName("reformat_existing_record") private Boolean reformatExistingRecord; public static AutoNumberFieldProperty fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, AutoNumberFieldProperty.class); } public String toJson() { return WxCpGsonBuilder.create().toJson(this); } }