asMap property

  1. @override
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

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