SyntaxFix
Write A Post
Hire A Developer
Questions
This one is for using HTTPClient class
request.headers.add("body", json.encode(map));
I attached the encoded json body data to the header and added to it. It works for me.