/* 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 { Selection } from './Selection'; import { SelectionFromJSON, SelectionFromJSONTyped, SelectionToJSON, SelectionToJSONTyped, } from './Selection'; import type { Track } from './Track'; import { TrackFromJSON, TrackFromJSONTyped, TrackToJSON, TrackToJSONTyped, } from './Track'; /** * * @export * @interface TrackSelection */ export interface TrackSelection { /** * * @type {number} * @memberof TrackSelection */ trackId?: number; /** * * @type {Track} * @memberof TrackSelection */ track?: Track; /** * * @type {number} * @memberof TrackSelection */ selectionId?: number; /** * * @type {Selection} * @memberof TrackSelection */ selection?: Selection; /** * * @type {number} * @memberof TrackSelection */ index?: number; } /** * Check if a given object implements the TrackSelection interface. */ export function instanceOfTrackSelection(value: object): value is TrackSelection { return true; } export function TrackSelectionFromJSON(json: any): TrackSelection { return TrackSelectionFromJSONTyped(json, false); } export function TrackSelectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrackSelection { if (json == null) { return json; } return { 'trackId': json['TrackId'] == null ? undefined : json['TrackId'], 'track': json['Track'] == null ? undefined : TrackFromJSON(json['Track']), 'selectionId': json['SelectionId'] == null ? undefined : json['SelectionId'], 'selection': json['Selection'] == null ? undefined : SelectionFromJSON(json['Selection']), 'index': json['Index'] == null ? undefined : json['Index'], }; } export function TrackSelectionToJSON(json: any): TrackSelection { return TrackSelectionToJSONTyped(json, false); } export function TrackSelectionToJSONTyped(value?: TrackSelection | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'TrackId': value['trackId'], 'Track': TrackToJSON(value['track']), 'SelectionId': value['selectionId'], 'Selection': SelectionToJSON(value['selection']), 'Index': value['index'], }; }