Skip to main content
Version: 2.2.0

Function: deserialize()

deserialize(data): Namefully

Deserializes a JSON object into a Namefully instance.

This is the inverse operation of serialize(), reconstructing a Namefully instance from a previously serialized JSON object, preserving the name hierarchy.

Parameters

data

string | SerializedName

the serialized Namefully data (from serialize() or compatible format).

Returns

Namefully

a new Namefully instance.

Throws

if the data cannot be parsed or is invalid.