(cls, model, mask_secrets=False)
| 262 | |
| 263 | @classmethod |
| 264 | def from_model(cls, model, mask_secrets=False): |
| 265 | action = cls._from_model(model) |
| 266 | action["runner_type"] = action.get("runner_type", {}).get("name", None) |
| 267 | action["tags"] = TagsHelper.from_model(model.tags) |
| 268 | |
| 269 | if getattr(model, "notify", None): |
| 270 | action["notify"] = NotificationsHelper.from_model(model.notify) |
| 271 | |
| 272 | return cls(**action) |
| 273 | |
| 274 | @classmethod |
| 275 | def to_model(cls, action): |
no test coverage detected