o
    ?HhG	                     @  sh   d Z ddlmZ ddlZddlZddlZddlmZ ddlm	Z	m
Z
mZ ddlmZ G dd de	ZdS )	z
    Webhook Type Definition

    Webhook event definition of the LINE Messaging API  # noqa: E501

    The version of the OpenAPI document: 1.0.0
    Generated by OpenAPI Generator (https://openapi-generator.tech)

    Do not edit the class manually.
    )annotationsN)List)	BaseModelFieldconlist)	Mentioneec                   @  sr   e Zd ZU dZedddZded< dgZG dd dZdddZ	dddZ
edddZdd ZedddZdS )Mentionz
    Mention
    .z6Array of one or more mention objects. Max: 20 mentions)descriptionzconlist(Mentionee)
mentioneesc                   @  s   e Zd ZdZdZdZdS )zMention.ConfigzPydantic configurationTN)__name__
__module____qualname____doc__allow_population_by_field_namevalidate_assignment r   r   b/home/air/sanwanet/gpt-api/venv/lib/python3.10/site-packages/linebot/v3/webhooks/models/mention.pyConfig!   s    r   returnstrc                 C  s   t | jddS )z:Returns the string representation of the model using aliasT)by_alias)pprintpformatdictselfr   r   r   to_str&   s   zMention.to_strc                 C  s   t |  S )z8Returns the JSON representation of the model using alias)jsondumpsto_dictr   r   r   r   to_json*   s   zMention.to_jsonjson_strc                 C  s   |  t|S )z0Create an instance of Mention from a JSON string)	from_dictr   loads)clsr!   r   r   r   	from_json.   s   zMention.from_jsonc                 C  sD   | j di dd}g }| jr | jD ]}|r||  q||d< |S )z>Returns the dictionary representation of the model using aliasT)r   excludeexclude_noner
   )r   r
   appendr   )r   _dict_items_itemr   r   r   r   3   s   
zMention.to_dictobjr   c                 C  sT   |du rdS t |tst|S td|ddur$dd |dD ndi}|S )z)Create an instance of Mention from a dictNr
   c                 S  s   g | ]}t |qS r   )r   r"   ).0r+   r   r   r   
<listcomp>L   s    z%Mention.from_dict.<locals>.<listcomp>)
isinstancer   r   	parse_objget)r$   r,   _objr   r   r   r"   B   s   

&zMention.from_dictN)r   r   )r!   r   r   r   )r,   r   r   r   )r   r   r   r   r   r
   __annotations___Mention__propertiesr   r   r    classmethodr%   r   r"   r   r   r   r   r      s   
 

r   )r   
__future__r   r   rer   typingr   pydantic.v1r   r   r   $linebot.v3.webhooks.models.mentioneer   r   r   r   r   r   <module>   s   