/* tslint:disable */
/* eslint-disable */
/**
 * Jellyfin API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 10.8.9
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

import { exists, mapValues } from '../runtime';
import type { NotificationDto } from './NotificationDto';
import {
    NotificationDtoFromJSON,
    NotificationDtoFromJSONTyped,
    NotificationDtoToJSON,
} from './NotificationDto';

/**
 * A list of notifications with the total record count for pagination.
 * @export
 * @interface NotificationResultDto
 */
export interface NotificationResultDto {
    /**
     * Gets or sets the current page of notifications.
     * @type {Array<NotificationDto>}
     * @memberof NotificationResultDto
     */
    notifications?: Array<NotificationDto>;
    /**
     * Gets or sets the total number of notifications.
     * @type {number}
     * @memberof NotificationResultDto
     */
    totalRecordCount?: number;
}

/**
 * Check if a given object implements the NotificationResultDto interface.
 */
export function instanceOfNotificationResultDto(value: object): boolean {
    let isInstance = true;

    return isInstance;
}

export function NotificationResultDtoFromJSON(json: any): NotificationResultDto {
    return NotificationResultDtoFromJSONTyped(json, false);
}

export function NotificationResultDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationResultDto {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'notifications': !exists(json, 'Notifications') ? undefined : ((json['Notifications'] as Array<any>).map(NotificationDtoFromJSON)),
        'totalRecordCount': !exists(json, 'TotalRecordCount') ? undefined : json['TotalRecordCount'],
    };
}

export function NotificationResultDtoToJSON(value?: NotificationResultDto | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'Notifications': value.notifications === undefined ? undefined : ((value.notifications as Array<any>).map(NotificationDtoToJSON)),
        'TotalRecordCount': value.totalRecordCount,
    };
}

