Hi guys. Anyone using Gson with Kotlin. How do you...
# announcements
k
Hi guys. Anyone using Gson with Kotlin. How do you normally write your POJOs. Is there any "recommended" way to go about this. I have tried
Copy code
class Pojo(val name: String)
as well as
Copy code
class Pojo {
  lateinit var name: String private set
}
The first approach quickly makes inheritance a headache. The second case uses a lot of lateinit. Not yet decided whether that is a good or bad idea