readMap method

Map readMap(
  1. dynamic source,
  2. dynamic key
)

Reads a map value from the source, and if not found, returns an empty map.

Implementation

Map readMap(source, key) {
  return tryReadMap(source, key) ?? {};
}