I wonder if this:

.add(Date::class.java, Rfc3339DateJsonAdapter().nullSafe())

Could be replaced with something more idiomatic. I understand there are technical reasons, but going with either annotation or lambda here seems like a better option.

Solutions Architect @Depop, author of “Hands-on Design Patterns with Kotlin” book and “Web Development with Kotlin” course

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