encode

fun encode(decoder: Json = DEFAULT_DECODER): String(source)

将当前的 CardMessage 序列化为所需JSON数据字符串。

当下述条件之一成立时,将会重构一个新的 Json 对象使用: