/* 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 { PhoneSummaryCountryDto, PhoneSummaryCountryDtoFromJSON, PhoneSummaryCountryDtoFromJSONTyped, PhoneSummaryCountryDtoToJSON, PlanSummaryDto, PlanSummaryDtoFromJSON, PlanSummaryDtoFromJSONTyped, PlanSummaryDtoToJSON, } from './'; /** * * @export * @interface PhoneSummaryDto */ export interface PhoneSummaryDto { /** * * @type {Array} * @memberof PhoneSummaryDto */ phoneCountrySummaries: Array; /** * * @type {boolean} * @memberof PhoneSummaryDto */ hasPhoneNumbers: boolean; /** * * @type {boolean} * @memberof PhoneSummaryDto */ hasMissingPlans: boolean; /** * * @type {number} * @memberof PhoneSummaryDto */ totalPhones: number; /** * * @type {Array} * @memberof PhoneSummaryDto */ plans: Array; } export function PhoneSummaryDtoFromJSON(json: any): PhoneSummaryDto { return PhoneSummaryDtoFromJSONTyped(json, false); } export function PhoneSummaryDtoFromJSONTyped( json: any, ignoreDiscriminator: boolean ): PhoneSummaryDto { if (json === undefined || json === null) { return json; } return { phoneCountrySummaries: (json['phoneCountrySummaries'] as Array).map( PhoneSummaryCountryDtoFromJSON ), hasPhoneNumbers: json['hasPhoneNumbers'], hasMissingPlans: json['hasMissingPlans'], totalPhones: json['totalPhones'], plans: (json['plans'] as Array).map(PlanSummaryDtoFromJSON), }; } export function PhoneSummaryDtoToJSON(value?: PhoneSummaryDto | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { phoneCountrySummaries: (value.phoneCountrySummaries as Array).map( PhoneSummaryCountryDtoToJSON ), hasPhoneNumbers: value.hasPhoneNumbers, hasMissingPlans: value.hasMissingPlans, totalPhones: value.totalPhones, plans: (value.plans as Array).map(PlanSummaryDtoToJSON), }; }