mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
97 lines
2.5 KiB
TypeScript
97 lines
2.5 KiB
TypeScript
/* tslint:disable */
|
|
/* eslint-disable */
|
|
/**
|
|
* Django Recipes
|
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
*
|
|
* The version of the OpenAPI document:
|
|
*
|
|
*
|
|
* 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 { ViewLog } from './ViewLog';
|
|
import {
|
|
ViewLogFromJSON,
|
|
ViewLogFromJSONTyped,
|
|
ViewLogToJSON,
|
|
} from './ViewLog';
|
|
|
|
/**
|
|
*
|
|
* @export
|
|
* @interface ListViewLogs200Response
|
|
*/
|
|
export interface ListViewLogs200Response {
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof ListViewLogs200Response
|
|
*/
|
|
count?: number;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof ListViewLogs200Response
|
|
*/
|
|
next?: string | null;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof ListViewLogs200Response
|
|
*/
|
|
previous?: string | null;
|
|
/**
|
|
*
|
|
* @type {Array<ViewLog>}
|
|
* @memberof ListViewLogs200Response
|
|
*/
|
|
results?: Array<ViewLog>;
|
|
}
|
|
|
|
/**
|
|
* Check if a given object implements the ListViewLogs200Response interface.
|
|
*/
|
|
export function instanceOfListViewLogs200Response(value: object): boolean {
|
|
let isInstance = true;
|
|
|
|
return isInstance;
|
|
}
|
|
|
|
export function ListViewLogs200ResponseFromJSON(json: any): ListViewLogs200Response {
|
|
return ListViewLogs200ResponseFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function ListViewLogs200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListViewLogs200Response {
|
|
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(ViewLogFromJSON)),
|
|
};
|
|
}
|
|
|
|
export function ListViewLogs200ResponseToJSON(value?: ListViewLogs200Response | 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(ViewLogToJSON)),
|
|
};
|
|
}
|
|
|