/* 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 { EmployeeResponse } from './EmployeeResponse';
import {
    EmployeeResponseFromJSON,
    EmployeeResponseFromJSONTyped,
    EmployeeResponseToJSON,
    EmployeeResponseToJSONTyped,
} from './EmployeeResponse';

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

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

export function EmployeeResponsePagedResponseFromJSON(json: any): EmployeeResponsePagedResponse {
    return EmployeeResponsePagedResponseFromJSONTyped(json, false);
}

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

export function EmployeeResponsePagedResponseToJSON(json: any): EmployeeResponsePagedResponse {
    return EmployeeResponsePagedResponseToJSONTyped(json, false);
}

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

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

