Create POJO Class for Kotlin

Pratik Butani picture Pratik Butani · May 25, 2017 · Viewed 36.9k times · Source

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 Kotlin QUICKLY?

Edited:

I know its use Data classes, but is there any simplest way to create it?

Answer

吴海豹 picture 吴海豹 · Aug 29, 2017

I think this should be the Plugin what you want

JSON To Kotlin Class Plugin

https://github.com/wuseal/JsonToKotlinClass