/* tslint:disable */ /* eslint-disable */ /** * Fabric API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * 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 SpotifyMetadata */ export interface SpotifyMetadata { /** * * @type {string} * @memberof SpotifyMetadata */ 'track': string | null; /** * * @type {string} * @memberof SpotifyMetadata */ 'artist': string | null; /** * * @type {string} * @memberof SpotifyMetadata */ 'audio': string | null; /** * * @type {string} * @memberof SpotifyMetadata */ 'embed': string | null; } /** * Check if a given object implements the SpotifyMetadata interface. */ export function instanceOfSpotifyMetadata(value: object): value is SpotifyMetadata { if (!('track' in value) || value['track'] === undefined) return false; if (!('artist' in value) || value['artist'] === undefined) return false; if (!('audio' in value) || value['audio'] === undefined) return false; if (!('embed' in value) || value['embed'] === undefined) return false; return true; } export function SpotifyMetadataFromJSON(json: any): SpotifyMetadata { return SpotifyMetadataFromJSONTyped(json, false); } export function SpotifyMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SpotifyMetadata { if (json == null) { return json; } const result = { } as SpotifyMetadata; if (json['track'] !== undefined) { if (json['track'] === null) { result['track'] = null; } else { result['track'] = json['track']; } } if (json['artist'] !== undefined) { if (json['artist'] === null) { result['artist'] = null; } else { result['artist'] = json['artist']; } } if (json['audio'] !== undefined) { if (json['audio'] === null) { result['audio'] = null; } else { result['audio'] = json['audio']; } } if (json['embed'] !== undefined) { if (json['embed'] === null) { result['embed'] = null; } else { result['embed'] = json['embed']; } } return result; } export function SpotifyMetadataToJSON(json: any): SpotifyMetadata { return SpotifyMetadataToJSONTyped(json, false); } export function SpotifyMetadataToJSONTyped(value?: SpotifyMetadata | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'track': value['track'], 'artist': value['artist'], 'audio': value['audio'], 'embed': value['embed'], }; }