IFClite TypeScript API
    Preparing search index...

    Function flattenStructuredBranches

    • Fold an entity's structured branches into its flat attribute record. Structured values overwrite same-key flat attributes — the typed branch is the newer write path, so it wins deterministically.

      Parameters

      • json: { attributes: Record<string, unknown>; meta?: Record<string, unknown> } & StructuredBranchesJSON
        • attributes: Record<string, unknown>
        • Optionalmeta?: Record<string, unknown>

          Per-entity provenance. Optional so a caller assembling only the structured branches (tests, partial views) need not synthesize an empty record; entityToJSON always supplies it.

      • Optionaloptions: FlattenOptions

      Returns Record<string, unknown>