RestSharp not deserializing
<p>For some reason RestSharp is not deserializing the response:</p>

<pre><code>RestClient client = new RestClient(baseURL);
RestRequest request = new RestRequest("api/location/" + locationID, Method.GET);
IRestResponse&lt;Location&gt; response = client.Execute&lt;Location&gt;(request);
return response.Data;
</code></pre>

<p>I confirm the Web API is returning valid result.
The <code>response</code> object has:</p>

<p>Content: {"LocationID":3,"PrintName":"MyCountry","ISO3166_1_alpha3":"XXX"}</p>

<p>StatusCode: OK</p>

<p>ResponseStatus: Completed</p>

<p>However <code>response.Data</code> has a Location object with default values (null).</p>

<p>Using Json.NET over RestSharp Content works (meaning the correct data is there):</p>

<pre><code>Location loc = JsonConvert.DeserializeObject&lt;Location&gt;(response.Content);
</code></pre>

<p>The Location class should not matter in this case since Json.NET is able to deserialize. For some reason RestSharp is not deserializing.</p>

<pre><code>public class Location
    {
        public int LocationID;
        public string PrintName;
        public string ISO3166_1_alpha3;
    }
</code></pre>