Files
recipes/vue3/src/openapi/models/PaginatedSyncLogList.ts
vabene1111 c0c71c3967 servings
2024-03-05 17:16:07 +01:00

89 lines
2.1 KiB
TypeScript

/* 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 { exists, mapValues } from '../runtime';
import {
SyncLog,
SyncLogFromJSON,
SyncLogFromJSONTyped,
SyncLogToJSON,
} from './';
/**
*
* @export
* @interface PaginatedSyncLogList
*/
export interface PaginatedSyncLogList {
/**
*
* @type {number}
* @memberof PaginatedSyncLogList
*/
count?: number;
/**
*
* @type {string}
* @memberof PaginatedSyncLogList
*/
next?: string | null;
/**
*
* @type {string}
* @memberof PaginatedSyncLogList
*/
previous?: string | null;
/**
*
* @type {Array<SyncLog>}
* @memberof PaginatedSyncLogList
*/
results?: Array<SyncLog>;
}
export function PaginatedSyncLogListFromJSON(json: any): PaginatedSyncLogList {
return PaginatedSyncLogListFromJSONTyped(json, false);
}
export function PaginatedSyncLogListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSyncLogList {
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(SyncLogFromJSON)),
};
}
export function PaginatedSyncLogListToJSON(value?: PaginatedSyncLogList | 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(SyncLogToJSON)),
};
}