mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-09 08:08:24 -05:00
regenerate fetch API
This commit is contained in:
77
vue3/models/RecipeFlat.ts
Normal file
77
vue3/models/RecipeFlat.ts
Normal file
@@ -0,0 +1,77 @@
|
||||
/* 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';
|
||||
/**
|
||||
* Adds nested create feature
|
||||
* @export
|
||||
* @interface RecipeFlat
|
||||
*/
|
||||
export interface RecipeFlat {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof RecipeFlat
|
||||
*/
|
||||
readonly id: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof RecipeFlat
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof RecipeFlat
|
||||
*/
|
||||
image?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the RecipeFlat interface.
|
||||
*/
|
||||
export function instanceOfRecipeFlat(value: object): boolean {
|
||||
if (!('id' in value)) return false;
|
||||
if (!('name' in value)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
export function RecipeFlatFromJSON(json: any): RecipeFlat {
|
||||
return RecipeFlatFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function RecipeFlatFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecipeFlat {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'],
|
||||
'name': json['name'],
|
||||
'image': json['image'] == null ? undefined : json['image'],
|
||||
};
|
||||
}
|
||||
|
||||
export function RecipeFlatToJSON(value?: Omit<RecipeFlat, 'id'> | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'name': value['name'],
|
||||
'image': value['image'],
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user