/* 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 { SearchHint } from './SearchHint'; import { SearchHintFromJSON, SearchHintFromJSONTyped, SearchHintToJSON, } from './SearchHint'; /** * Class SearchHintResult. * @export * @interface SearchHintResult */ export interface SearchHintResult { /** * Gets the search hints. * @type {Array} * @memberof SearchHintResult */ searchHints?: Array; /** * Gets the total record count. * @type {number} * @memberof SearchHintResult */ totalRecordCount?: number; } /** * Check if a given object implements the SearchHintResult interface. */ export function instanceOfSearchHintResult(value: object): boolean { let isInstance = true; return isInstance; } export function SearchHintResultFromJSON(json: any): SearchHintResult { return SearchHintResultFromJSONTyped(json, false); } export function SearchHintResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchHintResult { if ((json === undefined) || (json === null)) { return json; } return { 'searchHints': !exists(json, 'SearchHints') ? undefined : ((json['SearchHints'] as Array).map(SearchHintFromJSON)), 'totalRecordCount': !exists(json, 'TotalRecordCount') ? undefined : json['TotalRecordCount'], }; } export function SearchHintResultToJSON(value?: SearchHintResult | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'SearchHints': value.searchHints === undefined ? undefined : ((value.searchHints as Array).map(SearchHintToJSON)), 'TotalRecordCount': value.totalRecordCount, }; }