HtmlForgeX

API Reference

Class

ChartJsFontWeightConverter

Namespace HtmlForgeX
Assembly HtmlForgeX
Base JsonConverter<ChartJsFontWeight>

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: ChartJsFontWeight

Reads a ChartJsFontWeight value from JSON.

Parameters

reader System.Text.Json.Utf8JsonReader@ requiredposition: 0
The JSON reader.
typeToConvert System.Type requiredposition: 1
The target type to convert.
options System.Text.Json.JsonSerializerOptions requiredposition: 2
The serializer options.

Returns

The parsed ChartJsFontWeight.

public override Void Write(Utf8JsonWriter writer, ChartJsFontWeight value, JsonSerializerOptions options) #
Returns: Void

Writes a ChartJsFontWeight value as JSON.

Parameters

writer System.Text.Json.Utf8JsonWriter requiredposition: 0
The JSON writer.
value HtmlForgeX.ChartJsFontWeight requiredposition: 1
The value to write.
options System.Text.Json.JsonSerializerOptions requiredposition: 2
The serializer options.