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 ProgressFieldProperty implements Serializable { private static final long serialVersionUID = -5441331254700056725L; /** * 小数位数:-1-显示原值;0-代表整数;1-精确到小数点后一位(1.0); * 2-精确到小数点后两位(1.00);3-精确到小数点后三位(1.000);4-精确到小数点后四位(1.0000); */ @SerializedName("decimal_places") private Integer decimalPlaces; public static ProgressFieldProperty fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, ProgressFieldProperty.class); } public String toJson() { return WxCpGsonBuilder.create().toJson(this); } }