primaryKey

abstract val primaryKey: RealmProperty?

The primary key property of the object model or null if the object model doesn't have a primary key.