@classmethod
def deserialize_insert(cls, document: dict):
    """
        Update this document values to values that can be inserted in Mongo.
        Remove entries for unknown fields.
        Convert dot notation fields to corresponding dictionary as dot notation is not allowed on insert.

        :param document: Document that should be inserted.
        Each entry if composed of a field name associated to a value.
        """
    cls._remove_dot_notation(document)
    for field in cls.__fields__:
        field.deserialize_insert(document)
        if field.should_auto_increment:
            document[field.name] = cls._increment(*field.get_counter(document))
