Serialize node to get persisted.