我是Flutter的新手。当我尝试命中HTTP请求时,http请求中的int值在Flutter中被转换为double值。下面是我通过flutter服务时的http响应:
{
"GS": 1.0,
"DATA": {
"XXXX": 13,
"XXXX": "Managing",
"XXXX": "F6ACEE86D6E6",
"XXXX": "Santhosh Reddy",
"PHONE": 9.652823823E9,
"EMAIL": "",
"DISPLAYMESSAGE": "Successfull."
},
"RS": 1.0
}
通过serviceUrl检查时的实际响应如下:
{
"GS": 1,
"DATA": {
"XXXX": 13,
"XXXX": "Managing",
"XXXX": "F6ACEE86D6E6",
"XXXX": "Santhosh Reddy",
"PHONE": 9652823823,
"EMAIL": "",
"DISPLAYMESSAGE": "Successfull."
},
"RS": 1
}.