Try Catch on Serialize

Better Relation Data
This commit is contained in:
2024-11-13 14:09:12 -07:00
parent 3fa7998ff6
commit 0505330ac5
17 changed files with 322 additions and 76 deletions

View File

@ -6,18 +6,18 @@ internal class Relation
{
[JsonConstructor]
public Relation(string rel,
string url,
Attribute attributes)
public Relation(Attribute attributes,
int id,
string rel)
{
Rel = rel;
URL = url;
Attributes = attributes;
Id = id;
Rel = rel;
}
[JsonPropertyName("attributes")] public Attribute Attributes { get; set; }
[JsonPropertyName("id")] public int Id { get; set; }
[JsonPropertyName("rel")] public string Rel { get; set; }
[JsonPropertyName("url")] public string URL { get; set; }
}