/* 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 { DeviceInfo } from './DeviceInfo'; import { DeviceInfoFromJSON, DeviceInfoFromJSONTyped, DeviceInfoToJSON, } from './DeviceInfo'; /** * * @export * @interface DeviceInfoQueryResult */ export interface DeviceInfoQueryResult { /** * Gets or sets the items. * @type {Array} * @memberof DeviceInfoQueryResult */ items?: Array | null; /** * Gets or sets the total number of records available. * @type {number} * @memberof DeviceInfoQueryResult */ totalRecordCount?: number; /** * Gets or sets the index of the first record in Items. * @type {number} * @memberof DeviceInfoQueryResult */ startIndex?: number; } /** * Check if a given object implements the DeviceInfoQueryResult interface. */ export function instanceOfDeviceInfoQueryResult(value: object): boolean { let isInstance = true; return isInstance; } export function DeviceInfoQueryResultFromJSON(json: any): DeviceInfoQueryResult { return DeviceInfoQueryResultFromJSONTyped(json, false); } export function DeviceInfoQueryResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeviceInfoQueryResult { if ((json === undefined) || (json === null)) { return json; } return { 'items': !exists(json, 'Items') ? undefined : (json['Items'] === null ? null : (json['Items'] as Array).map(DeviceInfoFromJSON)), 'totalRecordCount': !exists(json, 'TotalRecordCount') ? undefined : json['TotalRecordCount'], 'startIndex': !exists(json, 'StartIndex') ? undefined : json['StartIndex'], }; } export function DeviceInfoQueryResultToJSON(value?: DeviceInfoQueryResult | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'Items': value.items === undefined ? undefined : (value.items === null ? null : (value.items as Array).map(DeviceInfoToJSON)), 'TotalRecordCount': value.totalRecordCount, 'StartIndex': value.startIndex, }; }