Try Catch on Serialize
Better Relation Data
This commit is contained in:
25
Adaptation/FileHandlers/json/WIQL/Attribute.cs
Normal file
25
Adaptation/FileHandlers/json/WIQL/Attribute.cs
Normal file
@ -0,0 +1,25 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Adaptation.FileHandlers.json.WIQL;
|
||||
|
||||
internal class Attribute
|
||||
{
|
||||
|
||||
[JsonConstructor]
|
||||
public Attribute(bool isLocked,
|
||||
string name)
|
||||
{
|
||||
IsLocked = isLocked;
|
||||
Name = name;
|
||||
}
|
||||
|
||||
[JsonPropertyName("isLocked")] public bool IsLocked { get; }
|
||||
[JsonPropertyName("name")] public string Name { get; }
|
||||
|
||||
}
|
||||
|
||||
[JsonSourceGenerationOptions(WriteIndented = true)]
|
||||
[JsonSerializable(typeof(Attribute))]
|
||||
internal partial class WIQLAttributeSourceGenerationContext : JsonSerializerContext
|
||||
{
|
||||
}
|
Reference in New Issue
Block a user