/* 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 { Genre } from './Genre'; import { GenreFromJSON, GenreFromJSONTyped, GenreToJSON, GenreToJSONTyped, } from './Genre'; /** * * @export * @interface GenrePlaylist */ export interface GenrePlaylist { /** * * @type {number} * @memberof GenrePlaylist */ genreId?: number; /** * * @type {Genre} * @memberof GenrePlaylist */ genre?: Genre; /** * * @type {number} * @memberof GenrePlaylist */ playListId?: number; /** * * @type {Playlist} * @memberof GenrePlaylist */ playlist?: Playlist; } /** * Check if a given object implements the GenrePlaylist interface. */ export function instanceOfGenrePlaylist(value: object): value is GenrePlaylist { return true; } export function GenrePlaylistFromJSON(json: any): GenrePlaylist { return GenrePlaylistFromJSONTyped(json, false); } export function GenrePlaylistFromJSONTyped(json: any, ignoreDiscriminator: boolean): GenrePlaylist { if (json == null) { return json; } return { 'genreId': json['GenreId'] == null ? undefined : json['GenreId'], 'genre': json['Genre'] == null ? undefined : GenreFromJSON(json['Genre']), 'playListId': json['PlayListId'] == null ? undefined : json['PlayListId'], 'playlist': json['Playlist'] == null ? undefined : PlaylistFromJSON(json['Playlist']), }; } export function GenrePlaylistToJSON(json: any): GenrePlaylist { return GenrePlaylistToJSONTyped(json, false); } export function GenrePlaylistToJSONTyped(value?: GenrePlaylist | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'GenreId': value['genreId'], 'Genre': GenreToJSON(value['genre']), 'PlayListId': value['playListId'], 'Playlist': PlaylistToJSON(value['playlist']), }; }