Class FilterConverter<T>
JSON converter for Filter<T>, serializing each filter as a single-property JSON object keyed by the filter's field name.
public class FilterConverter<T> : JsonConverter<Filter<T>>
Type Parameters
T
- Inheritance
-
JsonConverter<Filter<T>>FilterConverter<T>
- Inherited Members
Methods
Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
Not implemented — filter deserialization is not supported.
public override Filter<T> Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
readerUtf8JsonReadertypeToConvertTypeoptionsJsonSerializerOptions
Returns
- Filter<T>
Write(Utf8JsonWriter, Filter<T>, JsonSerializerOptions)
Writes a Filter<T> as a JSON object keyed by the filter's field name.
public override void Write(Utf8JsonWriter writer, Filter<T> value, JsonSerializerOptions options)
Parameters
writerUtf8JsonWritervalueFilter<T>optionsJsonSerializerOptions