Write a custom (DE) serializer.
编写一个定制的(反)序列化器。
Step 3: Write a custom (de)serializer
第 3步:编写一个定制的(反)序列化器
Name of the Native language class to act as the serializer
充当序列化器的“本机”语言类名称
If you're concerned about performance, you might prefer to use a serializer.
如果您关心性能,那么会首选使用序列化程序。
Lastly, you need to declare the type mappings to reference your custom (DE) serializer.
最后,您需要声明类型映射来引用您定制的(反)序列化器。
How to create GSON custom serializer that writes raw string?
如何创建自定义序列化程序写入gson原始字符串?
The fully qualified name of the base data type of the serializer.
序列化程序的基数据类型的完全限定名。
Gets the fully qualified type name of the base type of the serializer.
获取序列化程序的基类型的完全限定类型名。
Gets the fully qualified type name of the base type of the serializer.
获取序列化程序的基类型的完全限定类型名。
应用推荐