getMap<K2, V2> method

Map<K2, V2> getMap<K2, V2>(
  1. K key, {
  2. List<K>? alternativeKeys,
  3. dynamic innerKey,
  4. int? innerListIndex,
  5. Map<K2, V2>? defaultValue,
  6. ElementConverter<K2>? keyConverter,
  7. ElementConverter<V2>? valueConverter,
})

Converts the value at key (or alternativeKeys) to a Map of K2 to V2.

Implementation

Map<K2, V2> getMap<K2, V2>(
  K key, {
  List<K>? alternativeKeys,
  dynamic innerKey,
  int? innerListIndex,
  Map<K2, V2>? defaultValue,
  ElementConverter<K2>? keyConverter,
  ElementConverter<V2>? valueConverter,
}) => ConvertObjectImpl.toMap<K2, V2>(
  _firstValueForKeys(key, alternativeKeys: alternativeKeys),
  mapKey: innerKey,
  listIndex: innerListIndex,
  defaultValue: defaultValue,
  keyConverter: keyConverter,
  valueConverter: valueConverter,
  debugInfo: {
    'key': key,
    if (alternativeKeys != null && alternativeKeys.isNotEmpty)
      'altKeys': alternativeKeys,
  },
);