public RestResponse(string body, IFormat format, HttpResponseMessage message) { Body = body; Content = message.IsSuccessStatusCode ? format.Deserialize <TModel>(body) : default; Format = format; Message = message; }