I am trying to read the result of this Post request...
public class Stuff
{
string token { get; set; }
string type { get; set; }
long expires_in { get; set; }
}
var request = new RestRequest(Method.POST);
IRestResponse response = client.Execute(request);
Stuff result = JsonConvert.DeserializeObject<Stuff>(response.Content);
I'm getting the correct response but I need to populate the object with the content.
response.Content
is three values that match the names I'm using.
But result ends up null
for those three values (0
for the long
). Shouldn't it match up and populate the object?