Class SystemTextJsonRedbSerializer

Assembly: redb.Core.dll
public class SystemTextJsonRedbSerializer : IRedbObjectSerializer

Inheritance

ObjectSystemTextJsonRedbSerializer

Implements

Methods

Deserialize<TProps>(string)

public RedbObject<TProps> Deserialize<TProps>(string json) where TProps : class, new()

DeserializeDynamic(string, Type)

Dynamic JSON deserialization to typed object based on runtime type

public IRedbObject DeserializeDynamic(string json, Type propsType)

DeserializeRedbDynamic(string, Type)

Polymorphic JSON deserialization to RedbObject based on runtime type

public RedbObject? DeserializeRedbDynamic(string json, Type propsType)

SetTypeResolver(Func<long, Type?>)

Set the type resolver function for polymorphic deserialization.

public static void SetTypeResolver(Func<long, Type?> resolver)