/* 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 { AssignmentResponse } from './AssignmentResponse';
import {
    AssignmentResponseFromJSON,
    AssignmentResponseFromJSONTyped,
    AssignmentResponseToJSON,
    AssignmentResponseToJSONTyped,
} from './AssignmentResponse';

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

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

export function AssignmentResponsePagedResponseFromJSON(json: any): AssignmentResponsePagedResponse {
    return AssignmentResponsePagedResponseFromJSONTyped(json, false);
}

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

export function AssignmentResponsePagedResponseToJSON(json: any): AssignmentResponsePagedResponse {
    return AssignmentResponsePagedResponseToJSONTyped(json, false);
}

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

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

