MongoDocument constructor

MongoDocument(
  1. Map<String, Object?>? map
)

Creates a Document instance initialized with the given map. or an empty Document instance if not provided.

Implementation

MongoDocument(Map<String, Object?>? map) {
  if (map != null) {
    //_map.addAll(map);
    //_map.addEntries(map.entries);
    for (String key in map.keys) {
      _map[key] = map[key];
    }
  }
}