- Developer use API calling retrofit, volley JSON or other tools but API response check-in postman time confusion how to creating this response model class
- So a friend in this topic I will try your confusion remove flow below all steps and 5 min inner creating a wonderful model class
Step: 1 Android studio in install “RoboPOJOGenerator”
- Location in the android studio:
- Open android studio
- Go to File
- Go to Setting
- Click plugin
- Check the below image && click and install RoboPOJOGenerator then your android studio restart
Step: 2 How to open RoboPOJOGenerator
- Open android studio
- Go to File
- Select directory below the image in showing related select any one directory
- Right-click – select New – then below showing “RoboPOJOGenerator”
Step: 3 How to add postman response
- Postman response copy
- Paste this response in “RoboPOJOGenerator” in one black color dialog showing in android studio
- Left top side one cursor visible on this area in paste this response
- Select “GSON” option in “RoboPOJOGenerator”
- Last click generate button after a few moments your model class is ready