I'm creating a Realm object in Kotlin.
Realm Object:
open class PurposeModel(var _id: Long?,
var purposeEn: String?,
var purposeAr: String?) : RealmObject()
When I compile the above code I'm getting this error:
error: Class "PurposeModel" must declare a public constructor with no arguments if it contains custom constructors.
I can't find any question related to this in Kotlin. How do I resolve this?