Added durationType to REST and removed getter for duration