UNPKG

@bitblit/ratchet-misc

Version:

Ratchet miscellaneous tooling that requires smallish dependant libraries

48 lines 1.68 kB
import { exists } from '../runtime.js'; export var SendTransacSmsTypeEnum; (function (SendTransacSmsTypeEnum) { SendTransacSmsTypeEnum["Transactional"] = "transactional"; SendTransacSmsTypeEnum["Marketing"] = "marketing"; })(SendTransacSmsTypeEnum || (SendTransacSmsTypeEnum = {})); export function instanceOfSendTransacSms(value) { let isInstance = true; isInstance = isInstance && 'sender' in value; isInstance = isInstance && 'recipient' in value; isInstance = isInstance && 'content' in value; return isInstance; } export function SendTransacSmsFromJSON(json) { return SendTransacSmsFromJSONTyped(json, false); } export function SendTransacSmsFromJSONTyped(json, ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { sender: json['sender'], recipient: json['recipient'], content: json['content'], type: !exists(json, 'type') ? undefined : json['type'], tag: !exists(json, 'tag') ? undefined : json['tag'], webUrl: !exists(json, 'webUrl') ? undefined : json['webUrl'], organisationPrefix: !exists(json, 'organisationPrefix') ? undefined : json['organisationPrefix'], }; } export function SendTransacSmsToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { sender: value.sender, recipient: value.recipient, content: value.content, type: value.type, tag: value.tag, webUrl: value.webUrl, organisationPrefix: value.organisationPrefix, }; } //# sourceMappingURL=SendTransacSms.js.map