register

abstract suspend fun register(data: T)

Lets the registry know about the specified type T, this may store the object in a local map, which is used for reconstructing later.