/* 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 { InboxRetentionPolicyRunDto, InboxRetentionPolicyRunDtoFromJSON, InboxRetentionPolicyRunDtoFromJSONTyped, InboxRetentionPolicyRunDtoToJSON, PageableObject, PageableObjectFromJSON, PageableObjectFromJSONTyped, PageableObjectToJSON, SortObject, SortObjectFromJSON, SortObjectFromJSONTyped, SortObjectToJSON, } from './'; /** * Paginated inbox retention policy runs for the current user. Page index starts at zero. * @export * @interface PageInboxRetentionPolicyRunProjection */ export interface PageInboxRetentionPolicyRunProjection { /** * * @type {Array} * @memberof PageInboxRetentionPolicyRunProjection */ content?: Array; /** * * @type {PageableObject} * @memberof PageInboxRetentionPolicyRunProjection */ pageable?: PageableObject; /** * * @type {number} * @memberof PageInboxRetentionPolicyRunProjection */ totalPages: number; /** * * @type {number} * @memberof PageInboxRetentionPolicyRunProjection */ totalElements: number; /** * * @type {boolean} * @memberof PageInboxRetentionPolicyRunProjection */ last?: boolean; /** * * @type {number} * @memberof PageInboxRetentionPolicyRunProjection */ size?: number; /** * * @type {number} * @memberof PageInboxRetentionPolicyRunProjection */ number?: number; /** * * @type {boolean} * @memberof PageInboxRetentionPolicyRunProjection */ first?: boolean; /** * * @type {number} * @memberof PageInboxRetentionPolicyRunProjection */ numberOfElements?: number; /** * * @type {SortObject} * @memberof PageInboxRetentionPolicyRunProjection */ sort?: SortObject; /** * * @type {boolean} * @memberof PageInboxRetentionPolicyRunProjection */ empty?: boolean; } export function PageInboxRetentionPolicyRunProjectionFromJSON( json: any ): PageInboxRetentionPolicyRunProjection { return PageInboxRetentionPolicyRunProjectionFromJSONTyped(json, false); } export function PageInboxRetentionPolicyRunProjectionFromJSONTyped( json: any, ignoreDiscriminator: boolean ): PageInboxRetentionPolicyRunProjection { if (json === undefined || json === null) { return json; } return { content: !exists(json, 'content') ? undefined : (json['content'] as Array).map(InboxRetentionPolicyRunDtoFromJSON), pageable: !exists(json, 'pageable') ? undefined : PageableObjectFromJSON(json['pageable']), totalPages: json['totalPages'], totalElements: json['totalElements'], last: !exists(json, 'last') ? undefined : json['last'], size: !exists(json, 'size') ? undefined : json['size'], number: !exists(json, 'number') ? undefined : json['number'], first: !exists(json, 'first') ? undefined : json['first'], numberOfElements: !exists(json, 'numberOfElements') ? undefined : json['numberOfElements'], sort: !exists(json, 'sort') ? undefined : SortObjectFromJSON(json['sort']), empty: !exists(json, 'empty') ? undefined : json['empty'], }; } export function PageInboxRetentionPolicyRunProjectionToJSON( value?: PageInboxRetentionPolicyRunProjection | null ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { content: value.content === undefined ? undefined : (value.content as Array).map(InboxRetentionPolicyRunDtoToJSON), pageable: PageableObjectToJSON(value.pageable), totalPages: value.totalPages, totalElements: value.totalElements, last: value.last, size: value.size, number: value.number, first: value.first, numberOfElements: value.numberOfElements, sort: SortObjectToJSON(value.sort), empty: value.empty, }; }