/* 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'; /** * Connector * @export * @interface ConnectorProjection */ export interface ConnectorProjection { /** * * @type {string} * @memberof ConnectorProjection */ name?: string; /** * * @type {string} * @memberof ConnectorProjection */ id: string; /** * * @type {boolean} * @memberof ConnectorProjection */ enabled?: boolean; /** * * @type {string} * @memberof ConnectorProjection */ userId: string; /** * * @type {string} * @memberof ConnectorProjection */ emailAddress?: string; /** * * @type {string} * @memberof ConnectorProjection */ inboxId: string; /** * * @type {Date} * @memberof ConnectorProjection */ createdAt: Date; } export function ConnectorProjectionFromJSON(json: any): ConnectorProjection { return ConnectorProjectionFromJSONTyped(json, false); } export function ConnectorProjectionFromJSONTyped( json: any, ignoreDiscriminator: boolean ): ConnectorProjection { if (json === undefined || json === null) { return json; } return { name: !exists(json, 'name') ? undefined : json['name'], id: json['id'], enabled: !exists(json, 'enabled') ? undefined : json['enabled'], userId: json['userId'], emailAddress: !exists(json, 'emailAddress') ? undefined : json['emailAddress'], inboxId: json['inboxId'], createdAt: new Date(json['createdAt']), }; } export function ConnectorProjectionToJSON( value?: ConnectorProjection | null ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { name: value.name, id: value.id, enabled: value.enabled, userId: value.userId, emailAddress: value.emailAddress, inboxId: value.inboxId, createdAt: value.createdAt.toISOString(), }; }