I predicted the mechanism like this.
Lone pair on in formaldehyde double bond with oxygen is rearranged as lone pair shifts on oxygen and oxygen acquires negative charge.
Then the nitrogen on H3NO attacks the positively charged carbon of formaldehyde.
This is how i attempted it.
If it's incorrect please let me know what's the correct one.