/* 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 { AllThemeMediaResultThemeVideosResult } from './AllThemeMediaResultThemeVideosResult';
import {
    AllThemeMediaResultThemeVideosResultFromJSON,
    AllThemeMediaResultThemeVideosResultFromJSONTyped,
    AllThemeMediaResultThemeVideosResultToJSON,
} from './AllThemeMediaResultThemeVideosResult';

/**
 * 
 * @export
 * @interface AllThemeMediaResult
 */
export interface AllThemeMediaResult {
    /**
     * 
     * @type {AllThemeMediaResultThemeVideosResult}
     * @memberof AllThemeMediaResult
     */
    themeVideosResult?: AllThemeMediaResultThemeVideosResult | null;
    /**
     * 
     * @type {AllThemeMediaResultThemeVideosResult}
     * @memberof AllThemeMediaResult
     */
    themeSongsResult?: AllThemeMediaResultThemeVideosResult | null;
    /**
     * 
     * @type {AllThemeMediaResultThemeVideosResult}
     * @memberof AllThemeMediaResult
     */
    soundtrackSongsResult?: AllThemeMediaResultThemeVideosResult | null;
}

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

    return isInstance;
}

export function AllThemeMediaResultFromJSON(json: any): AllThemeMediaResult {
    return AllThemeMediaResultFromJSONTyped(json, false);
}

export function AllThemeMediaResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): AllThemeMediaResult {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'themeVideosResult': !exists(json, 'ThemeVideosResult') ? undefined : AllThemeMediaResultThemeVideosResultFromJSON(json['ThemeVideosResult']),
        'themeSongsResult': !exists(json, 'ThemeSongsResult') ? undefined : AllThemeMediaResultThemeVideosResultFromJSON(json['ThemeSongsResult']),
        'soundtrackSongsResult': !exists(json, 'SoundtrackSongsResult') ? undefined : AllThemeMediaResultThemeVideosResultFromJSON(json['SoundtrackSongsResult']),
    };
}

export function AllThemeMediaResultToJSON(value?: AllThemeMediaResult | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'ThemeVideosResult': AllThemeMediaResultThemeVideosResultToJSON(value.themeVideosResult),
        'ThemeSongsResult': AllThemeMediaResultThemeVideosResultToJSON(value.themeSongsResult),
        'SoundtrackSongsResult': AllThemeMediaResultThemeVideosResultToJSON(value.soundtrackSongsResult),
    };
}

