idValue

val Any?.idValue: Any?

Returns the Mongo Id value (which can be null), or null if no id property is found.