Source code for edgeimpulse_api.models.create_block_version_response_all_of

# coding: utf-8

"""
    Edge Impulse API

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501

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


from __future__ import annotations
from inspect import getfullargspec
import pprint
import re  # noqa: F401
import json



from pydantic import BaseModel, Field, StrictInt

[docs]class CreateBlockVersionResponseAllOf(BaseModel): id: StrictInt = Field(..., description="ID of the new block") __properties = ["id"]
[docs] class Config: allow_population_by_field_name = True validate_assignment = False
[docs] def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.dict(by_alias=True))
[docs] def to_json(self) -> str: """Returns the JSON representation of the model using alias""" return json.dumps(self.to_dict())
[docs] @classmethod def from_json(cls, json_str: str) -> CreateBlockVersionResponseAllOf: """Create an instance of CreateBlockVersionResponseAllOf from a JSON string""" return cls.from_dict(json.loads(json_str))
[docs] def to_dict(self): """Returns the dictionary representation of the model using alias""" _dict = self.dict(by_alias=True, exclude={ }, exclude_none=True) return _dict
[docs] @classmethod def from_dict(cls, obj: dict) -> CreateBlockVersionResponseAllOf: """Create an instance of CreateBlockVersionResponseAllOf from a dict""" if obj is None: return None if type(obj) is not dict: return CreateBlockVersionResponseAllOf.construct(**obj) _obj = CreateBlockVersionResponseAllOf.construct(**{ "id": obj.get("id") }) return _obj