MCPcopy Create free account
hub / github.com/Iterable/react-native-sdk / fromDict

Method fromDict

src/core/classes/IterableAction.ts:37–39  ·  view source on GitHub ↗

* Creates an instance of `IterableAction` from a dictionary object. * * @param dict - The dictionary object containing the properties to initialize the `IterableAction` instance. * @returns A new instance of `IterableAction` initialized with the provided dictionary properties.

(dict: IterableAction)

Source from the content-addressed store, hash-verified

35 * @returns A new instance of `IterableAction` initialized with the provided dictionary properties.
36 */
37 static fromDict(dict: IterableAction): IterableAction {
38 return new IterableAction(dict.type, dict.data, dict.userInput);
39 }
40}

Callers 3

setupEventHandlersMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected