title: Converting object to an encodable object failed due to 404
body: <p>Receiving 404 error while writing the data in json format.</p>
  <pre><code>var response = await http.post(Uri.parse(url + &quot;/api/register&quot;),
                body: jsonEncode({
                  &quot;username&quot;: _username.text,
                  &quot;first_name&quot;: _fname.text,
                  &quot;last_name&quot;: _lname.text,
                  &quot;password&quot;: _password.text,
                  &quot;email&quot;: _email.text,
                  &quot;usertype&quot;: _userDropdown.toString(),
                  &quot;gender&quot;: _genderDropdown.toString(),`enter code here`
                  &quot;bloodgroup&quot;: _bloodDropdown.toString(),
                  &quot;phone_no&quot;: _contact.toString()
                }),
                headers: {&quot;Content-Type&quot;: &quot;application/json&quot;});
            print(&quot;Status Code : &quot; + response.statusCode.toString());
  </code></pre>