parcelable

fun <T : Parcelable> Bundle?.parcelable(expected: Class<T>): T?

Reads the single Parcelable of expected type, or null when the envelope carries none.

This — and every reader below it — sets the Bundle's class loader before touching it. A Bundle that crosses a process boundary arrives lazily parcelled with the system class loader, which cannot see this library's model classes, so reading one without that step throws BadParcelableException. No call site should have to remember it.