encode
将当前的 CardMessage 序列化为所需JSON数据字符串。
当下述条件之一成立时,将会重构一个新的 Json 对象使用:
configuration 中的 JsonConfiguration.classDiscriminator !=
'type'
configuration 中的 JsonConfiguration.encodeDefaults !=
true
将当前的 CardMessage 序列化为所需JSON数据字符串。
当下述条件之一成立时,将会重构一个新的 Json 对象使用:
configuration 中的 JsonConfiguration.classDiscriminator != 'type'
configuration 中的 JsonConfiguration.encodeDefaults != true