/* 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 { BoxSetInfo } from './BoxSetInfo';
import {
    BoxSetInfoFromJSON,
    BoxSetInfoFromJSONTyped,
    BoxSetInfoToJSON,
} from './BoxSetInfo';

/**
 * 
 * @export
 * @interface GetBoxSetRemoteSearchResultsRequest
 */
export interface GetBoxSetRemoteSearchResultsRequest {
    /**
     * 
     * @type {BoxSetInfo}
     * @memberof GetBoxSetRemoteSearchResultsRequest
     */
    searchInfo?: BoxSetInfo | null;
    /**
     * 
     * @type {string}
     * @memberof GetBoxSetRemoteSearchResultsRequest
     */
    itemId?: string;
    /**
     * Gets or sets the provider name to search within if set.
     * @type {string}
     * @memberof GetBoxSetRemoteSearchResultsRequest
     */
    searchProviderName?: string | null;
    /**
     * Gets or sets a value indicating whether disabled providers should be included.
     * @type {boolean}
     * @memberof GetBoxSetRemoteSearchResultsRequest
     */
    includeDisabledProviders?: boolean;
}

/**
 * Check if a given object implements the GetBoxSetRemoteSearchResultsRequest interface.
 */
export function instanceOfGetBoxSetRemoteSearchResultsRequest(value: object): boolean {
    let isInstance = true;

    return isInstance;
}

export function GetBoxSetRemoteSearchResultsRequestFromJSON(json: any): GetBoxSetRemoteSearchResultsRequest {
    return GetBoxSetRemoteSearchResultsRequestFromJSONTyped(json, false);
}

export function GetBoxSetRemoteSearchResultsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetBoxSetRemoteSearchResultsRequest {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'searchInfo': !exists(json, 'SearchInfo') ? undefined : BoxSetInfoFromJSON(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 GetBoxSetRemoteSearchResultsRequestToJSON(value?: GetBoxSetRemoteSearchResultsRequest | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'SearchInfo': BoxSetInfoToJSON(value.searchInfo),
        'ItemId': value.itemId,
        'SearchProviderName': value.searchProviderName,
        'IncludeDisabledProviders': value.includeDisabledProviders,
    };
}

