@dataclass
class ResultDocstring:
type: str
description: str
@staticmethod
def from_json(json: Any) -> ResultDocstring:
return ResultDocstring(
json.get("type", ""),
json.get("description", ""),
)
def to_json(self) -> Any:
return {"type": self.type, "description": self.description}