mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2025-12-24 02:39:20 -05:00
87 lines
1.9 KiB
TypeScript
87 lines
1.9 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';
|
|
/**
|
|
*
|
|
* @export
|
|
* @interface PatchedViewLog
|
|
*/
|
|
export interface PatchedViewLog {
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof PatchedViewLog
|
|
*/
|
|
readonly id?: number;
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof PatchedViewLog
|
|
*/
|
|
recipe?: number;
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof PatchedViewLog
|
|
*/
|
|
readonly createdBy?: number;
|
|
/**
|
|
*
|
|
* @type {Date}
|
|
* @memberof PatchedViewLog
|
|
*/
|
|
readonly createdAt?: Date;
|
|
}
|
|
|
|
/**
|
|
* Check if a given object implements the PatchedViewLog interface.
|
|
*/
|
|
export function instanceOfPatchedViewLog(value: object): boolean {
|
|
let isInstance = true;
|
|
|
|
return isInstance;
|
|
}
|
|
|
|
export function PatchedViewLogFromJSON(json: any): PatchedViewLog {
|
|
return PatchedViewLogFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function PatchedViewLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedViewLog {
|
|
if ((json === undefined) || (json === null)) {
|
|
return json;
|
|
}
|
|
return {
|
|
|
|
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
'recipe': !exists(json, 'recipe') ? undefined : json['recipe'],
|
|
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
|
'createdAt': !exists(json, 'created_at') ? undefined : (new Date(json['created_at'])),
|
|
};
|
|
}
|
|
|
|
export function PatchedViewLogToJSON(value?: PatchedViewLog | null): any {
|
|
if (value === undefined) {
|
|
return undefined;
|
|
}
|
|
if (value === null) {
|
|
return null;
|
|
}
|
|
return {
|
|
|
|
'recipe': value.recipe,
|
|
};
|
|
}
|
|
|