Map<String, dynamic> toJson() => <String, dynamic>{ 'map': map.toJson(), 'reduce': reduce, 'options': options.toJson(), };