Skip to content

toModel

toModel(block): MapModel

Defined in: packages/core/src/model/to-model.ts:28

Turn a parsed block into the internal model, selecting the reader by version.

ParameterTypeDescription
blockobject & Record<string, unknown>A parsed block; version (when present) selects the front end.

MapModel

The internal MapModel.

version: 2 routes to readV2Block (U3). Absent or version: 1 is the v1 normalizer, unchanged.