JsonPropertyName

This commit is contained in:
2024-09-16 13:37:34 -07:00
parent 65e31b09cc
commit 11293968b8
10 changed files with 63 additions and 115 deletions

View File

@ -17,8 +17,8 @@ public class Relation
Attributes = attributes;
}
public string Rel { get; set; } // { init; get; }
public string URL { get; set; } // { init; get; }
public Attribute Attributes { get; set; } // { init; get; }
[JsonPropertyName("attributes")] public Attribute Attributes { get; set; }
[JsonPropertyName("rel")] public string Rel { get; set; }
[JsonPropertyName("url")] public string URL { get; set; }
}