How to use gatling while using post method and sending an Custom java class object!!

Hi All,

I am using Gatling for Stress Testing for my REST application in which my method has definition as below:

public String addEmployee(Employee e){

//business logic


Employee is my custom JAVA class with data members as name, id and deptname

So could you help me in writing the simulation file for the above scenario?

I have written as below:

.post( “/add”)

Please help me in writing action for this scenario?