Create POJO Class for Kotlin

前端 未结 10 1904
闹比i
闹比i 2021-02-03 18:34

I want to create POJO class for Kotlin, as we know that www.jsonschema2pojo.org converts JSON to POJO so we can use it with gson.

Anyone know how to create Gson POJO for

10条回答
  •  北恋
    北恋 (楼主)
    2021-02-03 19:28

    In my case Code -> Generate doesn't work, it is disabled (see screenshot)

    You should install the plugin "JsonToKotlinClass"

    Then right-click on the namespace and select

    Paste your JSON here. That's all, profit.

提交回复
热议问题