Preheat your oven to 375°F (190°C).
In a mixing bowl, combine the grated Parmesan cheese, mayonnaise, garlic powder, onion powder, black pepper, salt, crushed red pepper flakes (if using), and lemon juice. Mix until well combined.
Gently fold in the drained artichoke hearts, ensuring they are evenly coated with the cheese mixture.
Transfer the mixture to a greased baking dish, spreading it out evenly.
Bake in the preheated oven for 25-30 minutes, or until the top is golden and bubbly.
Remove from the oven and let it cool for a few minutes. Garnish with chopped fresh parsley before serving.