custom toJSON method for Product model