<PackageReference Include="System.Text.Json" Version="9.0.5" />

JsonPropertyNameAttribute

Specifies the property name that is present in the JSON when serializing and deserializing.
using System.Runtime.CompilerServices; namespace System.Text.Json.Serialization { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)] public sealed class JsonPropertyNameAttribute : JsonAttribute { public string Name { get; } public JsonPropertyNameAttribute(string name) { Name = name; } } }