/* 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 { OrderResponse } from './OrderResponse';
import {
    OrderResponseFromJSON,
    OrderResponseFromJSONTyped,
    OrderResponseToJSON,
    OrderResponseToJSONTyped,
} from './OrderResponse';

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

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

export function OrderResponsePagedResponseFromJSON(json: any): OrderResponsePagedResponse {
    return OrderResponsePagedResponseFromJSONTyped(json, false);
}

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

export function OrderResponsePagedResponseToJSON(json: any): OrderResponsePagedResponse {
    return OrderResponsePagedResponseToJSONTyped(json, false);
}

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

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

