/* 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 GithubAccountDTO
 */
export interface GithubAccountDTO {
    /**
     * 
     * @type {string}
     * @memberof GithubAccountDTO
     */
    username?: string;
}

/**
 * Check if a given object implements the GithubAccountDTO interface.
 */
export function instanceOfGithubAccountDTO(value: object): boolean {
    let isInstance = true;

    return isInstance;
}

export function GithubAccountDTOFromJSON(json: any): GithubAccountDTO {
    return GithubAccountDTOFromJSONTyped(json, false);
}

export function GithubAccountDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): GithubAccountDTO {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'username': !exists(json, 'username') ? undefined : json['username'],
    };
}

export function GithubAccountDTOToJSON(value?: GithubAccountDTO | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'username': value.username,
    };
}

