mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 04:39:54 -05:00
working search with flat endpoint
This commit is contained in:
65
vue3/src/openapi/models/OpenDataUnitBaseUnit.ts
Normal file
65
vue3/src/openapi/models/OpenDataUnitBaseUnit.ts
Normal file
@@ -0,0 +1,65 @@
|
||||
/* 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 type { BaseUnitEnum } from './BaseUnitEnum';
|
||||
import {
|
||||
instanceOfBaseUnitEnum,
|
||||
BaseUnitEnumFromJSON,
|
||||
BaseUnitEnumFromJSONTyped,
|
||||
BaseUnitEnumToJSON,
|
||||
} from './BaseUnitEnum';
|
||||
import type { BlankEnum } from './BlankEnum';
|
||||
import {
|
||||
instanceOfBlankEnum,
|
||||
BlankEnumFromJSON,
|
||||
BlankEnumFromJSONTyped,
|
||||
BlankEnumToJSON,
|
||||
} from './BlankEnum';
|
||||
|
||||
/**
|
||||
* @type OpenDataUnitBaseUnit
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export type OpenDataUnitBaseUnit = BaseUnitEnum | BlankEnum;
|
||||
|
||||
export function OpenDataUnitBaseUnitFromJSON(json: any): OpenDataUnitBaseUnit {
|
||||
return OpenDataUnitBaseUnitFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function OpenDataUnitBaseUnitFromJSONTyped(json: any, ignoreDiscriminator: boolean): OpenDataUnitBaseUnit {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return { ...BaseUnitEnumFromJSONTyped(json, true), ...BlankEnumFromJSONTyped(json, true) };
|
||||
}
|
||||
|
||||
export function OpenDataUnitBaseUnitToJSON(value?: OpenDataUnitBaseUnit | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (instanceOfBaseUnitEnum(value)) {
|
||||
return BaseUnitEnumToJSON(value as BaseUnitEnum);
|
||||
}
|
||||
if (instanceOfBlankEnum(value)) {
|
||||
return BlankEnumToJSON(value as BlankEnum);
|
||||
}
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user