/* 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 { PlaylistFeedDTO } from './PlaylistFeedDTO'; import { PlaylistFeedDTOFromJSON, PlaylistFeedDTOFromJSONTyped, PlaylistFeedDTOToJSON, PlaylistFeedDTOToJSONTyped, } from './PlaylistFeedDTO'; import type { CalendarDay } from './CalendarDay'; import { CalendarDayFromJSON, CalendarDayFromJSONTyped, CalendarDayToJSON, CalendarDayToJSONTyped, } from './CalendarDay'; /** * * @export * @interface FeedClientDTO */ export interface FeedClientDTO { /** * * @type {number} * @memberof FeedClientDTO */ feedId?: number; /** * * @type {string} * @memberof FeedClientDTO */ duration?: string; /** * * @type {Date} * @memberof FeedClientDTO */ calendarDate?: Date | null; /** * * @type {string} * @memberof FeedClientDTO */ name: string; /** * * @type {string} * @memberof FeedClientDTO */ jsDate?: string | null; /** * * @type {CalendarDay} * @memberof FeedClientDTO */ calendarDay?: CalendarDay; /** * * @type {Array} * @memberof FeedClientDTO */ playlistFeeds?: Array | null; } /** * Check if a given object implements the FeedClientDTO interface. */ export function instanceOfFeedClientDTO(value: object): value is FeedClientDTO { if (!('name' in value) || value['name'] === undefined) return false; return true; } export function FeedClientDTOFromJSON(json: any): FeedClientDTO { return FeedClientDTOFromJSONTyped(json, false); } export function FeedClientDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeedClientDTO { if (json == null) { return json; } return { 'feedId': json['FeedId'] == null ? undefined : json['FeedId'], 'duration': json['Duration'] == null ? undefined : json['Duration'], 'calendarDate': json['CalendarDate'] == null ? undefined : (new Date(json['CalendarDate'])), 'name': json['Name'], 'jsDate': json['JsDate'] == null ? undefined : json['JsDate'], 'calendarDay': json['CalendarDay'] == null ? undefined : CalendarDayFromJSON(json['CalendarDay']), 'playlistFeeds': json['PlaylistFeeds'] == null ? undefined : ((json['PlaylistFeeds'] as Array).map(PlaylistFeedDTOFromJSON)), }; } export function FeedClientDTOToJSON(json: any): FeedClientDTO { return FeedClientDTOToJSONTyped(json, false); } export function FeedClientDTOToJSONTyped(value?: FeedClientDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'FeedId': value['feedId'], 'Duration': value['duration'], 'CalendarDate': value['calendarDate'] == null ? undefined : ((value['calendarDate'] as any).toISOString()), 'Name': value['name'], 'JsDate': value['jsDate'], 'CalendarDay': CalendarDayToJSON(value['calendarDay']), 'PlaylistFeeds': value['playlistFeeds'] == null ? undefined : ((value['playlistFeeds'] as Array).map(PlaylistFeedDTOToJSON)), }; }