/* 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';
/**
 * Set channel mapping dto.
 * @export
 * @interface SetChannelMappingDto
 */
export interface SetChannelMappingDto {
    /**
     * Gets or sets the provider id.
     * @type {string}
     * @memberof SetChannelMappingDto
     */
    providerId: string;
    /**
     * Gets or sets the tuner channel id.
     * @type {string}
     * @memberof SetChannelMappingDto
     */
    tunerChannelId: string;
    /**
     * Gets or sets the provider channel id.
     * @type {string}
     * @memberof SetChannelMappingDto
     */
    providerChannelId: string;
}

/**
 * Check if a given object implements the SetChannelMappingDto interface.
 */
export function instanceOfSetChannelMappingDto(value: object): boolean {
    let isInstance = true;
    isInstance = isInstance && "providerId" in value;
    isInstance = isInstance && "tunerChannelId" in value;
    isInstance = isInstance && "providerChannelId" in value;

    return isInstance;
}

export function SetChannelMappingDtoFromJSON(json: any): SetChannelMappingDto {
    return SetChannelMappingDtoFromJSONTyped(json, false);
}

export function SetChannelMappingDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetChannelMappingDto {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'providerId': json['ProviderId'],
        'tunerChannelId': json['TunerChannelId'],
        'providerChannelId': json['ProviderChannelId'],
    };
}

export function SetChannelMappingDtoToJSON(value?: SetChannelMappingDto | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'ProviderId': value.providerId,
        'TunerChannelId': value.tunerChannelId,
        'ProviderChannelId': value.providerChannelId,
    };
}

