/* 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 { AuditLogEntryResponse } from './AuditLogEntryResponse';
import {
    AuditLogEntryResponseFromJSON,
    AuditLogEntryResponseFromJSONTyped,
    AuditLogEntryResponseToJSON,
    AuditLogEntryResponseToJSONTyped,
} from './AuditLogEntryResponse';

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

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

export function AuditLogEntryResponsePagedResponseFromJSON(json: any): AuditLogEntryResponsePagedResponse {
    return AuditLogEntryResponsePagedResponseFromJSONTyped(json, false);
}

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

export function AuditLogEntryResponsePagedResponseToJSON(json: any): AuditLogEntryResponsePagedResponse {
    return AuditLogEntryResponsePagedResponseToJSONTyped(json, false);
}

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

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

