/* 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'; /** * * @export * @interface ArchivePlaylist */ export interface ArchivePlaylist { /** * * @type {string} * @memberof ArchivePlaylist */ archivePlaylistId?: string | null; /** * * @type {number} * @memberof ArchivePlaylist */ playListId?: number; /** * * @type {Playlist} * @memberof ArchivePlaylist */ playlist?: Playlist; /** * * @type {Date} * @memberof ArchivePlaylist */ createDate?: Date; /** * * @type {Date} * @memberof ArchivePlaylist */ changeDate?: Date; } /** * Check if a given object implements the ArchivePlaylist interface. */ export function instanceOfArchivePlaylist(value: object): value is ArchivePlaylist { return true; } export function ArchivePlaylistFromJSON(json: any): ArchivePlaylist { return ArchivePlaylistFromJSONTyped(json, false); } export function ArchivePlaylistFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArchivePlaylist { if (json == null) { return json; } return { 'archivePlaylistId': json['ArchivePlaylistId'] == null ? undefined : json['ArchivePlaylistId'], 'playListId': json['PlayListId'] == null ? undefined : json['PlayListId'], 'playlist': json['Playlist'] == null ? undefined : PlaylistFromJSON(json['Playlist']), 'createDate': json['CreateDate'] == null ? undefined : (new Date(json['CreateDate'])), 'changeDate': json['ChangeDate'] == null ? undefined : (new Date(json['ChangeDate'])), }; } export function ArchivePlaylistToJSON(json: any): ArchivePlaylist { return ArchivePlaylistToJSONTyped(json, false); } export function ArchivePlaylistToJSONTyped(value?: ArchivePlaylist | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'ArchivePlaylistId': value['archivePlaylistId'], 'PlayListId': value['playListId'], 'Playlist': PlaylistToJSON(value['playlist']), 'CreateDate': value['createDate'] == null ? undefined : ((value['createDate']).toISOString()), 'ChangeDate': value['changeDate'] == null ? undefined : ((value['changeDate']).toISOString()), }; }