/* 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 PlayRequestDto. * @export * @interface PlayRequestDto */ export interface PlayRequestDto { /** * Gets or sets the playing queue. * @type {Array} * @memberof PlayRequestDto */ playingQueue?: Array; /** * Gets or sets the position of the playing item in the queue. * @type {number} * @memberof PlayRequestDto */ playingItemPosition?: number; /** * Gets or sets the start position ticks. * @type {number} * @memberof PlayRequestDto */ startPositionTicks?: number; } /** * Check if a given object implements the PlayRequestDto interface. */ export function instanceOfPlayRequestDto(value: object): boolean { let isInstance = true; return isInstance; } export function PlayRequestDtoFromJSON(json: any): PlayRequestDto { return PlayRequestDtoFromJSONTyped(json, false); } export function PlayRequestDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayRequestDto { if ((json === undefined) || (json === null)) { return json; } return { 'playingQueue': !exists(json, 'PlayingQueue') ? undefined : json['PlayingQueue'], 'playingItemPosition': !exists(json, 'PlayingItemPosition') ? undefined : json['PlayingItemPosition'], 'startPositionTicks': !exists(json, 'StartPositionTicks') ? undefined : json['StartPositionTicks'], }; } export function PlayRequestDtoToJSON(value?: PlayRequestDto | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'PlayingQueue': value.playingQueue, 'PlayingItemPosition': value.playingItemPosition, 'StartPositionTicks': value.startPositionTicks, }; }