File tree Expand file tree Collapse file tree
NetoDotNET/Entities/Order Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- using System ;
1+ using NetoDotNET . Extensions ;
2+ using Newtonsoft . Json ;
3+ using System ;
24using System . Collections . Generic ;
35using System . Text ;
46
@@ -7,6 +9,8 @@ namespace NetoDotNET.Entities
79 public class AddedOrder
810 {
911 public string OrderID { get ; set ; }
10- public StickyNotes [ ] StickyNotes { get ; set ; }
12+
13+ [ JsonConverter ( typeof ( SingleOrArrayConverter < StickyNotes > ) ) ]
14+ public List < StickyNotes > StickyNotes { get ; set ; }
1115 }
1216}
Original file line number Diff line number Diff line change @@ -157,7 +157,8 @@ public class Order
157157
158158 public OrderPayment [ ] OrderPayment { get ; set ; }
159159
160- public StickyNotes [ ] StickyNotes { get ; set ; }
160+ [ JsonConverter ( typeof ( SingleOrArrayConverter < StickyNotes > ) ) ]
161+ public List < StickyNotes > StickyNotes { get ; set ; }
161162 }
162163
163164 public class OrderLine
You can’t perform that action at this time.
0 commit comments