Class JsonCamelCaseStringEnumConverter
Class for easier access to JsonStringEnumConverter with camel-case naming
Inherited Members
Namespace: DuetAPI.Utility
Assembly: DuetAPI.dll
Syntax
public sealed class JsonCamelCaseStringEnumConverter : JsonConverterFactory
Constructors
JsonCamelCaseStringEnumConverter()
Creates a new instance
Declaration
public JsonCamelCaseStringEnumConverter()
Methods
CanConvert(Type)
Checks if the given type can be converted
Declaration
public override bool CanConvert(Type typeToConvert)
Parameters
Type | Name | Description |
---|---|---|
Type | typeToConvert | Type to convert |
Returns
Type | Description |
---|---|
bool | Whether the type can be converted |
Overrides
CreateConverter(Type, JsonSerializerOptions)
Creates a new JSON converter
Declaration
public override JsonConverter CreateConverter(Type typeToConvert, JsonSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
Type | typeToConvert | Type to convert |
JsonSerializerOptions | options | Conversion options |
Returns
Type | Description |
---|---|
JsonConverter | JSON converter |