/* 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';
/**
 * 
 * @export
 * @interface NameIdPair
 */
export interface NameIdPair {
    /**
     * Gets or sets the name.
     * @type {string}
     * @memberof NameIdPair
     */
    name?: string | null;
    /**
     * Gets or sets the identifier.
     * @type {string}
     * @memberof NameIdPair
     */
    id?: string | null;
}

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

    return isInstance;
}

export function NameIdPairFromJSON(json: any): NameIdPair {
    return NameIdPairFromJSONTyped(json, false);
}

export function NameIdPairFromJSONTyped(json: any, ignoreDiscriminator: boolean): NameIdPair {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'name': !exists(json, 'Name') ? undefined : json['Name'],
        'id': !exists(json, 'Id') ? undefined : json['Id'],
    };
}

export function NameIdPairToJSON(value?: NameIdPair | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'Name': value.name,
        'Id': value.id,
    };
}

