GO:0030748: amine N-methyltransferase activity
Catalysis of the reaction: S-adenosyl-L-methionine + an amine = S-adenosyl-L-homocysteine + a methylated amine.