decode

fun decode(data: Any?): NodeState?

Returns a valid NodeState for data, null otherwise.