/* 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'; import { InboxPlacementAnalysisBundleDto, InboxPlacementAnalysisBundleDtoFromJSON, InboxPlacementAnalysisBundleDtoFromJSONTyped, InboxPlacementAnalysisBundleDtoToJSON, InboxPlacementDeliverabilitySummaryDto, InboxPlacementDeliverabilitySummaryDtoFromJSON, InboxPlacementDeliverabilitySummaryDtoFromJSONTyped, InboxPlacementDeliverabilitySummaryDtoToJSON, InboxPlacementRemoteTestSummaryDto, InboxPlacementRemoteTestSummaryDtoFromJSON, InboxPlacementRemoteTestSummaryDtoFromJSONTyped, InboxPlacementRemoteTestSummaryDtoToJSON, InboxPlacementTargetResultDto, InboxPlacementTargetResultDtoFromJSON, InboxPlacementTargetResultDtoFromJSONTyped, InboxPlacementTargetResultDtoToJSON, } from './'; /** * * @export * @interface InboxPlacementRemoteResultsDto */ export interface InboxPlacementRemoteResultsDto { /** * * @type {InboxPlacementRemoteTestSummaryDto} * @memberof InboxPlacementRemoteResultsDto */ test: InboxPlacementRemoteTestSummaryDto; /** * * @type {InboxPlacementDeliverabilitySummaryDto} * @memberof InboxPlacementRemoteResultsDto */ deliverability: InboxPlacementDeliverabilitySummaryDto; /** * * @type {{ [key: string]: string; }} * @memberof InboxPlacementRemoteResultsDto */ setupAnalysis: { [key: string]: string }; /** * * @type {{ [key: string]: string; }} * @memberof InboxPlacementRemoteResultsDto */ contentAnalysis: { [key: string]: string }; /** * * @type {InboxPlacementAnalysisBundleDto} * @memberof InboxPlacementRemoteResultsDto */ analysis?: InboxPlacementAnalysisBundleDto | null; /** * * @type {Array} * @memberof InboxPlacementRemoteResultsDto */ targets: Array; /** * * @type {Array<{ [key: string]: string; }>} * @memberof InboxPlacementRemoteResultsDto */ scores: Array<{ [key: string]: string }>; /** * * @type {{ [key: string]: string; }} * @memberof InboxPlacementRemoteResultsDto */ share?: { [key: string]: string } | null; } export function InboxPlacementRemoteResultsDtoFromJSON( json: any ): InboxPlacementRemoteResultsDto { return InboxPlacementRemoteResultsDtoFromJSONTyped(json, false); } export function InboxPlacementRemoteResultsDtoFromJSONTyped( json: any, ignoreDiscriminator: boolean ): InboxPlacementRemoteResultsDto { if (json === undefined || json === null) { return json; } return { test: InboxPlacementRemoteTestSummaryDtoFromJSON(json['test']), deliverability: InboxPlacementDeliverabilitySummaryDtoFromJSON( json['deliverability'] ), setupAnalysis: json['setupAnalysis'], contentAnalysis: json['contentAnalysis'], analysis: !exists(json, 'analysis') ? undefined : InboxPlacementAnalysisBundleDtoFromJSON(json['analysis']), targets: (json['targets'] as Array).map( InboxPlacementTargetResultDtoFromJSON ), scores: json['scores'], share: !exists(json, 'share') ? undefined : json['share'], }; } export function InboxPlacementRemoteResultsDtoToJSON( value?: InboxPlacementRemoteResultsDto | null ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { test: InboxPlacementRemoteTestSummaryDtoToJSON(value.test), deliverability: InboxPlacementDeliverabilitySummaryDtoToJSON( value.deliverability ), setupAnalysis: value.setupAnalysis, contentAnalysis: value.contentAnalysis, analysis: InboxPlacementAnalysisBundleDtoToJSON(value.analysis), targets: (value.targets as Array).map( InboxPlacementTargetResultDtoToJSON ), scores: value.scores, share: value.share, }; }