/* 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 { FacilityResponse } from './FacilityResponse';
import {
    FacilityResponseFromJSON,
    FacilityResponseFromJSONTyped,
    FacilityResponseToJSON,
    FacilityResponseToJSONTyped,
} from './FacilityResponse';

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

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

export function FacilityResponsePagedResponseFromJSON(json: any): FacilityResponsePagedResponse {
    return FacilityResponsePagedResponseFromJSONTyped(json, false);
}

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

export function FacilityResponsePagedResponseToJSON(json: any): FacilityResponsePagedResponse {
    return FacilityResponsePagedResponseToJSONTyped(json, false);
}

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

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

