assertDictionary()function

assertDictionary(value: unknown, caller: AnyCaller = assertDictionary): asserts value is ImmutableDictionary
ParamType
valueunknown
The value to assert. required
callerAnyCaller
Function to attribute a thrown error to (defaults to assertDictionary itself). Defaults to assertDictionary
Return
asserts value is ImmutableDictionary
Throws
ValueError
If value is not a dictionary object.

Assert that an unknown value is a dictionary object.