/* 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 { AbsenceResponse } from './AbsenceResponse';
import {
    AbsenceResponseFromJSON,
    AbsenceResponseFromJSONTyped,
    AbsenceResponseToJSON,
    AbsenceResponseToJSONTyped,
} from './AbsenceResponse';

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

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

export function AbsenceResponsePagedResponseFromJSON(json: any): AbsenceResponsePagedResponse {
    return AbsenceResponsePagedResponseFromJSONTyped(json, false);
}

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

export function AbsenceResponsePagedResponseToJSON(json: any): AbsenceResponsePagedResponse {
    return AbsenceResponsePagedResponseToJSONTyped(json, false);
}

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

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

