ComponentDataJsonElementSerializer

内容组件数据的JSON序列化器接口 用于将AbstractContentComponentData与JSON互转

Since

Api 2

Type Parameters

Data

序列化器处理的数据类型

Functions

Link copied to clipboard
abstract fun fromJsonElement(json: JsonElement): Data

将JSON元素反序列化为数据对象

Link copied to clipboard
abstract fun toJsonElement(data: Data): JsonElement

将数据对象序列化为JSON元素