/* 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 QueueItem
 */
export interface QueueItem {
    /**
     * 
     * @type {string}
     * @memberof QueueItem
     */
    id?: string;
    /**
     * 
     * @type {string}
     * @memberof QueueItem
     */
    playlistItemId?: string | null;
}

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

    return isInstance;
}

export function QueueItemFromJSON(json: any): QueueItem {
    return QueueItemFromJSONTyped(json, false);
}

export function QueueItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): QueueItem {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'id': !exists(json, 'Id') ? undefined : json['Id'],
        'playlistItemId': !exists(json, 'PlaylistItemId') ? undefined : json['PlaylistItemId'],
    };
}

export function QueueItemToJSON(value?: QueueItem | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'Id': value.id,
        'PlaylistItemId': value.playlistItemId,
    };
}

