packValue method

  1. @override
void packValue(
  1. BsonBinary buffer
)
override

Implementation

@override
void packValue(BsonBinary buffer) {
  buffer.writeInt(byteLength());
  data.forEach((var key, var value) {
    BsonObject.bsonObjectFrom(value).packElement(key, buffer);
  });
  buffer.writeByte(0);
}