Data classes and parsing JSON - A story about converting Models to Kotlin

Data classes and parsing JSON - A story about converting Models to Kotlin

Since the announcement of official Kotlin support at Google I/O we can be sure that Kotlin is here to stay and you can already feel the boost this language is getting. At Kitchen Stories we love this uprise and we are migrating our code base gradually to leverage the new features this language provides us.
In this session, I want to take you along the journey on how and why we migrated all our POJOs to POKOs. You will learn how Kotlins data classes, constructor default values and non-nullability can enable a more robust JSON parsing and how you can improve parsing with Moshi.

Some more context to the slides can be found here:
https://engineering.kitchenstories.io/caf8a599df9e

The Live-Code-Example is available here:
https://github.com/stefanmedack/MoshiKotlinExample

Be4a60d84a691d6a2f1ebfd009f93fb1?s=128

Stefan Medack

October 25, 2017
Tweet