/* 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'; /** * * @export * @interface PatchedRecipeBookEntryRequest */ export interface PatchedRecipeBookEntryRequest { /** * * @type {number} * @memberof PatchedRecipeBookEntryRequest */ book?: number; /** * * @type {number} * @memberof PatchedRecipeBookEntryRequest */ recipe?: number; /** * * @type {number} * @memberof PatchedRecipeBookEntryRequest */ id?: number; } /** * Check if a given object implements the PatchedRecipeBookEntryRequest interface. */ export function instanceOfPatchedRecipeBookEntryRequest(value: object): boolean { return true; } export function PatchedRecipeBookEntryRequestFromJSON(json: any): PatchedRecipeBookEntryRequest { return PatchedRecipeBookEntryRequestFromJSONTyped(json, false); } export function PatchedRecipeBookEntryRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedRecipeBookEntryRequest { if (json == null) { return json; } return { 'book': json['book'] == null ? undefined : json['book'], 'recipe': json['recipe'] == null ? undefined : json['recipe'], 'id': json['id'] == null ? undefined : json['id'], }; } export function PatchedRecipeBookEntryRequestToJSON(value?: PatchedRecipeBookEntryRequest | null): any { if (value == null) { return value; } return { 'book': value['book'], 'recipe': value['recipe'], 'id': value['id'], }; }