mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 04:39:54 -05:00
posprocessing hook for DRF
This commit is contained in:
145
vue3/src/openapi/models/PatchedIngredientRequest.ts
Normal file
145
vue3/src/openapi/models/PatchedIngredientRequest.ts
Normal file
@@ -0,0 +1,145 @@
|
||||
/* 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';
|
||||
import type { FoodRequest } from './FoodRequest';
|
||||
import {
|
||||
FoodRequestFromJSON,
|
||||
FoodRequestFromJSONTyped,
|
||||
FoodRequestToJSON,
|
||||
} from './FoodRequest';
|
||||
import type { UnitRequest } from './UnitRequest';
|
||||
import {
|
||||
UnitRequestFromJSON,
|
||||
UnitRequestFromJSONTyped,
|
||||
UnitRequestToJSON,
|
||||
} from './UnitRequest';
|
||||
|
||||
/**
|
||||
* Adds nested create feature
|
||||
* @export
|
||||
* @interface PatchedIngredientRequest
|
||||
*/
|
||||
export interface PatchedIngredientRequest {
|
||||
/**
|
||||
*
|
||||
* @type {FoodRequest}
|
||||
* @memberof PatchedIngredientRequest
|
||||
*/
|
||||
food?: FoodRequest;
|
||||
/**
|
||||
*
|
||||
* @type {UnitRequest}
|
||||
* @memberof PatchedIngredientRequest
|
||||
*/
|
||||
unit?: UnitRequest;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PatchedIngredientRequest
|
||||
*/
|
||||
amount?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PatchedIngredientRequest
|
||||
*/
|
||||
note?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PatchedIngredientRequest
|
||||
*/
|
||||
order?: number;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof PatchedIngredientRequest
|
||||
*/
|
||||
isHeader?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof PatchedIngredientRequest
|
||||
*/
|
||||
noAmount?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PatchedIngredientRequest
|
||||
*/
|
||||
originalText?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof PatchedIngredientRequest
|
||||
*/
|
||||
alwaysUsePluralUnit?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof PatchedIngredientRequest
|
||||
*/
|
||||
alwaysUsePluralFood?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PatchedIngredientRequest interface.
|
||||
*/
|
||||
export function instanceOfPatchedIngredientRequest(value: object): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function PatchedIngredientRequestFromJSON(json: any): PatchedIngredientRequest {
|
||||
return PatchedIngredientRequestFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PatchedIngredientRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedIngredientRequest {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'food': json['food'] == null ? undefined : FoodRequestFromJSON(json['food']),
|
||||
'unit': json['unit'] == null ? undefined : UnitRequestFromJSON(json['unit']),
|
||||
'amount': json['amount'] == null ? undefined : json['amount'],
|
||||
'note': json['note'] == null ? undefined : json['note'],
|
||||
'order': json['order'] == null ? undefined : json['order'],
|
||||
'isHeader': json['is_header'] == null ? undefined : json['is_header'],
|
||||
'noAmount': json['no_amount'] == null ? undefined : json['no_amount'],
|
||||
'originalText': json['original_text'] == null ? undefined : json['original_text'],
|
||||
'alwaysUsePluralUnit': json['always_use_plural_unit'] == null ? undefined : json['always_use_plural_unit'],
|
||||
'alwaysUsePluralFood': json['always_use_plural_food'] == null ? undefined : json['always_use_plural_food'],
|
||||
};
|
||||
}
|
||||
|
||||
export function PatchedIngredientRequestToJSON(value?: PatchedIngredientRequest | null): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
return {
|
||||
|
||||
'food': FoodRequestToJSON(value['food']),
|
||||
'unit': UnitRequestToJSON(value['unit']),
|
||||
'amount': value['amount'],
|
||||
'note': value['note'],
|
||||
'order': value['order'],
|
||||
'is_header': value['isHeader'],
|
||||
'no_amount': value['noAmount'],
|
||||
'original_text': value['originalText'],
|
||||
'always_use_plural_unit': value['alwaysUsePluralUnit'],
|
||||
'always_use_plural_food': value['alwaysUsePluralFood'],
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user