Class JsonLowerCaseStringEnumConverter
Class to convert enums to and from lowercase JSON strings
Inherited Members
Namespace: DuetAPI.Utility
Assembly: DuetAPI.dll
Syntax
public class JsonLowerCaseStringEnumConverter : JsonConverterFactory
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 | If the type can be converted |
Overrides
CreateConverter(Type, JsonSerializerOptions)
Creates a converter for the given type
Declaration
public override JsonConverter CreateConverter(Type type, JsonSerializerOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | |
| JsonSerializerOptions | options |
Returns
| Type | Description |
|---|---|
| JsonConverter |