I am using @Parcelize to create parcable model with kotlin
@Parcelize
data class GymPackage(
val id: Int?,
val name: String?,
val description: String?,
val price: Int?,
val duration: Int?,
@SerializedName("discount_precentage")
val discountPrecentage: Int?,
@SerializedName("price_after_discount")
val priceAfterDiscount: Double?,
@SerializedName("gym_id")
val gymId: Int?
) : Parcelable
i got this error Error Unable to invoke no-args constructor for class com.inova.algym.datalayer.remote.responses.GymPackage. Registering an InstanceCreator with Gson for this type may fix this problem.
koltin version :: 1.3.61
Tried this but not solve the problem