deserializeState(jsonState) {
        try {
            const state = JSON.parse(jsonState);
            this.importState(state);
        } catch (error) {
            throw new Error('Failed to deserialize state: ' + error.message);
        }
    }
Deserializes a JSON string and imports the state.

@param {string} jsonState - A JSON string representing a previously serialized state.
@throws {Error} If the JSON is invalid or state import fails.

@description
This is a convenience method that parses a JSON string and imports the resulting state.

@example
// Assuming jsonState is retrieved from storage
undoRedoManager.deserializeState(jsonState);