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

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

    return isInstance;
}

export function JiraAccountDTOFromJSON(json: any): JiraAccountDTO {
    return JiraAccountDTOFromJSONTyped(json, false);
}

export function JiraAccountDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): JiraAccountDTO {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'id': json['id'],
        'name': json['name'],
        'site': json['site'],
    };
}

export function JiraAccountDTOToJSON(value?: JiraAccountDTO | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'id': value.id,
        'name': value.name,
        'site': value.site,
    };
}

