Try Catch on Serialize
Better Relation Data
This commit is contained in:
@ -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; }
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user