Class PolymorphicRedbObjectConverter

Assembly: redb.Core.dll

✅ Polymorphic converter for IRedbObject
Automatically determines type based on scheme_id from JSON and deserializes to RedbObject<TProps>
Used for nested objects (e.g., RedbListItem.Object)

public class PolymorphicRedbObjectConverter : JsonConverter<IRedbObject>

Inheritance

ObjectJsonConverterIRedbObject}PolymorphicRedbObjectConverter

Methods

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Reads and converts the JSON to type .

public override IRedbObject? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Write(Utf8JsonWriter, IRedbObject?, JsonSerializerOptions)

Writes a specified value as JSON.

public override void Write(Utf8JsonWriter writer, IRedbObject? value, JsonSerializerOptions options)