using System.Runtime.Serialization; using Newtonsoft.Json; namespace ShareeBike.Repository.Response { [DataContract] [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)] public class ResponseContainer { [DataMember] public T shareejson { get; private set; } /// /// Serializes object to string. /// /// public override string ToString() { if (shareejson == null) { return "Response container does not hold no entry."; } return shareejson.ToString(); } } }