(cls, component_model)
| 138 | |
| 139 | @classmethod |
| 140 | def from_component_model(cls, component_model): |
| 141 | return { |
| 142 | "object_id": component_model.object_id, |
| 143 | "ref": component_model.ref, |
| 144 | "updated_at": isotime.format(component_model.updated_at, offset=False), |
| 145 | "caused_by": component_model.caused_by, |
| 146 | } |
| 147 | |
| 148 | @classmethod |
| 149 | def from_model(cls, model, mask_secrets=False): |