We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12a9684 commit 5bc7a1dCopy full SHA for 5bc7a1d
csharp/getting-started/console-webapiclient/Repository.cs
@@ -1,10 +1,12 @@
1
-public record class Repository(
+using System.Text.Json.Serialization;
2
+
3
+public record class Repository(
4
string Name,
5
string Description,
- Uri GitHubHomeUrl,
6
+ [property: JsonPropertyName("html_url")] Uri GitHubHomeUrl,
7
Uri Homepage,
8
int Watchers,
- DateTime LastPushUtc
9
+ [property: JsonPropertyName("pushed_at")] DateTime LastPushUtc
10
)
11
{
12
public DateTime LastPush => LastPushUtc.ToLocalTime();
0 commit comments