MapOptionExtension<K> extension

on

Methods

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

Available on Option<Map<K, dynamic>>, provided by the MapOptionExtension 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 Option<Map<K, dynamic>>, provided by the MapOptionExtension extension

Return an Option that conditionally accesses map keys, if they contain a map with the same key type. Useful for accessing nested JSON.