/* 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 { Track } from './Track'; import { TrackFromJSON, TrackFromJSONTyped, TrackToJSON, TrackToJSONTyped, } from './Track'; /** * * @export * @interface TrackPlayList */ export interface TrackPlayList { /** * * @type {number} * @memberof TrackPlayList */ trackId?: number; /** * * @type {Track} * @memberof TrackPlayList */ track?: Track; /** * * @type {number} * @memberof TrackPlayList */ playListId?: number; /** * * @type {Playlist} * @memberof TrackPlayList */ playlist?: Playlist; /** * * @type {number} * @memberof TrackPlayList */ index?: number; /** * * @type {boolean} * @memberof TrackPlayList */ active?: boolean; } /** * Check if a given object implements the TrackPlayList interface. */ export function instanceOfTrackPlayList(value: object): value is TrackPlayList { return true; } export function TrackPlayListFromJSON(json: any): TrackPlayList { return TrackPlayListFromJSONTyped(json, false); } export function TrackPlayListFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrackPlayList { if (json == null) { return json; } return { 'trackId': json['TrackId'] == null ? undefined : json['TrackId'], 'track': json['Track'] == null ? undefined : TrackFromJSON(json['Track']), 'playListId': json['PlayListId'] == null ? undefined : json['PlayListId'], 'playlist': json['Playlist'] == null ? undefined : PlaylistFromJSON(json['Playlist']), 'index': json['Index'] == null ? undefined : json['Index'], 'active': json['Active'] == null ? undefined : json['Active'], }; } export function TrackPlayListToJSON(json: any): TrackPlayList { return TrackPlayListToJSONTyped(json, false); } export function TrackPlayListToJSONTyped(value?: TrackPlayList | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'TrackId': value['trackId'], 'Track': TrackToJSON(value['track']), 'PlayListId': value['playListId'], 'Playlist': PlaylistToJSON(value['playlist']), 'Index': value['index'], 'Active': value['active'], }; }