<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />

StringEnumConverter

Converts an Enum to and from its name string value.
public bool AllowIntegerValues { get; set; }

Gets or sets a value indicating whether integer values are allowed when serializing and deserializing. The default value is true.

public bool CamelCaseText { get; set; }

Gets or sets a value indicating whether the written enum text should be camel case. The default value is false.

public NamingStrategy NamingStrategy { get; set; }

Gets or sets the naming strategy used to resolve how enum text is written.

Initializes a new instance of the StringEnumConverter class.

public StringEnumConverter(bool camelCaseText)

Initializes a new instance of the StringEnumConverter class.

public StringEnumConverter(NamingStrategy namingStrategy, bool allowIntegerValues = true)

Initializes a new instance of the StringEnumConverter class.

public StringEnumConverter(Type namingStrategyType)

Initializes a new instance of the StringEnumConverter class.

public StringEnumConverter(Type namingStrategyType, object[] namingStrategyParameters)

Initializes a new instance of the StringEnumConverter class.

public StringEnumConverter(Type namingStrategyType, object[] namingStrategyParameters, bool allowIntegerValues)

Initializes a new instance of the StringEnumConverter class.