[Android]【安卓】使用插件快速生成JSon解析类
[Android]【安卓】使用插件快速生成JSon解析类
本篇博客已收录到我的安卓开发小结中——点击【安卓开发小结】
在settings里搜索plugin,如图:
选择Browse repositories,如图:
在弹窗中搜索GsonFormat,并点击下载,如图:
下载完成后,点击原install处,然后点击settings的apply,点击ok,然后在弹出的弹窗中选择restart Android studio。
新建一个Json解析类,如图
在新的类里右键选择Generate,如图:
选择GsonFormat,然后将Postman等工具获取到的json格式数据粘贴进去,并点击ok,然后按需调整格式,如图:
打完收工。