Class ModelDictionaryConverter
Converter factory class for ModelDictionary<TValue> types
Inherited Members
Namespace: DuetAPI.ObjectModel
Assembly: DuetAPI.dll
Syntax
public sealed class ModelDictionaryConverter : JsonConverterFactory
Methods
CanConvert(Type)
Checks if the given type can be converted from or to JSON
Declaration
public override bool CanConvert(Type typeToConvert)
Parameters
Type | Name | Description |
---|---|---|
Type | typeToConvert |
Returns
Type | Description |
---|---|
bool |
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 | Target type |
JsonSerializerOptions | options | Conversion options |
Returns
Type | Description |
---|---|
JsonConverter | Converter instance |