[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(): `[`Bundle`](https://developer.android.com/reference/android/os/Bundle.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/support/ktx/src/main/java/mozilla/components/support/ktx/kotlin/Map.kt#L18)

Converts a Map to a Bundle

