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

87 lines
2.0 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 PatchedRecipeBookEntry
*/
export interface PatchedRecipeBookEntry {
/**
*
* @type {number}
* @memberof PatchedRecipeBookEntry
*/
readonly id?: number;
/**
*
* @type {number}
* @memberof PatchedRecipeBookEntry
*/
book?: number;
/**
*
* @type {string}
* @memberof PatchedRecipeBookEntry
*/
readonly bookContent?: string;
/**
*
* @type {number}
* @memberof PatchedRecipeBookEntry
*/
recipe?: number;
/**
*
* @type {string}
* @memberof PatchedRecipeBookEntry
*/
readonly recipeContent?: string;
}
export function PatchedRecipeBookEntryFromJSON(json: any): PatchedRecipeBookEntry {
return PatchedRecipeBookEntryFromJSONTyped(json, false);
}
export function PatchedRecipeBookEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedRecipeBookEntry {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'id': !exists(json, 'id') ? undefined : json['id'],
'book': !exists(json, 'book') ? undefined : json['book'],
'bookContent': !exists(json, 'book_content') ? undefined : json['book_content'],
'recipe': !exists(json, 'recipe') ? undefined : json['recipe'],
'recipeContent': !exists(json, 'recipe_content') ? undefined : json['recipe_content'],
};
}
export function PatchedRecipeBookEntryToJSON(value?: PatchedRecipeBookEntry | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'book': value.book,
'recipe': value.recipe,
};
}