title: Sending int and boolean at body of http post method in flutter
body: <p>Hi I have a http post as</p>
  <pre><code>final http.Response response = await client.post(
        'http://someurl/',
          headers: {
            HttpHeaders.contentTypeHeader: &quot;application/json&quot;,
            &quot;Content-Type&quot;: &quot;application/x-www-form-urlencoded&quot;,
            &quot;Authorization&quot;: token
          },
          body: {
            &quot;isItTake&quot;: false,
            &quot;servisID&quot;: 1
          }
      );
  </code></pre>
  <p>But when I try this post method I get  &quot;Unhandled Exception: type 'bool' is not a subtype of type 'String' in type cast&quot;. I can change the API to expect string but I wonder if there is a work around to send int or boolean.
  Note that When I send a similar request on postman everything is fine. <br />
  Edit: <br />
  Postman: <br />
  POST /someendpoint/ HTTP/1.1 <br />
  Host: somehost <br />
  Authorization: Token sometoken <br />
  Content-Type: application/json <br />
  Cache-Control: no-cache <br />
  Postman-Token: 20582fd0-c980-2d0d-fb2f-3bdd87d767f5 \</p>
  <p>{
  &quot;isItTake&quot;: false,
  &quot;servisID&quot;: 1
  }</p>