/* 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 { Playlist } from './Playlist'; import { PlaylistFromJSON, PlaylistFromJSONTyped, PlaylistToJSON, PlaylistToJSONTyped, } from './Playlist'; import type { Feed } from './Feed'; import { FeedFromJSON, FeedFromJSONTyped, FeedToJSON, FeedToJSONTyped, } from './Feed'; /** * * @export * @interface PlaylistFeed */ export interface PlaylistFeed { /** * * @type {number} * @memberof PlaylistFeed */ playListId?: number; /** * * @type {Playlist} * @memberof PlaylistFeed */ playlist?: Playlist; /** * * @type {number} * @memberof PlaylistFeed */ feedId?: number; /** * * @type {Feed} * @memberof PlaylistFeed */ feed?: Feed; /** * * @type {number} * @memberof PlaylistFeed */ index?: number; /** * * @type {boolean} * @memberof PlaylistFeed */ active?: boolean; /** * * @type {boolean} * @memberof PlaylistFeed */ shuffle?: boolean; } /** * Check if a given object implements the PlaylistFeed interface. */ export function instanceOfPlaylistFeed(value: object): value is PlaylistFeed { return true; } export function PlaylistFeedFromJSON(json: any): PlaylistFeed { return PlaylistFeedFromJSONTyped(json, false); } export function PlaylistFeedFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaylistFeed { if (json == null) { return json; } return { 'playListId': json['PlayListId'] == null ? undefined : json['PlayListId'], 'playlist': json['Playlist'] == null ? undefined : PlaylistFromJSON(json['Playlist']), 'feedId': json['FeedId'] == null ? undefined : json['FeedId'], 'feed': json['Feed'] == null ? undefined : FeedFromJSON(json['Feed']), 'index': json['Index'] == null ? undefined : json['Index'], 'active': json['Active'] == null ? undefined : json['Active'], 'shuffle': json['Shuffle'] == null ? undefined : json['Shuffle'], }; } export function PlaylistFeedToJSON(json: any): PlaylistFeed { return PlaylistFeedToJSONTyped(json, false); } export function PlaylistFeedToJSONTyped(value?: PlaylistFeed | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'PlayListId': value['playListId'], 'Playlist': PlaylistToJSON(value['playlist']), 'FeedId': value['feedId'], 'Feed': FeedToJSON(value['feed']), 'Index': value['index'], 'Active': value['active'], 'Shuffle': value['shuffle'], }; }