JSONFormat4Flutter icon indicating copy to clipboard operation
JSONFormat4Flutter copied to clipboard

有结合dio使用的例子吗

Open RedSevenMale opened this issue 6 years ago • 2 comments
trafficstars

RedSevenMale avatar Dec 07 '18 08:12 RedSevenMale

和用不用dio没什么关系吧? 输入是json对象或者json字符串就行,来源都没差。。

debuggerx01 avatar Jan 03 '19 10:01 debuggerx01

var param = DeviceIdParam.fromParams(device_id: "DS001924"); var response = await _getDio().post("v1/cabinet/GetDeviceType", data: param.toString()); Fluttertoast.showToast(msg: response.data.toString());

palorotolo avatar Apr 15 '19 08:04 palorotolo