def to_marqo_score_modifiers(self) -> List[ScoreModifier]:
        """
        Convert this ScoreModifier to a list of marqo.core.models.marqo_query.ScoreModifier.
        """
        mult = [ScoreModifier(
            field=x.field_name,
            weight=x.weight,
            type=ScoreModifierType.Multiply
        ) for x in self.multiply_score_by] if self.multiply_score_by is not None else []
        add = [ScoreModifier(
            field=x.field_name,
            weight=x.weight,
            type=ScoreModifierType.Add
        ) for x in self.add_to_score] if self.add_to_score is not None else []

        return mult + add

        Convert this ScoreModifier to a list of marqo.core.models.marqo_query.ScoreModifier.
        
src/marqo/tensor_search/models/score_modifiers_object.py