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 AttachmentFieldProperty implements Serializable {
|
|
private static final long serialVersionUID = 8146652996582944847L;
|
|
/**
|
* 设置展示样式:DISPLAY_MODE_LIST-列表样式;DISPLAY_MODE_GRID-宫格样式
|
*/
|
@SerializedName("display_mode")
|
private String displayMode;
|
|
public static AttachmentFieldProperty fromJson(String json) {
|
return WxCpGsonBuilder.create().fromJson(json, AttachmentFieldProperty.class);
|
}
|
|
public String toJson() {
|
return WxCpGsonBuilder.create().toJson(this);
|
}
|
}
|