namespace LaaProductionWeb.Services.Models { using Newtonsoft.Json; public class HttpResponseModel { public bool Succeeded { get; internal set; } public string Content { get; internal set; } public string Error { get; internal set; } public T Deserialize() where T : new () { if (!string.IsNullOrWhiteSpace(this.Content)) { return JsonConvert.DeserializeObject(this.Content); } return new T(); } } }