/* 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 { TimeOfDay } from './TimeOfDay'; import { TimeOfDayFromJSON, TimeOfDayFromJSONTyped, TimeOfDayToJSON, TimeOfDayToJSONTyped, } from './TimeOfDay'; import type { GenrePlaylistDTO } from './GenrePlaylistDTO'; import { GenrePlaylistDTOFromJSON, GenrePlaylistDTOFromJSONTyped, GenrePlaylistDTOToJSON, GenrePlaylistDTOToJSONTyped, } from './GenrePlaylistDTO'; /** * * @export * @interface PlaylistClientShortDTO */ export interface PlaylistClientShortDTO { /** * * @type {string} * @memberof PlaylistClientShortDTO */ name: string; /** * * @type {TimeOfDay} * @memberof PlaylistClientShortDTO */ timeOfDay: TimeOfDay; /** * * @type {Array} * @memberof PlaylistClientShortDTO */ genrePlaylists?: Array | null; } /** * Check if a given object implements the PlaylistClientShortDTO interface. */ export function instanceOfPlaylistClientShortDTO(value: object): value is PlaylistClientShortDTO { if (!('name' in value) || value['name'] === undefined) return false; if (!('timeOfDay' in value) || value['timeOfDay'] === undefined) return false; return true; } export function PlaylistClientShortDTOFromJSON(json: any): PlaylistClientShortDTO { return PlaylistClientShortDTOFromJSONTyped(json, false); } export function PlaylistClientShortDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaylistClientShortDTO { if (json == null) { return json; } return { 'name': json['Name'], 'timeOfDay': TimeOfDayFromJSON(json['TimeOfDay']), 'genrePlaylists': json['GenrePlaylists'] == null ? undefined : ((json['GenrePlaylists'] as Array).map(GenrePlaylistDTOFromJSON)), }; } export function PlaylistClientShortDTOToJSON(json: any): PlaylistClientShortDTO { return PlaylistClientShortDTOToJSONTyped(json, false); } export function PlaylistClientShortDTOToJSONTyped(value?: PlaylistClientShortDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'Name': value['name'], 'TimeOfDay': TimeOfDayToJSON(value['timeOfDay']), 'GenrePlaylists': value['genrePlaylists'] == null ? undefined : ((value['genrePlaylists'] as Array).map(GenrePlaylistDTOToJSON)), }; }