/* tslint:disable */
/* eslint-disable */
/**
 * OmsorgCore.Api
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.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 { mapValues } from '../runtime';
/**
 * 
 * @export
 * @interface SendTestEmailRequest
 */
export interface SendTestEmailRequest {
    /**
     * 
     * @type {string}
     * @memberof SendTestEmailRequest
     */
    toAddress?: string | null;
    /**
     * 
     * @type {string}
     * @memberof SendTestEmailRequest
     */
    subject?: string | null;
    /**
     * 
     * @type {string}
     * @memberof SendTestEmailRequest
     */
    body?: string | null;
}

/**
 * Check if a given object implements the SendTestEmailRequest interface.
 */
export function instanceOfSendTestEmailRequest(value: object): value is SendTestEmailRequest {
    return true;
}

export function SendTestEmailRequestFromJSON(json: any): SendTestEmailRequest {
    return SendTestEmailRequestFromJSONTyped(json, false);
}

export function SendTestEmailRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SendTestEmailRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'toAddress': json['toAddress'] == null ? undefined : json['toAddress'],
        'subject': json['subject'] == null ? undefined : json['subject'],
        'body': json['body'] == null ? undefined : json['body'],
    };
}

export function SendTestEmailRequestToJSON(json: any): SendTestEmailRequest {
    return SendTestEmailRequestToJSONTyped(json, false);
}

export function SendTestEmailRequestToJSONTyped(value?: SendTestEmailRequest | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {
        
        'toAddress': value['toAddress'],
        'subject': value['subject'],
        'body': value['body'],
    };
}

