/* 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'; /** * Representation of a alias * @export * @interface AliasProjection */ export interface AliasProjection { /** * * @type {string} * @memberof AliasProjection */ name?: string; /** * * @type {string} * @memberof AliasProjection */ id: string; /** * * @type {string} * @memberof AliasProjection */ userId: string; /** * * @type {string} * @memberof AliasProjection */ emailAddress: string; /** * * @type {string} * @memberof AliasProjection */ inboxId: string; /** * * @type {Date} * @memberof AliasProjection */ updatedAt: Date; /** * * @type {Date} * @memberof AliasProjection */ createdAt: Date; /** * * @type {boolean} * @memberof AliasProjection */ useThreads?: boolean; } export function AliasProjectionFromJSON(json: any): AliasProjection { return AliasProjectionFromJSONTyped(json, false); } export function AliasProjectionFromJSONTyped( json: any, ignoreDiscriminator: boolean ): AliasProjection { if (json === undefined || json === null) { return json; } return { name: !exists(json, 'name') ? undefined : json['name'], id: json['id'], userId: json['userId'], emailAddress: json['emailAddress'], inboxId: json['inboxId'], updatedAt: new Date(json['updatedAt']), createdAt: new Date(json['createdAt']), useThreads: !exists(json, 'useThreads') ? undefined : json['useThreads'], }; } export function AliasProjectionToJSON(value?: AliasProjection | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { name: value.name, id: value.id, userId: value.userId, emailAddress: value.emailAddress, inboxId: value.inboxId, updatedAt: value.updatedAt.toISOString(), createdAt: value.createdAt.toISOString(), useThreads: value.useThreads, }; }