toPersistableBundle

@RequiresApi(value = 22)
fun Bundle.toPersistableBundle(): PersistableBundle

Creates a new PersistableBundle from the specified Bundle. Will ignore all values that are not persistable, according to .isPersistableBundleType.