/* 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'; import type { CompanyTypeChannel } from './CompanyTypeChannel'; import { CompanyTypeChannelFromJSON, CompanyTypeChannelFromJSONTyped, CompanyTypeChannelToJSON, CompanyTypeChannelToJSONTyped, } from './CompanyTypeChannel'; /** * * @export * @interface Channel */ export interface Channel { /** * * @type {number} * @memberof Channel */ channelId?: number; /** * * @type {string} * @memberof Channel */ name: string; /** * * @type {string} * @memberof Channel */ radioPoint: string; /** * * @type {string} * @memberof Channel */ image?: string | null; /** * * @type {Date} * @memberof Channel */ createDate?: Date; /** * * @type {Date} * @memberof Channel */ changeDate?: Date; /** * * @type {Array} * @memberof Channel */ companyTypeChannels?: Array | null; } /** * Check if a given object implements the Channel interface. */ export function instanceOfChannel(value: object): value is Channel { if (!('name' in value) || value['name'] === undefined) return false; if (!('radioPoint' in value) || value['radioPoint'] === undefined) return false; return true; } export function ChannelFromJSON(json: any): Channel { return ChannelFromJSONTyped(json, false); } export function ChannelFromJSONTyped(json: any, ignoreDiscriminator: boolean): Channel { if (json == null) { return json; } return { 'channelId': json['ChannelId'] == null ? undefined : json['ChannelId'], 'name': json['Name'], 'radioPoint': json['RadioPoint'], 'image': json['Image'] == null ? undefined : json['Image'], 'createDate': json['CreateDate'] == null ? undefined : (new Date(json['CreateDate'])), 'changeDate': json['ChangeDate'] == null ? undefined : (new Date(json['ChangeDate'])), 'companyTypeChannels': json['CompanyTypeChannels'] == null ? undefined : ((json['CompanyTypeChannels'] as Array).map(CompanyTypeChannelFromJSON)), }; } export function ChannelToJSON(json: any): Channel { return ChannelToJSONTyped(json, false); } export function ChannelToJSONTyped(value?: Channel | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'ChannelId': value['channelId'], 'Name': value['name'], 'RadioPoint': value['radioPoint'], 'Image': value['image'], 'CreateDate': value['createDate'] == null ? undefined : ((value['createDate']).toISOString()), 'ChangeDate': value['changeDate'] == null ? undefined : ((value['changeDate']).toISOString()), 'CompanyTypeChannels': value['companyTypeChannels'] == null ? undefined : ((value['companyTypeChannels'] as Array).map(CompanyTypeChannelToJSON)), }; }