Skip to content

BeechCMS


BeechCMS / @beechcms/core / deserializeFromDb

Function: deserializeFromDb() ​

deserializeFromDb(branch, value): unknown

Deserializes a value read from the DB to its API/JS representation. 0/1 → boolean | Unix timestamp → ISO 8601 | JSON string → object/array Localized branches: locale dictionary ↔ compact JSON.

Parameters ​

branch ​

Branch

The branch definition.

value ​

unknown

The raw database value.

Returns ​

unknown

The deserialized value.