Files
recipes/vue3/src/openapi/models/PaginatedExportLogList.ts
2024-02-29 20:08:37 +01:00

97 lines
2.5 KiB
TypeScript

/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* 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 { exists, 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 | null;
/**
*
* @type {string}
* @memberof PaginatedExportLogList
*/
previous?: string | null;
/**
*
* @type {Array<ExportLog>}
* @memberof PaginatedExportLogList
*/
results?: Array<ExportLog>;
}
/**
* Check if a given object implements the PaginatedExportLogList interface.
*/
export function instanceOfPaginatedExportLogList(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PaginatedExportLogListFromJSON(json: any): PaginatedExportLogList {
return PaginatedExportLogListFromJSONTyped(json, false);
}
export function PaginatedExportLogListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedExportLogList {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'count': !exists(json, 'count') ? undefined : json['count'],
'next': !exists(json, 'next') ? undefined : json['next'],
'previous': !exists(json, 'previous') ? undefined : json['previous'],
'results': !exists(json, 'results') ? undefined : ((json['results'] as Array<any>).map(ExportLogFromJSON)),
};
}
export function PaginatedExportLogListToJSON(value?: PaginatedExportLogList | 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 === undefined ? undefined : ((value.results as Array<any>).map(ExportLogToJSON)),
};
}