Move date converters onto the contracts
This commit is contained in:
1 parent
6d3260db49
commit
31b114982e
6 files changed
+29
-23
No files matched your search
@@ -26,6 +26,7 @@ public record Event
|
||||
/// as the time.
|
||||
/// </remarks>
|
||||
[JsonPropertyName("start")]
|
||||
[JsonConverter(typeof(LocalDateTimeConverter))]
|
||||
public DateTime Start { get; init; }
|
||||
|
||||
/// <summary>
|
||||
@@ -35,6 +36,7 @@ public record Event
|
||||
/// The end time, or <see langword="null"/> if the event has no end.
|
||||
/// </value>
|
||||
[JsonPropertyName("end")]
|
||||
[JsonConverter(typeof(NullableLocalDateTimeConverter))]
|
||||
public DateTime? End { get; init; }
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in new issue
Block a user