UNPKG

@bitblit/ratchet-misc

Version:

Ratchet miscellaneous tooling that requires smallish dependant libraries

50 lines 1.98 kB
import { exists } from '../runtime.js'; import { CreateSmtpTemplateSenderFromJSON, CreateSmtpTemplateSenderToJSON } from './CreateSmtpTemplateSender.js'; export function instanceOfCreateSmtpTemplate(value) { let isInstance = true; isInstance = isInstance && 'sender' in value; isInstance = isInstance && 'templateName' in value; isInstance = isInstance && 'subject' in value; return isInstance; } export function CreateSmtpTemplateFromJSON(json) { return CreateSmtpTemplateFromJSONTyped(json, false); } export function CreateSmtpTemplateFromJSONTyped(json, ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { tag: !exists(json, 'tag') ? undefined : json['tag'], sender: CreateSmtpTemplateSenderFromJSON(json['sender']), templateName: json['templateName'], htmlContent: !exists(json, 'htmlContent') ? undefined : json['htmlContent'], htmlUrl: !exists(json, 'htmlUrl') ? undefined : json['htmlUrl'], subject: json['subject'], replyTo: !exists(json, 'replyTo') ? undefined : json['replyTo'], toField: !exists(json, 'toField') ? undefined : json['toField'], attachmentUrl: !exists(json, 'attachmentUrl') ? undefined : json['attachmentUrl'], isActive: !exists(json, 'isActive') ? undefined : json['isActive'], }; } export function CreateSmtpTemplateToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { tag: value.tag, sender: CreateSmtpTemplateSenderToJSON(value.sender), templateName: value.templateName, htmlContent: value.htmlContent, htmlUrl: value.htmlUrl, subject: value.subject, replyTo: value.replyTo, toField: value.toField, attachmentUrl: value.attachmentUrl, isActive: value.isActive, }; } //# sourceMappingURL=CreateSmtpTemplate.js.map