ElectMapper是为方便使用MoyaMapper而制作的JSON转模型 工具MoyaMapper : 快速解析模型工具,支持RxSwift。同时支持缓存功能
MoyaMapper使用手册 https://MoyaMapper.github.io
- 格式化
json数据 - 对调整
转换后的数据进行调整 - 将数据导出为
Swift模型文件
- 将
json数据粘贴至左边的编辑框内,点击转换 - 在右边的调整区进行调整内容
- 点击
导出按钮,输出Swift模型文件
git clone [email protected]:MoyaMapper/elecmapper.git
cd elecmapper
npm i
# 运行
npm run dev
# 打包
npm run packElectMapper is available under the MIT license. See the LICENSE file for more info.


