IMap<K, V>.fromMap constructor

IMap<K, V>.fromMap(
  1. Map<K, V> other
)

Creates an IMap with the same keys and values as other.

other must be of type Map<Guid, Object?>, Map<String, Object?>, or Map<String, String>.

Implementation

factory IMap.fromMap(Map<K, V> other) {
  final map = IMap<K, V>();
  other.forEach(map.insert);
  return map;
}