HtmlForgeX

API Reference

Class

ChartJsAlignNullableConverter

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

Converts nullable ChartJsAlign enum.

Inheritance

  • JsonConverter<Nullable<ChartJsAlign>>
  • ChartJsAlignNullableConverter

Constructors

public ChartJsAlignNullableConverter() #

Methods

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

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

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

Writes a nullable ChartJsAlign value as JSON.

Parameters

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