asMap
Creates a Map view of this document.
Each entry associates a field and its value.
The iteration order of a BSON document is preserved: fields appear in the same order as they are written in.
Requirements
The Map.toString output should follow the same rules as on BsonDocument itself.
The Map.equals and Map.hashCode implementations should follow the equality rules of the JDK.
The Map.entries set should follow the equality rules of the JDK.