title: How to generate JsonPropertyName dynamically?
body: <p>I have the below Model class,</p>
  <pre><code>using System.ComponentModel.DataAnnotations;
  using System.Text.Json.Serialization;
  
  public class FormField
  {
      [Required]
      [JsonPropertyName(&quot;STD_USERTYPEID&quot;)]
      public string UserTypeId { get; set; }
  
      [Required]
      [JsonPropertyName(&quot;STD_OFFICETYPEID&quot;)]
      public string OfficeTypeId { get; set; }
  }
  </code></pre>
  <p>I have a few scenarios where <code>STD_OFFICETYPEID</code> may come as <code>LegacyOFFICETYPEID</code> or <code>OfficeID</code>. Is there a way in which I can dynamically generate <code>JsonPropertyName</code>?
  I am using <code>System.Text.Json</code> NuGet package.</p>
  <p>Note that this example is simplified.  In my production code there could be 20-25 concrete properties. And all of these properties could map to 5-10 different JsonPropertyNames each.</p>