/* 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'; /** * * @export * @interface PlaylistGetGenre */ export interface PlaylistGetGenre { /** * * @type {number} * @memberof PlaylistGetGenre */ genreId?: number; /** * * @type {string} * @memberof PlaylistGetGenre */ name?: string | null; } /** * Check if a given object implements the PlaylistGetGenre interface. */ export function instanceOfPlaylistGetGenre(value: object): value is PlaylistGetGenre { return true; } export function PlaylistGetGenreFromJSON(json: any): PlaylistGetGenre { return PlaylistGetGenreFromJSONTyped(json, false); } export function PlaylistGetGenreFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaylistGetGenre { if (json == null) { return json; } return { 'genreId': json['GenreId'] == null ? undefined : json['GenreId'], 'name': json['Name'] == null ? undefined : json['Name'], }; } export function PlaylistGetGenreToJSON(json: any): PlaylistGetGenre { return PlaylistGetGenreToJSONTyped(json, false); } export function PlaylistGetGenreToJSONTyped(value?: PlaylistGetGenre | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'GenreId': value['genreId'], 'Name': value['name'], }; }