/* 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 TrackPublishedGetResponse */ export interface TrackPublishedGetResponse { /** * * @type {number} * @memberof TrackPublishedGetResponse */ trackId?: number; /** * * @type {string} * @memberof TrackPublishedGetResponse */ title?: string | null; /** * * @type {string} * @memberof TrackPublishedGetResponse */ artist?: string | null; /** * * @type {string} * @memberof TrackPublishedGetResponse */ album?: string | null; /** * * @type {number} * @memberof TrackPublishedGetResponse */ ownerId?: number; /** * * @type {string} * @memberof TrackPublishedGetResponse */ ownerName?: string | null; /** * * @type {string} * @memberof TrackPublishedGetResponse */ ownerContainer?: string | null; /** * * @type {string} * @memberof TrackPublishedGetResponse */ name?: string | null; /** * * @type {string} * @memberof TrackPublishedGetResponse */ fileHash?: string | null; /** * * @type {number} * @memberof TrackPublishedGetResponse */ rating?: number; /** * * @type {string} * @memberof TrackPublishedGetResponse */ audioFile?: string | null; /** * * @type {string} * @memberof TrackPublishedGetResponse */ duration?: string; /** * * @type {string} * @memberof TrackPublishedGetResponse */ imageFile?: string | null; /** * * @type {Array} * @memberof TrackPublishedGetResponse */ genreTracks?: Array | null; } /** * Check if a given object implements the TrackPublishedGetResponse interface. */ export function instanceOfTrackPublishedGetResponse(value: object): value is TrackPublishedGetResponse { return true; } export function TrackPublishedGetResponseFromJSON(json: any): TrackPublishedGetResponse { return TrackPublishedGetResponseFromJSONTyped(json, false); } export function TrackPublishedGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrackPublishedGetResponse { if (json == null) { return json; } return { 'trackId': json['TrackId'] == null ? undefined : json['TrackId'], 'title': json['Title'] == null ? undefined : json['Title'], 'artist': json['Artist'] == null ? undefined : json['Artist'], 'album': json['Album'] == null ? undefined : json['Album'], 'ownerId': json['OwnerId'] == null ? undefined : json['OwnerId'], 'ownerName': json['OwnerName'] == null ? undefined : json['OwnerName'], 'ownerContainer': json['OwnerContainer'] == null ? undefined : json['OwnerContainer'], 'name': json['Name'] == null ? undefined : json['Name'], 'fileHash': json['FileHash'] == null ? undefined : json['FileHash'], 'rating': json['Rating'] == null ? undefined : json['Rating'], 'audioFile': json['AudioFile'] == null ? undefined : json['AudioFile'], 'duration': json['Duration'] == null ? undefined : json['Duration'], 'imageFile': json['ImageFile'] == null ? undefined : json['ImageFile'], 'genreTracks': json['GenreTracks'] == null ? undefined : json['GenreTracks'], }; } export function TrackPublishedGetResponseToJSON(json: any): TrackPublishedGetResponse { return TrackPublishedGetResponseToJSONTyped(json, false); } export function TrackPublishedGetResponseToJSONTyped(value?: TrackPublishedGetResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'TrackId': value['trackId'], 'Title': value['title'], 'Artist': value['artist'], 'Album': value['album'], 'OwnerId': value['ownerId'], 'OwnerName': value['ownerName'], 'OwnerContainer': value['ownerContainer'], 'Name': value['name'], 'FileHash': value['fileHash'], 'Rating': value['rating'], 'AudioFile': value['audioFile'], 'Duration': value['duration'], 'ImageFile': value['imageFile'], 'GenreTracks': value['genreTracks'], }; }