/* 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 ViewLog */ export interface ViewLog { /** * * @type {number} * @memberof ViewLog */ readonly id: number; /** * * @type {number} * @memberof ViewLog */ recipe: number; /** * * @type {number} * @memberof ViewLog */ readonly createdBy: number; /** * * @type {Date} * @memberof ViewLog */ readonly createdAt: Date; } export function ViewLogFromJSON(json: any): ViewLog { return ViewLogFromJSONTyped(json, false); } export function ViewLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): ViewLog { if ((json === undefined) || (json === null)) { return json; } return { 'id': json['id'], 'recipe': json['recipe'], 'createdBy': json['created_by'], 'createdAt': (new Date(json['created_at'])), }; } export function ViewLogToJSON(value?: ViewLog | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'recipe': value.recipe, }; }