/* 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 { ImportLog } from './ImportLog'; import { ImportLogFromJSON, ImportLogFromJSONTyped, ImportLogToJSON, } from './ImportLog'; /** * * @export * @interface PaginatedImportLogList */ export interface PaginatedImportLogList { /** * * @type {number} * @memberof PaginatedImportLogList */ count: number; /** * * @type {string} * @memberof PaginatedImportLogList */ next?: string; /** * * @type {string} * @memberof PaginatedImportLogList */ previous?: string; /** * * @type {Array} * @memberof PaginatedImportLogList */ results: Array; /** * * @type {Date} * @memberof PaginatedImportLogList */ timestamp?: Date; } /** * Check if a given object implements the PaginatedImportLogList interface. */ export function instanceOfPaginatedImportLogList(value: object): value is PaginatedImportLogList { if (!('count' in value) || value['count'] === undefined) return false; if (!('results' in value) || value['results'] === undefined) return false; return true; } export function PaginatedImportLogListFromJSON(json: any): PaginatedImportLogList { return PaginatedImportLogListFromJSONTyped(json, false); } export function PaginatedImportLogListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedImportLogList { 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(ImportLogFromJSON)), 'timestamp': json['timestamp'] == null ? undefined : (new Date(json['timestamp'])), }; } export function PaginatedImportLogListToJSON(value?: PaginatedImportLogList | null): any { if (value == null) { return value; } return { 'count': value['count'], 'next': value['next'], 'previous': value['previous'], 'results': ((value['results'] as Array).map(ImportLogToJSON)), 'timestamp': value['timestamp'] == null ? undefined : ((value['timestamp']).toISOString()), }; }