MongoDocument class

A representation of a document as a Map

Constructors

MongoDocument(Map<String, dynamic> map)
Creates a Document instance initialized with the given map. or an empty Document instance if not provided.
MongoDocument.single(String key, dynamic value)
Create a Document instance initialized with the given key/value pair.

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
map Map<String, Object>
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

append(String key, Object value) MongoDocument
Put the given key/value pair into this Document and return this. Useful for chaining puts in a single expression, e.g. doc.append("a", 1).append("b", 2)
get(String key) → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() String
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

fixMapMismatchedTypes(Map map) → dynamic
parse(dynamic data) MongoDocument
Parses a string in MongoDB Extended JSON format to a Document