Sin args error retrofit request body

Estoy enfrentando un problema al enviar el cuerpo del object json usando la actualización al server. A continuación está el error.

Error al invocar public com.nitesh.brill.saleslines._User_Classes.User_PojoClass.UpdatePreviousDetails () sin arguments

fragment de código

// punto final Api

@Headers("Content-Type: application/json") @POST("UpdatePreviousDetails/{Id}") fun updatePreviousDetails(@Path("Id") Id: Int, @Body updateDetails :UpdatePreviousDetails): Call<UpdatePreviousDetails> 

// class pojo

 package com.nitesh.brill.saleslines._User_Classes.User_PojoClass import java.util.* /** * Created by Nitesh Android on 16-08-2017. */ class UpdatePreviousDetails( var CompanyName: String? = null!!, var Designation: String? = null!!, var DateOfJoin: Date? = null!!, var DateOfLeaving: Date? = null!!, var SectorPreviouslyWorked: String? = null!!, var Id: Int? = null!! ) { } 

//enviando datos

 val details = UpdatePreviousDetails("rr", "asm", date, date, "Pharmaceuticals",3) val call = apiEndpointInterface!!.updatePreviousDetails(5, details) call.enqueue(object :Callback<UpdatePreviousDetails> { override fun onResponse(call: Call<UpdatePreviousDetails>?, response: Response<UpdatePreviousDetails>?) { objUsefullData.showSnackBar("success") UsefullData.Log("============="+response!!.body().toString()) } override fun onFailure(call: Call<UpdatePreviousDetails>?, t: Throwable?) { objUsefullData.showSnackBar("fail") UsefullData.Log("============="+t) } }) 

Estoy usando el lenguaje kotlin

Su class UpdatePreviousDetails tiene que tener un constructor sin parameters para permitir a Gson (dentro de Retrofit) convertir su object en JSON.

EDITAR

 class UpdatePreviousDetails() { var CompanyName: String? = null var Designation: String? = null var DateOfJoin: Date? = null var DateOfLeaving: Date? = null var SectorPreviouslyWorked: String? = null var Id: Int? = null constructor( CompanyName: String?, Designation: String?, DateOfJoin: Date?, DateOfLeaving: Date?, SectorPreviouslyWorked: String?, Id: Int? ) : this() { this.CompanyName = CompanyName this.Designation = Designation this.DateOfJoin = DateOfJoin this.DateOfLeaving = DateOfLeaving this.SectorPreviouslyWorked = SectorPreviouslyWorked this.Id = Id } }