jellyfin-discord-bot/server/jellyfin/models/SetPlaylistItemRequestDto.ts

66 lines
1.7 KiB
TypeScript
Raw Permalink Normal View History

2023-05-04 23:34:53 +02:00
/* 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 SetPlaylistItemRequestDto.
* @export
* @interface SetPlaylistItemRequestDto
*/
export interface SetPlaylistItemRequestDto {
/**
* Gets or sets the playlist identifier of the playing item.
* @type {string}
* @memberof SetPlaylistItemRequestDto
*/
playlistItemId?: string;
}
/**
* Check if a given object implements the SetPlaylistItemRequestDto interface.
*/
export function instanceOfSetPlaylistItemRequestDto(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function SetPlaylistItemRequestDtoFromJSON(json: any): SetPlaylistItemRequestDto {
return SetPlaylistItemRequestDtoFromJSONTyped(json, false);
}
export function SetPlaylistItemRequestDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetPlaylistItemRequestDto {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'playlistItemId': !exists(json, 'PlaylistItemId') ? undefined : json['PlaylistItemId'],
};
}
export function SetPlaylistItemRequestDtoToJSON(value?: SetPlaylistItemRequestDto | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'PlaylistItemId': value.playlistItemId,
};
}