mailslurp-client
Version:
Official client for MailSlurp Email and SMS API. Create email addresses and phone numbers in Javascript without a mail server. Send and receive real emails in applications or tests.
100 lines (94 loc) • 2.68 kB
text/typescript
/* 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 {
DeliverabilityTestDto,
DeliverabilityTestDtoFromJSON,
DeliverabilityTestDtoFromJSONTyped,
DeliverabilityTestDtoToJSON,
} from './';
/**
* Paged list of deliverability tests
* @export
* @interface DeliverabilityTestPageDto
*/
export interface DeliverabilityTestPageDto {
/**
*
* @type {Array<DeliverabilityTestDto>}
* @memberof DeliverabilityTestPageDto
*/
content: Array<DeliverabilityTestDto>;
/**
*
* @type {number}
* @memberof DeliverabilityTestPageDto
*/
page: number;
/**
*
* @type {number}
* @memberof DeliverabilityTestPageDto
*/
size: number;
/**
*
* @type {number}
* @memberof DeliverabilityTestPageDto
*/
totalElements: number;
/**
*
* @type {number}
* @memberof DeliverabilityTestPageDto
*/
totalPages: number;
}
export function DeliverabilityTestPageDtoFromJSON(
json: any
): DeliverabilityTestPageDto {
return DeliverabilityTestPageDtoFromJSONTyped(json, false);
}
export function DeliverabilityTestPageDtoFromJSONTyped(
json: any,
ignoreDiscriminator: boolean
): DeliverabilityTestPageDto {
if (json === undefined || json === null) {
return json;
}
return {
content: (json['content'] as Array<any>).map(DeliverabilityTestDtoFromJSON),
page: json['page'],
size: json['size'],
totalElements: json['totalElements'],
totalPages: json['totalPages'],
};
}
export function DeliverabilityTestPageDtoToJSON(
value?: DeliverabilityTestPageDto | null
): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
content: (value.content as Array<any>).map(DeliverabilityTestDtoToJSON),
page: value.page,
size: value.size,
totalElements: value.totalElements,
totalPages: value.totalPages,
};
}