@dataclass
class ParameterDocumentation:
type: str = ""
default_value: str = ""
description: str = ""
@staticmethod
def from_dict(d: dict) -> ParameterDocumentation:
return ParameterDocumentation(**d)
def to_dict(self) -> dict:
return dataclasses.asdict(self)
def __hash__(self) -> int:
return hash((self.type, self.default_value, self.description))