/* 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 { FeedPlaylistTrack } from './FeedPlaylistTrack'; import { FeedPlaylistTrackFromJSON, FeedPlaylistTrackFromJSONTyped, FeedPlaylistTrackToJSON, FeedPlaylistTrackToJSONTyped, } from './FeedPlaylistTrack'; /** * * @export * @interface FeedPlaylistResponse */ export interface FeedPlaylistResponse { /** * * @type {number} * @memberof FeedPlaylistResponse */ playListId?: number; /** * * @type {string} * @memberof FeedPlaylistResponse */ name?: string | null; /** * * @type {boolean} * @memberof FeedPlaylistResponse */ shuffle?: boolean; /** * * @type {boolean} * @memberof FeedPlaylistResponse */ active?: boolean; /** * * @type {number} * @memberof FeedPlaylistResponse */ count?: number; /** * * @type {string} * @memberof FeedPlaylistResponse */ duration?: string; /** * * @type {TimeOfDay} * @memberof FeedPlaylistResponse */ timeOfDay?: TimeOfDay; /** * * @type {Array} * @memberof FeedPlaylistResponse */ tracks?: Array | null; } /** * Check if a given object implements the FeedPlaylistResponse interface. */ export function instanceOfFeedPlaylistResponse(value: object): value is FeedPlaylistResponse { return true; } export function FeedPlaylistResponseFromJSON(json: any): FeedPlaylistResponse { return FeedPlaylistResponseFromJSONTyped(json, false); } export function FeedPlaylistResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeedPlaylistResponse { if (json == null) { return json; } return { 'playListId': json['PlayListId'] == null ? undefined : json['PlayListId'], 'name': json['Name'] == null ? undefined : json['Name'], 'shuffle': json['Shuffle'] == null ? undefined : json['Shuffle'], 'active': json['Active'] == null ? undefined : json['Active'], 'count': json['Count'] == null ? undefined : json['Count'], 'duration': json['Duration'] == null ? undefined : json['Duration'], 'timeOfDay': json['TimeOfDay'] == null ? undefined : TimeOfDayFromJSON(json['TimeOfDay']), 'tracks': json['Tracks'] == null ? undefined : ((json['Tracks'] as Array).map(FeedPlaylistTrackFromJSON)), }; } export function FeedPlaylistResponseToJSON(json: any): FeedPlaylistResponse { return FeedPlaylistResponseToJSONTyped(json, false); } export function FeedPlaylistResponseToJSONTyped(value?: FeedPlaylistResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'PlayListId': value['playListId'], 'Name': value['name'], 'Shuffle': value['shuffle'], 'Active': value['active'], 'Count': value['count'], 'Duration': value['duration'], 'TimeOfDay': TimeOfDayToJSON(value['timeOfDay']), 'Tracks': value['tracks'] == null ? undefined : ((value['tracks'] as Array).map(FeedPlaylistTrackToJSON)), }; }