/* 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'; /** * * @export * @interface SendWithQueueResult */ export interface SendWithQueueResult { /** * * @type {string} * @memberof SendWithQueueResult */ id: string; /** * * @type {string} * @memberof SendWithQueueResult */ userId: string; /** * * @type {string} * @memberof SendWithQueueResult */ subject?: string; /** * * @type {string} * @memberof SendWithQueueResult */ inboxId?: string; /** * * @type {string} * @memberof SendWithQueueResult */ headerId: string; /** * * @type {boolean} * @memberof SendWithQueueResult */ delivered: boolean; /** * * @type {string} * @memberof SendWithQueueResult */ exceptionName?: string; /** * * @type {string} * @memberof SendWithQueueResult */ message?: string; /** * * @type {Date} * @memberof SendWithQueueResult */ createdAt: Date; /** * * @type {Date} * @memberof SendWithQueueResult */ updatedAt: Date; } export function SendWithQueueResultFromJSON(json: any): SendWithQueueResult { return SendWithQueueResultFromJSONTyped(json, false); } export function SendWithQueueResultFromJSONTyped( json: any, ignoreDiscriminator: boolean ): SendWithQueueResult { if (json === undefined || json === null) { return json; } return { id: json['id'], userId: json['userId'], subject: !exists(json, 'subject') ? undefined : json['subject'], inboxId: !exists(json, 'inboxId') ? undefined : json['inboxId'], headerId: json['headerId'], delivered: json['delivered'], exceptionName: !exists(json, 'exceptionName') ? undefined : json['exceptionName'], message: !exists(json, 'message') ? undefined : json['message'], createdAt: new Date(json['createdAt']), updatedAt: new Date(json['updatedAt']), }; } export function SendWithQueueResultToJSON( value?: SendWithQueueResult | null ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { id: value.id, userId: value.userId, subject: value.subject, inboxId: value.inboxId, headerId: value.headerId, delivered: value.delivered, exceptionName: value.exceptionName, message: value.message, createdAt: value.createdAt.toISOString(), updatedAt: value.updatedAt.toISOString(), }; }