Mix batter ingredients together, one ingredient at a time. Mix apples with lemon juice and set aside. Mix remainder of filling ingredients separately together.
Layer into greased pan starting with half of mixed batter, then apples then ricotta mix, then remaining batter on top. Almond flakes on top, if desired.
Bake for 40-45 min, enjoy!