UNPKG

@iterable/react-native-sdk

Version:
28 lines (25 loc) 678 B
"use strict"; /** * Trigger information for in-app messages in the Iterable SDK. */ export class IterableInAppTrigger { /** * The type of the in-app trigger. */ /** * Creates an instance of IterableInAppTrigger. * @param type - The type of the in-app trigger. */ constructor(type) { this.type = type; } /** * Creates an IterableInAppTrigger instance from a dictionary object. * @param dict - The dictionary containing the type of the in-app trigger. * @returns A new instance of IterableInAppTrigger. */ static fromDict(dict) { return new IterableInAppTrigger(dict.type); } } //# sourceMappingURL=IterableInAppTrigger.js.map