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

/**
 * Check if a given object implements the CreateJiraAccountDto interface.
 */
export function instanceOfCreateJiraAccountDto(value: object): boolean {
    let isInstance = true;
    isInstance = isInstance && "token" in value;
    isInstance = isInstance && "email" in value;
    isInstance = isInstance && "site" in value;
    isInstance = isInstance && "name" 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 {
        
        'token': json['token'],
        'email': json['email'],
        'site': json['site'],
        'name': json['name'],
    };
}

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

