/* 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'; import type { MovieInfo } from './MovieInfo'; import { MovieInfoFromJSON, MovieInfoFromJSONTyped, MovieInfoToJSON, } from './MovieInfo'; /** * * @export * @interface GetMovieRemoteSearchResultsRequest */ export interface GetMovieRemoteSearchResultsRequest { /** * * @type {MovieInfo} * @memberof GetMovieRemoteSearchResultsRequest */ searchInfo?: MovieInfo | null; /** * * @type {string} * @memberof GetMovieRemoteSearchResultsRequest */ itemId?: string; /** * Gets or sets the provider name to search within if set. * @type {string} * @memberof GetMovieRemoteSearchResultsRequest */ searchProviderName?: string | null; /** * Gets or sets a value indicating whether disabled providers should be included. * @type {boolean} * @memberof GetMovieRemoteSearchResultsRequest */ includeDisabledProviders?: boolean; } /** * Check if a given object implements the GetMovieRemoteSearchResultsRequest interface. */ export function instanceOfGetMovieRemoteSearchResultsRequest(value: object): boolean { let isInstance = true; return isInstance; } export function GetMovieRemoteSearchResultsRequestFromJSON(json: any): GetMovieRemoteSearchResultsRequest { return GetMovieRemoteSearchResultsRequestFromJSONTyped(json, false); } export function GetMovieRemoteSearchResultsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetMovieRemoteSearchResultsRequest { if ((json === undefined) || (json === null)) { return json; } return { 'searchInfo': !exists(json, 'SearchInfo') ? undefined : MovieInfoFromJSON(json['SearchInfo']), 'itemId': !exists(json, 'ItemId') ? undefined : json['ItemId'], 'searchProviderName': !exists(json, 'SearchProviderName') ? undefined : json['SearchProviderName'], 'includeDisabledProviders': !exists(json, 'IncludeDisabledProviders') ? undefined : json['IncludeDisabledProviders'], }; } export function GetMovieRemoteSearchResultsRequestToJSON(value?: GetMovieRemoteSearchResultsRequest | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'SearchInfo': MovieInfoToJSON(value.searchInfo), 'ItemId': value.itemId, 'SearchProviderName': value.searchProviderName, 'IncludeDisabledProviders': value.includeDisabledProviders, }; }