JSONFormat4Flutter
JSONFormat4Flutter copied to clipboard
有结合dio使用的例子吗
trafficstars
和用不用dio没什么关系吧? 输入是json对象或者json字符串就行,来源都没差。。
var param = DeviceIdParam.fromParams(device_id: "DS001924"); var response = await _getDio().post("v1/cabinet/GetDeviceType", data: param.toString()); Fluttertoast.showToast(msg: response.data.toString());