The serialized shape shared by every SohlEntity, and the base each subclass's own Data extends. An entity's toJSON() output is valid Data for its constructor, so new Ctor(x.toJSON(), { parent }) reconstructs x.

interface Data {
    __kind?: string;
}

Hierarchy (View Summary)

Properties

Properties

__kind?: string

Discriminator kind, written on serialization (SohlEntity.toJSON) and read back on revival. Optional as constructor input — it is derived from the concrete class, not supplied by callers.