using System.Text.Json.Serialization; namespace Adaptation.FileHandlers.json.WorkItems; internal class Relation { [JsonConstructor] public Relation(string rel, string url, Attribute attributes) { Rel = rel; URL = url; Attributes = attributes; } [JsonPropertyName("attributes")] public Attribute Attributes { get; set; } [JsonPropertyName("rel")] public string Rel { get; set; } [JsonPropertyName("url")] public string URL { get; set; } } [JsonSourceGenerationOptions(WriteIndented = true)] [JsonSerializable(typeof(Relation))] internal partial class RelationSourceGenerationContext : JsonSerializerContext { } [JsonSourceGenerationOptions(WriteIndented = true)] [JsonSerializable(typeof(Relation[]))] internal partial class RelationCollectionSourceGenerationContext : JsonSerializerContext { }