
    \j                     B    d dl mZ d dlZ G d dej                        Zy)    )ModelEntityNc                   (     e Zd ZdZ fdZd Z xZS )ModelEncoderz
    A JSON encoder customized to serialize our data model types correctly. We should
    use this whenever we are writing flag data to a persistent store.
    c                 &    t         |   d       y )N),:)
separators)super__init__)self	__class__s    E/root/env/lib/python3.12/site-packages/ldclient/impl/model/encoder.pyr   zModelEncoder.__init__   s    I.    c                     t        |t              r|j                         S t        j                  j                  | |      S )N)
isinstancer   to_json_dictjsonJSONEncoderdefault)r   objs     r   r   zModelEncoder.default   s4    c;'##%%''c22r   )__name__
__module____qualname____doc__r   r   __classcell__)r   s   @r   r   r      s    
/3r   r   )ldclient.impl.model.entityr   r   r   r    r   r   <module>r      s    2 34## 3r   