/* 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 AudioMetadataBlockAttributesSong */ export interface AudioMetadataBlockAttributesSong { /** * * @type {string} * @memberof AudioMetadataBlockAttributesSong */ 'title'?: string | null; /** * * @type {string} * @memberof AudioMetadataBlockAttributesSong */ 'artist'?: string | null; /** * * @type {string} * @memberof AudioMetadataBlockAttributesSong */ 'album'?: string | null; /** * * @type {string} * @memberof AudioMetadataBlockAttributesSong */ 'genre'?: string | null; } /** * Check if a given object implements the AudioMetadataBlockAttributesSong interface. */ export function instanceOfAudioMetadataBlockAttributesSong(value: object): value is AudioMetadataBlockAttributesSong { return true; } export function AudioMetadataBlockAttributesSongFromJSON(json: any): AudioMetadataBlockAttributesSong { return AudioMetadataBlockAttributesSongFromJSONTyped(json, false); } export function AudioMetadataBlockAttributesSongFromJSONTyped(json: any, ignoreDiscriminator: boolean): AudioMetadataBlockAttributesSong { if (json == null) { return json; } const result = { } as AudioMetadataBlockAttributesSong; if (json['title'] !== undefined) { if (json['title'] === null) { result['title'] = null; } else { result['title'] = json['title']; } } if (json['artist'] !== undefined) { if (json['artist'] === null) { result['artist'] = null; } else { result['artist'] = json['artist']; } } if (json['album'] !== undefined) { if (json['album'] === null) { result['album'] = null; } else { result['album'] = json['album']; } } if (json['genre'] !== undefined) { if (json['genre'] === null) { result['genre'] = null; } else { result['genre'] = json['genre']; } } return result; } export function AudioMetadataBlockAttributesSongToJSON(json: any): AudioMetadataBlockAttributesSong { return AudioMetadataBlockAttributesSongToJSONTyped(json, false); } export function AudioMetadataBlockAttributesSongToJSONTyped(value?: AudioMetadataBlockAttributesSong | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'title': value['title'], 'artist': value['artist'], 'album': value['album'], 'genre': value['genre'], }; }