/* 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'; /** * * @export * @interface FeedPlaylistTrack */ export interface FeedPlaylistTrack { /** * * @type {number} * @memberof FeedPlaylistTrack */ trackId?: number; /** * * @type {string} * @memberof FeedPlaylistTrack */ name?: string | null; /** * * @type {string} * @memberof FeedPlaylistTrack */ audioFile?: string | null; /** * * @type {string} * @memberof FeedPlaylistTrack */ duration?: string; /** * * @type {string} * @memberof FeedPlaylistTrack */ title?: string | null; /** * * @type {string} * @memberof FeedPlaylistTrack */ artist?: string | null; /** * * @type {string} * @memberof FeedPlaylistTrack */ imageFile?: string | null; /** * * @type {string} * @memberof FeedPlaylistTrack */ fileHash?: string | null; /** * * @type {Array} * @memberof FeedPlaylistTrack */ genreTracks?: Array | null; /** * * @type {number} * @memberof FeedPlaylistTrack */ rating?: number; } /** * Check if a given object implements the FeedPlaylistTrack interface. */ export function instanceOfFeedPlaylistTrack(value: object): value is FeedPlaylistTrack { return true; } export function FeedPlaylistTrackFromJSON(json: any): FeedPlaylistTrack { return FeedPlaylistTrackFromJSONTyped(json, false); } export function FeedPlaylistTrackFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeedPlaylistTrack { if (json == null) { return json; } return { 'trackId': json['TrackId'] == null ? undefined : json['TrackId'], 'name': json['Name'] == null ? undefined : json['Name'], 'audioFile': json['AudioFile'] == null ? undefined : json['AudioFile'], 'duration': json['Duration'] == null ? undefined : json['Duration'], 'title': json['Title'] == null ? undefined : json['Title'], 'artist': json['Artist'] == null ? undefined : json['Artist'], 'imageFile': json['ImageFile'] == null ? undefined : json['ImageFile'], 'fileHash': json['FileHash'] == null ? undefined : json['FileHash'], 'genreTracks': json['GenreTracks'] == null ? undefined : json['GenreTracks'], 'rating': json['Rating'] == null ? undefined : json['Rating'], }; } export function FeedPlaylistTrackToJSON(json: any): FeedPlaylistTrack { return FeedPlaylistTrackToJSONTyped(json, false); } export function FeedPlaylistTrackToJSONTyped(value?: FeedPlaylistTrack | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'TrackId': value['trackId'], 'Name': value['name'], 'AudioFile': value['audioFile'], 'Duration': value['duration'], 'Title': value['title'], 'Artist': value['artist'], 'ImageFile': value['imageFile'], 'FileHash': value['fileHash'], 'GenreTracks': value['genreTracks'], 'Rating': value['rating'], }; }