asMap

abstract fun asMap(): Map<String, BsonValue>(source)

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