mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 20:28:46 -05:00
63 lines
1.5 KiB
TypeScript
63 lines
1.5 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 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 == null) {
|
|
return json;
|
|
}
|
|
return { ...BaseUnitEnumFromJSONTyped(json, true), ...BlankEnumFromJSONTyped(json, true) };
|
|
}
|
|
|
|
export function OpenDataUnitBaseUnitToJSON(value?: OpenDataUnitBaseUnit | null): any {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
|
|
if (instanceOfBaseUnitEnum(value)) {
|
|
return BaseUnitEnumToJSON(value as BaseUnitEnum);
|
|
}
|
|
if (instanceOfBlankEnum(value)) {
|
|
return BlankEnumToJSON(value as BlankEnum);
|
|
}
|
|
|
|
return {};
|
|
}
|
|
|