/* 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 CreateJiraAccountDTO
 */
export interface CreateJiraAccountDTO {
    /**
     * 
     * @type {string}
     * @memberof CreateJiraAccountDTO
     */
    email: string;
    /**
     * 
     * @type {string}
     * @memberof CreateJiraAccountDTO
     */
    name: string;
    /**
     * 
     * @type {string}
     * @memberof CreateJiraAccountDTO
     */
    site: string;
    /**
     * 
     * @type {string}
     * @memberof CreateJiraAccountDTO
     */
    token: string;
}

/**
 * Check if a given object implements the CreateJiraAccountDTO interface.
 */
export function instanceOfCreateJiraAccountDTO(value: object): boolean {
    let isInstance = true;
    isInstance = isInstance && "email" in value;
    isInstance = isInstance && "name" in value;
    isInstance = isInstance && "site" in value;
    isInstance = isInstance && "token" in value;

    return isInstance;
}

export function CreateJiraAccountDTOFromJSON(json: any): CreateJiraAccountDTO {
    return CreateJiraAccountDTOFromJSONTyped(json, false);
}

export function CreateJiraAccountDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateJiraAccountDTO {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'email': json['email'],
        'name': json['name'],
        'site': json['site'],
        'token': json['token'],
    };
}

export function CreateJiraAccountDTOToJSON(value?: CreateJiraAccountDTO | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'email': value.email,
        'name': value.name,
        'site': value.site,
        'token': value.token,
    };
}

