public Response Build(HttpWebResponse httpWebResponse) { var raw = httpWebResponse.Body(); var body = httpWebResponse.ContentType.Contains("json") ? Json.Decode(raw) : raw; return(new Response { Raw = raw, HttpWebResponse = httpWebResponse, Body = body }); }