/* 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 JiraUserDTO
 */
export interface JiraUserDTO {
    /**
     * 
     * @type {string}
     * @memberof JiraUserDTO
     */
    createdAt: string;
    /**
     * 
     * @type {string}
     * @memberof JiraUserDTO
     */
    email: string;
    /**
     * 
     * @type {string}
     * @memberof JiraUserDTO
     */
    firstName: string;
    /**
     * 
     * @type {string}
     * @memberof JiraUserDTO
     */
    id: string;
    /**
     * 
     * @type {string}
     * @memberof JiraUserDTO
     */
    lastName: string;
    /**
     * 
     * @type {string}
     * @memberof JiraUserDTO
     */
    timeZone: string;
    /**
     * 
     * @type {string}
     * @memberof JiraUserDTO
     */
    updatedAt: string;
    /**
     * 
     * @type {number}
     * @memberof JiraUserDTO
     */
    workingHours: number;
}

/**
 * Check if a given object implements the JiraUserDTO interface.
 */
export function instanceOfJiraUserDTO(value: object): boolean {
    let isInstance = true;
    isInstance = isInstance && "createdAt" in value;
    isInstance = isInstance && "email" in value;
    isInstance = isInstance && "firstName" in value;
    isInstance = isInstance && "id" in value;
    isInstance = isInstance && "lastName" in value;
    isInstance = isInstance && "timeZone" in value;
    isInstance = isInstance && "updatedAt" in value;
    isInstance = isInstance && "workingHours" in value;

    return isInstance;
}

export function JiraUserDTOFromJSON(json: any): JiraUserDTO {
    return JiraUserDTOFromJSONTyped(json, false);
}

export function JiraUserDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): JiraUserDTO {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'createdAt': json['createdAt'],
        'email': json['email'],
        'firstName': json['firstName'],
        'id': json['id'],
        'lastName': json['lastName'],
        'timeZone': json['timeZone'],
        'updatedAt': json['updatedAt'],
        'workingHours': json['workingHours'],
    };
}

export function JiraUserDTOToJSON(value?: JiraUserDTO | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'createdAt': value.createdAt,
        'email': value.email,
        'firstName': value.firstName,
        'id': value.id,
        'lastName': value.lastName,
        'timeZone': value.timeZone,
        'updatedAt': value.updatedAt,
        'workingHours': value.workingHours,
    };
}

