How to convert Python mongongine object (Document) to dictionary?

Solution
products = ProductModel.objects()
products.to_mongo()