def _from_native_dict(self, condition_dict):
        from numbers import Number
        from drf_to_s3.models import PolicyCondition
        if len(condition_dict) > 1:
            raise ValidationError(
                _('Too many values in condition dictionary: %(condition)s'),
                params={'condition': condition_dict},
            )
        element_name, value = condition_dict.popitem()
        if not isinstance(value, basestring) and not isinstance(value, Number):
            raise ValidationError(
                _('Values in condition dictionaries should be numbers or strings'),
            )
        return PolicyCondition(
            operator=None,
            element_name=element_name,
            value=value,
            value_range=None
        )
{"bucket": "name-of-bucket"}
dataset/ETHPy150Open bodylabs/drf-to-s3/drf_to_s3/naive_serializers.py/NaivePolicyConditionField._from_native_dict