You are entitled to maternity benefit based on the previous years PRSI contributions (min required 39Weeks for PRSI class A).
If you are made redundant before you start maternity leave and you are entitled to redundancy, you will receive redundancy payment and your application for maternity benefit will still apply.
If you are made redundant while on maternity leave you will be entitled to receive the balance of maternity benefit/leave AND any redundancy payment that you are entitled to.