title: convert a HttpResponseMessage to an object
body: <p>I have this structure, I am using <strong>System.Net.Http</strong> and <strong>Newtonsoft</strong> as well.
  I need receive the webservice response and convert it in my class, but I don't know how to do that with a HttpResponseMessage and the posts that I've red hasn't helped me.
  It's a Xamarin.forms project.</p>
  
  <pre><code> public static async Task&lt;User&gt; PostLoginAsync(string login, string senha)
      {
          using (var client = new HttpClient())
          {
              try
              {
                  login = "email@hotmail.com";
                  senha = "1111111";
  
                  var content = new FormUrlEncodedContent(new[]
                      {
                          new KeyValuePair&lt;string, string&gt;("id", "1200"),
                          new KeyValuePair&lt;string, string&gt;("email", login),
                          new KeyValuePair&lt;string, string&gt;("password", senha),
                          new KeyValuePair&lt;string, string&gt;("json", "1"),
                       });
  
                  HttpResponseMessage response = await client.PostAsync("http://ws.site.com", content);
  
                  return null;
              }
  
              catch (Exception ex)
              {
                  Debug.WriteLine(ex.Message);
                  return null;
              }
          }
      }
  </code></pre>
  
  <p>my class:</p>
  
  <pre><code>class User
  {
      public string codigo { get; set; }
      public string nome { get; set; }
      public string email { get; set; }
      public string senha { get; set; }
      public string imagem { get; set; }
      public DateTime dataDeNasc { get; set;}
      public string cidade { get; set; }
      public string estado { get; set; }
      public string telefone { get; set; }
      public string sexo { get; set; }
  }
  </code></pre>
  
  <p>If you can help me...I would appreciate that.
  Thank you anyways</p>