An enzyme found primarily in the liver that catalyzes the N-methylation of NICOTINAMIDE and other structurally related compounds.