Path: redb/redb.Core/Serialization/IRedbObjectSerializer.cs Snapshot: redb, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb Page: https://redbase.app/src/dev-2026-12-06/redb/redb.Core/Serialization/IRedbObjectSerializer.cs ---- using System; using redb.Core.Models.Contracts; using redb.Core.Models.Entities; namespace redb.Core.Serialization { // Abstraction for JSON object serialization from DB to typed wrapper public interface IRedbObjectSerializer { RedbObject Deserialize(string json) where TProps : class, new(); /// /// Dynamic JSON deserialization to typed object based on runtime type /// /// JSON string /// Type of properties for deserialization /// Deserialized object as interface IRedbObject DeserializeDynamic(string json, Type propsType); /// /// Polymorphic JSON deserialization to RedbObject based on runtime type /// Used for tree structures with different node types /// (conversion to TreeRedbObject happens at provider level) /// /// JSON string from v_objects_json /// Type of properties for deserialization /// Deserialized RedbObject or null RedbObject? DeserializeRedbDynamic(string json, Type propsType); } }