public static HttpContent GetJsonContent(object payload)
 {
     return(HttpContentHelper.GetJsonContent(JsonConvert.SerializeObject(payload)));
 }
 public static Task <T> Send <T> (HttpMethod method, string endpoint, object payload, IDictionary <string, string> headers)
 {
     return(Send <T> (method, endpoint, HttpContentHelper.GetJsonContent(payload), headers));
 }