Table of Contents

Class DriverChangeConverter2

Namespace
Geotab.Checkmate.Serialization
Assembly
Geotab.Checkmate.ObjectModel.dll

Json converter for DriverChange

public class DriverChangeConverter2 : GeotabJsonConverter2<DriverChange>
Inheritance
DriverChangeConverter2
Inherited Members

Constructors

DriverChangeConverter2()

public DriverChangeConverter2()

Properties

ShouldSerializeProp

Gets a Func that controls which properties are serialized, and handles any non-standard property
serialization.

///

protected virtual Func<PropertyInfo, DriverChange, object?> ShouldSerializeProp { get; }

Property Value

Func<PropertyInfo, DriverChange, 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, DriverChange?, 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, DriverChange? value, JsonSerializerOptions options)

Parameters

writer Utf8JsonWriter

The writer.

value DriverChange

The value.

options JsonSerializerOptions

The serializer options.