Creates objects in normal way — through constructors.
-
Updated
Jan 24, 2018 - Kotlin
Creates objects in normal way — through constructors.
Validate class's non-null property after Gson's deserialization.
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."