mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 20:28:46 -05:00
working search with flat endpoint
This commit is contained in:
73
vue3/src/openapi/models/KeywordLabel.ts
Normal file
73
vue3/src/openapi/models/KeywordLabel.ts
Normal file
@@ -0,0 +1,73 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* 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 KeywordLabel
|
||||
*/
|
||||
export interface KeywordLabel {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof KeywordLabel
|
||||
*/
|
||||
readonly id: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof KeywordLabel
|
||||
*/
|
||||
readonly label: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the KeywordLabel interface.
|
||||
*/
|
||||
export function instanceOfKeywordLabel(value: object): boolean {
|
||||
let isInstance = true;
|
||||
isInstance = isInstance && "id" in value;
|
||||
isInstance = isInstance && "label" in value;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function KeywordLabelFromJSON(json: any): KeywordLabel {
|
||||
return KeywordLabelFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function KeywordLabelFromJSONTyped(json: any, ignoreDiscriminator: boolean): KeywordLabel {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'],
|
||||
'label': json['label'],
|
||||
};
|
||||
}
|
||||
|
||||
export function KeywordLabelToJSON(value?: KeywordLabel | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user