package me.zhengjie.modules.weixin.cp.bean.smartsheet.record;
|
|
import com.google.gson.annotations.SerializedName;
|
import lombok.Data;
|
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
|
|
import java.io.Serializable;
|
|
@Data
|
public class RecordCellUrlValue implements Serializable {
|
|
private static final long serialVersionUID = -141049080702891902L;
|
|
/**
|
* 填url
|
*/
|
@SerializedName("type")
|
private String type;
|
|
/**
|
* 链接显示文本
|
*/
|
@SerializedName("text")
|
private String text;
|
|
/**
|
* 链接跳转url
|
*/
|
@SerializedName("link")
|
private String link;
|
|
public static RecordCellUrlValue fromJson(String json) {
|
return WxCpGsonBuilder.create().fromJson(json, RecordCellUrlValue.class);
|
}
|
|
public String toJson() {
|
return WxCpGsonBuilder.create().toJson(this);
|
}
|
}
|