mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 12:18:45 -05:00
102 lines
2.8 KiB
TypeScript
102 lines
2.8 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 { mapValues } from '../runtime';
|
|
import type { OpenDataConversion } from './OpenDataConversion';
|
|
import {
|
|
OpenDataConversionFromJSON,
|
|
OpenDataConversionFromJSONTyped,
|
|
OpenDataConversionToJSON,
|
|
} from './OpenDataConversion';
|
|
|
|
/**
|
|
*
|
|
* @export
|
|
* @interface PaginatedOpenDataConversionList
|
|
*/
|
|
export interface PaginatedOpenDataConversionList {
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof PaginatedOpenDataConversionList
|
|
*/
|
|
count: number;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof PaginatedOpenDataConversionList
|
|
*/
|
|
next?: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof PaginatedOpenDataConversionList
|
|
*/
|
|
previous?: string;
|
|
/**
|
|
*
|
|
* @type {Array<OpenDataConversion>}
|
|
* @memberof PaginatedOpenDataConversionList
|
|
*/
|
|
results: Array<OpenDataConversion>;
|
|
/**
|
|
*
|
|
* @type {Date}
|
|
* @memberof PaginatedOpenDataConversionList
|
|
*/
|
|
timestamp?: Date;
|
|
}
|
|
|
|
/**
|
|
* Check if a given object implements the PaginatedOpenDataConversionList interface.
|
|
*/
|
|
export function instanceOfPaginatedOpenDataConversionList(value: object): value is PaginatedOpenDataConversionList {
|
|
if (!('count' in value) || value['count'] === undefined) return false;
|
|
if (!('results' in value) || value['results'] === undefined) return false;
|
|
return true;
|
|
}
|
|
|
|
export function PaginatedOpenDataConversionListFromJSON(json: any): PaginatedOpenDataConversionList {
|
|
return PaginatedOpenDataConversionListFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function PaginatedOpenDataConversionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedOpenDataConversionList {
|
|
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<any>).map(OpenDataConversionFromJSON)),
|
|
'timestamp': json['timestamp'] == null ? undefined : (new Date(json['timestamp'])),
|
|
};
|
|
}
|
|
|
|
export function PaginatedOpenDataConversionListToJSON(value?: PaginatedOpenDataConversionList | null): any {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
|
|
'count': value['count'],
|
|
'next': value['next'],
|
|
'previous': value['previous'],
|
|
'results': ((value['results'] as Array<any>).map(OpenDataConversionToJSON)),
|
|
'timestamp': value['timestamp'] == null ? undefined : ((value['timestamp']).toISOString()),
|
|
};
|
|
}
|
|
|