/* 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'; /** * Create new playlist dto. * @export * @interface CreatePlaylistRequest */ export interface CreatePlaylistRequest { /** * Gets or sets the name of the new playlist. * @type {string} * @memberof CreatePlaylistRequest */ name?: string | null; /** * Gets or sets item ids to add to the playlist. * @type {Array} * @memberof CreatePlaylistRequest */ ids?: Array; /** * Gets or sets the user id. * @type {string} * @memberof CreatePlaylistRequest */ userId?: string | null; /** * Gets or sets the media type. * @type {string} * @memberof CreatePlaylistRequest */ mediaType?: string | null; } /** * Check if a given object implements the CreatePlaylistRequest interface. */ export function instanceOfCreatePlaylistRequest(value: object): boolean { let isInstance = true; return isInstance; } export function CreatePlaylistRequestFromJSON(json: any): CreatePlaylistRequest { return CreatePlaylistRequestFromJSONTyped(json, false); } export function CreatePlaylistRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePlaylistRequest { if ((json === undefined) || (json === null)) { return json; } return { 'name': !exists(json, 'Name') ? undefined : json['Name'], 'ids': !exists(json, 'Ids') ? undefined : json['Ids'], 'userId': !exists(json, 'UserId') ? undefined : json['UserId'], 'mediaType': !exists(json, 'MediaType') ? undefined : json['MediaType'], }; } export function CreatePlaylistRequestToJSON(value?: CreatePlaylistRequest | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'Name': value.name, 'Ids': value.ids, 'UserId': value.userId, 'MediaType': value.mediaType, }; }