using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Text; namespace BTCPayServer.Models { public class DataWrapper { public static DataWrapper Create(T obj) { return new DataWrapper(obj); } } public class DataWrapper { public DataWrapper() { } public DataWrapper(T data) { Data = data; } [JsonProperty("facade", NullValueHandling = NullValueHandling.Ignore)] public string Facade { get; set; } [JsonProperty("data")] public T Data { get; set; } } }