/* tslint:disable */ /* eslint-disable */ /** * Tandoor * Tandoor API Docs * * The version of the OpenAPI document: 0.0.0 * * * 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 { ExportLog } from './ExportLog'; import { ExportLogFromJSON, ExportLogFromJSONTyped, ExportLogToJSON, } from './ExportLog'; /** * * @export * @interface PaginatedExportLogList */ export interface PaginatedExportLogList { /** * * @type {number} * @memberof PaginatedExportLogList */ count: number; /** * * @type {string} * @memberof PaginatedExportLogList */ next?: string; /** * * @type {string} * @memberof PaginatedExportLogList */ previous?: string; /** * * @type {Array} * @memberof PaginatedExportLogList */ results: Array; /** * * @type {Date} * @memberof PaginatedExportLogList */ timestamp?: Date; } /** * Check if a given object implements the PaginatedExportLogList interface. */ export function instanceOfPaginatedExportLogList(value: object): value is PaginatedExportLogList { if (!('count' in value) || value['count'] === undefined) return false; if (!('results' in value) || value['results'] === undefined) return false; return true; } export function PaginatedExportLogListFromJSON(json: any): PaginatedExportLogList { return PaginatedExportLogListFromJSONTyped(json, false); } export function PaginatedExportLogListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedExportLogList { if (json == null) { return json; } return { 'count': json['count'], 'next': json['next'] == null ? undefined : json['next'], 'previous': json['previous'] == null ? undefined : json['previous'], 'results': ((json['results'] as Array).map(ExportLogFromJSON)), 'timestamp': json['timestamp'] == null ? undefined : (new Date(json['timestamp'])), }; } export function PaginatedExportLogListToJSON(value?: PaginatedExportLogList | null): any { if (value == null) { return value; } return { 'count': value['count'], 'next': value['next'], 'previous': value['previous'], 'results': ((value['results'] as Array).map(ExportLogToJSON)), 'timestamp': value['timestamp'] == null ? undefined : ((value['timestamp']).toISOString()), }; }