I will share a way to generate class from Json in Android.
Generate Java and Kotlin POJO files from JSON: GSON, AutoValue, Logan Square, FastJSON, Jackson, Moshi, empty annotations template. Supports: primitive types, multiple inner JSONArrays.
This is a demo:
You can download it from : "Preferences" -> "Plugins" -> "Browse Repositories" -> "RoboPOJOGenerator"
And how to use:
And you paste you json to popup and choose parser type:
And click generate, it will gen class from json for you!
I hope it can help you to save many time!