/* 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 SmtpAuthDiagnosticResult */ export interface SmtpAuthDiagnosticResult { /** * * @type {boolean} * @memberof SmtpAuthDiagnosticResult */ attempted: boolean; /** * * @type {boolean} * @memberof SmtpAuthDiagnosticResult */ success: boolean; /** * * @type {string} * @memberof SmtpAuthDiagnosticResult */ mechanism?: string | null; } export function SmtpAuthDiagnosticResultFromJSON( json: any ): SmtpAuthDiagnosticResult { return SmtpAuthDiagnosticResultFromJSONTyped(json, false); } export function SmtpAuthDiagnosticResultFromJSONTyped( json: any, ignoreDiscriminator: boolean ): SmtpAuthDiagnosticResult { if (json === undefined || json === null) { return json; } return { attempted: json['attempted'], success: json['success'], mechanism: !exists(json, 'mechanism') ? undefined : json['mechanism'], }; } export function SmtpAuthDiagnosticResultToJSON( value?: SmtpAuthDiagnosticResult | null ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { attempted: value.attempted, success: value.success, mechanism: value.mechanism, }; }