I am new to flutter and I want to convert Json string to hash map. I searched google and tried in differnt ways. But unable to get the correct answer. Josn String = "{\"key\":\"key\", \"name\":\"Kumar\", \"status\":999, \"Key\":\"key\", \"key\":\"key\", \"number\":999988, \"object\":{\"text\":\"text\", \"text\":\"text!\", \"status\":1,\"text\":\"text\", \"Url\":null } }"
var url = URL;
final responseResult = await http
.post(url, body: {'EmailID': 'm@m.com', 'Password': 'bmbmjbmjbjhty67rr7'});
print(responseResult.body);
final body = json.decode(responseResult.body) as HashMap;
print(body['UserName']);
This is what I tried.
Thanks in Advance,