Added toJSON() transform for module model