/* tslint:disable */
/* eslint-disable */
/**
 * OmsorgCore.Api
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

import { mapValues } from '../runtime';
import type { TimeEntryResponse } from './TimeEntryResponse';
import {
    TimeEntryResponseFromJSON,
    TimeEntryResponseFromJSONTyped,
    TimeEntryResponseToJSON,
    TimeEntryResponseToJSONTyped,
} from './TimeEntryResponse';

/**
 * 
 * @export
 * @interface TimeEntryResponsePagedResponse
 */
export interface TimeEntryResponsePagedResponse {
    /**
     * 
     * @type {Array<TimeEntryResponse>}
     * @memberof TimeEntryResponsePagedResponse
     */
    items?: Array<TimeEntryResponse> | null;
    /**
     * 
     * @type {number}
     * @memberof TimeEntryResponsePagedResponse
     */
    totalCount?: number;
    /**
     * 
     * @type {number}
     * @memberof TimeEntryResponsePagedResponse
     */
    page?: number;
    /**
     * 
     * @type {number}
     * @memberof TimeEntryResponsePagedResponse
     */
    pageSize?: number;
}

/**
 * Check if a given object implements the TimeEntryResponsePagedResponse interface.
 */
export function instanceOfTimeEntryResponsePagedResponse(value: object): value is TimeEntryResponsePagedResponse {
    return true;
}

export function TimeEntryResponsePagedResponseFromJSON(json: any): TimeEntryResponsePagedResponse {
    return TimeEntryResponsePagedResponseFromJSONTyped(json, false);
}

export function TimeEntryResponsePagedResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeEntryResponsePagedResponse {
    if (json == null) {
        return json;
    }
    return {
        
        'items': json['items'] == null ? undefined : ((json['items'] as Array<any>).map(TimeEntryResponseFromJSON)),
        'totalCount': json['totalCount'] == null ? undefined : json['totalCount'],
        'page': json['page'] == null ? undefined : json['page'],
        'pageSize': json['pageSize'] == null ? undefined : json['pageSize'],
    };
}

export function TimeEntryResponsePagedResponseToJSON(json: any): TimeEntryResponsePagedResponse {
    return TimeEntryResponsePagedResponseToJSONTyped(json, false);
}

export function TimeEntryResponsePagedResponseToJSONTyped(value?: TimeEntryResponsePagedResponse | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {
        
        'items': value['items'] == null ? undefined : ((value['items'] as Array<any>).map(TimeEntryResponseToJSON)),
        'totalCount': value['totalCount'],
        'page': value['page'],
        'pageSize': value['pageSize'],
    };
}

