/* 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'; /** * * @export * @interface PlaylistIndexResponse */ export interface PlaylistIndexResponse { /** * * @type {number} * @memberof PlaylistIndexResponse */ playListId?: number; /** * * @type {string} * @memberof PlaylistIndexResponse */ userId?: string | null; /** * * @type {string} * @memberof PlaylistIndexResponse */ userName?: string | null; /** * * @type {string} * @memberof PlaylistIndexResponse */ name?: string | null; /** * * @type {number} * @memberof PlaylistIndexResponse */ count?: number; /** * * @type {TimeOfDay} * @memberof PlaylistIndexResponse */ timeOfDay?: TimeOfDay; /** * * @type {string} * @memberof PlaylistIndexResponse */ duration?: string; /** * * @type {Date} * @memberof PlaylistIndexResponse */ createDate?: Date; /** * * @type {Array} * @memberof PlaylistIndexResponse */ companyTypePlaylists?: Array | null; /** * * @type {Array} * @memberof PlaylistIndexResponse */ genrePlaylists?: Array | null; } /** * Check if a given object implements the PlaylistIndexResponse interface. */ export function instanceOfPlaylistIndexResponse(value: object): value is PlaylistIndexResponse { return true; } export function PlaylistIndexResponseFromJSON(json: any): PlaylistIndexResponse { return PlaylistIndexResponseFromJSONTyped(json, false); } export function PlaylistIndexResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaylistIndexResponse { if (json == null) { return json; } return { 'playListId': json['PlayListId'] == null ? undefined : json['PlayListId'], 'userId': json['UserId'] == null ? undefined : json['UserId'], 'userName': json['UserName'] == null ? undefined : json['UserName'], 'name': json['Name'] == null ? undefined : json['Name'], 'count': json['Count'] == null ? undefined : json['Count'], 'timeOfDay': json['TimeOfDay'] == null ? undefined : TimeOfDayFromJSON(json['TimeOfDay']), 'duration': json['Duration'] == null ? undefined : json['Duration'], 'createDate': json['CreateDate'] == null ? undefined : (new Date(json['CreateDate'])), 'companyTypePlaylists': json['CompanyTypePlaylists'] == null ? undefined : json['CompanyTypePlaylists'], 'genrePlaylists': json['GenrePlaylists'] == null ? undefined : json['GenrePlaylists'], }; } export function PlaylistIndexResponseToJSON(json: any): PlaylistIndexResponse { return PlaylistIndexResponseToJSONTyped(json, false); } export function PlaylistIndexResponseToJSONTyped(value?: PlaylistIndexResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'PlayListId': value['playListId'], 'UserId': value['userId'], 'UserName': value['userName'], 'Name': value['name'], 'Count': value['count'], 'TimeOfDay': TimeOfDayToJSON(value['timeOfDay']), 'Duration': value['duration'], 'CreateDate': value['createDate'] == null ? undefined : ((value['createDate']).toISOString()), 'CompanyTypePlaylists': value['companyTypePlaylists'], 'GenrePlaylists': value['genrePlaylists'], }; }