/* tslint:disable */ /* eslint-disable */ /** * MailSlurp API * MailSlurp is an API for sending and receiving emails and SMS from dynamically allocated email addresses and phone numbers. It\'s designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository * * The version of the OpenAPI document: 6.5.2 * Contact: contact@mailslurp.dev * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists, mapValues } from '../runtime'; /** * Direct invoke options for campaign probe analysis * @export * @interface CreateCampaignProbeRunOptions */ export interface CreateCampaignProbeRunOptions { /** * Sender email address * @type {string} * @memberof CreateCampaignProbeRunOptions */ fromAddress?: string | null; /** * Message subject * @type {string} * @memberof CreateCampaignProbeRunOptions */ subject?: string | null; /** * Recipient email address for context * @type {string} * @memberof CreateCampaignProbeRunOptions */ recipient?: string | null; /** * Caller supplied message id for dedupe/trace * @type {string} * @memberof CreateCampaignProbeRunOptions */ messageId?: string | null; /** * HTML body content to analyze * @type {string} * @memberof CreateCampaignProbeRunOptions */ htmlBody?: string | null; /** * Text body content to analyze when HTML is absent * @type {string} * @memberof CreateCampaignProbeRunOptions */ textBody?: string | null; } export function CreateCampaignProbeRunOptionsFromJSON( json: any ): CreateCampaignProbeRunOptions { return CreateCampaignProbeRunOptionsFromJSONTyped(json, false); } export function CreateCampaignProbeRunOptionsFromJSONTyped( json: any, ignoreDiscriminator: boolean ): CreateCampaignProbeRunOptions { if (json === undefined || json === null) { return json; } return { fromAddress: !exists(json, 'fromAddress') ? undefined : json['fromAddress'], subject: !exists(json, 'subject') ? undefined : json['subject'], recipient: !exists(json, 'recipient') ? undefined : json['recipient'], messageId: !exists(json, 'messageId') ? undefined : json['messageId'], htmlBody: !exists(json, 'htmlBody') ? undefined : json['htmlBody'], textBody: !exists(json, 'textBody') ? undefined : json['textBody'], }; } export function CreateCampaignProbeRunOptionsToJSON( value?: CreateCampaignProbeRunOptions | null ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { fromAddress: value.fromAddress, subject: value.subject, recipient: value.recipient, messageId: value.messageId, htmlBody: value.htmlBody, textBody: value.textBody, }; }