title: RestSharp client returns all properties as null when deserializing JSON response
body: <p>I'm trying to do a very simple example of using RestSharp's Execute method of querying a rest endpoint and serializing to a POCO. However, everything I try results in a response.Data object that has all properties with a NULL value.</p>
  
  <p>Here is the JSON response:</p>
  
  <pre><code>{
     "Result":
     {
         "Location":
         {
             "BusinessUnit": "BTA",
             "BusinessUnitName": "CASINO",
             "LocationId": "4070",
             "LocationCode": "ZBTA",
             "LocationName": "Name of Casino"
         }
     }
  }
  </code></pre>
  
  <p>Here is my test code</p>
  
  <pre><code> [TestMethod]
      public void TestLocationsGetById()
      {
          //given
          var request = new RestRequest();
          request.Resource = serviceEndpoint + "/{singleItemTestId}";
          request.Method = Method.GET;
          request.AddHeader("accept", Configuration.JSONContentType);
          request.RootElement = "Location";
          request.AddParameter("singleItemTestId", singleItemTestId, ParameterType.UrlSegment);
          request.RequestFormat = DataFormat.Json;
  
          //when
          Location location = api.Execute&lt;Location&gt;(request);            
  
          //then
          Assert.IsNotNull(location.LocationId); //fails - all properties are returned null
  
      }
  </code></pre>
  
  <p>And here is my API code</p>
  
  <pre><code> public T Execute&lt;T&gt;(RestRequest request) where T : new()
      {
          var client = new RestClient();
          client.BaseUrl = Configuration.ESBRestBaseURL;
  
          //request.OnBeforeDeserialization = resp =&gt; { resp.ContentLength = 761; };
  
          var response = client.Execute&lt;T&gt;(request);
          return response.Data;
      }
  </code></pre>
  
  <p>And finally, here is my POCO</p>
  
  <pre><code> public class Location
  {        
      public string BusinessUnit { get; set; }
      public string BusinessUnitName { get; set; }
      public string LocationId { get; set; }
      public string LocationCode { get; set; }
      public string LocationName { get; set; }
  }
  </code></pre>
  
  <p>Additionally, the ErrorException and ErrorResponse properties on the response are NULL. </p>
  
  <p>This seems like a very simple case, but I've been running around in circles all day! Thanks.</p>