API Reference
Class
ChartJsFontWeightConverter
Converts ChartJsFontWeight enum to lowercase string or numeric value.
Inheritance
- JsonConverter<ChartJsFontWeight>
- ChartJsFontWeightConverter
Constructors
public ChartJsFontWeightConverter() #Methods
public override ChartJsFontWeight Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) #Returns:
ChartJsFontWeightReads a ChartJsFontWeight value from JSON.
Parameters
- reader System.Text.Json.Utf8JsonReader@
- The JSON reader.
- typeToConvert System.Type
- The target type to convert.
- options System.Text.Json.JsonSerializerOptions
- The serializer options.
Returns
The parsed ChartJsFontWeight.
public override Void Write(Utf8JsonWriter writer, ChartJsFontWeight value, JsonSerializerOptions options) #Returns:
VoidWrites a ChartJsFontWeight value as JSON.
Parameters
- writer System.Text.Json.Utf8JsonWriter
- The JSON writer.
- value HtmlForgeX.ChartJsFontWeight
- The value to write.
- options System.Text.Json.JsonSerializerOptions
- The serializer options.
Inherited Methods
public override Boolean CanConvert(Type typeToConvert) #Returns:
BooleanInherited from 0, Culture=neutral, PublicKeyToken=null]]
Parameters
- typeToConvert Type
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
public override ChartJsFontWeight ReadAsPropertyName(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) #Returns:
ChartJsFontWeightInherited from 0, Culture=neutral, PublicKeyToken=null]]
Parameters
- reader Utf8JsonReader
- typeToConvert Type
- options JsonSerializerOptions
public override Void WriteAsPropertyName(Utf8JsonWriter writer, ChartJsFontWeight value, JsonSerializerOptions options) #Returns:
VoidInherited from 0, Culture=neutral, PublicKeyToken=null]]
Parameters
- writer Utf8JsonWriter
- value ChartJsFontWeight
- options JsonSerializerOptions