What is the status of any child of a marriage that has been annulled?

Notwithstanding the annulment, as at the date of the decree, the child shall be deemed to be their legitimate child (if the child would have been the legitimate child of the parties to the marriage if it had been dissolved (by way of divorce) instead of being annulled.