class ParameterIsIgnored(Action):
def __init__(self, action_: str, dependee: str = "this_parameter") -> None:
super().__init__(action_)
self.dependee = dependee
@classmethod
def from_dict(cls, d: dict[str, Any]) -> ParameterIsIgnored:
return cls(d["action"], d["dependee"])
def to_dict(self) -> dict[str, Any]:
return {"variant": Action.Variant.IS_IGNORED.value, "action": self.action, "dependee": self.dependee}