/* tslint:disable */ /* eslint-disable */ /** * Tuix Email Service * Service to manage Tuix Email * * The version of the OpenAPI document: 0.0.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; /** * * @export * @interface CreateSMTPConfigurationDTO */ export interface CreateSMTPConfigurationDTO { /** * * @type {string} * @memberof CreateSMTPConfigurationDTO */ host: string; /** * * @type {string} * @memberof CreateSMTPConfigurationDTO */ password: string; /** * * @type {number} * @memberof CreateSMTPConfigurationDTO */ port: number; /** * * @type {string} * @memberof CreateSMTPConfigurationDTO */ username: string; } /** * Check if a given object implements the CreateSMTPConfigurationDTO interface. */ export function instanceOfCreateSMTPConfigurationDTO(value: object): value is CreateSMTPConfigurationDTO { if (!('host' in value) || value['host'] === undefined) return false; if (!('password' in value) || value['password'] === undefined) return false; if (!('port' in value) || value['port'] === undefined) return false; if (!('username' in value) || value['username'] === undefined) return false; return true; } export function CreateSMTPConfigurationDTOFromJSON(json: any): CreateSMTPConfigurationDTO { return CreateSMTPConfigurationDTOFromJSONTyped(json, false); } export function CreateSMTPConfigurationDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSMTPConfigurationDTO { if (json == null) { return json; } return { 'host': json['host'], 'password': json['password'], 'port': json['port'], 'username': json['username'], }; } export function CreateSMTPConfigurationDTOToJSON(json: any): CreateSMTPConfigurationDTO { return CreateSMTPConfigurationDTOToJSONTyped(json, false); } export function CreateSMTPConfigurationDTOToJSONTyped(value?: CreateSMTPConfigurationDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'host': value['host'], 'password': value['password'], 'port': value['port'], 'username': value['username'], }; }