/* 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 { TrailerInfo } from './TrailerInfo'; import { TrailerInfoFromJSON, TrailerInfoFromJSONTyped, TrailerInfoToJSON, } from './TrailerInfo'; /** * * @export * @interface GetTrailerRemoteSearchResultsRequest */ export interface GetTrailerRemoteSearchResultsRequest { /** * * @type {TrailerInfo} * @memberof GetTrailerRemoteSearchResultsRequest */ searchInfo?: TrailerInfo | null; /** * * @type {string} * @memberof GetTrailerRemoteSearchResultsRequest */ itemId?: string; /** * Gets or sets the provider name to search within if set. * @type {string} * @memberof GetTrailerRemoteSearchResultsRequest */ searchProviderName?: string | null; /** * Gets or sets a value indicating whether disabled providers should be included. * @type {boolean} * @memberof GetTrailerRemoteSearchResultsRequest */ includeDisabledProviders?: boolean; } /** * Check if a given object implements the GetTrailerRemoteSearchResultsRequest interface. */ export function instanceOfGetTrailerRemoteSearchResultsRequest(value: object): boolean { let isInstance = true; return isInstance; } export function GetTrailerRemoteSearchResultsRequestFromJSON(json: any): GetTrailerRemoteSearchResultsRequest { return GetTrailerRemoteSearchResultsRequestFromJSONTyped(json, false); } export function GetTrailerRemoteSearchResultsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetTrailerRemoteSearchResultsRequest { if ((json === undefined) || (json === null)) { return json; } return { 'searchInfo': !exists(json, 'SearchInfo') ? undefined : TrailerInfoFromJSON(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 GetTrailerRemoteSearchResultsRequestToJSON(value?: GetTrailerRemoteSearchResultsRequest | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'SearchInfo': TrailerInfoToJSON(value.searchInfo), 'ItemId': value.itemId, 'SearchProviderName': value.searchProviderName, 'IncludeDisabledProviders': value.includeDisabledProviders, }; }