/* 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 { Playlist } from './Playlist'; import { PlaylistFromJSON, PlaylistFromJSONTyped, PlaylistToJSON, PlaylistToJSONTyped, } from './Playlist'; import type { CompanyType } from './CompanyType'; import { CompanyTypeFromJSON, CompanyTypeFromJSONTyped, CompanyTypeToJSON, CompanyTypeToJSONTyped, } from './CompanyType'; /** * * @export * @interface CompanyTypePlaylist */ export interface CompanyTypePlaylist { /** * * @type {number} * @memberof CompanyTypePlaylist */ companyTypeId?: number; /** * * @type {CompanyType} * @memberof CompanyTypePlaylist */ companyType?: CompanyType; /** * * @type {number} * @memberof CompanyTypePlaylist */ playListId?: number; /** * * @type {Playlist} * @memberof CompanyTypePlaylist */ playlist?: Playlist; } /** * Check if a given object implements the CompanyTypePlaylist interface. */ export function instanceOfCompanyTypePlaylist(value: object): value is CompanyTypePlaylist { return true; } export function CompanyTypePlaylistFromJSON(json: any): CompanyTypePlaylist { return CompanyTypePlaylistFromJSONTyped(json, false); } export function CompanyTypePlaylistFromJSONTyped(json: any, ignoreDiscriminator: boolean): CompanyTypePlaylist { if (json == null) { return json; } return { 'companyTypeId': json['CompanyTypeId'] == null ? undefined : json['CompanyTypeId'], 'companyType': json['CompanyType'] == null ? undefined : CompanyTypeFromJSON(json['CompanyType']), 'playListId': json['PlayListId'] == null ? undefined : json['PlayListId'], 'playlist': json['Playlist'] == null ? undefined : PlaylistFromJSON(json['Playlist']), }; } export function CompanyTypePlaylistToJSON(json: any): CompanyTypePlaylist { return CompanyTypePlaylistToJSONTyped(json, false); } export function CompanyTypePlaylistToJSONTyped(value?: CompanyTypePlaylist | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'CompanyTypeId': value['companyTypeId'], 'CompanyType': CompanyTypeToJSON(value['companyType']), 'PlayListId': value['playListId'], 'Playlist': PlaylistToJSON(value['playlist']), }; }