HtmlForgeX

API Reference

Class

ChartJsInteractionModeNullableConverter

Namespace HtmlForgeX
Assembly HtmlForgeX
Base JsonConverter<Nullable<ChartJsInteractionMode>>

Converts nullable ChartJsInteractionMode enum.

Inheritance

  • JsonConverter<Nullable<ChartJsInteractionMode>>
  • ChartJsInteractionModeNullableConverter

Constructors

public ChartJsInteractionModeNullableConverter() #

Methods

public override Nullable<ChartJsInteractionMode> Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) #
Returns: Nullable<ChartJsInteractionMode>

Reads a nullable ChartJsInteractionMode 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 ChartJsInteractionMode value or null.

public override Void Write(Utf8JsonWriter writer, Nullable<ChartJsInteractionMode> value, JsonSerializerOptions options) #
Returns: Void

Writes a nullable ChartJsInteractionMode value as JSON.

Parameters

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