/* tslint:disable */ /* eslint-disable */ // @ts-nocheck /** * Audius API * * The version of the OpenAPI document: 1.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 { exists, mapValues } from '../runtime'; import type { TrackId } from './TrackId'; import { TrackIdFromJSON, TrackIdFromJSONTyped, TrackIdToJSON, } from './TrackId'; /** * * @export * @interface TrendingTimesIds */ export interface TrendingTimesIds { /** * * @type {Array} * @memberof TrendingTimesIds */ week?: Array; /** * * @type {Array} * @memberof TrendingTimesIds */ month?: Array; /** * * @type {Array} * @memberof TrendingTimesIds */ year?: Array; } /** * Check if a given object implements the TrendingTimesIds interface. */ export function instanceOfTrendingTimesIds(value: object): value is TrendingTimesIds { let isInstance = true; return isInstance; } export function TrendingTimesIdsFromJSON(json: any): TrendingTimesIds { return TrendingTimesIdsFromJSONTyped(json, false); } export function TrendingTimesIdsFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrendingTimesIds { if ((json === undefined) || (json === null)) { return json; } return { 'week': !exists(json, 'week') ? undefined : ((json['week'] as Array).map(TrackIdFromJSON)), 'month': !exists(json, 'month') ? undefined : ((json['month'] as Array).map(TrackIdFromJSON)), 'year': !exists(json, 'year') ? undefined : ((json['year'] as Array).map(TrackIdFromJSON)), }; } export function TrendingTimesIdsToJSON(value?: TrendingTimesIds | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'week': value.week === undefined ? undefined : ((value.week as Array).map(TrackIdToJSON)), 'month': value.month === undefined ? undefined : ((value.month as Array).map(TrackIdToJSON)), 'year': value.year === undefined ? undefined : ((value.year as Array).map(TrackIdToJSON)), }; }