MCPcopy Create free account
hub / github.com/StackStorm/st2 / from_model

Method from_model

st2common/st2common/models/api/trigger.py:103–107  ·  view source on GitHub ↗
(cls, model, mask_secrets=False)

Source from the content-addressed store, hash-verified

101
102 @classmethod
103 def from_model(cls, model, mask_secrets=False):
104 trigger = cls._from_model(model, mask_secrets=mask_secrets)
105 # Hide ref count from API.
106 trigger.pop("ref_count", None)
107 return cls(**trigger)
108
109 @classmethod
110 def to_model(cls, trigger):

Callers 1

from_modelMethod · 0.45

Calls 2

_from_modelMethod · 0.80
popMethod · 0.45

Tested by

no test coverage detected