[android-components](../../index.md) / [mozilla.components.support.ktx.kotlin](../index.md) / [kotlin.collections.Map](index.md) / [toBundle](./to-bundle.md)

# toBundle

`fun <K, V> `[`Map`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html)`<`[`K`](to-bundle.md#K)`, `[`V`](to-bundle.md#V)`>.~~toBundle~~(): <ERROR CLASS>` [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/support/ktx/src/main/java/mozilla/components/support/ktx/kotlin/Map.kt#L15)
**Deprecated:** Use Android KTX bundleOf()

Converts a Map to a Bundle

