
    ZTh                    R    d dl mZ d dlZd dlmZmZ d dlmZ  G d de      ZddZ	y)	    )annotationsN)ABCabstractmethod)Anyc                  "    e Zd ZdZedd       Zy)AsJsonz
    Utility sub-types that require custom-serialization meant to be used in conjunction with the
    `to_json` function. Sub-types should implement `as_json` which should return the object that
    you want passed to `json.dumps`.
    c                     y N )selfs    c/home/www/backend.miabetepe.com/venv/lib/python3.12/site-packages/sift_py/_internal/convert/json.pyas_jsonzAsJson.as_json   s        N)returnr   )__name__
__module____qualname____doc__r   r   r   r   r   r   r      s      r   r   c                2    t        j                  | d       S )zc
    Serializes `value` to a JSON string uses the `AsJson.as_json` implementation of the type.
    c                "    | j                         S r
   )r   )xs    r   <lambda>zto_json.<locals>.<lambda>   s    qyy{ r   )default)jsondumps)values    r   to_jsonr      s     ::e%:;;r   )r   r   r   str)

__future__r   r   abcr   r   typingr   r   r   r   r   r   <module>r"      s"    "  # 	S 	<r   