Employee should record (audio/visual/witnessed/minuted) demand of resignation. This shall be evidence.If there is evidence then it help to render termination malafide.
Demand of resignation is offence.
Forced resignation can be termed deemed termination.
Employer should write to you about its intention to lay off/retrench.
But employers don't write to avoid claims of compensation/damages.
You have the option of submitting gentle communication under proper acknowledgment citing on dated.........................Mr/Ms..................demanded resignation with notice period of 30days...........quoting reason as..................and you need say....................time to contemplate as you have no other employment and are unprepared...............etc
Or you have the option of obliging the employer and offering your (NOTICE of )resignation (quoting reason or without reason)...............
Although there are judgments of Supreme Court of India that resignation can't be accepted before expiry of notice period but you alone would know the conduct of your employer.
Notice of resigantion can be withdrawn before expiry of notice period.
Are you a member of any employee's/trade unions? You should be.