mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 20:59:28 -05:00
servings
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
* Tandoor
|
||||
* Tandoor API Docs
|
||||
*
|
||||
* The version of the OpenAPI document: 0.0.0
|
||||
*
|
||||
@@ -13,18 +13,16 @@
|
||||
*/
|
||||
|
||||
import { exists, mapValues } from '../runtime';
|
||||
import type { Food } from './Food';
|
||||
import {
|
||||
Food,
|
||||
FoodFromJSON,
|
||||
FoodFromJSONTyped,
|
||||
FoodToJSON,
|
||||
} from './Food';
|
||||
import type { Unit } from './Unit';
|
||||
import {
|
||||
Unit,
|
||||
UnitFromJSON,
|
||||
UnitFromJSONTyped,
|
||||
UnitToJSON,
|
||||
} from './Unit';
|
||||
} from './';
|
||||
|
||||
/**
|
||||
* Adds nested create feature
|
||||
@@ -82,21 +80,6 @@ export interface UnitConversion {
|
||||
openDataSlug?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the UnitConversion interface.
|
||||
*/
|
||||
export function instanceOfUnitConversion(value: object): boolean {
|
||||
let isInstance = true;
|
||||
isInstance = isInstance && "id" in value;
|
||||
isInstance = isInstance && "name" in value;
|
||||
isInstance = isInstance && "baseAmount" in value;
|
||||
isInstance = isInstance && "baseUnit" in value;
|
||||
isInstance = isInstance && "convertedAmount" in value;
|
||||
isInstance = isInstance && "convertedUnit" in value;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function UnitConversionFromJSON(json: any): UnitConversion {
|
||||
return UnitConversionFromJSONTyped(json, false);
|
||||
}
|
||||
@@ -136,3 +119,4 @@ export function UnitConversionToJSON(value?: UnitConversion | null): any {
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user