GO:0008170:   N-methyltransferase activity
Catalysis of the transfer of a methyl group to the nitrogen atom of an acceptor molecule.