Hello,
The case will be compromised on the basis of the Settelment deed. The said deed will then form a part of decree.
The deed will be finalized by a lawyer wherein all the required clause as per the settlement will be jotted down.
You will have to get in touch with a lawyer who may help you in drafting the same.
Regards