command property

Map<String, dynamic> command

Gets the getlasterror command for this write concern.

Implementation

Map<String, dynamic> get command {
  var map = <String, dynamic>{};
  map['getlasterror'] = 1;
  if (w != null) {
    map[keyW] = w;
  }
  if (wtimeout != null) {
    map[keyWtimeout] = wtimeout;
  }
  if (fsync) {
    map[keyFsync] = fsync;
  }
  if (j) {
    map[keyJ] = j;
  }
  return map;
}