Skip POJO field while serializing to JSON using GSON for specific case when POJO itself is field of another POJO

前端 未结 0 1811
情深已故
情深已故 2020-12-15 07:29

I have a Person data class in Kotlin like this

data class Person(
    val name: String,
    val age: I         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题