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 RecordCellTextValue implements Serializable {
|
|
private static final long serialVersionUID = 8567229542233973559L;
|
|
/**
|
* 内容为文本(值为text)、内容为链接(值为url)
|
*/
|
@SerializedName("type")
|
private String type;
|
|
/**
|
* 单元格内容
|
*/
|
@SerializedName("text")
|
private String text;
|
|
/**
|
* 当type时url时,表示链接跳转url
|
*/
|
@SerializedName("link")
|
private String link;
|
|
public static RecordCellTextValue fromJson(String json) {
|
return WxCpGsonBuilder.create().fromJson(json, RecordCellTextValue.class);
|
}
|
|
public String toJson() {
|
return WxCpGsonBuilder.create().toJson(this);
|
}
|
}
|