/* 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 CreateGithubUserDTO
 */
export interface CreateGithubUserDTO {
    /**
     * 
     * @type {string}
     * @memberof CreateGithubUserDTO
     */
    email: string;
    /**
     * 
     * @type {string}
     * @memberof CreateGithubUserDTO
     */
    firstName: string;
    /**
     * 
     * @type {string}
     * @memberof CreateGithubUserDTO
     */
    lastName: string;
    /**
     * 
     * @type {string}
     * @memberof CreateGithubUserDTO
     */
    token: string;
}

/**
 * Check if a given object implements the CreateGithubUserDTO interface.
 */
export function instanceOfCreateGithubUserDTO(value: object): boolean {
    let isInstance = true;
    isInstance = isInstance && "email" in value;
    isInstance = isInstance && "firstName" in value;
    isInstance = isInstance && "lastName" in value;
    isInstance = isInstance && "token" in value;

    return isInstance;
}

export function CreateGithubUserDTOFromJSON(json: any): CreateGithubUserDTO {
    return CreateGithubUserDTOFromJSONTyped(json, false);
}

export function CreateGithubUserDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateGithubUserDTO {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'email': json['email'],
        'firstName': json['firstName'],
        'lastName': json['lastName'],
        'token': json['token'],
    };
}

export function CreateGithubUserDTOToJSON(value?: CreateGithubUserDTO | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'email': value.email,
        'firstName': value.firstName,
        'lastName': value.lastName,
        'token': value.token,
    };
}

