/* 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';
/**
 * Gets or sets the blurhashes for the image tags.
 * Maps image type to dictionary mapping image tag to blurhash value.
 * @export
 * @interface BaseItemDtoImageBlurHashes
 */
export interface BaseItemDtoImageBlurHashes {
    /**
     * 
     * @type {{ [key: string]: string; }}
     * @memberof BaseItemDtoImageBlurHashes
     */
    primary?: { [key: string]: string; };
    /**
     * 
     * @type {{ [key: string]: string; }}
     * @memberof BaseItemDtoImageBlurHashes
     */
    art?: { [key: string]: string; };
    /**
     * 
     * @type {{ [key: string]: string; }}
     * @memberof BaseItemDtoImageBlurHashes
     */
    backdrop?: { [key: string]: string; };
    /**
     * 
     * @type {{ [key: string]: string; }}
     * @memberof BaseItemDtoImageBlurHashes
     */
    banner?: { [key: string]: string; };
    /**
     * 
     * @type {{ [key: string]: string; }}
     * @memberof BaseItemDtoImageBlurHashes
     */
    logo?: { [key: string]: string; };
    /**
     * 
     * @type {{ [key: string]: string; }}
     * @memberof BaseItemDtoImageBlurHashes
     */
    thumb?: { [key: string]: string; };
    /**
     * 
     * @type {{ [key: string]: string; }}
     * @memberof BaseItemDtoImageBlurHashes
     */
    disc?: { [key: string]: string; };
    /**
     * 
     * @type {{ [key: string]: string; }}
     * @memberof BaseItemDtoImageBlurHashes
     */
    box?: { [key: string]: string; };
    /**
     * 
     * @type {{ [key: string]: string; }}
     * @memberof BaseItemDtoImageBlurHashes
     */
    screenshot?: { [key: string]: string; };
    /**
     * 
     * @type {{ [key: string]: string; }}
     * @memberof BaseItemDtoImageBlurHashes
     */
    menu?: { [key: string]: string; };
    /**
     * 
     * @type {{ [key: string]: string; }}
     * @memberof BaseItemDtoImageBlurHashes
     */
    chapter?: { [key: string]: string; };
    /**
     * 
     * @type {{ [key: string]: string; }}
     * @memberof BaseItemDtoImageBlurHashes
     */
    boxRear?: { [key: string]: string; };
    /**
     * 
     * @type {{ [key: string]: string; }}
     * @memberof BaseItemDtoImageBlurHashes
     */
    profile?: { [key: string]: string; };
}

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

    return isInstance;
}

export function BaseItemDtoImageBlurHashesFromJSON(json: any): BaseItemDtoImageBlurHashes {
    return BaseItemDtoImageBlurHashesFromJSONTyped(json, false);
}

export function BaseItemDtoImageBlurHashesFromJSONTyped(json: any, ignoreDiscriminator: boolean): BaseItemDtoImageBlurHashes {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'primary': !exists(json, 'Primary') ? undefined : json['Primary'],
        'art': !exists(json, 'Art') ? undefined : json['Art'],
        'backdrop': !exists(json, 'Backdrop') ? undefined : json['Backdrop'],
        'banner': !exists(json, 'Banner') ? undefined : json['Banner'],
        'logo': !exists(json, 'Logo') ? undefined : json['Logo'],
        'thumb': !exists(json, 'Thumb') ? undefined : json['Thumb'],
        'disc': !exists(json, 'Disc') ? undefined : json['Disc'],
        'box': !exists(json, 'Box') ? undefined : json['Box'],
        'screenshot': !exists(json, 'Screenshot') ? undefined : json['Screenshot'],
        'menu': !exists(json, 'Menu') ? undefined : json['Menu'],
        'chapter': !exists(json, 'Chapter') ? undefined : json['Chapter'],
        'boxRear': !exists(json, 'BoxRear') ? undefined : json['BoxRear'],
        'profile': !exists(json, 'Profile') ? undefined : json['Profile'],
    };
}

export function BaseItemDtoImageBlurHashesToJSON(value?: BaseItemDtoImageBlurHashes | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'Primary': value.primary,
        'Art': value.art,
        'Backdrop': value.backdrop,
        'Banner': value.banner,
        'Logo': value.logo,
        'Thumb': value.thumb,
        'Disc': value.disc,
        'Box': value.box,
        'Screenshot': value.screenshot,
        'Menu': value.menu,
        'Chapter': value.chapter,
        'BoxRear': value.boxRear,
        'Profile': value.profile,
    };
}

