/* tslint:disable */
/* eslint-disable */
/**
 * @fastify/swagger
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 9.6.1
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

import { mapValues } from '../runtime';
/**
 * 
 * @export
 * @interface GetUser200ResponsePayloadSelfInfo
 */
export interface GetUser200ResponsePayloadSelfInfo {
    /**
     * 
     * @type {string}
     * @memberof GetUser200ResponsePayloadSelfInfo
     */
    loginName?: string;
    /**
     * 
     * @type {string}
     * @memberof GetUser200ResponsePayloadSelfInfo
     */
    providerId?: string;
    /**
     * 
     * @type {string}
     * @memberof GetUser200ResponsePayloadSelfInfo
     */
    providerUser?: string;
}

/**
 * Check if a given object implements the GetUser200ResponsePayloadSelfInfo interface.
 */
export function instanceOfGetUser200ResponsePayloadSelfInfo(value: object): value is GetUser200ResponsePayloadSelfInfo {
    return true;
}

export function GetUser200ResponsePayloadSelfInfoFromJSON(json: any): GetUser200ResponsePayloadSelfInfo {
    return GetUser200ResponsePayloadSelfInfoFromJSONTyped(json, false);
}

export function GetUser200ResponsePayloadSelfInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetUser200ResponsePayloadSelfInfo {
    if (json == null) {
        return json;
    }
    return {
        
        'loginName': json['login_name'] == null ? undefined : json['login_name'],
        'providerId': json['provider_id'] == null ? undefined : json['provider_id'],
        'providerUser': json['provider_user'] == null ? undefined : json['provider_user'],
    };
}

export function GetUser200ResponsePayloadSelfInfoToJSON(json: any): GetUser200ResponsePayloadSelfInfo {
    return GetUser200ResponsePayloadSelfInfoToJSONTyped(json, false);
}

export function GetUser200ResponsePayloadSelfInfoToJSONTyped(value?: GetUser200ResponsePayloadSelfInfo | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {
        
        'login_name': value['loginName'],
        'provider_id': value['providerId'],
        'provider_user': value['providerUser'],
    };
}

