/* 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;
    isInstance = isInstance && "username" in value;

    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': json['username'],
    };
}

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

