mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-07 15:18:20 -05:00
lots of shopping tweaks
This commit is contained in:
@@ -90,25 +90,19 @@ export function GroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): Gro
|
||||
};
|
||||
}
|
||||
|
||||
export function GroupToJSON(value?: Group | null): any {
|
||||
export function GroupToJSON(json: any): Group {
|
||||
return GroupToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function GroupToJSONTyped(value?: Group | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'name': value['name'],
|
||||
};
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
// Custom model functions added by custom openapi-generator template
|
||||
// ----------------------------------------------------------------------
|
||||
import {ApiApi, ApiGroupListRequest, PaginatedGroupList} from "@/openapi";
|
||||
|
||||
/**
|
||||
* query list endpoint using the provided request parameters
|
||||
*/
|
||||
export function list(requestParameters: ApiGroupListRequest = {}): Promise<PaginatedGroupList> {
|
||||
const api = new ApiApi()
|
||||
return api.apiGroupList(requestParameters)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user