/* 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 UpdateSMTPConfigurationDTO */ export interface UpdateSMTPConfigurationDTO { /** * * @type {string} * @memberof UpdateSMTPConfigurationDTO */ host?: string; /** * * @type {string} * @memberof UpdateSMTPConfigurationDTO */ password?: string; /** * * @type {number} * @memberof UpdateSMTPConfigurationDTO */ port?: number; /** * * @type {string} * @memberof UpdateSMTPConfigurationDTO */ username?: string; } /** * Check if a given object implements the UpdateSMTPConfigurationDTO interface. */ export function instanceOfUpdateSMTPConfigurationDTO(value: object): value is UpdateSMTPConfigurationDTO { return true; } export function UpdateSMTPConfigurationDTOFromJSON(json: any): UpdateSMTPConfigurationDTO { return UpdateSMTPConfigurationDTOFromJSONTyped(json, false); } export function UpdateSMTPConfigurationDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSMTPConfigurationDTO { if (json == null) { return json; } return { 'host': json['host'] == null ? undefined : json['host'], 'password': json['password'] == null ? undefined : json['password'], 'port': json['port'] == null ? undefined : json['port'], 'username': json['username'] == null ? undefined : json['username'], }; } export function UpdateSMTPConfigurationDTOToJSON(json: any): UpdateSMTPConfigurationDTO { return UpdateSMTPConfigurationDTOToJSONTyped(json, false); } export function UpdateSMTPConfigurationDTOToJSONTyped(value?: UpdateSMTPConfigurationDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'host': value['host'], 'password': value['password'], 'port': value['port'], 'username': value['username'], }; }