/* 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'; import type { TrackIndexResponseData } from './TrackIndexResponseData'; import { TrackIndexResponseDataFromJSON, TrackIndexResponseDataFromJSONTyped, TrackIndexResponseDataToJSON, TrackIndexResponseDataToJSONTyped, } from './TrackIndexResponseData'; /** * * @export * @interface TrackIndexResponse */ export interface TrackIndexResponse { /** * * @type {number} * @memberof TrackIndexResponse */ limit?: number; /** * * @type {number} * @memberof TrackIndexResponse */ offset?: number | null; /** * * @type {Array} * @memberof TrackIndexResponse */ data?: Array | null; } /** * Check if a given object implements the TrackIndexResponse interface. */ export function instanceOfTrackIndexResponse(value: object): value is TrackIndexResponse { return true; } export function TrackIndexResponseFromJSON(json: any): TrackIndexResponse { return TrackIndexResponseFromJSONTyped(json, false); } export function TrackIndexResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrackIndexResponse { if (json == null) { return json; } return { 'limit': json['limit'] == null ? undefined : json['limit'], 'offset': json['offset'] == null ? undefined : json['offset'], 'data': json['data'] == null ? undefined : ((json['data'] as Array).map(TrackIndexResponseDataFromJSON)), }; } export function TrackIndexResponseToJSON(json: any): TrackIndexResponse { return TrackIndexResponseToJSONTyped(json, false); } export function TrackIndexResponseToJSONTyped(value?: TrackIndexResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'limit': value['limit'], 'offset': value['offset'], 'data': value['data'] == null ? undefined : ((value['data'] as Array).map(TrackIndexResponseDataToJSON)), }; }