mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 04:39:54 -05:00
78 lines
1.6 KiB
TypeScript
78 lines
1.6 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 { mapValues } from '../runtime';
|
|
/**
|
|
* Adds nested create feature
|
|
* @export
|
|
* @interface RecipeSimple
|
|
*/
|
|
export interface RecipeSimple {
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof RecipeSimple
|
|
*/
|
|
readonly id: number;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof RecipeSimple
|
|
*/
|
|
name: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof RecipeSimple
|
|
*/
|
|
readonly url: string;
|
|
}
|
|
|
|
/**
|
|
* Check if a given object implements the RecipeSimple interface.
|
|
*/
|
|
export function instanceOfRecipeSimple(value: object): boolean {
|
|
if (!('id' in value)) return false;
|
|
if (!('name' in value)) return false;
|
|
if (!('url' in value)) return false;
|
|
return true;
|
|
}
|
|
|
|
export function RecipeSimpleFromJSON(json: any): RecipeSimple {
|
|
return RecipeSimpleFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function RecipeSimpleFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecipeSimple {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
|
|
'id': json['id'],
|
|
'name': json['name'],
|
|
'url': json['url'],
|
|
};
|
|
}
|
|
|
|
export function RecipeSimpleToJSON(value?: Omit<RecipeSimple, 'id'|'url'> | null): any {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
|
|
'name': value['name'],
|
|
};
|
|
}
|
|
|