/* 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 { TimerInfoDto } from './TimerInfoDto';
import {
    TimerInfoDtoFromJSON,
    TimerInfoDtoFromJSONTyped,
    TimerInfoDtoToJSON,
} from './TimerInfoDto';

/**
 * 
 * @export
 * @interface TimerInfoDtoQueryResult
 */
export interface TimerInfoDtoQueryResult {
    /**
     * Gets or sets the items.
     * @type {Array<TimerInfoDto>}
     * @memberof TimerInfoDtoQueryResult
     */
    items?: Array<TimerInfoDto> | null;
    /**
     * Gets or sets the total number of records available.
     * @type {number}
     * @memberof TimerInfoDtoQueryResult
     */
    totalRecordCount?: number;
    /**
     * Gets or sets the index of the first record in Items.
     * @type {number}
     * @memberof TimerInfoDtoQueryResult
     */
    startIndex?: number;
}

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

    return isInstance;
}

export function TimerInfoDtoQueryResultFromJSON(json: any): TimerInfoDtoQueryResult {
    return TimerInfoDtoQueryResultFromJSONTyped(json, false);
}

export function TimerInfoDtoQueryResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimerInfoDtoQueryResult {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'items': !exists(json, 'Items') ? undefined : (json['Items'] === null ? null : (json['Items'] as Array<any>).map(TimerInfoDtoFromJSON)),
        'totalRecordCount': !exists(json, 'TotalRecordCount') ? undefined : json['TotalRecordCount'],
        'startIndex': !exists(json, 'StartIndex') ? undefined : json['StartIndex'],
    };
}

export function TimerInfoDtoQueryResultToJSON(value?: TimerInfoDtoQueryResult | 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<any>).map(TimerInfoDtoToJSON)),
        'TotalRecordCount': value.totalRecordCount,
        'StartIndex': value.startIndex,
    };
}

