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 modern, bidirectional type adapting library for Java
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.
A simple Gson polymorphism serialization and deserialization example by using TypeAdapterFactory.
To associate your repository with the typeadapterfactory topic, visit your repo's landing page and select "manage topics."