posprocessing hook for DRF

This commit is contained in:
vabene1111
2024-03-30 11:01:37 +01:00
parent cb98b6723f
commit dfd9f7b066
156 changed files with 11621 additions and 1118 deletions

View File

@@ -37,7 +37,7 @@ export interface RecipeBook {
* @type {number}
* @memberof RecipeBook
*/
readonly id: number;
id?: number;
/**
*
* @type {string}
@@ -80,7 +80,6 @@ export interface RecipeBook {
* Check if a given object implements the RecipeBook interface.
*/
export function instanceOfRecipeBook(value: object): boolean {
if (!('id' in value)) return false;
if (!('name' in value)) return false;
if (!('shared' in value)) return false;
if (!('createdBy' in value)) return false;
@@ -97,7 +96,7 @@ export function RecipeBookFromJSONTyped(json: any, ignoreDiscriminator: boolean)
}
return {
'id': json['id'],
'id': json['id'] == null ? undefined : json['id'],
'name': json['name'],
'description': json['description'] == null ? undefined : json['description'],
'shared': ((json['shared'] as Array<any>).map(UserFromJSON)),
@@ -113,6 +112,7 @@ export function RecipeBookToJSON(value?: RecipeBook | null): any {
}
return {
'id': value['id'],
'name': value['name'],
'description': value['description'],
'shared': ((value['shared'] as Array<any>).map(UserToJSON)),