Validate class's non-null property after Gson's deserialization.
-
Updated
Nov 3, 2017 - Kotlin
Validate class's non-null property after Gson's deserialization.
Creates objects in normal way — through constructors.
A modern, bidirectional type adapting library for Java
A simple Gson polymorphism serialization and deserialization example by using TypeAdapterFactory.
Original example is for the author's tutorials at http://blog.robinchutaux.com/blog/a-smart-way-to-use-retrofit/, which was posted in 2014 when retrofit is still 1.x release. And this fork example upgrade to retrofit 2.x release, all the others dependent libraries are upgraded as well.
Add a description, image, and links to the typeadapterfactory topic page so that developers can more easily learn about it.
To associate your repository with the typeadapterfactory topic, visit your repo's landing page and select "manage topics."