<PackageReference Include="Refit" Version="17.0.0" />

Refit.FormFieldNames

The compile-time names a form field can take, resolved by the Refit source generator.
public string ExplicitName { get; set; }

The [AliasAs] or [Query] name, which wins over every serializer name, or null.

public string JsonName { get; set; }

The [JsonPropertyName] name used with a System.Text.Json serializer, or null.

public string NewtonsoftName { get; set; }

The Newtonsoft.Json [JsonProperty] name, or null.

public string XmlName { get; set; }

The [XmlElement] or [XmlAttribute] name, or null.

public FormFieldNames(string ExplicitName, string JsonName, string NewtonsoftName, string XmlName)

The compile-time names a form field can take, resolved by the Refit source generator.

public static bool op_Equality(FormFieldNames left, FormFieldNames right)

public static bool op_Inequality(FormFieldNames left, FormFieldNames right)

public void Deconstruct(out string ExplicitName, out string JsonName, out string NewtonsoftName, out string XmlName)

public bool Equals(FormFieldNames other)

public string ForStyle(ContentSerializerNameStyle nameStyle)

Picks the serializer-specific name for the given attribute family.