/* 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 { Queue, QueueFromJSON, QueueFromJSONTyped, QueueToJSON, } from './'; /** * * @export * @interface InlineResponse2002 */ export interface InlineResponse2002 { /** * * @type {number} * @memberof InlineResponse2002 */ count: number; /** * * @type {string} * @memberof InlineResponse2002 */ next?: string | null; /** * * @type {string} * @memberof InlineResponse2002 */ previous?: string | null; /** * * @type {Array} * @memberof InlineResponse2002 */ results: Array; } export function InlineResponse2002FromJSON(json: any): InlineResponse2002 { return InlineResponse2002FromJSONTyped(json, false); } export function InlineResponse2002FromJSONTyped(json: any, ignoreDiscriminator: boolean): InlineResponse2002 { 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(QueueFromJSON)), }; } export function InlineResponse2002ToJSON(value?: InlineResponse2002 | 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(QueueToJSON)), }; }