一、手動轉(zhuǎn)換:
適合字段較少
二、在線轉(zhuǎn)換:
1、 JSON to Dart
2、quicktype (推薦)
三、:插件工具 (推薦)
1、FlutterJsonBeanFactory
2、json_serializable 和 build_runner
一、Flutter常用命令
1、flutter 查看當(dāng)前版本: flutter --version
2、flutter 切換到指定版本:flutter version v1.16.3
3、查看分支: flutter channel
4、切換到穩(wěn)定版本: flutter channel stable
5、升級Flutter SDK 和依賴包: flutter upgrade
6、更新項目所有的依賴包:flutter packages get
7、所有依賴包的最新版本 flutter packages upgrade
二、Android-Studio常用命令:
1、快速創(chuàng)建widget:stf或stl + enter
2、快速修復(fù) / 自動生成構(gòu)造函數(shù) / 添加父組件 / 變?yōu)樽咏M件 / 刪除子組件 / 導(dǎo)入類 : option + enter
3、萬能的搜索: 雙擊shift
4、查看最近打開的文件: command + E
5、重命名: fn + shift + f6
6、查看類的子類: command + B
7、前進(jìn)后退: option + command + 方向鍵
8、全局搜索: command + shift + F
9、全局替換: command + shift + R
10、查找引用:option + shift + F7
11、抽象類的實現(xiàn)類 是 command + alt + b
12、Widget 轉(zhuǎn)換: alt + enter
13、抽取一個Widget快捷鍵: option + command + s