/* tslint:disable */ /* eslint-disable */ /** * ELEMENTS API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists, mapValues } from '../runtime'; import { Event, EventFromJSON, EventFromJSONTyped, EventToJSON, } from './'; /** * * @export * @interface InlineResponse2001 */ export interface InlineResponse2001 { /** * * @type {number} * @memberof InlineResponse2001 */ count: number; /** * * @type {string} * @memberof InlineResponse2001 */ next?: string | null; /** * * @type {string} * @memberof InlineResponse2001 */ previous?: string | null; /** * * @type {Array} * @memberof InlineResponse2001 */ results: Array; } export function InlineResponse2001FromJSON(json: any): InlineResponse2001 { return InlineResponse2001FromJSONTyped(json, false); } export function InlineResponse2001FromJSONTyped(json: any, ignoreDiscriminator: boolean): InlineResponse2001 { if ((json === undefined) || (json === null)) { return json; } return { 'count': json['count'], 'next': !exists(json, 'next') ? undefined : json['next'], 'previous': !exists(json, 'previous') ? undefined : json['previous'], 'results': ((json['results'] as Array).map(EventFromJSON)), }; } export function InlineResponse2001ToJSON(value?: InlineResponse2001 | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'count': value.count, 'next': value.next, 'previous': value.previous, 'results': ((value.results as Array).map(EventToJSON)), }; }