using Newtonsoft.Json; namespace Common.Request.samecity { public class OrderGoods { /// /// 商品名称 /// public string name { get; set; } /// /// 商品价格(分) /// public int price { get; set; } /// /// 商品数量 /// public int count { get; set; } /// /// 商品单位 /// public string unit { get; set; } public override string ToString() { return JsonConvert.SerializeObject(this, Formatting.Indented, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore }); } } }