Class DriverIdJsonConverter
Converter for DriverId instances
public sealed class DriverIdJsonConverter : JsonConverter<DriverId>
- Inheritance
-
DriverIdJsonConverter
- Inherited Members
Constructors
DriverIdJsonConverter()
public DriverIdJsonConverter()
Methods
Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
Read an instance from JSON
public override DriverId? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
readerUtf8JsonReaderJSON reader
typeToConvertTypeTarget type
optionsJsonSerializerOptionsJSON options
Returns
Write(Utf8JsonWriter, DriverId?, JsonSerializerOptions)
Write an instance to JSON
public override void Write(Utf8JsonWriter writer, DriverId? value, JsonSerializerOptions options)
Parameters
writerUtf8JsonWriterJSON writer
valueDriverIdValue to write
optionsJsonSerializerOptionsJSON options