1
0
mirror of https://github.com/TandoorRecipes/recipes.git synced 2026-01-11 09:07:12 -05:00

search tweaking

This commit is contained in:
vabene1111
2024-02-28 21:18:45 +01:00
committed by smilerz
parent 761b974aa5
commit 58d1c94b79
17 changed files with 1023 additions and 766 deletions

View File

@@ -0,0 +1,81 @@
/* tslint:disable */
/* eslint-disable */
/**
* Django Recipes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* 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 RecipeFlat
*/
export interface RecipeFlat {
/**
*
* @type {number}
* @memberof RecipeFlat
*/
readonly id?: number;
/**
*
* @type {string}
* @memberof RecipeFlat
*/
name: string;
/**
*
* @type {Blob}
* @memberof RecipeFlat
*/
image?: Blob | null;
}
/**
* Check if a given object implements the RecipeFlat interface.
*/
export function instanceOfRecipeFlat(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "name" in value;
return isInstance;
}
export function RecipeFlatFromJSON(json: any): RecipeFlat {
return RecipeFlatFromJSONTyped(json, false);
}
export function RecipeFlatFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecipeFlat {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'id': !exists(json, 'id') ? undefined : json['id'],
'name': json['name'],
'image': !exists(json, 'image') ? undefined : json['image'],
};
}
export function RecipeFlatToJSON(value?: RecipeFlat | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'name': value.name,
'image': value.image,
};
}