/* 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 { DeliverabilitySimulationJobDto, DeliverabilitySimulationJobDtoFromJSON, DeliverabilitySimulationJobDtoFromJSONTyped, DeliverabilitySimulationJobDtoToJSON, DeliverabilitySimulationJobEventDto, DeliverabilitySimulationJobEventDtoFromJSON, DeliverabilitySimulationJobEventDtoFromJSONTyped, DeliverabilitySimulationJobEventDtoToJSON, } from './'; /** * Paged simulation events * @export * @interface DeliverabilitySimulationJobEventPageDto */ export interface DeliverabilitySimulationJobEventPageDto { /** * * @type {DeliverabilitySimulationJobDto} * @memberof DeliverabilitySimulationJobEventPageDto */ job: DeliverabilitySimulationJobDto; /** * * @type {Array} * @memberof DeliverabilitySimulationJobEventPageDto */ content: Array; /** * * @type {number} * @memberof DeliverabilitySimulationJobEventPageDto */ page: number; /** * * @type {number} * @memberof DeliverabilitySimulationJobEventPageDto */ size: number; /** * * @type {number} * @memberof DeliverabilitySimulationJobEventPageDto */ totalElements: number; /** * * @type {number} * @memberof DeliverabilitySimulationJobEventPageDto */ totalPages: number; } export function DeliverabilitySimulationJobEventPageDtoFromJSON( json: any ): DeliverabilitySimulationJobEventPageDto { return DeliverabilitySimulationJobEventPageDtoFromJSONTyped(json, false); } export function DeliverabilitySimulationJobEventPageDtoFromJSONTyped( json: any, ignoreDiscriminator: boolean ): DeliverabilitySimulationJobEventPageDto { if (json === undefined || json === null) { return json; } return { job: DeliverabilitySimulationJobDtoFromJSON(json['job']), content: (json['content'] as Array).map( DeliverabilitySimulationJobEventDtoFromJSON ), page: json['page'], size: json['size'], totalElements: json['totalElements'], totalPages: json['totalPages'], }; } export function DeliverabilitySimulationJobEventPageDtoToJSON( value?: DeliverabilitySimulationJobEventPageDto | null ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { job: DeliverabilitySimulationJobDtoToJSON(value.job), content: (value.content as Array).map( DeliverabilitySimulationJobEventDtoToJSON ), page: value.page, size: value.size, totalElements: value.totalElements, totalPages: value.totalPages, }; }