asMap property

Map asMap
override

Asserts that value exists and is a Map and returns it.

asMapOr may be used to provide a default value instead of rejecting the request if value doesn't exist.

Implementation

Map get asMap => _getTyped('an Object', (value) => value is Map);