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

Method to_model

st2common/st2common/models/api/base.py:140–146  ·  view source on GitHub ↗

Create a model class instance for the provided MongoDB document. :param doc: MongoDB document.

(cls, doc)

Source from the content-addressed store, hash-verified

138
139 @classmethod
140 def to_model(cls, doc):
141 """
142 Create a model class instance for the provided MongoDB document.
143
144 :param doc: MongoDB document.
145 """
146 raise NotImplementedError()
147
148
149class APIUIDMixin(object):

Callers 3

get_uidMethod · 0.45
get_pack_uidMethod · 0.45
has_valid_uidMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected