API Reference
Class
ChartJsAlignNullableConverter
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@
- The JSON reader.
- typeToConvert System.Type
- The target type to convert.
- options System.Text.Json.JsonSerializerOptions
- The serializer options.
Returns
The parsed ChartJsAlign value or null.
public override Void Write(Utf8JsonWriter writer, Nullable<ChartJsAlign> value, JsonSerializerOptions options) #Returns:
VoidWrites a nullable ChartJsAlign value as JSON.
Parameters
- writer System.Text.Json.Utf8JsonWriter
- The JSON writer.
- value System.Nullable{HtmlForgeX.ChartJsAlign}
- 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=7cec85d7bea7798e]]
Parameters
- typeToConvert Type
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
public override Nullable<ChartJsAlign> ReadAsPropertyName(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) #Returns:
Nullable<ChartJsAlign>Inherited from 0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]
Parameters
- reader Utf8JsonReader
- typeToConvert Type
- options JsonSerializerOptions
public override Void WriteAsPropertyName(Utf8JsonWriter writer, Nullable<ChartJsAlign> value, JsonSerializerOptions options) #Returns:
VoidInherited from 0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]
Parameters
- writer Utf8JsonWriter
- value Nullable<ChartJsAlign>
- options JsonSerializerOptions