/* tslint:disable */
/* eslint-disable */
/**
 * Jellyfin API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 10.8.9
 * 
 *
 * 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';
/**
 * Class SessionUserInfo.
 * @export
 * @interface SessionUserInfo
 */
export interface SessionUserInfo {
    /**
     * Gets or sets the user identifier.
     * @type {string}
     * @memberof SessionUserInfo
     */
    userId?: string;
    /**
     * Gets or sets the name of the user.
     * @type {string}
     * @memberof SessionUserInfo
     */
    userName?: string | null;
}

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

    return isInstance;
}

export function SessionUserInfoFromJSON(json: any): SessionUserInfo {
    return SessionUserInfoFromJSONTyped(json, false);
}

export function SessionUserInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SessionUserInfo {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'userId': !exists(json, 'UserId') ? undefined : json['UserId'],
        'userName': !exists(json, 'UserName') ? undefined : json['UserName'],
    };
}

export function SessionUserInfoToJSON(value?: SessionUserInfo | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'UserId': value.userId,
        'UserName': value.userName,
    };
}

