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 ReferenceFieldProperty implements Serializable {
|
|
private static final long serialVersionUID = -8249394016227815187L;
|
|
/**
|
* 关联的子表id,为空时,表示关联本子表
|
*/
|
@SerializedName("sub_id")
|
private String subId;
|
|
/**
|
* 关联的字段id
|
*/
|
@SerializedName("filed_id")
|
private String filedId;
|
|
/**
|
* 是否允许多选
|
*/
|
@SerializedName("is_multiple")
|
private Boolean isMultiple;
|
|
/**
|
* 视图id
|
*/
|
@SerializedName("view_id")
|
private String viewId;
|
|
public static ReferenceFieldProperty fromJson(String json) {
|
return WxCpGsonBuilder.create().fromJson(json, ReferenceFieldProperty.class);
|
}
|
|
public String toJson() {
|
return WxCpGsonBuilder.create().toJson(this);
|
}
|
}
|