11using Contentful . Core . Models . Management ;
2+ using Newtonsoft . Json ;
23using System ;
34using System . Collections . Generic ;
45using System . Linq ;
@@ -14,81 +15,97 @@ public class SystemProperties : BaseSystemProperties
1415 /// <summary>
1516 /// The published version of the resource. Will be null for non-versioned types.
1617 /// </summary>
18+ [ JsonProperty ( NullValueHandling = NullValueHandling . Ignore ) ]
1719 public int ? Revision { get ; set ; }
1820
1921 /// <summary>
2022 /// The date and time the resource was deleted. This field will only be present for <seealso cref="SyncResult"/> deleted items.
2123 /// </summary>
24+ [ JsonProperty ( NullValueHandling = NullValueHandling . Ignore ) ]
2225 public DateTime ? DeletedAt { get ; set ; }
2326
2427 /// <summary>
2528 /// The locale of the resource. Will only have a value for <seealso cref="Asset"/> and <seealso cref="Entry{T}"/> resource types.
2629 /// </summary>
30+ [ JsonProperty ( NullValueHandling = NullValueHandling . Ignore ) ]
2731 public string Locale { get ; set ; }
2832
2933 /// <summary>
3034 /// The <seealso cref="ContentType"/> of the resource. Only applicable for <seealso cref="Entry{T}"/> resource types.
3135 /// </summary>
36+ [ JsonProperty ( NullValueHandling = NullValueHandling . Ignore ) ]
3237 public ContentType ContentType { get ; set ; }
3338
3439 /// <summary>
3540 /// The number of times the resource has been published.
3641 /// </summary>
42+ [ JsonProperty ( NullValueHandling = NullValueHandling . Ignore ) ]
3743 public int ? PublishedCounter { get ; set ; }
3844
3945 /// <summary>
4046 /// The published version of the resource. Will only be present for management API calls.
4147 /// </summary>
48+ [ JsonProperty ( NullValueHandling = NullValueHandling . Ignore ) ]
4249 public int ? PublishedVersion { get ; set ; }
4350
4451 /// <summary>
4552 /// The user that published the resource. Will only be present for management API calls.
4653 /// </summary>
54+ [ JsonProperty ( NullValueHandling = NullValueHandling . Ignore ) ]
4755 public User PublishedBy { get ; set ; }
4856
4957 /// <summary>
5058 /// When the resource was last published. Will only be present for management API calls.
5159 /// </summary>
60+ [ JsonProperty ( NullValueHandling = NullValueHandling . Ignore ) ]
5261 public DateTime ? PublishedAt { get ; set ; }
5362
5463 /// <summary>
5564 /// The number of times the resource has been published. Will only be present for management API calls.
5665 /// </summary>
66+ [ JsonProperty ( NullValueHandling = NullValueHandling . Ignore ) ]
5767 public int ? PublishCounter { get ; set ; }
5868
5969 /// <summary>
6070 /// When the resource was first published. Will only be present for management API calls.
6171 /// </summary>
72+ [ JsonProperty ( NullValueHandling = NullValueHandling . Ignore ) ]
6273 public DateTime ? FirstPublishedAt { get ; set ; }
6374
6475 /// <summary>
6576 /// The date and time the resource was archived. Will only be present for management API calls.
6677 /// </summary>
78+ [ JsonProperty ( NullValueHandling = NullValueHandling . Ignore ) ]
6779 public DateTime ? ArchivedAt { get ; set ; }
6880
6981 /// <summary>
7082 /// The version that is currently archived. Will only be present for management API calls.
7183 /// </summary>
84+ [ JsonProperty ( NullValueHandling = NullValueHandling . Ignore ) ]
7285 public int ? ArchivedVersion { get ; set ; }
7386
7487 /// <summary>
7588 /// The link to the user that last archived this content. Will only be present for management API call.
7689 /// </summary>
90+ [ JsonProperty ( NullValueHandling = NullValueHandling . Ignore ) ]
7791 public User ArchivedBy { get ; set ; }
7892
7993 /// <summary>
8094 /// The organization the resource links to. Will only be present for certain management API calls.
8195 /// </summary>
96+ [ JsonProperty ( NullValueHandling = NullValueHandling . Ignore ) ]
8297 public Organization Organization { get ; set ; }
8398
8499 /// <summary>
85100 /// The usage period the resource links to. Will only be present for certain management API calls.
86101 /// </summary>
87- public UsagePeriod UsagePeriod { get ; set ; }
102+ [ JsonProperty ( NullValueHandling = NullValueHandling . Ignore ) ]
103+ public UsagePeriod UsagePeriod { get ; set ; }
88104
89105 /// <summary>
90106 /// The link to the status that the current object had. Used only for resources that have a status.
91107 /// </summary>
108+ [ JsonProperty ( NullValueHandling = NullValueHandling . Ignore ) ]
92109 public Status Status { get ; set ; }
93110 }
94111}
0 commit comments