/* tslint:disable */ /* eslint-disable */ /** * Mubicon v1 API * Api with Swagger, Swashbuckle, and Manual API versioning. * * The version of the OpenAPI document: 1 * Contact: support@mubicloud.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; /** * * @export * @interface ChannelIndexResponse */ export interface ChannelIndexResponse { /** * * @type {number} * @memberof ChannelIndexResponse */ channelId?: number; /** * * @type {string} * @memberof ChannelIndexResponse */ image?: string | null; /** * * @type {string} * @memberof ChannelIndexResponse */ name?: string | null; /** * * @type {string} * @memberof ChannelIndexResponse */ radioPoint?: string | null; /** * * @type {Array} * @memberof ChannelIndexResponse */ companyTypeChannels?: Array | null; } /** * Check if a given object implements the ChannelIndexResponse interface. */ export function instanceOfChannelIndexResponse(value: object): value is ChannelIndexResponse { return true; } export function ChannelIndexResponseFromJSON(json: any): ChannelIndexResponse { return ChannelIndexResponseFromJSONTyped(json, false); } export function ChannelIndexResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChannelIndexResponse { if (json == null) { return json; } return { 'channelId': json['ChannelId'] == null ? undefined : json['ChannelId'], 'image': json['Image'] == null ? undefined : json['Image'], 'name': json['Name'] == null ? undefined : json['Name'], 'radioPoint': json['RadioPoint'] == null ? undefined : json['RadioPoint'], 'companyTypeChannels': json['CompanyTypeChannels'] == null ? undefined : json['CompanyTypeChannels'], }; } export function ChannelIndexResponseToJSON(json: any): ChannelIndexResponse { return ChannelIndexResponseToJSONTyped(json, false); } export function ChannelIndexResponseToJSONTyped(value?: ChannelIndexResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'ChannelId': value['channelId'], 'Image': value['image'], 'Name': value['name'], 'RadioPoint': value['radioPoint'], 'CompanyTypeChannels': value['companyTypeChannels'], }; }