getParent

suspend fun <D : DataClass<*, *, *>> getParent(context: Context): D?

Gets the parent element of the DataClass.

Author

Arnau Mora

Since

20220106

Parameters

D

The parent type of the DataClass.

context

The context used for initializing the index if not ready.