/* 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 { NotificationLevel } from './NotificationLevel';
import {
    NotificationLevelFromJSON,
    NotificationLevelFromJSONTyped,
    NotificationLevelToJSON,
} from './NotificationLevel';

/**
 * The notification summary DTO.
 * @export
 * @interface NotificationsSummaryDto
 */
export interface NotificationsSummaryDto {
    /**
     * Gets or sets the number of unread notifications.
     * @type {number}
     * @memberof NotificationsSummaryDto
     */
    unreadCount?: number;
    /**
     * 
     * @type {NotificationLevel}
     * @memberof NotificationsSummaryDto
     */
    maxUnreadNotificationLevel?: NotificationLevel | null;
}

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

    return isInstance;
}

export function NotificationsSummaryDtoFromJSON(json: any): NotificationsSummaryDto {
    return NotificationsSummaryDtoFromJSONTyped(json, false);
}

export function NotificationsSummaryDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationsSummaryDto {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'unreadCount': !exists(json, 'UnreadCount') ? undefined : json['UnreadCount'],
        'maxUnreadNotificationLevel': !exists(json, 'MaxUnreadNotificationLevel') ? undefined : NotificationLevelFromJSON(json['MaxUnreadNotificationLevel']),
    };
}

export function NotificationsSummaryDtoToJSON(value?: NotificationsSummaryDto | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'UnreadCount': value.unreadCount,
        'MaxUnreadNotificationLevel': NotificationLevelToJSON(value.maxUnreadNotificationLevel),
    };
}

