[android-components](../index.md) / [mozilla.components.support.utils](index.md) / [toSafeBundle](./to-safe-bundle.md)

# toSafeBundle

`fun <ERROR CLASS>.toSafeBundle(): <ERROR CLASS>` [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/support/utils/src/main/java/mozilla/components/support/utils/SafeBundle.kt#L49)

Returns a [SafeBundle](-safe-bundle/index.md) for the given [Bundle](#).

