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

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 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.

Initializes a new instance of the StringEnumConverter class.

public StringEnumConverter(bool camelCaseText)

Initializes a new instance of the StringEnumConverter class.