o
    ã?Hh@
  ã                   @  sd   d Z ddlmZ ddlZddlZddlZddlmZmZ ddl	m
Z
 ddlmZ G dd„ deƒZdS )	zð
    LINE Messaging API

    This document describes LINE Messaging API.  # noqa: E501

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

    Do not edit the class manually.
é    )ÚannotationsN)Ú	BaseModelÚField)ÚSubscribedMembershipPlan)ÚSubscribedMembershipUserc                   @  s€   e Zd ZU dZedƒZded< edƒZded< 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 )ÚSubscriptionz"
    An array of memberships.
    .r   Ú
membershipr   Úuserc                   @  s   e Zd ZdZdZdZdS )zSubscription.ConfigzPydantic configurationTN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úallow_population_by_field_nameÚvalidate_assignment© r   r   úh/home/air/sanwanet/gpt-api/venv/lib/python3.10/site-packages/linebot/v3/messaging/models/subscription.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Subscription.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Subscription.to_jsonÚjson_strc                 C  s   |   t |¡¡S )z5Create an instance of Subscription from a JSON string)Ú	from_dictr   Úloads)Úclsr    r   r   r   Ú	from_json0   s   zSubscription.from_jsonc                 C  s<   | j di dd}| jr| j ¡ |d< | jr| j ¡ |d< |S )z>Returns the dictionary representation of the model using aliasT)r   ÚexcludeÚexclude_noner   r	   )r   r   r   r	   )r   Ú_dictr   r   r   r   5   s   ýzSubscription.to_dictÚobjr   c                 C  sp   |du rdS t |tƒst |¡S t | d¡dur!t | d¡¡nd| d¡dur1t | d¡¡nddœ¡}|S )z.Create an instance of Subscription from a dictNr   r	   )r   r	   )Ú
isinstancer   r   Ú	parse_objÚgetr   r!   r   )r#   r(   Ú_objr   r   r   r!   C   s   

  þzSubscription.from_dictN)r   r   )r    r   r   r   )r(   r   r   r   )r
   r   r   r   r   r   Ú__annotations__r	   Ú_Subscription__propertiesr   r   r   Úclassmethodr$   r   r!   r   r   r   r   r      s   
 

r   )r   Ú
__future__r   r   Úrer   Úpydantic.v1r   r   Ú6linebot.v3.messaging.models.subscribed_membership_planr   Ú6linebot.v3.messaging.models.subscribed_membership_userr   r   r   r   r   r   Ú<module>   s   