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