/* 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 { Genre } from './Genre'; import { GenreFromJSON, GenreFromJSONTyped, GenreToJSON, GenreToJSONTyped, } from './Genre'; /** * * @export * @interface GenreSelection */ export interface GenreSelection { /** * * @type {number} * @memberof GenreSelection */ genreId?: number; /** * * @type {Genre} * @memberof GenreSelection */ genre?: Genre; /** * * @type {number} * @memberof GenreSelection */ selectionId?: number; /** * * @type {Selection} * @memberof GenreSelection */ selection?: Selection; } /** * Check if a given object implements the GenreSelection interface. */ export function instanceOfGenreSelection(value: object): value is GenreSelection { return true; } export function GenreSelectionFromJSON(json: any): GenreSelection { return GenreSelectionFromJSONTyped(json, false); } export function GenreSelectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GenreSelection { if (json == null) { return json; } return { 'genreId': json['GenreId'] == null ? undefined : json['GenreId'], 'genre': json['Genre'] == null ? undefined : GenreFromJSON(json['Genre']), 'selectionId': json['SelectionId'] == null ? undefined : json['SelectionId'], 'selection': json['Selection'] == null ? undefined : SelectionFromJSON(json['Selection']), }; } export function GenreSelectionToJSON(json: any): GenreSelection { return GenreSelectionToJSONTyped(json, false); } export function GenreSelectionToJSONTyped(value?: GenreSelection | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'GenreId': value['genreId'], 'Genre': GenreToJSON(value['genre']), 'SelectionId': value['selectionId'], 'Selection': SelectionToJSON(value['selection']), }; }