Class DeviceStatusInfoConverter2
- Namespace
- Geotab.Checkmate.Serialization
- Assembly
- Geotab.Checkmate.ObjectModel.dll
Json serializer for DeviceStatusInfo
public class DeviceStatusInfoConverter2 : GeotabJsonConverter2<DeviceStatusInfo>
- Inheritance
-
DeviceStatusInfoConverter2
- Inherited Members
Constructors
DeviceStatusInfoConverter2()
public DeviceStatusInfoConverter2()
Properties
ShouldSerializeProp
Gets a Func that controls which properties are serialized, and handles any non-standard property serialization.
protected virtual Func<PropertyInfo, DeviceStatusInfo, object?> ShouldSerializeProp { get; }
Property Value
- Func<PropertyInfo, DeviceStatusInfo, 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, DeviceStatusInfo?, 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, DeviceStatusInfo? value, JsonSerializerOptions options)
Parameters
writer
Utf8JsonWriterThe writer.
value
DeviceStatusInfoThe value.
options
JsonSerializerOptionsThe serializer options.