/* 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 { TimeOfDay } from './TimeOfDay'; import { TimeOfDayFromJSON, TimeOfDayFromJSONTyped, TimeOfDayToJSON, TimeOfDayToJSONTyped, } from './TimeOfDay'; /** * * @export * @interface SelectionIndexResponse */ export interface SelectionIndexResponse { /** * * @type {number} * @memberof SelectionIndexResponse */ selectionId?: number; /** * * @type {string} * @memberof SelectionIndexResponse */ name?: string | null; /** * * @type {number} * @memberof SelectionIndexResponse */ count?: number; /** * * @type {string} * @memberof SelectionIndexResponse */ duration?: string; /** * * @type {TimeOfDay} * @memberof SelectionIndexResponse */ timeOfDay?: TimeOfDay; /** * * @type {Date} * @memberof SelectionIndexResponse */ createDate?: Date; /** * * @type {Array} * @memberof SelectionIndexResponse */ companyTypeSelections?: Array | null; /** * * @type {Array} * @memberof SelectionIndexResponse */ genreSelections?: Array | null; /** * * @type {number} * @memberof SelectionIndexResponse */ rating?: number; /** * * @type {string} * @memberof SelectionIndexResponse */ imageFile?: string | null; /** * * @type {number} * @memberof SelectionIndexResponse */ views?: number; } /** * Check if a given object implements the SelectionIndexResponse interface. */ export function instanceOfSelectionIndexResponse(value: object): value is SelectionIndexResponse { return true; } export function SelectionIndexResponseFromJSON(json: any): SelectionIndexResponse { return SelectionIndexResponseFromJSONTyped(json, false); } export function SelectionIndexResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SelectionIndexResponse { if (json == null) { return json; } return { 'selectionId': json['SelectionId'] == null ? undefined : json['SelectionId'], 'name': json['Name'] == null ? undefined : json['Name'], 'count': json['Count'] == null ? undefined : json['Count'], 'duration': json['Duration'] == null ? undefined : json['Duration'], 'timeOfDay': json['TimeOfDay'] == null ? undefined : TimeOfDayFromJSON(json['TimeOfDay']), 'createDate': json['CreateDate'] == null ? undefined : (new Date(json['CreateDate'])), 'companyTypeSelections': json['CompanyTypeSelections'] == null ? undefined : json['CompanyTypeSelections'], 'genreSelections': json['GenreSelections'] == null ? undefined : json['GenreSelections'], 'rating': json['Rating'] == null ? undefined : json['Rating'], 'imageFile': json['ImageFile'] == null ? undefined : json['ImageFile'], 'views': json['Views'] == null ? undefined : json['Views'], }; } export function SelectionIndexResponseToJSON(json: any): SelectionIndexResponse { return SelectionIndexResponseToJSONTyped(json, false); } export function SelectionIndexResponseToJSONTyped(value?: SelectionIndexResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'SelectionId': value['selectionId'], 'Name': value['name'], 'Count': value['count'], 'Duration': value['duration'], 'TimeOfDay': TimeOfDayToJSON(value['timeOfDay']), 'CreateDate': value['createDate'] == null ? undefined : ((value['createDate']).toISOString()), 'CompanyTypeSelections': value['companyTypeSelections'], 'GenreSelections': value['genreSelections'], 'Rating': value['rating'], 'ImageFile': value['imageFile'], 'Views': value['views'], }; }