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

@ -5,16 +5,27 @@ namespace Adaptation.FileHandlers.json.WorkItems;
internal class Attribute
{
#nullable enable
[JsonConstructor]
public Attribute(bool isLocked,
string name)
string name,
string? parameterTitle,
string? state,
string? workItemType)
{
IsLocked = isLocked;
Name = name;
ParameterTitle = parameterTitle;
State = state;
WorkItemType = workItemType;
}
[JsonPropertyName("isLocked")] public bool IsLocked { get; }
[JsonPropertyName("name")] public string Name { get; }
[JsonPropertyName("parameterTitle")] public string? ParameterTitle { get; set; }
[JsonPropertyName("state")] public string? State { get; set; }
[JsonPropertyName("workItemType")] public string? WorkItemType { get; set; }
}