We're sorry but this page doesn't work properly without JavaScript enabled. Please enable it to continue.
Feedback

Data Classes and Parsing Json - A Story About Converting Models to Kotlin

Formal Metadata

Title
Data Classes and Parsing Json - A Story About Converting Models to Kotlin
Title of Series
Number of Parts
90
Author
License
CC Attribution 3.0 Unported:
You are free to use, adapt and copy, distribute and transmit the work or content in adapted or unchanged form for any legal purpose as long as the work is attributed to the author in the manner specified by the author or licensor.
Identifiers
Publisher
Release Date
Language

Content Metadata

Subject Area
Genre
Abstract
The announcement of Kotlin's first class support at Google I/O 2017 is only one year old and its popularity is growing rapidly ever since. At Kitchen Stories we fell in love with Kotlin and we are migrating our code base gradually to leverage the features Kotlin provides us. One of our first migrations was changing all Models assembling the JSON structure from our API. 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 you can write better models using Kotlin's Data Classes and how you can leverage features like constructor default values and non-nullable fields for more robust JSON parsing.