working on model select

This commit is contained in:
vabene1111
2024-03-11 19:46:37 +01:00
parent 09dc35228f
commit 18767c54ce
140 changed files with 7676 additions and 5949 deletions

View File

@@ -12,7 +12,7 @@
* Do not edit the class manually.
*/
import { exists, mapValues } from '../runtime';
import { mapValues } from '../runtime';
/**
*
* @export
@@ -51,36 +51,39 @@ export interface PatchedRecipeBookEntry {
readonly recipeContent?: string;
}
/**
* Check if a given object implements the PatchedRecipeBookEntry interface.
*/
export function instanceOfPatchedRecipeBookEntry(value: object): boolean {
return true;
}
export function PatchedRecipeBookEntryFromJSON(json: any): PatchedRecipeBookEntry {
return PatchedRecipeBookEntryFromJSONTyped(json, false);
}
export function PatchedRecipeBookEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedRecipeBookEntry {
if ((json === undefined) || (json === null)) {
if (json == null) {
return json;
}
return {
'id': !exists(json, 'id') ? undefined : json['id'],
'book': !exists(json, 'book') ? undefined : json['book'],
'bookContent': !exists(json, 'book_content') ? undefined : json['book_content'],
'recipe': !exists(json, 'recipe') ? undefined : json['recipe'],
'recipeContent': !exists(json, 'recipe_content') ? undefined : json['recipe_content'],
'id': json['id'] == null ? undefined : json['id'],
'book': json['book'] == null ? undefined : json['book'],
'bookContent': json['book_content'] == null ? undefined : json['book_content'],
'recipe': json['recipe'] == null ? undefined : json['recipe'],
'recipeContent': json['recipe_content'] == null ? undefined : json['recipe_content'],
};
}
export function PatchedRecipeBookEntryToJSON(value?: PatchedRecipeBookEntry | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
if (value == null) {
return value;
}
return {
'book': value.book,
'recipe': value.recipe,
'book': value['book'],
'recipe': value['recipe'],
};
}