@dataclass
class EnumPair:
stringValue: str # noqa: N815
instanceName: str # noqa: N815
@staticmethod
def from_dict(d: dict[str, Any]) -> EnumPair:
return EnumPair(d["stringValue"], d["instanceName"])
def to_dict(self) -> dict[str, Any]:
return asdict(self)