/* 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'; import type { PlaylistFeedDTO } from './PlaylistFeedDTO'; import { PlaylistFeedDTOFromJSON, PlaylistFeedDTOFromJSONTyped, PlaylistFeedDTOToJSON, PlaylistFeedDTOToJSONTyped, } from './PlaylistFeedDTO'; import type { TrackPlayListDTO } from './TrackPlayListDTO'; import { TrackPlayListDTOFromJSON, TrackPlayListDTOFromJSONTyped, TrackPlayListDTOToJSON, TrackPlayListDTOToJSONTyped, } from './TrackPlayListDTO'; import type { CompanyTypePlaylistDTO } from './CompanyTypePlaylistDTO'; import { CompanyTypePlaylistDTOFromJSON, CompanyTypePlaylistDTOFromJSONTyped, CompanyTypePlaylistDTOToJSON, CompanyTypePlaylistDTOToJSONTyped, } from './CompanyTypePlaylistDTO'; /** * * @export * @interface PlaylistClientDTO */ export interface PlaylistClientDTO { /** * * @type {number} * @memberof PlaylistClientDTO */ playListId?: number; /** * * @type {string} * @memberof PlaylistClientDTO */ name: string; /** * * @type {string} * @memberof PlaylistClientDTO */ imageFile?: string | null; /** * * @type {TimeOfDay} * @memberof PlaylistClientDTO */ timeOfDay: TimeOfDay; /** * * @type {boolean} * @memberof PlaylistClientDTO */ download?: boolean; /** * * @type {Array} * @memberof PlaylistClientDTO */ companyTypePlaylists?: Array | null; /** * * @type {Array} * @memberof PlaylistClientDTO */ genrePlaylists?: Array | null; /** * * @type {Array} * @memberof PlaylistClientDTO */ trackPlayLists?: Array | null; /** * * @type {Array} * @memberof PlaylistClientDTO */ playlistFeeds?: Array | null; } /** * Check if a given object implements the PlaylistClientDTO interface. */ export function instanceOfPlaylistClientDTO(value: object): value is PlaylistClientDTO { if (!('name' in value) || value['name'] === undefined) return false; if (!('timeOfDay' in value) || value['timeOfDay'] === undefined) return false; return true; } export function PlaylistClientDTOFromJSON(json: any): PlaylistClientDTO { return PlaylistClientDTOFromJSONTyped(json, false); } export function PlaylistClientDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaylistClientDTO { if (json == null) { return json; } return { 'playListId': json['PlayListId'] == null ? undefined : json['PlayListId'], 'name': json['Name'], 'imageFile': json['ImageFile'] == null ? undefined : json['ImageFile'], 'timeOfDay': TimeOfDayFromJSON(json['TimeOfDay']), 'download': json['Download'] == null ? undefined : json['Download'], 'companyTypePlaylists': json['CompanyTypePlaylists'] == null ? undefined : ((json['CompanyTypePlaylists'] as Array).map(CompanyTypePlaylistDTOFromJSON)), 'genrePlaylists': json['GenrePlaylists'] == null ? undefined : ((json['GenrePlaylists'] as Array).map(GenrePlaylistDTOFromJSON)), 'trackPlayLists': json['TrackPlayLists'] == null ? undefined : ((json['TrackPlayLists'] as Array).map(TrackPlayListDTOFromJSON)), 'playlistFeeds': json['PlaylistFeeds'] == null ? undefined : ((json['PlaylistFeeds'] as Array).map(PlaylistFeedDTOFromJSON)), }; } export function PlaylistClientDTOToJSON(json: any): PlaylistClientDTO { return PlaylistClientDTOToJSONTyped(json, false); } export function PlaylistClientDTOToJSONTyped(value?: PlaylistClientDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'PlayListId': value['playListId'], 'Name': value['name'], 'ImageFile': value['imageFile'], 'TimeOfDay': TimeOfDayToJSON(value['timeOfDay']), 'Download': value['download'], 'CompanyTypePlaylists': value['companyTypePlaylists'] == null ? undefined : ((value['companyTypePlaylists'] as Array).map(CompanyTypePlaylistDTOToJSON)), 'GenrePlaylists': value['genrePlaylists'] == null ? undefined : ((value['genrePlaylists'] as Array).map(GenrePlaylistDTOToJSON)), 'TrackPlayLists': value['trackPlayLists'] == null ? undefined : ((value['trackPlayLists'] as Array).map(TrackPlayListDTOToJSON)), 'PlaylistFeeds': value['playlistFeeds'] == null ? undefined : ((value['playlistFeeds'] as Array).map(PlaylistFeedDTOToJSON)), }; }