MapExtension<K, V> extension

on

Methods

extract<T>(K key) Option<T>

Available on Map<K, V>, provided by the MapExtension extension

Return an Option that conditionally accesses map keys, if they match the given type. Useful for accessing nested JSON.
extractMap(K key) Option<Map<K, dynamic>>

Available on Map<K, V>, provided by the MapExtension extension

Return an Option that conditionally accesses map keys, if they contain a map with the same key type. Useful for accessing nested JSON.
lookup(K key) Option<V>

Available on Map<K, V>, provided by the MapExtension extension

Return an Option that conditionally accesses map keys.