• Reconstruct a live class instance from its serialized form — the inverse of defaultToJSON followed by JSON.stringify. Accepts either the JSON string or the already-parsed object. Nested registered instances are revived bottom-up; the owning sohl.core.logic.SohlLogic is supplied via parent (every modifier/result requires one) rather than carried in the payload.

    Type Parameters

    • T

      The expected reconstructed type.

    Parameters

    • data: string | PlainObject

      The serialized instance (JSON string or parsed object).

    • Optionalparent: unknown

      The logic to own the reconstructed instance and its nested modifiers/results.

    Returns T

    The reconstructed live instance.