/* tslint:disable */
/* eslint-disable */
/**
 * Tuix Services
 * Tuix Services API
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 *
 * 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';
/**
 * 
 * @export
 * @interface SendNewsletterDto
 */
export interface SendNewsletterDto {
    /**
     * 
     * @type {string}
     * @memberof SendNewsletterDto
     */
    templateId: string;
}

/**
 * Check if a given object implements the SendNewsletterDto interface.
 */
export function instanceOfSendNewsletterDto(value: object): boolean {
    let isInstance = true;
    isInstance = isInstance && "templateId" in value;

    return isInstance;
}

export function SendNewsletterDtoFromJSON(json: any): SendNewsletterDto {
    return SendNewsletterDtoFromJSONTyped(json, false);
}

export function SendNewsletterDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SendNewsletterDto {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'templateId': json['templateId'],
    };
}

export function SendNewsletterDtoToJSON(value?: SendNewsletterDto | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'templateId': value.templateId,
    };
}

