Class NullConverter
- Namespace
- NetCord.JsonConverters
- Assembly
- NetCord.dll
You must use JsonIgnoreAttribute(Condition = WhenWritingDefault)
public class NullConverter : JsonConverter<bool>
- Inheritance
-
NullConverter
- Inherited Members
Constructors
NullConverter()
public NullConverter()
Methods
Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
public override bool Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
reader
Utf8JsonReadertypeToConvert
Typeoptions
JsonSerializerOptions
Returns
Write(Utf8JsonWriter, bool, JsonSerializerOptions)
public override void Write(Utf8JsonWriter writer, bool value, JsonSerializerOptions options)
Parameters
writer
Utf8JsonWritervalue
booloptions
JsonSerializerOptions