/* 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 { ChannelGetCompany } from './ChannelGetCompany'; import { ChannelGetCompanyFromJSON, ChannelGetCompanyFromJSONTyped, ChannelGetCompanyToJSON, ChannelGetCompanyToJSONTyped, } from './ChannelGetCompany'; /** * * @export * @interface ChannelGetResponse */ export interface ChannelGetResponse { /** * * @type {number} * @memberof ChannelGetResponse */ channelId?: number; /** * * @type {string} * @memberof ChannelGetResponse */ image?: string | null; /** * * @type {string} * @memberof ChannelGetResponse */ name?: string | null; /** * * @type {string} * @memberof ChannelGetResponse */ radioPoint?: string | null; /** * * @type {Date} * @memberof ChannelGetResponse */ createDate?: Date; /** * * @type {Date} * @memberof ChannelGetResponse */ changeDate?: Date; /** * * @type {Array} * @memberof ChannelGetResponse */ companyTypeChannels?: Array | null; } /** * Check if a given object implements the ChannelGetResponse interface. */ export function instanceOfChannelGetResponse(value: object): value is ChannelGetResponse { return true; } export function ChannelGetResponseFromJSON(json: any): ChannelGetResponse { return ChannelGetResponseFromJSONTyped(json, false); } export function ChannelGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChannelGetResponse { 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'], '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(ChannelGetCompanyFromJSON)), }; } export function ChannelGetResponseToJSON(json: any): ChannelGetResponse { return ChannelGetResponseToJSONTyped(json, false); } export function ChannelGetResponseToJSONTyped(value?: ChannelGetResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'ChannelId': value['channelId'], 'Image': value['image'], 'Name': value['name'], 'RadioPoint': value['radioPoint'], '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(ChannelGetCompanyToJSON)), }; }