Class DvirLogConverter2
- Namespace
- Geotab.Checkmate.Serialization
- Assembly
- Geotab.Checkmate.ObjectModel.dll
Json converter for DVIRLog
public class DvirLogConverter2 : GeotabJsonConverter2<DVIRLog>
- Inheritance
-
DvirLogConverter2
- Inherited Members
Constructors
DvirLogConverter2()
public DvirLogConverter2()
Properties
ShouldSerializeProp
Gets a Func that controls which properties are serialized, and handles any non-standard property serialization.
protected virtual Func<PropertyInfo, DVIRLog, object?> ShouldSerializeProp { get; }
Property Value
- Func<PropertyInfo, DVIRLog, object>
A Func that takes a PropertyInfo and the object containing that property. This Func should return one of three things: the Serialize object which tells the caller to serialize this property, the DontSerialize object which tells the caller to skip this property, or a value to be serialized.
Methods
WriteJson(Utf8JsonWriter, DVIRLog?, JsonSerializerOptions)
Same as WriteJson{JsonWriter, object, JsonSerializerOptions} but after the null check has been performed. If value
is null it is OK to write.
public override void WriteJson(Utf8JsonWriter writer, DVIRLog? value, JsonSerializerOptions options)
Parameters
writer
Utf8JsonWriterThe writer.
value
DVIRLogThe value.
options
JsonSerializerOptionsThe serializer options.