This series is about Kotlinx serialization library.

In the Part1 I wrote about the basic usage of the Kotlinx.serialization.

In the Part2 I wrote about how can we configure the Kotlinx.serilaization.

In the Part3 I wrote about Custom serializers and data classes.

In the Part4 I wrote an exact example how can we use custom serializer with 3rd party classes.

Now I would like to write about how can we handle an optional field.

Optional field means some fields could be null like not too important data. It seems not a problem because Kotlin has ? …

Peter Nagy

Android developer @ Prezi

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store