toNavigationBundle

Converts a Bundle to a NavigationBundle matching a given NavigationBundleSpec

Parameters

spec

The NavigationBundleSpec used to create the NavigationBundle

Throws

if the Bundle does not contain the correct keys or values associated with the NavigationBundleSpec