Yousef Haggy 7a23ac7615
[Python] Bug Fix - model_generic templates to have valid imports for polymorphism (#20273)
* fix model_generic python templates to have valid imports for polymorphism

* update samples

* update samples

---------

Co-authored-by: yugi <yugi-big@proton.me>
2025-01-09 11:40:47 +08:00

842 B

HuntingDog

Properties

Name Type Description Notes
is_trained bool [optional]

Example

from petstore_api.models.hunting_dog import HuntingDog

# TODO update the JSON string below
json = "{}"
# create an instance of HuntingDog from a JSON string
hunting_dog_instance = HuntingDog.from_json(json)
# print the JSON string representation of the object
print(HuntingDog.to_json())

# convert the object into a dict
hunting_dog_dict = hunting_dog_instance.to_dict()
# create an instance of HuntingDog from a dict
hunting_dog_from_dict = HuntingDog.from_dict(hunting_dog_dict)

[Back to Model list] [Back to API list] [Back to README]