mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-06 22:58:19 -05:00
some basic views
This commit is contained in:
96
vue3/models/ListIngredients200Response.ts
Normal file
96
vue3/models/ListIngredients200Response.ts
Normal file
@@ -0,0 +1,96 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Django Recipes
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document:
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { exists, mapValues } from '../runtime';
|
||||
import type { Ingredient } from './Ingredient';
|
||||
import {
|
||||
IngredientFromJSON,
|
||||
IngredientFromJSONTyped,
|
||||
IngredientToJSON,
|
||||
} from './Ingredient';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ListIngredients200Response
|
||||
*/
|
||||
export interface ListIngredients200Response {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ListIngredients200Response
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ListIngredients200Response
|
||||
*/
|
||||
next?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ListIngredients200Response
|
||||
*/
|
||||
previous?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Array<Ingredient>}
|
||||
* @memberof ListIngredients200Response
|
||||
*/
|
||||
results?: Array<Ingredient>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ListIngredients200Response interface.
|
||||
*/
|
||||
export function instanceOfListIngredients200Response(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function ListIngredients200ResponseFromJSON(json: any): ListIngredients200Response {
|
||||
return ListIngredients200ResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ListIngredients200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListIngredients200Response {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': !exists(json, 'count') ? undefined : json['count'],
|
||||
'next': !exists(json, 'next') ? undefined : json['next'],
|
||||
'previous': !exists(json, 'previous') ? undefined : json['previous'],
|
||||
'results': !exists(json, 'results') ? undefined : ((json['results'] as Array<any>).map(IngredientFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function ListIngredients200ResponseToJSON(value?: ListIngredients200Response | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value.count,
|
||||
'next': value.next,
|
||||
'previous': value.previous,
|
||||
'results': value.results === undefined ? undefined : ((value.results as Array<any>).map(IngredientToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user